@justifi/webcomponents 6.15.0-rc.2 → 6.16.0-rc.1

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 (501) hide show
  1. package/dist/cjs/{Analytics-COhunq0p.js → Analytics-jQsZxClw.js} +4 -4
  2. package/dist/cjs/{Api-Do6SaltY.js → Api-DqXlEWR1.js} +1 -1
  3. package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
  4. package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
  5. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +14 -14
  6. package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
  7. package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
  8. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +15 -9
  9. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
  10. package/dist/cjs/bank-account-form.cjs.entry.js +68 -14
  11. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-DuOIMFjG.js} +3 -3
  13. package/dist/cjs/{business.service-72YETCdB.js → business.service-Ca-olopC.js} +3 -3
  14. package/dist/cjs/card-form.cjs.entry.js +16 -12
  15. package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
  16. package/dist/cjs/{checkout.service-CPsXfx0Z.js → checkout.service-DBHPH2ji.js} +3 -3
  17. package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
  18. package/dist/cjs/{country-config-C1bWmF8P.js → country-config-CFC3KuVD.js} +25 -3
  19. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  20. package/dist/cjs/detect-duplicate-version-D8ZajVUT.js +29 -0
  21. package/dist/cjs/dispute-notification_2.cjs.entry.js +12 -12
  22. package/dist/cjs/{event-types-UHzCC7Ga.js → event-types-luy3xnYR.js} +3 -3
  23. package/dist/cjs/form-address-fields_3.cjs.entry.js +6 -6
  24. package/dist/cjs/form-alert_3.cjs.entry.js +116 -15
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +1 -1
  28. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  30. package/dist/cjs/form-control-number_2.cjs.entry.js +6 -6
  31. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +22 -6
  33. package/dist/cjs/{get-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
  34. package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
  35. package/dist/cjs/{get-subaccounts-Bp7DOmM_.js → get-subaccounts-D11aTYj1.js} +4 -4
  36. package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
  37. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +52 -30
  39. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +8 -8
  40. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +10 -9
  41. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  43. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
  44. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-card-form.cjs.entry.js +11 -8
  46. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +7 -7
  47. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -10
  48. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
  49. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  50. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +34 -21
  52. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  53. package/dist/cjs/justifi-payment-details.cjs.entry.js +18 -18
  54. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  55. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  56. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  59. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  60. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  61. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  62. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  65. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -9
  66. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  67. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  68. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  69. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  70. package/dist/cjs/loader.cjs.js +1 -1
  71. package/dist/cjs/{package-G3Vs7Jx5.js → package-B414Jbra.js} +1 -3
  72. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  73. package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
  74. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
  75. package/dist/cjs/{payment.service-CVwTrHEL.js → payment.service-CNTe8vrp.js} +3 -3
  76. package/dist/cjs/{payout.service-CL3VR0hN.js → payout.service-BmU3q9jO.js} +3 -3
  77. package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
  78. package/dist/cjs/{plaid.service-Cukg5wuY.js → plaid.service-d9LAwbnX.js} +3 -3
  79. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  80. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  81. package/dist/cjs/{schema-validations-DehT309E.js → schema-validations-BDFa_oIq.js} +12 -5
  82. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-C0KG7BqL.js → terminal.service-BkQWZv9b.js} +3 -3
  85. package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
  86. package/dist/cjs/utils-Ct_X5q0U.js +62 -0
  87. package/dist/cjs/webcomponents.cjs.js +1 -1
  88. package/dist/collection/api/Business.js +2 -0
  89. package/dist/collection/api/Checkout.js +1 -1
  90. package/dist/collection/collection-manifest.json +1 -1
  91. package/dist/collection/components/business-details/justifi-business-details.js +3 -3
  92. package/dist/collection/components/business-forms/business-form/justifi-business-form.js +2 -2
  93. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +3 -2
  94. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +2 -2
  95. package/dist/collection/components/business-forms/schemas/schema-helpers.js +2 -1
  96. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -1
  97. package/dist/collection/components/business-forms/utils/country-config.js +3 -2
  98. package/dist/collection/components/business-forms/utils/helpers.js +3 -1
  99. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +90 -12
  100. package/dist/collection/components/checkout/billing-form/billing-form-full.js +6 -2
  101. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +6 -2
  102. package/dist/collection/components/checkout/card-form/card-form.js +39 -11
  103. package/dist/collection/components/checkout/justifi-checkout.js +26 -4
  104. package/dist/collection/components/checkout/message-event-types.js +2 -0
  105. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  106. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  107. package/dist/collection/components/checkout-qr-code/justifi-checkout-qr-code.js +2 -2
  108. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -2
  109. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +5 -5
  110. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  111. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  112. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -3
  115. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  116. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  117. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  118. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  119. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  120. package/dist/collection/components/dispute-management/justifi-dispute-management.js +3 -3
  121. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  122. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +2 -2
  123. package/dist/collection/components/insurance/season-interruption/justifi-season-interruption-insurance.js +2 -2
  124. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +50 -12
  125. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +7 -1
  126. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +3 -3
  127. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +33 -6
  128. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  129. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  130. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +28 -3
  131. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  132. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  133. package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +1 -1
  134. package/dist/collection/components/order-terminals/justifi-order-terminals.js +3 -3
  135. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  136. package/dist/collection/components/payment-details/justifi-payment-details.js +10 -10
  137. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +3 -3
  138. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  139. package/dist/collection/components/payments-list/justifi-payments-list.js +3 -3
  140. package/dist/collection/components/payout-details/justifi-payout-details.js +5 -5
  141. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +3 -3
  142. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  143. package/dist/collection/components/payouts-list/justifi-payouts-list.js +3 -3
  144. package/dist/collection/components/qr-terminal/justifi-qr-terminal.js +2 -2
  145. package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
  146. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  147. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +4 -4
  148. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  149. package/dist/collection/components/terminals-list/justifi-terminals-list.js +3 -3
  150. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +45 -6
  151. package/dist/collection/store/checkout.store.js +1 -0
  152. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  154. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  155. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  156. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-text.js +37 -4
  163. package/dist/collection/ui-components/form/iframe-input.js +136 -14
  164. package/dist/collection/ui-components/form/utils.js +32 -0
  165. package/dist/collection/ui-components/internal-button.js +1 -1
  166. package/dist/collection/ui-components/radio-list-item.js +1 -1
  167. package/dist/collection/utils/detect-duplicate-version.js +24 -0
  168. package/dist/collection/utils/postal-code.js +19 -0
  169. package/dist/docs.json +287 -18
  170. package/dist/esm/{Analytics-3WmRTICF.js → Analytics-DihSSvAP.js} +4 -4
  171. package/dist/esm/{Api-83B3f28Q.js → Api-INJHjnya.js} +1 -1
  172. package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
  173. package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
  174. package/dist/esm/additional-questions-form-step_15.entry.js +14 -14
  175. package/dist/esm/additional-questions_4.entry.js +3 -3
  176. package/dist/esm/additional-statement_8.entry.js +8 -8
  177. package/dist/esm/bank-account-billing-form-simple_4.entry.js +15 -9
  178. package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
  179. package/dist/esm/bank-account-form.entry.js +68 -14
  180. package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
  181. package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BLKCH6xV.js} +3 -3
  182. package/dist/esm/{business.service-CTqiKKy5.js → business.service-C8f7OSEu.js} +3 -3
  183. package/dist/esm/card-form.entry.js +16 -12
  184. package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
  185. package/dist/esm/{checkout.service-wjFjBxIB.js → checkout.service-BYDkC7uy.js} +3 -3
  186. package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
  187. package/dist/esm/{country-config-CJwnhkdq.js → country-config-DJFj1v-Q.js} +24 -4
  188. package/dist/esm/custom-popper_2.entry.js +2 -2
  189. package/dist/esm/detect-duplicate-version-C4r1WAzO.js +27 -0
  190. package/dist/esm/dispute-notification_2.entry.js +12 -12
  191. package/dist/esm/{event-types-cqQHLwCy.js → event-types-S8CgMbPg.js} +3 -3
  192. package/dist/esm/form-address-fields_3.entry.js +6 -6
  193. package/dist/esm/form-alert_3.entry.js +116 -15
  194. package/dist/esm/form-control-checkbox.entry.js +2 -2
  195. package/dist/esm/form-control-date.entry.js +2 -2
  196. package/dist/esm/form-control-file-v2_2.entry.js +1 -1
  197. package/dist/esm/form-control-file.entry.js +2 -2
  198. package/dist/esm/form-control-monetary.entry.js +2 -2
  199. package/dist/esm/form-control-number_2.entry.js +6 -6
  200. package/dist/esm/form-control-radio.entry.js +2 -2
  201. package/dist/esm/form-control-select_2.entry.js +22 -6
  202. package/dist/esm/{get-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
  203. package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
  204. package/dist/esm/{get-subaccounts-ClGG-LRZ.js → get-subaccounts-BHWiH8q9.js} +4 -4
  205. package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
  206. package/dist/esm/internal-button.entry.js +1 -1
  207. package/dist/esm/justifi-apple-pay_12.entry.js +52 -30
  208. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
  209. package/dist/esm/justifi-bank-account-form.entry.js +10 -9
  210. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  211. package/dist/esm/justifi-business-details.entry.js +11 -11
  212. package/dist/esm/justifi-business-form.entry.js +14 -14
  213. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  214. package/dist/esm/justifi-card-form.entry.js +11 -8
  215. package/dist/esm/justifi-checkout-qr-code.entry.js +7 -7
  216. package/dist/esm/justifi-checkout.entry.js +12 -10
  217. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
  218. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  219. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  220. package/dist/esm/justifi-gross-payment-chart.entry.js +34 -21
  221. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  222. package/dist/esm/justifi-payment-details.entry.js +18 -18
  223. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  224. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
  225. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  226. package/dist/esm/justifi-payments-list.entry.js +10 -10
  227. package/dist/esm/justifi-payout-details.entry.js +13 -13
  228. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
  229. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  230. package/dist/esm/justifi-payouts-list.entry.js +12 -12
  231. package/dist/esm/justifi-qr-terminal.entry.js +10 -10
  232. package/dist/esm/justifi-refund-payment.entry.js +10 -10
  233. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  234. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
  235. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  236. package/dist/esm/justifi-terminal-orders-list.entry.js +10 -10
  237. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  238. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  239. package/dist/esm/loader.js +1 -1
  240. package/dist/esm/package-BQpbTebi.js +5 -0
  241. package/dist/esm/payment-method-option.entry.js +1 -1
  242. package/dist/esm/{payment-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
  243. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
  244. package/dist/esm/{payment.service-D7uv5vym.js → payment.service-CQXRsu6Y.js} +3 -3
  245. package/dist/esm/{payout.service-BoSyqft1.js → payout.service-RRyWfpEK.js} +3 -3
  246. package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
  247. package/dist/esm/{plaid.service-DufQkxDk.js → plaid.service-Cg3E3Plo.js} +3 -3
  248. package/dist/esm/radio-list-item.entry.js +1 -1
  249. package/dist/esm/save-new-payment-method.entry.js +2 -2
  250. package/dist/esm/{schema-validations-8dbMCACI.js → schema-validations-8GJ34Do1.js} +12 -5
  251. package/dist/esm/table-filters-menu.entry.js +1 -1
  252. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  253. package/dist/esm/{terminal.service-BM2aebB6.js → terminal.service-Dy6D8bnl.js} +3 -3
  254. package/dist/esm/utils-Cpck08K0.js +59 -0
  255. package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
  256. package/dist/esm/webcomponents.js +1 -1
  257. package/dist/module/Business.js +5 -1
  258. package/dist/module/Plaid.js +1 -1
  259. package/dist/module/additional-statement2.js +1 -1
  260. package/dist/module/bank-account-form2.js +65 -10
  261. package/dist/module/billing-form-full2.js +6 -2
  262. package/dist/module/cancellation-policy2.js +1 -1
  263. package/dist/module/card-billing-form-simple2.js +6 -2
  264. package/dist/module/card-form2.js +14 -9
  265. package/dist/module/checkout.store.js +1 -0
  266. package/dist/module/country-config.js +23 -3
  267. package/dist/module/custom-popper2.js +2 -2
  268. package/dist/module/customer-details2.js +1 -1
  269. package/dist/module/detect-duplicate-version.js +27 -0
  270. package/dist/module/dispute-notification2.js +2 -2
  271. package/dist/module/dispute-response2.js +3 -3
  272. package/dist/module/duplicate-charge2.js +1 -1
  273. package/dist/module/electronic-evidence2.js +1 -1
  274. package/dist/module/form-address-fields2.js +3 -3
  275. package/dist/module/form-control-checkbox2.js +2 -2
  276. package/dist/module/form-control-date2.js +2 -2
  277. package/dist/module/form-control-file-v22.js +1 -1
  278. package/dist/module/form-control-file2.js +2 -2
  279. package/dist/module/form-control-monetary2.js +2 -2
  280. package/dist/module/form-control-number-masked2.js +2 -2
  281. package/dist/module/form-control-number2.js +2 -2
  282. package/dist/module/form-control-radio2.js +2 -2
  283. package/dist/module/form-control-select2.js +2 -2
  284. package/dist/module/form-control-text2.js +21 -4
  285. package/dist/module/iframe-input2.js +119 -15
  286. package/dist/module/internal-button2.js +1 -1
  287. package/dist/module/justifi-apple-pay2.js +7 -1
  288. package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
  289. package/dist/module/justifi-bank-account-form.js +6 -4
  290. package/dist/module/justifi-billing-form-full.js +1 -1
  291. package/dist/module/justifi-business-details.js +3 -3
  292. package/dist/module/justifi-business-form.js +2 -2
  293. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  294. package/dist/module/justifi-card-form.js +6 -3
  295. package/dist/module/justifi-checkout-qr-code2.js +2 -2
  296. package/dist/module/justifi-checkout-summary2.js +1 -1
  297. package/dist/module/justifi-checkout.js +7 -4
  298. package/dist/module/justifi-checkouts-list-filters.js +4 -2
  299. package/dist/module/justifi-checkouts-list.js +4 -4
  300. package/dist/module/justifi-dispute-management.js +3 -3
  301. package/dist/module/justifi-gross-payment-chart.js +28 -15
  302. package/dist/module/justifi-modular-checkout2.js +30 -12
  303. package/dist/module/justifi-order-terminals.js +3 -3
  304. package/dist/module/justifi-payment-details.js +10 -10
  305. package/dist/module/justifi-payment-provisioning.js +2 -2
  306. package/dist/module/justifi-payment-transactions-list.js +3 -3
  307. package/dist/module/justifi-payments-list-filters.js +2 -2
  308. package/dist/module/justifi-payments-list.js +3 -3
  309. package/dist/module/justifi-payout-details.js +5 -5
  310. package/dist/module/justifi-payout-transactions-list.js +3 -3
  311. package/dist/module/justifi-payouts-list-filters.js +2 -2
  312. package/dist/module/justifi-payouts-list.js +3 -3
  313. package/dist/module/justifi-paypal2.js +1 -1
  314. package/dist/module/justifi-qr-terminal.js +2 -2
  315. package/dist/module/justifi-refund-payment.js +2 -2
  316. package/dist/module/justifi-save-new-payment-method.js +1 -1
  317. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  318. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  319. package/dist/module/justifi-terminal-orders-list.js +4 -4
  320. package/dist/module/justifi-terminals-list-filters.js +1 -1
  321. package/dist/module/justifi-terminals-list.js +3 -3
  322. package/dist/module/justifi-tokenize-payment-method2.js +9 -6
  323. package/dist/module/package.js +1 -3
  324. package/dist/module/payment-method-option.js +1 -1
  325. package/dist/module/product-or-service2.js +1 -1
  326. package/dist/module/radio-list-item2.js +1 -1
  327. package/dist/module/refund-policy2.js +1 -1
  328. package/dist/module/save-new-payment-method2.js +1 -1
  329. package/dist/module/schema-validations.js +10 -3
  330. package/dist/module/shipping-details2.js +1 -1
  331. package/dist/module/table-filters-menu2.js +1 -1
  332. package/dist/module/terminal-quantity-selector2.js +1 -1
  333. package/dist/module/utils4.js +33 -1
  334. package/dist/types/api/Business.d.ts +2 -0
  335. package/dist/types/api/Checkout.d.ts +7 -7
  336. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
  337. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  338. package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
  339. package/dist/types/components/checkout/message-event-types.d.ts +2 -0
  340. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +1 -1
  341. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
  342. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -0
  343. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
  344. package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
  345. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
  346. package/dist/types/components.d.ts +86 -4
  347. package/dist/types/store/checkout.store.d.ts +1 -0
  348. package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
  349. package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
  350. package/dist/types/ui-components/form/utils.d.ts +1 -0
  351. package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
  352. package/dist/types/utils/postal-code.d.ts +3 -0
  353. package/dist/webcomponents/p-12daf522.entry.js +1 -0
  354. package/dist/webcomponents/p-1a1aef42.entry.js +1 -0
  355. package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
  356. package/dist/webcomponents/p-1ff1dcc5.entry.js +20 -0
  357. package/dist/webcomponents/{p-777470cb.entry.js → p-2272a65b.entry.js} +1 -1
  358. package/dist/webcomponents/{p-c4889a06.entry.js → p-2d25f1d1.entry.js} +1 -1
  359. package/dist/webcomponents/{p-c5424fda.entry.js → p-30ec1cd6.entry.js} +1 -1
  360. package/dist/webcomponents/p-357d14ee.entry.js +1 -0
  361. package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
  362. package/dist/webcomponents/p-4c7e7880.entry.js +1 -0
  363. package/dist/webcomponents/p-4d85dd63.entry.js +1 -0
  364. package/dist/webcomponents/p-521c534c.entry.js +1 -0
  365. package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
  366. package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
  367. package/dist/webcomponents/{p-f5358a80.entry.js → p-5e8f26ec.entry.js} +1 -1
  368. package/dist/webcomponents/p-622c2af4.entry.js +1 -0
  369. package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
  370. package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
  371. package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
  372. package/dist/webcomponents/p-73af269e.entry.js +1 -0
  373. package/dist/webcomponents/{p-ced6f6f1.entry.js → p-7ff788f8.entry.js} +1 -1
  374. package/dist/webcomponents/{p-c3818a5a.entry.js → p-846ae5d5.entry.js} +1 -1
  375. package/dist/webcomponents/p-8758aec4.entry.js +1 -0
  376. package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
  377. package/dist/webcomponents/p-8c22ff9c.entry.js +1 -0
  378. package/dist/webcomponents/p-91358854.entry.js +1 -0
  379. package/dist/webcomponents/{p-f3682c72.entry.js → p-956707a2.entry.js} +1 -1
  380. package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
  381. package/dist/webcomponents/p-BDtSw_d-.js +1 -0
  382. package/dist/webcomponents/{p-CIpBEUtx.js → p-BG8NxEUn.js} +1 -1
  383. package/dist/webcomponents/p-BKtKrQzN.js +1 -0
  384. package/dist/webcomponents/p-BQpbTebi.js +1 -0
  385. package/dist/webcomponents/{p-nbKvRcwU.js → p-Bh5BNj74.js} +1 -1
  386. package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
  387. package/dist/webcomponents/{p-vIQBTQmc.js → p-BtiJJJwv.js} +1 -1
  388. package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
  389. package/dist/webcomponents/p-BzESNgd8.js +1 -0
  390. package/dist/webcomponents/p-C9p1gWAC.js +1 -0
  391. package/dist/webcomponents/p-CTtGaVYs.js +1 -0
  392. package/dist/webcomponents/p-CgOgijHy.js +1 -0
  393. package/dist/webcomponents/p-CkrzG0pB.js +1 -0
  394. package/dist/webcomponents/p-Cl6irPVE.js +1 -0
  395. package/dist/webcomponents/p-Cpck08K0.js +1 -0
  396. package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
  397. package/dist/webcomponents/p-Cy_sz0Tx.js +1 -0
  398. package/dist/webcomponents/p-D42DvqTW.js +1 -0
  399. package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
  400. package/dist/webcomponents/p-DBudSN_h.js +1 -0
  401. package/dist/webcomponents/p-DMzYgqml.js +1 -0
  402. package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
  403. package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
  404. package/dist/webcomponents/p-FsWkrvEF.js +1 -0
  405. package/dist/webcomponents/p-MLQyjvrV.js +1 -0
  406. package/dist/webcomponents/p-a095b86d.entry.js +1 -0
  407. package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
  408. package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
  409. package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
  410. package/dist/webcomponents/{p-5d7b3d71.entry.js → p-b665841f.entry.js} +1 -1
  411. package/dist/webcomponents/p-b925d666.entry.js +1 -0
  412. package/dist/webcomponents/p-bc3e46af.entry.js +1 -0
  413. package/dist/webcomponents/p-c172decb.entry.js +1 -0
  414. package/dist/webcomponents/p-c9871158.entry.js +1 -0
  415. package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
  416. package/dist/webcomponents/{p-6c94218c.entry.js → p-d35cde99.entry.js} +1 -1
  417. package/dist/webcomponents/{p-cb1cc88e.entry.js → p-d48f80d1.entry.js} +1 -1
  418. package/dist/webcomponents/{p-eb31024f.entry.js → p-dae31a59.entry.js} +1 -1
  419. package/dist/webcomponents/p-deff4422.entry.js +1 -0
  420. package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
  421. package/dist/webcomponents/{p-d98bc829.entry.js → p-e6d1e3e2.entry.js} +1 -1
  422. package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
  423. package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
  424. package/dist/webcomponents/{p-bf3866b3.entry.js → p-f0084d20.entry.js} +1 -1
  425. package/dist/webcomponents/p-f0da2ca5.entry.js +1 -0
  426. package/dist/webcomponents/p-f23d7d13.entry.js +1 -0
  427. package/dist/webcomponents/p-f2c99647.entry.js +1 -0
  428. package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
  429. package/dist/webcomponents/p-f458928d.entry.js +1 -0
  430. package/dist/webcomponents/{p-0aa96018.entry.js → p-f5686720.entry.js} +1 -1
  431. package/dist/webcomponents/p-f681f747.entry.js +1 -0
  432. package/dist/webcomponents/{p-6eb65d23.entry.js → p-f6efd9e0.entry.js} +1 -1
  433. package/dist/webcomponents/{p-7002286e.entry.js → p-fa0427d5.entry.js} +1 -1
  434. package/dist/webcomponents/p-fb1f2fe8.entry.js +1 -0
  435. package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
  436. package/dist/webcomponents/p-hdPjEOdB.js +1 -0
  437. package/dist/webcomponents/{p-CJEetAx7.js → p-l3JhjHLW.js} +1 -1
  438. package/dist/webcomponents/webcomponents.esm.js +1 -1
  439. package/package.json +2 -4
  440. package/dist/cjs/check-pkg-version-BxGoSXGD.js +0 -47
  441. package/dist/cjs/utils-DAyWinG2.js +0 -29
  442. package/dist/collection/utils/check-pkg-version.js +0 -42
  443. package/dist/esm/check-pkg-version-CmFl6VLH.js +0 -45
  444. package/dist/esm/package-CAVi_ne1.js +0 -7
  445. package/dist/esm/utils-BnjCmwMr.js +0 -27
  446. package/dist/module/check-pkg-version.js +0 -45
  447. package/dist/types/utils/check-pkg-version.d.ts +0 -1
  448. package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
  449. package/dist/webcomponents/p-10787684.entry.js +0 -1
  450. package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
  451. package/dist/webcomponents/p-25f70d5f.entry.js +0 -1
  452. package/dist/webcomponents/p-27igUlku.js +0 -1
  453. package/dist/webcomponents/p-36340e63.entry.js +0 -1
  454. package/dist/webcomponents/p-3642e189.entry.js +0 -1
  455. package/dist/webcomponents/p-388082cd.entry.js +0 -1
  456. package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
  457. package/dist/webcomponents/p-4cad48c1.entry.js +0 -1
  458. package/dist/webcomponents/p-50c2b8f0.entry.js +0 -1
  459. package/dist/webcomponents/p-5842d4e8.entry.js +0 -1
  460. package/dist/webcomponents/p-5c89dcdf.entry.js +0 -1
  461. package/dist/webcomponents/p-5dcb1713.entry.js +0 -1
  462. package/dist/webcomponents/p-5f8c30b6.entry.js +0 -1
  463. package/dist/webcomponents/p-68e88747.entry.js +0 -1
  464. package/dist/webcomponents/p-6931a1f2.entry.js +0 -1
  465. package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
  466. package/dist/webcomponents/p-74575a99.entry.js +0 -1
  467. package/dist/webcomponents/p-7c405573.entry.js +0 -1
  468. package/dist/webcomponents/p-825a7ee6.entry.js +0 -1
  469. package/dist/webcomponents/p-909a9828.entry.js +0 -20
  470. package/dist/webcomponents/p-955c06d3.entry.js +0 -1
  471. package/dist/webcomponents/p-9e9a2546.entry.js +0 -1
  472. package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
  473. package/dist/webcomponents/p-BAKuMxC9.js +0 -1
  474. package/dist/webcomponents/p-BEL8sLz6.js +0 -1
  475. package/dist/webcomponents/p-BSxXlu9H.js +0 -1
  476. package/dist/webcomponents/p-BnjCmwMr.js +0 -1
  477. package/dist/webcomponents/p-CAVi_ne1.js +0 -1
  478. package/dist/webcomponents/p-CXsRwohv.js +0 -1
  479. package/dist/webcomponents/p-CawcnSoV.js +0 -1
  480. package/dist/webcomponents/p-CbyGKcz_.js +0 -1
  481. package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
  482. package/dist/webcomponents/p-CyOXIqHo.js +0 -1
  483. package/dist/webcomponents/p-D6uhYbLo.js +0 -1
  484. package/dist/webcomponents/p-DN7VhlTn.js +0 -1
  485. package/dist/webcomponents/p-DNuxxP2B.js +0 -1
  486. package/dist/webcomponents/p-D_84NsmN.js +0 -1
  487. package/dist/webcomponents/p-DaDqgDrb.js +0 -1
  488. package/dist/webcomponents/p-Do9dxNjh.js +0 -1
  489. package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
  490. package/dist/webcomponents/p-PdwJswAy.js +0 -1
  491. package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
  492. package/dist/webcomponents/p-b23dfa13.entry.js +0 -1
  493. package/dist/webcomponents/p-b98ea26a.entry.js +0 -1
  494. package/dist/webcomponents/p-ca13117d.entry.js +0 -1
  495. package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
  496. package/dist/webcomponents/p-d59676ea.entry.js +0 -1
  497. package/dist/webcomponents/p-ee7fe3a8.entry.js +0 -1
  498. package/dist/webcomponents/p-f0434a13.entry.js +0 -1
  499. package/dist/webcomponents/p-f9f0cb1f.entry.js +0 -1
  500. package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
  501. package/dist/webcomponents/p-fdd087d4.entry.js +0 -1
@@ -1,10 +1,13 @@
1
1
  import JustifiAnalytics from "../../../api/Analytics";
2
2
  export declare class JustifiBankAccountForm {
3
+ showAccountNumberConfirmation?: boolean;
3
4
  private bankAccountFormElement?;
4
5
  analytics: JustifiAnalytics;
5
6
  componentWillLoad(): Promise<void>;
6
7
  disconnectedCallback(): void;
7
- validate(): Promise<any>;
8
+ validate(): Promise<{
9
+ isValid: boolean;
10
+ }>;
8
11
  tokenize({ clientId, paymentMethodMetadata, account }: {
9
12
  clientId: string;
10
13
  paymentMethodMetadata: any;
@@ -2,6 +2,15 @@ import JustifiAnalytics from "../../../api/Analytics";
2
2
  export declare class JustifiCardForm {
3
3
  private cardFormElement;
4
4
  analytics: JustifiAnalytics;
5
+ /**
6
+ * Mask the card number to its last four digits when the field loses focus,
7
+ * with an eye toggle to reveal it. Defaults to false. Inside
8
+ * `justifi-modular-checkout` the wrapper's `mask-card-number` sets this;
9
+ * an explicit value here wins.
10
+ *
11
+ * Anti-shoulder-surfing only, not a secrecy boundary.
12
+ */
13
+ maskCardNumber?: boolean;
5
14
  componentWillLoad(): Promise<void>;
6
15
  disconnectedCallback(): void;
7
16
  validate(): Promise<any>;
@@ -25,8 +25,17 @@ export declare class JustifiTokenizePaymentMethod {
25
25
  hideCardBillingForm?: boolean;
26
26
  hideSubmitButton?: boolean;
27
27
  paymentMethodGroupId?: string;
28
+ /** Renders a "Confirm Account Number" field in the bank account form. */
29
+ showAccountNumberConfirmation?: boolean;
28
30
  submitButtonText?: string;
29
31
  savePaymentMethodLabel?: string;
32
+ /**
33
+ * Mask the card number to its last four digits when the field loses focus,
34
+ * with an eye toggle to reveal it. Defaults to false.
35
+ *
36
+ * Anti-shoulder-surfing only, not a secrecy boundary.
37
+ */
38
+ maskCardNumber?: boolean;
30
39
  paymentMethodsChanged(): void;
31
40
  errorEvent: EventEmitter<ComponentErrorEvent>;
32
41
  submitEvent: EventEmitter<ComponentSubmitEvent>;
@@ -83,8 +83,12 @@ export namespace Components {
83
83
  "storeFiles": (e: CustomEvent<FileSelectEvent>) => void;
84
84
  }
85
85
  interface BankAccountForm {
86
+ /**
87
+ * @default false
88
+ */
89
+ "showAccountNumberConfirmation"?: boolean;
86
90
  "tokenize": ({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
87
- "validate": () => Promise<any>;
91
+ "validate": () => Promise<{ isValid: boolean; }>;
88
92
  }
89
93
  interface BankAccountFormInputs {
90
94
  "defaultValue": any;
@@ -192,8 +196,13 @@ export namespace Components {
192
196
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
193
197
  }
194
198
  interface CardForm {
199
+ /**
200
+ * Mask the card number to its last four digits when the field blurs.
201
+ * @default false
202
+ */
203
+ "maskCardNumber"?: boolean;
195
204
  "tokenize": ({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
196
- "validate": () => Promise<any>;
205
+ "validate": () => Promise<{ isValid: boolean; }>;
197
206
  }
198
207
  interface CoreInfoDetails {
199
208
  "business": Business;
@@ -463,6 +472,7 @@ export namespace Components {
463
472
  "label": string;
464
473
  "maxLength"?: number;
465
474
  "name": any;
475
+ "transformValue"?: (value: string) => string;
466
476
  }
467
477
  interface FormControlTextarea {
468
478
  "defaultValue": string;
@@ -502,6 +512,11 @@ export namespace Components {
502
512
  "iframeOrigin": string;
503
513
  "inputId": string;
504
514
  "label": string;
515
+ /**
516
+ * Opt this field into masking its value to the last four characters when it loses focus. Forwarded to the hosted field, which owns the behavior.
517
+ * @default false
518
+ */
519
+ "maskCardNumber"?: boolean;
505
520
  "reload": () => Promise<void>;
506
521
  "tokenize": (clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string) => Promise<any>;
507
522
  "validate": () => Promise<any>;
@@ -570,8 +585,12 @@ export namespace Components {
570
585
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
571
586
  }
572
587
  interface JustifiBankAccountForm {
588
+ /**
589
+ * @default false
590
+ */
591
+ "showAccountNumberConfirmation"?: boolean;
573
592
  "tokenize": ({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
574
- "validate": () => Promise<any>;
593
+ "validate": () => Promise<{ isValid: boolean; }>;
575
594
  }
576
595
  interface JustifiBillingForm {
577
596
  "getValues": () => Promise<BillingFormFields>;
@@ -629,6 +648,10 @@ export namespace Components {
629
648
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
630
649
  }
631
650
  interface JustifiCardForm {
651
+ /**
652
+ * Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Inside `justifi-modular-checkout` the wrapper's `mask-card-number` sets this; an explicit value here wins. Anti-shoulder-surfing only, not a secrecy boundary.
653
+ */
654
+ "maskCardNumber"?: boolean;
632
655
  "tokenize": ({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
633
656
  "validate": () => Promise<any>;
634
657
  }
@@ -665,6 +688,11 @@ export namespace Components {
665
688
  */
666
689
  "hideCardBillingForm"?: boolean;
667
690
  "preCompleteHook"?: Hook<CheckoutState>;
691
+ /**
692
+ * Renders a "Confirm Account Number" field in the bank account form.
693
+ * @default false
694
+ */
695
+ "showAccountNumberConfirmation"?: boolean;
668
696
  "validate": () => Promise<{ isValid: boolean; }>;
669
697
  }
670
698
  interface JustifiCheckoutQrCode {
@@ -682,7 +710,7 @@ export namespace Components {
682
710
  /**
683
711
  * @default defaultColumnsKeys
684
712
  */
685
- "columns"?: string;
713
+ "columns": string;
686
714
  "subAccountId"?: string;
687
715
  }
688
716
  interface JustifiCheckoutsListFilters {
@@ -745,6 +773,11 @@ export namespace Components {
745
773
  "authToken": string;
746
774
  "checkoutId": string;
747
775
  "fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
776
+ /**
777
+ * Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Applies to the `justifi-card-form` rendered inside this checkout. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
778
+ * @default false
779
+ */
780
+ "maskCardNumber"?: boolean;
748
781
  "preCompleteHook"?: Hook<CheckoutState>;
749
782
  "setSelectedPaymentMethod": (paymentMethod: SelectedPaymentMethod) => Promise<void>;
750
783
  "submitCheckout": (submitCheckoutArgs?: BillingFormFields1) => Promise<void>;
@@ -967,8 +1000,16 @@ export namespace Components {
967
1000
  "hideBankAccountBillingForm"?: boolean;
968
1001
  "hideCardBillingForm"?: boolean;
969
1002
  "hideSubmitButton"?: boolean;
1003
+ /**
1004
+ * Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
1005
+ */
1006
+ "maskCardNumber"?: boolean;
970
1007
  "paymentMethodGroupId"?: string;
971
1008
  "savePaymentMethodLabel"?: string;
1009
+ /**
1010
+ * Renders a "Confirm Account Number" field in the bank account form.
1011
+ */
1012
+ "showAccountNumberConfirmation"?: boolean;
972
1013
  /**
973
1014
  * @default 'Submit'
974
1015
  */
@@ -3015,6 +3056,10 @@ declare namespace LocalJSX {
3015
3056
  }
3016
3057
  interface BankAccountForm {
3017
3058
  "onError-event"?: (event: BankAccountFormCustomEvent<ComponentErrorEvent1>) => void;
3059
+ /**
3060
+ * @default false
3061
+ */
3062
+ "showAccountNumberConfirmation"?: boolean;
3018
3063
  }
3019
3064
  interface BankAccountFormInputs {
3020
3065
  "defaultValue": any;
@@ -3127,6 +3172,11 @@ declare namespace LocalJSX {
3127
3172
  "legend"?: string;
3128
3173
  }
3129
3174
  interface CardForm {
3175
+ /**
3176
+ * Mask the card number to its last four digits when the field blurs.
3177
+ * @default false
3178
+ */
3179
+ "maskCardNumber"?: boolean;
3130
3180
  "onError-event"?: (event: CardFormCustomEvent<ComponentErrorEvent1>) => void;
3131
3181
  }
3132
3182
  interface CoreInfoDetails {
@@ -3428,6 +3478,7 @@ declare namespace LocalJSX {
3428
3478
  "name": any;
3429
3479
  "onFormControlBlur"?: (event: FormControlTextCustomEvent<any>) => void;
3430
3480
  "onFormControlInput"?: (event: FormControlTextCustomEvent<any>) => void;
3481
+ "transformValue"?: (value: string) => string;
3431
3482
  }
3432
3483
  interface FormControlTextarea {
3433
3484
  "defaultValue": string;
@@ -3469,6 +3520,11 @@ declare namespace LocalJSX {
3469
3520
  "iframeOrigin": string;
3470
3521
  "inputId": string;
3471
3522
  "label": string;
3523
+ /**
3524
+ * Opt this field into masking its value to the last four characters when it loses focus. Forwarded to the hosted field, which owns the behavior.
3525
+ * @default false
3526
+ */
3527
+ "maskCardNumber"?: boolean;
3472
3528
  "onIframeLoaded"?: (event: IframeInputCustomEvent<void>) => void;
3473
3529
  }
3474
3530
  interface InternalButton {
@@ -3539,6 +3595,10 @@ declare namespace LocalJSX {
3539
3595
  "legend"?: string;
3540
3596
  }
3541
3597
  interface JustifiBankAccountForm {
3598
+ /**
3599
+ * @default false
3600
+ */
3601
+ "showAccountNumberConfirmation"?: boolean;
3542
3602
  }
3543
3603
  interface JustifiBillingForm {
3544
3604
  "hideBankAccountBillingForm"?: boolean;
@@ -3594,6 +3654,10 @@ declare namespace LocalJSX {
3594
3654
  "legend"?: string;
3595
3655
  }
3596
3656
  interface JustifiCardForm {
3657
+ /**
3658
+ * Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Inside `justifi-modular-checkout` the wrapper's `mask-card-number` sets this; an explicit value here wins. Anti-shoulder-surfing only, not a secrecy boundary.
3659
+ */
3660
+ "maskCardNumber"?: boolean;
3597
3661
  }
3598
3662
  interface JustifiCheckout {
3599
3663
  "authToken": string;
@@ -3630,6 +3694,11 @@ declare namespace LocalJSX {
3630
3694
  "onLoaded"?: (event: JustifiCheckoutCustomEvent<ILoadedEventResponse>) => void;
3631
3695
  "onSubmit-event"?: (event: JustifiCheckoutCustomEvent<ComponentSubmitEvent>) => void;
3632
3696
  "preCompleteHook"?: Hook<CheckoutState>;
3697
+ /**
3698
+ * Renders a "Confirm Account Number" field in the bank account form.
3699
+ * @default false
3700
+ */
3701
+ "showAccountNumberConfirmation"?: boolean;
3633
3702
  }
3634
3703
  interface JustifiCheckoutQrCode {
3635
3704
  "checkoutId": string;
@@ -3722,6 +3791,11 @@ declare namespace LocalJSX {
3722
3791
  interface JustifiModularCheckout {
3723
3792
  "authToken": string;
3724
3793
  "checkoutId": string;
3794
+ /**
3795
+ * Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Applies to the `justifi-card-form` rendered inside this checkout. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
3796
+ * @default false
3797
+ */
3798
+ "maskCardNumber"?: boolean;
3725
3799
  "onCheckout-changed"?: (event: JustifiModularCheckoutCustomEvent<CheckoutChangedEventDetail>) => void;
3726
3800
  "onError-event"?: (event: JustifiModularCheckoutCustomEvent<any>) => void;
3727
3801
  "onSubmit-event"?: (event: JustifiModularCheckoutCustomEvent<any>) => void;
@@ -3974,10 +4048,18 @@ declare namespace LocalJSX {
3974
4048
  "hideBankAccountBillingForm"?: boolean;
3975
4049
  "hideCardBillingForm"?: boolean;
3976
4050
  "hideSubmitButton"?: boolean;
4051
+ /**
4052
+ * Mask the card number to its last four digits when the field loses focus, with an eye toggle to reveal it. Defaults to false. Anti-shoulder-surfing only, not a secrecy boundary.
4053
+ */
4054
+ "maskCardNumber"?: boolean;
3977
4055
  "onError-event"?: (event: JustifiTokenizePaymentMethodCustomEvent<ComponentErrorEvent1>) => void;
3978
4056
  "onSubmit-event"?: (event: JustifiTokenizePaymentMethodCustomEvent<ComponentSubmitEvent1>) => void;
3979
4057
  "paymentMethodGroupId"?: string;
3980
4058
  "savePaymentMethodLabel"?: string;
4059
+ /**
4060
+ * Renders a "Confirm Account Number" field in the bank account form.
4061
+ */
4062
+ "showAccountNumberConfirmation"?: boolean;
3981
4063
  /**
3982
4064
  * @default 'Submit'
3983
4065
  */
@@ -24,6 +24,7 @@ interface IInitialState {
24
24
  disableBankAccount: boolean;
25
25
  disableCreditCard: boolean;
26
26
  disablePaymentMethodGroup: boolean;
27
+ maskCardNumber: boolean;
27
28
  paymentAmount: number;
28
29
  paymentCurrency: string;
29
30
  paymentDescription: string;
@@ -10,6 +10,7 @@ export declare class FormControlText {
10
10
  errorText?: string;
11
11
  maxLength?: number;
12
12
  keyDownHandler?: (event: any) => void;
13
+ transformValue?: (value: string) => string;
13
14
  disabled?: boolean;
14
15
  handleDefaultValueChange(newValue: string): void;
15
16
  formControlInput: EventEmitter<any>;
@@ -11,15 +11,39 @@ export declare class IframeInput {
11
11
  inputId: string;
12
12
  label: string;
13
13
  iframeOrigin: string;
14
+ /**
15
+ * Opt this field into masking its value to the last four characters when it
16
+ * loses focus. Forwarded to the hosted field, which owns the behavior.
17
+ */
18
+ maskCardNumber?: boolean;
19
+ maskCardNumberChanged(): void;
20
+ private hasLoaded;
21
+ private wrapperElement;
22
+ /**
23
+ * The <iframe> is created in the LIGHT DOM and slotted in: an iframe inside a
24
+ * shadow tree is invisible to `window.frames` (spec), so siblings could not
25
+ * resolve it. The ::part wrappers stay in the shadow tree — theming untouched.
26
+ */
27
+ componentDidLoad(): void;
28
+ /**
29
+ * Stencil runs componentDidLoad once per instance; a DOM move (framework
30
+ * reparenting, list reorder) fires disconnected → connected on the same
31
+ * instance, so the iframe has to be put back by hand.
32
+ */
33
+ connectedCallback(): void;
34
+ private mountIframe;
35
+ componentDidRender(): void;
14
36
  disconnectedCallback(): void;
15
37
  validate(): Promise<any>;
16
38
  tokenize(clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string): Promise<any>;
17
39
  reload(): Promise<void>;
18
40
  private initializeFrameCommunicationService;
19
41
  private dispatchMessageEvent;
42
+ private sendMaskCardNumber;
20
43
  private get part();
21
44
  private get style();
22
45
  private get urlParams();
23
46
  private get iframeSrc();
47
+ private renderedSrc;
24
48
  render(): any;
25
49
  }
@@ -1 +1,2 @@
1
1
  export declare const numberOnlyHandler: (e: KeyboardEvent | ClipboardEvent) => void;
2
+ export declare const zipCodeOnlyHandler: (e: KeyboardEvent | ClipboardEvent) => void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Records this bundle's version on globalThis and logs an error when a second,
3
+ * different version of @justifi/webcomponents is already on the page. The first
4
+ * version loaded wins — it has registered the custom elements, so any later
5
+ * bundle is inert.
6
+ */
7
+ export declare const detectDuplicateVersion: () => void;
@@ -0,0 +1,3 @@
1
+ export declare const US_ZIP_REGEX: RegExp;
2
+ export declare const CA_OR_US_POSTAL_REGEX: RegExp;
3
+ export declare const normalizePostalCode: (value: string) => string;
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-CV0Pyo1O.js";import{J as s}from"./p-Bh5BNj74.js";import{d as a}from"./p-BzESNgd8.js";import{c}from"./p-FsWkrvEF.js";import{c as d}from"./p-Bu7gdOaV.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{P as f}from"./p-DEx8fQeW.js";import"./p-BQpbTebi.js";import"./p-BtiJJJwv.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";const h=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.submitEvent=t(this,"submit-event",7),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1,this.showAccountNumberConfirmation=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){c.isSubmitting=!1}checkoutError(e){c.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=e.detail.availablePaymentMethodTypes}async fillBillingForm(e){c.billingFormFields=e}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){c.checkoutId=this.checkoutId,c.authToken=this.authToken,c.disableCreditCard=this.disableCreditCard,c.disableBankAccount=this.disableBankAccount,c.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(c.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"17fb502cfbf3a09b1bd59ded0cf5900cb8f9d441"},i("justifi-modular-checkout",{key:"726bfa331037983083c4246caaabf080e6d318a1",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"791fcaec6a9dcae8b7388bdcd51d84acce4338d2",class:"row gy-3 jfi-checkout-core"},i("div",{key:"558b4603f48e7e60b51cfe01072c072020be3711",class:"col-12",part:d},i("justifi-header",{key:"560f2b20143721b0de9e43369aa7b1c80cdf462e",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"6c32d796b8f9f5b3124454ffab7649decf40bf0a"},i("justifi-checkout-summary",{key:"ff259c5635a56d75f54489986533ff4bbc44f9e1"}))),i("div",{key:"8541d52ae153d6b10952f8b5f92fa23241989cba",class:"col-12 mt-4"},i("slot",{key:"71d802a975a1c3cdd2fc5f4e2e97079533885d1e",name:"insurance"})),i("div",{key:"bdc8639a188f5b141ed59df898731e3872d994a8",class:"col-12 mt-4"},i("justifi-header",{key:"79f2374e4538c1478f0de462739d46c3d24dfc7f",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"2220521026073d7bb93b26abaf2c2b91dd5d0be6",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"4e809c7ba032149e32c97ce262254307ccd5e372",class:"d-flex flex-column"},i("section",{key:"2b25ebfb62a2e0293728987e4c362e799197f301"},i("div",{key:"1094a63702a042682b5de049968687db34d56340"},this.availablePaymentMethods.includes(f.APPLE_PAY)&&i("div",{key:"ac2b2083a082000f605a623a2b4e937dc67f773b",class:"mb-3"},i("justifi-apple-pay",{key:"e8d6dfcf70c3e645a6b8beefa107a904738c8013"})),this.availablePaymentMethods.includes(f.GOOGLE_PAY)&&i("div",{key:"e7551b4165ccacbab1f305e2ff2e592ec6cb13c7",class:"mb-3"},i("justifi-google-pay",Object.assign({key:"3905dd687cafbfd59a496492bddaea368584e7fa",ref:e=>this.googlePayRef=e},null!=this.googlePayEnv?{environment:this.googlePayEnv}:{}))),this.availablePaymentMethods.includes(f.PAYPAL)&&i("div",{key:"f11d39c2c4b7120b3b0fd8427bfc0c033115c28f",class:"mb-3"},i("justifi-paypal",{key:"3560bd46b2b4b2957936b8cfe67e70c2cc4d1798"})),i("justifi-saved-payment-methods",{key:"83298cc717152c8917b63c71c763812f8646f73e"}),this.availablePaymentMethods.includes(f.SEZZLE)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"b5c94c614920fd238dd490f1aa957bc9dbe7ce3f",name:"paymentMethodType",value:f.SEZZLE,checked:(null===(e=null==c?void 0:c.selectedPaymentMethod)||void 0===e?void 0:e.type)===f.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(f.PLAID)&&i("justifi-radio-list-item",{key:"53ce4f366dd81745c88987a5f88502c1d7cdc530",name:"paymentMethodType",value:f.PLAID,checked:(null===(t=null==c?void 0:c.selectedPaymentMethod)||void 0===t?void 0:t.type)===f.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"051f49f4c0ac5a2c27fab834658f5d0f51f51889",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:c.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:c.paymentMethodGroupId,showAccountNumberConfirmation:this.showAccountNumberConfirmation}))))),i("div",{key:"9d0653c43d59b2c671e4fb07dac828f822f4e8bd",class:"mt-4"},i("justifi-button",{key:"b4dcb91c821577fa98f0f2129eff849e70e541c7",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:c.isSubmitting||c.isWalletProcessing,isLoading:c.isSubmitting||c.isWalletProcessing,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
@@ -0,0 +1 @@
1
+ import{h as t,r as i,c as r}from"./p-CV0Pyo1O.js";import{S as s}from"./p-eBK-iWrz.js";import{w as e,c as o}from"./p-B4vLfYnZ.js";import{e as a}from"./p-Ds_P-dB8.js";import{d as n}from"./p-BzESNgd8.js";import{c as h}from"./p-FsWkrvEF.js";import{C as l,c,b as d}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{B as m}from"./p-CU2Dwa94.js";import"./p-CZfYo5-1.js";import"./p-Bu7gdOaV.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";import"./p-BQpbTebi.js";import"./p-DEx8fQeW.js";const u=()=>t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-end"},t(s,{height:"18px",width:"120px"}),t(s,{height:"36px"}))),t("div",{class:"row"},t("div",{class:"col-12 align-content-end"},t(s,{height:"18px",width:"110px"}),t(s,{height:"36px"})))),p=class{constructor(t){i(this,t),this.errorEvent=r(this,"error-event",7),this.iframeState="loading",this.showAccountNumberConfirmation=!1,this.hasLoggedAchDisabledWarning=!1,this.loadedInputIds=new Set,this.watchedInputIds="",this.reloadIframes=()=>{this.iframeState="loading",this.loadedInputIds.clear(),this.iframeElements.forEach((t=>t.reload())),this.watchIframesLoad()}}async componentWillLoad(){await e(),this.iframeOrigin=o.iframeOrigin,this.tabId=a(),n()}componentDidRender(){if(this.iframeElements.length<this.expectedIframeCount)return;const t=this.iframeElements.map((t=>t.inputId)).join(",");t!==this.watchedInputIds&&(this.watchedInputIds=t,this.watchIframesLoad())}disconnectedCallback(){var t;null===(t=this.loadAbortController)||void 0===t||t.abort()}isAchDisabledForCheckout(){return h.checkoutLoaded&&!h.achPaymentsEnabled}async validate(){if(this.isAchDisabledForCheckout())return{isValid:!1};const t=this.iframeElements;if(t.length<this.expectedIframeCount)return{isValid:!1};const i=[];for(const r of t)i.push(await r.validate());return{isValid:i.every((t=>!0===(null==t?void 0:t.isValid)))}}async tokenize({clientId:t,paymentMethodMetadata:i,account:r}){var s,e;if(this.isAchDisabledForCheckout())return{error:{message:"ACH payments are disabled for this checkout (payment_settings.ach_payments=false)."}};if(this.showAccountNumberConfirmation){const t=await(null===(s=this.accountNumberConfirmationIframeElement)||void 0===s?void 0:s.validate());if(!0!==(null==t?void 0:t.isValid))return{error:{code:"validation_error",message:(null===(e=null==t?void 0:t.error)||void 0===e?void 0:e.message)||"The entered value does not match the account number"}}}return await this.accountNumberIframeElement.tokenize(t,i,r)}get isReady(){return"ready"===this.iframeState}get expectedIframeCount(){return this.showAccountNumberConfirmation?3:2}get iframeElements(){return[this.accountNumberIframeElement,...this.showAccountNumberConfirmation?[this.accountNumberConfirmationIframeElement]:[],this.routingNumberIframeElement].filter(Boolean)}watchIframesLoad(){var t;null===(t=this.loadAbortController)||void 0===t||t.abort();const{signal:i}=this.loadAbortController=new AbortController,r=new Set(this.iframeElements.filter((t=>!this.loadedInputIds.has(t.inputId))).map((t=>t.inputId))),s=Promise.all(this.iframeElements.map((t=>new Promise((s=>{this.loadedInputIds.has(t.inputId)?s():t.addEventListener("iframeLoaded",(()=>{this.loadedInputIds.add(t.inputId),r.delete(t.inputId),s()}),{once:!0,signal:i})}))))),e=new Promise(((t,s)=>{const e=window.setTimeout((()=>s(new Error(`Iframes failed to load: ${Array.from(r).join(", ")}`))),1e4);i.addEventListener("abort",(()=>{window.clearTimeout(e),s(new Error("iframe load watch aborted"))}),{once:!0})}));Promise.race([s,e]).then((()=>{var t;i.aborted||(this.iframeState="ready",null===(t=this.loadAbortController)||void 0===t||t.abort())})).catch((t=>{var s;i.aborted||(this.iframeState="error",null===(s=this.loadAbortController)||void 0===s||s.abort(),r.has("accountNumberConfirmation")&&console.error('[bank-account-form] "Confirm Account Number" field failed to load.'),this.errorEvent.emit({errorCode:d.IFRAME_LOAD_ERROR,message:c.IFRAME_LOAD_ERROR,severity:l.ERROR,data:{errorMessage:t.message}}))}))}renderIframeError(){return t("div",null,t("form-alert",{text:c.IFRAME_LOAD_ERROR,hideAlert:!1}),t(m,{variant:"link",clickHandler:this.reloadIframes,"aria-label":"Reload bank account form",type:"button"},"Try again"))}render(){return this.isAchDisabledForCheckout()?(this.hasLoggedAchDisabledWarning||(console.warn("[bank-account-form] ACH payments are disabled for this checkout (payment_settings.ach_payments=false)."),this.hasLoggedAchDisabledWarning=!0),null):t("div",null,"loading"===this.iframeState&&t(u,null),"error"===this.iframeState&&this.renderIframeError(),t("hidden-input",null),t("div",{class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},t("div",{class:"row mb-3"},t("iframe-input",{inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),this.showAccountNumberConfirmation&&t("div",{class:"row mb-3"},t("iframe-input",{inputId:"accountNumberConfirmation",ref:t=>this.accountNumberConfirmationIframeElement=t,label:"Confirm Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumberConfirmation?tabId=${this.tabId}`})),t("div",{class:"row"},t("iframe-input",{inputId:"routingNumber",ref:t=>this.routingNumberIframeElement=t,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{p as bank_account_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as a,H as e}from"./p-CV0Pyo1O.js";import{q as i,u as o,v as r,w as h,x as d,y as c}from"./p-Bu7gdOaV.js";import{F as f}from"./p-BTuqVZ6O.js";import{F as n}from"./p-CLZcevBz.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";const p=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,a=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(a),this.inputHandler(s,a),this.formControlInput.emit({name:s,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return a(e,{key:"c93f2282272f252f5ebc3beaa2a9c8b5354d3e27"},a("div",{key:"7ae866ddbd1f59c41aa65e1403fc4bc50e339cad",class:"form-group d-flex flex-column"},a("label",{key:"1490d1484abf2bde39b66be0decf40cb631ec74f",part:d,class:"form-label",htmlFor:this.name},this.label),a(f,{key:"22134cce2d545a2890b1b8a3c7f65ed6d16dc56d",name:this.name,helpText:this.helpText}),a("div",{key:"d1630cf3ed7523af0c5138d3aa515d005f7d960e",class:"input-group"},a("span",{key:"6513844b4374ed9cac1b8e23036086bc002ea8f0",class:"input-group-text",part:c},"$"),a("input",{key:"a59d39b8d81bef0178556d4fa0094dba0c40fd6e",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),a(n,{key:"777cdcb4a8872899dfea021185b83ad0f73bf153",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}