@justifi/webcomponents 4.19.0-rc → 4.19.1-rc

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 (52) hide show
  1. package/dist/cjs/{Analytics-e1fdfdb7.js → Analytics-0b3db49d.js} +1 -1
  2. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  3. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-payment-form.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  11. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  16. package/dist/cjs/{package-95cc171f.js → package-39dc73ed.js} +1 -1
  17. package/dist/docs.json +1 -1
  18. package/dist/esm/{Analytics-8638c01f.js → Analytics-37556050.js} +1 -1
  19. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  20. package/dist/esm/justifi-business-details.entry.js +2 -2
  21. package/dist/esm/justifi-business-form.entry.js +2 -2
  22. package/dist/esm/justifi-card-form.entry.js +2 -2
  23. package/dist/esm/justifi-checkout.entry.js +2 -2
  24. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  25. package/dist/esm/justifi-payment-details.entry.js +2 -2
  26. package/dist/esm/justifi-payment-form.entry.js +2 -2
  27. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  28. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  29. package/dist/esm/justifi-payments-list.entry.js +2 -2
  30. package/dist/esm/justifi-payout-details.entry.js +2 -2
  31. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  32. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  33. package/dist/esm/{package-5a05ecb7.js → package-e2a7aa3f.js} +1 -1
  34. package/dist/module/package.js +1 -1
  35. package/dist/webcomponents/{p-bb86a0da.entry.js → p-037763f4.entry.js} +1 -1
  36. package/dist/webcomponents/{p-da2837f9.entry.js → p-1f6afff9.entry.js} +1 -1
  37. package/dist/webcomponents/{p-eae46810.entry.js → p-246a6c6a.entry.js} +1 -1
  38. package/dist/webcomponents/{p-b3a8ee6c.entry.js → p-2d3b1692.entry.js} +1 -1
  39. package/dist/webcomponents/{p-d6619366.js → p-32286934.js} +1 -1
  40. package/dist/webcomponents/{p-f3f3d544.entry.js → p-5f095525.entry.js} +1 -1
  41. package/dist/webcomponents/{p-9c057196.js → p-6c078cd1.js} +1 -1
  42. package/dist/webcomponents/{p-337893fe.entry.js → p-8f325782.entry.js} +1 -1
  43. package/dist/webcomponents/{p-88b6ed9b.entry.js → p-987b5de2.entry.js} +1 -1
  44. package/dist/webcomponents/{p-def4b4b2.entry.js → p-a63fc384.entry.js} +1 -1
  45. package/dist/webcomponents/{p-d535bc5d.entry.js → p-ae530971.entry.js} +1 -1
  46. package/dist/webcomponents/{p-59415873.entry.js → p-b7cf49f4.entry.js} +1 -1
  47. package/dist/webcomponents/{p-335e58a6.entry.js → p-edac2b43.entry.js} +1 -1
  48. package/dist/webcomponents/{p-b20364d8.entry.js → p-f06910aa.entry.js} +1 -1
  49. package/dist/webcomponents/{p-9f29820f.entry.js → p-f0a06884.entry.js} +1 -1
  50. package/dist/webcomponents/{p-60dcd24c.entry.js → p-f2f94d9f.entry.js} +1 -1
  51. package/dist/webcomponents/webcomponents.esm.js +1 -1
  52. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const _package = require('./package-95cc171f.js');
3
+ const _package = require('./package-39dc73ed.js');
4
4
  const config = require('./config-037e67d0.js');
5
5
  const Api = require('./Api-3bc6e43f.js');
6
6
 
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-037e67d0.js');
7
- const Analytics = require('./Analytics-e1fdfdb7.js');
8
- require('./package-95cc171f.js');
7
+ const Analytics = require('./Analytics-0b3db49d.js');
8
+ require('./package-39dc73ed.js');
9
9
  require('./Api-3bc6e43f.js');
10
10
 
11
11
  const BankAccountForm = class {
@@ -8,12 +8,12 @@ const business_service = require('./business.service-c384784d.js');
8
8
  const Business = require('./Business-aacbe893.js');
9
9
  const ComponentError = require('./ComponentError-233ac749.js');
10
10
  const utils = require('./utils-7a478c37.js');
11
- const Analytics = require('./Analytics-e1fdfdb7.js');
11
+ const Analytics = require('./Analytics-0b3db49d.js');
12
12
  require('./config-037e67d0.js');
13
13
  require('./Api-3bc6e43f.js');
14
14
  require('./helpers-602962eb.js');
15
15
  require('./state-options-4fbcb48a.js');
16
- require('./package-95cc171f.js');
16
+ require('./package-39dc73ed.js');
17
17
 
18
18
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -13,13 +13,13 @@ require('./Payout-a2dd7b01.js');
13
13
  const config = require('./config-037e67d0.js');
14
14
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
15
15
  const Business = require('./Business-aacbe893.js');
16
- const Analytics = require('./Analytics-e1fdfdb7.js');
16
+ const Analytics = require('./Analytics-0b3db49d.js');
17
17
  const styledHost = require('./styled-host-cc053016.js');
18
18
  require('./schema-validations-2733de42.js');
19
19
  require('./state-options-4fbcb48a.js');
20
20
  require('./business-form-options-582467fe.js');
21
21
  require('./helpers-602962eb.js');
22
- require('./package-95cc171f.js');
22
+ require('./package-39dc73ed.js');
23
23
 
24
24
  const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: payloadParsers.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: payloadParsers.identitySchema('representative') }));
25
25
 
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-037e67d0.js');
7
- const Analytics = require('./Analytics-e1fdfdb7.js');
8
- require('./package-95cc171f.js');
7
+ const Analytics = require('./Analytics-0b3db49d.js');
8
+ require('./package-39dc73ed.js');
9
9
  require('./Api-3bc6e43f.js');
10
10
 
