@justifi/webcomponents 6.12.1-rc.1 → 6.12.1-rc.2

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 (97) hide show
  1. package/dist/cjs/{Analytics-D72yBqoQ.js → Analytics-DN1vWC6J.js} +1 -1
  2. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  3. package/dist/cjs/card-form.cjs.entry.js +2 -2
  4. package/dist/cjs/{check-pkg-version-EI9MxE9j.js → check-pkg-version-DKEv2rPI.js} +1 -1
  5. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  6. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +4 -3
  7. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +3 -3
  8. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  9. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  10. package/dist/cjs/justifi-business-form.cjs.entry.js +3 -3
  11. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  12. package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
  13. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
  15. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
  18. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  20. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  25. package/dist/cjs/justifi-refund-payment.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  27. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
  28. package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
  29. package/dist/cjs/{package-U1Mz5_qn.js → package-EwQYAMPH.js} +1 -1
  30. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -0
  31. package/dist/docs.json +1 -1
  32. package/dist/esm/{Analytics-BLWnbxJY.js → Analytics-Ds-ogIwt.js} +1 -1
  33. package/dist/esm/bank-account-form.entry.js +2 -2
  34. package/dist/esm/card-form.entry.js +2 -2
  35. package/dist/esm/{check-pkg-version-D9dGqUmC.js → check-pkg-version-Bd_MOwNP.js} +1 -1
  36. package/dist/esm/hidden-input_2.entry.js +1 -1
  37. package/dist/esm/justifi-apple-pay_11.entry.js +4 -3
  38. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +3 -3
  39. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  40. package/dist/esm/justifi-business-details.entry.js +3 -3
  41. package/dist/esm/justifi-business-form.entry.js +3 -3
  42. package/dist/esm/justifi-card-form.entry.js +3 -3
  43. package/dist/esm/justifi-checkout.entry.js +3 -3
  44. package/dist/esm/justifi-checkouts-list.entry.js +3 -3
  45. package/dist/esm/justifi-dispute-management.entry.js +3 -3
  46. package/dist/esm/justifi-dispute-notification_3.entry.js +3 -3
  47. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  48. package/dist/esm/justifi-order-terminals.entry.js +3 -3
  49. package/dist/esm/justifi-payment-details.entry.js +3 -3
  50. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  51. package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
  52. package/dist/esm/justifi-payments-list.entry.js +3 -3
  53. package/dist/esm/justifi-payout-details.entry.js +3 -3
  54. package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
  55. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  56. package/dist/esm/justifi-refund-payment.entry.js +3 -3
  57. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  58. package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
  59. package/dist/esm/justifi-terminals-list.entry.js +3 -3
  60. package/dist/esm/{package-BW1eeDYQ.js → package-B5w1e9rb.js} +1 -1
  61. package/dist/module/justifi-apple-pay2.js +1 -0
  62. package/dist/module/package.js +1 -1
  63. package/dist/types/api/ApplePay.d.ts +1 -0
  64. package/dist/webcomponents/{p-f8f8ee4e.entry.js → p-0ee11ceb.entry.js} +1 -1
  65. package/dist/webcomponents/{p-72886d0a.entry.js → p-15377f17.entry.js} +1 -1
  66. package/dist/webcomponents/{p-020d9c38.entry.js → p-17fb6153.entry.js} +1 -1
  67. package/dist/webcomponents/{p-c76dc4dd.entry.js → p-1f2129ec.entry.js} +1 -1
  68. package/dist/webcomponents/{p-183bb9e2.entry.js → p-3c59fe06.entry.js} +1 -1
  69. package/dist/webcomponents/{p-2d68e1ea.entry.js → p-45212820.entry.js} +1 -1
  70. package/dist/webcomponents/{p-d6cfda12.entry.js → p-46d8145c.entry.js} +1 -1
  71. package/dist/webcomponents/{p-5a384a9a.entry.js → p-707e1e27.entry.js} +1 -1
  72. package/dist/webcomponents/p-70a7c529.entry.js +1 -0
  73. package/dist/webcomponents/{p-c4264f99.entry.js → p-799e1a2f.entry.js} +1 -1
  74. package/dist/webcomponents/{p-df75468d.entry.js → p-80a9216a.entry.js} +1 -1
  75. package/dist/webcomponents/{p-e6c66cdb.entry.js → p-8d88556f.entry.js} +1 -1
  76. package/dist/webcomponents/{p-a21cef71.entry.js → p-8dc0e73a.entry.js} +1 -1
  77. package/dist/webcomponents/{p-1fad5340.entry.js → p-90d106c7.entry.js} +1 -1
  78. package/dist/webcomponents/{p-f2d7498d.entry.js → p-99f3e1e0.entry.js} +1 -1
  79. package/dist/webcomponents/{p-eb64c229.entry.js → p-9a00cde1.entry.js} +1 -1
  80. package/dist/webcomponents/p-B5w1e9rb.js +1 -0
  81. package/dist/webcomponents/{p-DELK4IgY.js → p-DKzki_Iz.js} +1 -1
  82. package/dist/webcomponents/{p-ac83cf45.entry.js → p-a511a246.entry.js} +1 -1
  83. package/dist/webcomponents/{p-8c484a70.entry.js → p-a9edf63a.entry.js} +1 -1
  84. package/dist/webcomponents/p-afe956d9.entry.js +1 -0
  85. package/dist/webcomponents/{p-68c16230.entry.js → p-c4d50650.entry.js} +1 -1
  86. package/dist/webcomponents/{p-972e724c.entry.js → p-c7ecb7d3.entry.js} +1 -1
  87. package/dist/webcomponents/{p-e6e9b381.entry.js → p-ce8de71b.entry.js} +1 -1
  88. package/dist/webcomponents/{p-b95c1e00.entry.js → p-e204efea.entry.js} +1 -1
  89. package/dist/webcomponents/{p-7e6c9362.entry.js → p-e70602bd.entry.js} +1 -1
  90. package/dist/webcomponents/{p-ab0f9e11.entry.js → p-e751e2c3.entry.js} +1 -1
  91. package/dist/webcomponents/{p-d34b09b2.entry.js → p-f7522364.entry.js} +1 -1
  92. package/dist/webcomponents/{p-CXLV6LjG.js → p-x7WGc-xR.js} +1 -1
  93. package/dist/webcomponents/webcomponents.esm.js +1 -1
  94. package/package.json +1 -1
  95. package/dist/webcomponents/p-56ad08cf.entry.js +0 -1
  96. package/dist/webcomponents/p-BW1eeDYQ.js +0 -1
  97. package/dist/webcomponents/p-acca580a.entry.js +0 -1
