@justifi/webcomponents 6.15.0 → 6.16.0-rc.2

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 (441) hide show
  1. package/dist/cjs/{Analytics-BjZHa0wt.js → Analytics-CDE3KpL6.js} +2 -2
  2. package/dist/cjs/{Api-us3AxMRC.js → Api-CaEn8pKs.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 +64 -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-DIspRonp.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +12 -10
  11. package/dist/cjs/{checkout.service-B_qymeqJ.js → checkout.service-CM1Duar4.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-DyHHkx4J.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-DNCxVTir.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 +122 -16
  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-8LeFCTm6.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 +54 -32
  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 +17 -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-DGrVUpde.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-By7aeVkC.js} +1 -1
  66. package/dist/cjs/{payout.service-CuQ-mXKB.js → payout.service-Dn0rXkmg.js} +1 -1
  67. package/dist/cjs/{plaid.service-B58nzlUE.js → plaid.service-CjaugrzX.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-C0_r_A60.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 +88 -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 +37 -11
  87. package/dist/collection/components/checkout/justifi-checkout.js +53 -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 +63 -19
  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/frame-comunication-service.js +6 -1
  152. package/dist/collection/utils/postal-code.js +19 -0
  153. package/dist/docs.json +315 -17
  154. package/dist/esm/{Analytics-BtMYbHD0.js → Analytics-tBzmPsnT.js} +2 -2
  155. package/dist/esm/{Api-nVK-rgbk.js → Api-BH6Wa9CT.js} +1 -1
  156. package/dist/esm/additional-questions-form-step_15.entry.js +8 -8
  157. package/dist/esm/additional-questions_4.entry.js +1 -1
  158. package/dist/esm/additional-statement_8.entry.js +8 -8
  159. package/dist/esm/bank-account-billing-form-simple_4.entry.js +13 -7
  160. package/dist/esm/bank-account-form.entry.js +64 -12
  161. package/dist/esm/{business-identity-schema-BP61Unwf.js → business-identity-schema-BLKCH6xV.js} +2 -2
  162. package/dist/esm/{business.service-Cq7H5w1T.js → business.service-XOnczlAa.js} +1 -1
  163. package/dist/esm/card-form.entry.js +12 -10
  164. package/dist/esm/{checkout.service-JA7oTq5d.js → checkout.service-DvSxk9EZ.js} +1 -1
  165. package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
  166. package/dist/esm/{country-config-F5YwgHgR.js → country-config-DJFj1v-Q.js} +23 -3
  167. package/dist/esm/custom-popper_2.entry.js +2 -2
  168. package/dist/esm/detect-duplicate-version-BD3-8NL2.js +27 -0
  169. package/dist/esm/dispute-notification_2.entry.js +9 -9
  170. package/dist/esm/{event-types-Dsf8IwD6.js → event-types-CM5AGGBD.js} +1 -1
  171. package/dist/esm/form-address-fields_3.entry.js +5 -5
  172. package/dist/esm/form-alert_3.entry.js +122 -16
  173. package/dist/esm/form-control-checkbox.entry.js +2 -2
  174. package/dist/esm/form-control-date.entry.js +2 -2
  175. package/dist/esm/form-control-file-v2_2.entry.js +1 -1
  176. package/dist/esm/form-control-file.entry.js +2 -2
  177. package/dist/esm/form-control-monetary.entry.js +2 -2
  178. package/dist/esm/form-control-number_2.entry.js +3 -3
  179. package/dist/esm/form-control-radio.entry.js +2 -2
  180. package/dist/esm/form-control-select_2.entry.js +22 -6
  181. package/dist/esm/{get-subaccounts-B-S2TGRa.js → get-subaccounts-P-x_RqL5.js} +1 -1
  182. package/dist/esm/internal-button.entry.js +1 -1
  183. package/dist/esm/justifi-apple-pay_12.entry.js +54 -32
  184. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
  185. package/dist/esm/justifi-bank-account-form.entry.js +8 -7
  186. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  187. package/dist/esm/justifi-business-details.entry.js +7 -7
  188. package/dist/esm/justifi-business-form.entry.js +9 -9
  189. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  190. package/dist/esm/justifi-card-form.entry.js +9 -6
  191. package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
  192. package/dist/esm/justifi-checkout.entry.js +17 -8
  193. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  194. package/dist/esm/justifi-checkouts-list.entry.js +9 -9
  195. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  196. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  197. package/dist/esm/justifi-order-terminals.entry.js +8 -8
  198. package/dist/esm/justifi-payment-details.entry.js +14 -14
  199. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  200. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  201. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  202. package/dist/esm/justifi-payments-list.entry.js +7 -7
  203. package/dist/esm/justifi-payout-details.entry.js +9 -9
  204. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  205. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  206. package/dist/esm/justifi-payouts-list.entry.js +8 -8
  207. package/dist/esm/justifi-qr-terminal.entry.js +6 -6
  208. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  209. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  210. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  211. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
  212. package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
  213. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  214. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  215. package/dist/esm/loader.js +1 -1
  216. package/dist/esm/package-DhrQechy.js +5 -0
  217. package/dist/esm/payment-method-option.entry.js +1 -1
  218. package/dist/esm/{payment.service-B42sKlQE.js → payment.service-CBUnE4bP.js} +1 -1
  219. package/dist/esm/{payout.service-BIoAgNJJ.js → payout.service-DUYaYbeJ.js} +1 -1
  220. package/dist/esm/{plaid.service-C6Ltk2ef.js → plaid.service-Umm80G4q.js} +1 -1
  221. package/dist/esm/radio-list-item.entry.js +1 -1
  222. package/dist/esm/save-new-payment-method.entry.js +2 -2
  223. package/dist/esm/{schema-validations-De7Qe0VU.js → schema-validations-8GJ34Do1.js} +8 -2
  224. package/dist/esm/table-filters-menu.entry.js +1 -1
  225. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  226. package/dist/esm/{terminal.service-DV3qIwBy.js → terminal.service-DeunLqmo.js} +1 -1
  227. package/dist/esm/utils-Cpck08K0.js +59 -0
  228. package/dist/esm/webcomponents.js +1 -1
  229. package/dist/module/additional-statement2.js +1 -1
  230. package/dist/module/bank-account-form2.js +63 -10
  231. package/dist/module/billing-form-full2.js +6 -2
  232. package/dist/module/cancellation-policy2.js +1 -1
  233. package/dist/module/card-billing-form-simple2.js +6 -2
  234. package/dist/module/card-form2.js +12 -9
  235. package/dist/module/checkout.store.js +1 -0
  236. package/dist/module/country-config.js +23 -3
  237. package/dist/module/custom-popper2.js +2 -2
  238. package/dist/module/customer-details2.js +1 -1
  239. package/dist/module/detect-duplicate-version.js +27 -0
  240. package/dist/module/dispute-notification2.js +2 -2
  241. package/dist/module/dispute-response2.js +3 -3
  242. package/dist/module/duplicate-charge2.js +1 -1
  243. package/dist/module/electronic-evidence2.js +1 -1
  244. package/dist/module/form-address-fields2.js +3 -3
  245. package/dist/module/form-control-checkbox2.js +2 -2
  246. package/dist/module/form-control-date2.js +2 -2
  247. package/dist/module/form-control-file-v22.js +1 -1
  248. package/dist/module/form-control-file2.js +2 -2
  249. package/dist/module/form-control-monetary2.js +2 -2
  250. package/dist/module/form-control-number-masked2.js +2 -2
  251. package/dist/module/form-control-number2.js +2 -2
  252. package/dist/module/form-control-radio2.js +2 -2
  253. package/dist/module/form-control-select2.js +2 -2
  254. package/dist/module/form-control-text2.js +21 -4
  255. package/dist/module/iframe-input2.js +125 -16
  256. package/dist/module/internal-button2.js +1 -1
  257. package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
  258. package/dist/module/justifi-bank-account-form.js +6 -4
  259. package/dist/module/justifi-billing-form-full.js +1 -1
  260. package/dist/module/justifi-business-details.js +3 -3
  261. package/dist/module/justifi-business-form.js +2 -2
  262. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  263. package/dist/module/justifi-card-form.js +6 -3
  264. package/dist/module/justifi-checkout-qr-code2.js +2 -2
  265. package/dist/module/justifi-checkout-summary2.js +1 -1
  266. package/dist/module/justifi-checkout.js +15 -4
  267. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  268. package/dist/module/justifi-checkouts-list.js +4 -4
  269. package/dist/module/justifi-dispute-management.js +3 -3
  270. package/dist/module/justifi-gross-payment-chart.js +2 -2
  271. package/dist/module/justifi-modular-checkout2.js +43 -19
  272. package/dist/module/justifi-order-terminals.js +3 -3
  273. package/dist/module/justifi-payment-details.js +10 -10
  274. package/dist/module/justifi-payment-provisioning.js +2 -2
  275. package/dist/module/justifi-payment-transactions-list.js +3 -3
  276. package/dist/module/justifi-payments-list-filters.js +2 -2
  277. package/dist/module/justifi-payments-list.js +3 -3
  278. package/dist/module/justifi-payout-details.js +5 -5
  279. package/dist/module/justifi-payout-transactions-list.js +3 -3
  280. package/dist/module/justifi-payouts-list-filters.js +2 -2
  281. package/dist/module/justifi-payouts-list.js +3 -3
  282. package/dist/module/justifi-paypal2.js +1 -1
  283. package/dist/module/justifi-qr-terminal.js +2 -2
  284. package/dist/module/justifi-refund-payment.js +2 -2
  285. package/dist/module/justifi-save-new-payment-method.js +1 -1
  286. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  287. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  288. package/dist/module/justifi-terminal-orders-list.js +4 -4
  289. package/dist/module/justifi-terminals-list-filters.js +1 -1
  290. package/dist/module/justifi-terminals-list.js +3 -3
  291. package/dist/module/justifi-tokenize-payment-method2.js +9 -6
  292. package/dist/module/package.js +1 -3
  293. package/dist/module/payment-method-option.js +1 -1
  294. package/dist/module/product-or-service2.js +1 -1
  295. package/dist/module/radio-list-item2.js +1 -1
  296. package/dist/module/refund-policy2.js +1 -1
  297. package/dist/module/save-new-payment-method2.js +1 -1
  298. package/dist/module/schema-validations.js +8 -2
  299. package/dist/module/shipping-details2.js +1 -1
  300. package/dist/module/table-filters-menu2.js +1 -1
  301. package/dist/module/terminal-quantity-selector2.js +1 -1
  302. package/dist/module/utils4.js +33 -1
  303. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
  304. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  305. package/dist/types/components/checkout/justifi-checkout.d.ts +9 -0
  306. package/dist/types/components/checkout/message-event-types.d.ts +2 -0
  307. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
  308. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
  309. package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
  310. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
  311. package/dist/types/components.d.ts +95 -3
  312. package/dist/types/store/checkout.store.d.ts +1 -0
  313. package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
  314. package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
  315. package/dist/types/ui-components/form/utils.d.ts +1 -0
  316. package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
  317. package/dist/types/utils/postal-code.d.ts +3 -0
  318. package/dist/webcomponents/{p-de047614.entry.js → p-06ed3518.entry.js} +1 -1
  319. package/dist/webcomponents/p-12f5fdc0.entry.js +1 -0
  320. package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
  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-357d14ee.entry.js +1 -0
  324. package/dist/webcomponents/{p-a10beb26.entry.js → p-3d02cb78.entry.js} +1 -1
  325. package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
  326. package/dist/webcomponents/p-4dabcfd6.entry.js +1 -0
  327. package/dist/webcomponents/p-511bc0b2.entry.js +1 -0
  328. package/dist/webcomponents/p-51238f79.entry.js +1 -0
  329. package/dist/webcomponents/p-521c534c.entry.js +1 -0
  330. package/dist/webcomponents/{p-0e9351c4.entry.js → p-5331e011.entry.js} +1 -1
  331. package/dist/webcomponents/p-5be775e8.entry.js +1 -0
  332. package/dist/webcomponents/{p-cec7164e.entry.js → p-5e196140.entry.js} +1 -1
  333. package/dist/webcomponents/{p-f40fa614.entry.js → p-5f20b0da.entry.js} +1 -1
  334. package/dist/webcomponents/p-63e02d42.entry.js +1 -0
  335. package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
  336. package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
  337. package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
  338. package/dist/webcomponents/p-6f7756b7.entry.js +1 -0
  339. package/dist/webcomponents/p-80177bcb.entry.js +1 -0
  340. package/dist/webcomponents/p-8758aec4.entry.js +1 -0
  341. package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
  342. package/dist/webcomponents/{p-88a44a02.entry.js → p-89ed2d99.entry.js} +1 -1
  343. package/dist/webcomponents/p-91358854.entry.js +1 -0
  344. package/dist/webcomponents/p-9b930446.entry.js +1 -0
  345. package/dist/webcomponents/p-9c4ac3c5.entry.js +1 -0
  346. package/dist/webcomponents/{p-B_2zgnvM.js → p-B6kC9tX2.js} +1 -1
  347. package/dist/webcomponents/{p-D7fNBSlC.js → p-BKrZL95i.js} +1 -1
  348. package/dist/webcomponents/{p-rFpPIJgu.js → p-Bo7ndXwR.js} +1 -1
  349. package/dist/webcomponents/{p-iA-Amt2z.js → p-C8J9uVEs.js} +1 -1
  350. package/dist/webcomponents/{p-DC2djVls.js → p-CEGSQXGU.js} +1 -1
  351. package/dist/webcomponents/{p-BjjKkMO1.js → p-CEHwp4sh.js} +1 -1
  352. package/dist/webcomponents/{p-C60AkJ6a.js → p-CKL24GQA.js} +1 -1
  353. package/dist/webcomponents/{p-BmaQUnqv.js → p-CRaiEpKf.js} +1 -1
  354. package/dist/webcomponents/p-CkrzG0pB.js +1 -0
  355. package/dist/webcomponents/{p-D694H6co.js → p-Cl6irPVE.js} +1 -1
  356. package/dist/webcomponents/p-Cpck08K0.js +1 -0
  357. package/dist/webcomponents/{p-C6Jq8YDT.js → p-DCpGH4xL.js} +1 -1
  358. package/dist/webcomponents/{p-pueOrhXO.js → p-DEfLsy2W.js} +1 -1
  359. package/dist/webcomponents/p-DF7oFWnO.js +1 -0
  360. package/dist/webcomponents/p-DMzYgqml.js +1 -0
  361. package/dist/webcomponents/p-DhrQechy.js +1 -0
  362. package/dist/webcomponents/p-FsWkrvEF.js +1 -0
  363. package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
  364. package/dist/webcomponents/{p-13814028.entry.js → p-a1ef7674.entry.js} +1 -1
  365. package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
  366. package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
  367. package/dist/webcomponents/p-aba3b0dc.entry.js +1 -0
  368. package/dist/webcomponents/{p-065b854f.entry.js → p-abebb03c.entry.js} +1 -1
  369. package/dist/webcomponents/{p-1cfa634a.entry.js → p-adaa1c98.entry.js} +1 -1
  370. package/dist/webcomponents/{p-f2b3c7d5.entry.js → p-b2b0303d.entry.js} +1 -1
  371. package/dist/webcomponents/{p-59b95eae.entry.js → p-b39c7414.entry.js} +1 -1
  372. package/dist/webcomponents/p-b925d666.entry.js +1 -0
  373. package/dist/webcomponents/p-bd4d2924.entry.js +1 -0
  374. package/dist/webcomponents/p-c172decb.entry.js +1 -0
  375. package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
  376. package/dist/webcomponents/p-d59d6c23.entry.js +1 -0
  377. package/dist/webcomponents/p-deff4422.entry.js +1 -0
  378. package/dist/webcomponents/p-e1fbadea.entry.js +1 -0
  379. package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
  380. package/dist/webcomponents/{p-a7c594d1.entry.js → p-e5feca94.entry.js} +1 -1
  381. package/dist/webcomponents/p-e75d1756.entry.js +1 -0
  382. package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
  383. package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
  384. package/dist/webcomponents/{p-16261d8a.entry.js → p-f0084d20.entry.js} +1 -1
  385. package/dist/webcomponents/p-f2c99647.entry.js +1 -0
  386. package/dist/webcomponents/{p-429046e1.entry.js → p-f5686720.entry.js} +1 -1
  387. package/dist/webcomponents/p-f681f747.entry.js +1 -0
  388. package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
  389. package/dist/webcomponents/{p-0f7e3515.entry.js → p-fd1718e0.entry.js} +4 -4
  390. package/dist/webcomponents/p-ff67c8f7.entry.js +1 -0
  391. package/dist/webcomponents/webcomponents.esm.js +1 -1
  392. package/package.json +14 -14
  393. package/LICENSE +0 -21
  394. package/dist/cjs/check-pkg-version-CjJab8fX.js +0 -47
  395. package/dist/cjs/utils-DAyWinG2.js +0 -29
  396. package/dist/collection/utils/check-pkg-version.js +0 -42
  397. package/dist/esm/check-pkg-version-BW9zgceK.js +0 -45
  398. package/dist/esm/package-BC9n8nB2.js +0 -7
  399. package/dist/esm/utils-BnjCmwMr.js +0 -27
  400. package/dist/module/check-pkg-version.js +0 -45
  401. package/dist/types/utils/check-pkg-version.d.ts +0 -1
  402. package/dist/webcomponents/p-082f912c.entry.js +0 -1
  403. package/dist/webcomponents/p-0cd689f4.entry.js +0 -1
  404. package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
  405. package/dist/webcomponents/p-10787684.entry.js +0 -1
  406. package/dist/webcomponents/p-19cabdaf.entry.js +0 -1
  407. package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
  408. package/dist/webcomponents/p-2ef913b8.entry.js +0 -1
  409. package/dist/webcomponents/p-36340e63.entry.js +0 -1
  410. package/dist/webcomponents/p-388082cd.entry.js +0 -1
  411. package/dist/webcomponents/p-3a1f8c5b.entry.js +0 -1
  412. package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
  413. package/dist/webcomponents/p-44ff4f2c.entry.js +0 -1
  414. package/dist/webcomponents/p-4740601b.entry.js +0 -1
  415. package/dist/webcomponents/p-6c7fca1a.entry.js +0 -1
  416. package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
  417. package/dist/webcomponents/p-735d397e.entry.js +0 -1
  418. package/dist/webcomponents/p-8432cb42.entry.js +0 -1
  419. package/dist/webcomponents/p-89f0c2aa.entry.js +0 -1
  420. package/dist/webcomponents/p-9b43b90d.entry.js +0 -1
  421. package/dist/webcomponents/p-9db15fac.entry.js +0 -1
  422. package/dist/webcomponents/p-9eb00966.entry.js +0 -1
  423. package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
  424. package/dist/webcomponents/p-BAvoKtN2.js +0 -1
  425. package/dist/webcomponents/p-BC9n8nB2.js +0 -1
  426. package/dist/webcomponents/p-BnjCmwMr.js +0 -1
  427. package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
  428. package/dist/webcomponents/p-_MjmE9YT.js +0 -1
  429. package/dist/webcomponents/p-a71cc8e2.entry.js +0 -1
  430. package/dist/webcomponents/p-a8d25057.entry.js +0 -1
  431. package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
  432. package/dist/webcomponents/p-b9ba7c95.entry.js +0 -1
  433. package/dist/webcomponents/p-c385f10d.entry.js +0 -1
  434. package/dist/webcomponents/p-c55fdbbf.entry.js +0 -1
  435. package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
  436. package/dist/webcomponents/p-d3544e86.entry.js +0 -1
  437. package/dist/webcomponents/p-f0434a13.entry.js +0 -1
  438. package/dist/webcomponents/p-f5cb6a26.entry.js +0 -1
  439. package/dist/webcomponents/p-f9f310dc.entry.js +0 -1
  440. package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
  441. package/dist/webcomponents/p-riZDHN5-.js +0 -1
@@ -1,27 +1,27 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CV0Pyo1O.js';
2
- import { A as Api } from './Api-nVK-rgbk.js';
2
+ import { A as Api } from './Api-BH6Wa9CT.js';
3
3
  import { A as ApplePayConfig, r as ApplePayHelpers, s as ApplePayPaymentRequest, t as ApplePaySessionStatus, u as ApplePayButtonStyle, v as ApplePayButtonType, w as ApplePayMerchantCapability, C as ComponentErrorSeverity, b as ComponentErrorCodes, c as ComponentErrorMessages, I as ICheckoutStatus, x as PLAID_ERROR_SEVERITY, y as PLAID_ERROR_MESSAGES, z as PlaidErrorCodes } from './Plaid-CRcTLeaz.js';
4
4
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
5
5
  import './event-types-CZfYo5-1.js';
6
6
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
7
- import { c as checkoutStore, o as onChange, a as onAnyChange, g as getAvailablePaymentMethodTypes, b as getCheckoutState } from './checkout.store-B2mtQcB5.js';
7
+ import { c as checkoutStore, o as onChange, a as onAnyChange, g as getAvailablePaymentMethodTypes, b as getCheckoutState } from './checkout.store-B8CGkx0o.js';
8
8
  import { t as text, r as radioListItem } from './parts-Bu7gdOaV.js';
9
9
  import { f as formatCurrency } from './utils-D8J8OvxY.js';
10
10
  import { w as waitForConfig, c as configState } from './config-state-BKOsYBXZ.js';
11
11
  import { H as Header1 } from './header-1-BI0o3rMW.js';
12
12
  import { H as Header2, b as insuranceValuesOn, h as hasInsuranceValueChanged, i as insuranceValues } from './insurance-state-DM0VaTpH.js';
13
13
  import { H as Header3 } from './header-3-DNqRk_HO.js';
14
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
15
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
14
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
15
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
16
16
  import './dinero-HXpYMWUU.js';
17
17
  import './Pagination-CLHwhyvu.js';
18
18
  import './Business-CTtGaVYs.js';
19
19
  import { m as makeGetCheckout, a as makeCheckoutComplete } from './checkout-actions-CWnrb317.js';
20
- import { C as CheckoutService } from './checkout.service-JA7oTq5d.js';
21
- import { P as PlaidService } from './plaid.service-C6Ltk2ef.js';
20
+ import { C as CheckoutService } from './checkout.service-DvSxk9EZ.js';
21
+ import { P as PlaidService } from './plaid.service-Umm80G4q.js';
22
22
  import { P as PAYMENT_METHODS, a as PaymentMethod, b as PAYMENT_MODE } from './index-DEx8fQeW.js';
23
23
  import { C as CardBrandLabels } from './payment-method-option-utils-lUHAQVFl.js';
24
- import './package-BC9n8nB2.js';
24
+ import './package-DhrQechy.js';
25
25
  import './index-3wWWWrhn.js';
26
26
  import './utils-DaPywmTI.js';
27
27
 
@@ -758,7 +758,7 @@ const JustifiCheckoutSummary = class {
758
758
  registerInstance(this, hostRef);
759
759
  }
760
760
  render() {
761
- return (h(StyledHost, { key: '7d3447ff4daa9bf4f603ca381027b3f43cfcc6a1' }, h("section", { key: '1c8189ccde6dc986ad2d4c74da2dd10cacfc1c36' }, h("div", { key: '45e6d5f47d8a92e0bd4a7bfa427630a96f049b4a' }, h("div", { key: '9900b5fd770cd59b00803c3614216c16a803da41', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: '16cec140ef6912533a80b1f6341fcc9cb341b478' }, h("span", { key: 'f8883538c99a524017bb102bfd8cfaea7062e650', part: text }, "Total"), "\u00A0", h("span", { key: '11baa64630a60c56cedfa53548c107ec3fe3c0f5', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
761
+ return (h(StyledHost, { key: '13d0570e2bdb79d842f9c0a17c7403963ea167c8' }, h("section", { key: 'c15f36caa2a9ebb66c7f0a16393926b643f1bc3b' }, h("div", { key: '1e4e5d32cebb57ceaeb3786a29a9e08c8e83ac80' }, h("div", { key: '42ff5c6ef33654a88858e8ed48e230dd674d1953', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: 'c21d5eb012664efdd71e82bf24a88d0fefedad8c' }, h("span", { key: 'a8876afe5d7e993077ed8c4fb140c745d98e9196', part: text }, "Total"), "\u00A0", h("span", { key: 'b81156e9f9240656b51f6ed374db9878bb3137c9', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
762
762
  }
763
763
  };
764
764
 
@@ -928,6 +928,14 @@ const JustifiModularCheckout = class {
928
928
  this.submitEvent = createEvent(this, "submit-event", 7);
929
929
  this.checkoutChangedEvent = createEvent(this, "checkout-changed", 7);
930
930
  this.plaidService = new PlaidService();
931
+ /**
932
+ * Mask the card number to its last four digits when the field loses focus,
933
+ * with an eye toggle to reveal it. Applies to the `justifi-card-form`
934
+ * rendered inside this checkout. Defaults to false.
935
+ *
936
+ * Anti-shoulder-surfing only, not a secrecy boundary.
937
+ */
938
+ this.maskCardNumber = false;
931
939
  this.handlePaypalStarted = () => {
932
940
  checkoutStore.isWalletProcessing = true;
933
941
  };
@@ -1028,6 +1036,9 @@ const JustifiModularCheckout = class {
1028
1036
  checkoutStore.selectedPaymentMethod = undefined;
1029
1037
  };
1030
1038
  }
1039
+ maskCardNumberChanged() {
1040
+ checkoutStore.maskCardNumber = !!this.maskCardNumber;
1041
+ }
1031
1042
  connectedCallback() {
1032
1043
  var _a;
1033
1044
  this.observer = new MutationObserver(() => {
@@ -1041,6 +1052,7 @@ const JustifiModularCheckout = class {
1041
1052
  subtree: true,
1042
1053
  });
1043
1054
  checkoutStore.checkoutId = this.checkoutId;
1055
+ checkoutStore.maskCardNumber = !!this.maskCardNumber;
1044
1056
  const config = {
1045
1057
  authToken: this.authToken,
1046
1058
  checkoutId: this.checkoutId,
@@ -1055,7 +1067,7 @@ const JustifiModularCheckout = class {
1055
1067
  }
1056
1068
  componentWillLoad() {
1057
1069
  this.analytics = new JustifiAnalytics(this);
1058
- checkPkgVersion();
1070
+ detectDuplicateVersion();
1059
1071
  checkoutStore.authToken = this.authToken;
1060
1072
  this.fetchCheckout();
1061
1073
  // Refresh the checkout data when insurance values actually change (not on initial load)
@@ -1111,11 +1123,11 @@ const JustifiModularCheckout = class {
1111
1123
  return;
1112
1124
  }
1113
1125
  },
1114
- onError: (error) => {
1126
+ onError: ({ error, code, severity }) => {
1115
1127
  this.errorEvent.emit({
1116
- message: error.message,
1117
- errorCode: error.code,
1118
- severity: error.severity,
1128
+ message: error,
1129
+ errorCode: code,
1130
+ severity,
1119
1131
  });
1120
1132
  },
1121
1133
  });
@@ -1264,8 +1276,14 @@ const JustifiModularCheckout = class {
1264
1276
  if (isNewCard || isNewBankAccount) {
1265
1277
  if (this.paymentMethodFormRef)
1266
1278
  promises.push(this.paymentMethodFormRef.validate());
1267
- if (this.billingFormRef)
1279
+ // queryFormRefs matches justifi-tokenize-payment-method with both
1280
+ // selectors, so a checkout that slots only that component gets the same
1281
+ // element in both refs -- and that component already validates its own
1282
+ // billing form. Validating it again doubles every hosted-field round
1283
+ // trip and runs the billing form twice.
1284
+ if (this.billingFormRef && this.billingFormRef !== this.paymentMethodFormRef) {
1268
1285
  promises.push(this.billingFormRef.validate());
1286
+ }
1269
1287
  }
1270
1288
  if (promises.length === 0)
1271
1289
  return true;
@@ -1305,6 +1323,15 @@ const JustifiModularCheckout = class {
1305
1323
  });
1306
1324
  return;
1307
1325
  }
1326
+ if (!isValid) {
1327
+ checkoutStore.isSubmitting = false;
1328
+ this.errorEvent.emit({
1329
+ message: "Please fill in all required fields.",
1330
+ errorCode: ComponentErrorCodes.VALIDATION_ERROR,
1331
+ severity: ComponentErrorSeverity.ERROR,
1332
+ });
1333
+ return;
1334
+ }
1308
1335
  const isNewCard = ((_a = checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.NEW_CARD;
1309
1336
  const isNewBankAccount = ((_b = checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.NEW_BANK_ACCOUNT;
1310
1337
  const isPlaid = ((_c = checkoutStore.selectedPaymentMethod) === null || _c === void 0 ? void 0 : _c.type) === PAYMENT_METHODS.PLAID;
@@ -1359,15 +1386,6 @@ const JustifiModularCheckout = class {
1359
1386
  return;
1360
1387
  }
1361
1388
  }
1362
- if (!isValid) {
1363
- checkoutStore.isSubmitting = false;
1364
- this.errorEvent.emit({
1365
- message: "Please fill in all required fields.",
1366
- errorCode: ComponentErrorCodes.VALIDATION_ERROR,
1367
- severity: ComponentErrorSeverity.ERROR,
1368
- });
1369
- return;
1370
- }
1371
1389
  // Sezzle has no payment token; approval comes from the Sezzle popup
1372
1390
  const isSezzle = ((_e = checkoutStore.selectedPaymentMethod) === null || _e === void 0 ? void 0 : _e.type) === PAYMENT_METHODS.SEZZLE;
1373
1391
  if (isSezzle) {
@@ -1440,10 +1458,10 @@ const JustifiModularCheckout = class {
1440
1458
  message: "Checkout completed successfully",
1441
1459
  });
1442
1460
  },
1443
- onError: (error) => {
1461
+ onError: ({ error }) => {
1444
1462
  checkoutStore.isSubmitting = false;
1445
1463
  this.errorEvent.emit({
1446
- message: error.message,
1464
+ message: error,
1447
1465
  errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
1448
1466
  severity: ComponentErrorSeverity.ERROR,
1449
1467
  });
@@ -1451,9 +1469,12 @@ const JustifiModularCheckout = class {
1451
1469
  });
1452
1470
  }
1453
1471
  render() {
1454
- return h(Host, { key: '127bf2aea6758c7d91e33f252a3db4bc27b066ff' });
1472
+ return h(Host, { key: 'd1e1326e66bc9347de573bc8b3aa30e19178ade9' });
1455
1473
  }
1456
1474
  get hostEl() { return getElement(this); }
1475
+ static get watchers() { return {
1476
+ "maskCardNumber": ["maskCardNumberChanged"]
1477
+ }; }
1457
1478
  };
1458
1479
 
1459
1480
  const api = Api();
@@ -1658,7 +1679,7 @@ const JustifiPaypal = class {
1658
1679
  return order;
1659
1680
  }
1660
1681
  render() {
1661
- return (h(StyledHost, { key: '05c771ae41d3b21da7046e70c7d0e03efc296a0c' }, h("div", { key: '8e7a14372ce29b4da284efadb43c27d0c059607e', class: "paypal-buttons", ref: (el) => (this.buttonsEl = el) }, h("paypal-button", { key: 'aa7fa82c96ca4d41872f445a01e72a18f6f5920a', type: "pay", ref: (el) => (this.paypalButtonEl = el), onClick: () => this.startSession(this.paypalSession, 'paypal') }), h("venmo-button", { key: '2cb068aa82460068548f133607cebec096028a41', type: "pay", ref: (el) => (this.venmoButtonEl = el), onClick: () => this.startSession(this.venmoSession, 'venmo') })), h("style", { key: '159cc68f682ed79a9a83be7d1b4c88127f8a2623' }, `
1682
+ return (h(StyledHost, { key: '39a2b473cfa47da5e079adbaffa93663289cb8ec' }, h("div", { key: '9d3e3ff9236d2462157b310d691c43f54b6651dd', class: "paypal-buttons", ref: (el) => (this.buttonsEl = el) }, h("paypal-button", { key: 'a0049d2bcf4aa295f65563f49c3287b2da2e63b8', type: "pay", ref: (el) => (this.paypalButtonEl = el), onClick: () => this.startSession(this.paypalSession, 'paypal') }), h("venmo-button", { key: 'fd71ba73af2223271160601ec76039d3e0d6cb02', type: "pay", ref: (el) => (this.venmoButtonEl = el), onClick: () => this.startSession(this.venmoSession, 'venmo') })), h("style", { key: '7c7b62b3bbdf001760e888b4206702d210aeadcb' }, `
1662
1683
  .paypal-buttons {
1663
1684
  display: none;
1664
1685
  gap: 8px;
@@ -2386,7 +2407,7 @@ const JustifiTokenizePaymentMethod = class {
2386
2407
  }
2387
2408
  }
2388
2409
  componentWillLoad() {
2389
- checkPkgVersion();
2410
+ detectDuplicateVersion();
2390
2411
  this.analytics = new JustifiAnalytics(this);
2391
2412
  }
2392
2413
  handleRadioClick(event) {
@@ -2441,9 +2462,10 @@ const JustifiTokenizePaymentMethod = class {
2441
2462
  this.billingFormRef.validate(),
2442
2463
  this.paymentMethodFormRef.validate(),
2443
2464
  ]);
2465
+ // Field-level messages stay inside the hosted iframes, so only billing contributes errors.
2444
2466
  const result = {
2445
2467
  isValid: billingValidation.isValid && paymentMethodValidation.isValid,
2446
- errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
2468
+ errors: Object.assign({}, billingValidation.errors),
2447
2469
  };
2448
2470
  return result;
2449
2471
  }
@@ -2605,13 +2627,13 @@ const JustifiTokenizePaymentMethod = class {
2605
2627
  return paymentMethodType === PAYMENT_METHODS.NEW_CARD ? (h("card-form", { ref: (el) => {
2606
2628
  if (el)
2607
2629
  this.paymentMethodFormRef = el;
2608
- } })) : (h("bank-account-form", { ref: (el) => {
2630
+ }, maskCardNumber: this.maskCardNumber })) : (h("bank-account-form", { ref: (el) => {
2609
2631
  if (el)
2610
2632
  this.paymentMethodFormRef = el;
2611
- } }));
2633
+ }, showAccountNumberConfirmation: this.showAccountNumberConfirmation }));
2612
2634
  }
2613
2635
  render() {
2614
- return (h(StyledHost, { key: '16a5a47febb09295c95f141ddc96a849e530c477' }, h("form", { key: 'e1ac3ac80435b32cb0a742198d814778bffd635c' }, h("fieldset", { key: '68d0f984d3e66a6abc794e8b2086e27f26ecc809' }, h("div", { key: 'b1759ec1b9c94a976da992947b06da6d8f48f553', class: "row gy-3" }, h("div", { key: 'bc1ef82406d3da36c5d4d97b1a10259de87fdd09', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'ed26f2908aa90daba5ab320a668369566b9dacfa', class: "col-12" }, h("internal-button", { key: '094cdacb592825374ad33dd80a05091747bfec4b', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
2636
+ return (h(StyledHost, { key: 'd065263c69beef410298f14a3c8e595460149267' }, h("form", { key: 'cbf67700b366e26eb9a6aa1fe07afd3f7baf5c52' }, h("fieldset", { key: '3fd1ccefca659985eb2b90c1080c71c0f2ffe99a' }, h("div", { key: '7181cff13f4cc7aa6c00f4023757bac96625e87b', class: "row gy-3" }, h("div", { key: 'c04c382e858eab02206902d23e3921d15d2bfebc', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: '9faa4417ba3e5dba526103f8d92fd5a88ce2df7d', class: "col-12" }, h("internal-button", { key: 'e4fc2482631553212e5cf62b07f2f44f32239b75', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
2615
2637
  }
2616
2638
  get host() { return getElement(this); }
2617
2639
  static get watchers() { return {
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
3
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
2
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
3
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
4
4
  import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
5
5
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BC9n8nB2.js';
8
- import './Api-nVK-rgbk.js';
7
+ import './package-DhrQechy.js';
8
+ import './Api-BH6Wa9CT.js';
9
9
  import './utils-D8J8OvxY.js';
10
10
  import './dinero-HXpYMWUU.js';
11
11
  import './Plaid-CRcTLeaz.js';
@@ -19,7 +19,7 @@ const JustifiBankAccountBillingFormSimple = class {
19
19
  }
20
20
  async componentWillLoad() {
21
21
  await waitForConfig();
22
- checkPkgVersion();
22
+ detectDuplicateVersion();
23
23
  this.analytics = new JustifiAnalytics(this);
24
24
  }
25
25
  disconnectedCallback() {
@@ -35,7 +35,7 @@ const JustifiBankAccountBillingFormSimple = class {
35
35
  return (_b = (_a = this.bankAccountBillingFormSimpleRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
36
36
  }
37
37
  render() {
38
- return (h(StyledHost, { key: '9848071f08342d3f5c2f7001af6e15148e713495' }, h("bank-account-billing-form-simple", { key: '35f2baeb2f017116199ccff431d0acac01ad498f', legend: this.legend, ref: (el) => (this.bankAccountBillingFormSimpleRef = el) })));
38
+ return (h(StyledHost, { key: 'a991c5bf6a8dfac85e274b53a0c4c6388c03f661' }, h("bank-account-billing-form-simple", { key: '0db34cb082719bdb6d5fd62c5976734cc8b0db14', legend: this.legend, ref: (el) => (this.bankAccountBillingFormSimpleRef = el) })));
39
39
  }
40
40
  };
41
41
 
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
3
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
2
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
3
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
4
4
  import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
5
5
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BC9n8nB2.js';
8
- import './Api-nVK-rgbk.js';
7
+ import './package-DhrQechy.js';
8
+ import './Api-BH6Wa9CT.js';
9
9
  import './utils-D8J8OvxY.js';
10
10
  import './dinero-HXpYMWUU.js';
11
11
  import './Plaid-CRcTLeaz.js';
@@ -16,10 +16,11 @@ import './index-3wWWWrhn.js';
16
16
  const JustifiBankAccountForm = class {
17
17
  constructor(hostRef) {
18
18
  registerInstance(this, hostRef);
19
+ this.showAccountNumberConfirmation = false;
19
20
  }
20
21
  async componentWillLoad() {
21
22
  await waitForConfig();
22
- checkPkgVersion();
23
+ detectDuplicateVersion();
23
24
  this.analytics = new JustifiAnalytics(this);
24
25
  }
25
26
  disconnectedCallback() {
@@ -28,7 +29,7 @@ const JustifiBankAccountForm = class {
28
29
  }
29
30
  async validate() {
30
31
  if (!this.bankAccountFormElement) {
31
- return false;
32
+ return { isValid: false };
32
33
  }
33
34
  return this.bankAccountFormElement.validate();
34
35
  }
@@ -43,7 +44,7 @@ const JustifiBankAccountForm = class {
43
44
  return this.bankAccountFormElement.tokenize({ clientId, paymentMethodMetadata, account });
44
45
  }
45
46
  render() {
46
- return (h(StyledHost, { key: '1263233d6c63c0df4a2a6a17b263651156ad6bee' }, h("bank-account-form", { key: 'f6c6707201ef127eafc81e12535bcfa37ddf3c5d', ref: (el) => (this.bankAccountFormElement = el) })));
47
+ return (h(StyledHost, { key: '3ac1f01cffa56e4ce30214c6290af227dc21fd6f' }, h("bank-account-form", { key: 'd6c194dd830d1ea2cfcbdc0af2c3427aaa7652aa', ref: (el) => (this.bankAccountFormElement = el), showAccountNumberConfirmation: this.showAccountNumberConfirmation })));
47
48
  }
48
49
  };
49
50
 
@@ -15,7 +15,7 @@ const JustifiBillingFormFull = class {
15
15
  return (_b = (_a = this.billingFormFullRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
16
16
  }
17
17
  render() {
18
- return (h(StyledHost, { key: '0486f3f304d4751751b54a4a698ef5d7cb742947' }, h("billing-form-full", { key: '4c0822f484b70a14dca9309f6d145e1c8b6261dd', legend: this.legend, ref: (el) => (this.billingFormFullRef = el) })));
18
+ return (h(StyledHost, { key: 'bc205e29da4d4db453b558744e5968486ec4816f' }, h("billing-form-full", { key: '624efbdb7660c6634b878c17cad3f34cf802d8e8', legend: this.legend, ref: (el) => (this.billingFormFullRef = el) })));
19
19
  }
20
20
  };
21
21
 
@@ -1,20 +1,20 @@
1
1
  import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
2
  import { E as ErrorState } from './utils-BFduyAPr.js';
3
- import { B as BusinessService } from './business.service-Cq7H5w1T.js';
3
+ import { B as BusinessService } from './business.service-XOnczlAa.js';
4
4
  import { m as makeGetBusiness } from './get-business-IZpxKRZM.js';
5
5
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
6
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
7
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
6
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
7
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
8
8
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
9
9
  import './event-types-CZfYo5-1.js';
10
10
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
11
11
  import './parts-Bu7gdOaV.js';
12
- import './Api-nVK-rgbk.js';
12
+ import './Api-BH6Wa9CT.js';
13
13
  import './config-state-BKOsYBXZ.js';
14
14
  import './index-3wWWWrhn.js';
15
15
  import './utils-D8J8OvxY.js';
16
16
  import './dinero-HXpYMWUU.js';
17
- import './package-BC9n8nB2.js';
17
+ import './package-DhrQechy.js';
18
18
  import './Pagination-CLHwhyvu.js';
19
19
  import './Business-CTtGaVYs.js';
20
20
  import './utils-DaPywmTI.js';
@@ -31,7 +31,7 @@ const JustifiBusinessDetails = class {
31
31
  this.loading = true;
32
32
  }
33
33
  componentWillLoad() {
34
- checkPkgVersion();
34
+ detectDuplicateVersion();
35
35
  this.analytics = new JustifiAnalytics(this);
36
36
  this.initializeGetBusiness();
37
37
  }
@@ -87,7 +87,7 @@ const JustifiBusinessDetails = class {
87
87
  });
88
88
  }
89
89
  render() {
90
- return (h(StyledHost, { key: '7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7' }, this.loading && h(BusinessDetailsLoading, { key: '7c3439e0c247436cd7951d3bdc32e7672c9f8447' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage && this.business && (h("justifi-details", { key: 'bf57dacf2067f2704014ce3e002958e3306bba73', errorMessage: this.errorMessage }, h("div", { key: '46d19a178ba0d33aa21a4f3900128e3e905731a9', slot: 'detail-sections' }, h("core-info-details", { key: 'ac217a4cfe6b45810a85ca320760b7331f76e60b', business: this.business }), h("legal-address-details", { key: '1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797', legalAddress: this.business.legal_address }), h("representative-details", { key: '1e0833606b129f69a05946726172963cbec05189', representative: this.business.representative }), h("owner-details", { key: 'c974111dc67a8961ef6435c34843ca927ad8a7e5', owners: this.business.owners }), h("additional-questions-details", { key: '0951d284a373457e98a1dafc80231ec3ee057e0a', additionalQuestions: this.business.additional_questions }))))));
90
+ return (h(StyledHost, { key: '5591589ce180d7102dc3403143556c1302af3fe5' }, this.loading && h(BusinessDetailsLoading, { key: 'c45c978e7b9b1a2e086558be669be4f9c9962965' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage && this.business && (h("justifi-details", { key: 'cbb51e9f2f7ab55573349cb2106949a5ca91833d', errorMessage: this.errorMessage }, h("div", { key: 'c85ae2fd98b56566795383c3a799b9b93853a786', slot: 'detail-sections' }, h("core-info-details", { key: '2a582bf825f75176e680882f05d287b1791a411b', business: this.business }), h("legal-address-details", { key: '3855cc37f98885547c425e7b21f3f153604ca8ee', legalAddress: this.business.legal_address }), h("representative-details", { key: '16b323711a50310012ce46f8d83d2ab8f64e1461', representative: this.business.representative }), h("owner-details", { key: 'fd3609e46477071432a5fa276b84df00d5717f2c', owners: this.business.owners }), h("additional-questions-details", { key: 'b42b0499a259c3e73c91278a5515e2dcf00c3f5f', additionalQuestions: this.business.additional_questions }))))));
91
91
  }
92
92
  static get watchers() { return {
93
93
  "businessId": ["propChanged"],
@@ -1,29 +1,29 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
2
  import { c as create$3, F as FormController } from './index.esm-KCSohgHx.js';
3
- import { b as businessCoreInfoSchemaUSA, i as identitySchemaUSA, a as additionalQuestionsSchema, c as addressSchemaUSA, d as businessCoreInfoSchemaCAN, e as identitySchemaCAN, f as addressSchemaCAN } from './business-identity-schema-BP61Unwf.js';
3
+ import { b as businessCoreInfoSchemaUSA, i as identitySchemaUSA, a as additionalQuestionsSchema, c as addressSchemaUSA, d as businessCoreInfoSchemaCAN, e as identitySchemaCAN, f as addressSchemaCAN } from './business-identity-schema-BLKCH6xV.js';
4
4
  import './config-state-BKOsYBXZ.js';
5
5
  import './dinero-HXpYMWUU.js';
6
6
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
7
7
  import './Pagination-CLHwhyvu.js';
8
8
  import { C as CountryCode, B as Business, b as BusinessFormServerErrors } from './Business-CTtGaVYs.js';
9
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
9
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
10
10
  import { B as Button } from './button-CBzHAOFW.js';
11
11
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
12
12
  import { H as Header1 } from './header-1-BI0o3rMW.js';
13
13
  import './event-types-CZfYo5-1.js';
14
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
14
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
15
15
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
16
16
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
17
17
  import { m as makeGetBusiness, a as makePatchBusiness } from './payment-provisioning-actions-VtleD509.js';
18
- import { B as BusinessService } from './business.service-Cq7H5w1T.js';
18
+ import { B as BusinessService } from './business.service-XOnczlAa.js';
19
19
  import './_commonjsHelpers-BFTU3MAI.js';
20
- import './schema-validations-De7Qe0VU.js';
21
- import './country-config-F5YwgHgR.js';
20
+ import './schema-validations-8GJ34Do1.js';
21
+ import './country-config-DJFj1v-Q.js';
22
22
  import './business-form-options-DLRkVtee.js';
23
23
  import './index-3wWWWrhn.js';
24
24
  import './utils-D8J8OvxY.js';
25
- import './package-BC9n8nB2.js';
26
- import './Api-nVK-rgbk.js';
25
+ import './package-DhrQechy.js';
26
+ import './Api-BH6Wa9CT.js';
27
27
  import './parts-Bu7gdOaV.js';
28
28
  import './utils-DaPywmTI.js';
29
29
 
@@ -79,7 +79,7 @@ const JustifiBusinessForm = class {
79
79
  };
80
80
  }
81
81
  componentWillLoad() {
82
- checkPkgVersion();
82
+ detectDuplicateVersion();
83
83
  this.analytics = new JustifiAnalytics(this);
84
84
  this.formController = new FormController(businessFormSchema);
85
85
  this.initializeApi();
@@ -15,7 +15,7 @@ const JustifiCardBillingFormSimple = class {
15
15
  return (_b = (_a = this.cardBillingFormSimpleRef) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : { isValid: false, errors: {} };
16
16
  }
17
17
  render() {
18
- return (h(StyledHost, { key: '252d0c30a2ce3775759aa0490592bea6608620ca' }, h("card-billing-form-simple", { key: '62a33d79b9b12dfefbfef68f0cf9ec8beb52d177', legend: this.legend, ref: (el) => (this.cardBillingFormSimpleRef = el) })));
18
+ return (h(StyledHost, { key: 'f8cdac6b006bbaf15d7e6b92db8f781afa40899f' }, h("card-billing-form-simple", { key: 'b0973b5459109da5eac937fd0aefbff1c924924c', legend: this.legend, ref: (el) => (this.cardBillingFormSimpleRef = el) })));
19
19
  }
20
20
  };
21
21
 
@@ -1,17 +1,19 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
3
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
2
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
3
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
4
4
  import { w as waitForConfig } from './config-state-BKOsYBXZ.js';
5
5
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import './package-BC9n8nB2.js';
8
- import './Api-nVK-rgbk.js';
7
+ import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
8
+ import './package-DhrQechy.js';
9
+ import './Api-BH6Wa9CT.js';
9
10
  import './utils-D8J8OvxY.js';
10
11
  import './dinero-HXpYMWUU.js';
11
12
  import './Plaid-CRcTLeaz.js';
12
13
  import './Pagination-CLHwhyvu.js';
13
14
  import './Business-CTtGaVYs.js';
14
15
  import './index-3wWWWrhn.js';
16
+ import './index-DEx8fQeW.js';
15
17
 
16
18
  const JustifiCardForm = class {
17
19
  constructor(hostRef) {
@@ -19,7 +21,7 @@ const JustifiCardForm = class {
19
21
  }
20
22
  async componentWillLoad() {
21
23
  await waitForConfig();
22
- checkPkgVersion();
24
+ detectDuplicateVersion();
23
25
  this.analytics = new JustifiAnalytics(this);
24
26
  }
25
27
  disconnectedCallback() {
@@ -33,7 +35,8 @@ const JustifiCardForm = class {
33
35
  return this.cardFormElement.tokenize({ clientId, paymentMethodMetadata, account });
34
36
  }
35
37
  render() {
36
- return (h(StyledHost, { key: '4fa9ff677d40a6733c33d34135fe85e52392f8b0' }, h("card-form", { key: '3fe97adcb966b78dc28d5902409671e88525ca41', ref: (el) => (this.cardFormElement = el) })));
38
+ var _a;
39
+ return (h(StyledHost, { key: '49cf4f202b0f327bd8ca4b4b3c892ae6df4a81f6' }, h("card-form", { key: '480abf1238ed4b5bb1edd5362a432639fc9a7fb9', ref: (el) => (this.cardFormElement = el), maskCardNumber: (_a = this.maskCardNumber) !== null && _a !== void 0 ? _a : checkoutStore.maskCardNumber })));
37
40
  }
38
41
  };
39
42
 
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-CV0Pyo1O.js';
2
2
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
3
3
  import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
4
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
4
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
5
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
6
6
  import './utils-D8J8OvxY.js';
7
7
  import './dinero-HXpYMWUU.js';
8
- import './package-BC9n8nB2.js';
9
- import './Api-nVK-rgbk.js';
8
+ import './package-DhrQechy.js';
9
+ import './Api-BH6Wa9CT.js';
10
10
  import './config-state-BKOsYBXZ.js';
11
11
  import './index-3wWWWrhn.js';
12
12
  import './Pagination-CLHwhyvu.js';
@@ -3090,7 +3090,7 @@ const JustifiCheckoutQrCode = class {
3090
3090
  this.size = 256;
3091
3091
  }
3092
3092
  componentWillLoad() {
3093
- checkPkgVersion();
3093
+ detectDuplicateVersion();
3094
3094
  this.analytics = new JustifiAnalytics(this);
3095
3095
  }
3096
3096
  componentDidLoad() {
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-CV0Pyo1O.js';
2
- import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
3
- import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
4
- import { c as checkoutStore } from './checkout.store-B2mtQcB5.js';
2
+ import { J as JustifiAnalytics } from './Analytics-tBzmPsnT.js';
3
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-BD3-8NL2.js';
4
+ import { c as checkoutStore } from './checkout.store-B8CGkx0o.js';
5
5
  import { c as checkoutSummary } from './parts-Bu7gdOaV.js';
6
6
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
7
7
  import './event-types-CZfYo5-1.js';
8
8
  import { P as PAYMENT_METHODS } from './index-DEx8fQeW.js';
9
- import './package-BC9n8nB2.js';
10
- import './Api-nVK-rgbk.js';
9
+ import './package-DhrQechy.js';
10
+ import './Api-BH6Wa9CT.js';
11
11
  import './config-state-BKOsYBXZ.js';
12
12
  import './index-3wWWWrhn.js';
13
13
  import './utils-D8J8OvxY.js';
@@ -31,6 +31,15 @@ const JustifiCheckout = class {
31
31
  this.disablePaymentMethodGroup = false;
32
32
  this.hideBankAccountBillingForm = false;
33
33
  this.hideCardBillingForm = false;
34
+ /** Renders a "Confirm Account Number" field in the bank account form. */
35
+ this.showAccountNumberConfirmation = false;
36
+ /**
37
+ * Mask the card number to its last four digits when the field loses focus,
38
+ * with an eye toggle to reveal it. Defaults to false.
39
+ *
40
+ * Anti-shoulder-surfing only, not a secrecy boundary.
41
+ */
42
+ this.maskCardNumber = false;
34
43
  }
35
44
  propChanged() {
36
45
  this.updateStore();
@@ -41,7 +50,7 @@ const JustifiCheckout = class {
41
50
  }
42
51
  }
43
52
  componentWillLoad() {
44
- checkPkgVersion();
53
+ detectDuplicateVersion();
45
54
  this.analytics = new JustifiAnalytics(this);
46
55
  }
47
56
  disconnectedCallback() {
@@ -81,9 +90,9 @@ const JustifiCheckout = class {
81
90
  }
82
91
  render() {
83
92
  var _a, _b;
84
- return (h(StyledHost, { key: 'be64697a74e404e567c718562f72ca6cf644a2a4' }, h("justifi-modular-checkout", { key: '49be0912aa949927cb11bde45c6ade0eb25744be', ref: (el) => {
93
+ return (h(StyledHost, { key: '0458037995870159b8fae4036d6b5a4d0d5acd03' }, h("justifi-modular-checkout", { key: '698f0f48e8bd6fd7bf2102ed13308419cab53390', ref: (el) => {
85
94
  this.modularCheckoutRef = el;
86
- }, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '7ae8865515c16d119d0c951670b86f53006f5a2f', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '697f67f1603f78d852c3900f424fea1559dcbbc7', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '005b320bb2318b6e5a888911fe90aeeeb8ca58f1', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: 'e6e4e720e0d619aa338b1a64ccc75f6bcfb53129' }, h("justifi-checkout-summary", { key: '5bbc4d7223f56fe70bcc9810ebcde55264e17943' }))), h("div", { key: '7c5f714e729c26a8c3589e912100d38e61cb3846', class: "col-12 mt-4" }, h("slot", { key: 'ae66ebfe4a0e1456aaabd706523ef17e9c2c4b50', name: "insurance" })), h("div", { key: '3d74c4078230299a0d093568f9edf61ddede06d6', class: "col-12 mt-4" }, h("justifi-header", { key: '98fad7779ad81e44f56d488f8f9bebb843c8b044', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: 'a522e1c11e8412c0df0b272201a9eb929e8f38a5', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: '670a875b91e3c4f41cc1f99e159ddb62d5d2cd9d', class: "d-flex flex-column" }, h("section", { key: '660a700bfdffa79b3e00da2ae186f98fbefc59de' }, h("div", { key: '3c314f058f5a6bf745800790dcad6b0f09ec9fdf' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '9b3003bc6a7e2a85c64d28ac1457871297fcb570', class: "mb-3" }, h("justifi-apple-pay", { key: '25fb043d7fdd2308ceaf8cef9b8e3db72c276ec8' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: '62ea38828ed1e7fe795cd92c1523e0a09dbb1249', class: "mb-3" }, h("justifi-google-pay", Object.assign({ key: '6bf9455e95950766204a4b9a16c51512961dab6d', ref: (el) => (this.googlePayRef = el) }, (this.googlePayEnv != null ? { environment: this.googlePayEnv } : {}))))), this.availablePaymentMethods.includes(PAYMENT_METHODS.PAYPAL) && (h("div", { key: 'a1af9d7ec013aced03e3eb1e768c0dcb378c8ff2', class: "mb-3" }, h("justifi-paypal", { key: '7e0106b73a4844ffc99c353cbc6365cf9c17964c' }))), h("justifi-saved-payment-methods", { key: '4f4aae6378928ebd28d1015fd9f4dde7403e20a5' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'ac9a3b1ce4d8dff5c75417ff62aeddbb1aac5aa2', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: '92fa98d5d28cfa4327631238b5fbf58e2a6096c9', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: 'f40e4195ed8ef1dbff50a870b1d0136968d78fb1', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '3d6b6108fa078dc2ce7a7048dffd61b5767010be', class: "mt-4" }, h("justifi-button", { key: '43370805937c92ad494cce2c493d641066c0b894', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
95
+ }, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '71c1ff8052866846cd898e9068fe030bd938958a', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '9721762b2b13d5a06911c5bb43f6c5c987ad724d', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: 'bc9728f87907b00d2a80bdc0503547f08af135f4', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: '210d0455eb21b1471ae5cea863a98804677b8de2' }, h("justifi-checkout-summary", { key: '9e620e15ebd88ccf028930498981d6cddd18143b' }))), h("div", { key: '0c0a66263e8da3f387fb0df78a35df6b79506f94', class: "col-12 mt-4" }, h("slot", { key: 'aaa920ceb1af4b1aba963dc2c050dcafc6b2ecc3', name: "insurance" })), h("div", { key: 'b1f39a2a4bdf421e8db41a9e47d6a02298a22566', class: "col-12 mt-4" }, h("justifi-header", { key: 'da5ef3e4baa203c17bd3549b796854cf5d70bcd3', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: '37844f9005aca58bf4670b164f42b19ed1d057f0', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: 'bbbff8e463752aaed1c46feb71bc984c359558c6', class: "d-flex flex-column" }, h("section", { key: '6b4d3d5484a01d508abfc859c57c2407bc85e589' }, h("div", { key: '89a788a45217da8b919f1d8e6d1b091ab44557cb' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '7b80b067d959b52ed86474ece9fdfa589945c816', class: "mb-3" }, h("justifi-apple-pay", { key: 'a7ff1ca0f3e00e91811f833dfc1c9f39b961cc76' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: 'a17235c7cd09f07a6c3ff765cfd4d1cd54a7605d', class: "mb-3" }, h("justifi-google-pay", Object.assign({ key: '602884b27b43a7a6848d390162e85a5c1fce973e', ref: (el) => (this.googlePayRef = el) }, (this.googlePayEnv != null ? { environment: this.googlePayEnv } : {}))))), this.availablePaymentMethods.includes(PAYMENT_METHODS.PAYPAL) && (h("div", { key: '38d3a64129e042cf5ab96ed3dddcb12f23015c5a', class: "mb-3" }, h("justifi-paypal", { key: '68dd2d65a1a4fa293a4145ef032022cf57196df4' }))), h("justifi-saved-payment-methods", { key: '6a87a633c879e700a671cb71e948128338a4c543' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && !this.disableBnpl && (h("justifi-radio-list-item", { key: 'ea96bafc139515bf352dfcef3e7aa25e9d7d1406', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: 'f872c215b1d45c8ca594756fbcd296dbcff923a0', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '61354ab52513d256ca2eb29bee7403383981f487', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId, showAccountNumberConfirmation: this.showAccountNumberConfirmation, maskCardNumber: this.maskCardNumber }))))), h("div", { key: '87d0deb5342edf49d830df949cae666450e45404', class: "mt-4" }, h("justifi-button", { key: '0f8fa093c3442139604943768e0692370dfb7aba', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
87
96
  }
88
97
  static get watchers() { return {
89
98
  "authToken": ["propChanged"],
@@ -62,8 +62,8 @@ const JustifiCheckoutsListFilters = class {
62
62
  }
63
63
  render() {
64
64
  const filterMenuParams = Object.assign({}, filterParams);
65
- return (h(StyledHost, { key: 'eca6b148bbea71d2ae0169aa67251ab87cadc1df' }, h("table-filters-menu", { key: '87af760346bd028aca6fb5f29ad9d16d1344e0e5', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '63a139d5d7f213bd0b7496f8076b2c95a36860a3', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'ae268b747aa817dee8e8c762132008d59ed6cb6f', class: "p-2" }, h("form-control-text", { key: 'a8a0139e9a8671c0a74f7bb5cb7d40cc5c76f9e8', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || filterParams.checkout_id, disabled: !!this.checkoutId, part: filterParam })), h("div", { key: '5fbd8588d9f64254182cf08689dda0c705755e03', class: "p-2" }, h("form-control-text", { key: '6d70a400b4936fdf3d35c00a3b95303bc3e79688', name: "successful_payment_id", label: "Successful Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.successfulPaymentId || filterParams.successful_payment_id, disabled: !!this.successfulPaymentId, part: filterParam })), h("div", { key: '96a3b1bf5eaa46dcda3f01de50d991a14cb6f455', class: "p-2" }, h("form-control-select", { key: '06572e5d0528cfc0e36c6d95210ec6bc6db119ab', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: filterParam })), h("div", { key: '81cb0976145496cbb991b2b20d8acaee24238f65', class: "p-2" }, h("form-control-select", { key: '15db898c3fac34c2ac0262d17c07ea811ddbebd7', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: filterParam })), h("div", { key: 'cbae593e372d8fcb648fff5503ac6495e75c5f2e', class: "p-2" }, h("form-control-date", { key: '06f605f92582dbf1ea654a4c14ea0089932e9aea', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '278400d92ded9bff800e4b2142434c046d1be397', class: "p-2" }, h("form-control-date", { key: '53a98e350078d690df0985627ac1a6f0e39f74ad', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
65
+ return (h(StyledHost, { key: 'a84f587608b49683633b26d23e548b576c5daba3' }, h("table-filters-menu", { key: 'd7a43576bb803d706755ce9deafda5f8732540c1', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '6ce5861f974a8d2c7bc5bcb03b7b0df60e10d780', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '492714a0263fb27222e17794a640e3855c9ba6e1', class: "p-2" }, h("form-control-text", { key: '357b10f4f290c9500fb5fe24e4bc97ea80511e2c', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || filterParams.checkout_id, disabled: !!this.checkoutId, part: filterParam })), h("div", { key: 'cc8535898de01f417080c984ed53f1582848fd74', class: "p-2" }, h("form-control-text", { key: '37aa831598c6496af4fd358f94c54a118f309d82', name: "successful_payment_id", label: "Successful Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.successfulPaymentId || filterParams.successful_payment_id, disabled: !!this.successfulPaymentId, part: filterParam })), h("div", { key: '751c3f3b60b0140b9eb954de3a0e94f5feb6075f', class: "p-2" }, h("form-control-select", { key: 'afa69abd4be56a27d0cafce1508a7edeb119d7b0', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: filterParam })), h("div", { key: '86c4e7121a67e4ef1bb96fcb6ccbe9a900378556', class: "p-2" }, h("form-control-select", { key: 'eaa9e1b1214fb3955de0f0421760da4bf1a773a2', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: filterParam })), h("div", { key: '8f28caa07d711135223507f1864343531d451a15', class: "p-2" }, h("form-control-date", { key: '038141b8b8fc669cca8c849d23cba1a7e2f1d5aa', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: 'ddb442863d596de25c392d14b8fb364db3afdaec', class: "p-2" }, h("form-control-date", { key: 'cee1d9337dd5f6f9c258892f89573a2b07c2180c', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
67
67
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam }))))));
68
68
  }
69
69
  };