@justifi/webcomponents 4.13.0-rc.1 → 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 (132) 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-3d2f2937.entry.js +1 -0
  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-cf3151a3.entry.js +0 -1
  131. package/dist/webcomponents/p-d0a8c631.entry.js +0 -1
  132. package/dist/webcomponents/p-efbc8ffc.entry.js +0 -1
@@ -65,10 +65,15 @@ function v4(options, buf, offset) {
65
65
  return unsafeStringify(rnds);
66
66
  }
67
67
 
68
- const Api = (authToken, apiOrigin) => {
68
+ const Api = ({ authToken, apiOrigin }) => {
69
69
  async function getAuthorizationHeader() {
70
+ if (!authToken) {
71
+ return {
72
+ 'Content-Type': 'application/json',
73
+ };
74
+ }
70
75
  return {
71
- 'Authorization': `Bearer ${authToken}`,
76
+ Authorization: `Bearer ${authToken}`,
72
77
  'Idempotency-Key': v4(),
73
78
  'Content-Type': 'application/json',
74
79
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const form = require('./form-2ad3d374.js');
7
7
  const Business = require('./Business-32a53780.js');
8
- const Api = require('./Api-ab34a402.js');
8
+ const Api = require('./Api-3bc6e43f.js');
9
9
  require('./Pagination-0da8f095.js');
10
10
  require('./Payment-eceed10f.js');
11
11
  require('./Payout-a2dd7b01.js');
@@ -88,7 +88,7 @@ const AdditionalQuestionsFormStep = class {
88
88
  if (!this.businessId)
89
89
  console.error(missingBusinessIdMessage);
90
90
  this.formController = new form.FormController(businessAdditionalQuestionsSchema.additionalQuestionsSchema(this.allowOptionalFields));
91
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
91
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
92
92
  this.fetchData();
93
93
  }
94
94
  componentDidLoad() {
@@ -172,7 +172,7 @@ const BusinessCoreInfoFormStep = class {
172
172
  if (!this.businessId)
173
173
  console.error(missingBusinessIdMessage);
174
174
  this.formController = new form.FormController(businessAdditionalQuestionsSchema.businessCoreInfoSchema(this.allowOptionalFields));
175
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
175
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
176
176
  this.fetchData();
177
177
  }
178
178
  componentDidLoad() {
@@ -311,7 +311,7 @@ const BusinessOwnersFormStep = class {
311
311
  console.error(missingAuthTokenMessage);
312
312
  if (!this.businessId)
313
313
  console.error(missingBusinessIdMessage);
314
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
314
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
315
315
  this.fetchData();
316
316
  }
317
317
  onOwnersUpdated() {
@@ -411,7 +411,7 @@ const BusinessRepresentativeFormStep = class {
411
411
  if (!this.businessId)
412
412
  console.error(missingBusinessIdMessage);
413
413
  this.formController = new form.FormController(payloadParsers.identitySchema('representative', this.allowOptionalFields));
414
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
414
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
415
415
  this.fetchData();
416
416
  }
417
417
  componentDidLoad() {
@@ -495,7 +495,7 @@ const LegalAddressFormStep = class {
495
495
  if (!this.businessId)
496
496
  console.error(missingBusinessIdMessage);
497
497
  this.formController = new form.FormController(payloadParsers.addressSchema(this.allowOptionalFields));
498
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
498
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
499
499
  this.fetchData();
500
500
  }
501
501
  componentDidLoad() {
@@ -1567,7 +1567,7 @@ const MessageEventType = {
1567
1567
  };
1568
1568
 
1569
1569
  const name = "@justifi/webcomponents";
1570
- const version = "4.13.0-rc.1";
1570
+ const version = "4.14.0";
1571
1571
  const description = "JustiFi Web Components";
1572
1572
  const main = "dist/module/index.js";
1573
1573
  const module$1 = "dist/module/index.js";
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const utils$1 = require('./utils-6e35fa70.js');
7
7
  const config = require('./config-ff2dda66.js');
8
- const Api = require('./Api-ab34a402.js');
8
+ const Api = require('./Api-3bc6e43f.js');
9
9
  const Business = require('./Business-32a53780.js');
10
10
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
11
11
  const utils = require('./utils-491248ca.js');
@@ -14,7 +14,7 @@ require('./state-options-4fbcb48a.js');
14
14
  class BusinessService {
15
15
  async fetchBusiness(businessId, authToken) {
16
16
  const endpoint = `entities/business/${businessId}`;
17
- return Api.Api(authToken, config.config.proxyApiOrigin).get(endpoint);
17
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
18
18
  }
19
19
  }
20
20
 
@@ -7,7 +7,7 @@ const form = require('./form-2ad3d374.js');
7
7
  const index_esm = require('./index.esm-d25bd7bf.js');
8
8
  const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-0a35f597.js');
9
9
  const payloadParsers = require('./payload-parsers-6c4b5323.js');
10
- const Api = require('./Api-ab34a402.js');
10
+ const Api = require('./Api-3bc6e43f.js');
11
11
  require('./Pagination-0da8f095.js');
12
12
  require('./Payment-eceed10f.js');
13
13
  require('./Payout-a2dd7b01.js');
@@ -98,7 +98,7 @@ const BusinessForm = class {
98
98
  if (!this.businessId)
99
99
  console.error(missingBusinessIdMessage);
100
100
  this.formController = new form.FormController(businessFormSchema);
101
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
101
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
102
102
  this.fetchData();
103
103
  }
104
104
  handleReponse(response) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const Api = require('./Api-ab34a402.js');
6
+ const Api = require('./Api-3bc6e43f.js');
7
7
  const Pagination = require('./Pagination-0da8f095.js');
8
8
  require('./Payment-eceed10f.js');
9
9
  require('./Payout-a2dd7b01.js');
@@ -55,7 +55,7 @@ const BusinessList = class {
55
55
  this.loading = true;
56
56
  const endpoint = `entities/business`;
57
57
  let accountIDParam = { account_id: this.accountId };
58
- const response = await Api.Api(this.authToken, config.config.proxyApiOrigin)
58
+ const response = await Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin })
59
59
  .get(endpoint, Object.assign(Object.assign({}, accountIDParam), this.params));
60
60
  if (!response.error) {
61
61
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
7
7
  const utils = require('./utils-491248ca.js');
8
- const Api = require('./Api-ab34a402.js');
8
+ const Api = require('./Api-3bc6e43f.js');
9
9
  require('./Pagination-0da8f095.js');
10
10
  require('./Payment-eceed10f.js');
11
11
  require('./Payout-a2dd7b01.js');
@@ -68,15 +68,17 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
68
68
  class CheckoutService {
69
69
  async fetchCheckout(authToken, checkoutId) {
70
70
  const endpoint = `checkouts/${checkoutId}`;
71
- return Api.Api(authToken, config.config.proxyApiOrigin).get(endpoint);
71
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
72
72
  }
73
73
  async complete(authToken, checkoutId, payment) {
74
74
  const endpoint = `checkouts/${checkoutId}/complete`;
75
- const payload = { payment_mode: payment.payment_mode };
75
+ const payload = {
76
+ payment_mode: payment.payment_mode,
77
+ };
76
78
  if (payment.payment_token) {
77
79
  payload.payment_token = payment.payment_token;
78
80
  }
79
- return Api.Api(authToken, config.config.proxyApiOrigin).post(endpoint, JSON.stringify(payload));
81
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
80
82
  }
81
83
  }
82
84
 
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const config = require('./config-ff2dda66.js');
7
- const Api = require('./Api-ab34a402.js');
7
+ const Api = require('./Api-3bc6e43f.js');
8
8
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
9
9
  const utils = require('./utils-491248ca.js');
10
10
  const utils$1 = require('./utils-6e35fa70.js');
11
11
 
12
12
  class ReportsService {
13
13
  async fetchGrossVolumeChartData(accountId, authToken) {
14
- const api = Api.Api(authToken, config.config.proxyApiOrigin);
14
+ const api = Api.Api({ authToken: authToken, apiOrigin: config.config.proxyApiOrigin });
15
15
  const endpoint = `account/${accountId}/reports/gross_volume`;
16
16
  return api.get(endpoint);
17
17
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const form = require('./form-2ad3d374.js');
7
7
  const formInputMasks = require('./form-input-masks-0879c139.js');
8
- const Api = require('./Api-ab34a402.js');
8
+ const Api = require('./Api-3bc6e43f.js');
9
9
  require('./Pagination-0da8f095.js');
10
10
  require('./Payment-eceed10f.js');
11
11
  require('./Payout-a2dd7b01.js');
@@ -155,7 +155,7 @@ const BusinessOwnerForm = class {
155
155
  if (!this.authToken)
156
156
  console.error(missingAuthTokenMessage);
157
157
  this.formController = new form.FormController(payloadParsers.identitySchema('owner', this.allowOptionalFields));
158
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
158
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
159
159
  this.fetchData();
160
160
  }
161
161
  componentDidLoad() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const Api = require('./Api-ab34a402.js');
6
+ const Api = require('./Api-3bc6e43f.js');
7
7
  const Pagination = require('./Pagination-0da8f095.js');
8
8
  const Payment = require('./Payment-eceed10f.js');
9
9
  require('./Payout-a2dd7b01.js');
@@ -48,7 +48,7 @@ const PaymentBalanceTransactions = class {
48
48
  return;
49
49
  }
50
50
  const endpoint = `account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`;
51
- const response = await Api.Api(this.authToken, config.config.proxyApiOrigin).get(endpoint, this.params);
51
+ const response = await Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint, this.params);
52
52
  if (!response.error) {
53
53
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
54
54
  this.balanceTransactions = response.data.map(dataItem => new Payment.PaymentBalanceTransaction(dataItem));
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const payment_service = require('./payment.service-336189d3.js');
6
+ const payment_service = require('./payment.service-019157e9.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  const Payment = require('./Payment-eceed10f.js');
9
9
  require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
11
11
  const utils = require('./utils-491248ca.js');
12
12
  const utils$1 = require('./utils-6e35fa70.js');
13
- require('./Api-ab34a402.js');
13
+ require('./Api-3bc6e43f.js');
14
14
  require('./config-ff2dda66.js');
15
15
 
16
16
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
@@ -22,12 +22,23 @@ const PaymentForm = class {
22
22
  this.card = true;
23
23
  this.email = undefined;
24
24
  this.clientId = undefined;
25
+ this.authToken = undefined;
25
26
  this.accountId = undefined;
26
27
  this.submitButtonText = undefined;
27
28
  this.submitButtonEnabled = true;
28
29
  this.isLoading = false;
29
30
  this.selectedPaymentMethodType = Payment.PaymentMethodTypes.card;
30
31
  }
32
+ componentWillLoad() {
33
+ if (!this.validateProps()) {
34
+ this.errorEvent.emit({
35
+ errorCode: ComponentError.ComponentErrorCodes.MISSING_PROPS,
36
+ message: 'clientId or authToken is required',
37
+ severity: ComponentError.ComponentErrorSeverity.ERROR
38
+ });
39
+ this.submitButtonEnabled = false;
40
+ }
41
+ }
31
42
  connectedCallback() {
32
43
  utils.loadFontsOnParent();
33
44
  }
@@ -40,10 +51,33 @@ const PaymentForm = class {
40
51
  async disableSubmitButton() {
41
52
  this.submitButtonEnabled = false;
42
53
  }
54
+ showPaymentMethodTypeSelector() {
55
+ return this.card && this.bankAccount;
56
+ }
57
+ getSelectedPaymentMethodType() {
58
+ if (this.showPaymentMethodTypeSelector()) {
59
+ return this.selectedPaymentMethodType;
60
+ }
61
+ else if (this.card) {
62
+ return Payment.PaymentMethodTypes.card;
63
+ }
64
+ else if (this.bankAccount) {
65
+ return Payment.PaymentMethodTypes.bankAccount;
66
+ }
67
+ else {
68
+ return Payment.PaymentMethodTypes.card;
69
+ }
70
+ }
43
71
  paymentMethodSelectedHandler(event) {
44
72
  const paymentMethodType = event.detail;
45
73
  this.selectedPaymentMethodType = paymentMethodType;
46
74
  }
75
+ validateProps() {
76
+ return !!(this.clientId || this.authToken);
77
+ }
78
+ getToken() {
79
+ return this.authToken || this.clientId;
80
+ }
47
81
  async submit(event) {
48
82
  event.preventDefault();
49
83
  if (!this.paymentMethodFormRef || !this.billingFormRef)
@@ -56,7 +90,7 @@ const PaymentForm = class {
56
90
  try {
57
91
  const billingFormFieldValues = await this.billingFormRef.getValues();
58
92
  const paymentMethodData = Object.assign({ email: this.email }, billingFormFieldValues);
59
- const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.clientId, paymentMethodData, this.accountId);
93
+ const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.getToken(), paymentMethodData, this.accountId);
60
94
  if (tokenizeResponse.error) {
61
95
  this.errorEvent.emit({
62
96
  errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
@@ -78,7 +112,7 @@ const PaymentForm = class {
78
112
  }
79
113
  }
80
114
  render() {
81
- return (index.h(index.Host, null, index.h("form", { class: "row gy-3" }, this.card && this.bankAccount && (index.h("div", { class: "col-12" }, index.h("justifi-payment-method-selector", { selectedPaymentMethodType: this.selectedPaymentMethodType, onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { class: "col-12" }, index.h("justifi-payment-method-form", { "payment-method-form-type": this.selectedPaymentMethodType, iframeOrigin: config.config.iframeOrigin, ref: el => {
115
+ return (index.h(index.Host, null, index.h("form", { class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { class: "col-12" }, index.h("justifi-payment-method-selector", { selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { class: "col-12" }, index.h("justifi-payment-method-form", { "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
82
116
  if (el) {
83
117
  this.paymentMethodFormRef = el;
84
118
  }
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const payment_service = require('./payment.service-336189d3.js');
6
+ const payment_service = require('./payment.service-019157e9.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  const Payment = require('./Payment-eceed10f.js');
9
9
  require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
11
11
  const utils = require('./utils-491248ca.js');
12
12
  const utils$1 = require('./utils-6e35fa70.js');
13
- require('./Api-ab34a402.js');
13
+ require('./Api-3bc6e43f.js');
14
14
  require('./config-ff2dda66.js');
15
15
 
16
16
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const payout_service = require('./payout.service-6012d576.js');
6
+ const payout_service = require('./payout.service-7203762f.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  require('./Payment-eceed10f.js');
9
9
  const Payout = require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
11
11
  const utils = require('./utils-491248ca.js');
12
12
  const utils$1 = require('./utils-6e35fa70.js');
13
- require('./Api-ab34a402.js');
13
+ require('./Api-3bc6e43f.js');
14
14
  require('./config-ff2dda66.js');
15
15
 
16
16
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const exportedParts = require('./exported-parts-b18c68c2.js');
7
- const payout_service = require('./payout.service-6012d576.js');
7
+ const payout_service = require('./payout.service-7203762f.js');
8
8
  require('./Pagination-0da8f095.js');
9
9
  require('./Payment-eceed10f.js');
10
10
  const Payout = require('./Payout-a2dd7b01.js');
11
11
  const ComponentError = require('./ComponentError-8ba0c0e7.js');
12
12
  const utils = require('./utils-491248ca.js');
13
13
  const utils$1 = require('./utils-6e35fa70.js');
14
- require('./Api-ab34a402.js');
14
+ require('./Api-3bc6e43f.js');
15
15
  require('./config-ff2dda66.js');
16
16
 
17
17
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const Api = require('./Api-ab34a402.js');
6
+ const Api = require('./Api-3bc6e43f.js');
7
7
  const Pagination = require('./Pagination-0da8f095.js');
8
8
  require('./Payment-eceed10f.js');
9
9
  require('./Payout-a2dd7b01.js');
@@ -107,7 +107,7 @@ const ProceedsList = class {
107
107
  }
108
108
  this.loading = true;
109
109
  const endpoint = `account/${this.accountId}/proceeds`;
110
- const response = await Api.Api(this.authToken, config.config.privateApiOrigin)
110
+ const response = await Api.Api({ authToken: this.authToken, apiOrigin: config.config.privateApiOrigin })
111
111
  .get(endpoint, this.params);
112
112
  if (!response.error) {
113
113
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const index_esm = require('./index.esm-d25bd7bf.js');
7
- const Api = require('./Api-ab34a402.js');
7
+ const Api = require('./Api-3bc6e43f.js');
8
8
  require('./Pagination-0da8f095.js');
9
9
  require('./Payment-eceed10f.js');
10
10
  require('./Payout-a2dd7b01.js');
@@ -93,7 +93,7 @@ const RefundForm = class {
93
93
  if (!this.authToken) {
94
94
  console.warn('Warning: Missing auth-token.');
95
95
  }
96
- this.api = Api.Api(this.authToken, config.config.proxyApiOrigin);
96
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
97
97
  }
98
98
  render() {
99
99
  var _a;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-5d5f2219.js');
6
- const Api = require('./Api-ab34a402.js');
6
+ const Api = require('./Api-3bc6e43f.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  require('./Payment-eceed10f.js');
9
9
  require('./Payout-a2dd7b01.js');
@@ -32,7 +32,7 @@ const SubaccountDetails = class {
32
32
  this.fetchData();
33
33
  }
34
34
  async fetchOnboardingData() {
35
- const api = Api.Api(this.authToken, '');
35
+ const api = Api.Api({ authToken: this.authToken, apiOrigin: '' });
36
36
  const endpoint = `onboarding/${this.subaccountId}`;
37
37
  const response = await api.get(endpoint);
38
38
  if (!response.error) {
@@ -43,7 +43,7 @@ const SubaccountDetails = class {
43
43
  }
44
44
  }
45
45
  async fetchSubAccountData() {
46
- const api = Api.Api(this.authToken, config.config.privateApiOrigin);
46
+ const api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.privateApiOrigin });
47
47
  const endpoint = `account/${this.accountId}/seller_accounts/${this.subaccountId}`;
48
48
  const response = await api.get(endpoint);
49
49
  if (!response.error) {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5d5f2219.js');
6
6
  const SubAccount = require('./SubAccount-b3902202.js');
7
7
  const utils = require('./utils-6f62f7a1.js');
8
- const Api = require('./Api-ab34a402.js');
8
+ const Api = require('./Api-3bc6e43f.js');
9
9
  const Pagination = require('./Pagination-0da8f095.js');
10
10
  require('./Payment-eceed10f.js');
11
11
  require('./Payout-a2dd7b01.js');
@@ -48,7 +48,7 @@ const SubaccountsList = class {
48
48
  return;
49
49
  }
50
50
  this.loading = true;
51
- const api = Api.Api(this.authToken, config.config.privateApiOrigin);
51
+ const api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.privateApiOrigin });
52
52
  const endpoint = `account/${this.accountId}/seller_accounts`;
53
53
  const response = await api.get(endpoint, this.params);
54
54
  if (!response.error) {
@@ -6,7 +6,7 @@ const index = require('./index-5d5f2219.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
9
- return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[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.cjs\",[[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.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart.cjs\",[[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.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[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.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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);
9
+ return index.bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form.cjs\",[[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.cjs\",[[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.cjs\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list.cjs\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list.cjs\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details.cjs\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart.cjs\",[[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.cjs\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details.cjs\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details.cjs\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core.cjs\",[[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.cjs\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core.cjs\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core.cjs\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core.cjs\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core.cjs\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector.cjs\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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.cjs\",[[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);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const Api = require('./Api-ab34a402.js');
3
+ const Api = require('./Api-3bc6e43f.js');
4
4
  require('./Pagination-0da8f095.js');
5
5
  require('./Payment-eceed10f.js');
6
6
  require('./Payout-a2dd7b01.js');
@@ -8,13 +8,13 @@ const config = require('./config-ff2dda66.js');
8
8
 
9
9
  class PaymentService {
10
10
  async fetchPayments(accountId, authToken, params) {
11
- const api = Api.Api(authToken, config.config.proxyApiOrigin);
11
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
12
12
  const endpoint = `account/${accountId}/payments`;
13
13
  return api.get(endpoint, params);
14
14
  }
15
15
  async fetchPayment(paymentId, authToken) {
16
16
  const endpoint = `payments/${paymentId}`;
17
- return Api.Api(authToken, config.config.proxyApiOrigin).get(endpoint);
17
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
18
18
  }
19
19
  }
20
20
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const Api = require('./Api-ab34a402.js');
3
+ const Api = require('./Api-3bc6e43f.js');
4
4
  require('./Pagination-0da8f095.js');
5
5
  require('./Payment-eceed10f.js');
6
6
  require('./Payout-a2dd7b01.js');
@@ -8,12 +8,12 @@ const config = require('./config-ff2dda66.js');
8
8
 
9
9
  class PayoutService {
10
10
  async fetchPayouts(accountId, authToken, params) {
11
- const api = Api.Api(authToken, config.config.proxyApiOrigin);
11
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
12
12
  const endpoint = `account/${accountId}/payouts`;
13
13
  return api.get(endpoint, params);
14
14
  }
15
15
  async fetchPayout(payoutId, authToken) {
16
- const api = Api.Api(authToken, config.config.proxyApiOrigin);
16
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
17
17
  const endpoint = `payouts/${payoutId}`;
18
18
  return api.get(endpoint);
19
19
  }