@@ -11,8 +11,8 @@ import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js
11
11
  import { H as Header1 } from './header-1-bRxxOyI-.js';
12
12
  import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-obAKb1XR.js';
13
13
  import { H as Header3 } from './header-3-E533c0A3.js';
14
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
15
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
14
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
15
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
16
16
  import './dinero-HXpYMWUU.js';
17
17
  import './Pagination-CLHwhyvu.js';
18
18
  import './Business-BcNb9bVO.js';
@@ -23,7 +23,7 @@ import { P as PlaidService } from './plaid.service-D1nDrcPY.js';
23
23
  import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DkoufM1t.js';
24
24
  import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
25
25
  import './index-cDVGjRkU.js';
26
- import './package-BW1eeDYQ.js';
26
+ import './package-B5w1e9rb.js';
27
27
 
28
28
  const JustifiRadioListItem = class {
29
29
  constructor(hostRef) {
@@ -573,6 +573,7 @@ const JustifiApplePay = class {
573
573
  ],
574
574
  supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
575
575
  total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
576
+ requiredBillingContactFields: ApplePayHelpers.getDefaultBillingContactFields(),
576
577
  };
577
578
  const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
578
579
  if (result.success) {
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
3
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
2
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
3
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
4
4
  import { w as waitForConfig } from './config-state-kKn89dp1.js';
5
5
  import { S as StyledHost } from './styled-host-D6byRazK.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BW1eeDYQ.js';
7
+ import './package-B5w1e9rb.js';
8
8
  import './Api-BrYhtpEh.js';
9
9
  import './utils-De6tr4ug.js';
10
10
  import './dinero-HXpYMWUU.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
3
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
2
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
4
4
  import { w as waitForConfig } from './config-state-kKn89dp1.js';
5
5
  import { S as StyledHost } from './styled-host-D6byRazK.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BW1eeDYQ.js';
7
+ import './package-B5w1e9rb.js';
8
8
  import './Api-BrYhtpEh.js';
9
9
  import './utils-De6tr4ug.js';
10
10
  import './dinero-HXpYMWUU.js';
@@ -3,8 +3,8 @@ import { E as ErrorState } from './utils-DJOBwFeP.js';
3
3
  import { B as BusinessService } from './business.service-Bt68Uk7V.js';
4
4
  import { m as makeGetBusiness } from './get-business-CijoB3Df.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
6
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
7
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
6
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
7
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
8
8
  import './parts-D50Rx76J.js';
9
9
  import './Api-BrYhtpEh.js';
10
10
  import './config-state-kKn89dp1.js';
@@ -15,7 +15,7 @@ import './Pagination-CLHwhyvu.js';
15
15
  import './Business-BcNb9bVO.js';
16
16
  import './Dispute-BH0Xfn-F.js';
17
17
  import './utils-jaFbbifV.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
 
20
20
  const JustifiBusinessDetails = class {
21
21
  constructor(hostRef) {
@@ -8,12 +8,12 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D
8
8
  import './Pagination-CLHwhyvu.js';
9
9
  import { C as CountryCode, B as Business, b as BusinessFormServerErrors } from './Business-BcNb9bVO.js';
10
10
  import './Dispute-BH0Xfn-F.js';
11
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
11
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
12
12
  import { B as Button } from './button-B-Agn8yQ.js';
13
13
  import { S as StyledHost } from './styled-host-D6byRazK.js';
14
14
  import { H as Header1 } from './header-1-bRxxOyI-.js';
15
15
  import './event-types-CZfYo5-1.js';
16
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
16
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
17
17
  import { S as Skeleton } from './skeleton-DV6yJalo.js';
18
18
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
19
19
  import { m as makeGetBusiness, a as makePatchBusiness } from './payment-provisioning-actions-Bv2HP9Cx.js';
@@ -24,7 +24,7 @@ import './country-config-P042rrI3.js';
24
24
  import './business-form-options-DRalxlqN.js';
25
25
  import './index-cDVGjRkU.js';
26
26
  import './utils-De6tr4ug.js';
27
- import './package-BW1eeDYQ.js';
27
+ import './package-B5w1e9rb.js';
28
28
  import './Api-BrYhtpEh.js';
29
29
  import './parts-D50Rx76J.js';
30
30
  import './utils-jaFbbifV.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
3
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
2
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
3
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
4
4
  import { w as waitForConfig } from './config-state-kKn89dp1.js';
5
5
  import { S as StyledHost } from './styled-host-D6byRazK.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BW1eeDYQ.js';
7
+ import './package-B5w1e9rb.js';
8
8
  import './Api-BrYhtpEh.js';
9
9
  import './utils-De6tr4ug.js';
10
10
  import './dinero-HXpYMWUU.js';
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
3
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
2
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
3
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
4
4
  import { c as checkoutStore } from './checkout.store-C1TdhFf6.js';
5
5
  import { c as checkoutSummary } from './parts-D50Rx76J.js';
6
6
  import { S as StyledHost } from './styled-host-D6byRazK.js';
7
7
  import './event-types-CZfYo5-1.js';
8
8
  import { P as PAYMENT_METHODS } from './index-DkoufM1t.js';
9
- import './package-BW1eeDYQ.js';
9
+ import './package-B5w1e9rb.js';
10
10
  import './Api-BrYhtpEh.js';
11
11
  import './config-state-kKn89dp1.js';
12
12
  import './index-cDVGjRkU.js';
@@ -6,8 +6,8 @@ import './Pagination-CLHwhyvu.js';
6
6
  import './Business-BcNb9bVO.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
10
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
10
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
11
11
  import { C as CheckoutService } from './checkout.service-B7K5LRx2.js';
12
12
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-Dfo7wGVE.js';
13
13
  import { S as StyledHost } from './styled-host-D6byRazK.js';
@@ -15,7 +15,7 @@ import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './checkouts-table-BXm9GGFI.js';
16
16
  import './index-cDVGjRkU.js';
17
17
  import './utils-De6tr4ug.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
  import './Api-BrYhtpEh.js';
20
20
  import './badge-B_DdhQ3Q.js';
21
21
  import './parts-D50Rx76J.js';
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
3
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
5
5
  import { D as Dispute } from './Dispute-BH0Xfn-F.js';
6
6
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
7
7
  import { D as DisputeService } from './dispute.service-BPA0V42p.js';
8
8
  import './utils-De6tr4ug.js';
9
9
  import './dinero-HXpYMWUU.js';
10
- import './package-BW1eeDYQ.js';
10
+ import './package-B5w1e9rb.js';
11
11
  import './Api-BrYhtpEh.js';
12
12
  import './config-state-kKn89dp1.js';
13
13
  import './index-cDVGjRkU.js';
@@ -9,8 +9,8 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
10
10
  import { D as DisputeService } from './dispute.service-BPA0V42p.js';
11
11
  import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
12
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
13
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
12
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
13
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
14
14
  import './dinero-HXpYMWUU.js';
15
15
  import './Dispute-BH0Xfn-F.js';
16
16
  import './Api-BrYhtpEh.js';
@@ -18,7 +18,7 @@ import './config-state-kKn89dp1.js';
18
18
  import './index-cDVGjRkU.js';
19
19
  import './Pagination-CLHwhyvu.js';
20
20
  import './Business-BcNb9bVO.js';
21
- import './package-BW1eeDYQ.js';
21
+ import './package-B5w1e9rb.js';
22
22
 
23
23
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
24
24
  var _a;
@@ -6,14 +6,14 @@ import './Business-BcNb9bVO.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
8
8
  import { E as ErrorState } from './utils-DJOBwFeP.js';
9
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
9
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
11
11
  import './config-state-kKn89dp1.js';
12
12
  import './index-cDVGjRkU.js';
13
13
  import './utils-De6tr4ug.js';
14
14
  import './dinero-HXpYMWUU.js';
15
15
  import './parts-D50Rx76J.js';
16
- import './package-BW1eeDYQ.js';
16
+ import './package-B5w1e9rb.js';
17
17
 
18
18
  const api = Api();
19
19
  class ReportsService {
@@ -2,8 +2,8 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
2
2
  import { a9 as heading5, a8 as heading4, a3 as buttonPrimary, t as text } from './parts-D50Rx76J.js';
3
3
  import { S as StyledHost } from './styled-host-D6byRazK.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
6
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
6
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
7
7
  import { m as TerminalModel, C as ComponentErrorSeverity, l as TerminalOrder, d as TerminalOrderType, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
8
8
  import { B as BusinessService } from './business.service-Bt68Uk7V.js';
9
9
  import { B as Business } from './Business-BcNb9bVO.js';
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
17
17
  import { T as TerminalService } from './terminal.service-Sg45obrZ.js';
18
18
  import { l as formatPhoneNumber } from './utils-De6tr4ug.js';
19
- import './package-BW1eeDYQ.js';
19
+ import './package-B5w1e9rb.js';
20
20
  import './Api-BrYhtpEh.js';
21
21
  import './index-cDVGjRkU.js';
22
22
 
@@ -3,8 +3,8 @@ import { P as PaymentService } from './payment.service-J7iQtC5z.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-B9JipaKX.js';
4
4
  import { E as ErrorState } from './utils-DJOBwFeP.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
6
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
7
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
6
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
7
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
8
8
  import './Api-BrYhtpEh.js';
9
9
  import './config-state-kKn89dp1.js';
10
10
  import './index-cDVGjRkU.js';
@@ -15,7 +15,7 @@ import './Business-BcNb9bVO.js';
15
15
  import './Dispute-BH0Xfn-F.js';
16
16
  import './utils-jaFbbifV.js';
17
17
  import './parts-D50Rx76J.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
 
20
20
  const JustifiPaymentDetails = class {
21
21
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
2
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
3
3
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
4
4
  import { m as makeGetBusiness, b as makePostProvisioning } from './payment-provisioning-actions-Bv2HP9Cx.js';
5
5
  import { B as BusinessService } from './business.service-Bt68Uk7V.js';
@@ -7,7 +7,7 @@ import { A as Api } from './Api-BrYhtpEh.js';
7
7
  import './Pagination-CLHwhyvu.js';
8
8
  import { C as CountryCode, B as Business, c as checkProvisioningStatus } from './Business-BcNb9bVO.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
11
11
  import { j as isTokenExpired } from './utils-De6tr4ug.js';
12
12
  import { t as text } from './parts-D50Rx76J.js';
13
13
  import { S as StyledHost } from './styled-host-D6byRazK.js';
@@ -15,7 +15,7 @@ import { H as Header1 } from './header-1-bRxxOyI-.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
17
17
  import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-BAoIyEOj.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
  import './utils-jaFbbifV.js';
20
20
  import './config-state-kKn89dp1.js';
21
21
  import './index-cDVGjRkU.js';
@@ -5,8 +5,8 @@ import { j as PaymentBalanceTransaction, C as ComponentErrorSeverity, a as Compo
5
5
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
6
  import './Business-BcNb9bVO.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
11
11
  import { P as PaymentService } from './payment.service-J7iQtC5z.js';
12
12
  import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Deugl8h5.js';
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
15
15
  import { a as convertToLocal } from './utils-De6tr4ug.js';
16
16
  import { q as tableHeadCell, u as getAlternateTableCellPart } from './parts-D50Rx76J.js';
17
17
  import './index-cDVGjRkU.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
  import './Api-BrYhtpEh.js';
20
20
  import './spinner--fEgBBOG.js';
21
21
 
@@ -7,15 +7,15 @@ import './Pagination-CLHwhyvu.js';
7
7
  import './Business-BcNb9bVO.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
10
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
11
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
10
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
11
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
12
12
  import { S as StyledHost } from './styled-host-D6byRazK.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import { d as defaultColumnsKeys } from './payments-table-n1VrIKIR.js';
15
15
  import './Api-BrYhtpEh.js';
16
16
  import './utils-De6tr4ug.js';
17
17
  import './index-cDVGjRkU.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
  import './payments-status-7P7L51CK.js';
20
20
  import './badge-B_DdhQ3Q.js';
21
21
  import './parts-D50Rx76J.js';
@@ -8,14 +8,14 @@ import './Business-BcNb9bVO.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
10
10
  import { E as ErrorState } from './utils-DJOBwFeP.js';
11
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
11
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
12
12
  import { m as makeGetPayoutCSV } from './get-payout-csv-CzWaTjoV.js';
13
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
13
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
14
14
  import './Api-BrYhtpEh.js';
15
15
  import './utils-De6tr4ug.js';
16
16
  import './index-cDVGjRkU.js';
17
17
  import './parts-D50Rx76J.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
 
20
20
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
21
21
  var _a;
@@ -5,8 +5,8 @@ import { k as PayoutBalanceTransaction, C as ComponentErrorSeverity, a as Compon
5
5
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
6
6
  import './Business-BcNb9bVO.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
11
11
  import { P as PayoutService } from './payout.service-Dsz8f37z.js';
12
12
  import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Deugl8h5.js';
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
15
15
  import { a as convertToLocal } from './utils-De6tr4ug.js';
16
16
  import { q as tableHeadCell, u as getAlternateTableCellPart } from './parts-D50Rx76J.js';
17
17
  import './index-cDVGjRkU.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
  import './Api-BrYhtpEh.js';
20
20
  import './spinner--fEgBBOG.js';
21
21
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { g as Payout, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
3
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
5
5
  import { P as PayoutService } from './payout.service-Dsz8f37z.js';
6
6
  import './config-state-kKn89dp1.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -15,7 +15,7 @@ import { S as StyledHost } from './styled-host-D6byRazK.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { d as defaultColumnsKeys } from './payouts-table-CbzI90ci.js';
17
17
  import './utils-De6tr4ug.js';
18
- import './package-BW1eeDYQ.js';
18
+ import './package-B5w1e9rb.js';
19
19
  import './Api-BrYhtpEh.js';
20
20
  import './index-cDVGjRkU.js';
21
21
  import './payouts-status-CGZRMu-q.js';
@@ -11,8 +11,8 @@ import { S as StyledHost } from './styled-host-D6byRazK.js';
11
11
  import './event-types-CZfYo5-1.js';
12
12
  import { P as PaymentService } from './payment.service-J7iQtC5z.js';
13
13
  import { m as makeGetPaymentDetails } from './get-payment-details-B9JipaKX.js';
14
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
15
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
14
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
15
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
17
17
  import { A as Api } from './Api-BrYhtpEh.js';
18
18
  import { S as Skeleton } from './skeleton-DV6yJalo.js';
@@ -20,7 +20,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
20
20
  import './dinero-HXpYMWUU.js';
21
21
  import './index-cDVGjRkU.js';
22
22
  import './parts-D50Rx76J.js';
23
- import './package-BW1eeDYQ.js';
23
+ import './package-B5w1e9rb.js';
24
24
 
25
25
  const amountValidation = (maxAmount) => {
26
26
  const max = +maxAmount;
@@ -5,8 +5,8 @@ import './Pagination-CLHwhyvu.js';
5
5
  import './Business-BcNb9bVO.js';
6
6
  import './Dispute-BH0Xfn-F.js';
7
7
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
8
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
8
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
10
10
  import { c as checkoutStore } from './checkout.store-C1TdhFf6.js';
11
11
  import { p as processHTML, f as formatCurrency, r as removeAttribute, k as addAttribute } from './utils-De6tr4ug.js';
12
12
  import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-obAKb1XR.js';
@@ -16,7 +16,7 @@ import './event-types-CZfYo5-1.js';
16
16
  import { S as Skeleton } from './skeleton-DV6yJalo.js';
17
17
  import './config-state-kKn89dp1.js';
18
18
  import './index-cDVGjRkU.js';
19
- import './package-BW1eeDYQ.js';
19
+ import './package-B5w1e9rb.js';
20
20
  import './index-DkoufM1t.js';
21
21
  import './dinero-HXpYMWUU.js';
22
22
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { S as StyledHost } from './styled-host-D6byRazK.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
5
5
  import { d as defaultColumnsKeys } from './terminal-orders-table-DlVbBgNh.js';
6
6
  import './config-state-kKn89dp1.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -11,8 +11,8 @@ import './Business-BcNb9bVO.js';
11
11
  import './Dispute-BH0Xfn-F.js';
12
12
  import { g as getErrorCode, a as getErrorMessage } from './utils-jaFbbifV.js';
13
13
  import { A as Api } from './Api-BrYhtpEh.js';
14
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
15
- import './package-BW1eeDYQ.js';
14
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
15
+ import './package-B5w1e9rb.js';
16
16
  import './parts-D50Rx76J.js';
17
17
  import './utils-De6tr4ug.js';
18
18
  import './badge-B_DdhQ3Q.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
2
  import { h as Terminal, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Plaid-D40pFwwP.js';
3
- import { J as JustifiAnalytics } from './Analytics-BLWnbxJY.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-D9dGqUmC.js';
3
+ import { J as JustifiAnalytics } from './Analytics-Ds-ogIwt.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-Bd_MOwNP.js';
5
5
  import { T as TerminalService } from './terminal.service-Sg45obrZ.js';
6
6
  import './config-state-kKn89dp1.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -14,7 +14,7 @@ import { S as StyledHost } from './styled-host-D6byRazK.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './terminals-table-Bja7MP5H.js';
16
16
  import './utils-De6tr4ug.js';
17
- import './package-BW1eeDYQ.js';
17
+ import './package-B5w1e9rb.js';
18
18
  import './Api-BrYhtpEh.js';
19
19
  import './index-cDVGjRkU.js';
20
20
  import './badge-B_DdhQ3Q.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.12.1-rc.1";
2
+ const version = "6.12.1-rc.2";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -548,6 +548,7 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
548
548
  ],
549
549
  supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
550
550
  total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
551
+ requiredBillingContactFields: ApplePayHelpers.getDefaultBillingContactFields(),
551
552
  };
552
553
  const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
553
554
  if (result.success) {
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.12.1-rc.1";
2
+ const version = "6.12.1-rc.2";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -44,6 +44,7 @@ export interface IApplePayPaymentRequest {
44
44
  shippingMethods?: IApplePayShippingMethod[];
45
45
  applicationData?: string;
46
46
  supportedCountries?: string[];
47
+ requiredBillingContactFields?: string[];
47
48
  }
48
49
  export interface IApplePaySession {
49
50
  canMakePayments(): boolean;
@@ -1 +1 @@
1
- import{h as t,r as s,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-CEnTtUmd.js";import{C as r,a as o}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-C-Uj-u5r.js";import{J as c}from"./p-CXLV6LjG.js";import{c as l}from"./p-DELK4IgY.js";import{c as h}from"./p-EBsfAkrP.js";import{p as d,f as p,r as u,k as v}from"./p-CTwm3w6I.js";import{v as m,i as y,a as f,H as j}from"./p-_fynNk40.js";import{t as _,B as g}from"./p-D50Rx76J.js";import{S as k}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-BrO0HEFJ.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BW1eeDYQ.js";import"./p-DkoufM1t.js";import"./p-HXpYMWUU.js";const C=e();class b{async fetchQuote(t,s){return C.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return C.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(w,{width:"70%"})),t("div",{class:"col-12"},t(w,{width:"40%"})),t("div",{class:"col-12"},t(w,{width:"40%"})),t("div",{class:"col-12"},t(w,{width:"100%"})),t("div",{class:"col-12"},t(w,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",_),t=>v(t,"p","part",_)])}componentWillLoad(){l(),this.analytics=new c(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new b};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(k,null,this.isLoading?t(T,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),t("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
1
+ import{h as t,r as s,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-CEnTtUmd.js";import{C as r,a as o}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-C-Uj-u5r.js";import{J as c}from"./p-x7WGc-xR.js";import{c as l}from"./p-DKzki_Iz.js";import{c as h}from"./p-EBsfAkrP.js";import{p as d,f as p,r as u,k as v}from"./p-CTwm3w6I.js";import{v as m,i as y,a as f,H as j}from"./p-_fynNk40.js";import{t as _,B as g}from"./p-D50Rx76J.js";import{S as k}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-BrO0HEFJ.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-B5w1e9rb.js";import"./p-DkoufM1t.js";import"./p-HXpYMWUU.js";const b=e();class C{async fetchQuote(t,s){return b.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return b.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(w,{width:"70%"})),t("div",{class:"col-12"},t(w,{width:"40%"})),t("div",{class:"col-12"},t(w,{width:"40%"})),t("div",{class:"col-12"},t(w,{width:"100%"})),t("div",{class:"col-12"},t(w,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",_),t=>v(t,"p","part",_)])}componentWillLoad(){l(),this.analytics=new c(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new C};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):t(k,null,this.isLoading?t(T,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),t("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-CV0Pyo1O.js";import{E as r}from"./p-CjuaXEuI.js";import{B as o}from"./p-lFx33NDk.js";import{m as p}from"./p-CASlE7cE.js";import{C as e,a as m}from"./p-g6a7Gl9y.js";import{J as n}from"./p-CXLV6LjG.js";import{c as a}from"./p-DELK4IgY.js";import"./p-D50Rx76J.js";import"./p-CEnTtUmd.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CTwm3w6I.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-C-Uj-u5r.js";import"./p-BW1eeDYQ.js";const h=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{h as justifi_business_details}
1
+ import{r as s,c as i,h as t}from"./p-CV0Pyo1O.js";import{E as r}from"./p-CjuaXEuI.js";import{B as o}from"./p-lFx33NDk.js";import{m as p}from"./p-CASlE7cE.js";import{C as e,a as m}from"./p-g6a7Gl9y.js";import{J as n}from"./p-x7WGc-xR.js";import{c as a}from"./p-DKzki_Iz.js";import"./p-D50Rx76J.js";import"./p-CEnTtUmd.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CTwm3w6I.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-C-Uj-u5r.js";import"./p-B5w1e9rb.js";const h=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{h as justifi_business_details}
@@ -1 +1 @@
1
- import{r,c as s,h as t}from"./p-CV0Pyo1O.js";import{S as i}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as e}from"./p-DELK4IgY.js";import{d as o}from"./p-ZiYybdMz.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{l as a,C as n,a as c}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as m}from"./p-C-Uj-u5r.js";import{A as d}from"./p-CEnTtUmd.js";import{J as l}from"./p-CXLV6LjG.js";import"./p-BW1eeDYQ.js";import"./p-D50Rx76J.js";import"./p-CTwm3w6I.js";import"./p-Da4efjxw.js";import"./p-D8GTwl9v.js";const h=d();class f{async fetchTerminalOrders(r,s,t){return h.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const j=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=o,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new l(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:c})=>{var d,l;try{const c=await t.fetchTerminalOrders(r,s,i);if(c.error)return o({error:m(c.error),code:p(null===(l=c.error)||void 0===l?void 0:l.code),severity:n.ERROR});{const r=Object.assign({},c.page_info);e({terminalOrders:(null===(d=c.data)||void 0===d?void 0:d.map((r=>new a(r))))||[],pagingInfo:r})}}catch(r){const s=p(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new f}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"f505fd0cb18cae37cf0896883acd93212c45cc88"},t("terminal-orders-list-core",{key:"2eaf2c82b43a0fd8106b8ccfe76ebcdef01f75e8",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{j as justifi_terminal_orders_list}
1
+ import{r,c as s,h as t}from"./p-CV0Pyo1O.js";import{S as i}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as e}from"./p-DKzki_Iz.js";import{d as o}from"./p-ZiYybdMz.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{l as a,C as n,a as c}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as m}from"./p-C-Uj-u5r.js";import{A as d}from"./p-CEnTtUmd.js";import{J as l}from"./p-x7WGc-xR.js";import"./p-B5w1e9rb.js";import"./p-D50Rx76J.js";import"./p-CTwm3w6I.js";import"./p-Da4efjxw.js";import"./p-D8GTwl9v.js";const h=d();class f{async fetchTerminalOrders(r,s,t){return h.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const j=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=o,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new l(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:c})=>{var d,l;try{const c=await t.fetchTerminalOrders(r,s,i);if(c.error)return o({error:m(c.error),code:p(null===(l=c.error)||void 0===l?void 0:l.code),severity:n.ERROR});{const r=Object.assign({},c.page_info);e({terminalOrders:(null===(d=c.data)||void 0===d?void 0:d.map((r=>new a(r))))||[],pagingInfo:r})}}catch(r){const s=p(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new f}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"f505fd0cb18cae37cf0896883acd93212c45cc88"},t("terminal-orders-list-core",{key:"2eaf2c82b43a0fd8106b8ccfe76ebcdef01f75e8",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{j as justifi_terminal_orders_list}
@@ -1 +1 @@
1
- import{r as t,c as s,h as r}from"./p-CV0Pyo1O.js";import{P as i}from"./p-ChUBhd2W.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{c as o,C as e,a as p}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-C-Uj-u5r.js";import{J as m}from"./p-CXLV6LjG.js";import{c}from"./p-DELK4IgY.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d}from"./p-CSW_ZzE9.js";import"./p-CEnTtUmd.js";import"./p-CTwm3w6I.js";import"./p-D8GTwl9v.js";import"./p-BW1eeDYQ.js";import"./p-CzdAS9Jo.js";import"./p-Da4efjxw.js";import"./p-D50Rx76J.js";const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:p,onError:m,final:c})=>{var h,d;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:n(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);p({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new o(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:e.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR}))}render(){return r(h,{key:"1eb44d7abbd8ad6964538435786007fcd1792b41"},r("payments-list-core",{key:"6e178dfa35e107c2d0653a9fc1e0d1247ef99bb0",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
1
+ import{r as t,c as s,h as r}from"./p-CV0Pyo1O.js";import{P as i}from"./p-ChUBhd2W.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{c as o,C as e,a as p}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-C-Uj-u5r.js";import{J as m}from"./p-x7WGc-xR.js";import{c}from"./p-DKzki_Iz.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d}from"./p-CSW_ZzE9.js";import"./p-CEnTtUmd.js";import"./p-CTwm3w6I.js";import"./p-D8GTwl9v.js";import"./p-B5w1e9rb.js";import"./p-CzdAS9Jo.js";import"./p-Da4efjxw.js";import"./p-D50Rx76J.js";const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:p,onError:m,final:c})=>{var h,d;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:n(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);p({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new o(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:e.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR}))}render(){return r(h,{key:"1eb44d7abbd8ad6964538435786007fcd1792b41"},r("payments-list-core",{key:"6e178dfa35e107c2d0653a9fc1e0d1247ef99bb0",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}