@justifi/webcomponents 6.16.0-rc.2 → 6.16.0-rc.3
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/{Analytics-CDE3KpL6.js → Analytics-C1FDYwxD.js} +2 -2
- package/dist/cjs/{Api-CaEn8pKs.js → Api-DzRWrqRx.js} +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +5 -5
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-DIspRonp.js → business.service-D2D8ABMT.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{checkout.service-CM1Duar4.js → checkout.service-CVpXCi8z.js} +1 -1
- package/dist/cjs/{detect-duplicate-version-DyHHkx4J.js → detect-duplicate-version-Bd2jUlYF.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
- package/dist/cjs/{event-types-DNCxVTir.js → event-types-DptyH3kd.js} +1 -1
- package/dist/cjs/form-alert_3.cjs.entry.js +1 -1
- package/dist/cjs/{get-subaccounts-8LeFCTm6.js → get-subaccounts-CgzPwTgf.js} +1 -1
- package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +36 -18
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
- package/dist/cjs/{package-DGrVUpde.js → package-45W01-Af.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment.service-By7aeVkC.js → payment.service-Cbs38oOx.js} +1 -1
- package/dist/cjs/{payout.service-Dn0rXkmg.js → payout.service-DGEinO-8.js} +1 -1
- package/dist/cjs/{plaid.service-CjaugrzX.js → plaid.service-JISYtGYD.js} +1 -1
- package/dist/cjs/styled-host-BxbU-bI7.js +20 -0
- package/dist/cjs/{terminal.service-C0_r_A60.js → terminal.service-9sdCsY2z.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +12 -8
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +18 -2
- package/dist/collection/ui-components/styled-host/styled-host.js +10 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{Analytics-tBzmPsnT.js → Analytics-C9VVBFjO.js} +2 -2
- package/dist/esm/{Api-BH6Wa9CT.js → Api-BSUerPjV.js} +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business.service-XOnczlAa.js → business.service-DRzTONqj.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{checkout.service-DvSxk9EZ.js → checkout.service-8sMLHuiA.js} +1 -1
- package/dist/esm/{detect-duplicate-version-BD3-8NL2.js → detect-duplicate-version-Dtfd-S4Z.js} +1 -1
- package/dist/esm/dispute-notification_2.entry.js +5 -5
- package/dist/esm/{event-types-CM5AGGBD.js → event-types-Dix82sNv.js} +1 -1
- package/dist/esm/form-alert_3.entry.js +1 -1
- package/dist/esm/{get-subaccounts-P-x_RqL5.js → get-subaccounts-DjD2utKp.js} +1 -1
- package/dist/esm/justifi-apple-pay_12.entry.js +37 -19
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
- package/dist/esm/justifi-bank-account-form.entry.js +5 -5
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +5 -5
- package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +7 -7
- package/dist/esm/justifi-dispute-management.entry.js +6 -6
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +7 -7
- package/dist/esm/justifi-payment-details.entry.js +6 -6
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
- package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +6 -6
- package/dist/esm/justifi-payout-details.entry.js +6 -6
- package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +7 -7
- package/dist/esm/justifi-qr-terminal.entry.js +5 -5
- package/dist/esm/justifi-refund-payment.entry.js +6 -6
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +7 -7
- package/dist/esm/{package-DhrQechy.js → package-C04splpj.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment.service-CBUnE4bP.js → payment.service-CLLAQ4ht.js} +1 -1
- package/dist/esm/{payout.service-DUYaYbeJ.js → payout.service-BZgKgDDq.js} +1 -1
- package/dist/esm/{plaid.service-Umm80G4q.js → plaid.service-CUoMQV-m.js} +1 -1
- package/dist/esm/styled-host-CXEpP1m_.js +18 -0
- package/dist/esm/{terminal.service-DeunLqmo.js → terminal.service-De58ZPM6.js} +1 -1
- package/dist/module/badge.js +1 -1
- package/dist/module/justifi-plaid-payment-method2.js +12 -9
- package/dist/module/justifi-tokenize-payment-method2.js +18 -2
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/styled-host.js +11 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +1 -0
- package/dist/webcomponents/p-12ee2546.entry.js +1 -0
- package/dist/webcomponents/{p-e5feca94.entry.js → p-1336c977.entry.js} +1 -1
- package/dist/webcomponents/p-1411a042.entry.js +1 -0
- package/dist/webcomponents/{p-51238f79.entry.js → p-19e638a1.entry.js} +1 -1
- package/dist/webcomponents/{p-e1fbadea.entry.js → p-2603928d.entry.js} +1 -1
- package/dist/webcomponents/p-266b3cf4.entry.js +1 -0
- package/dist/webcomponents/{p-b39c7414.entry.js → p-2a54e5d1.entry.js} +1 -1
- package/dist/webcomponents/{p-abebb03c.entry.js → p-303f8ffd.entry.js} +1 -1
- package/dist/webcomponents/{p-adaa1c98.entry.js → p-3c835c5d.entry.js} +1 -1
- package/dist/webcomponents/{p-511bc0b2.entry.js → p-599816a1.entry.js} +1 -1
- package/dist/webcomponents/p-5b9315b6.entry.js +1 -0
- package/dist/webcomponents/{p-ff67c8f7.entry.js → p-5de3f411.entry.js} +1 -1
- package/dist/webcomponents/{p-06ed3518.entry.js → p-73800780.entry.js} +1 -1
- package/dist/webcomponents/{p-d19d7d41.entry.js → p-8bb301a0.entry.js} +1 -1
- package/dist/webcomponents/{p-bd4d2924.entry.js → p-8de46fd1.entry.js} +1 -1
- package/dist/webcomponents/{p-5f20b0da.entry.js → p-92970d9d.entry.js} +1 -1
- package/dist/webcomponents/{p-5be775e8.entry.js → p-99111cd2.entry.js} +1 -1
- package/dist/webcomponents/p-9Lrj4zm8.js +1 -0
- package/dist/webcomponents/{p-357d14ee.entry.js → p-9a6ce4ed.entry.js} +1 -1
- package/dist/webcomponents/p-B-LmgMK4.js +1 -0
- package/dist/webcomponents/p-B1u-Iegl.js +1 -0
- package/dist/webcomponents/p-B8UcvRjv.js +1 -0
- package/dist/webcomponents/{p-DF7oFWnO.js → p-BJUSJGPP.js} +1 -1
- package/dist/webcomponents/p-C04splpj.js +1 -0
- package/dist/webcomponents/p-CZuwNeL1.js +1 -0
- package/dist/webcomponents/{p-CEHwp4sh.js → p-DON5-wIV.js} +1 -1
- package/dist/webcomponents/p-DTnmhThV.js +1 -0
- package/dist/webcomponents/{p-BKrZL95i.js → p-DWjkuM6f.js} +1 -1
- package/dist/webcomponents/{p-DCpGH4xL.js → p-Da0IToMr.js} +1 -1
- package/dist/webcomponents/{p-Bo7ndXwR.js → p-DgKsNl4p.js} +1 -1
- package/dist/webcomponents/{p-6f7756b7.entry.js → p-a19c4d51.entry.js} +1 -1
- package/dist/webcomponents/{p-12f5fdc0.entry.js → p-a3da15b6.entry.js} +1 -1
- package/dist/webcomponents/{p-2b5533a1.entry.js → p-a65ab079.entry.js} +1 -1
- package/dist/webcomponents/{p-fd1718e0.entry.js → p-a6b98663.entry.js} +1 -1
- package/dist/webcomponents/{p-b2b0303d.entry.js → p-ad842c42.entry.js} +1 -1
- package/dist/webcomponents/{p-a8f1c9b3.entry.js → p-ae41697b.entry.js} +1 -1
- package/dist/webcomponents/{p-deff4422.entry.js → p-aea1e9e4.entry.js} +1 -1
- package/dist/webcomponents/{p-6bfdc443.entry.js → p-b54c0942.entry.js} +1 -1
- package/dist/webcomponents/{p-521c534c.entry.js → p-b699d24b.entry.js} +1 -1
- package/dist/webcomponents/{p-3d02cb78.entry.js → p-b76b8634.entry.js} +1 -1
- package/dist/webcomponents/{p-2272a65b.entry.js → p-bebd8879.entry.js} +1 -1
- package/dist/webcomponents/{p-5331e011.entry.js → p-c96e25f9.entry.js} +1 -1
- package/dist/webcomponents/{p-5e196140.entry.js → p-d0a40e88.entry.js} +1 -1
- package/dist/webcomponents/p-d1361e3c.entry.js +1 -0
- package/dist/webcomponents/{p-d59d6c23.entry.js → p-d46ebc1c.entry.js} +1 -1
- package/dist/webcomponents/{p-a1ef7674.entry.js → p-dad1f6b9.entry.js} +1 -1
- package/dist/webcomponents/{p-91358854.entry.js → p-db854b84.entry.js} +1 -1
- package/dist/webcomponents/{p-28fb6b50.entry.js → p-dec8952b.entry.js} +1 -1
- package/dist/webcomponents/p-e3914845.entry.js +1 -0
- package/dist/webcomponents/{p-aba3b0dc.entry.js → p-e3f57bb1.entry.js} +1 -1
- package/dist/webcomponents/{p-89ed2d99.entry.js → p-e7c13d73.entry.js} +1 -1
- package/dist/webcomponents/{p-9c4ac3c5.entry.js → p-ee605f62.entry.js} +1 -1
- package/dist/webcomponents/{p-B6kC9tX2.js → p-rYB3onzC.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/styled-host-CW1WUnUq.js +0 -11
- package/dist/esm/styled-host-RvPhw8Gu.js +0 -9
- package/dist/webcomponents/p-05AWudQe.js +0 -1
- package/dist/webcomponents/p-4dabcfd6.entry.js +0 -1
- package/dist/webcomponents/p-63e02d42.entry.js +0 -1
- package/dist/webcomponents/p-80177bcb.entry.js +0 -1
- package/dist/webcomponents/p-9b930446.entry.js +0 -1
- package/dist/webcomponents/p-C8J9uVEs.js +0 -1
- package/dist/webcomponents/p-CEGSQXGU.js +0 -1
- package/dist/webcomponents/p-CKL24GQA.js +0 -1
- package/dist/webcomponents/p-CRaiEpKf.js +0 -1
- package/dist/webcomponents/p-DEfLsy2W.js +0 -1
- package/dist/webcomponents/p-DhrQechy.js +0 -1
- package/dist/webcomponents/p-e75d1756.entry.js +0 -1
- package/dist/webcomponents/p-f2c99647.entry.js +0 -1
package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { checkoutStore, onChange } from "../../../store/checkout.store";
|
|
3
3
|
import { StyledHost } from "../../../ui-components";
|
|
4
|
-
import
|
|
4
|
+
import { image, label, text, textDanger } from "../../../styles/parts";
|
|
5
5
|
import { PlaidService } from "../../../api/services/plaid.service";
|
|
6
6
|
import { ComponentErrorSeverity } from "../../../api/ComponentError";
|
|
7
7
|
import { PAYMENT_METHODS } from "../ModularCheckout";
|
|
@@ -542,13 +542,16 @@ export class JustifiPlaidPaymentMethod {
|
|
|
542
542
|
}
|
|
543
543
|
return null;
|
|
544
544
|
}
|
|
545
|
-
|
|
545
|
+
// Inlined rather than an <img> so the mark inherits the surrounding text
|
|
546
|
+
// color via currentColor -- an <img> cannot, and the old asset's hardcoded
|
|
547
|
+
// #111 fill was invisible on dark themes.
|
|
548
|
+
const plaidLogo = (h("svg", { class: "plaid-logo-img", part: image, role: "img", "aria-label": "Plaid", viewBox: "0 0 28 29", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
546
549
|
display: 'inline',
|
|
547
550
|
width: '20px',
|
|
548
551
|
height: '20px',
|
|
549
552
|
marginLeft: '5px',
|
|
550
553
|
marginTop: '-2px',
|
|
551
|
-
} }));
|
|
554
|
+
} }, h("title", null, "Plaid"), h("path", { fill: "currentColor", "fill-rule": "evenodd", d: "M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z" })));
|
|
552
555
|
const renderErrorState = () => {
|
|
553
556
|
if (!this.error)
|
|
554
557
|
return null;
|
|
@@ -557,23 +560,24 @@ export class JustifiPlaidPaymentMethod {
|
|
|
557
560
|
: this.error.severity === ComponentErrorSeverity.WARNING
|
|
558
561
|
? 'text-warning'
|
|
559
562
|
: 'text-info';
|
|
560
|
-
|
|
563
|
+
const errorPart = this.error.severity === ComponentErrorSeverity.ERROR ? textDanger : text;
|
|
564
|
+
return (h("div", { class: "mt-2" }, h("div", { class: errorClass }, h("small", { part: errorPart }, this.error.message)), h("div", { class: "text-muted" }, h("small", { part: text }, this.error.userAction, this.error.retryable && this.retryCount < this.maxRetries && (h("span", null, " \u2022 Auto-retry in progress..."))))));
|
|
561
565
|
};
|
|
562
566
|
const renderStatusState = () => {
|
|
563
567
|
if (this.error)
|
|
564
568
|
return null;
|
|
565
569
|
if (this.isAuthenticating) {
|
|
566
|
-
return (h("div", { class: "text-info mt-2" }, h("small",
|
|
570
|
+
return (h("div", { class: "text-info mt-2" }, h("small", { part: text }, "Connecting to your bank...")));
|
|
567
571
|
}
|
|
568
572
|
if (this.publicToken) {
|
|
569
|
-
return (h("div", { class: "text-success mt-2" }, h("small",
|
|
573
|
+
return (h("div", { class: "text-success mt-2" }, h("small", { part: text }, "\u2713 Bank account connected successfully")));
|
|
570
574
|
}
|
|
571
575
|
if (this.isSelected && !this.publicToken && !this.error && !this.isAuthenticating) {
|
|
572
|
-
return (h("div", { class: "text-muted mt-2" }, h("small",
|
|
576
|
+
return (h("div", { class: "text-muted mt-2" }, h("small", { part: text }, "Click to connect your bank account")));
|
|
573
577
|
}
|
|
574
578
|
return null;
|
|
575
579
|
};
|
|
576
|
-
return (h(StyledHost, { class: "payment-method" }, h("div", { title: "Pay with Plaid" }, h("div", { onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
580
|
+
return (h(StyledHost, { class: "payment-method", exportparts: "label,text,color,font-family,text-danger,image" }, h("div", { title: "Pay with Plaid" }, h("div", { part: label, onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
577
581
|
}
|
|
578
582
|
static get is() { return "justifi-plaid-payment-method"; }
|
|
579
583
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js
CHANGED
|
@@ -36,6 +36,16 @@ export class JustifiTokenizePaymentMethod {
|
|
|
36
36
|
this.unsubscribeFromStore();
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
componentWillRender() {
|
|
40
|
+
// A cancelled wallet flow clears the store (modular-checkout's apple/google/
|
|
41
|
+
// paypal cancel handlers) without telling us. Local state still holds this
|
|
42
|
+
// component's option, and renderPaymentMethodOption keeps its radio checked
|
|
43
|
+
// on that basis — so re-claim the store, or submit reports "No payment
|
|
44
|
+
// method selected." while the radio plainly looks selected.
|
|
45
|
+
if (this.selectedPaymentMethod && !checkoutStore.selectedPaymentMethod) {
|
|
46
|
+
checkoutStore.selectedPaymentMethod = { type: this.selectedPaymentMethod };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
componentWillLoad() {
|
|
40
50
|
detectDuplicateVersion();
|
|
41
51
|
this.analytics = new JustifiAnalytics(this);
|
|
@@ -244,7 +254,13 @@ export class JustifiTokenizePaymentMethod {
|
|
|
244
254
|
return this.disableCreditCard || this.disableBankAccount;
|
|
245
255
|
}
|
|
246
256
|
renderPaymentMethodOption(paymentMethodType) {
|
|
247
|
-
|
|
257
|
+
// Siblings (plaid, sezzle, wallets, saved methods) select themselves by
|
|
258
|
+
// writing the store, not by emitting radio-click, so local state alone
|
|
259
|
+
// would leave this radio checked next to theirs.
|
|
260
|
+
const storeSelection = checkoutStore.selectedPaymentMethod;
|
|
261
|
+
const claimedBySibling = !!storeSelection &&
|
|
262
|
+
(storeSelection.id !== undefined || storeSelection.type !== paymentMethodType);
|
|
263
|
+
const isSelected = this.selectedPaymentMethod === paymentMethodType && !claimedBySibling;
|
|
248
264
|
return (h("div", { class: "payment-method" }, h("radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
249
265
|
}
|
|
250
266
|
renderSelectedPaymentMethodForm(paymentMethodType) {
|
|
@@ -263,7 +279,7 @@ export class JustifiTokenizePaymentMethod {
|
|
|
263
279
|
}, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
|
|
264
280
|
}
|
|
265
281
|
render() {
|
|
266
|
-
return (h(StyledHost, { key: '
|
|
282
|
+
return (h(StyledHost, { key: 'eff8f53ba9e7935822cb6848422bb0e86d5c762b' }, h("form", { key: 'a1af6ad70700565a46644a487109cb8be91a2a1e' }, h("fieldset", { key: '289038090f6a03feb2467b4da0be0231da4c9d58' }, h("div", { key: 'fc536a12ac5a2245dc2f458a5cb5eb42a0faa2c9', class: "row gy-3" }, h("div", { key: '42f5add1ed97ddca1b7f229f572f94c0f5eb990b', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '34c980bab861d09c0bed6666409197a9067610a1', class: "col-12" }, h("internal-button", { key: '71800d244d727d42bb50acea662cc1d8ebb37775', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
267
283
|
}
|
|
268
284
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
269
285
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import styledHostStyles from "./styled-host.css";
|
|
3
|
+
// Every selector in styled-host.css is scoped to `:host, .jfi-styled-host`.
|
|
4
|
+
// :host covers the shadow-DOM components; .jfi-styled-host is what the two
|
|
5
|
+
// light-DOM ones (justifi-checkout, plaid-verification) match on, so their copy
|
|
6
|
+
// of Bootstrap cannot style the merchant's page.
|
|
7
|
+
//
|
|
8
|
+
// Descendant selectors use :where(), which adds no specificity, so `p` is still
|
|
9
|
+
// (0,0,1) exactly as in an unscoped build. The few rules whose subject IS the
|
|
10
|
+
// root use :is() instead: they carried :host's own (0,1,0) before scoping, and
|
|
11
|
+
// :where() would have dropped them under every bare-element rule.
|
|
3
12
|
export const StyledHost = (props, children) => {
|
|
4
|
-
return (h(Host, Object.assign({}, props, { class: "body", style: { display: 'block' } }), h("style", null, styledHostStyles), children));
|
|
13
|
+
return (h(Host, Object.assign({}, props, { class: "body jfi-styled-host", style: { display: 'block' } }), h("style", null, styledHostStyles), children));
|
|
5
14
|
};
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
2
|
-
import { A as Api } from './Api-
|
|
1
|
+
import { p as packageJson } from './package-C04splpj.js';
|
|
2
|
+
import { A as Api } from './Api-BSUerPjV.js';
|
|
3
3
|
import './Plaid-CRcTLeaz.js';
|
|
4
4
|
import './Pagination-CLHwhyvu.js';
|
|
5
5
|
import './Business-CTtGaVYs.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
2
2
|
import { g as generateId } from './utils-D8J8OvxY.js';
|
|
3
|
-
import { p as packageJson } from './package-
|
|
3
|
+
import { p as packageJson } from './package-C04splpj.js';
|
|
4
4
|
|
|
5
5
|
const Api = () => {
|
|
6
6
|
async function getAuthorizationHeader(authToken) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, b as ComponentErrorCodes, B as EntityDocument, x as PLAID_ERROR_SEVERITY, y as PLAID_ERROR_MESSAGES, z as PlaidErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
3
3
|
import { m as makeGetBusiness, a as makePatchBusiness, c as makePostBankAccount, d as makePostDocumentRecord, e as makeGetIdentity, f as makePatchIdentity, g as makePostIdentity } from './payment-provisioning-actions-VtleD509.js';
|
|
4
|
-
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService, I as IdentityService } from './business.service-
|
|
4
|
+
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService, I as IdentityService } from './business.service-DRzTONqj.js';
|
|
5
5
|
import { a as additionalQuestionsSchema, d as businessCoreInfoSchemaCAN, b as businessCoreInfoSchemaUSA, g as identitySchemaByCountry, h as addressSchemaByCountry } from './business-identity-schema-BLKCH6xV.js';
|
|
6
6
|
import { F as FormController, c as create$3, a as create$6, b as create$7 } from './index.esm-KCSohgHx.js';
|
|
7
7
|
import { A as AdditionalQuestions, C as CountryCode, c as CoreBusinessInfo, R as Representative, f as Address, O as Owner } from './Business-CTtGaVYs.js';
|
|
@@ -21,13 +21,13 @@ import { c as countryLabels } from './country-config-DJFj1v-Q.js';
|
|
|
21
21
|
import { s as snakeCaseToHumanReadable, b as formatDate, d as formatTime } from './utils-D8J8OvxY.js';
|
|
22
22
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
23
23
|
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-Dm8jO-BT.js';
|
|
24
|
-
import { A as Api } from './Api-
|
|
25
|
-
import { S as StyledHost } from './styled-host-
|
|
26
|
-
import { P as PlaidService } from './plaid.service-
|
|
24
|
+
import { A as Api } from './Api-BSUerPjV.js';
|
|
25
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
26
|
+
import { P as PlaidService } from './plaid.service-CUoMQV-m.js';
|
|
27
27
|
import './utils-DaPywmTI.js';
|
|
28
28
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
29
29
|
import './index-3wWWWrhn.js';
|
|
30
|
-
import './package-
|
|
30
|
+
import './package-C04splpj.js';
|
|
31
31
|
|
|
32
32
|
// Emits a MISSING_PROPS error naming each falsy prop. Returns true when all props are present.
|
|
33
33
|
// `props` keys are the public attribute names, e.g. { 'auth-token': this.authToken }.
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
|
|
|
2
2
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
4
4
|
import { e as generateTabId } from './utils-D8J8OvxY.js';
|
|
5
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
6
6
|
import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
8
8
|
import './Pagination-CLHwhyvu.js';
|
|
@@ -12,7 +12,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
12
12
|
import './parts-Bu7gdOaV.js';
|
|
13
13
|
import './index-3wWWWrhn.js';
|
|
14
14
|
import './dinero-HXpYMWUU.js';
|
|
15
|
-
import './package-
|
|
15
|
+
import './package-C04splpj.js';
|
|
16
16
|
import './index-DEx8fQeW.js';
|
|
17
17
|
|
|
18
18
|
const BankAccountFormSkeleton = () => {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
|
|
|
2
2
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
4
4
|
import { e as generateTabId } from './utils-D8J8OvxY.js';
|
|
5
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, c as ComponentErrorMessages, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
7
7
|
import './Pagination-CLHwhyvu.js';
|
|
8
8
|
import './Business-CTtGaVYs.js';
|
|
@@ -11,7 +11,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
11
11
|
import './parts-Bu7gdOaV.js';
|
|
12
12
|
import './index-3wWWWrhn.js';
|
|
13
13
|
import './dinero-HXpYMWUU.js';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-C04splpj.js';
|
|
15
15
|
|
|
16
16
|
const CardFormSkeleton = () => {
|
|
17
17
|
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "mb-3" }, h(Skeleton, { height: "18px", width: "100px" }), h(Skeleton, { height: "36px" })), h("div", { class: "row" }, h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "80px" }), h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "30px" }), h(Skeleton, { height: "36px" })))));
|
|
@@ -6,14 +6,14 @@ import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
8
8
|
import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
|
|
9
|
-
import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-
|
|
10
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
11
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-Dix82sNv.js';
|
|
10
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
11
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
12
12
|
import './dinero-HXpYMWUU.js';
|
|
13
|
-
import './Api-
|
|
13
|
+
import './Api-BSUerPjV.js';
|
|
14
14
|
import './config-state-BKOsYBXZ.js';
|
|
15
15
|
import './index-3wWWWrhn.js';
|
|
16
|
-
import './package-
|
|
16
|
+
import './package-C04splpj.js';
|
|
17
17
|
import './Pagination-CLHwhyvu.js';
|
|
18
18
|
import './Business-CTtGaVYs.js';
|
|
19
19
|
|
|
@@ -3,7 +3,7 @@ import { al as alertDanger, a3 as inputInvalidAndFocused, q as inputInvalid, v a
|
|
|
3
3
|
import { c as createStore } from './index-3wWWWrhn.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-FyanxO4T.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-C04splpj.js';
|
|
7
7
|
|
|
8
8
|
const FormAlert = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { A as Api } from './Api-
|
|
2
|
+
import { A as Api } from './Api-BSUerPjV.js';
|
|
3
3
|
import { A as ApplePayConfig, r as ApplePayHelpers, s as ApplePayPaymentRequest, t as ApplePaySessionStatus, u as ApplePayButtonStyle, v as ApplePayButtonType, w as ApplePayMerchantCapability, C as ComponentErrorSeverity, b as ComponentErrorCodes, c as ComponentErrorMessages, I as ICheckoutStatus, x as PLAID_ERROR_SEVERITY, y as PLAID_ERROR_MESSAGES, z as PlaidErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
4
|
-
import { S as StyledHost } from './styled-host-
|
|
4
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
5
5
|
import './event-types-CZfYo5-1.js';
|
|
6
6
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
7
7
|
import { c as checkoutStore, o as onChange, a as onAnyChange, g as getAvailablePaymentMethodTypes, b as getCheckoutState } from './checkout.store-B8CGkx0o.js';
|
|
8
|
-
import { t as text, r as radioListItem } from './parts-Bu7gdOaV.js';
|
|
8
|
+
import { t as text, B as image, x as label, z as textDanger, r as radioListItem } from './parts-Bu7gdOaV.js';
|
|
9
9
|
import { f as formatCurrency } from './utils-D8J8OvxY.js';
|
|
10
10
|
import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
|
|
11
11
|
import { H as Header1 } from './header-1-BI0o3rMW.js';
|
|
12
12
|
import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-DM0VaTpH.js';
|
|
13
13
|
import { H as Header3 } from './header-3-DNqRk_HO.js';
|
|
14
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
15
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
14
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
15
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
16
16
|
import './dinero-HXpYMWUU.js';
|
|
17
17
|
import './Pagination-CLHwhyvu.js';
|
|
18
18
|
import './Business-CTtGaVYs.js';
|
|
19
19
|
import { m as makeGetCheckout, a as makeCheckoutComplete } from './checkout-actions-CWnrb317.js';
|
|
20
|
-
import { C as CheckoutService } from './checkout.service-
|
|
21
|
-
import { P as PlaidService } from './plaid.service-
|
|
20
|
+
import { C as CheckoutService } from './checkout.service-8sMLHuiA.js';
|
|
21
|
+
import { P as PlaidService } from './plaid.service-CUoMQV-m.js';
|
|
22
22
|
import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DEx8fQeW.js';
|
|
23
23
|
import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
|
|
24
|
-
import './package-
|
|
24
|
+
import './package-C04splpj.js';
|
|
25
25
|
import './index-3wWWWrhn.js';
|
|
26
26
|
import './utils-DaPywmTI.js';
|
|
27
27
|
|
|
@@ -1700,8 +1700,6 @@ const JustifiPaypal = class {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
};
|
|
1702
1702
|
|
|
1703
|
-
const plaidIconSvg = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=';
|
|
1704
|
-
|
|
1705
1703
|
const JustifiPlaidPaymentMethod = class {
|
|
1706
1704
|
constructor(hostRef) {
|
|
1707
1705
|
registerInstance(this, hostRef);
|
|
@@ -2224,13 +2222,16 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
2224
2222
|
}
|
|
2225
2223
|
return null;
|
|
2226
2224
|
}
|
|
2227
|
-
|
|
2225
|
+
// Inlined rather than an <img> so the mark inherits the surrounding text
|
|
2226
|
+
// color via currentColor -- an <img> cannot, and the old asset's hardcoded
|
|
2227
|
+
// #111 fill was invisible on dark themes.
|
|
2228
|
+
const plaidLogo = (h("svg", { class: "plaid-logo-img", part: image, role: "img", "aria-label": "Plaid", viewBox: "0 0 28 29", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
2228
2229
|
display: 'inline',
|
|
2229
2230
|
width: '20px',
|
|
2230
2231
|
height: '20px',
|
|
2231
2232
|
marginLeft: '5px',
|
|
2232
2233
|
marginTop: '-2px',
|
|
2233
|
-
} }));
|
|
2234
|
+
} }, h("title", null, "Plaid"), h("path", { fill: "currentColor", "fill-rule": "evenodd", d: "M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z" })));
|
|
2234
2235
|
const renderErrorState = () => {
|
|
2235
2236
|
if (!this.error)
|
|
2236
2237
|
return null;
|
|
@@ -2239,23 +2240,24 @@ const JustifiPlaidPaymentMethod = class {
|
|
|
2239
2240
|
: this.error.severity === ComponentErrorSeverity.WARNING
|
|
2240
2241
|
? 'text-warning'
|
|
2241
2242
|
: 'text-info';
|
|
2242
|
-
|
|
2243
|
+
const errorPart = this.error.severity === ComponentErrorSeverity.ERROR ? textDanger : text;
|
|
2244
|
+
return (h("div", { class: "mt-2" }, h("div", { class: errorClass }, h("small", { part: errorPart }, this.error.message)), h("div", { class: "text-muted" }, h("small", { part: text }, this.error.userAction, this.error.retryable && this.retryCount < this.maxRetries && (h("span", null, " \u2022 Auto-retry in progress..."))))));
|
|
2243
2245
|
};
|
|
2244
2246
|
const renderStatusState = () => {
|
|
2245
2247
|
if (this.error)
|
|
2246
2248
|
return null;
|
|
2247
2249
|
if (this.isAuthenticating) {
|
|
2248
|
-
return (h("div", { class: "text-info mt-2" }, h("small",
|
|
2250
|
+
return (h("div", { class: "text-info mt-2" }, h("small", { part: text }, "Connecting to your bank...")));
|
|
2249
2251
|
}
|
|
2250
2252
|
if (this.publicToken) {
|
|
2251
|
-
return (h("div", { class: "text-success mt-2" }, h("small",
|
|
2253
|
+
return (h("div", { class: "text-success mt-2" }, h("small", { part: text }, "\u2713 Bank account connected successfully")));
|
|
2252
2254
|
}
|
|
2253
2255
|
if (this.isSelected && !this.publicToken && !this.error && !this.isAuthenticating) {
|
|
2254
|
-
return (h("div", { class: "text-muted mt-2" }, h("small",
|
|
2256
|
+
return (h("div", { class: "text-muted mt-2" }, h("small", { part: text }, "Click to connect your bank account")));
|
|
2255
2257
|
}
|
|
2256
2258
|
return null;
|
|
2257
2259
|
};
|
|
2258
|
-
return (h(StyledHost, { class: "payment-method" }, h("div", { title: "Pay with Plaid" }, h("div", { onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
2260
|
+
return (h(StyledHost, { class: "payment-method", exportparts: "label,text,color,font-family,text-danger,image" }, h("div", { title: "Pay with Plaid" }, h("div", { part: label, onClick: (event) => { event.preventDefault(); this.handleSelectionClick(); } }, "Pay with Bank Account ", plaidLogo, " "), renderErrorState(), renderStatusState())));
|
|
2259
2261
|
}
|
|
2260
2262
|
static get watchers() { return {
|
|
2261
2263
|
"isSelected": ["onSelectionChange"]
|
|
@@ -2406,6 +2408,16 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2406
2408
|
this.unsubscribeFromStore();
|
|
2407
2409
|
}
|
|
2408
2410
|
}
|
|
2411
|
+
componentWillRender() {
|
|
2412
|
+
// A cancelled wallet flow clears the store (modular-checkout's apple/google/
|
|
2413
|
+
// paypal cancel handlers) without telling us. Local state still holds this
|
|
2414
|
+
// component's option, and renderPaymentMethodOption keeps its radio checked
|
|
2415
|
+
// on that basis — so re-claim the store, or submit reports "No payment
|
|
2416
|
+
// method selected." while the radio plainly looks selected.
|
|
2417
|
+
if (this.selectedPaymentMethod && !checkoutStore.selectedPaymentMethod) {
|
|
2418
|
+
checkoutStore.selectedPaymentMethod = { type: this.selectedPaymentMethod };
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2409
2421
|
componentWillLoad() {
|
|
2410
2422
|
detectDuplicateVersion();
|
|
2411
2423
|
this.analytics = new JustifiAnalytics(this);
|
|
@@ -2614,7 +2626,13 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2614
2626
|
return this.disableCreditCard || this.disableBankAccount;
|
|
2615
2627
|
}
|
|
2616
2628
|
renderPaymentMethodOption(paymentMethodType) {
|
|
2617
|
-
|
|
2629
|
+
// Siblings (plaid, sezzle, wallets, saved methods) select themselves by
|
|
2630
|
+
// writing the store, not by emitting radio-click, so local state alone
|
|
2631
|
+
// would leave this radio checked next to theirs.
|
|
2632
|
+
const storeSelection = checkoutStore.selectedPaymentMethod;
|
|
2633
|
+
const claimedBySibling = !!storeSelection &&
|
|
2634
|
+
(storeSelection.id !== undefined || storeSelection.type !== paymentMethodType);
|
|
2635
|
+
const isSelected = this.selectedPaymentMethod === paymentMethodType && !claimedBySibling;
|
|
2618
2636
|
return (h("div", { class: "payment-method" }, h("radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
2619
2637
|
}
|
|
2620
2638
|
renderSelectedPaymentMethodForm(paymentMethodType) {
|
|
@@ -2633,7 +2651,7 @@ const JustifiTokenizePaymentMethod = class {
|
|
|
2633
2651
|
}, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
|
|
2634
2652
|
}
|
|
2635
2653
|
render() {
|
|
2636
|
-
return (h(StyledHost, { key: '
|
|
2654
|
+
return (h(StyledHost, { key: 'eff8f53ba9e7935822cb6848422bb0e86d5c762b' }, h("form", { key: 'a1af6ad70700565a46644a487109cb8be91a2a1e' }, h("fieldset", { key: '289038090f6a03feb2467b4da0be0231da4c9d58' }, h("div", { key: 'fc536a12ac5a2245dc2f458a5cb5eb42a0faa2c9', class: "row gy-3" }, h("div", { key: '42f5add1ed97ddca1b7f229f572f94c0f5eb990b', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '34c980bab861d09c0bed6666409197a9067610a1', class: "col-12" }, h("internal-button", { key: '71800d244d727d42bb50acea662cc1d8ebb37775', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
2637
2655
|
}
|
|
2638
2656
|
get host() { return getElement(this); }
|
|
2639
2657
|
static get watchers() { return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
3
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
3
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
4
4
|
import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host-
|
|
5
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
|
-
import './package-
|
|
8
|
-
import './Api-
|
|
7
|
+
import './package-C04splpj.js';
|
|
8
|
+
import './Api-BSUerPjV.js';
|
|
9
9
|
import './utils-D8J8OvxY.js';
|
|
10
10
|
import './dinero-HXpYMWUU.js';
|
|
11
11
|
import './Plaid-CRcTLeaz.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
2
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
4
4
|
import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host-
|
|
5
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
|
-
import './package-
|
|
8
|
-
import './Api-
|
|
7
|
+
import './package-C04splpj.js';
|
|
8
|
+
import './Api-BSUerPjV.js';
|
|
9
9
|
import './utils-D8J8OvxY.js';
|
|
10
10
|
import './dinero-HXpYMWUU.js';
|
|
11
11
|
import './Plaid-CRcTLeaz.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { S as StyledHost } from './styled-host-
|
|
2
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
4
|
|
|
5
5
|
const JustifiBillingFormFull = class {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { E as ErrorState } from './utils-BFduyAPr.js';
|
|
3
|
-
import { B as BusinessService } from './business.service-
|
|
3
|
+
import { B as BusinessService } from './business.service-DRzTONqj.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-IZpxKRZM.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
6
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
8
|
-
import { S as StyledHost } from './styled-host-
|
|
6
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
7
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
8
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
9
9
|
import './event-types-CZfYo5-1.js';
|
|
10
10
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
11
11
|
import './parts-Bu7gdOaV.js';
|
|
12
|
-
import './Api-
|
|
12
|
+
import './Api-BSUerPjV.js';
|
|
13
13
|
import './config-state-BKOsYBXZ.js';
|
|
14
14
|
import './index-3wWWWrhn.js';
|
|
15
15
|
import './utils-D8J8OvxY.js';
|
|
16
16
|
import './dinero-HXpYMWUU.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-C04splpj.js';
|
|
18
18
|
import './Pagination-CLHwhyvu.js';
|
|
19
19
|
import './Business-CTtGaVYs.js';
|
|
20
20
|
import './utils-DaPywmTI.js';
|
|
@@ -6,24 +6,24 @@ import './dinero-HXpYMWUU.js';
|
|
|
6
6
|
import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
7
7
|
import './Pagination-CLHwhyvu.js';
|
|
8
8
|
import { C as CountryCode, B as Business, b as BusinessFormServerErrors } from './Business-CTtGaVYs.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
10
10
|
import { B as Button } from './button-CBzHAOFW.js';
|
|
11
|
-
import { S as StyledHost } from './styled-host-
|
|
11
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
12
12
|
import { H as Header1 } from './header-1-BI0o3rMW.js';
|
|
13
13
|
import './event-types-CZfYo5-1.js';
|
|
14
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
14
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
15
15
|
import { S as Skeleton } from './skeleton-dbktEkFS.js';
|
|
16
16
|
import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
|
|
17
17
|
import { m as makeGetBusiness, a as makePatchBusiness } from './payment-provisioning-actions-VtleD509.js';
|
|
18
|
-
import { B as BusinessService } from './business.service-
|
|
18
|
+
import { B as BusinessService } from './business.service-DRzTONqj.js';
|
|
19
19
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
20
20
|
import './schema-validations-8GJ34Do1.js';
|
|
21
21
|
import './country-config-DJFj1v-Q.js';
|
|
22
22
|
import './business-form-options-DLRkVtee.js';
|
|
23
23
|
import './index-3wWWWrhn.js';
|
|
24
24
|
import './utils-D8J8OvxY.js';
|
|
25
|
-
import './package-
|
|
26
|
-
import './Api-
|
|
25
|
+
import './package-C04splpj.js';
|
|
26
|
+
import './Api-BSUerPjV.js';
|
|
27
27
|
import './parts-Bu7gdOaV.js';
|
|
28
28
|
import './utils-DaPywmTI.js';
|
|
29
29
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { S as StyledHost } from './styled-host-
|
|
2
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
4
|
|
|
5
5
|
const JustifiCardBillingFormSimple = class {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
3
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
2
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
3
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
4
4
|
import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host-
|
|
5
|
+
import { S as StyledHost } from './styled-host-CXEpP1m_.js';
|
|
6
6
|
import './event-types-CZfYo5-1.js';
|
|
7
7
|
import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
|
|
8
|
-
import './package-
|
|
9
|
-
import './Api-
|
|
8
|
+
import './package-C04splpj.js';
|
|
9
|
+
import './Api-BSUerPjV.js';
|
|
10
10
|
import './utils-D8J8OvxY.js';
|
|
11
11
|
import './dinero-HXpYMWUU.js';
|
|
12
12
|
import './Plaid-CRcTLeaz.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
3
3
|
import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
|
|
4
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
5
|
-
import { d as detectDuplicateVersion } from './detect-duplicate-version-
|
|
4
|
+
import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
|
|
5
|
+
import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
|
|
6
6
|
import './utils-D8J8OvxY.js';
|
|
7
7
|
import './dinero-HXpYMWUU.js';
|
|
8
|
-
import './package-
|
|
9
|
-
import './Api-
|
|
8
|
+
import './package-C04splpj.js';
|
|
9
|
+
import './Api-BSUerPjV.js';
|
|
10
10
|
import './config-state-BKOsYBXZ.js';
|
|
11
11
|
import './index-3wWWWrhn.js';
|
|
12
12
|
import './Pagination-CLHwhyvu.js';
|