@justifi/webcomponents 6.15.0 → 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 (438) hide show
  1. package/dist/cjs/{Analytics-BjZHa0wt.js → Analytics-jQsZxClw.js} +2 -2
  2. package/dist/cjs/{Api-us3AxMRC.js → Api-DqXlEWR1.js} +1 -1
  3. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +8 -8
  4. package/dist/cjs/additional-questions_4.cjs.entry.js +1 -1
  5. package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +13 -7
  7. package/dist/cjs/bank-account-form.cjs.entry.js +66 -12
  8. package/dist/cjs/{business-identity-schema-XiCLzxWM.js → business-identity-schema-DuOIMFjG.js} +2 -2
  9. package/dist/cjs/{business.service-_Sl3vWmu.js → business.service-Ca-olopC.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +14 -10
  11. package/dist/cjs/{checkout.service-B_qymeqJ.js → checkout.service-DBHPH2ji.js} +1 -1
  12. package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
  13. package/dist/cjs/{country-config-DQQujh5h.js → country-config-CFC3KuVD.js} +24 -2
  14. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  15. package/dist/cjs/detect-duplicate-version-D8ZajVUT.js +29 -0
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +9 -9
  17. package/dist/cjs/{event-types-DmY59QXs.js → event-types-luy3xnYR.js} +1 -1
  18. package/dist/cjs/form-address-fields_3.cjs.entry.js +5 -5
  19. package/dist/cjs/form-alert_3.cjs.entry.js +116 -15
  20. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +1 -1
  23. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  24. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-number_2.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-select_2.cjs.entry.js +22 -6
  28. package/dist/cjs/{get-subaccounts-BMY2bOFj.js → get-subaccounts-D11aTYj1.js} +1 -1
  29. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +41 -25
  31. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -7
  33. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
  35. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
  36. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-card-form.cjs.entry.js +9 -6
  38. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
  39. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -8
  40. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  41. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  43. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  44. package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -8
  45. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -8
  54. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
  56. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  57. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  58. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
  60. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  61. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
  62. package/dist/cjs/loader.cjs.js +1 -1
  63. package/dist/cjs/{package-30T__1wH.js → package-B414Jbra.js} +1 -3
  64. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  65. package/dist/cjs/{payment.service-DRXVT-uB.js → payment.service-CNTe8vrp.js} +1 -1
  66. package/dist/cjs/{payout.service-CuQ-mXKB.js → payout.service-BmU3q9jO.js} +1 -1
  67. package/dist/cjs/{plaid.service-B58nzlUE.js → plaid.service-d9LAwbnX.js} +1 -1
  68. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  69. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  70. package/dist/cjs/{schema-validations-sjRvL4KO.js → schema-validations-BDFa_oIq.js} +8 -2
  71. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  73. package/dist/cjs/{terminal.service-CmtSEgTc.js → terminal.service-BkQWZv9b.js} +1 -1
  74. package/dist/cjs/utils-Ct_X5q0U.js +62 -0
  75. package/dist/cjs/webcomponents.cjs.js +1 -1
  76. package/dist/collection/collection-manifest.json +1 -1
  77. package/dist/collection/components/business-details/justifi-business-details.js +3 -3
  78. package/dist/collection/components/business-forms/business-form/justifi-business-form.js +2 -2
  79. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +3 -2
  80. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +2 -2
  81. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -1
  82. package/dist/collection/components/business-forms/utils/country-config.js +3 -2
  83. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +90 -12
  84. package/dist/collection/components/checkout/billing-form/billing-form-full.js +6 -2
  85. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +6 -2
  86. package/dist/collection/components/checkout/card-form/card-form.js +39 -11
  87. package/dist/collection/components/checkout/justifi-checkout.js +26 -4
  88. package/dist/collection/components/checkout/message-event-types.js +2 -0
  89. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  90. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  91. package/dist/collection/components/checkout-qr-code/justifi-checkout-qr-code.js +2 -2
  92. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  93. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +4 -4
  94. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  95. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  96. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  97. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  98. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -3
  99. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  100. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  101. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  104. package/dist/collection/components/dispute-management/justifi-dispute-management.js +3 -3
  105. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  106. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +2 -2
  107. package/dist/collection/components/insurance/season-interruption/justifi-season-interruption-insurance.js +2 -2
  108. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +50 -12
  109. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +3 -3
  110. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +33 -6
  111. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  112. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  113. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +28 -3
  114. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  115. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  116. package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +1 -1
  117. package/dist/collection/components/order-terminals/justifi-order-terminals.js +3 -3
  118. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  119. package/dist/collection/components/payment-details/justifi-payment-details.js +10 -10
  120. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +3 -3
  121. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  122. package/dist/collection/components/payments-list/justifi-payments-list.js +3 -3
  123. package/dist/collection/components/payout-details/justifi-payout-details.js +5 -5
  124. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +3 -3
  125. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  126. package/dist/collection/components/payouts-list/justifi-payouts-list.js +3 -3
  127. package/dist/collection/components/qr-terminal/justifi-qr-terminal.js +2 -2
  128. package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
  129. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  130. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +4 -4
  131. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  132. package/dist/collection/components/terminals-list/justifi-terminals-list.js +3 -3
  133. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +45 -6
  134. package/dist/collection/store/checkout.store.js +1 -0
  135. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  136. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  139. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  140. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  141. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  142. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  143. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  144. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  145. package/dist/collection/ui-components/form/form-control-text.js +37 -4
  146. package/dist/collection/ui-components/form/iframe-input.js +136 -14
  147. package/dist/collection/ui-components/form/utils.js +32 -0
  148. package/dist/collection/ui-components/internal-button.js +1 -1
  149. package/dist/collection/ui-components/radio-list-item.js +1 -1
  150. package/dist/collection/utils/detect-duplicate-version.js +24 -0
  151. package/dist/collection/utils/postal-code.js +19 -0
  152. package/dist/docs.json +286 -17
  153. package/dist/esm/{Analytics-BtMYbHD0.js → Analytics-DihSSvAP.js} +2 -2
  154. package/dist/esm/{Api-nVK-rgbk.js → Api-INJHjnya.js} +1 -1
  155. package/dist/esm/additional-questions-form-step_15.entry.js +8 -8
  156. package/dist/esm/additional-questions_4.entry.js +1 -1
  157. package/dist/esm/additional-statement_8.entry.js +8 -8
  158. package/dist/esm/bank-account-billing-form-simple_4.entry.js +13 -7
  159. package/dist/esm/bank-account-form.entry.js +66 -12
  160. package/dist/esm/{business-identity-schema-BP61Unwf.js → business-identity-schema-BLKCH6xV.js} +2 -2
  161. package/dist/esm/{business.service-Cq7H5w1T.js → business.service-C8f7OSEu.js} +1 -1
  162. package/dist/esm/card-form.entry.js +14 -10
  163. package/dist/esm/{checkout.service-JA7oTq5d.js → checkout.service-BYDkC7uy.js} +1 -1
  164. package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
  165. package/dist/esm/{country-config-F5YwgHgR.js → country-config-DJFj1v-Q.js} +23 -3
  166. package/dist/esm/custom-popper_2.entry.js +2 -2
  167. package/dist/esm/detect-duplicate-version-C4r1WAzO.js +27 -0
  168. package/dist/esm/dispute-notification_2.entry.js +9 -9
  169. package/dist/esm/{event-types-Dsf8IwD6.js → event-types-S8CgMbPg.js} +1 -1
  170. package/dist/esm/form-address-fields_3.entry.js +5 -5
  171. package/dist/esm/form-alert_3.entry.js +116 -15
  172. package/dist/esm/form-control-checkbox.entry.js +2 -2
  173. package/dist/esm/form-control-date.entry.js +2 -2
  174. package/dist/esm/form-control-file-v2_2.entry.js +1 -1
  175. package/dist/esm/form-control-file.entry.js +2 -2
  176. package/dist/esm/form-control-monetary.entry.js +2 -2
  177. package/dist/esm/form-control-number_2.entry.js +3 -3
  178. package/dist/esm/form-control-radio.entry.js +2 -2
  179. package/dist/esm/form-control-select_2.entry.js +22 -6
  180. package/dist/esm/{get-subaccounts-B-S2TGRa.js → get-subaccounts-BHWiH8q9.js} +1 -1
  181. package/dist/esm/internal-button.entry.js +1 -1
  182. package/dist/esm/justifi-apple-pay_12.entry.js +41 -25
  183. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
  184. package/dist/esm/justifi-bank-account-form.entry.js +8 -7
  185. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  186. package/dist/esm/justifi-business-details.entry.js +7 -7
  187. package/dist/esm/justifi-business-form.entry.js +9 -9
  188. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  189. package/dist/esm/justifi-card-form.entry.js +9 -6
  190. package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
  191. package/dist/esm/justifi-checkout.entry.js +10 -8
  192. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  193. package/dist/esm/justifi-checkouts-list.entry.js +9 -9
  194. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  195. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  196. package/dist/esm/justifi-order-terminals.entry.js +8 -8
  197. package/dist/esm/justifi-payment-details.entry.js +14 -14
  198. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  199. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  200. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  201. package/dist/esm/justifi-payments-list.entry.js +7 -7
  202. package/dist/esm/justifi-payout-details.entry.js +9 -9
  203. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  204. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  205. package/dist/esm/justifi-payouts-list.entry.js +8 -8
  206. package/dist/esm/justifi-qr-terminal.entry.js +6 -6
  207. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  208. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  209. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  210. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
  211. package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
  212. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  213. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  214. package/dist/esm/loader.js +1 -1
  215. package/dist/esm/package-BQpbTebi.js +5 -0
  216. package/dist/esm/payment-method-option.entry.js +1 -1
  217. package/dist/esm/{payment.service-B42sKlQE.js → payment.service-CQXRsu6Y.js} +1 -1
  218. package/dist/esm/{payout.service-BIoAgNJJ.js → payout.service-RRyWfpEK.js} +1 -1
  219. package/dist/esm/{plaid.service-C6Ltk2ef.js → plaid.service-Cg3E3Plo.js} +1 -1
  220. package/dist/esm/radio-list-item.entry.js +1 -1
  221. package/dist/esm/save-new-payment-method.entry.js +2 -2
  222. package/dist/esm/{schema-validations-De7Qe0VU.js → schema-validations-8GJ34Do1.js} +8 -2
  223. package/dist/esm/table-filters-menu.entry.js +1 -1
  224. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  225. package/dist/esm/{terminal.service-DV3qIwBy.js → terminal.service-Dy6D8bnl.js} +1 -1
  226. package/dist/esm/utils-Cpck08K0.js +59 -0
  227. package/dist/esm/webcomponents.js +1 -1
  228. package/dist/module/additional-statement2.js +1 -1
  229. package/dist/module/bank-account-form2.js +65 -10
  230. package/dist/module/billing-form-full2.js +6 -2
  231. package/dist/module/cancellation-policy2.js +1 -1
  232. package/dist/module/card-billing-form-simple2.js +6 -2
  233. package/dist/module/card-form2.js +14 -9
  234. package/dist/module/checkout.store.js +1 -0
  235. package/dist/module/country-config.js +23 -3
  236. package/dist/module/custom-popper2.js +2 -2
  237. package/dist/module/customer-details2.js +1 -1
  238. package/dist/module/detect-duplicate-version.js +27 -0
  239. package/dist/module/dispute-notification2.js +2 -2
  240. package/dist/module/dispute-response2.js +3 -3
  241. package/dist/module/duplicate-charge2.js +1 -1
  242. package/dist/module/electronic-evidence2.js +1 -1
  243. package/dist/module/form-address-fields2.js +3 -3
  244. package/dist/module/form-control-checkbox2.js +2 -2
  245. package/dist/module/form-control-date2.js +2 -2
  246. package/dist/module/form-control-file-v22.js +1 -1
  247. package/dist/module/form-control-file2.js +2 -2
  248. package/dist/module/form-control-monetary2.js +2 -2
  249. package/dist/module/form-control-number-masked2.js +2 -2
  250. package/dist/module/form-control-number2.js +2 -2
  251. package/dist/module/form-control-radio2.js +2 -2
  252. package/dist/module/form-control-select2.js +2 -2
  253. package/dist/module/form-control-text2.js +21 -4
  254. package/dist/module/iframe-input2.js +119 -15
  255. package/dist/module/internal-button2.js +1 -1
  256. package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
  257. package/dist/module/justifi-bank-account-form.js +6 -4
  258. package/dist/module/justifi-billing-form-full.js +1 -1
  259. package/dist/module/justifi-business-details.js +3 -3
  260. package/dist/module/justifi-business-form.js +2 -2
  261. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  262. package/dist/module/justifi-card-form.js +6 -3
  263. package/dist/module/justifi-checkout-qr-code2.js +2 -2
  264. package/dist/module/justifi-checkout-summary2.js +1 -1
  265. package/dist/module/justifi-checkout.js +7 -4
  266. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  267. package/dist/module/justifi-checkouts-list.js +4 -4
  268. package/dist/module/justifi-dispute-management.js +3 -3
  269. package/dist/module/justifi-gross-payment-chart.js +2 -2
  270. package/dist/module/justifi-modular-checkout2.js +30 -12
  271. package/dist/module/justifi-order-terminals.js +3 -3
  272. package/dist/module/justifi-payment-details.js +10 -10
  273. package/dist/module/justifi-payment-provisioning.js +2 -2
  274. package/dist/module/justifi-payment-transactions-list.js +3 -3
  275. package/dist/module/justifi-payments-list-filters.js +2 -2
  276. package/dist/module/justifi-payments-list.js +3 -3
  277. package/dist/module/justifi-payout-details.js +5 -5
  278. package/dist/module/justifi-payout-transactions-list.js +3 -3
  279. package/dist/module/justifi-payouts-list-filters.js +2 -2
  280. package/dist/module/justifi-payouts-list.js +3 -3
  281. package/dist/module/justifi-paypal2.js +1 -1
  282. package/dist/module/justifi-qr-terminal.js +2 -2
  283. package/dist/module/justifi-refund-payment.js +2 -2
  284. package/dist/module/justifi-save-new-payment-method.js +1 -1
  285. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  286. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  287. package/dist/module/justifi-terminal-orders-list.js +4 -4
  288. package/dist/module/justifi-terminals-list-filters.js +1 -1
  289. package/dist/module/justifi-terminals-list.js +3 -3
  290. package/dist/module/justifi-tokenize-payment-method2.js +9 -6
  291. package/dist/module/package.js +1 -3
  292. package/dist/module/payment-method-option.js +1 -1
  293. package/dist/module/product-or-service2.js +1 -1
  294. package/dist/module/radio-list-item2.js +1 -1
  295. package/dist/module/refund-policy2.js +1 -1
  296. package/dist/module/save-new-payment-method2.js +1 -1
  297. package/dist/module/schema-validations.js +8 -2
  298. package/dist/module/shipping-details2.js +1 -1
  299. package/dist/module/table-filters-menu2.js +1 -1
  300. package/dist/module/terminal-quantity-selector2.js +1 -1
  301. package/dist/module/utils4.js +33 -1
  302. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
  303. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  304. package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
  305. package/dist/types/components/checkout/message-event-types.d.ts +2 -0
  306. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
  307. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
  308. package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
  309. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
  310. package/dist/types/components.d.ts +85 -3
  311. package/dist/types/store/checkout.store.d.ts +1 -0
  312. package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
  313. package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
  314. package/dist/types/ui-components/form/utils.d.ts +1 -0
  315. package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
  316. package/dist/types/utils/postal-code.d.ts +3 -0
  317. package/dist/webcomponents/p-12daf522.entry.js +1 -0
  318. package/dist/webcomponents/p-1a1aef42.entry.js +1 -0
  319. package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
  320. package/dist/webcomponents/{p-0f7e3515.entry.js → p-1ff1dcc5.entry.js} +4 -4
  321. package/dist/webcomponents/{p-777470cb.entry.js → p-2272a65b.entry.js} +1 -1
  322. package/dist/webcomponents/{p-c4889a06.entry.js → p-2d25f1d1.entry.js} +1 -1
  323. package/dist/webcomponents/{p-f2b3c7d5.entry.js → p-30ec1cd6.entry.js} +1 -1
  324. package/dist/webcomponents/p-357d14ee.entry.js +1 -0
  325. package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
  326. package/dist/webcomponents/p-4c7e7880.entry.js +1 -0
  327. package/dist/webcomponents/{p-6c7fca1a.entry.js → p-4d85dd63.entry.js} +1 -1
  328. package/dist/webcomponents/p-521c534c.entry.js +1 -0
  329. package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
  330. package/dist/webcomponents/{p-88a44a02.entry.js → p-5e8f26ec.entry.js} +1 -1
  331. package/dist/webcomponents/p-622c2af4.entry.js +1 -0
  332. package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
  333. package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
  334. package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
  335. package/dist/webcomponents/p-73af269e.entry.js +1 -0
  336. package/dist/webcomponents/{p-a7c594d1.entry.js → p-7ff788f8.entry.js} +1 -1
  337. package/dist/webcomponents/{p-a10beb26.entry.js → p-846ae5d5.entry.js} +1 -1
  338. package/dist/webcomponents/p-8758aec4.entry.js +1 -0
  339. package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
  340. package/dist/webcomponents/p-8c22ff9c.entry.js +1 -0
  341. package/dist/webcomponents/p-91358854.entry.js +1 -0
  342. package/dist/webcomponents/{p-13814028.entry.js → p-956707a2.entry.js} +1 -1
  343. package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
  344. package/dist/webcomponents/{p-B_2zgnvM.js → p-BG8NxEUn.js} +1 -1
  345. package/dist/webcomponents/{p-DC2djVls.js → p-BKtKrQzN.js} +1 -1
  346. package/dist/webcomponents/p-BQpbTebi.js +1 -0
  347. package/dist/webcomponents/{p-BjjKkMO1.js → p-Bh5BNj74.js} +1 -1
  348. package/dist/webcomponents/{p-C6Jq8YDT.js → p-BtiJJJwv.js} +1 -1
  349. package/dist/webcomponents/p-BzESNgd8.js +1 -0
  350. package/dist/webcomponents/p-CkrzG0pB.js +1 -0
  351. package/dist/webcomponents/{p-D694H6co.js → p-Cl6irPVE.js} +1 -1
  352. package/dist/webcomponents/p-Cpck08K0.js +1 -0
  353. package/dist/webcomponents/{p-D7fNBSlC.js → p-Cy_sz0Tx.js} +1 -1
  354. package/dist/webcomponents/{p-pueOrhXO.js → p-D42DvqTW.js} +1 -1
  355. package/dist/webcomponents/{p-C60AkJ6a.js → p-DBudSN_h.js} +1 -1
  356. package/dist/webcomponents/p-DMzYgqml.js +1 -0
  357. package/dist/webcomponents/p-FsWkrvEF.js +1 -0
  358. package/dist/webcomponents/{p-BmaQUnqv.js → p-MLQyjvrV.js} +1 -1
  359. package/dist/webcomponents/p-a095b86d.entry.js +1 -0
  360. package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
  361. package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
  362. package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
  363. package/dist/webcomponents/{p-f5cb6a26.entry.js → p-b665841f.entry.js} +1 -1
  364. package/dist/webcomponents/p-b925d666.entry.js +1 -0
  365. package/dist/webcomponents/p-bc3e46af.entry.js +1 -0
  366. package/dist/webcomponents/p-c172decb.entry.js +1 -0
  367. package/dist/webcomponents/p-c9871158.entry.js +1 -0
  368. package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
  369. package/dist/webcomponents/{p-f40fa614.entry.js → p-d35cde99.entry.js} +1 -1
  370. package/dist/webcomponents/{p-1cfa634a.entry.js → p-d48f80d1.entry.js} +1 -1
  371. package/dist/webcomponents/{p-cec7164e.entry.js → p-dae31a59.entry.js} +1 -1
  372. package/dist/webcomponents/p-deff4422.entry.js +1 -0
  373. package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
  374. package/dist/webcomponents/p-e6d1e3e2.entry.js +1 -0
  375. package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
  376. package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
  377. package/dist/webcomponents/{p-16261d8a.entry.js → p-f0084d20.entry.js} +1 -1
  378. package/dist/webcomponents/{p-065b854f.entry.js → p-f0da2ca5.entry.js} +1 -1
  379. package/dist/webcomponents/{p-9b43b90d.entry.js → p-f23d7d13.entry.js} +1 -1
  380. package/dist/webcomponents/p-f2c99647.entry.js +1 -0
  381. package/dist/webcomponents/p-f458928d.entry.js +1 -0
  382. package/dist/webcomponents/{p-429046e1.entry.js → p-f5686720.entry.js} +1 -1
  383. package/dist/webcomponents/p-f681f747.entry.js +1 -0
  384. package/dist/webcomponents/{p-0e9351c4.entry.js → p-f6efd9e0.entry.js} +1 -1
  385. package/dist/webcomponents/{p-a71cc8e2.entry.js → p-fa0427d5.entry.js} +1 -1
  386. package/dist/webcomponents/p-fb1f2fe8.entry.js +1 -0
  387. package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
  388. package/dist/webcomponents/{p-iA-Amt2z.js → p-hdPjEOdB.js} +1 -1
  389. package/dist/webcomponents/{p-rFpPIJgu.js → p-l3JhjHLW.js} +1 -1
  390. package/dist/webcomponents/webcomponents.esm.js +1 -1
  391. package/package.json +14 -14
  392. package/LICENSE +0 -21
  393. package/dist/cjs/check-pkg-version-CjJab8fX.js +0 -47
  394. package/dist/cjs/utils-DAyWinG2.js +0 -29
  395. package/dist/collection/utils/check-pkg-version.js +0 -42
  396. package/dist/esm/check-pkg-version-BW9zgceK.js +0 -45
  397. package/dist/esm/package-BC9n8nB2.js +0 -7
  398. package/dist/esm/utils-BnjCmwMr.js +0 -27
  399. package/dist/module/check-pkg-version.js +0 -45
  400. package/dist/types/utils/check-pkg-version.d.ts +0 -1
  401. package/dist/webcomponents/p-082f912c.entry.js +0 -1
  402. package/dist/webcomponents/p-0cd689f4.entry.js +0 -1
  403. package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
  404. package/dist/webcomponents/p-10787684.entry.js +0 -1
  405. package/dist/webcomponents/p-19cabdaf.entry.js +0 -1
  406. package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
  407. package/dist/webcomponents/p-2ef913b8.entry.js +0 -1
  408. package/dist/webcomponents/p-36340e63.entry.js +0 -1
  409. package/dist/webcomponents/p-388082cd.entry.js +0 -1
  410. package/dist/webcomponents/p-3a1f8c5b.entry.js +0 -1
  411. package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
  412. package/dist/webcomponents/p-44ff4f2c.entry.js +0 -1
  413. package/dist/webcomponents/p-4740601b.entry.js +0 -1
  414. package/dist/webcomponents/p-59b95eae.entry.js +0 -1
  415. package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
  416. package/dist/webcomponents/p-735d397e.entry.js +0 -1
  417. package/dist/webcomponents/p-8432cb42.entry.js +0 -1
  418. package/dist/webcomponents/p-89f0c2aa.entry.js +0 -1
  419. package/dist/webcomponents/p-9db15fac.entry.js +0 -1
  420. package/dist/webcomponents/p-9eb00966.entry.js +0 -1
  421. package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
  422. package/dist/webcomponents/p-BAvoKtN2.js +0 -1
  423. package/dist/webcomponents/p-BC9n8nB2.js +0 -1
  424. package/dist/webcomponents/p-BnjCmwMr.js +0 -1
  425. package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
  426. package/dist/webcomponents/p-_MjmE9YT.js +0 -1
  427. package/dist/webcomponents/p-a8d25057.entry.js +0 -1
  428. package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
  429. package/dist/webcomponents/p-b9ba7c95.entry.js +0 -1
  430. package/dist/webcomponents/p-c385f10d.entry.js +0 -1
  431. package/dist/webcomponents/p-c55fdbbf.entry.js +0 -1
  432. package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
  433. package/dist/webcomponents/p-d3544e86.entry.js +0 -1
  434. package/dist/webcomponents/p-de047614.entry.js +0 -1
  435. package/dist/webcomponents/p-f0434a13.entry.js +0 -1
  436. package/dist/webcomponents/p-f9f310dc.entry.js +0 -1
  437. package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
  438. package/dist/webcomponents/p-riZDHN5-.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { a as create$6 } from './form.js';
2
- import { P as ProvinceOptions, b as countryValidation } from './country-config.js';
2
+ import { P as ProvinceOptions, n as normalizePostalCode, C as CA_OR_US_POSTAL_REGEX, b as countryValidation } from './country-config.js';
3
3
  import { S as StateOptions, a as CountryCode } from './Business.js';
4
4
  import { b as businessServiceReceivedOptions, a as bankAccountTypeOptions } from './business-form-options.js';
5
5
 
@@ -71,6 +71,11 @@ const taxIdValidation = create$6()
71
71
  .transform(transformEmptyString);
72
72
  // Country-aware helpers (backward compatible)
73
73
  const makePostalValidation = (country) => create$6()
74
+ // Normalize before matching so a stored value that predates the canonical
75
+ // format — 'm5v2t6', 'M5V-2T6' — still validates. Nothing in vault or
76
+ // entity_management ever enforced a format, and Stripe imports copy the
77
+ // merchant's own spelling verbatim.
78
+ .transform(normalizePostalCode)
74
79
  .matches(countryValidation[country].postalRegex, 'Enter valid postal code')
75
80
  .transform(transformEmptyString);
76
81
  const makeIdentityNumberValidation = (country) => {
@@ -193,7 +198,8 @@ const stateValidation = create$6()
193
198
  .oneOf(checkoutBillingStateOptions.map((option) => option.value), 'Select a valid state or province')
194
199
  .transform(transformEmptyString);
195
200
  const postalValidation = create$6()
196
- .matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/, 'Enter valid postal code')
201
+ .transform(normalizePostalCode)
202
+ .matches(CA_OR_US_POSTAL_REGEX, 'Enter valid postal code')
197
203
  .transform(transformEmptyString);
198
204
  // Additional Questions Validations
199
205
  const revenueValidation = create$6()
@@ -46,7 +46,7 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
46
46
  }
