@justifi/webcomponents 6.16.0-rc.2 → 6.16.0

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 (189) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-CDE3KpL6.js → Analytics-BiltKWA1.js} +2 -2
  3. package/dist/cjs/{Api-CaEn8pKs.js → Api-w_3MKA4i.js} +1 -1
  4. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +5 -5
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business.service-DIspRonp.js → business.service-OC3N6Ih_.js} +1 -1
  7. package/dist/cjs/card-form.cjs.entry.js +2 -2
  8. package/dist/cjs/{checkout.service-CM1Duar4.js → checkout.service-WHoN6aeA.js} +1 -1
  9. package/dist/cjs/{detect-duplicate-version-DyHHkx4J.js → detect-duplicate-version-CNXbBY8q.js} +1 -1
  10. package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
  11. package/dist/cjs/{event-types-DNCxVTir.js → event-types-Cai0mEQK.js} +1 -1
  12. package/dist/cjs/form-alert_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{get-subaccounts-8LeFCTm6.js → get-subaccounts-CeCBRq_d.js} +1 -1
  14. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +36 -18
  15. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  16. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  17. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  19. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  20. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  21. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  22. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  23. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
  24. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  25. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
  27. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
  28. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  29. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
  30. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
  31. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
  33. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  35. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
  37. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
  39. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
  40. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
  41. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  43. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
  46. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  47. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
  48. package/dist/cjs/{package-DGrVUpde.js → package-DnJ-D1hz.js} +1 -1
  49. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  50. package/dist/cjs/{payment.service-By7aeVkC.js → payment.service-8VwquZX4.js} +1 -1
  51. package/dist/cjs/{payout.service-Dn0rXkmg.js → payout.service-CfjxVIch.js} +1 -1
  52. package/dist/cjs/{plaid.service-CjaugrzX.js → plaid.service-C32Ot0be.js} +1 -1
  53. package/dist/cjs/styled-host-BxbU-bI7.js +20 -0
  54. package/dist/cjs/{terminal.service-C0_r_A60.js → terminal.service-CWCqdsOs.js} +1 -1
  55. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +12 -8
  56. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +18 -2
  57. package/dist/collection/ui-components/styled-host/styled-host.js +10 -1
  58. package/dist/docs.json +1 -1
  59. package/dist/esm/{Analytics-tBzmPsnT.js → Analytics-BRg-ot7B.js} +2 -2
  60. package/dist/esm/{Api-BH6Wa9CT.js → Api-IpJbOluD.js} +1 -1
  61. package/dist/esm/additional-questions-form-step_15.entry.js +5 -5
  62. package/dist/esm/bank-account-form.entry.js +2 -2
  63. package/dist/esm/{business.service-XOnczlAa.js → business.service-CUq26RAr.js} +1 -1
  64. package/dist/esm/card-form.entry.js +2 -2
  65. package/dist/esm/{checkout.service-DvSxk9EZ.js → checkout.service-CoV-isHr.js} +1 -1
  66. package/dist/esm/{detect-duplicate-version-BD3-8NL2.js → detect-duplicate-version-Buk1JhSy.js} +1 -1
  67. package/dist/esm/dispute-notification_2.entry.js +5 -5
  68. package/dist/esm/{event-types-CM5AGGBD.js → event-types-qSUHE7co.js} +1 -1
  69. package/dist/esm/form-alert_3.entry.js +1 -1
  70. package/dist/esm/{get-subaccounts-P-x_RqL5.js → get-subaccounts-Cvolc0kY.js} +1 -1
  71. package/dist/esm/justifi-apple-pay_12.entry.js +37 -19
  72. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  73. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  74. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  75. package/dist/esm/justifi-billing-form.entry.js +1 -1
  76. package/dist/esm/justifi-business-details.entry.js +6 -6
  77. package/dist/esm/justifi-business-form.entry.js +6 -6
  78. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  79. package/dist/esm/justifi-card-form.entry.js +5 -5
  80. package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
  81. package/dist/esm/justifi-checkout.entry.js +5 -5
  82. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  83. package/dist/esm/justifi-checkouts-list.entry.js +7 -7
  84. package/dist/esm/justifi-dispute-management.entry.js +6 -6
  85. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  86. package/dist/esm/justifi-order-terminals.entry.js +7 -7
  87. package/dist/esm/justifi-payment-details.entry.js +6 -6
  88. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  89. package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
  90. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  91. package/dist/esm/justifi-payments-list.entry.js +6 -6
  92. package/dist/esm/justifi-payout-details.entry.js +6 -6
  93. package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
  94. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  95. package/dist/esm/justifi-payouts-list.entry.js +7 -7
  96. package/dist/esm/justifi-qr-terminal.entry.js +5 -5
  97. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  98. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  99. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  100. package/dist/esm/justifi-skeleton.entry.js +1 -1
  101. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  102. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  103. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  104. package/dist/esm/justifi-terminals-list.entry.js +7 -7
  105. package/dist/esm/{package-DhrQechy.js → package-Deobp59r.js} +1 -1
  106. package/dist/esm/payment-method-option.entry.js +1 -1
  107. package/dist/esm/{payment.service-CBUnE4bP.js → payment.service-Cw6qInd6.js} +1 -1
  108. package/dist/esm/{payout.service-DUYaYbeJ.js → payout.service-DOieTpcO.js} +1 -1
  109. package/dist/esm/{plaid.service-Umm80G4q.js → plaid.service-BMWf7Ieo.js} +1 -1
  110. package/dist/esm/styled-host-CXEpP1m_.js +18 -0
  111. package/dist/esm/{terminal.service-DeunLqmo.js → terminal.service-sR0ii2iZ.js} +1 -1
  112. package/dist/module/badge.js +1 -1
  113. package/dist/module/justifi-plaid-payment-method2.js +12 -9
  114. package/dist/module/justifi-tokenize-payment-method2.js +18 -2
  115. package/dist/module/package.js +1 -1
  116. package/dist/module/pagination-menu2.js +1 -1
  117. package/dist/module/parts.js +1 -1
  118. package/dist/module/spinner.js +1 -1
  119. package/dist/module/styled-host.js +11 -2
  120. package/dist/module/terminal-quantity-selector2.js +1 -1
  121. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +1 -0
  122. package/dist/webcomponents/{p-6f7756b7.entry.js → p-01f47ab2.entry.js} +1 -1
  123. package/dist/webcomponents/{p-5f20b0da.entry.js → p-027b4d63.entry.js} +1 -1
  124. package/dist/webcomponents/{p-12f5fdc0.entry.js → p-080a121b.entry.js} +1 -1
  125. package/dist/webcomponents/p-119fd3ce.entry.js +1 -0
  126. package/dist/webcomponents/p-1411a042.entry.js +1 -0
  127. package/dist/webcomponents/{p-e1fbadea.entry.js → p-1f83d0b1.entry.js} +1 -1
  128. package/dist/webcomponents/{p-89ed2d99.entry.js → p-2a01b6f6.entry.js} +1 -1
  129. package/dist/webcomponents/p-2e2dfaef.entry.js +1 -0
  130. package/dist/webcomponents/{p-63e02d42.entry.js → p-32c553c4.entry.js} +1 -1
  131. package/dist/webcomponents/{p-adaa1c98.entry.js → p-3902016f.entry.js} +1 -1
  132. package/dist/webcomponents/{p-5be775e8.entry.js → p-43cba173.entry.js} +1 -1
  133. package/dist/webcomponents/{p-bd4d2924.entry.js → p-445cc319.entry.js} +1 -1
  134. package/dist/webcomponents/p-4791e1d5.entry.js +1 -0
  135. package/dist/webcomponents/p-4b291405.entry.js +1 -0
  136. package/dist/webcomponents/{p-b39c7414.entry.js → p-4d1b2975.entry.js} +1 -1
  137. package/dist/webcomponents/{p-e5feca94.entry.js → p-62ad58a0.entry.js} +1 -1
  138. package/dist/webcomponents/p-7b401cf3.entry.js +1 -0
  139. package/dist/webcomponents/{p-d19d7d41.entry.js → p-8bb301a0.entry.js} +1 -1
  140. package/dist/webcomponents/{p-abebb03c.entry.js → p-8ff641ef.entry.js} +1 -1
  141. package/dist/webcomponents/{p-9c4ac3c5.entry.js → p-921b0976.entry.js} +1 -1
  142. package/dist/webcomponents/{p-357d14ee.entry.js → p-9a6ce4ed.entry.js} +1 -1
  143. package/dist/webcomponents/{p-CEGSQXGU.js → p-B4ZUdQg4.js} +1 -1
  144. package/dist/webcomponents/{p-B6kC9tX2.js → p-B85aBmeH.js} +1 -1
  145. package/dist/webcomponents/{p-Bo7ndXwR.js → p-BTeWJbG_.js} +1 -1
  146. package/dist/webcomponents/{p-DF7oFWnO.js → p-But70V31.js} +1 -1
  147. package/dist/webcomponents/p-BzLTI5Dx.js +1 -0
  148. package/dist/webcomponents/{p-CRaiEpKf.js → p-C9sMQVpY.js} +1 -1
  149. package/dist/webcomponents/{p-C8J9uVEs.js → p-CSFjBLVs.js} +1 -1
  150. package/dist/webcomponents/{p-BKrZL95i.js → p-CaMgPHyw.js} +1 -1
  151. package/dist/webcomponents/{p-CEHwp4sh.js → p-CiVEIyOt.js} +1 -1
  152. package/dist/webcomponents/p-CkyOiDKD.js +1 -0
  153. package/dist/webcomponents/p-DTnmhThV.js +1 -0
  154. package/dist/webcomponents/p-Deobp59r.js +1 -0
  155. package/dist/webcomponents/{p-DCpGH4xL.js → p-DohdDWHF.js} +1 -1
  156. package/dist/webcomponents/{p-2b5533a1.entry.js → p-a65ab079.entry.js} +1 -1
  157. package/dist/webcomponents/{p-511bc0b2.entry.js → p-a6695920.entry.js} +1 -1
  158. package/dist/webcomponents/{p-a8f1c9b3.entry.js → p-ae41697b.entry.js} +1 -1
  159. package/dist/webcomponents/{p-deff4422.entry.js → p-aea1e9e4.entry.js} +1 -1
  160. package/dist/webcomponents/p-b013685d.entry.js +1 -0
  161. package/dist/webcomponents/{p-6bfdc443.entry.js → p-b54c0942.entry.js} +1 -1
  162. package/dist/webcomponents/{p-521c534c.entry.js → p-b699d24b.entry.js} +1 -1
  163. package/dist/webcomponents/{p-3d02cb78.entry.js → p-ba40fffb.entry.js} +1 -1
  164. package/dist/webcomponents/{p-2272a65b.entry.js → p-bebd8879.entry.js} +1 -1
  165. package/dist/webcomponents/{p-5331e011.entry.js → p-d3e734d2.entry.js} +1 -1
  166. package/dist/webcomponents/{p-91358854.entry.js → p-db854b84.entry.js} +1 -1
  167. package/dist/webcomponents/{p-06ed3518.entry.js → p-dc31825e.entry.js} +1 -1
  168. package/dist/webcomponents/{p-28fb6b50.entry.js → p-dec8952b.entry.js} +1 -1
  169. package/dist/webcomponents/{p-fd1718e0.entry.js → p-df32a424.entry.js} +1 -1
  170. package/dist/webcomponents/{p-a1ef7674.entry.js → p-e637a15b.entry.js} +1 -1
  171. package/dist/webcomponents/{p-b2b0303d.entry.js → p-e87da85d.entry.js} +1 -1
  172. package/dist/webcomponents/{p-d59d6c23.entry.js → p-f0195acf.entry.js} +1 -1
  173. package/dist/webcomponents/{p-ff67c8f7.entry.js → p-f5e14a09.entry.js} +1 -1
  174. package/dist/webcomponents/{p-9b930446.entry.js → p-feae3963.entry.js} +1 -1
  175. package/dist/webcomponents/webcomponents.esm.js +1 -1
  176. package/package.json +14 -14
  177. package/dist/cjs/styled-host-CW1WUnUq.js +0 -11
  178. package/dist/esm/styled-host-RvPhw8Gu.js +0 -9
  179. package/dist/webcomponents/p-05AWudQe.js +0 -1
  180. package/dist/webcomponents/p-4dabcfd6.entry.js +0 -1
  181. package/dist/webcomponents/p-51238f79.entry.js +0 -1
  182. package/dist/webcomponents/p-5e196140.entry.js +0 -1
  183. package/dist/webcomponents/p-80177bcb.entry.js +0 -1
  184. package/dist/webcomponents/p-CKL24GQA.js +0 -1
  185. package/dist/webcomponents/p-DEfLsy2W.js +0 -1
  186. package/dist/webcomponents/p-DhrQechy.js +0 -1
  187. package/dist/webcomponents/p-aba3b0dc.entry.js +0 -1
  188. package/dist/webcomponents/p-e75d1756.entry.js +0 -1
  189. package/dist/webcomponents/p-f2c99647.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Api = require('./Api-CaEn8pKs.js');