11
11
  const CardForm = class {
@@ -10,8 +10,8 @@ require('./Pagination-0da8f095.js');
10
10
  require('./Payment-1a8a8ca6.js');
11
11
  require('./Payout-a2dd7b01.js');
12
12
  const config = require('./config-037e67d0.js');
13
- const Analytics = require('./Analytics-e1fdfdb7.js');
14
- require('./package-95cc171f.js');
13
+ const Analytics = require('./Analytics-0b3db49d.js');
14
+ require('./package-39dc73ed.js');
15
15
 
16
16
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
17
17
  var _a;
@@ -8,8 +8,8 @@ const Api = require('./Api-3bc6e43f.js');
8
8
  const ComponentError = require('./ComponentError-233ac749.js');
9
9
  const utils = require('./utils-7a478c37.js');
10
10
  const utils$1 = require('./utils-c1d2e426.js');
11
- const Analytics = require('./Analytics-e1fdfdb7.js');
12
- require('./package-95cc171f.js');
11
+ const Analytics = require('./Analytics-0b3db49d.js');
12
+ require('./package-39dc73ed.js');
13
13
 
14
14
  class ReportsService {
15
15
  async fetchGrossVolumeChartData(accountId, authToken) {
@@ -10,10 +10,10 @@ require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-e1fdfdb7.js');
13
+ const Analytics = require('./Analytics-0b3db49d.js');
14
14
  require('./Api-3bc6e43f.js');
15
15
  require('./config-037e67d0.js');
16
- require('./package-95cc171f.js');
16
+ require('./package-39dc73ed.js');
17
17
 
18
18
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -10,10 +10,10 @@ const utils = require('./utils-89d86e29.js');
10
10
  const config = require('./config-037e67d0.js');
11
11
  const ComponentError = require('./ComponentError-233ac749.js');
12
12
  const utils$1 = require('./utils-7a478c37.js');
13
- const Analytics = require('./Analytics-e1fdfdb7.js');
13
+ const Analytics = require('./Analytics-0b3db49d.js');
14
14
  const button = require('./button-3f400a66.js');
15
15
  const styledHost = require('./styled-host-cc053016.js');
16
- require('./package-95cc171f.js');
16
+ require('./package-39dc73ed.js');
17
17
  require('./Api-3bc6e43f.js');
18
18
 
19
19
  const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const _package = require('./package-95cc171f.js');
6
+ const _package = require('./package-39dc73ed.js');
7
7
  const utils = require('./utils-89d86e29.js');
8
8
 
9
9
  var iframeResizer = {exports: {}};
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const Analytics = require('./Analytics-e1fdfdb7.js');
6
+ const Analytics = require('./Analytics-0b3db49d.js');
7
7
  const ComponentError = require('./ComponentError-233ac749.js');
8
8
  const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
9
9
  const business_service = require('./business.service-c384784d.js');
10
10
  const config = require('./config-037e67d0.js');
11
11
  const Api = require('./Api-3bc6e43f.js');
12
- require('./package-95cc171f.js');
12
+ require('./package-39dc73ed.js');
13
13
  require('./utils-7a478c37.js');
14
14
 
15
15
  class ProvisionService {
@@ -10,10 +10,10 @@ require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-e1fdfdb7.js');
13
+ const Analytics = require('./Analytics-0b3db49d.js');
14
14
  require('./Api-3bc6e43f.js');
15
15
  require('./config-037e67d0.js');
16
- require('./package-95cc171f.js');
16
+ require('./package-39dc73ed.js');
17
17
 
18
18
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
19
19
  var _a, _b;
@@ -10,10 +10,10 @@ const Payout = require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-e1fdfdb7.js');
13
+ const Analytics = require('./Analytics-0b3db49d.js');
14
14
  require('./Api-3bc6e43f.js');
15
15
  require('./config-037e67d0.js');
16
- require('./package-95cc171f.js');
16
+ require('./package-39dc73ed.js');
17
17
 
18
18
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -11,10 +11,10 @@ const Payout = require('./Payout-a2dd7b01.js');
11
11
  const ComponentError = require('./ComponentError-233ac749.js');
12
12
  const utils = require('./utils-7a478c37.js');
13
13
  const utils$1 = require('./utils-c1d2e426.js');
14
- const Analytics = require('./Analytics-e1fdfdb7.js');
14
+ const Analytics = require('./Analytics-0b3db49d.js');
15
15
  require('./Api-3bc6e43f.js');
16
16
  require('./config-037e67d0.js');
17
- require('./package-95cc171f.js');
17
+ require('./package-39dc73ed.js');
18
18
 
19
19
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
20
20
  var _a, _b;
@@ -10,8 +10,8 @@ require('./Payout-a2dd7b01.js');
10
10
  const config = require('./config-037e67d0.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const ComponentError = require('./ComponentError-233ac749.js');
13
- const Analytics = require('./Analytics-e1fdfdb7.js');
14
- require('./package-95cc171f.js');
13
+ const Analytics = require('./Analytics-0b3db49d.js');
14
+ require('./package-39dc73ed.js');
15
15
 
16
16
  class InsuranceService {
17
17
  async fetchQuote(authToken, payload) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@justifi/webcomponents";
4
- const version = "4.19.0-rc";
4
+ const version = "4.19.1-rc";
5
5
  const description = "JustiFi Web Components";
6
6
  const collection = "dist/collection/collection-manifest.json";
7
7
  const main = "dist/index.cjs.js";
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-09-23T00:29:00",
2
+ "timestamp": "2024-09-23T00:48:31",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.19.2",
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-5a05ecb7.js';
1
+ import { p as packageJson } from './package-e2a7aa3f.js';
2
2
  import { c as config } from './config-58e393e2.js';
3
3
  import { A as Api } from './Api-b09a2f6a.js';
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-58e393e2.js';
3
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
4
- import './package-5a05ecb7.js';
3
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
4
+ import './package-e2a7aa3f.js';
5
5
  import './Api-b09a2f6a.js';
6
6
 
7
7
  const BankAccountForm = class {
@@ -4,12 +4,12 @@ import { B as BusinessService } from './business.service-eee46ab1.js';
4
4
  import { B as Business } from './Business-e218b4f4.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
6
6
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
7
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
7
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
8
8
  import './config-58e393e2.js';
9
9
  import './Api-b09a2f6a.js';
10
10
  import './helpers-96ea3464.js';
11
11
  import './state-options-a356fb11.js';
12
- import './package-5a05ecb7.js';
12
+ import './package-e2a7aa3f.js';
13
13
 
14
14
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
15
15
  var _a;
@@ -9,13 +9,13 @@ import './Payout-dfe15b00.js';
9
9
  import { c as config } from './config-58e393e2.js';
10
10
  import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
11
11
  import { B as Business } from './Business-e218b4f4.js';
12
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
12
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
13
13
  import { S as StyledHost } from './styled-host-ab9da520.js';
14
14
  import './schema-validations-a83ff220.js';
15
15
  import './state-options-a356fb11.js';
16
16
  import './business-form-options-7a9a74fc.js';
17
17
  import './helpers-96ea3464.js';
18
- import './package-5a05ecb7.js';
18
+ import './package-e2a7aa3f.js';
19
19
 
20
20
  const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
21
21
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-58e393e2.js';
3
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
4
- import './package-5a05ecb7.js';
3
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
4
+ import './package-e2a7aa3f.js';
5
5
  import './Api-b09a2f6a.js';
6
6
 
7
7
  const CardForm = class {
@@ -6,8 +6,8 @@ import './Pagination-afc8f96d.js';
6
6
  import './Payment-6bf26fe2.js';
7
7
  import './Payout-dfe15b00.js';
8
8
  import { c as config } from './config-58e393e2.js';
9
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
10
- import './package-5a05ecb7.js';
9
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
10
+ import './package-e2a7aa3f.js';
11
11
 
12
12
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
13
13
  var _a;
@@ -4,8 +4,8 @@ import { A as Api } from './Api-b09a2f6a.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
5
5
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
6
6
  import { E as ErrorState } from './utils-01413a95.js';
7
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
8
- import './package-5a05ecb7.js';
7
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
8
+ import './package-e2a7aa3f.js';
9
9
 
10
10
  class ReportsService {
11
11
  async fetchGrossVolumeChartData(accountId, authToken) {
@@ -6,10 +6,10 @@ import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
10
10
  import './Api-b09a2f6a.js';
11
11
  import './config-58e393e2.js';
12
- import './package-5a05ecb7.js';
12
+ import './package-e2a7aa3f.js';
13
13
 
14
14
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
15
15
  var _a;
@@ -6,10 +6,10 @@ import { l as loadFontsOnParent } from './utils-3c1dd2fa.js';
6
6
  import { c as config } from './config-58e393e2.js';
7
7
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
8
8
  import { g as getErrorMessage } from './utils-b10dae27.js';
9
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
10
10
  import { B as Button } from './button-34e75e0f.js';
11
11
  import { S as StyledHost } from './styled-host-ab9da520.js';
12
- import './package-5a05ecb7.js';
12
+ import './package-e2a7aa3f.js';
13
13
  import './Api-b09a2f6a.js';
14
14
 
15
15
  const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
2
- import { p as packageJson } from './package-5a05ecb7.js';
2
+ import { p as packageJson } from './package-e2a7aa3f.js';
3
3
  import { m as composeQueryParams } from './utils-3c1dd2fa.js';
4
4
 
5
5
  var iframeResizer = {exports: {}};
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
2
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
3
3
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
5
5
  import { B as BusinessService } from './business.service-eee46ab1.js';
6
6
  import { c as config } from './config-58e393e2.js';
7
7
  import { A as Api } from './Api-b09a2f6a.js';
8
- import './package-5a05ecb7.js';
8
+ import './package-e2a7aa3f.js';
9
9
  import './utils-b10dae27.js';
10
10
 
11
11
  class ProvisionService {
@@ -6,10 +6,10 @@ import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
10
10
  import './Api-b09a2f6a.js';
11
11
  import './config-58e393e2.js';
12
- import './package-5a05ecb7.js';
12
+ import './package-e2a7aa3f.js';
13
13
 
14
14
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
15
  var _a, _b;
@@ -6,10 +6,10 @@ import { P as Payout } from './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
10
10
  import './Api-b09a2f6a.js';
11
11
  import './config-58e393e2.js';
12
- import './package-5a05ecb7.js';
12
+ import './package-e2a7aa3f.js';
13
13
 
14
14
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
15
15
  var _a;
@@ -7,10 +7,10 @@ import { P as Payout } from './Payout-dfe15b00.js';
7
7
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
9
9
  import { E as ErrorState } from './utils-01413a95.js';
10
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
10
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
11
11
  import './Api-b09a2f6a.js';
12
12
  import './config-58e393e2.js';
13
- import './package-5a05ecb7.js';
13
+ import './package-e2a7aa3f.js';
14
14
 
15
15
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
16
16
  var _a, _b;
@@ -6,8 +6,8 @@ import './Payout-dfe15b00.js';
6
6
  import { c as config } from './config-58e393e2.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
9
- import { J as JustifiAnalytics } from './Analytics-8638c01f.js';
10
- import './package-5a05ecb7.js';
9
+ import { J as JustifiAnalytics } from './Analytics-37556050.js';
10
+ import './package-e2a7aa3f.js';
11
11
 
12
12
  class InsuranceService {
13
13
  async fetchQuote(authToken, payload) {
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.0-rc";
2
+ const version = "4.19.1-rc";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.0-rc";
2
+ const version = "4.19.1-rc";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -1 +1 @@
1
- import{r as s,c as i,h as t,H as r}from"./p-fad19d75.js";import{E as e}from"./p-dce846bf.js";import{B as o}from"./p-c28db166.js";import{B as a}from"./p-af244664.js";import{C as n,a as d}from"./p-14c91ffd.js";import{g as c,a as h}from"./p-8115b2f4.js";import{J as p}from"./p-d6619366.js";import"./p-57e1f2fd.js";import"./p-29c0b182.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-9c057196.js";const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){this.analytics=new p(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const d=await t.fetchBusiness(s,i);if(d.error)return e({error:c(d.error),code:h(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(d.data)})}catch(s){const i=h(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
1
+ import{r as s,c as i,h as t,H as r}from"./p-fad19d75.js";import{E as e}from"./p-dce846bf.js";import{B as o}from"./p-c28db166.js";import{B as a}from"./p-af244664.js";import{C as n,a as d}from"./p-14c91ffd.js";import{g as c,a as h}from"./p-8115b2f4.js";import{J as p}from"./p-32286934.js";import"./p-57e1f2fd.js";import"./p-29c0b182.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-6c078cd1.js";const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){this.analytics=new p(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const d=await t.fetchBusiness(s,i);if(d.error)return e({error:c(d.error),code:h(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(d.data)})}catch(s){const i=h(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{m as justifi_business_details}
@@ -1 +1 @@
1
- import{r as e,c as t,h as o}from"./p-fad19d75.js";import{c as a}from"./p-57e1f2fd.js";import{J as r}from"./p-d6619366.js";import"./p-9c057196.js";import"./p-29c0b182.js";const i=class{constructor(o){e(this,o),this.bankAccountFormReady=t(this,"bankAccountFormReady",7),this.ready=t(this,"ready",7),this.bankAccountFormTokenized=t(this,"bankAccountFormTokenize",7),this.bankAccountFormValidated=t(this,"bankAccountFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.bankAccountFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'bankAccountFormTokenized' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.bankAccountFormTokenized.emit(e)}validateHandler(e){console.warn("The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.bankAccountFormValidated.emit(e)}componentWillLoad(){this.analytics=new r(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return o("justifi-payment-method-form",{key:"e2fa64d199a6c550329c9797a6951335e7c12bc6",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"bankAccount","payment-method-form-ready":this.bankAccountFormReady,"payment-method-form-validated":this.bankAccountFormValidated,"payment-method-form-tokenize":this.bankAccountFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_bank_account_form}
1
+ import{r as e,c as t,h as o}from"./p-fad19d75.js";import{c as a}from"./p-57e1f2fd.js";import{J as r}from"./p-32286934.js";import"./p-6c078cd1.js";import"./p-29c0b182.js";const i=class{constructor(o){e(this,o),this.bankAccountFormReady=t(this,"bankAccountFormReady",7),this.ready=t(this,"ready",7),this.bankAccountFormTokenized=t(this,"bankAccountFormTokenize",7),this.bankAccountFormValidated=t(this,"bankAccountFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.bankAccountFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'bankAccountFormTokenized' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.bankAccountFormTokenized.emit(e)}validateHandler(e){console.warn("The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.bankAccountFormValidated.emit(e)}componentWillLoad(){this.analytics=new r(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return o("justifi-payment-method-form",{key:"e2fa64d199a6c550329c9797a6951335e7c12bc6",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"bankAccount","payment-method-form-ready":this.bankAccountFormReady,"payment-method-form-validated":this.bankAccountFormValidated,"payment-method-form-tokenize":this.bankAccountFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_bank_account_form}
@@ -1 +1 @@
1
- import{r as e,c as t,h as r}from"./p-fad19d75.js";import{c as a}from"./p-57e1f2fd.js";import{J as i}from"./p-d6619366.js";import"./p-9c057196.js";import"./p-29c0b182.js";const o=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new i(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"58843b8a47f35d716845de11f6a66d8960bc0776",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{o as justifi_card_form}
1
+ import{r as e,c as t,h as r}from"./p-fad19d75.js";import{c as a}from"./p-57e1f2fd.js";import{J as i}from"./p-32286934.js";import"./p-6c078cd1.js";import"./p-29c0b182.js";const o=class{constructor(r){e(this,r),this.cardFormReady=t(this,"cardFormReady",7),this.ready=t(this,"ready",7),this.cardFormTokenized=t(this,"cardFormTokenize",7),this.cardFormValidated=t(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=a.iframeOrigin,this.singleLine=!1,this.internalStyleOverrides=void 0}readyHandler(e){console.warn("The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'"),this.cardFormReady.emit(e),this.ready.emit(e)}tokenizeHandler(e){console.warn("The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormTokenized.emit(e)}validateHandler(e){console.warn("The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future."),this.cardFormValidated.emit(e)}componentWillLoad(){this.analytics=new i(this)}disconnectedCallback(){this.analytics.cleanup()}async tokenize(...e){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...e)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}async resize(){if(console.warn("The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach."),!this.childRef)throw new Error("Cannot call validate");return this.childRef.resize()}render(){return r("justifi-payment-method-form",{key:"58843b8a47f35d716845de11f6a66d8960bc0776",ref:e=>{e&&(this.childRef=e)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-validate":this.cardFormValidated,"payment-method-form-tokenize":this.cardFormTokenized,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{o as justifi_card_form}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-fad19d75.js";import{P as i}from"./p-b87b27ba.js";import"./p-56f6ce4c.js";import{P as r}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as p}from"./p-dce846bf.js";import{J as d}from"./p-d6619366.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-9c057196.js";const c=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new d(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var p;try{const d=await e.fetchPayment(t,s);d.error?a({error:n(d.error),code:h(null===(p=d.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({payment:new r(d.data)})}catch(t){const s=h(null==t?void 0:t.code);a({error:n(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_payment_details}
1
+ import{r as t,c as s,h as e}from"./p-fad19d75.js";import{P as i}from"./p-b87b27ba.js";import"./p-56f6ce4c.js";import{P as r}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as p}from"./p-dce846bf.js";import{J as d}from"./p-32286934.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-6c078cd1.js";const c=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.paymentService=new i,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new d(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:e})=>async({onSuccess:i,onError:a})=>{var p;try{const d=await e.fetchPayment(t,s);d.error?a({error:n(d.error),code:h(null===(p=d.error)||void 0===p?void 0:p.code),severity:o.ERROR}):i({payment:new r(d.data)})}catch(t){const s=h(null==t?void 0:t.code);a({error:n(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new i}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):e("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_payment_details}
@@ -1 +1 @@
1
- import{p as t}from"./p-9c057196.js";import{c as i}from"./p-57e1f2fd.js";import{A as s}from"./p-29c0b182.js";class e{async record(t){return s({apiOrigin:i.proxyApiOrigin}).post("analytics",JSON.stringify(t))}}class r{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents()}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submitted","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(i=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:i.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}export{r as J}
1
+ import{p as t}from"./p-6c078cd1.js";import{c as i}from"./p-57e1f2fd.js";import{A as s}from"./p-29c0b182.js";class e{async record(t){return s({apiOrigin:i.proxyApiOrigin}).post("analytics",JSON.stringify(t))}}class r{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents()}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submitted","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(i=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:i.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}export{r as J}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-fad19d75.js";import{m as o,P as e}from"./p-3f5e7e86.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as r}from"./p-e3fab0e2.js";import{C as a,a as h}from"./p-14c91ffd.js";import{g as p,a as d}from"./p-8115b2f4.js";import{E as n}from"./p-dce846bf.js";import{J as c}from"./p-d6619366.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-9c057196.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var h;try{const n=await i.fetchPayout(t,s);n.error?e({error:p(n.error),code:d(null===(h=n.error)||void 0===h?void 0:h.code),severity:a.ERROR}):o(new r(n.data))}catch(t){e({error:p(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:a.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payout_details}
1
+ import{r as t,c as s,h as i}from"./p-fad19d75.js";import{m as o,P as e}from"./p-3f5e7e86.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as r}from"./p-e3fab0e2.js";import{C as a,a as h}from"./p-14c91ffd.js";import{g as p,a as d}from"./p-8115b2f4.js";import{E as n}from"./p-dce846bf.js";import{J as c}from"./p-32286934.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-6c078cd1.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var h;try{const n=await i.fetchPayout(t,s);n.error?e({error:p(n.error),code:d(null===(h=n.error)||void 0===h?void 0:h.code),severity:a.ERROR}):o(new r(n.data))}catch(t){e({error:p(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:a.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payout_details}
@@ -1 +1 @@
1
- const e={name:"@justifi/webcomponents",version:"4.19.0-rc",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:e2e":"stencil test --e2e","test:file":"stencil test --spec --watch --"},dependencies:{"@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0",puppeteer:"^21.0.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
1
+ const e={name:"@justifi/webcomponents",version:"4.19.1-rc",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:e2e":"stencil test --e2e","test:file":"stencil test --spec --watch --"},dependencies:{"@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0",puppeteer:"^21.0.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
@@ -1 +1 @@
1
- import{r as o,c as r,h as t}from"./p-fad19d75.js";import{c as i,F as a}from"./p-2eab3c90.js";import{b as e,a as s}from"./p-3fd13ca3.js";import{a as f,i as c,p as b}from"./p-85fc69e5.js";import{A as d}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as n}from"./p-57e1f2fd.js";import{B as l,a as m}from"./p-d89bad72.js";import{B as h}from"./p-af244664.js";import{J as u}from"./p-d6619366.js";import{S as j}from"./p-ba4bae6f.js";import"./p-89887332.js";import"./p-6078a370.js";import"./p-ba5fae28.js";import"./p-1ff8810b.js";import"./p-9c057196.js";const v=i(Object.assign(Object.assign({},e().fields),{legal_address:f(),additional_questions:s(),representative:c("representative")})),p=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.clickEventNew=r(this,"click-event",7),this.clickEventOld=r(this,"clickEvent",7),this.instantiateBusiness=o=>{const r=new h(o);this.formController.setInitialValues(Object.assign({},r))},this.sendData=async()=>{this.isLoading=!0;try{const o=this.formController.values.getValue(),r=this.formController.getInitialValues(),t=b(o,r),i=await this.api.patch(this.businessEndpoint,JSON.stringify(t));this.handleReponse(i)}catch(o){this.errorMessage=l.patchData}finally{this.isLoading=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const o=await this.api.get(this.businessEndpoint);this.instantiateBusiness(o.data)}catch(o){this.errorMessage=l.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=o=>{o.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.errorMessage=void 0}componentWillLoad(){this.analytics=new u(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new a(v),this.api=d({authToken:this.authToken,apiOrigin:n.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}fireClickEvents(o){console.warn("`clickEvent` is deprecated and will be removed in the next major release. Please use `click-event` instead."),this.clickEventNew.emit(o),this.clickEventOld.emit(o)}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isLoading}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(o){o.error&&(this.errorMessage=l.patchData),this.submitted.emit({data:o}),this.instantiateBusiness(o.data)}render(){return t(j,{key:"60989d23631d6a02e9a25313dd7297a61063a09c",exportparts:"label,input,input-invalid"},t("form",{key:"d961174a3e93ed505012919a0e7e036bd61a4902",onSubmit:this.validateAndSubmit},t("div",{key:"2be81a7f0e3b568266ee66127f2b537d57c36762",class:"row gap-3"},t("h1",{key:"eefc257f687ff24cebf13155a571398e3ddbcabd"},this.title),t("form-alert",{key:"173d3ee84f5a952a51884ab5f3818c768fcc9b08",text:this.errorMessage,hideAlert:this.hideErrors}),t("div",{key:"bfd7fd73aca630fcf56f468d912759d5a96de172",class:"col-12 mb-4"},t("justifi-business-core-info",{key:"dc15f46a28301c03ccd884ff09740e87d67b2e5a",formController:this.formController})),t("div",{key:"b4cd6ba605ea28a7692cc561951bb69ad93bb8f5",class:"col-12 mb-4"},t("justifi-legal-address-form",{key:"670f320ff6d1ba86a34f5b42dd97a5d38e96c209",formController:this.formController})),t("div",{key:"0afb9d18e6ecb951cefda4df5dd133d31359cecc",class:"col-12 mb-4"},t("justifi-additional-questions",{key:"6953718bea9525126db35adc44a9c8754234816a",formController:this.formController})),t("div",{key:"f88b576b9159cd43f17d5a63c26acc4b53dfa9a0",class:"col-12 mb-4"},t("justifi-business-representative",{key:"4353116715c7f7b906c3c0eae322df04703fd8e5",formController:this.formController})),t("div",{key:"d626b0738ce71f7529fa270d7a2c479f517e48a2",class:"col-12 d-flex flex-row-reverse"},t("button",{key:"9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b",type:"submit",class:"btn btn-primary jfi-submit-button",disabled:this.disabledState,onClick:()=>this.fireClickEvents({name:m.submit})},this.isLoading?"Loading...":"Submit")))))}};p.style=":host{display:block}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox){font-family:var(--jfi-layout-font-family);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{p as justifi_business_form}
1
+ import{r as o,c as r,h as t}from"./p-fad19d75.js";import{c as i,F as a}from"./p-2eab3c90.js";import{b as e,a as s}from"./p-3fd13ca3.js";import{a as f,i as c,p as b}from"./p-85fc69e5.js";import{A as d}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as n}from"./p-57e1f2fd.js";import{B as l,a as m}from"./p-d89bad72.js";import{B as h}from"./p-af244664.js";import{J as u}from"./p-32286934.js";import{S as j}from"./p-ba4bae6f.js";import"./p-89887332.js";import"./p-6078a370.js";import"./p-ba5fae28.js";import"./p-1ff8810b.js";import"./p-6c078cd1.js";const v=i(Object.assign(Object.assign({},e().fields),{legal_address:f(),additional_questions:s(),representative:c("representative")})),p=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.clickEventNew=r(this,"click-event",7),this.clickEventOld=r(this,"clickEvent",7),this.instantiateBusiness=o=>{const r=new h(o);this.formController.setInitialValues(Object.assign({},r))},this.sendData=async()=>{this.isLoading=!0;try{const o=this.formController.values.getValue(),r=this.formController.getInitialValues(),t=b(o,r),i=await this.api.patch(this.businessEndpoint,JSON.stringify(t));this.handleReponse(i)}catch(o){this.errorMessage=l.patchData}finally{this.isLoading=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const o=await this.api.get(this.businessEndpoint);this.instantiateBusiness(o.data)}catch(o){this.errorMessage=l.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=o=>{o.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.errorMessage=void 0}componentWillLoad(){this.analytics=new u(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new a(v),this.api=d({authToken:this.authToken,apiOrigin:n.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}fireClickEvents(o){console.warn("`clickEvent` is deprecated and will be removed in the next major release. Please use `click-event` instead."),this.clickEventNew.emit(o),this.clickEventOld.emit(o)}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isLoading}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(o){o.error&&(this.errorMessage=l.patchData),this.submitted.emit({data:o}),this.instantiateBusiness(o.data)}render(){return t(j,{key:"60989d23631d6a02e9a25313dd7297a61063a09c",exportparts:"label,input,input-invalid"},t("form",{key:"d961174a3e93ed505012919a0e7e036bd61a4902",onSubmit:this.validateAndSubmit},t("div",{key:"2be81a7f0e3b568266ee66127f2b537d57c36762",class:"row gap-3"},t("h1",{key:"eefc257f687ff24cebf13155a571398e3ddbcabd"},this.title),t("form-alert",{key:"173d3ee84f5a952a51884ab5f3818c768fcc9b08",text:this.errorMessage,hideAlert:this.hideErrors}),t("div",{key:"bfd7fd73aca630fcf56f468d912759d5a96de172",class:"col-12 mb-4"},t("justifi-business-core-info",{key:"dc15f46a28301c03ccd884ff09740e87d67b2e5a",formController:this.formController})),t("div",{key:"b4cd6ba605ea28a7692cc561951bb69ad93bb8f5",class:"col-12 mb-4"},t("justifi-legal-address-form",{key:"670f320ff6d1ba86a34f5b42dd97a5d38e96c209",formController:this.formController})),t("div",{key:"0afb9d18e6ecb951cefda4df5dd133d31359cecc",class:"col-12 mb-4"},t("justifi-additional-questions",{key:"6953718bea9525126db35adc44a9c8754234816a",formController:this.formController})),t("div",{key:"f88b576b9159cd43f17d5a63c26acc4b53dfa9a0",class:"col-12 mb-4"},t("justifi-business-representative",{key:"4353116715c7f7b906c3c0eae322df04703fd8e5",formController:this.formController})),t("div",{key:"d626b0738ce71f7529fa270d7a2c479f517e48a2",class:"col-12 d-flex flex-row-reverse"},t("button",{key:"9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b",type:"submit",class:"btn btn-primary jfi-submit-button",disabled:this.disabledState,onClick:()=>this.fireClickEvents({name:m.submit})},this.isLoading?"Loading...":"Submit")))))}};p.style=":host{display:block}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox){font-family:var(--jfi-layout-font-family);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{p as justifi_business_form}
@@ -1 +1 @@
1
- import{r as s,c as t,h as r}from"./p-fad19d75.js";import{c as o}from"./p-57e1f2fd.js";import{A as e}from"./p-29c0b182.js";import{C as i,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as p}from"./p-d6619366.js";import"./p-9c057196.js";class d{async fetchGrossVolumeChartData(s,t){return e({authToken:t,apiOrigin:o.proxyApiOrigin}).get(`account/${s}/reports/gross_volume`)}}const m=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new p(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var a;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?e({error:n(c.error),code:h(null===(a=c.error)||void 0===a?void 0:a.code),severity:i.ERROR}):o(c.data)}catch(s){const t=h(null==s?void 0:s.code);e({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_gross_payment_chart}
1
+ import{r as s,c as t,h as r}from"./p-fad19d75.js";import{c as o}from"./p-57e1f2fd.js";import{A as e}from"./p-29c0b182.js";import{C as i,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as p}from"./p-32286934.js";import"./p-6c078cd1.js";class d{async fetchGrossVolumeChartData(s,t){return e({authToken:t,apiOrigin:o.proxyApiOrigin}).get(`account/${s}/reports/gross_volume`)}}const m=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new p(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var a;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?e({error:n(c.error),code:h(null===(a=c.error)||void 0===a?void 0:a.code),severity:i.ERROR}):o(c.data)}catch(s){const t=h(null==s?void 0:s.code);e({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_gross_payment_chart}
@@ -1 +1 @@
1
- import{r as e,c as n,h as o,H as i}from"./p-fad19d75.js";import{p as t}from"./p-9c057196.js";import{m as r}from"./p-83125497.js";var a,s={exports:{}};a=s,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,o,i=0,t=!1,r=!1,s=7,c="[iFrameSizer]",d=c.length,f=null,u=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},h=null,w=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,o){H(o,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],q):a.exports=q(),window.iFrameResize=window.iFrameResize||q()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,o){e.addEventListener(n,o,!1)}function y(e,n,o){e.removeEventListener(n,o,!1)}function v(e){return m[e]?m[e].log:t}function j(e,n){x("log",e,n,v(e))}function k(e,n){x("info",e,n,v(e))}function z(e,n){x("warn",e,n,!0)}function x(e,n,o,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return c+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),o)}function F(e){function n(){o("Height"),o("Width"),E((function(){W(L),R(V),h("onResized",L)}),L,"init")}function o(e){var n=Number(m[V]["max"+e]),o=Number(m[V]["min"+e]),i=e.toLowerCase(),t=Number(L[i]);j(V,"Checking "+i+" is in range "+o+"-"+n),t<o&&(t=o,j(V,"Set "+i+" to min value")),t>n&&(t=n,j(V,"Set "+i+" to max value")),L[i]=""+t}function i(e){return H.slice(H.indexOf(":")+s+e)}function t(e,n){var o,i;o=function(){var o,i;N("Send Page Info","pageInfo:"+(o=document.body.getBoundingClientRect(),i=L.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-o.top,10),offsetLeft:parseInt(i.left-o.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[i=n]||(b[i]=setTimeout((function(){b[i]=null,o()}),32))}function r(e){var n=e.getBoundingClientRect();return O(V),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function a(e){var n=e?r(L.iframe):{x:0,y:0},o={x:Number(L.width)+n.x,y:Number(L.height)+n.y};j(V,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(f=o,u(),j(V,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](o.x,o.y):z(V,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===h("onScroll",f)?T():R(V)}function l(e){var n={};if(0===Number(L.width)&&0===Number(L.height)){var o=i(9).split(":");n={x:o[1],y:o[0]}}else n={x:L.width,y:L.height};h(e,{iframe:L.iframe,screenX:Number(n.x),screenY:Number(n.y),type:L.type})}function h(e,n){return M(V,e,n)}var w,g,v,x,F,I,H=e.data,L={},V=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in m)N("iFrame requested init",A(e),m[e].iframe,e)}():c===(""+H).slice(0,d)&&H.slice(d).split(":")[0]in m?(x=(v=H.slice(d).split(":"))[1]?parseInt(v[1],10):0,F=m[v[0]]&&m[v[0]].iframe,I=getComputedStyle(F),L={iframe:F,id:v[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(I)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(I),width:v[2],type:v[3]},m[V=L.id]&&(m[V].loaded=!0),(g=L.type in{true:1,false:1,undefined:1})&&j(V,"Ignoring init message from meta parent page"),!g&&function(e){var n=!0;return m[e]||(n=!1,z(L.type+" No settings for "+e+". Message was: "+H)),n}(V)&&(j(V,"Received: "+H),w=!0,null===L.iframe&&(z(V,"IFrame ("+L.id+") not found"),w=!1),w&&function(){var n,o=e.origin,i=m[V]&&m[V].checkOrigin;if(i&&""+o!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(j(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===o){n=!0;break}return n}():(j(V,"Checking connection is from: "+(n=m[V]&&m[V].remoteHost)),o===n)))throw new Error("Unexpected message received from: "+o+" for "+L.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[V]&&m[V].firstRun&&m[V]&&(m[V].firstRun=!1),L.type){case"close":S(L.iframe);break;case"message":d=i(6),j(V,"onMessage passed: {iframe: "+L.iframe.id+", message: "+d+"}"),h("onMessage",{iframe:L.iframe,message:JSON.parse(d)}),j(V,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":m[V].autoResize=JSON.parse(i(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":t(m[V]&&m[V].iframe,V),function(){function e(e,i){function r(){m[o]?t(m[o].iframe,o):n()}["scroll","resize"].forEach((function(n){j(o,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",y)}var o=V;e("Add ",p),m[o]&&(m[o].stopPageInfo=n)}();break;case"pageInfoStop":m[V]&&m[V].stopPageInfo&&(m[V].stopPageInfo(),delete m[V].stopPageInfo);break;case"inPageLink":o=i(9).split("#")[1]||"",s=decodeURIComponent(o),(c=document.getElementById(s)||document.getElementsByName(s)[0])?(e=r(c),j(V,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},u(),j(V,"--")):window.top===window.self?j(V,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):j(V,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":C(L);break;case"init":n(),h("onInit",L.iframe);break;default:0===Number(L.width)&&0===Number(L.height)?z("Unsupported message received ("+L.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,o,s,c,d}())):k(V,"Ignored: "+H)}function M(e,n,o){var i=null,t=null;if(m[e]){if("function"!=typeof(i=m[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");t=i(o)}return t}function I(e){delete m[e.id]}function S(e){var o=e.id;if(!1!==M(o,"onClose",o)){j(o,"Removing iFrame: "+o);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}M(o,"onClosed",o),j(o,"--"),I(e),n&&(n.disconnect(),n=null)}else j(o,"Close iframe cancelled by onClose event")}function O(n){null===f&&j(n,"Get page position: "+(f={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+f.y)}function R(e){null!==f&&(window.scrollTo(f.x,f.y),j(e,"Set page position: "+f.x+","+f.y),T())}function T(){f=null}function C(e){j(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),E((function(){W(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,j(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function n(n){return"0px"===(m[e]&&m[e].iframe.style[n])}m[e]&&null!==m[e].iframe.offsetParent&&(n("height")||n("width"))&&N("Visibility change","resize",m[e].iframe,e)}(e)}))}function n(n){j("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}var o,i=g();i&&(o=document.querySelector("body"),new i(n).observe(o,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function o(o){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",j(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):j("undefined","messageData id not set")}(o),n(o)}var i=e.iframe.id;m[i]&&(m[i].sizeHeight&&o("height"),m[i].sizeWidth&&o("width"))}function E(e,n,o){o!==n.type&&u&&!window.jasmine?(j(n.id,"Requesting animation frame"),u(e)):e()}function N(e,n,o,i,t){var r,a=!1;m[i=i||o.id]&&(o&&"contentWindow"in o&&null!==o.contentWindow?(j(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=m[i]&&m[i].targetOrigin)),o.contentWindow.postMessage(c+n,r)):z(i,"["+e+"] IFrame("+i+") not found"),t&&m[i]&&m[i].warningTimeout&&(m[i].msgTimeout=setTimeout((function(){!m[i]||m[i].loaded||a||(a=!0,z(i,"IFrame has not responded within "+m[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[i].warningTimeout)))}function A(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function H(o,r){function a(e){var n=e.split("Callback");if(2===n.length){var o="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[o]=this[e],delete this[e],z(d,"Deprecated: '"+e+"' has been renamed '"+o+"'. The old method will be removed in the next major version.")}}var s,c,d=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(o.id=(n=r&&r.id||w.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),t=(r||{}).log,j(e,"Added missing iframe ID: "+e+" ("+o.src+")")),e}(o.id);d in m&&"iFrameResizer"in o?z(d,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},m[d]=Object.create(null),m[d].iframe=o,m[d].firstRun=!0,m[d].remoteHost=o.src&&o.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in w)Object.prototype.hasOwnProperty.call(w,n)&&(m[d][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:w[n])}(e),m[d]&&(m[d].targetOrigin=!0===m[d].checkOrigin?""===(n=m[d].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(j(d,"IFrame scrolling "+(m[d]&&m[d].scrolling?"enabled":"disabled")+" for "+d),o.style.overflow=!1===(m[d]&&m[d].scrolling)?"hidden":"auto",m[d]&&m[d].scrolling){case"omit":break;case!0:o.scrolling="yes";break;case!1:o.scrolling="no";break;default:o.scrolling=m[d]?m[d].scrolling:"no"}}(),function(){function e(e){var n=m[d][e];1/0!==n&&0!==n&&(o.style[e]="number"==typeof n?n+"px":n,j(d,"Set "+e+" = "+o.style[e]))}function n(e){if(m[d]["min"+e]>m[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[d]&&m[d].bodyMargin)&&"0"!==(m[d]&&m[d].bodyMargin)||(m[d].bodyMarginV1=m[d].bodyMargin,m[d].bodyMargin=m[d].bodyMargin+"px"),s=A(d),(c=g())&&(n=function(e){if(!o.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===o&&S(o)}))}))}));return n.observe(o.parentNode,{childList:!0}),n}(c)),p(o,"load",(function(){N("iFrame.onload",s,o,e,!0),(!m[d]||!m[d].firstRun)&&m[d]&&m[d].heightCalculationMethod in l&&C({iframe:o,height:0,width:0,type:"init"})})),N("init",s,o,e,!0),m[d]&&(m[d].iframe.iFrameResizer={close:S.bind(null,m[d].iframe),removeListeners:I.bind(null,m[d].iframe),resize:N.bind(null,"Window resize","resize",m[d].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,m[d].iframe,d)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),m[d].iframe,d)}}))}function L(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function V(){"hidden"!==document.visibilityState&&(j("document","Trigger event: Visibility change"),L((function(){P("Tab Visible","resize")}),16))}function P(e,n){Object.keys(m).forEach((function(o){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(o)&&N(e,n,m[o].iframe,o)}))}function q(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!u;e+=1)u=window[n[e]+"RequestAnimationFrame"];u?u=u.bind(window):j("setup","RequestAnimationFrame not supported")}(),p(window,"message",F),p(window,"resize",(function(){j("window","Trigger event: resize"),L((function(){P("Window resize","resize")}),16)})),p(document,"visibilitychange",V),p(document,"-webkit-visibilitychange",V),function(i,t){switch(o=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),n.bind(e,i));break;case"object":n(i,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return o}}}();const c=s.exports,d={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};class f{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const o=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(o,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((o=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),o(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const u=class{constructor(o){e(this,o),this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7),this.paymentMethodFormValidated=n(this,"paymentMethodFormValidated",7),this.paymentMethodFormTokenized=n(this,"paymentMethodFormTokenized",7),this.computedTheme=(()=>{const e=getComputedStyle(document.body);return{loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}}})(),this.dispatchMessageEvent=e=>{const{eventType:n,data:o}=e.data,i=d[this.paymentMethodFormType];n===i.ready?(this.paymentMethodFormReady.emit(o),this.sendStyleOverrides()):n===i.tokenize?this.paymentMethodFormTokenized.emit(o):n===i.validate&&this.paymentMethodFormValidated.emit(o)},this.postMessage=(e,n)=>{this.frameService.postMessage(e,n)},this.paymentMethodFormType=void 0,this.paymentMethodFormValidationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async resize(){this.postMessage(d[this.paymentMethodFormType].resize)}async tokenize(e,n,o){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].tokenize,{clientId:e,paymentMethodMetadata:n,account:o,componentVersion:t.version})}async validate(){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].validate)}sendStyleOverrides(){this.computedTheme&&this.postMessage(d[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}getIframeSrc(){let e=[];return this.paymentMethodFormValidationMode&&e.push(`validationMode=${this.paymentMethodFormValidationMode}`),this.singleLine&&e.push(`singleLine=${this.singleLine}`),`${this.iframeOrigin}/${this.paymentMethodFormType}${r(e)}`}initializeFrameCommunicationService(){var e;this.frameService=new f(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}render(){return o(i,{key:"10987c92745fbff8bb85367db69b76e2bc786c88"},o("iframe",{key:"0622dd0201a04a3c918fd3d175d2a29f24609759",id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},onLoad:()=>{c({scrollbars:!1},this.iframeElement)}}))}};u.style=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";export{u as justifi_payment_method_form}
1
+ import{r as e,c as n,h as o,H as i}from"./p-fad19d75.js";import{p as t}from"./p-6c078cd1.js";import{m as r}from"./p-83125497.js";var a,s={exports:{}};a=s,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,o,i=0,t=!1,r=!1,s=7,c="[iFrameSizer]",d=c.length,f=null,u=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},h=null,w=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((o=window.jQuery).fn?o.fn.iFrameResize||(o.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,o){H(o,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],q):a.exports=q(),window.iFrameResize=window.iFrameResize||q()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,o){e.addEventListener(n,o,!1)}function y(e,n,o){e.removeEventListener(n,o,!1)}function v(e){return m[e]?m[e].log:t}function j(e,n){x("log",e,n,v(e))}function k(e,n){x("info",e,n,v(e))}function z(e,n){x("warn",e,n,!0)}function x(e,n,o,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return c+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),o)}function F(e){function n(){o("Height"),o("Width"),E((function(){W(L),R(V),h("onResized",L)}),L,"init")}function o(e){var n=Number(m[V]["max"+e]),o=Number(m[V]["min"+e]),i=e.toLowerCase(),t=Number(L[i]);j(V,"Checking "+i+" is in range "+o+"-"+n),t<o&&(t=o,j(V,"Set "+i+" to min value")),t>n&&(t=n,j(V,"Set "+i+" to max value")),L[i]=""+t}function i(e){return H.slice(H.indexOf(":")+s+e)}function t(e,n){var o,i;o=function(){var o,i;N("Send Page Info","pageInfo:"+(o=document.body.getBoundingClientRect(),i=L.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-o.top,10),offsetLeft:parseInt(i.left-o.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[i=n]||(b[i]=setTimeout((function(){b[i]=null,o()}),32))}function r(e){var n=e.getBoundingClientRect();return O(V),{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function a(e){var n=e?r(L.iframe):{x:0,y:0},o={x:Number(L.width)+n.x,y:Number(L.height)+n.y};j(V,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(f=o,u(),j(V,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](o.x,o.y):z(V,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===h("onScroll",f)?T():R(V)}function l(e){var n={};if(0===Number(L.width)&&0===Number(L.height)){var o=i(9).split(":");n={x:o[1],y:o[0]}}else n={x:L.width,y:L.height};h(e,{iframe:L.iframe,screenX:Number(n.x),screenY:Number(n.y),type:L.type})}function h(e,n){return M(V,e,n)}var w,g,v,x,F,I,H=e.data,L={},V=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in m)N("iFrame requested init",A(e),m[e].iframe,e)}():c===(""+H).slice(0,d)&&H.slice(d).split(":")[0]in m?(x=(v=H.slice(d).split(":"))[1]?parseInt(v[1],10):0,F=m[v[0]]&&m[v[0]].iframe,I=getComputedStyle(F),L={iframe:F,id:v[0],height:x+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(I)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(I),width:v[2],type:v[3]},m[V=L.id]&&(m[V].loaded=!0),(g=L.type in{true:1,false:1,undefined:1})&&j(V,"Ignoring init message from meta parent page"),!g&&function(e){var n=!0;return m[e]||(n=!1,z(L.type+" No settings for "+e+". Message was: "+H)),n}(V)&&(j(V,"Received: "+H),w=!0,null===L.iframe&&(z(V,"IFrame ("+L.id+") not found"),w=!1),w&&function(){var n,o=e.origin,i=m[V]&&m[V].checkOrigin;if(i&&""+o!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(j(V,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===o){n=!0;break}return n}():(j(V,"Checking connection is from: "+(n=m[V]&&m[V].remoteHost)),o===n)))throw new Error("Unexpected message received from: "+o+" for "+L.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(m[V]&&m[V].firstRun&&m[V]&&(m[V].firstRun=!1),L.type){case"close":S(L.iframe);break;case"message":d=i(6),j(V,"onMessage passed: {iframe: "+L.iframe.id+", message: "+d+"}"),h("onMessage",{iframe:L.iframe,message:JSON.parse(d)}),j(V,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":m[V].autoResize=JSON.parse(i(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":t(m[V]&&m[V].iframe,V),function(){function e(e,i){function r(){m[o]?t(m[o].iframe,o):n()}["scroll","resize"].forEach((function(n){j(o,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",y)}var o=V;e("Add ",p),m[o]&&(m[o].stopPageInfo=n)}();break;case"pageInfoStop":m[V]&&m[V].stopPageInfo&&(m[V].stopPageInfo(),delete m[V].stopPageInfo);break;case"inPageLink":o=i(9).split("#")[1]||"",s=decodeURIComponent(o),(c=document.getElementById(s)||document.getElementsByName(s)[0])?(e=r(c),j(V,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y),f={x:e.x,y:e.y},u(),j(V,"--")):window.top===window.self?j(V,"In page link #"+o+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(o):j(V,"In page link #"+o+" not found and window.parentIFrame not found");break;case"reset":C(L);break;case"init":n(),h("onInit",L.iframe);break;default:0===Number(L.width)&&0===Number(L.height)?z("Unsupported message received ("+L.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,o,s,c,d}())):k(V,"Ignored: "+H)}function M(e,n,o){var i=null,t=null;if(m[e]){if("function"!=typeof(i=m[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");t=i(o)}return t}function I(e){delete m[e.id]}function S(e){var o=e.id;if(!1!==M(o,"onClose",o)){j(o,"Removing iFrame: "+o);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}M(o,"onClosed",o),j(o,"--"),I(e),n&&(n.disconnect(),n=null)}else j(o,"Close iframe cancelled by onClose event")}function O(n){null===f&&j(n,"Get page position: "+(f={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+f.y)}function R(e){null!==f&&(window.scrollTo(f.x,f.y),j(e,"Set page position: "+f.x+","+f.y),T())}function T(){f=null}function C(e){j(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),E((function(){W(e),N("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,j(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function n(n){return"0px"===(m[e]&&m[e].iframe.style[n])}m[e]&&null!==m[e].iframe.offsetParent&&(n("height")||n("width"))&&N("Visibility change","resize",m[e].iframe,e)}(e)}))}function n(n){j("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}var o,i=g();i&&(o=document.querySelector("body"),new i(n).observe(o,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function o(o){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",j(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):j("undefined","messageData id not set")}(o),n(o)}var i=e.iframe.id;m[i]&&(m[i].sizeHeight&&o("height"),m[i].sizeWidth&&o("width"))}function E(e,n,o){o!==n.type&&u&&!window.jasmine?(j(n.id,"Requesting animation frame"),u(e)):e()}function N(e,n,o,i,t){var r,a=!1;m[i=i||o.id]&&(o&&"contentWindow"in o&&null!==o.contentWindow?(j(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(r=m[i]&&m[i].targetOrigin)),o.contentWindow.postMessage(c+n,r)):z(i,"["+e+"] IFrame("+i+") not found"),t&&m[i]&&m[i].warningTimeout&&(m[i].msgTimeout=setTimeout((function(){!m[i]||m[i].loaded||a||(a=!0,z(i,"IFrame has not responded within "+m[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),m[i].warningTimeout)))}function A(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function H(o,r){function a(e){var n=e.split("Callback");if(2===n.length){var o="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[o]=this[e],delete this[e],z(d,"Deprecated: '"+e+"' has been renamed '"+o+"'. The old method will be removed in the next major version.")}}var s,c,d=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(o.id=(n=r&&r.id||w.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),t=(r||{}).log,j(e,"Added missing iframe ID: "+e+" ("+o.src+")")),e}(o.id);d in m&&"iFrameResizer"in o?z(d,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},m[d]=Object.create(null),m[d].iframe=o,m[d].firstRun=!0,m[d].remoteHost=o.src&&o.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in w)Object.prototype.hasOwnProperty.call(w,n)&&(m[d][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:w[n])}(e),m[d]&&(m[d].targetOrigin=!0===m[d].checkOrigin?""===(n=m[d].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(j(d,"IFrame scrolling "+(m[d]&&m[d].scrolling?"enabled":"disabled")+" for "+d),o.style.overflow=!1===(m[d]&&m[d].scrolling)?"hidden":"auto",m[d]&&m[d].scrolling){case"omit":break;case!0:o.scrolling="yes";break;case!1:o.scrolling="no";break;default:o.scrolling=m[d]?m[d].scrolling:"no"}}(),function(){function e(e){var n=m[d][e];1/0!==n&&0!==n&&(o.style[e]="number"==typeof n?n+"px":n,j(d,"Set "+e+" = "+o.style[e]))}function n(e){if(m[d]["min"+e]>m[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(m[d]&&m[d].bodyMargin)&&"0"!==(m[d]&&m[d].bodyMargin)||(m[d].bodyMarginV1=m[d].bodyMargin,m[d].bodyMargin=m[d].bodyMargin+"px"),s=A(d),(c=g())&&(n=function(e){if(!o.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===o&&S(o)}))}))}));return n.observe(o.parentNode,{childList:!0}),n}(c)),p(o,"load",(function(){N("iFrame.onload",s,o,e,!0),(!m[d]||!m[d].firstRun)&&m[d]&&m[d].heightCalculationMethod in l&&C({iframe:o,height:0,width:0,type:"init"})})),N("init",s,o,e,!0),m[d]&&(m[d].iframe.iFrameResizer={close:S.bind(null,m[d].iframe),removeListeners:I.bind(null,m[d].iframe),resize:N.bind(null,"Window resize","resize",m[d].iframe),moveToAnchor:function(e){N("Move to anchor","moveToAnchor:"+e,m[d].iframe,d)},sendMessage:function(e){N("Send Message","message:"+(e=JSON.stringify(e)),m[d].iframe,d)}}))}function L(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function V(){"hidden"!==document.visibilityState&&(j("document","Trigger event: Visibility change"),L((function(){P("Tab Visible","resize")}),16))}function P(e,n){Object.keys(m).forEach((function(o){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(o)&&N(e,n,m[o].iframe,o)}))}function q(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,e),o.push(n))}var o;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!u;e+=1)u=window[n[e]+"RequestAnimationFrame"];u?u=u.bind(window):j("setup","RequestAnimationFrame not supported")}(),p(window,"message",F),p(window,"resize",(function(){j("window","Trigger event: resize"),L((function(){P("Window resize","resize")}),16)})),p(document,"visibilitychange",V),p(document,"-webkit-visibilitychange",V),function(i,t){switch(o=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),n.bind(e,i));break;case"object":n(i,t);break;default:throw new TypeError("Unexpected data type ("+typeof t+")")}return o}}}();const c=s.exports,d={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};class f{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const o=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(o,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((o=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),o(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const u=class{constructor(o){e(this,o),this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7),this.paymentMethodFormValidated=n(this,"paymentMethodFormValidated",7),this.paymentMethodFormTokenized=n(this,"paymentMethodFormTokenized",7),this.computedTheme=(()=>{const e=getComputedStyle(document.body);return{loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}}})(),this.dispatchMessageEvent=e=>{const{eventType:n,data:o}=e.data,i=d[this.paymentMethodFormType];n===i.ready?(this.paymentMethodFormReady.emit(o),this.sendStyleOverrides()):n===i.tokenize?this.paymentMethodFormTokenized.emit(o):n===i.validate&&this.paymentMethodFormValidated.emit(o)},this.postMessage=(e,n)=>{this.frameService.postMessage(e,n)},this.paymentMethodFormType=void 0,this.paymentMethodFormValidationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async resize(){this.postMessage(d[this.paymentMethodFormType].resize)}async tokenize(e,n,o){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].tokenize,{clientId:e,paymentMethodMetadata:n,account:o,componentVersion:t.version})}async validate(){return this.frameService.postMessageWithResponseListener(d[this.paymentMethodFormType].validate)}sendStyleOverrides(){this.computedTheme&&this.postMessage(d[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}getIframeSrc(){let e=[];return this.paymentMethodFormValidationMode&&e.push(`validationMode=${this.paymentMethodFormValidationMode}`),this.singleLine&&e.push(`singleLine=${this.singleLine}`),`${this.iframeOrigin}/${this.paymentMethodFormType}${r(e)}`}initializeFrameCommunicationService(){var e;this.frameService=new f(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}render(){return o(i,{key:"10987c92745fbff8bb85367db69b76e2bc786c88"},o("iframe",{key:"0622dd0201a04a3c918fd3d175d2a29f24609759",id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},onLoad:()=>{c({scrollbars:!1},this.iframeElement)}}))}};u.style=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";export{u as justifi_payment_method_form}
@@ -1 +1 @@
1
- import{r as e,c as t,h as i}from"./p-fad19d75.js";import{C as s,a as o}from"./p-14c91ffd.js";import{g as r,a as c}from"./p-8115b2f4.js";import{A as a}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as h}from"./p-57e1f2fd.js";import{J as n}from"./p-d6619366.js";import"./p-9c057196.js";class d{async fetchCheckout(e,t){const i=`checkouts/${t}`;return a({authToken:e,apiOrigin:h.proxyApiOrigin}).get(i)}async complete(e,t,i){const s=`checkouts/${t}/complete`,o={payment_mode:i.payment_mode};return i.payment_token&&(o.payment_token=i.payment_token),a({authToken:e,apiOrigin:h.proxyApiOrigin}).post(s,JSON.stringify(o))}}const u=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.iframeOrigin=void 0,this.authToken=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){this.analytics=new n(this),this.initializeGetCheckout()}disconnectedCallback(){this.analytics.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:e,checkoutId:t,service:i})=>async({onSuccess:o,onError:a})=>{var h;try{const n=await i.fetchCheckout(e,t);if(n.error)return a({error:r(n.error),code:c(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR});o({checkout:n.data})}catch(e){const t=c(null==e?void 0:e.code);return a({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d}),this.complete=(({authToken:e,checkoutId:t,service:i})=>async({payment:o,onSuccess:a,onError:h})=>{var n;try{const d=await i.complete(e,t,o);if(d.error)return h({error:r(d.error),code:c(null===(n=d.error)||void 0===n?void 0:n.code),severity:s.ERROR});a(d)}catch(e){const t=c(null==e?void 0:e.code);return h({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:o.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(e){this.checkoutCoreRef.fillBillingForm(e)}render(){return i("justifi-checkout-core",{key:"d2f6bfed1be767edcf4ba21cddc503ff5efbec1a",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,ref:e=>{e&&(this.checkoutCoreRef=e)}},i("div",{key:"45ac1bea74ca8ef7999211b51fe7791225d61f00",slot:"insurance"},i("slot",{key:"13e051844cc7cb4aed98076ccd64954b2dd68228",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_checkout}
1
+ import{r as e,c as t,h as i}from"./p-fad19d75.js";import{C as s,a as o}from"./p-14c91ffd.js";import{g as r,a as c}from"./p-8115b2f4.js";import{A as a}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as h}from"./p-57e1f2fd.js";import{J as n}from"./p-32286934.js";import"./p-6c078cd1.js";class d{async fetchCheckout(e,t){const i=`checkouts/${t}`;return a({authToken:e,apiOrigin:h.proxyApiOrigin}).get(i)}async complete(e,t,i){const s=`checkouts/${t}/complete`,o={payment_mode:i.payment_mode};return i.payment_token&&(o.payment_token=i.payment_token),a({authToken:e,apiOrigin:h.proxyApiOrigin}).post(s,JSON.stringify(o))}}const u=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.iframeOrigin=void 0,this.authToken=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){this.analytics=new n(this),this.initializeGetCheckout()}disconnectedCallback(){this.analytics.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:e,checkoutId:t,service:i})=>async({onSuccess:o,onError:a})=>{var h;try{const n=await i.fetchCheckout(e,t);if(n.error)return a({error:r(n.error),code:c(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR});o({checkout:n.data})}catch(e){const t=c(null==e?void 0:e.code);return a({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d}),this.complete=(({authToken:e,checkoutId:t,service:i})=>async({payment:o,onSuccess:a,onError:h})=>{var n;try{const d=await i.complete(e,t,o);if(d.error)return h({error:r(d.error),code:c(null===(n=d.error)||void 0===n?void 0:n.code),severity:s.ERROR});a(d)}catch(e){const t=c(null==e?void 0:e.code);return h({error:e.message||e,code:t,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new d})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:o.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(e){this.checkoutCoreRef.fillBillingForm(e)}render(){return i("justifi-checkout-core",{key:"d2f6bfed1be767edcf4ba21cddc503ff5efbec1a",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,ref:e=>{e&&(this.checkoutCoreRef=e)}},i("div",{key:"45ac1bea74ca8ef7999211b51fe7791225d61f00",slot:"insurance"},i("slot",{key:"13e051844cc7cb4aed98076ccd64954b2dd68228",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_checkout}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as r}from"./p-fad19d75.js";import{t as o}from"./p-2b6c9c4f.js";import{m as e,P as a}from"./p-3f5e7e86.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as n}from"./p-e3fab0e2.js";import{C as p,a as c}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as u}from"./p-dce846bf.js";import{J as m}from"./p-d6619366.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-9c057196.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:o,onError:e})=>{var a,c;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return e({error:h(u.error),code:d(null===(c=u.error)||void 0===c?void 0:c.code),severity:p.ERROR});{const t=Object.assign({},u.page_info);o({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){return e({error:h(t),code:d(null==t?void 0:t.code),severity:p.ERROR})}})(t),this.getPayoutCSV=e(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Account ID and Auth Token are required"})}render(){return this.errorMessage?u(this.errorMessage):i(r,{exportedparts:o},i("payouts-list-core",{getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
1
+ import{r as t,c as s,h as i,H as r}from"./p-fad19d75.js";import{t as o}from"./p-2b6c9c4f.js";import{m as e,P as a}from"./p-3f5e7e86.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as n}from"./p-e3fab0e2.js";import{C as c,a as p}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as u}from"./p-dce846bf.js";import{J as m}from"./p-32286934.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-6c078cd1.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayouts=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:o,onError:e})=>{var a,p;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return e({error:h(u.error),code:d(null===(p=u.error)||void 0===p?void 0:p.code),severity:c.ERROR});{const t=Object.assign({},u.page_info);o({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){return e({error:h(t),code:d(null==t?void 0:t.code),severity:c.ERROR})}})(t),this.getPayoutCSV=e(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:"Account ID and Auth Token are required"})}render(){return this.errorMessage?u(this.errorMessage):i(r,{exportedparts:o},i("payouts-list-core",{getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleOnError}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e}from"./p-fad19d75.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as r}from"./p-57e1f2fd.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as d}from"./p-14c91ffd.js";import{J as c}from"./p-d6619366.js";import"./p-9c057196.js";class h{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const u=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){this.analytics=new c(this),this.initializeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var d;try{const c=await i.fetchQuote(t,e);if(c.error)return r({error:o(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:n.ERROR});s({quote:c.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:d})=>{var c;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return d({error:o(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return d({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h})):this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"256d45d39c5d297abb7f955229b0e0e9fbc9504a",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{u as justifi_season_interruption_insurance}
1
+ import{r as t,c as i,h as e}from"./p-fad19d75.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import"./p-e3fab0e2.js";import{c as r}from"./p-57e1f2fd.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as d}from"./p-14c91ffd.js";import{J as c}from"./p-32286934.js";import"./p-6c078cd1.js";class h{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const u=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){this.analytics=new c(this),this.initializeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var d;try{const c=await i.fetchQuote(t,e);if(c.error)return r({error:o(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:n.ERROR});s({quote:c.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:d})=>{var c;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return d({error:o(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return d({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new h})):this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"256d45d39c5d297abb7f955229b0e0e9fbc9504a",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{u as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{r as o,c as r,h as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{a as i}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{l as a}from"./p-83125497.js";import{c as e}from"./p-57e1f2fd.js";import{a as s,C as f}from"./p-14c91ffd.js";import{g as c}from"./p-8115b2f4.js";import{J as d}from"./p-d6619366.js";import{B as b}from"./p-9c9c7dac.js";import{S as n}from"./p-ba4bae6f.js";import"./p-9c057196.js";import"./p-29c0b182.js";const l=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.bankAccount=void 0,this.card=void 0,this.email=void 0,this.clientId=void 0,this.authToken=void 0,this.accountId=void 0,this.submitButtonText=void 0,this.submitButtonEnabled=!0,this.isLoading=!1,this.selectedPaymentMethodType=i.card}componentWillLoad(){this.analytics=new d(this),this.validateProps()||(this.errorEvent.emit({errorCode:s.MISSING_PROPS,message:"clientId or authToken is required",severity:f.ERROR}),this.submitButtonEnabled=!1)}connectedCallback(){a()}disconnectedCallback(){this.analytics.cleanup()}async fillBillingForm(o){this.billingFormRef.fill(o)}async enableSubmitButton(){this.submitButtonEnabled=!0}async disableSubmitButton(){this.submitButtonEnabled=!1}showPaymentMethodTypeSelector(){return this.card&&this.bankAccount}getSelectedPaymentMethodType(){return this.showPaymentMethodTypeSelector()?this.selectedPaymentMethodType:this.card?i.card:this.bankAccount?i.bankAccount:i.card}paymentMethodSelectedHandler(o){this.selectedPaymentMethodType=o.detail}validateProps(){return!(!this.clientId&&!this.authToken)}getToken(){return this.authToken||this.clientId}async submit(o){if(o.preventDefault(),!this.paymentMethodFormRef||!this.billingFormRef)return;const r=await this.billingFormRef.validate(),t=await this.paymentMethodFormRef.validate();if(r.isValid&&t.isValid){this.isLoading=!0;try{const o=await this.billingFormRef.getValues(),r=Object.assign({email:this.email},o),t=await this.paymentMethodFormRef.tokenize(this.getToken(),r,this.accountId);t.error&&this.errorEvent.emit({errorCode:s.TOKENIZE_ERROR,message:t.error.message,severity:f.ERROR}),this.submitted.emit(t)}catch(o){this.errorEvent.emit({errorCode:s.UNKNOWN_ERROR,message:c(o),severity:f.ERROR})}finally{this.isLoading=!1}}}render(){return t(n,{key:"38bd6cca38d9068fa9277a8568a98f261a4cc616"},t("form",{key:"fec19f5e2f11934e6783124c4c437a2d3947f596",class:"row gy-3"},this.showPaymentMethodTypeSelector()&&t("div",{key:"18001f78e03336d01de8473a57e3e228e9fce201",class:"col-12"},t("justifi-payment-method-selector",{key:"260ac1ade3ccfe6baf518eb856bdf4d380025620",selectedPaymentMethodType:this.getSelectedPaymentMethodType(),onPaymentMethodSelected:o=>this.paymentMethodSelectedHandler(o)})),t("div",{key:"f6ade2336314e05f2bdce75df8577939efe33e3b",class:"col-12"},t("justifi-payment-method-form",{key:"ad8e5b121b8425175f7ac7f38ab24dfba1801a28","payment-method-form-type":this.getSelectedPaymentMethodType(),iframeOrigin:e.iframeOrigin,ref:o=>{o&&(this.paymentMethodFormRef=o)}})),t("div",{key:"29f15f1cece3e07a569e514d08bf9996405699c6",class:"col-12"},t("justifi-billing-form",{key:"9928924cc29bfa5c5e46ada294cb26da0c1d222b",legend:"Billing Info",ref:o=>{o&&(this.billingFormRef=o)}})),t("slot",{key:"c36583ab34bc105b506df27aec02898455855cec",name:"insurance"}),t("div",{key:"cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35",class:"col-12"},t(b,{key:"e5fe0f50ee2322ab2a199a6229015c9daa198cc0",variant:"primary",type:"submit",onClick:o=>this.submit(o),disabled:!this.submitButtonEnabled||this.isLoading,isLoading:this.isLoading,"data-testid":"submit-button",style:{width:"100%"}},this.submitButtonText||"Submit"))))}};l.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{l as justifi_payment_form}
1
+ import{r as o,c as r,h as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{a as i}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{l as a}from"./p-83125497.js";import{c as e}from"./p-57e1f2fd.js";import{a as s,C as f}from"./p-14c91ffd.js";import{g as c}from"./p-8115b2f4.js";import{J as d}from"./p-32286934.js";import{B as b}from"./p-9c9c7dac.js";import{S as n}from"./p-ba4bae6f.js";import"./p-6c078cd1.js";import"./p-29c0b182.js";const l=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.bankAccount=void 0,this.card=void 0,this.email=void 0,this.clientId=void 0,this.authToken=void 0,this.accountId=void 0,this.submitButtonText=void 0,this.submitButtonEnabled=!0,this.isLoading=!1,this.selectedPaymentMethodType=i.card}componentWillLoad(){this.analytics=new d(this),this.validateProps()||(this.errorEvent.emit({errorCode:s.MISSING_PROPS,message:"clientId or authToken is required",severity:f.ERROR}),this.submitButtonEnabled=!1)}connectedCallback(){a()}disconnectedCallback(){this.analytics.cleanup()}async fillBillingForm(o){this.billingFormRef.fill(o)}async enableSubmitButton(){this.submitButtonEnabled=!0}async disableSubmitButton(){this.submitButtonEnabled=!1}showPaymentMethodTypeSelector(){return this.card&&this.bankAccount}getSelectedPaymentMethodType(){return this.showPaymentMethodTypeSelector()?this.selectedPaymentMethodType:this.card?i.card:this.bankAccount?i.bankAccount:i.card}paymentMethodSelectedHandler(o){this.selectedPaymentMethodType=o.detail}validateProps(){return!(!this.clientId&&!this.authToken)}getToken(){return this.authToken||this.clientId}async submit(o){if(o.preventDefault(),!this.paymentMethodFormRef||!this.billingFormRef)return;const r=await this.billingFormRef.validate(),t=await this.paymentMethodFormRef.validate();if(r.isValid&&t.isValid){this.isLoading=!0;try{const o=await this.billingFormRef.getValues(),r=Object.assign({email:this.email},o),t=await this.paymentMethodFormRef.tokenize(this.getToken(),r,this.accountId);t.error&&this.errorEvent.emit({errorCode:s.TOKENIZE_ERROR,message:t.error.message,severity:f.ERROR}),this.submitted.emit(t)}catch(o){this.errorEvent.emit({errorCode:s.UNKNOWN_ERROR,message:c(o),severity:f.ERROR})}finally{this.isLoading=!1}}}render(){return t(n,{key:"38bd6cca38d9068fa9277a8568a98f261a4cc616"},t("form",{key:"fec19f5e2f11934e6783124c4c437a2d3947f596",class:"row gy-3"},this.showPaymentMethodTypeSelector()&&t("div",{key:"18001f78e03336d01de8473a57e3e228e9fce201",class:"col-12"},t("justifi-payment-method-selector",{key:"260ac1ade3ccfe6baf518eb856bdf4d380025620",selectedPaymentMethodType:this.getSelectedPaymentMethodType(),onPaymentMethodSelected:o=>this.paymentMethodSelectedHandler(o)})),t("div",{key:"f6ade2336314e05f2bdce75df8577939efe33e3b",class:"col-12"},t("justifi-payment-method-form",{key:"ad8e5b121b8425175f7ac7f38ab24dfba1801a28","payment-method-form-type":this.getSelectedPaymentMethodType(),iframeOrigin:e.iframeOrigin,ref:o=>{o&&(this.paymentMethodFormRef=o)}})),t("div",{key:"29f15f1cece3e07a569e514d08bf9996405699c6",class:"col-12"},t("justifi-billing-form",{key:"9928924cc29bfa5c5e46ada294cb26da0c1d222b",legend:"Billing Info",ref:o=>{o&&(this.billingFormRef=o)}})),t("slot",{key:"c36583ab34bc105b506df27aec02898455855cec",name:"insurance"}),t("div",{key:"cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35",class:"col-12"},t(b,{key:"e5fe0f50ee2322ab2a199a6229015c9daa198cc0",variant:"primary",type:"submit",onClick:o=>this.submit(o),disabled:!this.submitButtonEnabled||this.isLoading,isLoading:this.isLoading,"data-testid":"submit-button",style:{width:"100%"}},this.submitButtonText||"Submit"))))}};l.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{l as justifi_payment_form}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-fad19d75.js";import{P as r}from"./p-b87b27ba.js";import"./p-56f6ce4c.js";import{P as e}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as p}from"./p-8115b2f4.js";import{E as h}from"./p-dce846bf.js";import{J as c}from"./p-d6619366.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-9c057196.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayments=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new c(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:h})=>{var c,d;try{const m=await i.fetchPayments(t,s,r);if(m.error)return h({error:n(m.error),code:p(null===(d=m.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);a({payments:(null===(c=m.data)||void 0===c?void 0:c.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return h({error:t.message||t,code:s,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new r}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):i("payments-list-core",{getPayments:this.getPayments,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
1
+ import{r as t,c as s,h as i}from"./p-fad19d75.js";import{P as r}from"./p-b87b27ba.js";import"./p-56f6ce4c.js";import{P as e}from"./p-df21aaad.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as p}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as h}from"./p-32286934.js";import"./p-29c0b182.js";import"./p-57e1f2fd.js";import"./p-6c078cd1.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.accountId=void 0,this.authToken=void 0,this.getPayments=void 0,this.errorMessage=null}componentWillLoad(){this.analytics=new h(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:c})=>{var h,d;try{const m=await i.fetchPayments(t,s,r);if(m.error)return c({error:n(m.error),code:p(null===(d=m.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},m.page_info);a({payments:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new r}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):i("payments-list-core",{getPayments:this.getPayments,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as e}from"./p-d6619366.js";import{a as o,C as r}from"./p-14c91ffd.js";import{m as n,a}from"./p-5968ff8a.js";import{B as h}from"./p-c28db166.js";import{c as p}from"./p-57e1f2fd.js";import{A as d}from"./p-29c0b182.js";import"./p-9c057196.js";import"./p-8115b2f4.js";class c{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return d({authToken:s,apiOrigin:p.proxyApiOrigin}).post("entities/provisioning",JSON.stringify(e))}}const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new c})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"a93ee23fabf4bdeb381e924bfdf684ddd183075a",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{m as justifi_payment_provisioning}
1
+ import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as e}from"./p-32286934.js";import{a as o,C as r}from"./p-14c91ffd.js";import{m as n,a}from"./p-5968ff8a.js";import{B as h}from"./p-c28db166.js";import{c as p}from"./p-57e1f2fd.js";import{A as d}from"./p-29c0b182.js";import"./p-6c078cd1.js";import"./p-8115b2f4.js";class c{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return d({authToken:s,apiOrigin:p.proxyApiOrigin}).post("entities/provisioning",JSON.stringify(e))}}const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new c})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"a93ee23fabf4bdeb381e924bfdf684ddd183075a",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{m as justifi_payment_provisioning}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-fad19d75.js";export{s as setNonce}from"./p-fad19d75.js";import{g as a}from"./p-e1255160.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t(JSON.parse('[["p-60dcd24c",[[0,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"postProvisioning":[32],"getBusiness":[32]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-337893fe",[[1,"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]}]]],["p-d535bc5d",[[4,"justifi-checkout",{"iframeOrigin":[1,"iframe-origin"],"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"getCheckout":[32],"complete":[32],"errorMessage":[32],"fillBillingForm":[64]},null,{"authToken":["propChanged"],"checkoutId":["propChanged"]}]]],["p-b20364d8",[[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]}]]],["p-bb86a0da",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-9f29820f",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-59415873",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayouts":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-023779ee",[[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]}]]],["p-e31f0f3e",[[0,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-b3a8ee6c",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-f3f3d544",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-da2837f9",[[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"]]]]],["p-eae46810",[[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"]]]]],["p-1a43e355",[[0,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-88b6ed9b",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-335e58a6",[[1,"justifi-season-interruption-insurance",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"getQuote":[32],"toggleCoverage":[32],"quote":[32],"validate":[64]}]]],["p-07109641",[[0,"form-control-select",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-text",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"maxLength":[2,"max-length"],"inputHandler":[16],"keyDownHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-error-text",{"errorText":[1,"error-text"],"name":[1]}],[0,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-bbed6107",[[0,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16]}]]],["p-f0866375",[[0,"form-control-file",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"documentType":[1,"document-type"],"inputHandler":[16],"disabled":[4],"files":[32],"fileString":[32]}]]],["p-d8355f91",[[0,"form-control-monetary",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"maskOptions":[8,"mask-options"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-c9f8f7ec",[[0,"justifi-identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}],[0,"form-control-number-masked",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-date",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[8,"input-handler"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-be39c802",[[1,"justifi-payment-provisioning-core",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"getBusiness":[16],"postProvisioning":[16],"loading":[32],"businessProvisioned":[32],"currentStep":[32],"errorMessage":[32]},[[0,"formLoading","handleFormLoading"]]]]],["p-69faef3f",[[1,"justifi-checkout-core",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"getCheckout":[16],"complete":[16],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hasLoadedFonts":[32],"checkout":[32],"serverError":[32],"renderState":[32],"creatingNewPaymentMethod":[32],"insuranceToggled":[32],"fillBillingForm":[64]}]]],["p-fb58feb5",[[0,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-52021fa1",[[0,"payments-list-core",{"getPayments":[16],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayments":["updateOnPropChange"]}]]],["p-fe33151d",[[0,"payouts-list-core",{"getPayouts":[16],"getPayoutCSV":[16],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayouts":["updateOnPropChange"]}]]],["p-462dc522",[[0,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-53e64f15",[[0,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-e2c88817",[[0,"justifi-payment-method-selector",{"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["p-62b32c4c",[[1,"justifi-season-interruption-insurance-core",{"checkoutId":[1,"checkout-id"],"getQuote":[16],"toggleCoverage":[16],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-487b72a8",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-0f7b9555",[[0,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-8e541a32",[[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]}],[0,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-def4b4b2",[[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]}]]],["p-17e4246f",[[0,"justifi-save-new-payment-method",{"isChecked":[32]}],[1,"justifi-billing-form",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-4abc17f0",[[0,"additional-questions-details",{"additionalQuestions":[16]}],[0,"generic-info-details",{"business":[16]}],[0,"legal-address-details",{"legalAddress":[16]}],[0,"owner-details",{"owners":[16]}],[0,"representative-details",{"representative":[16]}]]],["p-ef23c091",[[0,"justifi-payment-method-options",{"showCard":[4,"show-card"],"showAch":[4,"show-ach"],"showBnpl":[4,"show-bnpl"],"showSavedPaymentMethods":[4,"show-saved-payment-methods"],"paymentMethodGroupId":[1,"payment-method-group-id"],"bnpl":[16],"insuranceToggled":[4,"insurance-toggled"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"iframeOrigin":[1025,"iframe-origin"],"savedPaymentMethods":[16],"paymentAmount":[2,"payment-amount"],"selectedPaymentMethodId":[32],"paymentMethodOptions":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"paymentMethodOptionSelected","paymentMethodOptionSelected"]],{"savedPaymentMethods":["paymentMethodsChanged"]}],[0,"justifi-new-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"paymentMethodGroupId":[1,"payment-method-group-id"],"isSelected":[4,"is-selected"],"saveNewPaymentMethodChecked":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"checkboxChanged","handleCheckboxChanged"]]],[0,"justifi-saved-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}],[0,"justifi-sezzle-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"bnpl":[8],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"paymentAmount":[2,"payment-amount"],"installmentPlan":[32],"sezzleCheckout":[32],"sezzlePromise":[32],"resolvePaymentMethod":[64]}]]],["p-a8220709",[[0,"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"],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"validate":[64],"submit":[64],"validateAndSubmit":[64]}],[0,"owner-form-core",{"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"getOwner":[16],"patchOwner":[16],"postOwner":[16],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"isLoading":[32],"formController":[32],"errors":[32],"owner":[32],"returnOwnerData":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[0,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16]}]]],["p-30a493cd",[[0,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[0,"justifi-business-representative-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"representative":[32],"validateAndSubmit":[64]}],[0,"justifi-business-core-info-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"coreInfo":[32],"validateAndSubmit":[64]}],[0,"justifi-additional-questions-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"validateAndSubmit":[64]}],[0,"justifi-legal-address-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"legal_address":[32],"validateAndSubmit":[64]}],[0,"justifi-business-document-upload-input-group",{"paymentVolume":[1,"payment-volume"],"inputHandler":[16],"storeFiles":[16],"errors":[8]}],[0,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[4,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"justifi-business-documents-on-file",{"documents":[8]}],[0,"justifi-business-terms-conditions-text"]]],["p-f49b7170",[[0,"justifi-payment-provisioning-form-steps",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"refs":[16],"currentStep":[2,"current-step"],"allowOptionalFields":[4,"allow-optional-fields"],"handleFormLoading":[16]}],[0,"justifi-payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16],"nextStepButtonOnClick":[16]}],[0,"justifi-business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-document-upload-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"existingDocuments":[32],"paymentVolume":[32],"business":[32],"documentData":[32],"renderState":[32],"validateAndSubmit":[64]}],[0,"justifi-legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"bankAccount":[32],"validateAndSubmit":[64]}],[0,"justifi-business-terms-conditions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"acceptedTermsBefore":[32],"validateAndSubmit":[64]}]]]]'),e))));
1
+ import{p as e,b as t}from"./p-fad19d75.js";export{s as setNonce}from"./p-fad19d75.js";import{g as a}from"./p-e1255160.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await a(),t(JSON.parse('[["p-f2f94d9f",[[0,"justifi-payment-provisioning",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"postProvisioning":[32],"getBusiness":[32]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}]]],["p-8f325782",[[1,"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]}]]],["p-ae530971",[[4,"justifi-checkout",{"iframeOrigin":[1,"iframe-origin"],"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"getCheckout":[32],"complete":[32],"errorMessage":[32],"fillBillingForm":[64]},null,{"authToken":["propChanged"],"checkoutId":["propChanged"]}]]],["p-f06910aa",[[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]}]]],["p-037763f4",[[1,"justifi-business-details",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"errorMessage":[32],"getBusiness":[32]}]]],["p-f0a06884",[[1,"justifi-payments-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayments":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-b7cf49f4",[[1,"justifi-payouts-list",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getPayouts":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-023779ee",[[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]}]]],["p-e31f0f3e",[[0,"form-control-number",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-2d3b1692",[[1,"justifi-payment-details",{"paymentId":[1,"payment-id"],"authToken":[1,"auth-token"],"getPaymentDetails":[32],"errorMessage":[32]},null,{"paymentId":["propChanged"],"authToken":["propChanged"]}]]],["p-5f095525",[[1,"justifi-payout-details",{"payoutId":[1,"payout-id"],"authToken":[1,"auth-token"],"getPayout":[32],"getPayoutCSV":[32],"errorMessage":[32]},null,{"payoutId":["propChanged"],"authToken":["propChanged"]}]]],["p-1f6afff9",[[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"]]]]],["p-246a6c6a",[[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"]]]]],["p-1a43e355",[[0,"gross-payment-chart-core",{"getGrossPayment":[16],"grossVolumeReport":[32],"loading":[32],"errorMessage":[32]},null,{"getGrossPayment":["propChanged"],"grossVolumeReport":["grossVolumeReportChanged"]}]]],["p-987b5de2",[[1,"justifi-gross-payment-chart",{"accountId":[1,"account-id"],"authToken":[1,"auth-token"],"getGrossPayment":[32],"errorMessage":[32]},null,{"accountId":["propChanged"],"authToken":["propChanged"]}]]],["p-edac2b43",[[1,"justifi-season-interruption-insurance",{"authToken":[1,"auth-token"],"checkoutId":[1,"checkout-id"],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"getQuote":[32],"toggleCoverage":[32],"quote":[32],"validate":[64]}]]],["p-07109641",[[0,"form-control-select",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"options":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-text",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"maxLength":[2,"max-length"],"inputHandler":[16],"keyDownHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-error-text",{"errorText":[1,"error-text"],"name":[1]}],[0,"form-control-help-text",{"helpText":[1,"help-text"],"name":[1]}]]],["p-bbed6107",[[0,"justifi-business-representative-form-inputs",{"representativeDefaultValue":[8,"representative-default-value"],"errors":[8],"formController":[16]}]]],["p-f0866375",[[0,"form-control-file",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"multiple":[4],"documentType":[1,"document-type"],"inputHandler":[16],"disabled":[4],"files":[32],"fileString":[32]}]]],["p-d8355f91",[[0,"form-control-monetary",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"maskOptions":[8,"mask-options"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-c9f8f7ec",[[0,"justifi-identity-address-form",{"handleFormUpdate":[16],"errors":[8],"defaultValues":[8,"default-values"],"address":[32]},null,{"address":["handleAddressChange"]}],[0,"form-control-number-masked",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[16],"mask":[1],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"form-control-date",{"label":[1],"name":[1],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[1,"default-value"],"inputHandler":[8,"input-handler"],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}]]],["p-be39c802",[[1,"justifi-payment-provisioning-core",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"allowOptionalFields":[4,"allow-optional-fields"],"formTitle":[1,"form-title"],"getBusiness":[16],"postProvisioning":[16],"loading":[32],"businessProvisioned":[32],"currentStep":[32],"errorMessage":[32]},[[0,"formLoading","handleFormLoading"]]]]],["p-69faef3f",[[1,"justifi-checkout-core",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"getCheckout":[16],"complete":[16],"checkoutId":[1,"checkout-id"],"disableCreditCard":[4,"disable-credit-card"],"disableBankAccount":[4,"disable-bank-account"],"disableBnpl":[4,"disable-bnpl"],"disablePaymentMethodGroup":[4,"disable-payment-method-group"],"hasLoadedFonts":[32],"checkout":[32],"serverError":[32],"renderState":[32],"creatingNewPaymentMethod":[32],"insuranceToggled":[32],"fillBillingForm":[64]}]]],["p-fb58feb5",[[0,"business-details-core",{"getBusiness":[16],"business":[32],"renderState":[32],"errorMessage":[32]}]]],["p-52021fa1",[[0,"payments-list-core",{"getPayments":[16],"payments":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayments":["updateOnPropChange"]}]]],["p-fe33151d",[[0,"payouts-list-core",{"getPayouts":[16],"getPayoutCSV":[16],"payouts":[32],"loading":[32],"errorMessage":[32],"paging":[32],"params":[32]},null,{"params":["updateOnPropChange"],"getPayouts":["updateOnPropChange"]}]]],["p-462dc522",[[0,"payment-details-core",{"getPaymentDetails":[16],"payment":[32],"loading":[32],"errorMessage":[32]},null,{"getPaymentDetails":["updateOnPropChange"]}]]],["p-53e64f15",[[0,"payout-details-core",{"getPayout":[16],"getPayoutCSV":[16],"payout":[32],"loading":[32],"errorMessage":[32]},null,{"getPayout":["getPayoutWatcher"]}]]],["p-e2c88817",[[0,"justifi-payment-method-selector",{"selectedPaymentMethodType":[1,"selected-payment-method-type"]}]]],["p-62b32c4c",[[1,"justifi-season-interruption-insurance-core",{"checkoutId":[1,"checkout-id"],"getQuote":[16],"toggleCoverage":[16],"primaryIdentityFirstName":[1,"primary-identity-first-name"],"primaryIdentityLastName":[1,"primary-identity-last-name"],"primaryIdentityState":[1,"primary-identity-state"],"primaryIdentityPostalCode":[1,"primary-identity-postal-code"],"primaryIdentityCountry":[1,"primary-identity-country"],"primaryIdentityEmailAddress":[1,"primary-identity-email-address"],"policyAttributesInsurableAmount":[2,"policy-attributes-insurable-amount"],"policyAttributesStartDate":[1,"policy-attributes-start-date"],"policyAttributesEndDate":[1,"policy-attributes-end-date"],"coveredIdentityFirstName":[1,"covered-identity-first-name"],"coveredIdentityLastName":[1,"covered-identity-last-name"],"quote":[32],"isLoading":[32],"accepted":[32],"validate":[64]}]]],["p-487b72a8",[[1,"justifi-details",{"errorMessage":[1,"error-message"]}]]],["p-0f7b9555",[[0,"pagination-menu",{"paging":[16],"params":[16]}]]],["p-8e541a32",[[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]}],[0,"form-alert",{"text":[1],"hideAlert":[4,"hide-alert"]}]]],["p-a63fc384",[[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]}]]],["p-17e4246f",[[0,"justifi-save-new-payment-method",{"isChecked":[32]}],[1,"justifi-billing-form",{"legend":[1025],"formController":[32],"billingInfo":[32],"errors":[32],"getValues":[64],"fill":[64],"validate":[64]}]]],["p-4abc17f0",[[0,"additional-questions-details",{"additionalQuestions":[16]}],[0,"generic-info-details",{"business":[16]}],[0,"legal-address-details",{"legalAddress":[16]}],[0,"owner-details",{"owners":[16]}],[0,"representative-details",{"representative":[16]}]]],["p-ef23c091",[[0,"justifi-payment-method-options",{"showCard":[4,"show-card"],"showAch":[4,"show-ach"],"showBnpl":[4,"show-bnpl"],"showSavedPaymentMethods":[4,"show-saved-payment-methods"],"paymentMethodGroupId":[1,"payment-method-group-id"],"bnpl":[16],"insuranceToggled":[4,"insurance-toggled"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"iframeOrigin":[1025,"iframe-origin"],"savedPaymentMethods":[16],"paymentAmount":[2,"payment-amount"],"selectedPaymentMethodId":[32],"paymentMethodOptions":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"paymentMethodOptionSelected","paymentMethodOptionSelected"]],{"savedPaymentMethods":["paymentMethodsChanged"]}],[0,"justifi-new-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"authToken":[1,"auth-token"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"paymentMethodGroupId":[1,"payment-method-group-id"],"isSelected":[4,"is-selected"],"saveNewPaymentMethodChecked":[32],"fillBillingForm":[64],"resolvePaymentMethod":[64]},[[0,"checkboxChanged","handleCheckboxChanged"]]],[0,"justifi-saved-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"resolvePaymentMethod":[64]}],[0,"justifi-sezzle-payment-method",{"iframeOrigin":[1025,"iframe-origin"],"bnpl":[8],"clientId":[1,"client-id"],"accountId":[1,"account-id"],"paymentMethodOption":[16],"isSelected":[4,"is-selected"],"paymentAmount":[2,"payment-amount"],"installmentPlan":[32],"sezzleCheckout":[32],"sezzlePromise":[32],"resolvePaymentMethod":[64]}]]],["p-a8220709",[[0,"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"],"getOwner":[32],"patchOwner":[32],"postOwner":[32],"validate":[64],"submit":[64],"validateAndSubmit":[64]}],[0,"owner-form-core",{"ownerId":[1,"owner-id"],"businessId":[1,"business-id"],"getOwner":[16],"patchOwner":[16],"postOwner":[16],"allowOptionalFields":[4,"allow-optional-fields"],"removeOwner":[16],"newFormOpen":[4,"new-form-open"],"ownersLength":[2,"owners-length"],"isLoading":[32],"formController":[32],"errors":[32],"owner":[32],"returnOwnerData":[64],"validate":[64],"submit":[64],"validateAndSubmit":[64]},null,{"isLoading":["loadingWatcher"]}],[0,"owner-form-inputs",{"ownerDefaultValue":[8,"owner-default-value"],"errors":[8],"formController":[16]}]]],["p-30a493cd",[[0,"justifi-business-owners-form-step-core",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"ownersPayload":[32],"refs":[32],"newFormOpen":[32],"validateAndSubmit":[64]},[[0,"ownerSubmitted","handleOwnerSubmit"]],{"ownersPayload":["ownersWatcher"]}],[0,"justifi-business-representative-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"representative":[32],"validateAndSubmit":[64]}],[0,"justifi-business-core-info-form-step-core",{"businessId":[1,"business-id"],"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"coreInfo":[32],"validateAndSubmit":[64]}],[0,"justifi-additional-questions-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"additional_questions":[32],"validateAndSubmit":[64]}],[0,"justifi-legal-address-form-step-core",{"getBusiness":[16],"patchBusiness":[16],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"legal_address":[32],"validateAndSubmit":[64]}],[0,"justifi-business-document-upload-input-group",{"paymentVolume":[1,"payment-volume"],"inputHandler":[16],"storeFiles":[16],"errors":[8]}],[0,"form-control-checkbox",{"label":[1],"name":[8],"helpText":[1,"help-text"],"errorText":[1,"error-text"],"defaultValue":[4,"default-value"],"inputHandler":[16],"disabled":[4]},null,{"defaultValue":["handleDefaultValueChange"]}],[0,"justifi-business-documents-on-file",{"documents":[8]}],[0,"justifi-business-terms-conditions-text"]]],["p-f49b7170",[[0,"justifi-payment-provisioning-form-steps",{"businessId":[1,"business-id"],"authToken":[1,"auth-token"],"refs":[16],"currentStep":[2,"current-step"],"allowOptionalFields":[4,"allow-optional-fields"],"handleFormLoading":[16]}],[0,"justifi-payment-provisioning-form-buttons",{"currentStep":[2,"current-step"],"totalSteps":[2,"total-steps"],"formLoading":[4,"form-loading"],"formDisabled":[4,"form-disabled"],"previousStepButtonOnClick":[16],"nextStepButtonOnClick":[16]}],[0,"justifi-business-owners-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-representative-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-core-info-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-additional-questions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-document-upload-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"existingDocuments":[32],"paymentVolume":[32],"business":[32],"documentData":[32],"renderState":[32],"validateAndSubmit":[64]}],[0,"justifi-legal-address-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"getBusiness":[32],"patchBusiness":[32],"validateAndSubmit":[64]},null,{"authToken":["propChanged"],"businessId":["propChanged"]}],[0,"justifi-business-bank-account-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"bankAccount":[32],"validateAndSubmit":[64]}],[0,"justifi-business-terms-conditions-form-step",{"authToken":[1,"auth-token"],"businessId":[1,"business-id"],"allowOptionalFields":[4,"allow-optional-fields"],"formController":[32],"errors":[32],"acceptedTermsBefore":[32],"validateAndSubmit":[64]}]]]]'),e))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justifi/webcomponents",
3
- "version": "4.19.0-rc",
3
+ "version": "4.19.1-rc",
4
4
  "description": "JustiFi Web Components",
5
5
  "collection": "dist/collection/collection-manifest.json",
6
6
  "main": "dist/index.cjs.js",