@justifi/webcomponents 6.0.0-rc.17 → 6.0.0-rc.18

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 (88) hide show
  1. package/dist/cjs/{check-pkg-version-rUX0NaZj.js → check-pkg-version-BIRpFWjW.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  3. package/dist/cjs/justifi-apple-pay.cjs.entry.js +5 -31
  4. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +3 -4
  8. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  24. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  25. package/dist/cjs/{package-CwkrMpTG.js → package-BVAhjheJ.js} +1 -1
  26. package/dist/collection/components/modular-checkout/modular-checkout.js +1 -2
  27. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +6 -34
  28. package/dist/docs.json +1 -1
  29. package/dist/esm/{check-pkg-version-h58ZAK8T.js → check-pkg-version-DHG-pLKx.js} +1 -1
  30. package/dist/esm/hidden-input_2.entry.js +1 -1
  31. package/dist/esm/justifi-apple-pay.entry.js +5 -31
  32. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +2 -2
  33. package/dist/esm/justifi-business-details.entry.js +2 -2
  34. package/dist/esm/justifi-business-form.entry.js +2 -2
  35. package/dist/esm/justifi-checkout-summary_7.entry.js +3 -4
  36. package/dist/esm/justifi-checkout.entry.js +2 -2
  37. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  38. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  39. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  40. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  41. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  42. package/dist/esm/justifi-payment-details.entry.js +2 -2
  43. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  44. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  45. package/dist/esm/justifi-payments-list.entry.js +2 -2
  46. package/dist/esm/justifi-payout-details.entry.js +2 -2
  47. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  48. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  49. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  50. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  51. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  52. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  53. package/dist/esm/{package-fZXUzneK.js → package-D34B0fIu.js} +1 -1
  54. package/dist/module/justifi-apple-pay.js +5 -31
  55. package/dist/module/modular-checkout.js +1 -2
  56. package/dist/module/package.js +1 -1
  57. package/dist/webcomponents/{p-febb61e3.entry.js → p-00ce804c.entry.js} +1 -1
  58. package/dist/webcomponents/{p-2fe09e28.entry.js → p-1a00ae1a.entry.js} +1 -1
  59. package/dist/webcomponents/p-387951b7.entry.js +1 -0
  60. package/dist/webcomponents/{p-7bc1a2c2.entry.js → p-39caca63.entry.js} +1 -1
  61. package/dist/webcomponents/{p-2c9b0770.entry.js → p-43929b3f.entry.js} +1 -1
  62. package/dist/webcomponents/{p-e4259408.entry.js → p-52453823.entry.js} +1 -1
  63. package/dist/webcomponents/{p-f6745365.entry.js → p-5d604178.entry.js} +1 -1
  64. package/dist/webcomponents/{p-fc8c3b96.entry.js → p-5fbcf154.entry.js} +1 -1
  65. package/dist/webcomponents/{p-8883f4e1.entry.js → p-611a013a.entry.js} +1 -1
  66. package/dist/webcomponents/p-66b1a1be.entry.js +1 -0
  67. package/dist/webcomponents/{p-edc2851f.entry.js → p-857ed314.entry.js} +1 -1
  68. package/dist/webcomponents/{p-76c4740e.entry.js → p-8e3be834.entry.js} +1 -1
  69. package/dist/webcomponents/{p-ad79606e.entry.js → p-9080a91c.entry.js} +1 -1
  70. package/dist/webcomponents/{p-835c0438.entry.js → p-91110a56.entry.js} +1 -1
  71. package/dist/webcomponents/{p-bc246ce5.entry.js → p-91753cd0.entry.js} +1 -1
  72. package/dist/webcomponents/{p-46495601.entry.js → p-95279d6b.entry.js} +1 -1
  73. package/dist/webcomponents/p-D34B0fIu.js +1 -0
  74. package/dist/webcomponents/{p-CliUh8zt.js → p-DWOdLN23.js} +1 -1
  75. package/dist/webcomponents/{p-e5f2fb41.entry.js → p-ad6df3f2.entry.js} +1 -1
  76. package/dist/webcomponents/p-b37c187c.entry.js +1 -0
  77. package/dist/webcomponents/{p-71d52066.entry.js → p-b4cb8091.entry.js} +1 -1
  78. package/dist/webcomponents/p-ccc932f5.entry.js +1 -0
  79. package/dist/webcomponents/{p-f0b5df73.entry.js → p-cef742c4.entry.js} +1 -1
  80. package/dist/webcomponents/{p-8f11dc84.entry.js → p-dd481752.entry.js} +1 -1
  81. package/dist/webcomponents/{p-3c8b5121.entry.js → p-eab855aa.entry.js} +1 -1
  82. package/dist/webcomponents/webcomponents.esm.js +1 -1
  83. package/package.json +1 -1
  84. package/dist/webcomponents/p-27abb8bb.entry.js +0 -1
  85. package/dist/webcomponents/p-6f7b4979.entry.js +0 -1
  86. package/dist/webcomponents/p-b86e5c2b.entry.js +0 -1
  87. package/dist/webcomponents/p-e1501f53.entry.js +0 -1
  88. package/dist/webcomponents/p-fZXUzneK.js +0 -1
@@ -627,6 +627,7 @@ const ApplePay = class {
627
627
  supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
628
628
  total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
629
629
  };
630
+ console.log("paymentRequest", paymentRequest);
630
631
  const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
631
632
  if (result.success) {
632
633
  this.applePayCompleted.emit({
@@ -660,28 +661,7 @@ const ApplePay = class {
660
661
  }
661
662
  };
662
663
  }
663
- // private unsubscribeCheckoutLoaded?: () => void;
664
- // componentWillLoad() {
665
- // this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
666
- // console.log("checkoutLoaded", loaded);
667
- // if (loaded) {
668
- // this.initializeApplePay();
669
- // }
670
- // });
671
- // }
672
- // disconnectedCallback() {
673
- // this.unsubscribeCheckoutLoaded?.();
674
- // this.unsubscribeCheckoutLoaded = undefined;
675
- // }
676
- // @Watch("merchantIdentifier")
677
- // @Watch("buttonType")
678
- // @Watch("buttonStyle")
679
- // @Watch("disabled")
680
- // watchPropsChange() {
681
- // this.initializeApplePay();
682
- // }
683
664
  async initializeApplePay() {
684
- console.log("initializeApplePay", checkoutStore.checkoutLoaded);
685
665
  try {
686
666
  this.isLoading = true;
687
667
  this.error = null;
@@ -690,9 +670,9 @@ const ApplePay = class {
690
670
  Boolean(checkoutStore.paymentCurrency) &&
691
671
  Boolean(checkoutStore.authToken);
692
672
  if (!hasRequiredConfig) {
693
- this.error = "Missing required Apple Pay configuration blabla blabla 2";
673
+ this.error = "Missing required Apple Pay configuration";
694
674
  this.isConfigValid = false;
695
- console.error("Apple Pay config error: missing required values blabla blabla 2", {
675
+ console.error("Apple Pay config error: missing required values", {
696
676
  paymentAmount: checkoutStore.paymentAmount,
697
677
  paymentCurrency: checkoutStore.paymentCurrency,
698
678
  hasAuthToken: Boolean(checkoutStore.authToken),
@@ -759,19 +739,13 @@ const ApplePay = class {
759
739
  this.applePayCancelled.emit();
760
740
  }
761
741
  render() {
762
- // const shouldHide =
763
- // !this.isLoading &&
764
- // (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
765
- // if (shouldHide) {
766
- // return null;
767
- // }
768
742
  const isReady = !this.isLoading &&
769
743
  this.isAvailable &&
770
744
  this.canMakePayments &&
771
745
  this.isConfigValid;
772
- return (h(StyledHost, { key: 'ac97a93a1351ec6b3cf148377721b8f019aafd77' }, checkoutStore.checkoutLoaded && (h("script", { key: '2d4c928c3228a273bef756cce4c4ac05182e7efa', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
746
+ return (h(StyledHost, { key: '89555e4ca332762a2212d1ef447c9890fa9dc154' }, checkoutStore.checkoutLoaded && (h("script", { key: '0770cdfd74b354262215f651713e92cc3a4cc2a0', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
773
747
  this.initializeApplePay();
774
- } })), h("div", { key: '8890def5a313a29e42b358c55f3209ef30054d54', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'a531fbe89a491a911a0aa6ff42a80458e63030b5', isReady: isReady }), isReady && (h(ApplePayButton, { key: '77e0b5e8cff57ee4dd2956671b14dc9c90101326', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '3ad594d30382388cf5defc050e5f2e5a17017c7b' }, `
748
+ } })), h("div", { key: '8e97c5c22626c24d81b7fe1114b35808f3ba0758', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '8c3859ab8a7b5c215366667692c84841c34a96de', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'ab9e158a240c81530f693a6272c974a0c62fe317', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '4182e97979dcb25b9e5e0f13fa176037fe0300e0' }, `
775
749
  .apple-pay-container {
776
750
  width: 100%;
777
751
  }
@@ -5,7 +5,7 @@ import { r as radioListItem, av as billingForm } from './parts-RvUQ__Pq.js';
5
5
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
6
6
  import './event-types-CZfYo5-1.js';
7
7
  import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
8
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
8
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
9
9
  import { w as waitForConfig, c as configState } from './config-state-DZeVYerv.js';
10
10
  import { H as Header3 } from './header-3-CWa41YWq.js';
11
11
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
@@ -16,7 +16,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
16
16
  import './business-form-options-CgssATyg.js';
17
17
  import './Business-BCoP0TAV.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
- import './package-fZXUzneK.js';
19
+ import './package-D34B0fIu.js';
20
20
  import './Api-DAWuvzbl.js';
21
21
  import './utils-BscIVFn8.js';
22
22
  import './dinero-HXpYMWUU.js';
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-Dg6gMUTv.js';
3
3
  import { B as BusinessService } from './business.service-cQrH5BqF.js';
4
4
  import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
7
7
  import './parts-RvUQ__Pq.js';
8
8
  import './Api-DAWuvzbl.js';
9
9
  import './config-state-DZeVYerv.js';
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
17
17
  import './helpers-Mu7LQT-w.js';
18
18
  import './state-options-BX8GieXu.js';
19
19
  import './utils-BeQLScSm.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
 
22
22
  const BusinessDetails = class {
23
23
  constructor(hostRef) {
@@ -9,7 +9,7 @@ import './Refund-CVh70dXA.js';
9
9
  import './Pagination-CLHwhyvu.js';
10
10
  import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
11
11
  import './Dispute-BH0Xfn-F.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
13
13
  import { B as Button } from './button-CpllL0At.js';
14
14
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
15
15
  import { H as Header1 } from './header-1-3M9If0gM.js';
@@ -25,7 +25,7 @@ import './business-form-options-CgssATyg.js';
25
25
  import './index-B_KxSZIF.js';
26
26
  import './utils-BscIVFn8.js';
27
27
  import './helpers-Mu7LQT-w.js';
28
- import './package-fZXUzneK.js';
28
+ import './package-D34B0fIu.js';
29
29
  import './Api-DAWuvzbl.js';
30
30
  import './parts-RvUQ__Pq.js';
31
31
  import './utils-BeQLScSm.js';
@@ -7,7 +7,7 @@ import './event-types-CZfYo5-1.js';
7
7
  import { H as Header1 } from './header-1-3M9If0gM.js';
8
8
  import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-CTalqbNa.js';
9
9
  import { H as Header3 } from './header-3-CWa41YWq.js';
10
- import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-h58ZAK8T.js';
10
+ import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-DHG-pLKx.js';
11
11
  import './config-state-DZeVYerv.js';
12
12
  import './dinero-HXpYMWUU.js';
13
13
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
@@ -21,7 +21,7 @@ import { A as Api } from './Api-DAWuvzbl.js';
21
21
  import { a as PAYMENT_MODE, b as PAYMENT_METHOD_TYPES, P as PAYMENT_METHODS } from './index-CbL73B6U.js';
22
22
  import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
23
23
  import './index-B_KxSZIF.js';
24
- import './package-fZXUzneK.js';
24
+ import './package-D34B0fIu.js';
25
25
  import './helpers-Mu7LQT-w.js';
26
26
  import './state-options-BX8GieXu.js';
27
27
 
@@ -319,7 +319,6 @@ const ModularCheckout = class {
319
319
  checkoutStore.selectedPaymentMethod = paymentMethod;
320
320
  checkoutStore.paymentToken = paymentMethod.id || undefined;
321
321
  }
322
- // getAvailablePaymentMethods removed in favor of checkout-changed event
323
322
  // if validation fails, the error will be emitted by the component
324
323
  async validate() {
325
324
  const promises = [];
@@ -467,7 +466,7 @@ const ModularCheckout = class {
467
466
  });
468
467
  }
469
468
  render() {
470
- return h(Host, { key: '7ee5bc2bb0a8c1ed497440c7b1f90d1a2fb3c8bb' });
469
+ return h(Host, { key: '2cbac33c57dd2cad327f156a4630b1dba9bf3252' });
471
470
  }
472
471
  get hostEl() { return getElement(this); }
473
472
  };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
3
3
  import './config-state-DZeVYerv.js';
4
4
  import './dinero-HXpYMWUU.js';
5
5
  import './ComponentError-Cjcsf8ku.js';
@@ -12,7 +12,7 @@ import { d as checkoutSummary } from './parts-RvUQ__Pq.js';
12
12
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import { P as PAYMENT_METHODS } from './index-CbL73B6U.js';
15
- import './package-fZXUzneK.js';
15
+ import './package-D34B0fIu.js';
16
16
  import './Api-DAWuvzbl.js';
17
17
  import './utils-BscIVFn8.js';
18
18
  import './index-B_KxSZIF.js';
@@ -7,7 +7,7 @@ import './Pagination-CLHwhyvu.js';
7
7
  import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
11
11
  import { C as CheckoutService } from './checkout.service-Bbgi1I6V.js';
12
12
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-9UMbyFiT.js';
13
13
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
@@ -17,7 +17,7 @@ import './index-B_KxSZIF.js';
17
17
  import './utils-BscIVFn8.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
  import './Api-DAWuvzbl.js';
22
22
  import './badge-DSYSJcRy.js';
23
23
  import './parts-RvUQ__Pq.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
4
4
  import { D as Dispute } from './Dispute-BH0Xfn-F.js';
5
5
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
6
6
  import { D as DisputeService } from './dispute.service-CrZsNDW8.js';
7
- import './package-fZXUzneK.js';
7
+ import './package-D34B0fIu.js';
8
8
  import './Api-DAWuvzbl.js';
9
9
  import './config-state-DZeVYerv.js';
10
10
  import './index-B_KxSZIF.js';
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
10
  import { D as DisputeService } from './dispute.service-CrZsNDW8.js';
11
11
  import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
13
13
  import './dinero-HXpYMWUU.js';
14
14
  import './Api-DAWuvzbl.js';
15
15
  import './config-state-DZeVYerv.js';
@@ -20,7 +20,7 @@ import './Pagination-CLHwhyvu.js';
20
20
  import './Business-BCoP0TAV.js';
21
21
  import './helpers-Mu7LQT-w.js';
22
22
  import './state-options-BX8GieXu.js';
23
- import './package-fZXUzneK.js';
23
+ import './package-D34B0fIu.js';
24
24
 
25
25
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
26
26
  var _a;
@@ -7,7 +7,7 @@ import './Business-BCoP0TAV.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
9
  import { E as ErrorState } from './utils-Dg6gMUTv.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
11
11
  import './config-state-DZeVYerv.js';
12
12
  import './index-B_KxSZIF.js';
13
13
  import './utils-BscIVFn8.js';
@@ -15,7 +15,7 @@ import './dinero-HXpYMWUU.js';
15
15
  import './helpers-Mu7LQT-w.js';
16
16
  import './state-options-BX8GieXu.js';
17
17
  import './parts-RvUQ__Pq.js';
18
- import './package-fZXUzneK.js';
18
+ import './package-D34B0fIu.js';
19
19
 
20
20
  const api = Api();
21
21
  class ReportsService {
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-Bn7inNWG.js'
2
2
  import { al as heading5, ai as heading4, ae as buttonPrimary, z as text } from './parts-RvUQ__Pq.js';
3
3
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
7
7
  import { B as BusinessService } from './business.service-cQrH5BqF.js';
8
8
  import { B as Business } from './Business-BCoP0TAV.js';
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
17
  import { T as TerminalService } from './terminal.service-E6dZlM43.js';
18
18
  import { k as formatPhoneNumber } from './utils-BscIVFn8.js';
19
- import './package-fZXUzneK.js';
19
+ import './package-D34B0fIu.js';
20
20
  import './Api-DAWuvzbl.js';
21
21
  import './helpers-Mu7LQT-w.js';
22
22
  import './state-options-BX8GieXu.js';
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-TxyxCg0E.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-0VzpMNY9.js';
4
4
  import { E as ErrorState } from './utils-Dg6gMUTv.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
7
7
  import './Api-DAWuvzbl.js';
8
8
  import './config-state-DZeVYerv.js';
9
9
  import './index-B_KxSZIF.js';
@@ -17,7 +17,7 @@ import './helpers-Mu7LQT-w.js';
17
17
  import './state-options-BX8GieXu.js';
18
18
  import './utils-BeQLScSm.js';
19
19
  import './parts-RvUQ__Pq.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
 
22
22
  const PaymentDetails = class {
23
23
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
3
3
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-ONP8lDnV.js';
5
5
  import { B as BusinessService } from './business.service-cQrH5BqF.js';
@@ -8,7 +8,7 @@ import './Refund-CVh70dXA.js';
8
8
  import './Pagination-CLHwhyvu.js';
9
9
  import './Business-BCoP0TAV.js';
10
10
  import './Dispute-BH0Xfn-F.js';
11
- import './package-fZXUzneK.js';
11
+ import './package-D34B0fIu.js';
12
12
  import './utils-BeQLScSm.js';
13
13
  import './config-state-DZeVYerv.js';
14
14
  import './index-B_KxSZIF.js';
@@ -6,7 +6,7 @@ import { g as PaymentBalanceTransaction } from './Refund-CVh70dXA.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { P as PaymentService } from './payment.service-TxyxCg0E.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-Br3n9Xu-.js';
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-RvUQ
17
17
  import './index-B_KxSZIF.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
  import './Api-DAWuvzbl.js';
22
22
  import './spinner-DUzyWLhj.js';
23
23
 
@@ -8,7 +8,7 @@ import './Pagination-CLHwhyvu.js';
8
8
  import './Business-BCoP0TAV.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
12
12
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import { d as defaultColumnsKeys } from './payments-table-gkJV5GNK.js';
@@ -17,7 +17,7 @@ import './utils-BscIVFn8.js';
17
17
  import './index-B_KxSZIF.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
  import './payments-status-5orNU2Rd.js';
22
22
  import './badge-DSYSJcRy.js';
23
23
  import './parts-RvUQ__Pq.js';
@@ -9,7 +9,7 @@ import './Business-BCoP0TAV.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { E as ErrorState } from './utils-Dg6gMUTv.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
13
13
  import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
14
14
  import './Api-DAWuvzbl.js';
15
15
  import './utils-BscIVFn8.js';
@@ -17,7 +17,7 @@ import './index-B_KxSZIF.js';
17
17
  import './helpers-Mu7LQT-w.js';
18
18
  import './state-options-BX8GieXu.js';
19
19
  import './parts-RvUQ__Pq.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
 
22
22
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
23
23
  var _a;
@@ -6,7 +6,7 @@ import { h as PayoutBalanceTransaction } from './Refund-CVh70dXA.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { P as PayoutService } from './payout.service-BOwZ4wWh.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-Br3n9Xu-.js';
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-RvUQ
17
17
  import './index-B_KxSZIF.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-fZXUzneK.js';
20
+ import './package-D34B0fIu.js';
21
21
  import './Api-DAWuvzbl.js';
22
22
  import './spinner-DUzyWLhj.js';
23
23
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
4
4
  import { P as PayoutService } from './payout.service-BOwZ4wWh.js';
5
5
  import './config-state-DZeVYerv.js';
6
6
  import './dinero-HXpYMWUU.js';
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
14
14
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { d as defaultColumnsKeys } from './payouts-table-0PtktGRd.js';
17
- import './package-fZXUzneK.js';
17
+ import './package-D34B0fIu.js';
18
18
  import './Api-DAWuvzbl.js';
19
19
  import './utils-BscIVFn8.js';
20
20
  import './index-B_KxSZIF.js';
@@ -12,7 +12,7 @@ import { S as StyledHost } from './styled-host-CTAGIN84.js';
12
12
  import './event-types-CZfYo5-1.js';
13
13
  import { P as PaymentService } from './payment.service-TxyxCg0E.js';
14
14
  import { m as makeGetPaymentDetails } from './get-payment-details-0VzpMNY9.js';
15
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
15
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
17
  import { A as Api } from './Api-DAWuvzbl.js';
18
18
  import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
@@ -22,7 +22,7 @@ import './index-B_KxSZIF.js';
22
22
  import './helpers-Mu7LQT-w.js';
23
23
  import './state-options-BX8GieXu.js';
24
24
  import './parts-RvUQ__Pq.js';
25
- import './package-fZXUzneK.js';
25
+ import './package-D34B0fIu.js';
26
26
 
27
27
  const amountValidation = (maxAmount) => {
28
28
  const max = +maxAmount;
@@ -6,7 +6,7 @@ import './Pagination-CLHwhyvu.js';
6
6
  import './Business-BCoP0TAV.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
10
10
  import { c as checkoutStore } from './checkout.store-OD-OX5On.js';
11
11
  import { p as processHTML, f as formatCurrency, r as removeAttribute, i as addAttribute } from './utils-BscIVFn8.js';
12
12
  import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-CTalqbNa.js';
@@ -18,7 +18,7 @@ import './config-state-DZeVYerv.js';
18
18
  import './index-B_KxSZIF.js';
19
19
  import './helpers-Mu7LQT-w.js';
20
20
  import './state-options-BX8GieXu.js';
21
- import './package-fZXUzneK.js';
21
+ import './package-D34B0fIu.js';
22
22
  import './dinero-HXpYMWUU.js';
23
23
  import './index-CbL73B6U.js';
24
24
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
2
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
5
5
  import { d as defaultColumnsKeys } from './terminal-orders-table-DTBSIMlJ.js';
6
6
  import './config-state-DZeVYerv.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -12,7 +12,7 @@ import './Business-BCoP0TAV.js';
12
12
  import './Dispute-BH0Xfn-F.js';
13
13
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
14
14
  import { A as Api } from './Api-DAWuvzbl.js';
15
- import './package-fZXUzneK.js';
15
+ import './package-D34B0fIu.js';
16
16
  import './parts-RvUQ__Pq.js';
17
17
  import './utils-BscIVFn8.js';
18
18
  import './badge-DSYSJcRy.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-h58ZAK8T.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DHG-pLKx.js';
4
4
  import { T as TerminalService } from './terminal.service-E6dZlM43.js';
5
5
  import './config-state-DZeVYerv.js';
6
6
  import './dinero-HXpYMWUU.js';
@@ -13,7 +13,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
13
13
  import { S as StyledHost } from './styled-host-CTAGIN84.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './terminals-table-TGUKTi7I.js';
16
- import './package-fZXUzneK.js';
16
+ import './package-D34B0fIu.js';
17
17
  import './Api-DAWuvzbl.js';
18
18
  import './utils-BscIVFn8.js';
19
19
  import './index-B_KxSZIF.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.0.0-rc.17";
2
+ const version = "6.0.0-rc.18";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -618,6 +618,7 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
618
618
  supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
619
619
  total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
620
620
  };
621
+ console.log("paymentRequest", paymentRequest);
621
622
  const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
622
623
  if (result.success) {
623
624
  this.applePayCompleted.emit({
@@ -651,28 +652,7 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
651
652
  }
652
653
  };
653
654
  }
654
- // private unsubscribeCheckoutLoaded?: () => void;
655
- // componentWillLoad() {
656
- // this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
657
- // console.log("checkoutLoaded", loaded);
658
- // if (loaded) {
659
- // this.initializeApplePay();
660
- // }
661
- // });
662
- // }
663
- // disconnectedCallback() {
664
- // this.unsubscribeCheckoutLoaded?.();
665
- // this.unsubscribeCheckoutLoaded = undefined;
666
- // }
667
- // @Watch("merchantIdentifier")
668
- // @Watch("buttonType")
669
- // @Watch("buttonStyle")
670
- // @Watch("disabled")
671
- // watchPropsChange() {
672
- // this.initializeApplePay();
673
- // }
674
655
  async initializeApplePay() {
675
- console.log("initializeApplePay", checkoutStore.checkoutLoaded);
676
656
  try {
677
657
  this.isLoading = true;
678
658
  this.error = null;
@@ -681,9 +661,9 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
681
661
  Boolean(checkoutStore.paymentCurrency) &&
682
662
  Boolean(checkoutStore.authToken);
683
663
  if (!hasRequiredConfig) {
684
- this.error = "Missing required Apple Pay configuration blabla blabla 2";
664
+ this.error = "Missing required Apple Pay configuration";
685
665
  this.isConfigValid = false;
686
- console.error("Apple Pay config error: missing required values blabla blabla 2", {
666
+ console.error("Apple Pay config error: missing required values", {
687
667
  paymentAmount: checkoutStore.paymentAmount,
688
668
  paymentCurrency: checkoutStore.paymentCurrency,
689
669
  hasAuthToken: Boolean(checkoutStore.authToken),
@@ -750,19 +730,13 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
750
730
  this.applePayCancelled.emit();
751
731
  }
752
732
  render() {
753
- // const shouldHide =
754
- // !this.isLoading &&
755
- // (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
756
- // if (shouldHide) {
757
- // return null;
758
- // }
759
733
  const isReady = !this.isLoading &&
760
734
  this.isAvailable &&
761
735
  this.canMakePayments &&
762
736
  this.isConfigValid;
763
- return (h(StyledHost, { key: 'ac97a93a1351ec6b3cf148377721b8f019aafd77' }, checkoutStore.checkoutLoaded && (h("script", { key: '2d4c928c3228a273bef756cce4c4ac05182e7efa', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
737
+ return (h(StyledHost, { key: '89555e4ca332762a2212d1ef447c9890fa9dc154' }, checkoutStore.checkoutLoaded && (h("script", { key: '0770cdfd74b354262215f651713e92cc3a4cc2a0', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
764
738
  this.initializeApplePay();
765
- } })), h("div", { key: '8890def5a313a29e42b358c55f3209ef30054d54', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'a531fbe89a491a911a0aa6ff42a80458e63030b5', isReady: isReady }), isReady && (h(ApplePayButton, { key: '77e0b5e8cff57ee4dd2956671b14dc9c90101326', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '3ad594d30382388cf5defc050e5f2e5a17017c7b' }, `
739
+ } })), h("div", { key: '8e97c5c22626c24d81b7fe1114b35808f3ba0758', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '8c3859ab8a7b5c215366667692c84841c34a96de', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'ab9e158a240c81530f693a6272c974a0c62fe317', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '4182e97979dcb25b9e5e0f13fa176037fe0300e0' }, `
766
740
  .apple-pay-container {
767
741
  width: 100%;
768
742
  }
@@ -262,7 +262,6 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
262
262
  checkoutStore.selectedPaymentMethod = paymentMethod;
263
263
  checkoutStore.paymentToken = paymentMethod.id || undefined;
264
264
  }
265
- // getAvailablePaymentMethods removed in favor of checkout-changed event
266
265
  // if validation fails, the error will be emitted by the component
267
266
  async validate() {
268
267
  const promises = [];
@@ -410,7 +409,7 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
410
409
  });
411
410
  }
412
411
  render() {
413
- return h(Host, { key: '7ee5bc2bb0a8c1ed497440c7b1f90d1a2fb3c8bb' });
412
+ return h(Host, { key: '2cbac33c57dd2cad327f156a4630b1dba9bf3252' });
414
413
  }
415
414
  get hostEl() { return this; }
416
415
  }, [256, "justifi-modular-checkout", {
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.0.0-rc.17";
2
+ const version = "6.0.0-rc.18";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};