@justifi/webcomponents 6.0.0-rc.17 → 6.0.0-rc.19
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.
- package/dist/cjs/{check-pkg-version-rUX0NaZj.js → check-pkg-version-CZry3Gab.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +6 -31
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +3 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/{package-CwkrMpTG.js → package-DpTrT68q.js} +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +1 -2
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +7 -34
- package/dist/docs.json +1 -1
- package/dist/esm/{check-pkg-version-h58ZAK8T.js → check-pkg-version-BzAwEptg.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay.entry.js +6 -31
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +3 -4
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/{package-fZXUzneK.js → package-CbHGNIID.js} +1 -1
- package/dist/module/justifi-apple-pay.js +6 -31
- package/dist/module/modular-checkout.js +1 -2
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-b86e5c2b.entry.js → p-0b5d6f75.entry.js} +1 -1
- package/dist/webcomponents/{p-febb61e3.entry.js → p-1c8c3381.entry.js} +1 -1
- package/dist/webcomponents/{p-8883f4e1.entry.js → p-237c1c0b.entry.js} +1 -1
- package/dist/webcomponents/{p-8f11dc84.entry.js → p-323d2109.entry.js} +1 -1
- package/dist/webcomponents/{p-2fe09e28.entry.js → p-346148d1.entry.js} +1 -1
- package/dist/webcomponents/{p-e1501f53.entry.js → p-36329825.entry.js} +1 -1
- package/dist/webcomponents/{p-e5f2fb41.entry.js → p-476c43ef.entry.js} +1 -1
- package/dist/webcomponents/{p-fc8c3b96.entry.js → p-5da2d93a.entry.js} +1 -1
- package/dist/webcomponents/p-719e2cf9.entry.js +1 -0
- package/dist/webcomponents/{p-27abb8bb.entry.js → p-7fcc31f6.entry.js} +1 -1
- package/dist/webcomponents/{p-835c0438.entry.js → p-8252f34e.entry.js} +1 -1
- package/dist/webcomponents/{p-2c9b0770.entry.js → p-8b34e550.entry.js} +1 -1
- package/dist/webcomponents/{p-bc246ce5.entry.js → p-9149e6d8.entry.js} +1 -1
- package/dist/webcomponents/{p-7bc1a2c2.entry.js → p-92bb3f7d.entry.js} +1 -1
- package/dist/webcomponents/p-CbHGNIID.js +1 -0
- package/dist/webcomponents/{p-ad79606e.entry.js → p-a5011c78.entry.js} +1 -1
- package/dist/webcomponents/{p-f0b5df73.entry.js → p-c3a768f2.entry.js} +1 -1
- package/dist/webcomponents/{p-e4259408.entry.js → p-c50cfde3.entry.js} +1 -1
- package/dist/webcomponents/{p-46495601.entry.js → p-cec23474.entry.js} +1 -1
- package/dist/webcomponents/{p-f6745365.entry.js → p-d692a782.entry.js} +1 -1
- package/dist/webcomponents/p-e5db299f.entry.js +1 -0
- package/dist/webcomponents/{p-76c4740e.entry.js → p-ea781366.entry.js} +1 -1
- package/dist/webcomponents/{p-71d52066.entry.js → p-eb5e4a05.entry.js} +1 -1
- package/dist/webcomponents/{p-3c8b5121.entry.js → p-fd6d55e9.entry.js} +1 -1
- package/dist/webcomponents/{p-CliUh8zt.js → p-z8xlfetB.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-6f7b4979.entry.js +0 -1
- package/dist/webcomponents/p-edc2851f.entry.js +0 -1
- package/dist/webcomponents/p-fZXUzneK.js +0 -1
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-B_KxSZIF.js';
|
|
|
3
3
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-RvUQ__Pq.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-R7U07nTg.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-CbHGNIID.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|
|
@@ -627,7 +627,9 @@ const ApplePay = class {
|
|
|
627
627
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
628
628
|
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
629
629
|
};
|
|
630
|
+
console.log("paymentRequest", paymentRequest);
|
|
630
631
|
const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
|
|
632
|
+
console.log("result", result);
|
|
631
633
|
if (result.success) {
|
|
632
634
|
this.applePayCompleted.emit({
|
|
633
635
|
success: true,
|
|
@@ -660,28 +662,7 @@ const ApplePay = class {
|
|
|
660
662
|
}
|
|
661
663
|
};
|
|
662
664
|
}
|
|
663
|
-
// private unsubscribeCheckoutLoaded?: () => void;
|
|
664
|
-
// componentWillLoad() {
|
|
665
|
-
// this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
|
|
666
|
-
// console.log("checkoutLoaded", loaded);
|
|
667
|
-
// if (loaded) {
|
|
668
|
-
// this.initializeApplePay();
|
|
669
|
-
// }
|
|
670
|
-
// });
|
|
671
|
-
// }
|
|
672
|
-
// disconnectedCallback() {
|
|
673
|
-
// this.unsubscribeCheckoutLoaded?.();
|
|
674
|
-
// this.unsubscribeCheckoutLoaded = undefined;
|
|
675
|
-
// }
|
|
676
|
-
// @Watch("merchantIdentifier")
|
|
677
|
-
// @Watch("buttonType")
|
|
678
|
-
// @Watch("buttonStyle")
|
|
679
|
-
// @Watch("disabled")
|
|
680
|
-
// watchPropsChange() {
|
|
681
|
-
// this.initializeApplePay();
|
|
682
|
-
// }
|
|
683
665
|
async initializeApplePay() {
|
|
684
|
-
console.log("initializeApplePay", checkoutStore.checkoutLoaded);
|
|
685
666
|
try {
|
|
686
667
|
this.isLoading = true;
|
|
687
668
|
this.error = null;
|
|
@@ -690,9 +671,9 @@ const ApplePay = class {
|
|
|
690
671
|
Boolean(checkoutStore.paymentCurrency) &&
|
|
691
672
|
Boolean(checkoutStore.authToken);
|
|
692
673
|
if (!hasRequiredConfig) {
|
|
693
|
-
this.error = "Missing required Apple Pay configuration
|
|
674
|
+
this.error = "Missing required Apple Pay configuration";
|
|
694
675
|
this.isConfigValid = false;
|
|
695
|
-
console.error("Apple Pay config error: missing required values
|
|
676
|
+
console.error("Apple Pay config error: missing required values", {
|
|
696
677
|
paymentAmount: checkoutStore.paymentAmount,
|
|
697
678
|
paymentCurrency: checkoutStore.paymentCurrency,
|
|
698
679
|
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
@@ -759,19 +740,13 @@ const ApplePay = class {
|
|
|
759
740
|
this.applePayCancelled.emit();
|
|
760
741
|
}
|
|
761
742
|
render() {
|
|
762
|
-
// const shouldHide =
|
|
763
|
-
// !this.isLoading &&
|
|
764
|
-
// (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
|
|
765
|
-
// if (shouldHide) {
|
|
766
|
-
// return null;
|
|
767
|
-
// }
|
|
768
743
|
const isReady = !this.isLoading &&
|
|
769
744
|
this.isAvailable &&
|
|
770
745
|
this.canMakePayments &&
|
|
771
746
|
this.isConfigValid;
|
|
772
|
-
return (h(StyledHost, { key: '
|
|
747
|
+
return (h(StyledHost, { key: '941aea129425ddb64b7befc46f06d9f987e22282' }, checkoutStore.checkoutLoaded && (h("script", { key: '63562ab394410712d3265dda1ef16140a4fdbc3c', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
773
748
|
this.initializeApplePay();
|
|
774
|
-
} })), h("div", { key: '
|
|
749
|
+
} })), h("div", { key: '10ac5de54e3fe73457101f2652bf9cea2c90d2b2', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '6b8976a34d8a1db9d87da2a02ae47d1d8f0b733d', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'c1c84b958888e2ca82ad44d006c5c53ba947412a', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'b98fa0f38d95c0dbb33a7b0f342eb70957355125' }, `
|
|
775
750
|
.apple-pay-container {
|
|
776
751
|
width: 100%;
|
|
777
752
|
}
|
|
@@ -5,7 +5,7 @@ import { r as radioListItem, av as billingForm } from './parts-RvUQ__Pq.js';
|
|
|
5
5
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
|
|
8
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
8
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
9
9
|
import { w as waitForConfig, c as configState } from './config-state-DZeVYerv.js';
|
|
10
10
|
import { H as Header3 } from './header-3-CWa41YWq.js';
|
|
11
11
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
@@ -16,7 +16,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
|
|
|
16
16
|
import './business-form-options-CgssATyg.js';
|
|
17
17
|
import './Business-BCoP0TAV.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-CbHGNIID.js';
|
|
20
20
|
import './Api-DAWuvzbl.js';
|
|
21
21
|
import './utils-BscIVFn8.js';
|
|
22
22
|
import './dinero-HXpYMWUU.js';
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-Dg6gMUTv.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-cQrH5BqF.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
7
7
|
import './parts-RvUQ__Pq.js';
|
|
8
8
|
import './Api-DAWuvzbl.js';
|
|
9
9
|
import './config-state-DZeVYerv.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -9,7 +9,7 @@ import './Refund-CVh70dXA.js';
|
|
|
9
9
|
import './Pagination-CLHwhyvu.js';
|
|
10
10
|
import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
|
|
11
11
|
import './Dispute-BH0Xfn-F.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
13
13
|
import { B as Button } from './button-CpllL0At.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
15
15
|
import { H as Header1 } from './header-1-3M9If0gM.js';
|
|
@@ -25,7 +25,7 @@ import './business-form-options-CgssATyg.js';
|
|
|
25
25
|
import './index-B_KxSZIF.js';
|
|
26
26
|
import './utils-BscIVFn8.js';
|
|
27
27
|
import './helpers-Mu7LQT-w.js';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-CbHGNIID.js';
|
|
29
29
|
import './Api-DAWuvzbl.js';
|
|
30
30
|
import './parts-RvUQ__Pq.js';
|
|
31
31
|
import './utils-BeQLScSm.js';
|
|
@@ -7,7 +7,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
7
7
|
import { H as Header1 } from './header-1-3M9If0gM.js';
|
|
8
8
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-CTalqbNa.js';
|
|
9
9
|
import { H as Header3 } from './header-3-CWa41YWq.js';
|
|
10
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-
|
|
10
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-BzAwEptg.js';
|
|
11
11
|
import './config-state-DZeVYerv.js';
|
|
12
12
|
import './dinero-HXpYMWUU.js';
|
|
13
13
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
@@ -21,7 +21,7 @@ import { A as Api } from './Api-DAWuvzbl.js';
|
|
|
21
21
|
import { a as PAYMENT_MODE, b as PAYMENT_METHOD_TYPES, P as PAYMENT_METHODS } from './index-CbL73B6U.js';
|
|
22
22
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
23
23
|
import './index-B_KxSZIF.js';
|
|
24
|
-
import './package-
|
|
24
|
+
import './package-CbHGNIID.js';
|
|
25
25
|
import './helpers-Mu7LQT-w.js';
|
|
26
26
|
import './state-options-BX8GieXu.js';
|
|
27
27
|
|
|
@@ -319,7 +319,6 @@ const ModularCheckout = class {
|
|
|
319
319
|
checkoutStore.selectedPaymentMethod = paymentMethod;
|
|
320
320
|
checkoutStore.paymentToken = paymentMethod.id || undefined;
|
|
321
321
|
}
|
|
322
|
-
// getAvailablePaymentMethods removed in favor of checkout-changed event
|
|
323
322
|
// if validation fails, the error will be emitted by the component
|
|
324
323
|
async validate() {
|
|
325
324
|
const promises = [];
|
|
@@ -467,7 +466,7 @@ const ModularCheckout = class {
|
|
|
467
466
|
});
|
|
468
467
|
}
|
|
469
468
|
render() {
|
|
470
|
-
return h(Host, { key: '
|
|
469
|
+
return h(Host, { key: '2cbac33c57dd2cad327f156a4630b1dba9bf3252' });
|
|
471
470
|
}
|
|
472
471
|
get hostEl() { return getElement(this); }
|
|
473
472
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
3
3
|
import './config-state-DZeVYerv.js';
|
|
4
4
|
import './dinero-HXpYMWUU.js';
|
|
5
5
|
import './ComponentError-Cjcsf8ku.js';
|
|
@@ -12,7 +12,7 @@ import { d as checkoutSummary } from './parts-RvUQ__Pq.js';
|
|
|
12
12
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
13
13
|
import './event-types-CZfYo5-1.js';
|
|
14
14
|
import { P as PAYMENT_METHODS } from './index-CbL73B6U.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-CbHGNIID.js';
|
|
16
16
|
import './Api-DAWuvzbl.js';
|
|
17
17
|
import './utils-BscIVFn8.js';
|
|
18
18
|
import './index-B_KxSZIF.js';
|
|
@@ -7,7 +7,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
7
7
|
import './Business-BCoP0TAV.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
11
11
|
import { C as CheckoutService } from './checkout.service-Bbgi1I6V.js';
|
|
12
12
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-9UMbyFiT.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
@@ -17,7 +17,7 @@ import './index-B_KxSZIF.js';
|
|
|
17
17
|
import './utils-BscIVFn8.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
import './Api-DAWuvzbl.js';
|
|
22
22
|
import './badge-DSYSJcRy.js';
|
|
23
23
|
import './parts-RvUQ__Pq.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
4
4
|
import { D as Dispute } from './Dispute-BH0Xfn-F.js';
|
|
5
5
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
6
6
|
import { D as DisputeService } from './dispute.service-CrZsNDW8.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-CbHGNIID.js';
|
|
8
8
|
import './Api-DAWuvzbl.js';
|
|
9
9
|
import './config-state-DZeVYerv.js';
|
|
10
10
|
import './index-B_KxSZIF.js';
|
|
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { D as DisputeService } from './dispute.service-CrZsNDW8.js';
|
|
11
11
|
import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
13
13
|
import './dinero-HXpYMWUU.js';
|
|
14
14
|
import './Api-DAWuvzbl.js';
|
|
15
15
|
import './config-state-DZeVYerv.js';
|
|
@@ -20,7 +20,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
20
20
|
import './Business-BCoP0TAV.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-CbHGNIID.js';
|
|
24
24
|
|
|
25
25
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
26
26
|
var _a;
|
|
@@ -7,7 +7,7 @@ import './Business-BCoP0TAV.js';
|
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
9
9
|
import { E as ErrorState } from './utils-Dg6gMUTv.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
11
11
|
import './config-state-DZeVYerv.js';
|
|
12
12
|
import './index-B_KxSZIF.js';
|
|
13
13
|
import './utils-BscIVFn8.js';
|
|
@@ -15,7 +15,7 @@ import './dinero-HXpYMWUU.js';
|
|
|
15
15
|
import './helpers-Mu7LQT-w.js';
|
|
16
16
|
import './state-options-BX8GieXu.js';
|
|
17
17
|
import './parts-RvUQ__Pq.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-CbHGNIID.js';
|
|
19
19
|
|
|
20
20
|
const api = Api();
|
|
21
21
|
class ReportsService {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-Bn7inNWG.js'
|
|
|
2
2
|
import { al as heading5, ai as heading4, ae as buttonPrimary, z as text } from './parts-RvUQ__Pq.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
7
7
|
import { B as BusinessService } from './business.service-cQrH5BqF.js';
|
|
8
8
|
import { B as Business } from './Business-BCoP0TAV.js';
|
|
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
|
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
17
17
|
import { T as TerminalService } from './terminal.service-E6dZlM43.js';
|
|
18
18
|
import { k as formatPhoneNumber } from './utils-BscIVFn8.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-CbHGNIID.js';
|
|
20
20
|
import './Api-DAWuvzbl.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-TxyxCg0E.js';
|
|
|
3
3
|
import { m as makeGetPaymentDetails } from './get-payment-details-0VzpMNY9.js';
|
|
4
4
|
import { E as ErrorState } from './utils-Dg6gMUTv.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
7
7
|
import './Api-DAWuvzbl.js';
|
|
8
8
|
import './config-state-DZeVYerv.js';
|
|
9
9
|
import './index-B_KxSZIF.js';
|
|
@@ -17,7 +17,7 @@ import './helpers-Mu7LQT-w.js';
|
|
|
17
17
|
import './state-options-BX8GieXu.js';
|
|
18
18
|
import './utils-BeQLScSm.js';
|
|
19
19
|
import './parts-RvUQ__Pq.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
|
|
22
22
|
const PaymentDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
3
3
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-ONP8lDnV.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-cQrH5BqF.js';
|
|
@@ -8,7 +8,7 @@ import './Refund-CVh70dXA.js';
|
|
|
8
8
|
import './Pagination-CLHwhyvu.js';
|
|
9
9
|
import './Business-BCoP0TAV.js';
|
|
10
10
|
import './Dispute-BH0Xfn-F.js';
|
|
11
|
-
import './package-
|
|
11
|
+
import './package-CbHGNIID.js';
|
|
12
12
|
import './utils-BeQLScSm.js';
|
|
13
13
|
import './config-state-DZeVYerv.js';
|
|
14
14
|
import './index-B_KxSZIF.js';
|
|
@@ -6,7 +6,7 @@ import { g as PaymentBalanceTransaction } from './Refund-CVh70dXA.js';
|
|
|
6
6
|
import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
7
7
|
import './Business-BCoP0TAV.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
11
|
import { P as PaymentService } from './payment.service-TxyxCg0E.js';
|
|
12
12
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Br3n9Xu-.js';
|
|
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-RvUQ
|
|
|
17
17
|
import './index-B_KxSZIF.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
import './Api-DAWuvzbl.js';
|
|
22
22
|
import './spinner-DUzyWLhj.js';
|
|
23
23
|
|
|
@@ -8,7 +8,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
8
8
|
import './Business-BCoP0TAV.js';
|
|
9
9
|
import './Dispute-BH0Xfn-F.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
12
12
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
13
13
|
import './event-types-CZfYo5-1.js';
|
|
14
14
|
import { d as defaultColumnsKeys } from './payments-table-gkJV5GNK.js';
|
|
@@ -17,7 +17,7 @@ import './utils-BscIVFn8.js';
|
|
|
17
17
|
import './index-B_KxSZIF.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
import './payments-status-5orNU2Rd.js';
|
|
22
22
|
import './badge-DSYSJcRy.js';
|
|
23
23
|
import './parts-RvUQ__Pq.js';
|
|
@@ -9,7 +9,7 @@ import './Business-BCoP0TAV.js';
|
|
|
9
9
|
import './Dispute-BH0Xfn-F.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
11
|
import { E as ErrorState } from './utils-Dg6gMUTv.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
13
13
|
import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
|
|
14
14
|
import './Api-DAWuvzbl.js';
|
|
15
15
|
import './utils-BscIVFn8.js';
|
|
@@ -17,7 +17,7 @@ import './index-B_KxSZIF.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './parts-RvUQ__Pq.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
|
|
22
22
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
23
23
|
var _a;
|
|
@@ -6,7 +6,7 @@ import { h as PayoutBalanceTransaction } from './Refund-CVh70dXA.js';
|
|
|
6
6
|
import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
7
7
|
import './Business-BCoP0TAV.js';
|
|
8
8
|
import './Dispute-BH0Xfn-F.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
11
|
import { P as PayoutService } from './payout.service-BOwZ4wWh.js';
|
|
12
12
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Br3n9Xu-.js';
|
|
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-RvUQ
|
|
|
17
17
|
import './index-B_KxSZIF.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-CbHGNIID.js';
|
|
21
21
|
import './Api-DAWuvzbl.js';
|
|
22
22
|
import './spinner-DUzyWLhj.js';
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
4
4
|
import { P as PayoutService } from './payout.service-BOwZ4wWh.js';
|
|
5
5
|
import './config-state-DZeVYerv.js';
|
|
6
6
|
import './dinero-HXpYMWUU.js';
|
|
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
|
|
|
14
14
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
15
15
|
import './event-types-CZfYo5-1.js';
|
|
16
16
|
import { d as defaultColumnsKeys } from './payouts-table-0PtktGRd.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-CbHGNIID.js';
|
|
18
18
|
import './Api-DAWuvzbl.js';
|
|
19
19
|
import './utils-BscIVFn8.js';
|
|
20
20
|
import './index-B_KxSZIF.js';
|
|
@@ -12,7 +12,7 @@ import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
|
12
12
|
import './event-types-CZfYo5-1.js';
|
|
13
13
|
import { P as PaymentService } from './payment.service-TxyxCg0E.js';
|
|
14
14
|
import { m as makeGetPaymentDetails } from './get-payment-details-0VzpMNY9.js';
|
|
15
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
15
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
16
16
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
17
17
|
import { A as Api } from './Api-DAWuvzbl.js';
|
|
18
18
|
import { S as Skeleton } from './skeleton-qMb0_Cjy.js';
|
|
@@ -22,7 +22,7 @@ import './index-B_KxSZIF.js';
|
|
|
22
22
|
import './helpers-Mu7LQT-w.js';
|
|
23
23
|
import './state-options-BX8GieXu.js';
|
|
24
24
|
import './parts-RvUQ__Pq.js';
|
|
25
|
-
import './package-
|
|
25
|
+
import './package-CbHGNIID.js';
|
|
26
26
|
|
|
27
27
|
const amountValidation = (maxAmount) => {
|
|
28
28
|
const max = +maxAmount;
|
|
@@ -6,7 +6,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
6
6
|
import './Business-BCoP0TAV.js';
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
9
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
9
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
10
10
|
import { c as checkoutStore } from './checkout.store-OD-OX5On.js';
|
|
11
11
|
import { p as processHTML, f as formatCurrency, r as removeAttribute, i as addAttribute } from './utils-BscIVFn8.js';
|
|
12
12
|
import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-CTalqbNa.js';
|
|
@@ -18,7 +18,7 @@ import './config-state-DZeVYerv.js';
|
|
|
18
18
|
import './index-B_KxSZIF.js';
|
|
19
19
|
import './helpers-Mu7LQT-w.js';
|
|
20
20
|
import './state-options-BX8GieXu.js';
|
|
21
|
-
import './package-
|
|
21
|
+
import './package-CbHGNIID.js';
|
|
22
22
|
import './dinero-HXpYMWUU.js';
|
|
23
23
|
import './index-CbL73B6U.js';
|
|
24
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
|
|
2
2
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
4
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
5
5
|
import { d as defaultColumnsKeys } from './terminal-orders-table-DTBSIMlJ.js';
|
|
6
6
|
import './config-state-DZeVYerv.js';
|
|
7
7
|
import './dinero-HXpYMWUU.js';
|
|
@@ -12,7 +12,7 @@ import './Business-BCoP0TAV.js';
|
|
|
12
12
|
import './Dispute-BH0Xfn-F.js';
|
|
13
13
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
14
14
|
import { A as Api } from './Api-DAWuvzbl.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-CbHGNIID.js';
|
|
16
16
|
import './parts-RvUQ__Pq.js';
|
|
17
17
|
import './utils-BscIVFn8.js';
|
|
18
18
|
import './badge-DSYSJcRy.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Bn7inNWG.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BzAwEptg.js';
|
|
4
4
|
import { T as TerminalService } from './terminal.service-E6dZlM43.js';
|
|
5
5
|
import './config-state-DZeVYerv.js';
|
|
6
6
|
import './dinero-HXpYMWUU.js';
|
|
@@ -13,7 +13,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
|
|
|
13
13
|
import { S as StyledHost } from './styled-host-CTAGIN84.js';
|
|
14
14
|
import './event-types-CZfYo5-1.js';
|
|
15
15
|
import { d as defaultColumnsKeys } from './terminals-table-TGUKTi7I.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-CbHGNIID.js';
|
|
17
17
|
import './Api-DAWuvzbl.js';
|
|
18
18
|
import './utils-BscIVFn8.js';
|
|
19
19
|
import './index-B_KxSZIF.js';
|
|
@@ -618,7 +618,9 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
618
618
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
619
619
|
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
620
620
|
};
|
|
621
|
+
console.log("paymentRequest", paymentRequest);
|
|
621
622
|
const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
|
|
623
|
+
console.log("result", result);
|
|
622
624
|
if (result.success) {
|
|
623
625
|
this.applePayCompleted.emit({
|
|
624
626
|
success: true,
|
|
@@ -651,28 +653,7 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
651
653
|
}
|
|
652
654
|
};
|
|
653
655
|
}
|
|
654
|
-
// private unsubscribeCheckoutLoaded?: () => void;
|
|
655
|
-
// componentWillLoad() {
|
|
656
|
-
// this.unsubscribeCheckoutLoaded = onChange("checkoutLoaded", (loaded) => {
|
|
657
|
-
// console.log("checkoutLoaded", loaded);
|
|
658
|
-
// if (loaded) {
|
|
659
|
-
// this.initializeApplePay();
|
|
660
|
-
// }
|
|
661
|
-
// });
|
|
662
|
-
// }
|
|
663
|
-
// disconnectedCallback() {
|
|
664
|
-
// this.unsubscribeCheckoutLoaded?.();
|
|
665
|
-
// this.unsubscribeCheckoutLoaded = undefined;
|
|
666
|
-
// }
|
|
667
|
-
// @Watch("merchantIdentifier")
|
|
668
|
-
// @Watch("buttonType")
|
|
669
|
-
// @Watch("buttonStyle")
|
|
670
|
-
// @Watch("disabled")
|
|
671
|
-
// watchPropsChange() {
|
|
672
|
-
// this.initializeApplePay();
|
|
673
|
-
// }
|
|
674
656
|
async initializeApplePay() {
|
|
675
|
-
console.log("initializeApplePay", checkoutStore.checkoutLoaded);
|
|
676
657
|
try {
|
|
677
658
|
this.isLoading = true;
|
|
678
659
|
this.error = null;
|
|
@@ -681,9 +662,9 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
681
662
|
Boolean(checkoutStore.paymentCurrency) &&
|
|
682
663
|
Boolean(checkoutStore.authToken);
|
|
683
664
|
if (!hasRequiredConfig) {
|
|
684
|
-
this.error = "Missing required Apple Pay configuration
|
|
665
|
+
this.error = "Missing required Apple Pay configuration";
|
|
685
666
|
this.isConfigValid = false;
|
|
686
|
-
console.error("Apple Pay config error: missing required values
|
|
667
|
+
console.error("Apple Pay config error: missing required values", {
|
|
687
668
|
paymentAmount: checkoutStore.paymentAmount,
|
|
688
669
|
paymentCurrency: checkoutStore.paymentCurrency,
|
|
689
670
|
hasAuthToken: Boolean(checkoutStore.authToken),
|
|
@@ -750,19 +731,13 @@ const ApplePay = /*@__PURE__*/ proxyCustomElement(class ApplePay extends HTMLEle
|
|
|
750
731
|
this.applePayCancelled.emit();
|
|
751
732
|
}
|
|
752
733
|
render() {
|
|
753
|
-
// const shouldHide =
|
|
754
|
-
// !this.isLoading &&
|
|
755
|
-
// (!this.isConfigValid || !this.isAvailable || !this.canMakePayments || !checkoutStore.checkoutLoaded);
|
|
756
|
-
// if (shouldHide) {
|
|
757
|
-
// return null;
|
|
758
|
-
// }
|
|
759
734
|
const isReady = !this.isLoading &&
|
|
760
735
|
this.isAvailable &&
|
|
761
736
|
this.canMakePayments &&
|
|
762
737
|
this.isConfigValid;
|
|
763
|
-
return (h(StyledHost, { key: '
|
|
738
|
+
return (h(StyledHost, { key: '941aea129425ddb64b7befc46f06d9f987e22282' }, checkoutStore.checkoutLoaded && (h("script", { key: '63562ab394410712d3265dda1ef16140a4fdbc3c', async: true, src: 'https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js', onLoad: () => {
|
|
764
739
|
this.initializeApplePay();
|
|
765
|
-
} })), h("div", { key: '
|
|
740
|
+
} })), h("div", { key: '10ac5de54e3fe73457101f2652bf9cea2c90d2b2', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: '6b8976a34d8a1db9d87da2a02ae47d1d8f0b733d', isReady: isReady }), isReady && (h(ApplePayButton, { key: 'c1c84b958888e2ca82ad44d006c5c53ba947412a', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: 'b98fa0f38d95c0dbb33a7b0f342eb70957355125' }, `
|
|
766
741
|
.apple-pay-container {
|
|
767
742
|
width: 100%;
|
|
768
743
|
}
|
|
@@ -262,7 +262,6 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
262
262
|
checkoutStore.selectedPaymentMethod = paymentMethod;
|
|
263
263
|
checkoutStore.paymentToken = paymentMethod.id || undefined;
|
|
264
264
|
}
|
|
265
|
-
// getAvailablePaymentMethods removed in favor of checkout-changed event
|
|
266
265
|
// if validation fails, the error will be emitted by the component
|
|
267
266
|
async validate() {
|
|
268
267
|
const promises = [];
|
|
@@ -410,7 +409,7 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
410
409
|
});
|
|
411
410
|
}
|
|
412
411
|
render() {
|
|
413
|
-
return h(Host, { key: '
|
|
412
|
+
return h(Host, { key: '2cbac33c57dd2cad327f156a4630b1dba9bf3252' });
|
|
414
413
|
}
|
|
415
414
|
get hostEl() { return this; }
|
|
416
415
|
}, [256, "justifi-modular-checkout", {
|
package/dist/module/package.js
CHANGED