@justifi/webcomponents 6.16.0-rc.1 → 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.
Files changed (210) hide show
  1. package/dist/cjs/{Analytics-jQsZxClw.js → Analytics-C1FDYwxD.js} +2 -2
  2. package/dist/cjs/{Api-DqXlEWR1.js → Api-DzRWrqRx.js} +1 -1
  3. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +5 -5
  4. package/dist/cjs/bank-account-form.cjs.entry.js +2 -4
  5. package/dist/cjs/{business.service-Ca-olopC.js → business.service-D2D8ABMT.js} +1 -1
  6. package/dist/cjs/card-form.cjs.entry.js +4 -6
  7. package/dist/cjs/{checkout.service-DBHPH2ji.js → checkout.service-CVpXCi8z.js} +1 -1
  8. package/dist/cjs/{detect-duplicate-version-D8ZajVUT.js → detect-duplicate-version-Bd2jUlYF.js} +1 -1
  9. package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
  10. package/dist/cjs/{event-types-luy3xnYR.js → event-types-DptyH3kd.js} +1 -1
  11. package/dist/cjs/form-alert_3.cjs.entry.js +7 -2
  12. package/dist/cjs/{get-subaccounts-D11aTYj1.js → get-subaccounts-CgzPwTgf.js} +1 -1
  13. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +50 -26
  14. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  16. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  19. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  20. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  22. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +14 -7
  24. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  25. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
  26. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
  29. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
  30. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
  31. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  34. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
  35. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
  39. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
  40. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  43. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
  45. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
  47. package/dist/cjs/loader.cjs.js +1 -1
  48. package/dist/cjs/{package-B414Jbra.js → package-45W01-Af.js} +1 -1
  49. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  50. package/dist/cjs/{payment.service-CNTe8vrp.js → payment.service-Cbs38oOx.js} +1 -1
  51. package/dist/cjs/{payout.service-BmU3q9jO.js → payout.service-DGEinO-8.js} +1 -1
  52. package/dist/cjs/{plaid.service-d9LAwbnX.js → plaid.service-JISYtGYD.js} +1 -1
  53. package/dist/cjs/styled-host-BxbU-bI7.js +20 -0
  54. package/dist/cjs/{terminal.service-BkQWZv9b.js → terminal.service-9sdCsY2z.js} +1 -1
  55. package/dist/cjs/webcomponents.cjs.js +1 -1
  56. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +0 -2
  57. package/dist/collection/components/checkout/card-form/card-form.js +2 -4
  58. package/dist/collection/components/checkout/justifi-checkout.js +29 -2
  59. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +14 -8
  60. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +12 -8
  61. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +18 -2
  62. package/dist/collection/ui-components/styled-host/styled-host.js +10 -1
  63. package/dist/collection/utils/frame-comunication-service.js +6 -1
  64. package/dist/docs.json +30 -1
  65. package/dist/esm/{Analytics-DihSSvAP.js → Analytics-C9VVBFjO.js} +2 -2
  66. package/dist/esm/{Api-INJHjnya.js → Api-BSUerPjV.js} +1 -1
  67. package/dist/esm/additional-questions-form-step_15.entry.js +5 -5
  68. package/dist/esm/bank-account-form.entry.js +2 -4
  69. package/dist/esm/{business.service-C8f7OSEu.js → business.service-DRzTONqj.js} +1 -1
  70. package/dist/esm/card-form.entry.js +4 -6
  71. package/dist/esm/{checkout.service-BYDkC7uy.js → checkout.service-8sMLHuiA.js} +1 -1
  72. package/dist/esm/{detect-duplicate-version-C4r1WAzO.js → detect-duplicate-version-Dtfd-S4Z.js} +1 -1
  73. package/dist/esm/dispute-notification_2.entry.js +5 -5
  74. package/dist/esm/{event-types-S8CgMbPg.js → event-types-Dix82sNv.js} +1 -1
  75. package/dist/esm/form-alert_3.entry.js +7 -2
  76. package/dist/esm/{get-subaccounts-BHWiH8q9.js → get-subaccounts-DjD2utKp.js} +1 -1
  77. package/dist/esm/justifi-apple-pay_12.entry.js +51 -27
  78. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  79. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  80. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  81. package/dist/esm/justifi-billing-form.entry.js +1 -1
  82. package/dist/esm/justifi-business-details.entry.js +6 -6
  83. package/dist/esm/justifi-business-form.entry.js +6 -6
  84. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  85. package/dist/esm/justifi-card-form.entry.js +5 -5
  86. package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
  87. package/dist/esm/justifi-checkout.entry.js +14 -7
  88. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  89. package/dist/esm/justifi-checkouts-list.entry.js +7 -7
  90. package/dist/esm/justifi-dispute-management.entry.js +6 -6
  91. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  92. package/dist/esm/justifi-order-terminals.entry.js +7 -7
  93. package/dist/esm/justifi-payment-details.entry.js +6 -6
  94. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  95. package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
  96. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  97. package/dist/esm/justifi-payments-list.entry.js +6 -6
  98. package/dist/esm/justifi-payout-details.entry.js +6 -6
  99. package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
  100. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  101. package/dist/esm/justifi-payouts-list.entry.js +7 -7
  102. package/dist/esm/justifi-qr-terminal.entry.js +5 -5
  103. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  104. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  105. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  106. package/dist/esm/justifi-skeleton.entry.js +1 -1
  107. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  108. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  109. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  110. package/dist/esm/justifi-terminals-list.entry.js +7 -7
  111. package/dist/esm/loader.js +1 -1
  112. package/dist/esm/{package-BQpbTebi.js → package-C04splpj.js} +1 -1
  113. package/dist/esm/payment-method-option.entry.js +1 -1
  114. package/dist/esm/{payment.service-CQXRsu6Y.js → payment.service-CLLAQ4ht.js} +1 -1
  115. package/dist/esm/{payout.service-RRyWfpEK.js → payout.service-BZgKgDDq.js} +1 -1
  116. package/dist/esm/{plaid.service-Cg3E3Plo.js → plaid.service-CUoMQV-m.js} +1 -1
  117. package/dist/esm/styled-host-CXEpP1m_.js +18 -0
  118. package/dist/esm/{terminal.service-Dy6D8bnl.js → terminal.service-De58ZPM6.js} +1 -1
  119. package/dist/esm/webcomponents.js +1 -1
  120. package/dist/module/badge.js +1 -1
  121. package/dist/module/bank-account-form2.js +0 -2
  122. package/dist/module/card-form2.js +2 -4
  123. package/dist/module/iframe-input2.js +6 -1
  124. package/dist/module/justifi-checkout.js +10 -2
  125. package/dist/module/justifi-modular-checkout2.js +14 -8
  126. package/dist/module/justifi-plaid-payment-method2.js +12 -9
  127. package/dist/module/justifi-tokenize-payment-method2.js +18 -2
  128. package/dist/module/package.js +1 -1
  129. package/dist/module/pagination-menu2.js +1 -1
  130. package/dist/module/parts.js +1 -1
  131. package/dist/module/spinner.js +1 -1
  132. package/dist/module/styled-host.js +11 -2
  133. package/dist/module/terminal-quantity-selector2.js +1 -1
  134. package/dist/types/components/checkout/justifi-checkout.d.ts +7 -0
  135. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +1 -0
  136. package/dist/types/components.d.ts +10 -0
  137. package/dist/webcomponents/p-12ee2546.entry.js +1 -0
  138. package/dist/webcomponents/{p-7ff788f8.entry.js → p-1336c977.entry.js} +1 -1
  139. package/dist/webcomponents/p-1411a042.entry.js +1 -0
  140. package/dist/webcomponents/{p-fb1f2fe8.entry.js → p-19e638a1.entry.js} +1 -1
  141. package/dist/webcomponents/{p-1a1aef42.entry.js → p-2603928d.entry.js} +1 -1
  142. package/dist/webcomponents/p-266b3cf4.entry.js +1 -0
  143. package/dist/webcomponents/p-2a54e5d1.entry.js +1 -0
  144. package/dist/webcomponents/{p-f0da2ca5.entry.js → p-303f8ffd.entry.js} +1 -1
  145. package/dist/webcomponents/{p-d48f80d1.entry.js → p-3c835c5d.entry.js} +1 -1
  146. package/dist/webcomponents/{p-e6d1e3e2.entry.js → p-599816a1.entry.js} +1 -1
  147. package/dist/webcomponents/{p-c9871158.entry.js → p-5b9315b6.entry.js} +1 -1
  148. package/dist/webcomponents/p-5de3f411.entry.js +1 -0
  149. package/dist/webcomponents/p-73800780.entry.js +1 -0
  150. package/dist/webcomponents/{p-d19d7d41.entry.js → p-8bb301a0.entry.js} +1 -1
  151. package/dist/webcomponents/p-8de46fd1.entry.js +1 -0
  152. package/dist/webcomponents/{p-d35cde99.entry.js → p-92970d9d.entry.js} +1 -1
  153. package/dist/webcomponents/{p-73af269e.entry.js → p-99111cd2.entry.js} +1 -1
  154. package/dist/webcomponents/p-9Lrj4zm8.js +1 -0
  155. package/dist/webcomponents/{p-357d14ee.entry.js → p-9a6ce4ed.entry.js} +1 -1
  156. package/dist/webcomponents/p-B-LmgMK4.js +1 -0
  157. package/dist/webcomponents/p-B1u-Iegl.js +1 -0
  158. package/dist/webcomponents/p-B8UcvRjv.js +1 -0
  159. package/dist/webcomponents/p-BJUSJGPP.js +1 -0
  160. package/dist/webcomponents/p-C04splpj.js +1 -0
  161. package/dist/webcomponents/p-CZuwNeL1.js +1 -0
  162. package/dist/webcomponents/{p-Bh5BNj74.js → p-DON5-wIV.js} +1 -1
  163. package/dist/webcomponents/p-DTnmhThV.js +1 -0
  164. package/dist/webcomponents/{p-Cy_sz0Tx.js → p-DWjkuM6f.js} +1 -1
  165. package/dist/webcomponents/{p-BtiJJJwv.js → p-Da0IToMr.js} +1 -1
  166. package/dist/webcomponents/{p-l3JhjHLW.js → p-DgKsNl4p.js} +1 -1
  167. package/dist/webcomponents/{p-622c2af4.entry.js → p-a19c4d51.entry.js} +1 -1
  168. package/dist/webcomponents/{p-4c7e7880.entry.js → p-a3da15b6.entry.js} +1 -1
  169. package/dist/webcomponents/{p-2b5533a1.entry.js → p-a65ab079.entry.js} +1 -1
  170. package/dist/webcomponents/{p-1ff1dcc5.entry.js → p-a6b98663.entry.js} +1 -1
  171. package/dist/webcomponents/{p-30ec1cd6.entry.js → p-ad842c42.entry.js} +1 -1
  172. package/dist/webcomponents/{p-a8f1c9b3.entry.js → p-ae41697b.entry.js} +1 -1
  173. package/dist/webcomponents/{p-deff4422.entry.js → p-aea1e9e4.entry.js} +1 -1
  174. package/dist/webcomponents/{p-6bfdc443.entry.js → p-b54c0942.entry.js} +1 -1
  175. package/dist/webcomponents/{p-521c534c.entry.js → p-b699d24b.entry.js} +1 -1
  176. package/dist/webcomponents/{p-846ae5d5.entry.js → p-b76b8634.entry.js} +1 -1
  177. package/dist/webcomponents/{p-2272a65b.entry.js → p-bebd8879.entry.js} +1 -1
  178. package/dist/webcomponents/{p-f6efd9e0.entry.js → p-c96e25f9.entry.js} +1 -1
  179. package/dist/webcomponents/{p-dae31a59.entry.js → p-d0a40e88.entry.js} +1 -1
  180. package/dist/webcomponents/{p-fa0427d5.entry.js → p-d1361e3c.entry.js} +1 -1
  181. package/dist/webcomponents/{p-8c22ff9c.entry.js → p-d46ebc1c.entry.js} +1 -1
  182. package/dist/webcomponents/{p-956707a2.entry.js → p-dad1f6b9.entry.js} +1 -1
  183. package/dist/webcomponents/{p-91358854.entry.js → p-db854b84.entry.js} +1 -1
  184. package/dist/webcomponents/{p-28fb6b50.entry.js → p-dec8952b.entry.js} +1 -1
  185. package/dist/webcomponents/{p-4d85dd63.entry.js → p-e3914845.entry.js} +1 -1
  186. package/dist/webcomponents/p-e3f57bb1.entry.js +1 -0
  187. package/dist/webcomponents/{p-5e8f26ec.entry.js → p-e7c13d73.entry.js} +1 -1
  188. package/dist/webcomponents/p-ee605f62.entry.js +1 -0
  189. package/dist/webcomponents/{p-BG8NxEUn.js → p-rYB3onzC.js} +1 -1
  190. package/dist/webcomponents/webcomponents.esm.js +1 -1
  191. package/package.json +1 -1
  192. package/dist/cjs/styled-host-CW1WUnUq.js +0 -11
  193. package/dist/esm/styled-host-RvPhw8Gu.js +0 -9
  194. package/dist/webcomponents/p-05AWudQe.js +0 -1
  195. package/dist/webcomponents/p-12daf522.entry.js +0 -1
  196. package/dist/webcomponents/p-5babaaa9.entry.js +0 -1
  197. package/dist/webcomponents/p-9c1863d5.entry.js +0 -1
  198. package/dist/webcomponents/p-BKtKrQzN.js +0 -1
  199. package/dist/webcomponents/p-BQpbTebi.js +0 -1
  200. package/dist/webcomponents/p-BzESNgd8.js +0 -1
  201. package/dist/webcomponents/p-D42DvqTW.js +0 -1
  202. package/dist/webcomponents/p-DBudSN_h.js +0 -1
  203. package/dist/webcomponents/p-MLQyjvrV.js +0 -1
  204. package/dist/webcomponents/p-a095b86d.entry.js +0 -1
  205. package/dist/webcomponents/p-b665841f.entry.js +0 -1
  206. package/dist/webcomponents/p-bc3e46af.entry.js +0 -1
  207. package/dist/webcomponents/p-f23d7d13.entry.js +0 -1
  208. package/dist/webcomponents/p-f2c99647.entry.js +0 -1
  209. package/dist/webcomponents/p-f458928d.entry.js +0 -1
  210. package/dist/webcomponents/p-hdPjEOdB.js +0 -1