47
47
  render() {
48
48
  var _a, _b, _c, _d, _e;
49
- return (h("div", { key: '0d7695711048ad14596ba44e364b45e3aa3d1e39' }, h("div", { key: 'e6911e35f66ef8aaa591f54e389d67c202af8172', class: "row gy-3" }, h("div", { key: 'd59ab2fe6318a27c4b38650e4e9d07b9c851041f', class: "col-12" }, h("h2", { key: 'b8a8634fe9dcf11c332dab0c1736732e579aeb59', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '5170b37a386805e194d8cf7c769ffdbac8db8fa2', class: "col-12" }, h("form-control-text", { key: '7bc3f59737fa075134e2bc476fa26d79ddc4e26b', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: 'ef41052d0eec68b02d04638ce7cfdbc1477c16eb', class: "col-12" }, h("form-control-text", { key: 'b88d31bed47cdf09e04a29122c1adf955bdc4d25', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '743dea4d8f59e62103403fa58936ca86d7bbf216', class: "col-12" }, h("form-control-date", { key: '4be255a38f91f9bf758428d780649d2775d22153', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '7b274a743a9ca8f3cb7b86facbe12b723b8695e4', class: "col-12" }, h("form-control-textarea", { key: '833a03ac489cfa6fe6991e14a079b104b7b86ddc', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'a1363e8014fe90442e1d0f6820bf2b9cf9966c90', class: "col-12" }, h("form-control-file-v2", { key: 'beb99c4b9e898265f8a904984172fb1a6a52cb49', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
49
+ return (h("div", { key: '6673b30e9af36cb2e560d0653776a42ab1777c22' }, h("div", { key: 'f687e69208f470a40699f870c4d09b04a0487faa', class: "row gy-3" }, h("div", { key: 'ffb1b65e29b6b912cefe862a2139e57f3d81087b', class: "col-12" }, h("h2", { key: '2cea703b6f228aa127bbdb6f8c97f3f79e05d351', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'fe2ae3034571b5ed2a8e5678ae5c32d84f750835', class: "col-12" }, h("form-control-text", { key: '3b5c43c4b8baa62a756cc2dd7edb54fc0c118ede', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '807d7e0860265cb629083bb026e812e4d2ac06ff', class: "col-12" }, h("form-control-text", { key: '5367ef8b37625d6e3ca42eb68eda5e142ff5d783', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '25e85572762af0d9964849d276dd18c5b8905d6e', class: "col-12" }, h("form-control-date", { key: '821d218825643775282742b0c63f8c803a6c47e5', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '376e527d339217b897f02f0de111ea9377539769', class: "col-12" }, h("form-control-textarea", { key: 'f0130e6c0a7ca54e20f6406fbe6276fa8cffbf61', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '74699370d18065f453e68449749d5481772c4c08', class: "col-12" }, h("form-control-file-v2", { key: '5d3f0d1a199b563c9ed433cb971f541a4cb54083', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
50
50
  }
51
51
  }, [256, "shipping-details", {
52
52
  "disputeResponse": [8, "dispute-response"],
@@ -31,7 +31,7 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
31
31
  this.showClearButton = hasFilters(this.params);
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '467c453ff98299885dfde3e25a7911211220bd21', class: "d-flex gap-2" }, h("div", { key: '3a25ceab0cccbcde3fb9e3073e4e581f6a08591a', class: "dropdown pb-3" }, h("button", { key: '833cbfe0e73c388971ef9eca8240198251b4271e', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '00371051688c5b62e60c7c42cf92d8261019bd06', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'a8d97a8bde738a0ddf9f194487bc6cec590d384d', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '97b96488fff4b33f90fdab113511a529234da457' })))), h("div", { key: '41c110a579fa3da4c9a8711fec9a6b1a0ee07218' }, h(Button, { key: '83ee38c0db83d3d25779a462fc123cedc7128870', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
34
+ return (h("div", { key: 'dfea7fc09cd4d3799af064eb413088d2e68b379e', class: "d-flex gap-2" }, h("div", { key: 'dfc0ff09dc4117ce6871167376ce0b66d2df123a', class: "dropdown pb-3" }, h("button", { key: '2796cf3464e59b95edbd77e3bc9e0d60f22a9a86', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: 'e9edff3a2c800ab9fbfd834cb55338caebac1fdc', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'abf8d0f0f059a9981897e231a2255c7f2b545a0c', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '1816909bb5bc3c9f7ddd2c37a6edc5bb00260900' })))), h("div", { key: '2e3dbb4b5b8caeacc1a64dc74e2df9f7d975b680' }, h(Button, { key: '2b588ef261aa1ff4db00a90c21ca4e6c7cc90f1e', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
35
35
  }
36
36
  static get watchers() { return {
37
37
  "params": ["watchParamsHandler"]
@@ -26,7 +26,7 @@ const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class Terminal
26
26
  };
27
27
  }
28
28
  render() {
29
- return (h("div", { key: '63237aed2228e101ed2a882e4993865afa886a09', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '5dccc2e66eb1555f5d60a5c9b0e4250ff003194f', class: "d-flex gap-3" }, h("div", { key: '6da3cf0ddc09d0a80969f4a109320190c9ec26a4', class: "d-flex align-items-center" }, h("img", { key: '900fbef983071b6838dc62ef62aeecc7a83c22fc', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '9c2f602f486233d1749faaadaa5c5c4a46e2e86b', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'b2f2a90050ad90240c249a62b5dfb353c4a9d6f3', class: "row" }, h("div", { key: '816a91666b31568fb7a26e2d34c2894c79d67303', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '48e67406ec6cb6095a5bf0216595800172bd01b7', helpText: this.description })), h("div", { key: 'eb8b820f364f724f3deef236c7d0f16a6afa0e10', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'fc01f21c067d963c61b2aeb4ee29b172dec7ab54', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'bc61bbe36b0031ba78bfc5789a8359f3848afbca', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '30061e988706cb075066ebf7876dab5a65d855dd', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
29
+ return (h("div", { key: '38cd0765871fd366af0adc09910add544ecefb93', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '5e367d97287d3fef28e4f24d78384c6d02ab1540', class: "d-flex gap-3" }, h("div", { key: 'e031d923a5a01665a7f1a37e1d7df529ba51b0b2', class: "d-flex align-items-center" }, h("img", { key: 'b520afcdbd4946105324410499aa4ede31da1a72', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '5bdb4760b16241d9cd76e70245a19555dce6f723', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: '598bab6407c43f94896a1782b60f048696361113', class: "row" }, h("div", { key: 'c340942cadb9dc0411f7d7815f1ccc9df75cbfbc', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '1f0a3deeb00abcf3e3cd01fecdeb0435f091cbac', helpText: this.description })), h("div", { key: 'df8b8567640a567a4b8f238a21c6ed57d60e444a', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'baf59d5ede260d44a8ebfaaf95d8d134f3ef60da', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'cd3f528e9a56385cd17b23eb85185c51cd0dff67', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '6a55baa1403892f79600ff4ee85734c14a5f2ecc', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
30
30
  }
31
31
  }, [256, "terminal-quantity-selector", {
32
32
  "modelName": [1, "model-name"],
@@ -23,5 +23,37 @@ const numberOnlyHandler = (e) => {
23
23
  e.preventDefault();
24
24
  }
25
25
  };
26
+ // A US ZIP+4 ("44240-5555") carries a hyphen, which numberOnlyHandler blocks,
27
+ // so the postal field gets its own handler: digits plus a single hyphen.
28
+ const zipCodeOnlyHandler = (e) => {
29
+ var _a, _b, _c;
30
+ const specialKeys = ['Backspace', 'Tab', 'Enter', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Delete'];
31
+ // Handle paste event. `ClipboardEvent` is not a global in the spec
32
+ // environment, so the paste branch is recognized by its payload.
33
+ if ('clipboardData' in e) {
34
+ const clipboardData = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');
35
+ if (clipboardData && !/^\d+(-\d+)?$/.test(clipboardData)) {
36
+ e.preventDefault();
37
+ }
38
+ return;
39
+ }
40
+ // Check if the key is a special key
41
+ if (specialKeys.includes(e.key)) {
42
+ return;
43
+ }
44
+ // Allow Ctrl+V / Command+V for pasting
45
+ if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v') {
46
+ return;
47
+ }
48
+ // A single hyphen separates the ZIP from the +4; a second one never does.
49
+ const alreadyHyphenated = !!((_c = (_b = e.target) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.includes('-'));
50
+ if (e.key === '-' && !alreadyHyphenated) {
51
+ return;
52
+ }
53
+ // Prevent default action if the key is not a digit
54
+ if (!/^\d$/.test(e.key)) {
55
+ e.preventDefault();
56
+ }
57
+ };
26
58
 
27
- export { numberOnlyHandler as n };
59
+ export { numberOnlyHandler as n, zipCodeOnlyHandler as z };
@@ -5,21 +5,28 @@ export declare class BankAccountForm {
5
5
  iframeOrigin: string;
6
6
  tabId: string;
7
7
  iframeState: 'loading' | 'ready' | 'error';
8
+ showAccountNumberConfirmation?: boolean;
8
9
  private accountNumberIframeElement;
10
+ private accountNumberConfirmationIframeElement?;
9
11
  private routingNumberIframeElement;
10
12
  private hasLoggedAchDisabledWarning;
11
13
  private loadAbortController?;
14
+ private loadedInputIds;
15
+ private watchedInputIds;
12
16
  componentWillLoad(): Promise<void>;
13
17
  componentDidRender(): void;
14
18
  disconnectedCallback(): void;
15
19
  private isAchDisabledForCheckout;
16
- validate(): Promise<any>;
20
+ validate(): Promise<{
21
+ isValid: boolean;
22
+ }>;
17
23
  tokenize({ clientId, paymentMethodMetadata, account }: {
18
24
  clientId: string;
19
25
  paymentMethodMetadata: any;
20
26
  account?: string;
21
27
  }): Promise<any>;
22
28
  private get isReady();
29
+ private get expectedIframeCount();
23
30
  private get iframeElements();
24
31
  private watchIframesLoad;
25
32
  private reloadIframes;
@@ -5,6 +5,8 @@ export declare class CardForm {
5
5
  iframeOrigin: string;
6
6
  tabId: string;
7
7
  iframeState: 'loading' | 'ready' | 'error';
8
+ /** Mask the card number to its last four digits when the field blurs. */
9
+ maskCardNumber?: boolean;
8
10
  private cardNumberIframeElement;
9
11
  private expirationMonthIframeElement;
10
12
  private expirationYearIframeElement;
@@ -13,7 +15,9 @@ export declare class CardForm {
13
15
  componentWillLoad(): Promise<void>;
14
16
  componentDidLoad(): void;
15
17
  disconnectedCallback(): void;
16
- validate(): Promise<any>;
18
+ validate(): Promise<{
19
+ isValid: boolean;
20
+ }>;
17
21
  tokenize({ clientId, paymentMethodMetadata, account, }: {
18
22
  clientId: string;
19
23
  paymentMethodMetadata: any;
@@ -29,6 +29,8 @@ export declare class JustifiCheckout {
29
29
  /** Passed to `justifi-google-pay` as `environment`. Omit to let the child use its default. */
30
30
  googlePayEnv?: 'TEST' | 'PRODUCTION';
31
31
  preCompleteHook?: Hook<CheckoutState>;
32
+ /** Renders a "Confirm Account Number" field in the bank account form. */
33
+ showAccountNumberConfirmation?: boolean;
32
34
  propChanged(): void;
33
35
  errorEvent: EventEmitter<ComponentErrorEvent>;
34
36
  loadedEvent: EventEmitter<ILoadedEventResponse>;
@@ -1,4 +1,6 @@
1
1
  export declare const MessageEventType: {
2
2
  tokenize: string;
3
3
  validate: string;
4
+ /** Opts a hosted field into mask-on-blur. Carries no card data. */
5
+ setMaskCardNumber: string;
4
6
  };
@@ -19,6 +19,15 @@ export declare class JustifiModularCheckout {
19
19
  authToken: string;
20
20
  checkoutId: string;
21
21
  preCompleteHook?: Hook<CheckoutState>;
22
+ /**
23
+ * Mask the card number to its last four digits when the field loses focus,
24
+ * with an eye toggle to reveal it. Applies to the `justifi-card-form`
25
+ * rendered inside this checkout. Defaults to false.
26
+ *
27
+ * Anti-shoulder-surfing only, not a secrecy boundary.
28
+ */
29
+ maskCardNumber?: boolean;
30
+ maskCardNumberChanged(): void;
22
31
  hostEl: HTMLElement;
23
32
  errorEvent: EventEmitter;
24
33
  submitEvent: EventEmitter;
@@ -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 {
@@ -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}