3
+ var Api = require('./Api-w_3MKA4i.js');
4
4
  require('./Plaid-BcOAKDaU.js');
5
5
  require('./Pagination-Dediz133.js');
6
6
  require('./Business-CNaz-VLa.js');
@@ -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 plaidLogoSvg from "../../../assets/plaid-icon.svg";
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
- const plaidLogo = (h("img", { class: "plaid-logo-img", src: plaidLogoSvg, alt: "Plaid", title: "Plaid", style: {
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
- return (h("div", { class: `${errorClass} mt-2` }, h("small", null, this.error.message), h("br", null), h("small", { class: "text-muted" }, this.error.userAction, this.error.retryable && this.retryCount < this.maxRetries && (h("span", null, " \u2022 Auto-retry in progress...")))));
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", null, "Connecting to your bank...")));
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", null, "\u2713 Bank account connected successfully")));
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", null, "Click to connect your bank account")));
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"; }
@@ -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
- const isSelected = this.selectedPaymentMethod === paymentMethodType && checkoutStore.selectedPaymentMethod.id === undefined;
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: 'd065263c69beef410298f14a3c8e595460149267' }, h("form", { key: 'cbf67700b366e26eb9a6aa1fe07afd3f7baf5c52' }, h("fieldset", { key: '3fd1ccefca659985eb2b90c1080c71c0f2ffe99a' }, h("div", { key: '7181cff13f4cc7aa6c00f4023757bac96625e87b', class: "row gy-3" }, h("div", { key: 'c04c382e858eab02206902d23e3921d15d2bfebc', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '9faa4417ba3e5dba526103f8d92fd5a88ce2df7d', class: "col-12" }, h("internal-button", { key: 'e4fc2482631553212e5cf62b07f2f44f32239b75', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
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
1
  {
2
- "timestamp": "2026-11-09T20:27:47",
2
+ "timestamp": "2026-11-20T13:44:54",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.38.3",
@@ -1,5 +1,5 @@
1
- import { p as packageJson } from './package-DhrQechy.js';
2
- import { A as Api } from './Api-BH6Wa9CT.js';
1
+ import { p as packageJson } from './package-Deobp59r.js';
2
+ import { A as Api } from './Api-IpJbOluD.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-DhrQechy.js';
3
+ import { p as packageJson } from './package-Deobp59r.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-XOnczlAa.js';
4
+ import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService, I as IdentityService } from './business.service-CUq26RAr.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-BH6Wa9CT.js';
25
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
26
- import { P as PlaidService } from './plaid.service-Umm80G4q.js';
24
+ import { A as Api } from './Api-IpJbOluD.js';
25
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
26
+ import { P as PlaidService } from './plaid.service-BMWf7Ieo.js';
27
27
  import './utils-DaPywmTI.js';
28
28
  import './_commonjsHelpers-BFTU3MAI.js';
29
29
  import './index-3wWWWrhn.js';
30
- import './package-DhrQechy.js';
30
+ import './package-Deobp59r.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-BD3-8NL2.js';
5
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.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-DhrQechy.js';
15
+ import './package-Deobp59r.js';
16
16
  import './index-DEx8fQeW.js';
17
17
 
18
18
  const BankAccountFormSkeleton = () => {
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-BH6Wa9CT.js';
1
+ import { A as Api } from './Api-IpJbOluD.js';
2
2
  import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-CTtGaVYs.js';
@@ -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-BD3-8NL2.js';
5
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.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-DhrQechy.js';
14
+ import './package-Deobp59r.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" })))));
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-BH6Wa9CT.js';
1
+ import { A as Api } from './Api-IpJbOluD.js';
2
2
  import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-CTtGaVYs.js';
@@ -1,4 +1,4 @@
1
- import { p as packageJson } from './package-DhrQechy.js';
1
+ import { p as packageJson } from './package-Deobp59r.js';
2
2
 
3
3
  const JUSTIFI_VERSION_KEY = '__JUSTIFI_WC_VERSION__';
4
4
  /**
@@ -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-CM5AGGBD.js';
10
- import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
11
- import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
9
+ import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-qSUHE7co.js';
10
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.js';
11
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
12
12
  import './dinero-HXpYMWUU.js';
13
- import './Api-BH6Wa9CT.js';
13
+ import './Api-IpJbOluD.js';
14
14
  import './config-state-BKOsYBXZ.js';
15
15
  import './index-3wWWWrhn.js';
16
- import './package-DhrQechy.js';
16
+ import './package-Deobp59r.js';
17
17
  import './Pagination-CLHwhyvu.js';
18
18
  import './Business-CTtGaVYs.js';
19
19
 
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-BH6Wa9CT.js';
1
+ import { A as Api } from './Api-IpJbOluD.js';
2
2
  import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-CTtGaVYs.js';
@@ -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-DhrQechy.js';
6
+ import { p as packageJson } from './package-Deobp59r.js';
7
7
 
8
8
  const FormAlert = class {
9
9
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-BH6Wa9CT.js';
1
+ import { A as Api } from './Api-IpJbOluD.js';
2
2
  import { S as SubAccount, C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
4
  import './Business-CTtGaVYs.js';
@@ -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-BH6Wa9CT.js';
2
+ import { A as Api } from './Api-IpJbOluD.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-RvPhw8Gu.js';
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-tBzmPsnT.js';
15
- import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
14
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
15
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.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-DvSxk9EZ.js';
21
- import { P as PlaidService } from './plaid.service-Umm80G4q.js';
20
+ import { C as CheckoutService } from './checkout.service-CoV-isHr.js';
21
+ import { P as PlaidService } from './plaid.service-BMWf7Ieo.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-DhrQechy.js';
24
+ import './package-Deobp59r.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
- const plaidLogo = (h("img", { class: "plaid-logo-img", src: plaidIconSvg, alt: "Plaid", title: "Plaid", style: {
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
- return (h("div", { class: `${errorClass} mt-2` }, h("small", null, this.error.message), h("br", null), h("small", { class: "text-muted" }, this.error.userAction, this.error.retryable && this.retryCount < this.maxRetries && (h("span", null, " \u2022 Auto-retry in progress...")))));
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", null, "Connecting to your bank...")));
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", null, "\u2713 Bank account connected successfully")));
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", null, "Click to connect your bank account")));
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
- const isSelected = this.selectedPaymentMethod === paymentMethodType && checkoutStore.selectedPaymentMethod.id === undefined;
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: 'd065263c69beef410298f14a3c8e595460149267' }, h("form", { key: 'cbf67700b366e26eb9a6aa1fe07afd3f7baf5c52' }, h("fieldset", { key: '3fd1ccefca659985eb2b90c1080c71c0f2ffe99a' }, h("div", { key: '7181cff13f4cc7aa6c00f4023757bac96625e87b', class: "row gy-3" }, h("div", { key: 'c04c382e858eab02206902d23e3921d15d2bfebc', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '9faa4417ba3e5dba526103f8d92fd5a88ce2df7d', class: "col-12" }, h("internal-button", { key: 'e4fc2482631553212e5cf62b07f2f44f32239b75', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
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-tBzmPsnT.js';
3
- import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
2
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
3
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.js';
4
4
  import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
5
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
5
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-DhrQechy.js';
8
- import './Api-BH6Wa9CT.js';
7
+ import './package-Deobp59r.js';
8
+ import './Api-IpJbOluD.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-BD3-8NL2.js';
3
- import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
2
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.js';
3
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
4
4
  import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
5
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
5
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-DhrQechy.js';
8
- import './Api-BH6Wa9CT.js';
7
+ import './package-Deobp59r.js';
8
+ import './Api-IpJbOluD.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-RvPhw8Gu.js';
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,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
2
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
3
3
  import './event-types-CZfYo5-1.js';
4
4
 
5
5
  const JustifiBillingForm = 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-XOnczlAa.js';
3
+ import { B as BusinessService } from './business.service-CUq26RAr.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-tBzmPsnT.js';
7
- import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
8
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
6
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
7
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.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-BH6Wa9CT.js';
12
+ import './Api-IpJbOluD.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-DhrQechy.js';
17
+ import './package-Deobp59r.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-tBzmPsnT.js';
9
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
10
10
  import { B as Button } from './button-CBzHAOFW.js';
11
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
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-BD3-8NL2.js';
14
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.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-XOnczlAa.js';
18
+ import { B as BusinessService } from './business.service-CUq26RAr.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-DhrQechy.js';
26
- import './Api-BH6Wa9CT.js';
25
+ import './package-Deobp59r.js';
26
+ import './Api-IpJbOluD.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-RvPhw8Gu.js';
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-tBzmPsnT.js';
3
- import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
2
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
3
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.js';
4
4
  import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
5
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
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-DhrQechy.js';
9
- import './Api-BH6Wa9CT.js';
8
+ import './package-Deobp59r.js';
9
+ import './Api-IpJbOluD.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-tBzmPsnT.js';
5
- import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
4
+ import { J as JustifiAnalytics } from './Analytics-BRg-ot7B.js';
5
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Buk1JhSy.js';
6
6
  import './utils-D8J8OvxY.js';
7
7
  import './dinero-HXpYMWUU.js';
8
- import './package-DhrQechy.js';
9
- import './Api-BH6Wa9CT.js';
8
+ import './package-Deobp59r.js';
9
+ import './Api-IpJbOluD.js';
10
10
  import './config-state-BKOsYBXZ.js';
11
11
  import './index-3wWWWrhn.js';
12
12
  import './Pagination-CLHwhyvu.js';