@justifi/webcomponents 5.7.6-rc-16 → 5.7.6-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 (90) hide show
  1. package/dist/cjs/{check-pkg-version-BkzyzJ71.js → check-pkg-version-CgL8WQc_.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 +16 -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-e83u_82Y.js → package-BuyUN-rG.js} +1 -1
  27. package/dist/collection/api/services/apple-pay.service.js +10 -3
  28. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +6 -5
  29. package/dist/docs.json +1 -1
  30. package/dist/esm/{check-pkg-version-Ddp_kLM5.js → check-pkg-version-DcgvYBss.js} +1 -1
  31. package/dist/esm/hidden-input_2.entry.js +1 -1
  32. package/dist/esm/justifi-apple-pay.entry.js +16 -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-HMZ8vsvN.js → package--Ab7NjUs.js} +1 -1
  56. package/dist/module/justifi-apple-pay.js +16 -8
  57. package/dist/module/package.js +1 -1
  58. package/dist/webcomponents/p--Ab7NjUs.js +1 -0
  59. package/dist/webcomponents/{p-f2bae759.entry.js → p-00a81662.entry.js} +1 -1
  60. package/dist/webcomponents/{p-207f4e07.entry.js → p-05e2deb4.entry.js} +1 -1
  61. package/dist/webcomponents/{p-a60c67e6.entry.js → p-0d805d71.entry.js} +1 -1
  62. package/dist/webcomponents/{p-be4c5b34.entry.js → p-17bb2ed6.entry.js} +1 -1
  63. package/dist/webcomponents/{p-90a2875b.entry.js → p-2c765088.entry.js} +1 -1
  64. package/dist/webcomponents/{p-fb6723b7.entry.js → p-2d939102.entry.js} +1 -1
  65. package/dist/webcomponents/p-33ab768e.entry.js +1 -0
  66. package/dist/webcomponents/{p-b6d05490.entry.js → p-378019b6.entry.js} +1 -1
  67. package/dist/webcomponents/p-3798a371.entry.js +1 -0
  68. package/dist/webcomponents/p-38520e51.entry.js +1 -0
  69. package/dist/webcomponents/{p-f3f8a5a2.entry.js → p-539afc41.entry.js} +1 -1
  70. package/dist/webcomponents/{p-1c79237c.entry.js → p-885e4e72.entry.js} +1 -1
  71. package/dist/webcomponents/{p-df82aca6.entry.js → p-8c165b52.entry.js} +1 -1
  72. package/dist/webcomponents/{p-c983e9bb.entry.js → p-996a1fca.entry.js} +1 -1
  73. package/dist/webcomponents/{p-487fd882.entry.js → p-9ecfccb3.entry.js} +1 -1
  74. package/dist/webcomponents/{p-CDmdt8BH.js → p-B16hhI5M.js} +1 -1
  75. package/dist/webcomponents/{p-04169a4a.entry.js → p-a8867388.entry.js} +1 -1
  76. package/dist/webcomponents/{p-e5ae45c3.entry.js → p-ac7663dd.entry.js} +1 -1
  77. package/dist/webcomponents/{p-948066ff.entry.js → p-b91c5440.entry.js} +1 -1
  78. package/dist/webcomponents/{p-b0f90f5d.entry.js → p-c7ab53bc.entry.js} +1 -1
  79. package/dist/webcomponents/p-d6256beb.entry.js +1 -0
  80. package/dist/webcomponents/{p-7db0847f.entry.js → p-d9e87345.entry.js} +1 -1
  81. package/dist/webcomponents/{p-6b9dfd09.entry.js → p-ea472ab4.entry.js} +1 -1
  82. package/dist/webcomponents/{p-35bc4279.entry.js → p-ea8a09a7.entry.js} +1 -1
  83. package/dist/webcomponents/{p-935f8208.entry.js → p-fbb89dcf.entry.js} +1 -1
  84. package/dist/webcomponents/webcomponents.esm.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/webcomponents/p-3fb1b0be.entry.js +0 -1
  87. package/dist/webcomponents/p-HMZ8vsvN.js +0 -1
  88. package/dist/webcomponents/p-bb481c67.entry.js +0 -1
  89. package/dist/webcomponents/p-f18076ba.entry.js +0 -1
  90. package/dist/webcomponents/p-fcc30769.entry.js +0 -1
