@justifi/webcomponents 5.7.6-rc-15 → 5.7.6-rc-17

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 (90) hide show
  1. package/dist/cjs/{check-pkg-version-ByX4f7IS.js → check-pkg-version-CrxxePuX.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 +20 -8
  4. package/dist/cjs/justifi-bank-account-form_5.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-button_5.cjs.entry.js +2 -2
  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/justifi-tokenize-payment-method.cjs.entry.js +2 -2
  26. package/dist/cjs/{package-B9lk24pE.js → package-DEAhBHUS.js} +1 -1
  27. package/dist/collection/api/services/apple-pay.service.js +9 -2
  28. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +11 -6
  29. package/dist/docs.json +1 -1
  30. package/dist/esm/{check-pkg-version-B41631Te.js → check-pkg-version-C77xIlwV.js} +1 -1
  31. package/dist/esm/hidden-input_2.entry.js +1 -1
  32. package/dist/esm/justifi-apple-pay.entry.js +20 -8
  33. package/dist/esm/justifi-bank-account-form_5.entry.js +2 -2
  34. package/dist/esm/justifi-business-details.entry.js +2 -2
  35. package/dist/esm/justifi-business-form.entry.js +2 -2
  36. package/dist/esm/justifi-button_5.entry.js +2 -2
  37. package/dist/esm/justifi-checkout.entry.js +2 -2
  38. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  39. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  40. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  41. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  42. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  43. package/dist/esm/justifi-payment-details.entry.js +2 -2
  44. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  45. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  46. package/dist/esm/justifi-payments-list.entry.js +2 -2
  47. package/dist/esm/justifi-payout-details.entry.js +2 -2
  48. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  49. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  50. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  51. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  52. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  53. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  54. package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
  55. package/dist/esm/{package-DQw405te.js → package-CXbfqbl8.js} +1 -1
  56. package/dist/module/justifi-apple-pay.js +20 -8
  57. package/dist/module/package.js +1 -1
  58. package/dist/webcomponents/{p-4f730a07.entry.js → p-0dd2ca59.entry.js} +1 -1
  59. package/dist/webcomponents/p-112c600c.entry.js +1 -0
  60. package/dist/webcomponents/{p-6c315467.entry.js → p-20e4a266.entry.js} +1 -1
  61. package/dist/webcomponents/{p-cfe079ec.entry.js → p-24e52dd7.entry.js} +1 -1
  62. package/dist/webcomponents/{p-ade655af.entry.js → p-31e8f0aa.entry.js} +1 -1
  63. package/dist/webcomponents/p-3f50ce69.entry.js +1 -0
  64. package/dist/webcomponents/{p-5dcb70a4.entry.js → p-4b1c6b41.entry.js} +1 -1
  65. package/dist/webcomponents/{p-25926883.entry.js → p-59a6343e.entry.js} +1 -1
  66. package/dist/webcomponents/{p-8e2a45e4.entry.js → p-6a0b7d0f.entry.js} +1 -1
  67. package/dist/webcomponents/{p-51713085.entry.js → p-8d14f614.entry.js} +1 -1
  68. package/dist/webcomponents/{p-3f6f37f7.entry.js → p-9dbd4025.entry.js} +1 -1
  69. package/dist/webcomponents/p-CXbfqbl8.js +1 -0
  70. package/dist/webcomponents/{p-DgpDYsPj.js → p-Dd5ABBzD.js} +1 -1
  71. package/dist/webcomponents/p-a30e2f9f.entry.js +1 -0
  72. package/dist/webcomponents/{p-0d42a7d1.entry.js → p-a80d0cb9.entry.js} +1 -1
  73. package/dist/webcomponents/{p-d012ef90.entry.js → p-acf28b99.entry.js} +1 -1
  74. package/dist/webcomponents/{p-b0e5ec4a.entry.js → p-b0edb29f.entry.js} +1 -1
  75. package/dist/webcomponents/{p-3638ee2a.entry.js → p-bcf9f037.entry.js} +1 -1
  76. package/dist/webcomponents/{p-54f63be6.entry.js → p-c1908830.entry.js} +1 -1
  77. package/dist/webcomponents/{p-35183cd8.entry.js → p-dbb2775f.entry.js} +1 -1
  78. package/dist/webcomponents/{p-b0d13720.entry.js → p-e314926e.entry.js} +1 -1
  79. package/dist/webcomponents/{p-09ed066a.entry.js → p-e335712e.entry.js} +1 -1
  80. package/dist/webcomponents/{p-08ddd64a.entry.js → p-e8cb4051.entry.js} +1 -1
  81. package/dist/webcomponents/p-edfaaa43.entry.js +1 -0
  82. package/dist/webcomponents/{p-60bd5d42.entry.js → p-f56576f2.entry.js} +1 -1
  83. package/dist/webcomponents/{p-848f201c.entry.js → p-fc099a9b.entry.js} +1 -1
  84. package/dist/webcomponents/webcomponents.esm.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/webcomponents/p-28053d61.entry.js +0 -1
  87. package/dist/webcomponents/p-DQw405te.js +0 -1
  88. package/dist/webcomponents/p-a593ea40.entry.js +0 -1
  89. package/dist/webcomponents/p-e0084249.entry.js +0 -1
  90. package/dist/webcomponents/p-e325a33c.entry.js +0 -1
@@ -3,7 +3,7 @@ import { c as createStore } from './index-B9me4yN2.js';
3
3
  import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-D3G5aVLy.js';
4
4
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
5
5
  import { F as FormControlErrorText } from './form-control-error-text-Dew-m4MW.js';
6
- import { p as packageJson } from './package-DQw405te.js';
6
+ import { p as packageJson } from './package-CXbfqbl8.js';
7
7
 
8
8
  const iframeInputStylesStore = createStore({
9
9
  focused: {
@@ -185,16 +185,22 @@ class ApplePayService {
185
185
  async validateMerchant(authToken, payload) {
186
186
  const endpoint = `${this.apiBaseUrl}/v1/apple_pay/merchant_session`;
187
187
  const body = payload;
188
+ console.log('=== MERCHANT VALIDATION REQUEST ===');
189
+ console.log('Endpoint:', endpoint);
190
+ console.log('Payload:', body);
191
+ console.log('Auth token present:', !!authToken);
192
+ console.log('Account ID:', this.accountId);
188
193
  const response = await fetch(endpoint, {
189
194
  method: 'POST',
190
195
  headers: {
191
196
  'Content-Type': 'application/json',
192
197
  Accept: 'application/json',
193
198
  Authorization: `Bearer ${authToken}`,
194
- "Sub-Account": this.accountId
199
+ 'Sub-Account': this.accountId,
195
200
  },
196
201
  body: JSON.stringify(body),
197
202
  });
203
+ console.log('Response status:', response.status);
198
204
  if (!response.ok) {
199
205
  const errorData = await response.text();
200
206
  console.error('Backend validation failed - Raw response:', errorData);
@@ -208,6 +214,7 @@ class ApplePayService {
208
214
  throw new Error(`Merchant validation failed: ${response.status}`);
209
215
  }
210
216
  const merchantSession = await response.json();
217
+ console.log('Merchant session received:', merchantSession);
211
218
  return merchantSession;
212
219
  }
213
220
  /**
@@ -222,7 +229,7 @@ class ApplePayService {
222
229
  'Content-Type': 'application/json',
223
230
  Accept: 'application/json',
224
231
  Authorization: `Bearer ${authToken}`,
225
- "Sub-Account": this.accountId
232
+ 'Sub-Account': this.accountId,
226
233
  },
227
234
  body: JSON.stringify(body),
228
235
  });
@@ -737,14 +744,15 @@ const ApplePay = class {
737
744
  });
738
745
  }
739
746
  watchPropsChange() {
740
- if (this.applePayService) {
741
- this.applePayService.setApiBaseUrl(this.apiBaseUrl);
742
- this.applePayService.setAuthToken(checkoutStore.authToken);
743
- }
744
747
  this.initializeApplePay();
745
748
  }
746
749
  async initializeApplePay() {
750
+ console.log('Initializing Apple Pay');
747
751
  try {
752
+ if (this.applePayService) {
753
+ this.applePayService.setApiBaseUrl(this.apiBaseUrl);
754
+ this.applePayService.setAuthToken(checkoutStore.authToken);
755
+ }
748
756
  this.isLoading = true;
749
757
  this.error = null;
750
758
  if (!checkoutStore.paymentAmount) {
@@ -772,6 +780,10 @@ const ApplePay = class {
772
780
  buttonType: this.buttonType,
773
781
  buttonStyle: this.buttonStyle,
774
782
  };
783
+ console.log('=== APPLE PAY CONFIG ===');
784
+ console.log('Config:', applePayConfig);
785
+ console.log('Auth token present:', !!checkoutStore.authToken);
786
+ console.log('Account ID:', checkoutStore.accountId);
775
787
  this.applePayService.setAccountId(checkoutStore.accountId);
776
788
  this.applePayService.initialize(applePayConfig);
777
789
  const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
@@ -809,10 +821,10 @@ const ApplePay = class {
809
821
  this.isAvailable &&
810
822
  this.canMakePayments &&
811
823
  !this.error;
812
- return (h(StyledHost, { key: '953181f3712f10b4b9b04bef01234c8e4933e9b5' }, h("script", { key: '56f8b6ea2195084a6da92f621971d36f6d1f9a1c', src: "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js" }), h("div", { key: 'e0bc21900fa8d1c6530fd85949df3597671bc2d2', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '9fe1873351ebd2f44ac55e9f1b4226546bc974c7', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '037b2c8b667b2979bee387036e3f61e73bac7a9c', class: 'apple-pay-error', role: 'alert' }, h("span", { key: '690db2fcceeeed89ef79604e4055b674faa88ec7', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '0b8dbc5aba93ac1f2653ad25bf8591010a76ce01', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '485cd6aa6cf5913b868ae377e7d92bbf4e06ef26', class: 'apple-pay-unavailable' }, h("span", { key: '5d19e24d39f197dd67f3f06244763771a8d79f66', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
824
+ return (h(StyledHost, { key: '1067306dfa050d5c89d9bc64991c4a8e95427b3e' }, h("script", { key: '737e6d849fffc8902867dfa8a68d18f0da81f4fd', async: true, src: "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js" }), h("div", { key: 'b354353c65d7f56db82c61ff088ed1d37eea905b', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '82d80ec54612e57b7a1eef76925194659e3186bb', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '0b5923bfbc3d0616fee8de4fd43b149810b91ca4', class: 'apple-pay-error', role: 'alert' }, h("span", { key: 'f3a885c30fee6375becfa53c147895db58ab1336', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '3a5ff8b3f89c46092fe41a04eb9dd635fe959d34', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '1a5ad2a2ed7e748dab98e66dca56b337991ef648', class: 'apple-pay-unavailable' }, h("span", { key: '7684e951c36278404e15b8497e9c74ffeb2cb992', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
813
825
  !this.error &&
814
826
  this.isAvailable &&
815
- this.canMakePayments && (h(ApplePayButton, { key: 'ad33bb08354abf930de5e3f1d873ee2818929a40', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '59d757ff744c1a684e8c4d78a0d2463ded62288a' }, `
827
+ this.canMakePayments && (h(ApplePayButton, { key: '94c75b7ab68f8ff02e4953689de8931cb5aab1f2', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'acdef8691d85e319fc0ab548443173f2bd32029d' }, `
816
828
  .apple-pay-container {
817
829
  width: 100%;
818
830
  }
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js'
2
2
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
3
3
  import './event-types-CZfYo5-1.js';
4
4
  import { S as Skeleton } from './skeleton-CZfDofm6.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
6
6
  import { w as waitForConfig, c as configState } from './config-state-BrllxiM0.js';
7
7
  import { c as create$3, F as FormController } from './index.esm-cYgKOXtz.js';
8
8
  import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-DcR1ujuX.js';
@@ -10,7 +10,7 @@ import { ag as billingForm } from './parts-D3G5aVLy.js';
10
10
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
11
11
  import { S as StateOptions } from './state-options-BX8GieXu.js';
12
12
  import { o as onChange } from './checkout.store-QrBBYQfi.js';
13
- import './package-DQw405te.js';
13
+ import './package-CXbfqbl8.js';
14
14
  import './Api-DQM93PRm.js';
15
15
  import './utils-B7jE0g5_.js';
16
16
  import './ComponentError-Cjcsf8ku.js';
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-CBJo9jNE.js';
3
3
  import { B as BusinessService } from './business.service-BgXdRyYa.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-B41631Te.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
7
7
  import './parts-D3G5aVLy.js';
8
8
  import './Api-DQM93PRm.js';
9
9
  import './config-state-BrllxiM0.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-DQw405te.js';
20
+ import './package-CXbfqbl8.js';
21
21
 
22
22
  const BusinessDetails = class {
23
23
  constructor(hostRef) {
@@ -10,7 +10,7 @@ import './Pagination-CLHwhyvu.js';
10
10
  import './Payment-Bs0-9Lnt.js';
11
11
  import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
12
12
  import './Dispute-7MWRbTXI.js';
13
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
13
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
14
14
  import { B as Button } from './button-DxM4-mlD.js';
15
15
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
16
16
  import { H as Header1 } from './header-1-B0PFwGib.js';
@@ -25,7 +25,7 @@ import './state-options-BX8GieXu.js';
25
25
  import './business-form-options-CgssATyg.js';
26
26
  import './index-B9me4yN2.js';
27
27
  import './helpers-Mu7LQT-w.js';
28
- import './package-DQw405te.js';
28
+ import './package-CXbfqbl8.js';
29
29
  import './Api-DQM93PRm.js';
30
30
  import './parts-D3G5aVLy.js';
31
31
  import './utils-BeQLScSm.js';
@@ -8,7 +8,7 @@ import './event-types-CZfYo5-1.js';
8
8
  import { H as Header1 } from './header-1-B0PFwGib.js';
9
9
  import { H as Header2, b as insuranceValuesOn, i as insuranceValues } from './insurance-state-DQH40x6F.js';
10
10
  import { H as Header3 } from './header-3-D3gxg6YU.js';
11
- import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-B41631Te.js';
11
+ import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-C77xIlwV.js';
12
12
  import './config-state-BrllxiM0.js';
13
13
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
14
14
  import { I as ICheckoutStatus } from './Refund-4B3c-kLz.js';
@@ -19,7 +19,7 @@ import './Dispute-7MWRbTXI.js';
19
19
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
20
20
  import { C as CheckoutService } from './checkout.service-CXeKDZTF.js';
21
21
  import './index-B9me4yN2.js';
22
- import './package-DQw405te.js';
22
+ import './package-CXbfqbl8.js';
23
23
  import './Api-DQM93PRm.js';
24
24
  import './helpers-Mu7LQT-w.js';
25
25
  import './state-options-BX8GieXu.js';
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
3
3
  import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
4
4
  import { d as checkoutSummary } from './parts-D3G5aVLy.js';
5
5
  import { P as PaymentMethodTypes } from './Payment-Bs0-9Lnt.js';
6
6
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
7
7
  import './event-types-CZfYo5-1.js';
8
- import './package-DQw405te.js';
8
+ import './package-CXbfqbl8.js';
9
9
  import './Api-DQM93PRm.js';
10
10
  import './config-state-BrllxiM0.js';
11
11
  import './index-B9me4yN2.js';
@@ -8,7 +8,7 @@ import './Payment-Bs0-9Lnt.js';
8
8
  import './Business-BCoP0TAV.js';
9
9
  import './Dispute-7MWRbTXI.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-B41631Te.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
12
12
  import { C as CheckoutService } from './checkout.service-CXeKDZTF.js';
13
13
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-C62B2OC_.js';
14
14
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
@@ -17,7 +17,7 @@ import { d as defaultColumnsKeys } from './checkouts-table-Djb7Yj6O.js';
17
17
  import './index-B9me4yN2.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-DQw405te.js';
20
+ import './package-CXbfqbl8.js';
21
21
  import './Api-DQM93PRm.js';
22
22
  import './badge-D-vrtiQR.js';
23
23
  import './parts-D3G5aVLy.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.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-B41631Te.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
4
4
  import { a as Dispute } from './Dispute-7MWRbTXI.js';
5
5
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
6
6
  import { D as DisputeService } from './dispute.service-DWs_TX-m.js';
7
- import './package-DQw405te.js';
7
+ import './package-CXbfqbl8.js';
8
8
  import './Api-DQM93PRm.js';
9
9
  import './config-state-BrllxiM0.js';
10
10
  import './index-B9me4yN2.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-DWs_TX-m.js';
11
11
  import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
13
13
  import './Api-DQM93PRm.js';
14
14
  import './config-state-BrllxiM0.js';
15
15
  import './index-B9me4yN2.js';
@@ -20,7 +20,7 @@ import './Dispute-7MWRbTXI.js';
20
20
  import './Business-BCoP0TAV.js';
21
21
  import './helpers-Mu7LQT-w.js';
22
22
  import './state-options-BX8GieXu.js';
23
- import './package-DQw405te.js';
23
+ import './package-CXbfqbl8.js';
24
24
 
25
25
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
26
26
  var _a;
@@ -8,14 +8,14 @@ import './Business-BCoP0TAV.js';
8
8
  import './Dispute-7MWRbTXI.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
10
  import { E as ErrorState } from './utils-CBJo9jNE.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
12
12
  import './config-state-BrllxiM0.js';
13
13
  import './index-B9me4yN2.js';
14
14
  import './utils-B7jE0g5_.js';
15
15
  import './helpers-Mu7LQT-w.js';
16
16
  import './state-options-BX8GieXu.js';
17
17
  import './parts-D3G5aVLy.js';
18
- import './package-DQw405te.js';
18
+ import './package-CXbfqbl8.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-kpoIU4v_.js'
2
2
  import { ap as heading5, am as heading4, ae as buttonPrimary, z as text } from './parts-D3G5aVLy.js';
3
3
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
7
7
  import { B as BusinessService } from './business.service-BgXdRyYa.js';
8
8
  import { B as Business } from './Business-BCoP0TAV.js';
@@ -16,7 +16,7 @@ import './Payment-Bs0-9Lnt.js';
16
16
  import './Dispute-7MWRbTXI.js';
17
17
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
18
18
  import { T as TerminalService } from './terminal.service-BLeBxTv4.js';
19
- import './package-DQw405te.js';
19
+ import './package-CXbfqbl8.js';
20
20
  import './Api-DQM93PRm.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-BnDr_9vX.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-j8nOngzB.js';
4
4
  import { E as ErrorState } from './utils-CBJo9jNE.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-B41631Te.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
7
7
  import './Api-DQM93PRm.js';
8
8
  import './config-state-BrllxiM0.js';
9
9
  import './index-B9me4yN2.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-D3G5aVLy.js';
20
- import './package-DQw405te.js';
20
+ import './package-CXbfqbl8.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-kpoIU4v_.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.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-BgXdRyYa.js';
@@ -9,7 +9,7 @@ import './Pagination-CLHwhyvu.js';
9
9
  import './Payment-Bs0-9Lnt.js';
10
10
  import './Business-BCoP0TAV.js';
11
11
  import './Dispute-7MWRbTXI.js';
12
- import './package-DQw405te.js';
12
+ import './package-CXbfqbl8.js';
13
13
  import './utils-BeQLScSm.js';
14
14
  import './config-state-BrllxiM0.js';
15
15
  import './index-B9me4yN2.js';
@@ -7,7 +7,7 @@ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Payment-Bs0-9Lnt.js';
8
8
  import './Business-BCoP0TAV.js';
9
9
  import './Dispute-7MWRbTXI.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
11
11
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
12
12
  import { P as PaymentService } from './payment.service-BnDr_9vX.js';
13
13
  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-CTPfsGKi.js';
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-D3G5
17
17
  import './index-B9me4yN2.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-DQw405te.js';
20
+ import './package-CXbfqbl8.js';
21
21
  import './Api-DQM93PRm.js';
22
22
  import './spinner-D-vbFqC6.js';
23
23
 
@@ -9,7 +9,7 @@ import { a as Payment } from './Payment-Bs0-9Lnt.js';
9
9
  import './Business-BCoP0TAV.js';
10
10
  import './Dispute-7MWRbTXI.js';
11
11
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
13
13
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './payments-table-BuiNqlwv.js';
@@ -17,7 +17,7 @@ import './Api-DQM93PRm.js';
17
17
  import './index-B9me4yN2.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-DQw405te.js';
20
+ import './package-CXbfqbl8.js';
21
21
  import './payments-status-DVYzDcJ4.js';
22
22
  import './badge-D-vrtiQR.js';
23
23
  import './parts-D3G5aVLy.js';
@@ -10,14 +10,14 @@ import './Business-BCoP0TAV.js';
10
10
  import './Dispute-7MWRbTXI.js';
11
11
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
12
12
  import { E as ErrorState } from './utils-CBJo9jNE.js';
13
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
13
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
14
14
  import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
15
15
  import './Api-DQM93PRm.js';
16
16
  import './index-B9me4yN2.js';
17
17
  import './helpers-Mu7LQT-w.js';
18
18
  import './state-options-BX8GieXu.js';
19
19
  import './parts-D3G5aVLy.js';
20
- import './package-DQw405te.js';
20
+ import './package-CXbfqbl8.js';
21
21
 
22
22
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
23
23
  var _a;
@@ -7,7 +7,7 @@ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Payment-Bs0-9Lnt.js';
8
8
  import './Business-BCoP0TAV.js';
9
9
  import './Dispute-7MWRbTXI.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
11
11
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
12
12
  import { P as PayoutService } from './payout.service-Ai1aEuFC.js';
13
13
  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-CTPfsGKi.js';
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-D3G5
17
17
  import './index-B9me4yN2.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './state-options-BX8GieXu.js';
20
- import './package-DQw405te.js';
20
+ import './package-CXbfqbl8.js';
21
21
  import './Api-DQM93PRm.js';
22
22
  import './spinner-D-vbFqC6.js';
23
23
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.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-B41631Te.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
4
4
  import { P as PayoutService } from './payout.service-Ai1aEuFC.js';
5
5
  import './config-state-BrllxiM0.js';
6
6
  import './utils-B7jE0g5_.js';
@@ -15,7 +15,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
15
15
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
16
16
  import './event-types-CZfYo5-1.js';
17
17
  import { d as defaultColumnsKeys } from './payouts-table-cgIXP54P.js';
18
- import './package-DQw405te.js';
18
+ import './package-CXbfqbl8.js';
19
19
  import './Api-DQM93PRm.js';
20
20
  import './index-B9me4yN2.js';
21
21
  import './helpers-Mu7LQT-w.js';
@@ -13,7 +13,7 @@ import { S as StyledHost } from './styled-host-B_XBaM7z.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import { P as PaymentService } from './payment.service-BnDr_9vX.js';
15
15
  import { m as makeGetPaymentDetails } from './get-payment-details-j8nOngzB.js';
16
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
16
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
17
17
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
18
18
  import { A as Api } from './Api-DQM93PRm.js';
19
19
  import { S as Skeleton } from './skeleton-CZfDofm6.js';
@@ -22,7 +22,7 @@ import './index-B9me4yN2.js';
22
22
  import './helpers-Mu7LQT-w.js';
23
23
  import './state-options-BX8GieXu.js';
24
24
  import './parts-D3G5aVLy.js';
25
- import './package-DQw405te.js';
25
+ import './package-CXbfqbl8.js';
26
26
 
27
27
  const amountValidation = (maxAmount) => {
28
28
  const max = +maxAmount;
@@ -7,14 +7,14 @@ import './Payment-Bs0-9Lnt.js';
7
7
  import './Business-BCoP0TAV.js';
8
8
  import './Dispute-7MWRbTXI.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-B41631Te.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
11
11
  import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
12
12
  import './config-state-BrllxiM0.js';
13
13
  import './index-B9me4yN2.js';
14
14
  import './utils-B7jE0g5_.js';
15
15
  import './helpers-Mu7LQT-w.js';
16
16
  import './state-options-BX8GieXu.js';
17
- import './package-DQw405te.js';
17
+ import './package-CXbfqbl8.js';
18
18
 
19
19
  const api = Api();
20
20
  class InsuranceService {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
2
2
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
5
5
  import { d as defaultColumnsKeys } from './terminal-orders-table-CvK516_V.js';
6
6
  import './config-state-BrllxiM0.js';
7
7
  import './utils-B7jE0g5_.js';
@@ -13,7 +13,7 @@ import './Business-BCoP0TAV.js';
13
13
  import './Dispute-7MWRbTXI.js';
14
14
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
15
15
  import { A as Api } from './Api-DQM93PRm.js';
16
- import './package-DQw405te.js';
16
+ import './package-CXbfqbl8.js';
17
17
  import './parts-D3G5aVLy.js';
18
18
  import './badge-D-vrtiQR.js';
19
19
  import './index-B9me4yN2.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.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-B41631Te.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
4
4
  import { T as TerminalService } from './terminal.service-BLeBxTv4.js';
5
5
  import './config-state-BrllxiM0.js';
6
6
  import './utils-B7jE0g5_.js';
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
14
14
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { d as defaultColumnsKeys } from './terminals-table-2QGQITkt.js';
17
- import './package-DQw405te.js';
17
+ import './package-CXbfqbl8.js';
18
18
  import './Api-DQM93PRm.js';
19
19
  import './index-B9me4yN2.js';
20
20
  import './helpers-Mu7LQT-w.js';
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js'
2
2
  import { B as Button } from './button-DxM4-mlD.js';
3
3
  import { S as StyledHost } from './styled-host-B_XBaM7z.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-B41631Te.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C77xIlwV.js';
6
6
  import './config-state-BrllxiM0.js';
7
7
  import './utils-B7jE0g5_.js';
8
8
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
@@ -13,7 +13,7 @@ import './Business-BCoP0TAV.js';
13
13
  import './Dispute-7MWRbTXI.js';
14
14
  import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
15
15
  import './parts-D3G5aVLy.js';
16
- import './package-DQw405te.js';
16
+ import './package-CXbfqbl8.js';
17
17
  import './Api-DQM93PRm.js';
18
18
  import './index-B9me4yN2.js';
19
19
  import './helpers-Mu7LQT-w.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "5.7.6-rc-15";
2
+ const version = "5.7.6-rc-17";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -184,16 +184,22 @@ class ApplePayService {
184
184
  async validateMerchant(authToken, payload) {
185
185
  const endpoint = `${this.apiBaseUrl}/v1/apple_pay/merchant_session`;
186
186
  const body = payload;
187
+ console.log('=== MERCHANT VALIDATION REQUEST ===');
188
+ console.log('Endpoint:', endpoint);
189
+ console.log('Payload:', body);
190
+ console.log('Auth token present:', !!authToken);
191
+ console.log('Account ID:', this.accountId);
187
192
  const response = await fetch(endpoint, {
188
193
  method: 'POST',
189
194
  headers: {
190
195
  'Content-Type': 'application/json',
191
196
  Accept: 'application/json',
192
197
  Authorization: `Bearer ${authToken}`,
193
- "Sub-Account": this.accountId
198
+ 'Sub-Account': this.accountId,
194
199
  },
195
200
  body: JSON.stringify(body),
196
201
  });
202
+ console.log('Response status:', response.status);
197
203
  if (!response.ok) {
198
204
  const errorData = await response.text();
199
205
  console.error('Backend validation failed - Raw response:', errorData);
@@ -207,6 +213,7 @@ class ApplePayService {
207
213
  throw new Error(`Merchant validation failed: ${response.status}`);
208
214
  }
209
215
  const merchantSession = await response.json();
216
+ console.log('Merchant session received:', merchantSession);
210
217
  return merchantSession;
211
218
  }
212
219
  /**
@@ -221,7 +228,7 @@ class ApplePayService {
221
228
  'Content-Type': 'application/json',
222
229
  Accept: 'application/json',
223
230
  Authorization: `Bearer ${authToken}`,
224
- "Sub-Account": this.accountId
231
+ 'Sub-Account': this.accountId,
225
232
  },
226
233
  body: JSON.stringify(body),
227
234
  });
@@ -738,14 +745,15 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
738
745
  });
739
746
  }
740
747
  watchPropsChange() {
741
- if (this.applePayService) {
742
- this.applePayService.setApiBaseUrl(this.apiBaseUrl);
743
- this.applePayService.setAuthToken(checkoutStore.authToken);
744
- }
745
748
  this.initializeApplePay();
746
749
  }
747
750
  async initializeApplePay() {
751
+ console.log('Initializing Apple Pay');
748
752
  try {
753
+ if (this.applePayService) {
754
+ this.applePayService.setApiBaseUrl(this.apiBaseUrl);
755
+ this.applePayService.setAuthToken(checkoutStore.authToken);
756
+ }
749
757
  this.isLoading = true;
750
758
  this.error = null;
751
759
  if (!checkoutStore.paymentAmount) {
@@ -773,6 +781,10 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
773
781
  buttonType: this.buttonType,
774
782
  buttonStyle: this.buttonStyle,
775
783
  };
784
+ console.log('=== APPLE PAY CONFIG ===');
785
+ console.log('Config:', applePayConfig);
786
+ console.log('Auth token present:', !!checkoutStore.authToken);
787
+ console.log('Account ID:', checkoutStore.accountId);
776
788
  this.applePayService.setAccountId(checkoutStore.accountId);
777
789
  this.applePayService.initialize(applePayConfig);
778
790
  const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
@@ -810,10 +822,10 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
810
822
  this.isAvailable &&
811
823
  this.canMakePayments &&
812
824
  !this.error;
813
- return (h(StyledHost, { key: '953181f3712f10b4b9b04bef01234c8e4933e9b5' }, h("script", { key: '56f8b6ea2195084a6da92f621971d36f6d1f9a1c', src: "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js" }), h("div", { key: 'e0bc21900fa8d1c6530fd85949df3597671bc2d2', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '9fe1873351ebd2f44ac55e9f1b4226546bc974c7', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '037b2c8b667b2979bee387036e3f61e73bac7a9c', class: 'apple-pay-error', role: 'alert' }, h("span", { key: '690db2fcceeeed89ef79604e4055b674faa88ec7', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '0b8dbc5aba93ac1f2653ad25bf8591010a76ce01', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '485cd6aa6cf5913b868ae377e7d92bbf4e06ef26', class: 'apple-pay-unavailable' }, h("span", { key: '5d19e24d39f197dd67f3f06244763771a8d79f66', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
825
+ return (h(StyledHost, { key: '1067306dfa050d5c89d9bc64991c4a8e95427b3e' }, h("script", { key: '737e6d849fffc8902867dfa8a68d18f0da81f4fd', async: true, src: "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js" }), h("div", { key: 'b354353c65d7f56db82c61ff088ed1d37eea905b', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '82d80ec54612e57b7a1eef76925194659e3186bb', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '0b5923bfbc3d0616fee8de4fd43b149810b91ca4', class: 'apple-pay-error', role: 'alert' }, h("span", { key: 'f3a885c30fee6375becfa53c147895db58ab1336', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '3a5ff8b3f89c46092fe41a04eb9dd635fe959d34', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '1a5ad2a2ed7e748dab98e66dca56b337991ef648', class: 'apple-pay-unavailable' }, h("span", { key: '7684e951c36278404e15b8497e9c74ffeb2cb992', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
814
826
  !this.error &&
815
827
  this.isAvailable &&
816
- this.canMakePayments && (h(ApplePayButton, { key: 'ad33bb08354abf930de5e3f1d873ee2818929a40', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '59d757ff744c1a684e8c4d78a0d2463ded62288a' }, `
828
+ this.canMakePayments && (h(ApplePayButton, { key: '94c75b7ab68f8ff02e4953689de8931cb5aab1f2', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'acdef8691d85e319fc0ab548443173f2bd32029d' }, `
817
829
  .apple-pay-container {
818
830
  width: 100%;
819
831
  }
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "5.7.6-rc-15";
2
+ const version = "5.7.6-rc-17";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{C as e,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-DgpDYsPj.js";import{a}from"./p-7MWRbTXI.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as u}from"./p-DiWKhLRS.js";import"./p-DQw405te.js";import"./p-Dj1uo4J3.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-B7jE0g5_.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const c=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:o})=>{var p;try{const u=await i.fetchDispute(t,s);if(u.error)return o({error:h(u.error),code:n(null===(p=u.error)||void 0===p?void 0:p.code),severity:e.ERROR});{const t=Object.assign({},u.page_info);r({dispute:new a(u.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new u}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"4087eb105a046a3cc194d9f25c80fa11298fa0a2",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_dispute_management}
1
+ import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{C as e,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-Dd5ABBzD.js";import{a}from"./p-7MWRbTXI.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as u}from"./p-DiWKhLRS.js";import"./p-CXbfqbl8.js";import"./p-Dj1uo4J3.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-B7jE0g5_.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const c=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:o})=>{var p;try{const u=await i.fetchDispute(t,s);if(u.error)return o({error:h(u.error),code:n(null===(p=u.error)||void 0===p?void 0:p.code),severity:e.ERROR});{const t=Object.assign({},u.page_info);r({dispute:new a(u.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new u}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"4087eb105a046a3cc194d9f25c80fa11298fa0a2",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_dispute_management}