@@ -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-C8f7OSEu.js';
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-INJHjnya.js';
25
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
26
- import { P as PlaidService } from './plaid.service-Cg3E3Plo.js';
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-BQpbTebi.js';
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-C4r1WAzO.js';
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-BQpbTebi.js';
15
+ import './package-C04splpj.js';
16
16
  import './index-DEx8fQeW.js';
17
17
 
18
18
  const BankAccountFormSkeleton = () => {
@@ -71,8 +71,6 @@ const BankAccountForm = class {
71
71
  if (elements.length < this.expectedIframeCount) {
72
72
  return { isValid: false };
73
73
  }
74
- // Sequential on purpose: the parent correlates iframe replies by eventType
75
- // alone, with no request id, so concurrent validates would cross replies.
76
74
  const results = [];
77
75
  for (const element of elements) {
78
76
  results.push(await element.validate());
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-INJHjnya.js';
1
+ import { A as Api } from './Api-BSUerPjV.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-C4r1WAzO.js';
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-BQpbTebi.js';
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" })))));
@@ -44,8 +44,6 @@ const CardForm = class {
44
44
  (_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
45
45
  }
46
46
  async validate() {
47
- // Sequential on purpose: the parent correlates iframe replies by eventType
48
- // alone, with no request id, so concurrent validates would cross replies.
49
47
  const results = [];
50
48
  for (const element of this.iframeElements) {
51
49
  results.push(await element.validate());
@@ -111,10 +109,10 @@ const CardForm = class {
111
109
  return (h("div", null, h("form-alert", { text: ComponentErrorMessages.IFRAME_LOAD_ERROR, hideAlert: false }), h(Button, { variant: "link", clickHandler: this.reloadIframes, "aria-label": "Reload payment form", type: "button" }, "Try again")));
112
110
  }
113
111
  render() {
114
- return (h("div", { key: '6f1adaa489228ab15ee8803f5e8d94b4f38df172' }, this.iframeState === 'loading' && h(CardFormSkeleton, { key: '01f38bf843e382d8fb34e59011a603e3a0955847' }), this.iframeState === 'error' && this.renderIframeError(), h("hidden-input", { key: 'd4fe8201e7df2ffd00cf76314da60dfa375d0c92' }), h("div", { key: 'be021b08ea0cb9bbd4e4dbb9258fb1e4cf0715b7', class: "container-fluid p-0", style: {
112
+ return (h("div", { key: 'aa9433ca84a3c5d3d12970a0533247b10ef7a39c' }, this.iframeState === 'loading' && h(CardFormSkeleton, { key: 'af68a39d4d71d665699fd53efc436158eefeae60' }), this.iframeState === 'error' && this.renderIframeError(), h("hidden-input", { key: 'aee1ab56e4777181e1598a4047b4ac873da4416d' }), h("div", { key: '0f1603b84d701da90f05f10c8b7c2d7d26d706e8', class: "container-fluid p-0", style: {
115
113
  opacity: this.isReady ? '1' : '0',
116
114
  height: this.isReady ? 'auto' : '0',
117
- } }, h("div", { key: '5771c79e70cc49c15d170d0f3f820e4d04ab203a', class: "mb-3" }, h("iframe-input", { key: 'f24efbd4677be8bd07c9cf3cd0bf77df7b98993e', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", maskCardNumber: this.maskCardNumber, iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '1d5923d02dbd23551cab1f8bb5d4ef3b5534f152', class: "row" }, h("div", { key: '1db376daa12621f2f17113a96ab693bfaae2fc38', class: "col-4 align-content-end" }, h("iframe-input", { key: '5cb8c4796ea7f609fecd0919709f70c52ae9c55c', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '0cc0c04b35174c56097f687d2f843f874ed7fee0', class: "col-4 align-content-end" }, h("iframe-input", { key: '79cb809ad28c53c276903ddc5ece50b07fabfd56', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'e04d26f47245b1f4977e57e456b12f630b8c63cd', class: "col-4 align-content-end" }, h("iframe-input", { key: '6e5e2dabbf28725e7e2499455bff1b34f6aefcf9', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
115
+ } }, h("div", { key: '364249139cf19fa5567f9c694a2925e9ea26e4ae', class: "mb-3" }, h("iframe-input", { key: '46f1bf0510d8ca73c231f2e7cca44c14b7c8578a', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", maskCardNumber: this.maskCardNumber, iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '630569a17973f3aa17a07b0baccc85cae4c51bcc', class: "row" }, h("div", { key: '7d9b30a60da5a45ae1f635caad6293c867d4bc0f', class: "col-4 align-content-end" }, h("iframe-input", { key: 'a1b51799646a1d53d4f3ee4b5f8b057190a8de9b', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: '2fdc1625946783a048a9e2b2899987e8cdc449b8', class: "col-4 align-content-end" }, h("iframe-input", { key: '174b38998fe0a1fd278da55cb08a7ca1d0e8447f', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: '1238f5d1370f27ba0ac3841563e66b51a18eaaa0', class: "col-4 align-content-end" }, h("iframe-input", { key: '86d822f907b95ee86f1fcf6f2148da3449c41d48', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
118
116
  }
119
117
  };
120
118
 
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-INJHjnya.js';
1
+ import { A as Api } from './Api-BSUerPjV.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-BQpbTebi.js';
1
+ import { p as packageJson } from './package-C04splpj.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-S8CgMbPg.js';
10
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
11
- import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
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-INJHjnya.js';
13
+ import './Api-BSUerPjV.js';
14
14
  import './config-state-BKOsYBXZ.js';
15
15
  import './index-3wWWWrhn.js';
16
- import './package-BQpbTebi.js';
16
+ import './package-C04splpj.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-INJHjnya.js';
1
+ import { A as Api } from './Api-BSUerPjV.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-BQpbTebi.js';
6
+ import { p as packageJson } from './package-C04splpj.js';
7
7
 
8
8
  const FormAlert = class {
9
9
  constructor(hostRef) {
@@ -1653,7 +1653,12 @@ class FrameCommunicationService {
1653
1653
  postMessageWithResponseListener(eventType, payload) {
1654
1654
  return new Promise((resolve) => {
1655
1655
  const responseListener = (event) => {
1656
- if (event.data.eventType !== eventType)
1656
+ var _a;
1657
+ // Every hosted field replies to this same window. Without the sender
1658
+ // check, overlapping requests take a sibling field's reply.
1659
+ if (event.source !== this.iframe.contentWindow)
1660
+ return;
1661
+ if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.eventType) !== eventType)
1657
1662
  return;
1658
1663
  window.removeEventListener('message', responseListener);
1659
1664
  resolve(event.data.data);
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-INJHjnya.js';
1
+ import { A as Api } from './Api-BSUerPjV.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-INJHjnya.js';
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-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-DihSSvAP.js';
15
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
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-BYDkC7uy.js';
21
- import { P as PlaidService } from './plaid.service-Cg3E3Plo.js';
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-BQpbTebi.js';
24
+ import './package-C04splpj.js';
25
25
  import './index-3wWWWrhn.js';
26
26
  import './utils-DaPywmTI.js';
27
27
 
@@ -1123,11 +1123,11 @@ const JustifiModularCheckout = class {
1123
1123
  return;
1124
1124
  }
1125
1125
  },
1126
- onError: (error) => {
1126
+ onError: ({ error, code, severity }) => {
1127
1127
  this.errorEvent.emit({
1128
- message: error.message,
1129
- errorCode: error.code,
1130
- severity: error.severity,
1128
+ message: error,
1129
+ errorCode: code,
1130
+ severity,
1131
1131
  });
1132
1132
  },
1133
1133
  });
@@ -1276,8 +1276,14 @@ const JustifiModularCheckout = class {
1276
1276
  if (isNewCard || isNewBankAccount) {
1277
1277
  if (this.paymentMethodFormRef)
1278
1278
  promises.push(this.paymentMethodFormRef.validate());
1279
- if (this.billingFormRef)
1279
+ // queryFormRefs matches justifi-tokenize-payment-method with both
1280
+ // selectors, so a checkout that slots only that component gets the same
1281
+ // element in both refs -- and that component already validates its own
1282
+ // billing form. Validating it again doubles every hosted-field round
1283
+ // trip and runs the billing form twice.
1284
+ if (this.billingFormRef && this.billingFormRef !== this.paymentMethodFormRef) {
1280
1285
  promises.push(this.billingFormRef.validate());
1286
+ }
1281
1287
  }
1282
1288
  if (promises.length === 0)
1283
1289
  return true;
@@ -1452,10 +1458,10 @@ const JustifiModularCheckout = class {
1452
1458
  message: "Checkout completed successfully",
1453
1459
  });
1454
1460
  },
1455
- onError: (error) => {
1461
+ onError: ({ error }) => {
1456
1462
  checkoutStore.isSubmitting = false;
1457
1463
  this.errorEvent.emit({
1458
- message: error.message,
1464
+ message: error,
1459
1465
  errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
1460
1466
  severity: ComponentErrorSeverity.ERROR,
1461
1467
  });
@@ -1463,7 +1469,7 @@ const JustifiModularCheckout = class {
1463
1469
  });
1464
1470
  }
1465
1471
  render() {
1466
- return h(Host, { key: '5f914d13899fe8da6a780a29689db7e9d7f9ed3e' });
1472
+ return h(Host, { key: 'd1e1326e66bc9347de573bc8b3aa30e19178ade9' });
1467
1473
  }
1468
1474
  get hostEl() { return getElement(this); }
1469
1475
  static get watchers() { return {
@@ -1694,8 +1700,6 @@ const JustifiPaypal = class {
1694
1700
  }
1695
1701
  };
1696
1702
 
1697
- const plaidIconSvg = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=';
1698
-
1699
1703
  const JustifiPlaidPaymentMethod = class {
1700
1704
  constructor(hostRef) {
1701
1705
  registerInstance(this, hostRef);
@@ -2218,13 +2222,16 @@ const JustifiPlaidPaymentMethod = class {
2218
2222
  }
2219
2223
  return null;
2220
2224
  }
2221
- 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: {
2222
2229
  display: 'inline',
2223
2230
  width: '20px',
2224
2231
  height: '20px',
2225
2232
  marginLeft: '5px',
2226
2233
  marginTop: '-2px',
2227
- } }));
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" })));
2228
2235
  const renderErrorState = () => {
2229
2236
  if (!this.error)
2230
2237
  return null;
@@ -2233,23 +2240,24 @@ const JustifiPlaidPaymentMethod = class {
2233
2240
  : this.error.severity === ComponentErrorSeverity.WARNING
2234
2241
  ? 'text-warning'
2235
2242
  : 'text-info';
2236
- 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..."))))));
2237
2245
  };
2238
2246
  const renderStatusState = () => {
2239
2247
  if (this.error)
2240
2248
  return null;
2241
2249
  if (this.isAuthenticating) {
2242
- 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...")));
2243
2251
  }
2244
2252
  if (this.publicToken) {
2245
- 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")));
2246
2254
  }
2247
2255
  if (this.isSelected && !this.publicToken && !this.error && !this.isAuthenticating) {
2248
- 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")));
2249
2257
  }
2250
2258
  return null;
2251
2259
  };
2252
- 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())));
2253
2261
  }
2254
2262
  static get watchers() { return {
2255
2263
  "isSelected": ["onSelectionChange"]
@@ -2400,6 +2408,16 @@ const JustifiTokenizePaymentMethod = class {
2400
2408
  this.unsubscribeFromStore();
2401
2409
  }
2402
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
+ }
2403
2421
  componentWillLoad() {
2404
2422
  detectDuplicateVersion();
2405
2423
  this.analytics = new JustifiAnalytics(this);
@@ -2608,7 +2626,13 @@ const JustifiTokenizePaymentMethod = class {
2608
2626
  return this.disableCreditCard || this.disableBankAccount;
2609
2627
  }
2610
2628
  renderPaymentMethodOption(paymentMethodType) {
2611
- 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;
2612
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)));
2613
2637
  }
2614
2638
  renderSelectedPaymentMethodForm(paymentMethodType) {
@@ -2627,7 +2651,7 @@ const JustifiTokenizePaymentMethod = class {
2627
2651
  }, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
2628
2652
  }
2629
2653
  render() {
2630
- 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 })))))));
2631
2655
  }
2632
2656
  get host() { return getElement(this); }
2633
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-DihSSvAP.js';
3
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
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-RvPhw8Gu.js';
5
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BQpbTebi.js';
8
- import './Api-INJHjnya.js';
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-C4r1WAzO.js';
3
- import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
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-RvPhw8Gu.js';
5
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BQpbTebi.js';
8
- import './Api-INJHjnya.js';
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-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-C8f7OSEu.js';
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-DihSSvAP.js';
7
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
8
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
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-INJHjnya.js';
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-BQpbTebi.js';
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-DihSSvAP.js';
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-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-C4r1WAzO.js';
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-C8f7OSEu.js';
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-BQpbTebi.js';
26
- import './Api-INJHjnya.js';
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-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-DihSSvAP.js';
3
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
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-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-BQpbTebi.js';
9
- import './Api-INJHjnya.js';
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-DihSSvAP.js';
5
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
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-BQpbTebi.js';
9
- import './Api-INJHjnya.js';
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';
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
3
- import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
2
+ import { J as JustifiAnalytics } from './Analytics-C9VVBFjO.js';
3
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-Dtfd-S4Z.js';
4
4
  import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
5
5
  import { c as checkoutSummary } from './parts-Bu7gdOaV.js';
6
- import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
6
+ import { S as StyledHost } from './styled-host-CXEpP1m_.js';
7
7
  import './event-types-CZfYo5-1.js';
8
8
  import { P as PAYMENT_METHODS } from './index-DEx8fQeW.js';
9
- import './package-BQpbTebi.js';
10
- import './Api-INJHjnya.js';
9
+ import './package-C04splpj.js';
10
+ import './Api-BSUerPjV.js';
11
11
  import './config-state-BKOsYBXZ.js';
12
12
  import './index-3wWWWrhn.js';
13
13
  import './utils-D8J8OvxY.js';
@@ -33,6 +33,13 @@ const JustifiCheckout = class {
33
33
  this.hideCardBillingForm = false;
34
34
  /** Renders a "Confirm Account Number" field in the bank account form. */
35
35
  this.showAccountNumberConfirmation = false;
36
+ /**
37
+ * Mask the card number to its last four digits when the field loses focus,
38
+ * with an eye toggle to reveal it. Defaults to false.
39
+ *
40
+ * Anti-shoulder-surfing only, not a secrecy boundary.
41
+ */
42
+ this.maskCardNumber = false;
36
43
  }
37
44
  propChanged() {
38
45
  this.updateStore();
@@ -83,9 +90,9 @@ const JustifiCheckout = class {
83
90
  }
84
91
  render() {
85
92
  var _a, _b;
86
- return (h(StyledHost, { key: '17fb502cfbf3a09b1bd59ded0cf5900cb8f9d441' }, h("justifi-modular-checkout", { key: '726bfa331037983083c4246caaabf080e6d318a1', ref: (el) => {
93
+ return (h(StyledHost, { key: '0458037995870159b8fae4036d6b5a4d0d5acd03' }, h("justifi-modular-checkout", { key: '698f0f48e8bd6fd7bf2102ed13308419cab53390', ref: (el) => {
87
94
  this.modularCheckoutRef = el;
88
- }, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '791fcaec6a9dcae8b7388bdcd51d84acce4338d2', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '558b4603f48e7e60b51cfe01072c072020be3711', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '560f2b20143721b0de9e43369aa7b1c80cdf462e', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '6c32d796b8f9f5b3124454ffab7649decf40bf0a' }, h("justifi-checkout-summary", { key: 'ff259c5635a56d75f54489986533ff4bbc44f9e1' }))), h("div", { key: '8541d52ae153d6b10952f8b5f92fa23241989cba', class: "col-12 mt-4" }, h("slot", { key: '71d802a975a1c3cdd2fc5f4e2e97079533885d1e', name: "insurance" })), h("div", { key: 'bdc8639a188f5b141ed59df898731e3872d994a8', class: "col-12 mt-4" }, h("justifi-header", { key: '79f2374e4538c1478f0de462739d46c3d24dfc7f', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '2220521026073d7bb93b26abaf2c2b91dd5d0be6', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: '4e809c7ba032149e32c97ce262254307ccd5e372', class: "d-flex flex-column" }, h("section", { key: '2b25ebfb62a2e0293728987e4c362e799197f301' }, h("div", { key: '1094a63702a042682b5de049968687db34d56340' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: 'ac2b2083a082000f605a623a2b4e937dc67f773b', class: "mb-3" }, h("justifi-apple-pay", { key: 'e8d6dfcf70c3e645a6b8beefa107a904738c8013' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: 'e7551b4165ccacbab1f305e2ff2e592ec6cb13c7', class: "mb-3" }, h("justifi-google-pay", Object.assign({ key: '3905dd687cafbfd59a496492bddaea368584e7fa', ref: (el) => (this.googlePayRef = el) }, (this.googlePayEnv != null ? { environment: this.googlePayEnv } : {}))))), this.availablePaymentMethods.includes(PAYMENT_METHODS.PAYPAL) && (h("div", { key: 'f11d39c2c4b7120b3b0fd8427bfc0c033115c28f', class: "mb-3" }, h("justifi-paypal", { key: '3560bd46b2b4b2957936b8cfe67e70c2cc4d1798' }))), h("justifi-saved-payment-methods", { key: '83298cc717152c8917b63c71c763812f8646f73e' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'b5c94c614920fd238dd490f1aa957bc9dbe7ce3f', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: '53ce4f366dd81745c88987a5f88502c1d7cdc530', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '051f49f4c0ac5a2c27fab834658f5d0f51f51889', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId, showAccountNumberConfirmation: this.showAccountNumberConfirmation }))))), h("div", { key: '9d0653c43d59b2c671e4fb07dac828f822f4e8bd', class: "mt-4" }, h("justifi-button", { key: 'b4dcb91c821577fa98f0f2129eff849e70e541c7', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
95
+ }, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '71c1ff8052866846cd898e9068fe030bd938958a', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '9721762b2b13d5a06911c5bb43f6c5c987ad724d', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: 'bc9728f87907b00d2a80bdc0503547f08af135f4', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '210d0455eb21b1471ae5cea863a98804677b8de2' }, h("justifi-checkout-summary", { key: '9e620e15ebd88ccf028930498981d6cddd18143b' }))), h("div", { key: '0c0a66263e8da3f387fb0df78a35df6b79506f94', class: "col-12 mt-4" }, h("slot", { key: 'aaa920ceb1af4b1aba963dc2c050dcafc6b2ecc3', name: "insurance" })), h("div", { key: 'b1f39a2a4bdf421e8db41a9e47d6a02298a22566', class: "col-12 mt-4" }, h("justifi-header", { key: 'da5ef3e4baa203c17bd3549b796854cf5d70bcd3', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '37844f9005aca58bf4670b164f42b19ed1d057f0', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'bbbff8e463752aaed1c46feb71bc984c359558c6', class: "d-flex flex-column" }, h("section", { key: '6b4d3d5484a01d508abfc859c57c2407bc85e589' }, h("div", { key: '89a788a45217da8b919f1d8e6d1b091ab44557cb' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '7b80b067d959b52ed86474ece9fdfa589945c816', class: "mb-3" }, h("justifi-apple-pay", { key: 'a7ff1ca0f3e00e91811f833dfc1c9f39b961cc76' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: 'a17235c7cd09f07a6c3ff765cfd4d1cd54a7605d', class: "mb-3" }, h("justifi-google-pay", Object.assign({ key: '602884b27b43a7a6848d390162e85a5c1fce973e', ref: (el) => (this.googlePayRef = el) }, (this.googlePayEnv != null ? { environment: this.googlePayEnv } : {}))))), this.availablePaymentMethods.includes(PAYMENT_METHODS.PAYPAL) && (h("div", { key: '38d3a64129e042cf5ab96ed3dddcb12f23015c5a', class: "mb-3" }, h("justifi-paypal", { key: '68dd2d65a1a4fa293a4145ef032022cf57196df4' }))), h("justifi-saved-payment-methods", { key: '6a87a633c879e700a671cb71e948128338a4c543' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'ea96bafc139515bf352dfcef3e7aa25e9d7d1406', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: 'f872c215b1d45c8ca594756fbcd296dbcff923a0', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '61354ab52513d256ca2eb29bee7403383981f487', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId, showAccountNumberConfirmation: this.showAccountNumberConfirmation, maskCardNumber: this.maskCardNumber }))))), h("div", { key: '87d0deb5342edf49d830df949cae666450e45404', class: "mt-4" }, h("justifi-button", { key: '0f8fa093c3442139604943768e0692370dfb7aba', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
89
96
  }
90
97
  static get watchers() { return {
91
98
  "authToken": ["propChanged"],