@@ -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,13 +214,14 @@ 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
  /**
214
221
  * Process Apple Pay payment via API (fixed to match original logic)
215
222
  */
216
223
  async processPayment(authToken, payload) {
217
- const endpoint = `${this.apiBaseUrl}/apple_pay/process_token`;
224
+ const endpoint = `${this.apiBaseUrl}/v1/apple_pay/process_token`;
218
225
  const body = payload;
219
226
  const response = await fetch(endpoint, {
220
227
  method: 'POST',
@@ -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
  });
@@ -773,6 +780,10 @@ const ApplePay = class {
773
780
  buttonType: this.buttonType,
774
781
  buttonStyle: this.buttonStyle,
775
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);
776
787
  this.applePayService.setAccountId(checkoutStore.accountId);
777
788
  this.applePayService.initialize(applePayConfig);
778
789
  const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
@@ -810,13 +821,10 @@ const ApplePay = class {
810
821
  this.isAvailable &&
811
822
  this.canMakePayments &&
812
823
  !this.error;
813
- return (h(StyledHost, { key: '627782068c729d8a2ed515957b0d1d30497c43fb' }, h("script", { key: '526abcdccd477a882c2087c1d9a2272edc24c759', async: true, onLoad: () => {
814
- console.log('Apple Pay SDK loaded');
815
- this.initializeApplePay();
816
- }, src: "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js" }), h("div", { key: '29221d2d2c4ebc00ba0d27e428bdc2c26b9a3dff', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '9135d2ad9bfbcd3b84a687738d733c2b6d1c7a31', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: 'da6585c2eb35ab82aa1e21e3895dc379854a35b1', class: 'apple-pay-error', role: 'alert' }, h("span", { key: '4a3234ea9927e49bf3a8658c2800ae4baf2c8a2e', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '13627e68c6132fed6e08558386995e660f78b01b', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: 'db9167ed16f32614610f2168d25e5a4643e22879', class: 'apple-pay-unavailable' }, h("span", { key: 'f09c6e9d8325fb324dfc537edf51d80f800588a9', 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 &&
817
825
  !this.error &&
818
826
  this.isAvailable &&
819
- this.canMakePayments && (h(ApplePayButton, { key: '2e7c23547883e165edea0ffb776e49007b8d82a1', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '99c32299d475bcbb8a093505c9254de4ab87145f' }, `
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' }, `
820
828
  .apple-pay-container {
821
829
  width: 100%;
822
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-Ddp_kLM5.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
13
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
13
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
28
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
11
+ import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
22
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
8
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
7
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
23
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
18
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
19
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
12
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
13
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
20
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
18
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
16
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
25
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
17
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
16
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
17
+ import './package--Ab7NjUs.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-Ddp_kLM5.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DcgvYBss.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-HMZ8vsvN.js';
16
+ import './package--Ab7NjUs.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-16";
2
+ const version = "5.7.6-rc-18";
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,13 +213,14 @@ 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
  /**
213
220
  * Process Apple Pay payment via API (fixed to match original logic)
214
221
  */
215
222
  async processPayment(authToken, payload) {
216
- const endpoint = `${this.apiBaseUrl}/apple_pay/process_token`;
223
+ const endpoint = `${this.apiBaseUrl}/v1/apple_pay/process_token`;
217
224
  const body = payload;
218
225
  const response = await fetch(endpoint, {
219
226
  method: 'POST',
@@ -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
  });
@@ -774,6 +781,10 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
774
781
  buttonType: this.buttonType,
775
782
  buttonStyle: this.buttonStyle,
776
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);
777
788
  this.applePayService.setAccountId(checkoutStore.accountId);
778
789
  this.applePayService.initialize(applePayConfig);
779
790
  const hasActiveCard = await this.applePayService.canMakePaymentsWithActiveCard();
@@ -811,13 +822,10 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
811
822
  this.isAvailable &&
812
823
  this.canMakePayments &&
813
824
  !this.error;
814
- return (h(StyledHost, { key: '627782068c729d8a2ed515957b0d1d30497c43fb' }, h("script", { key: '526abcdccd477a882c2087c1d9a2272edc24c759', async: true, onLoad: () => {
815
- console.log('Apple Pay SDK loaded');
816
- this.initializeApplePay();
817
- }, src: "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js" }), h("div", { key: '29221d2d2c4ebc00ba0d27e428bdc2c26b9a3dff', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '9135d2ad9bfbcd3b84a687738d733c2b6d1c7a31', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: 'da6585c2eb35ab82aa1e21e3895dc379854a35b1', class: 'apple-pay-error', role: 'alert' }, h("span", { key: '4a3234ea9927e49bf3a8658c2800ae4baf2c8a2e', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '13627e68c6132fed6e08558386995e660f78b01b', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: 'db9167ed16f32614610f2168d25e5a4643e22879', class: 'apple-pay-unavailable' }, h("span", { key: 'f09c6e9d8325fb324dfc537edf51d80f800588a9', 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 &&
818
826
  !this.error &&
819
827
  this.isAvailable &&
820
- this.canMakePayments && (h(ApplePayButton, { key: '2e7c23547883e165edea0ffb776e49007b8d82a1', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '99c32299d475bcbb8a093505c9254de4ab87145f' }, `
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' }, `
821
829
  .apple-pay-container {
822
830
  width: 100%;
823
831
  }
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "5.7.6-rc-16";
2
+ const version = "5.7.6-rc-18";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"5.7.6-rc-18"};export{e as p}
@@ -1 +1 @@
1
- import{h as s,r as i,c as t}from"./p-kpoIU4v_.js";import{c as r,F as e}from"./p-CR9D6mKt.js";import{b as o,a}from"./p-DSP8qjHL.js";import{i as p,a as h}from"./p-PgEzcvI6.js";import"./p-9y5MOK55.js";import"./p-B7jE0g5_.js";import{C as n,a as m}from"./p-Cjcsf8ku.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import{B as l,b as c}from"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d,J as j}from"./p-CDmdt8BH.js";import{B as u}from"./p-Cm_ywVHL.js";import{S as f}from"./p-CRFzwZW6.js";import{H as v}from"./p-Cc27pPPQ.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-Bz8JT676.js";import{B as g}from"./p-XYgDHrVL.js";import{m as w,b as C}from"./p-5aA7gjr5.js";import{B as y}from"./p-DVPcHdzq.js";import"./p-BFTU3MAI.js";import"./p-CYBR4K2p.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-HMZ8vsvN.js";import"./p-Dj1uo4J3.js";import"./p-D3G5aVLy.js";import"./p-D2muobcE.js";const B=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),D=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),H=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(D,null),s(D,null),s(D,null)),S=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new l(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new l(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){d(),this.analytics=new j(this),this.formController=new e(B),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=w({authToken:this.authToken,businessId:this.businessId,service:new y}),this.patchBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new y}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:m.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=c.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(H,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:g.submit}),isLoading:this.isSaving},"Submit")))))}};export{S as justifi_business_form}
1
+ import{h as s,r as i,c as t}from"./p-kpoIU4v_.js";import{c as r,F as e}from"./p-CR9D6mKt.js";import{b as o,a}from"./p-DSP8qjHL.js";import{i as p,a as h}from"./p-PgEzcvI6.js";import"./p-9y5MOK55.js";import"./p-B7jE0g5_.js";import{C as n,a as m}from"./p-Cjcsf8ku.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import{B as l,b as c}from"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d,J as j}from"./p-B16hhI5M.js";import{B as u}from"./p-Cm_ywVHL.js";import{S as f}from"./p-CRFzwZW6.js";import{H as v}from"./p-Cc27pPPQ.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-Bz8JT676.js";import{B as g}from"./p-XYgDHrVL.js";import{m as w,b as C}from"./p-5aA7gjr5.js";import{B as y}from"./p-DVPcHdzq.js";import"./p-BFTU3MAI.js";import"./p-CYBR4K2p.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p--Ab7NjUs.js";import"./p-Dj1uo4J3.js";import"./p-D3G5aVLy.js";import"./p-D2muobcE.js";const B=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),D=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),I=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(D,null),s(D,null),s(D,null)),S=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new l(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new l(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){d(),this.analytics=new j(this),this.formController=new e(B),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=w({authToken:this.authToken,businessId:this.businessId,service:new y}),this.patchBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new y}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:m.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=c.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(I,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:g.submit}),isLoading:this.isSaving},"Submit")))))}};export{S as justifi_business_form}