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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/dist/cjs/{Analytics-COhunq0p.js → Analytics-jQsZxClw.js} +4 -4
  2. package/dist/cjs/{Api-Do6SaltY.js → Api-DqXlEWR1.js} +1 -1
  3. package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
  4. package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
  5. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +14 -14
  6. package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
  7. package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
  8. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +15 -9
  9. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
  10. package/dist/cjs/bank-account-form.cjs.entry.js +68 -14
  11. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-DuOIMFjG.js} +3 -3
  13. package/dist/cjs/{business.service-72YETCdB.js → business.service-Ca-olopC.js} +3 -3
  14. package/dist/cjs/card-form.cjs.entry.js +16 -12
  15. package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
  16. package/dist/cjs/{checkout.service-CPsXfx0Z.js → checkout.service-DBHPH2ji.js} +3 -3
  17. package/dist/cjs/{checkout.store-DaV9lvEQ.js → checkout.store-B5lTwvUV.js} +1 -0
  18. package/dist/cjs/{country-config-C1bWmF8P.js → country-config-CFC3KuVD.js} +25 -3
  19. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  20. package/dist/cjs/detect-duplicate-version-D8ZajVUT.js +29 -0
  21. package/dist/cjs/dispute-notification_2.cjs.entry.js +12 -12
  22. package/dist/cjs/{event-types-UHzCC7Ga.js → event-types-luy3xnYR.js} +3 -3
  23. package/dist/cjs/form-address-fields_3.cjs.entry.js +6 -6
  24. package/dist/cjs/form-alert_3.cjs.entry.js +116 -15
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +1 -1
  28. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  30. package/dist/cjs/form-control-number_2.cjs.entry.js +6 -6
  31. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +22 -6
  33. package/dist/cjs/{get-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
  34. package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
  35. package/dist/cjs/{get-subaccounts-Bp7DOmM_.js → get-subaccounts-D11aTYj1.js} +4 -4
  36. package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
  37. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +52 -30
  39. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +8 -8
  40. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +10 -9
  41. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  43. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
  44. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  45. package/dist/cjs/justifi-card-form.cjs.entry.js +11 -8
  46. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +7 -7
  47. package/dist/cjs/justifi-checkout.cjs.entry.js +12 -10
  48. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
  49. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  50. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +34 -21
  52. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  53. package/dist/cjs/justifi-payment-details.cjs.entry.js +18 -18
  54. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  55. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  56. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  59. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  60. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  61. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  62. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  65. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -9
  66. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  67. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  68. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  69. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  70. package/dist/cjs/loader.cjs.js +1 -1
  71. package/dist/cjs/{package-G3Vs7Jx5.js → package-B414Jbra.js} +1 -3
  72. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  73. package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
  74. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
  75. package/dist/cjs/{payment.service-CVwTrHEL.js → payment.service-CNTe8vrp.js} +3 -3
  76. package/dist/cjs/{payout.service-CL3VR0hN.js → payout.service-BmU3q9jO.js} +3 -3
  77. package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
  78. package/dist/cjs/{plaid.service-Cukg5wuY.js → plaid.service-d9LAwbnX.js} +3 -3
  79. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  80. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  81. package/dist/cjs/{schema-validations-DehT309E.js → schema-validations-BDFa_oIq.js} +12 -5
  82. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-C0KG7BqL.js → terminal.service-BkQWZv9b.js} +3 -3
  85. package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
  86. package/dist/cjs/utils-Ct_X5q0U.js +62 -0
  87. package/dist/cjs/webcomponents.cjs.js +1 -1
  88. package/dist/collection/api/Business.js +2 -0
  89. package/dist/collection/api/Checkout.js +1 -1
  90. package/dist/collection/collection-manifest.json +1 -1
  91. package/dist/collection/components/business-details/justifi-business-details.js +3 -3
  92. package/dist/collection/components/business-forms/business-form/justifi-business-form.js +2 -2
  93. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +3 -2
  94. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +2 -2
  95. package/dist/collection/components/business-forms/schemas/schema-helpers.js +2 -1
  96. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -1
  97. package/dist/collection/components/business-forms/utils/country-config.js +3 -2
  98. package/dist/collection/components/business-forms/utils/helpers.js +3 -1
  99. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +90 -12
  100. package/dist/collection/components/checkout/billing-form/billing-form-full.js +6 -2
  101. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +6 -2
  102. package/dist/collection/components/checkout/card-form/card-form.js +39 -11
  103. package/dist/collection/components/checkout/justifi-checkout.js +26 -4
  104. package/dist/collection/components/checkout/message-event-types.js +2 -0
  105. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  106. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  107. package/dist/collection/components/checkout-qr-code/justifi-checkout-qr-code.js +2 -2
  108. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -2
  109. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +5 -5
  110. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  111. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  112. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -3
  115. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  116. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  117. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  118. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  119. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  120. package/dist/collection/components/dispute-management/justifi-dispute-management.js +3 -3
  121. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  122. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +2 -2
  123. package/dist/collection/components/insurance/season-interruption/justifi-season-interruption-insurance.js +2 -2
  124. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +50 -12
  125. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +7 -1
  126. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +3 -3
  127. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +33 -6
  128. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  129. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  130. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +28 -3
  131. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  132. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  133. package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +1 -1
  134. package/dist/collection/components/order-terminals/justifi-order-terminals.js +3 -3
  135. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  136. package/dist/collection/components/payment-details/justifi-payment-details.js +10 -10
  137. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +3 -3
  138. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  139. package/dist/collection/components/payments-list/justifi-payments-list.js +3 -3
  140. package/dist/collection/components/payout-details/justifi-payout-details.js +5 -5
  141. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +3 -3
  142. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  143. package/dist/collection/components/payouts-list/justifi-payouts-list.js +3 -3
  144. package/dist/collection/components/qr-terminal/justifi-qr-terminal.js +2 -2
  145. package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
  146. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  147. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +4 -4
  148. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  149. package/dist/collection/components/terminals-list/justifi-terminals-list.js +3 -3
  150. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +45 -6
  151. package/dist/collection/store/checkout.store.js +1 -0
  152. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  154. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  155. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  156. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-text.js +37 -4
  163. package/dist/collection/ui-components/form/iframe-input.js +136 -14
  164. package/dist/collection/ui-components/form/utils.js +32 -0
  165. package/dist/collection/ui-components/internal-button.js +1 -1
  166. package/dist/collection/ui-components/radio-list-item.js +1 -1
  167. package/dist/collection/utils/detect-duplicate-version.js +24 -0
  168. package/dist/collection/utils/postal-code.js +19 -0
  169. package/dist/docs.json +287 -18
  170. package/dist/esm/{Analytics-3WmRTICF.js → Analytics-DihSSvAP.js} +4 -4
  171. package/dist/esm/{Api-83B3f28Q.js → Api-INJHjnya.js} +1 -1
  172. package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
  173. package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
  174. package/dist/esm/additional-questions-form-step_15.entry.js +14 -14
  175. package/dist/esm/additional-questions_4.entry.js +3 -3
  176. package/dist/esm/additional-statement_8.entry.js +8 -8
  177. package/dist/esm/bank-account-billing-form-simple_4.entry.js +15 -9
  178. package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
  179. package/dist/esm/bank-account-form.entry.js +68 -14
  180. package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
  181. package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BLKCH6xV.js} +3 -3
  182. package/dist/esm/{business.service-CTqiKKy5.js → business.service-C8f7OSEu.js} +3 -3
  183. package/dist/esm/card-form.entry.js +16 -12
  184. package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
  185. package/dist/esm/{checkout.service-wjFjBxIB.js → checkout.service-BYDkC7uy.js} +3 -3
  186. package/dist/esm/{checkout.store-B2mtQcB5.js → checkout.store-B8CGkx0o.js} +1 -0
  187. package/dist/esm/{country-config-CJwnhkdq.js → country-config-DJFj1v-Q.js} +24 -4
  188. package/dist/esm/custom-popper_2.entry.js +2 -2
  189. package/dist/esm/detect-duplicate-version-C4r1WAzO.js +27 -0
  190. package/dist/esm/dispute-notification_2.entry.js +12 -12
  191. package/dist/esm/{event-types-cqQHLwCy.js → event-types-S8CgMbPg.js} +3 -3
  192. package/dist/esm/form-address-fields_3.entry.js +6 -6
  193. package/dist/esm/form-alert_3.entry.js +116 -15
  194. package/dist/esm/form-control-checkbox.entry.js +2 -2
  195. package/dist/esm/form-control-date.entry.js +2 -2
  196. package/dist/esm/form-control-file-v2_2.entry.js +1 -1
  197. package/dist/esm/form-control-file.entry.js +2 -2
  198. package/dist/esm/form-control-monetary.entry.js +2 -2
  199. package/dist/esm/form-control-number_2.entry.js +6 -6
  200. package/dist/esm/form-control-radio.entry.js +2 -2
  201. package/dist/esm/form-control-select_2.entry.js +22 -6
  202. package/dist/esm/{get-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
  203. package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
  204. package/dist/esm/{get-subaccounts-ClGG-LRZ.js → get-subaccounts-BHWiH8q9.js} +4 -4
  205. package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
  206. package/dist/esm/internal-button.entry.js +1 -1
  207. package/dist/esm/justifi-apple-pay_12.entry.js +52 -30
  208. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
  209. package/dist/esm/justifi-bank-account-form.entry.js +10 -9
  210. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  211. package/dist/esm/justifi-business-details.entry.js +11 -11
  212. package/dist/esm/justifi-business-form.entry.js +14 -14
  213. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  214. package/dist/esm/justifi-card-form.entry.js +11 -8
  215. package/dist/esm/justifi-checkout-qr-code.entry.js +7 -7
  216. package/dist/esm/justifi-checkout.entry.js +12 -10
  217. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
  218. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  219. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  220. package/dist/esm/justifi-gross-payment-chart.entry.js +34 -21
  221. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  222. package/dist/esm/justifi-payment-details.entry.js +18 -18
  223. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  224. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
  225. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  226. package/dist/esm/justifi-payments-list.entry.js +10 -10
  227. package/dist/esm/justifi-payout-details.entry.js +13 -13
  228. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
  229. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  230. package/dist/esm/justifi-payouts-list.entry.js +12 -12
  231. package/dist/esm/justifi-qr-terminal.entry.js +10 -10
  232. package/dist/esm/justifi-refund-payment.entry.js +10 -10
  233. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  234. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
  235. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  236. package/dist/esm/justifi-terminal-orders-list.entry.js +10 -10
  237. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  238. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  239. package/dist/esm/loader.js +1 -1
  240. package/dist/esm/package-BQpbTebi.js +5 -0
  241. package/dist/esm/payment-method-option.entry.js +1 -1
  242. package/dist/esm/{payment-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
  243. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
  244. package/dist/esm/{payment.service-D7uv5vym.js → payment.service-CQXRsu6Y.js} +3 -3
  245. package/dist/esm/{payout.service-BoSyqft1.js → payout.service-RRyWfpEK.js} +3 -3
  246. package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
  247. package/dist/esm/{plaid.service-DufQkxDk.js → plaid.service-Cg3E3Plo.js} +3 -3
  248. package/dist/esm/radio-list-item.entry.js +1 -1
  249. package/dist/esm/save-new-payment-method.entry.js +2 -2
  250. package/dist/esm/{schema-validations-8dbMCACI.js → schema-validations-8GJ34Do1.js} +12 -5
  251. package/dist/esm/table-filters-menu.entry.js +1 -1
  252. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  253. package/dist/esm/{terminal.service-BM2aebB6.js → terminal.service-Dy6D8bnl.js} +3 -3
  254. package/dist/esm/utils-Cpck08K0.js +59 -0
  255. package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
  256. package/dist/esm/webcomponents.js +1 -1
  257. package/dist/module/Business.js +5 -1
  258. package/dist/module/Plaid.js +1 -1
  259. package/dist/module/additional-statement2.js +1 -1
  260. package/dist/module/bank-account-form2.js +65 -10
  261. package/dist/module/billing-form-full2.js +6 -2
  262. package/dist/module/cancellation-policy2.js +1 -1
  263. package/dist/module/card-billing-form-simple2.js +6 -2
  264. package/dist/module/card-form2.js +14 -9
  265. package/dist/module/checkout.store.js +1 -0
  266. package/dist/module/country-config.js +23 -3
  267. package/dist/module/custom-popper2.js +2 -2
  268. package/dist/module/customer-details2.js +1 -1
  269. package/dist/module/detect-duplicate-version.js +27 -0
  270. package/dist/module/dispute-notification2.js +2 -2
  271. package/dist/module/dispute-response2.js +3 -3
  272. package/dist/module/duplicate-charge2.js +1 -1
  273. package/dist/module/electronic-evidence2.js +1 -1
  274. package/dist/module/form-address-fields2.js +3 -3
  275. package/dist/module/form-control-checkbox2.js +2 -2
  276. package/dist/module/form-control-date2.js +2 -2
  277. package/dist/module/form-control-file-v22.js +1 -1
  278. package/dist/module/form-control-file2.js +2 -2
  279. package/dist/module/form-control-monetary2.js +2 -2
  280. package/dist/module/form-control-number-masked2.js +2 -2
  281. package/dist/module/form-control-number2.js +2 -2
  282. package/dist/module/form-control-radio2.js +2 -2
  283. package/dist/module/form-control-select2.js +2 -2
  284. package/dist/module/form-control-text2.js +21 -4
  285. package/dist/module/iframe-input2.js +119 -15
  286. package/dist/module/internal-button2.js +1 -1
  287. package/dist/module/justifi-apple-pay2.js +7 -1
  288. package/dist/module/justifi-bank-account-billing-form-simple.js +3 -3
  289. package/dist/module/justifi-bank-account-form.js +6 -4
  290. package/dist/module/justifi-billing-form-full.js +1 -1
  291. package/dist/module/justifi-business-details.js +3 -3
  292. package/dist/module/justifi-business-form.js +2 -2
  293. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  294. package/dist/module/justifi-card-form.js +6 -3
  295. package/dist/module/justifi-checkout-qr-code2.js +2 -2
  296. package/dist/module/justifi-checkout-summary2.js +1 -1
  297. package/dist/module/justifi-checkout.js +7 -4
  298. package/dist/module/justifi-checkouts-list-filters.js +4 -2
  299. package/dist/module/justifi-checkouts-list.js +4 -4
  300. package/dist/module/justifi-dispute-management.js +3 -3
  301. package/dist/module/justifi-gross-payment-chart.js +28 -15
  302. package/dist/module/justifi-modular-checkout2.js +30 -12
  303. package/dist/module/justifi-order-terminals.js +3 -3
  304. package/dist/module/justifi-payment-details.js +10 -10
  305. package/dist/module/justifi-payment-provisioning.js +2 -2
  306. package/dist/module/justifi-payment-transactions-list.js +3 -3
  307. package/dist/module/justifi-payments-list-filters.js +2 -2
  308. package/dist/module/justifi-payments-list.js +3 -3
  309. package/dist/module/justifi-payout-details.js +5 -5
  310. package/dist/module/justifi-payout-transactions-list.js +3 -3
  311. package/dist/module/justifi-payouts-list-filters.js +2 -2
  312. package/dist/module/justifi-payouts-list.js +3 -3
  313. package/dist/module/justifi-paypal2.js +1 -1
  314. package/dist/module/justifi-qr-terminal.js +2 -2
  315. package/dist/module/justifi-refund-payment.js +2 -2
  316. package/dist/module/justifi-save-new-payment-method.js +1 -1
  317. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  318. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  319. package/dist/module/justifi-terminal-orders-list.js +4 -4
  320. package/dist/module/justifi-terminals-list-filters.js +1 -1
  321. package/dist/module/justifi-terminals-list.js +3 -3
  322. package/dist/module/justifi-tokenize-payment-method2.js +9 -6
  323. package/dist/module/package.js +1 -3
  324. package/dist/module/payment-method-option.js +1 -1
  325. package/dist/module/product-or-service2.js +1 -1
  326. package/dist/module/radio-list-item2.js +1 -1
  327. package/dist/module/refund-policy2.js +1 -1
  328. package/dist/module/save-new-payment-method2.js +1 -1
  329. package/dist/module/schema-validations.js +10 -3
  330. package/dist/module/shipping-details2.js +1 -1
  331. package/dist/module/table-filters-menu2.js +1 -1
  332. package/dist/module/terminal-quantity-selector2.js +1 -1
  333. package/dist/module/utils4.js +33 -1
  334. package/dist/types/api/Business.d.ts +2 -0
  335. package/dist/types/api/Checkout.d.ts +7 -7
  336. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +8 -1
  337. package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
  338. package/dist/types/components/checkout/justifi-checkout.d.ts +2 -0
  339. package/dist/types/components/checkout/message-event-types.d.ts +2 -0
  340. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +1 -1
  341. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +9 -0
  342. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -0
  343. package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-form.d.ts +4 -1
  344. package/dist/types/components/modular-checkout/sub-components/justifi-card-form.d.ts +9 -0
  345. package/dist/types/components/tokenize-payment-method/justifi-tokenize-payment-method.d.ts +9 -0
  346. package/dist/types/components.d.ts +86 -4
  347. package/dist/types/store/checkout.store.d.ts +1 -0
  348. package/dist/types/ui-components/form/form-control-text.d.ts +1 -0
  349. package/dist/types/ui-components/form/iframe-input.d.ts +24 -0
  350. package/dist/types/ui-components/form/utils.d.ts +1 -0
  351. package/dist/types/utils/detect-duplicate-version.d.ts +7 -0
  352. package/dist/types/utils/postal-code.d.ts +3 -0
  353. package/dist/webcomponents/p-12daf522.entry.js +1 -0
  354. package/dist/webcomponents/p-1a1aef42.entry.js +1 -0
  355. package/dist/webcomponents/p-1ceb65cc.entry.js +1 -0
  356. package/dist/webcomponents/p-1ff1dcc5.entry.js +20 -0
  357. package/dist/webcomponents/{p-777470cb.entry.js → p-2272a65b.entry.js} +1 -1
  358. package/dist/webcomponents/{p-c4889a06.entry.js → p-2d25f1d1.entry.js} +1 -1
  359. package/dist/webcomponents/{p-c5424fda.entry.js → p-30ec1cd6.entry.js} +1 -1
  360. package/dist/webcomponents/p-357d14ee.entry.js +1 -0
  361. package/dist/webcomponents/{p-ead48010.entry.js → p-4450dbe9.entry.js} +1 -1
  362. package/dist/webcomponents/p-4c7e7880.entry.js +1 -0
  363. package/dist/webcomponents/p-4d85dd63.entry.js +1 -0
  364. package/dist/webcomponents/p-521c534c.entry.js +1 -0
  365. package/dist/webcomponents/p-5babaaa9.entry.js +1 -0
  366. package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
  367. package/dist/webcomponents/{p-f5358a80.entry.js → p-5e8f26ec.entry.js} +1 -1
  368. package/dist/webcomponents/p-622c2af4.entry.js +1 -0
  369. package/dist/webcomponents/{p-9e3e2e32.entry.js → p-6aaf2758.entry.js} +1 -1
  370. package/dist/webcomponents/p-6bfdc443.entry.js +1 -0
  371. package/dist/webcomponents/{p-42021e67.entry.js → p-6f3b035b.entry.js} +1 -1
  372. package/dist/webcomponents/p-73af269e.entry.js +1 -0
  373. package/dist/webcomponents/{p-ced6f6f1.entry.js → p-7ff788f8.entry.js} +1 -1
  374. package/dist/webcomponents/{p-c3818a5a.entry.js → p-846ae5d5.entry.js} +1 -1
  375. package/dist/webcomponents/p-8758aec4.entry.js +1 -0
  376. package/dist/webcomponents/p-87f8d4e7.entry.js +1 -0
  377. package/dist/webcomponents/p-8c22ff9c.entry.js +1 -0
  378. package/dist/webcomponents/p-91358854.entry.js +1 -0
  379. package/dist/webcomponents/{p-f3682c72.entry.js → p-956707a2.entry.js} +1 -1
  380. package/dist/webcomponents/p-9c1863d5.entry.js +1 -0
  381. package/dist/webcomponents/p-BDtSw_d-.js +1 -0
  382. package/dist/webcomponents/{p-CIpBEUtx.js → p-BG8NxEUn.js} +1 -1
  383. package/dist/webcomponents/p-BKtKrQzN.js +1 -0
  384. package/dist/webcomponents/p-BQpbTebi.js +1 -0
  385. package/dist/webcomponents/{p-nbKvRcwU.js → p-Bh5BNj74.js} +1 -1
  386. package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
  387. package/dist/webcomponents/{p-vIQBTQmc.js → p-BtiJJJwv.js} +1 -1
  388. package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
  389. package/dist/webcomponents/p-BzESNgd8.js +1 -0
  390. package/dist/webcomponents/p-C9p1gWAC.js +1 -0
  391. package/dist/webcomponents/p-CTtGaVYs.js +1 -0
  392. package/dist/webcomponents/p-CgOgijHy.js +1 -0
  393. package/dist/webcomponents/p-CkrzG0pB.js +1 -0
  394. package/dist/webcomponents/p-Cl6irPVE.js +1 -0
  395. package/dist/webcomponents/p-Cpck08K0.js +1 -0
  396. package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
  397. package/dist/webcomponents/p-Cy_sz0Tx.js +1 -0
  398. package/dist/webcomponents/p-D42DvqTW.js +1 -0
  399. package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
  400. package/dist/webcomponents/p-DBudSN_h.js +1 -0
  401. package/dist/webcomponents/p-DMzYgqml.js +1 -0
  402. package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
  403. package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
  404. package/dist/webcomponents/p-FsWkrvEF.js +1 -0
  405. package/dist/webcomponents/p-MLQyjvrV.js +1 -0
  406. package/dist/webcomponents/p-a095b86d.entry.js +1 -0
  407. package/dist/webcomponents/p-a1e1afa4.entry.js +1 -0
  408. package/dist/webcomponents/p-a2c4e99f.entry.js +1 -0
  409. package/dist/webcomponents/p-a8f1c9b3.entry.js +1 -0
  410. package/dist/webcomponents/{p-5d7b3d71.entry.js → p-b665841f.entry.js} +1 -1
  411. package/dist/webcomponents/p-b925d666.entry.js +1 -0
  412. package/dist/webcomponents/p-bc3e46af.entry.js +1 -0
  413. package/dist/webcomponents/p-c172decb.entry.js +1 -0
  414. package/dist/webcomponents/p-c9871158.entry.js +1 -0
  415. package/dist/webcomponents/p-d19d7d41.entry.js +1 -0
  416. package/dist/webcomponents/{p-6c94218c.entry.js → p-d35cde99.entry.js} +1 -1
  417. package/dist/webcomponents/{p-cb1cc88e.entry.js → p-d48f80d1.entry.js} +1 -1
  418. package/dist/webcomponents/{p-eb31024f.entry.js → p-dae31a59.entry.js} +1 -1
  419. package/dist/webcomponents/p-deff4422.entry.js +1 -0
  420. package/dist/webcomponents/{p-1365a46b.entry.js → p-e3c7b4e5.entry.js} +1 -1
  421. package/dist/webcomponents/{p-d98bc829.entry.js → p-e6d1e3e2.entry.js} +1 -1
  422. package/dist/webcomponents/{p-97c6593d.entry.js → p-ebae270b.entry.js} +1 -1
  423. package/dist/webcomponents/p-ebed68aa.entry.js +1 -0
  424. package/dist/webcomponents/{p-bf3866b3.entry.js → p-f0084d20.entry.js} +1 -1
  425. package/dist/webcomponents/p-f0da2ca5.entry.js +1 -0
  426. package/dist/webcomponents/p-f23d7d13.entry.js +1 -0
  427. package/dist/webcomponents/p-f2c99647.entry.js +1 -0
  428. package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
  429. package/dist/webcomponents/p-f458928d.entry.js +1 -0
  430. package/dist/webcomponents/{p-0aa96018.entry.js → p-f5686720.entry.js} +1 -1
  431. package/dist/webcomponents/p-f681f747.entry.js +1 -0
  432. package/dist/webcomponents/{p-6eb65d23.entry.js → p-f6efd9e0.entry.js} +1 -1
  433. package/dist/webcomponents/{p-7002286e.entry.js → p-fa0427d5.entry.js} +1 -1
  434. package/dist/webcomponents/p-fb1f2fe8.entry.js +1 -0
  435. package/dist/webcomponents/p-fcc5af24.entry.js +1 -0
  436. package/dist/webcomponents/p-hdPjEOdB.js +1 -0
  437. package/dist/webcomponents/{p-CJEetAx7.js → p-l3JhjHLW.js} +1 -1
  438. package/dist/webcomponents/webcomponents.esm.js +1 -1
  439. package/package.json +2 -4
  440. package/dist/cjs/check-pkg-version-BxGoSXGD.js +0 -47
  441. package/dist/cjs/utils-DAyWinG2.js +0 -29
  442. package/dist/collection/utils/check-pkg-version.js +0 -42
  443. package/dist/esm/check-pkg-version-CmFl6VLH.js +0 -45
  444. package/dist/esm/package-CAVi_ne1.js +0 -7
  445. package/dist/esm/utils-BnjCmwMr.js +0 -27
  446. package/dist/module/check-pkg-version.js +0 -45
  447. package/dist/types/utils/check-pkg-version.d.ts +0 -1
  448. package/dist/webcomponents/p-0fbc806f.entry.js +0 -1
  449. package/dist/webcomponents/p-10787684.entry.js +0 -1
  450. package/dist/webcomponents/p-1fa62eba.entry.js +0 -1
  451. package/dist/webcomponents/p-25f70d5f.entry.js +0 -1
  452. package/dist/webcomponents/p-27igUlku.js +0 -1
  453. package/dist/webcomponents/p-36340e63.entry.js +0 -1
  454. package/dist/webcomponents/p-3642e189.entry.js +0 -1
  455. package/dist/webcomponents/p-388082cd.entry.js +0 -1
  456. package/dist/webcomponents/p-3f2fb856.entry.js +0 -1
  457. package/dist/webcomponents/p-4cad48c1.entry.js +0 -1
  458. package/dist/webcomponents/p-50c2b8f0.entry.js +0 -1
  459. package/dist/webcomponents/p-5842d4e8.entry.js +0 -1
  460. package/dist/webcomponents/p-5c89dcdf.entry.js +0 -1
  461. package/dist/webcomponents/p-5dcb1713.entry.js +0 -1
  462. package/dist/webcomponents/p-5f8c30b6.entry.js +0 -1
  463. package/dist/webcomponents/p-68e88747.entry.js +0 -1
  464. package/dist/webcomponents/p-6931a1f2.entry.js +0 -1
  465. package/dist/webcomponents/p-72bb4aff.entry.js +0 -1
  466. package/dist/webcomponents/p-74575a99.entry.js +0 -1
  467. package/dist/webcomponents/p-7c405573.entry.js +0 -1
  468. package/dist/webcomponents/p-825a7ee6.entry.js +0 -1
  469. package/dist/webcomponents/p-909a9828.entry.js +0 -20
  470. package/dist/webcomponents/p-955c06d3.entry.js +0 -1
  471. package/dist/webcomponents/p-9e9a2546.entry.js +0 -1
  472. package/dist/webcomponents/p-9f0ef3f3.entry.js +0 -1
  473. package/dist/webcomponents/p-BAKuMxC9.js +0 -1
  474. package/dist/webcomponents/p-BEL8sLz6.js +0 -1
  475. package/dist/webcomponents/p-BSxXlu9H.js +0 -1
  476. package/dist/webcomponents/p-BnjCmwMr.js +0 -1
  477. package/dist/webcomponents/p-CAVi_ne1.js +0 -1
  478. package/dist/webcomponents/p-CXsRwohv.js +0 -1
  479. package/dist/webcomponents/p-CawcnSoV.js +0 -1
  480. package/dist/webcomponents/p-CbyGKcz_.js +0 -1
  481. package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
  482. package/dist/webcomponents/p-CyOXIqHo.js +0 -1
  483. package/dist/webcomponents/p-D6uhYbLo.js +0 -1
  484. package/dist/webcomponents/p-DN7VhlTn.js +0 -1
  485. package/dist/webcomponents/p-DNuxxP2B.js +0 -1
  486. package/dist/webcomponents/p-D_84NsmN.js +0 -1
  487. package/dist/webcomponents/p-DaDqgDrb.js +0 -1
  488. package/dist/webcomponents/p-Do9dxNjh.js +0 -1
  489. package/dist/webcomponents/p-Fpaf7CLD.js +0 -1
  490. package/dist/webcomponents/p-PdwJswAy.js +0 -1
  491. package/dist/webcomponents/p-acb0b66c.entry.js +0 -1
  492. package/dist/webcomponents/p-b23dfa13.entry.js +0 -1
  493. package/dist/webcomponents/p-b98ea26a.entry.js +0 -1
  494. package/dist/webcomponents/p-ca13117d.entry.js +0 -1
  495. package/dist/webcomponents/p-ca6c5365.entry.js +0 -1
  496. package/dist/webcomponents/p-d59676ea.entry.js +0 -1
  497. package/dist/webcomponents/p-ee7fe3a8.entry.js +0 -1
  498. package/dist/webcomponents/p-f0434a13.entry.js +0 -1
  499. package/dist/webcomponents/p-f9f0cb1f.entry.js +0 -1
  500. package/dist/webcomponents/p-fda6f27d.entry.js +0 -1
  501. package/dist/webcomponents/p-fdd087d4.entry.js +0 -1
@@ -0,0 +1,27 @@
1
+ import { p as packageJson } from './package-BQpbTebi.js';
2
+
3
+ const JUSTIFI_VERSION_KEY = '__JUSTIFI_WC_VERSION__';
4
+ /**
5
+ * Records this bundle's version on globalThis and logs an error when a second,
6
+ * different version of @justifi/webcomponents is already on the page. The first
7
+ * version loaded wins — it has registered the custom elements, so any later
8
+ * bundle is inert.
9
+ */
10
+ const detectDuplicateVersion = () => {
11
+ if (typeof globalThis === 'undefined')
12
+ return;
13
+ const globalScope = globalThis;
14
+ const currentVersion = packageJson.version;
15
+ const existingVersion = globalScope[JUSTIFI_VERSION_KEY];
16
+ if (existingVersion && existingVersion !== currentVersion) {
17
+ console.error(`@justifi/webcomponents: Multiple versions detected. ` +
18
+ `Version ${existingVersion} was loaded first and registered all components. ` +
19
+ `Version ${currentVersion} is also present but its components will NOT be used. ` +
20
+ `To fix this, add to your package.json:\n` +
21
+ `"pnpm": { "overrides": { "@justifi/webcomponents": "${currentVersion}" } }`);
22
+ return;
23
+ }
24
+ globalScope[JUSTIFI_VERSION_KEY] = currentVersion;
25
+ };
26
+
27
+ export { detectDuplicateVersion as d };
@@ -4,18 +4,18 @@ import { t as text, a8 as heading4 } from './parts-Bu7gdOaV.js';
4
4
  import { B as Button } from './button-CBzHAOFW.js';
5
5
  import { S as Skeleton } from './skeleton-dbktEkFS.js';
6
6
  import './event-types-CZfYo5-1.js';
7
- import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-BP3xNxQF.js';
8
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
9
- import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-cqQHLwCy.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-CmFl6VLH.js';
11
- import { J as JustifiAnalytics } from './Analytics-3WmRTICF.js';
7
+ import { C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
8
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
9
+ import { D as DisputeManagementClickActions, a as DisputeService } from './event-types-S8CgMbPg.js';
10
+ import { d as detectDuplicateVersion } from './detect-duplicate-version-C4r1WAzO.js';
11
+ import { J as JustifiAnalytics } from './Analytics-DihSSvAP.js';
12
12
  import './dinero-HXpYMWUU.js';
13
- import './Api-83B3f28Q.js';
13
+ import './Api-INJHjnya.js';
14
14
  import './config-state-BKOsYBXZ.js';
15
15
  import './index-3wWWWrhn.js';
16
- import './package-CAVi_ne1.js';
16
+ import './package-BQpbTebi.js';
17
17
  import './Pagination-CLHwhyvu.js';
18
- import './Business-DaDqgDrb.js';
18
+ import './Business-CTtGaVYs.js';
19
19
 
20
20
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
21
21
  var _a;
@@ -150,8 +150,8 @@ const DisputeNotification = class {
150
150
  }
151
151
  render() {
152
152
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
153
- return (h("div", { key: '0f4474fa70e6ab3895132b703ab5a3b7f810554a', class: "dispute-notification-root" }, this.isLoading && (h("div", { key: '1bd7b07c15e6a88be6215dbca5e41cbcfc6e6e68', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'a4436ec5cc58b0cccdcdc9ae3d25293fdfaeac40', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: 'cda7ba45ed518e762239864b766f65da8488e713', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: 'a0acf3c7c0ae988f8580bfbd8b2ff2b5c349fddb', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: '2fd8a28d4c3eefc4a1a881d3bc47422428d4f016', part: text }, h("h1", { key: '243ca1a43064800b65fb27e259598ff85746e55b', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
154
- _b.due_date, ") for this dispute has passed"), h("p", { key: '617f7b87510fee1d64ad121cf15f1ba193f6826c' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: 'd9ad4c30643e0991c7327a800d8015aa49d227ff', part: text }, h("h1", { key: 'c6e2b6a4a012ad2ce3d371ac765359f0db018166', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: '491ca4d83029e8aec16ee745cd3eb78854298d19' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '3fd51e33e3440d6fda3fb6f2aa3f83cd783255fc', class: "h5" }, "Dispute details"), h("div", { key: 'edb7c85ffccd4a1af64cdb61a702ce39c86987a9', class: "d-table gap-2" }, h("div", { key: '8d611ad34fa2a40d52f175c6874228254d235bf6', class: "d-table-row gap-2" }, h("span", { key: 'db4c9c3379b475ddb4c966336a1a9905f286335a', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '9c61d28bc602dd3cdeaa0e99923c58fb20fb95bc', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: 'd7a84cd67c59bfdc2c63b7e847b82d423d3277a4', class: "d-table-row gap-2" }, h("span", { key: 'e98e2a8a8593b3358ecf6d5b857d2f3cffae1ef5', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '61f843068e6bf04d8bab69cefeb148e9b6792a5f', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '795fd5d907eb2e1456c737a201517dbe5434ea84', class: "d-table-row gap-2" }, h("span", { key: '1dae1ba0dd7323756988c8f6d65be1fdf3c155e6', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: 'b44ff4fcfd0beb70af6468a216eee0489c566a79', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: 'f7e1ac7543ca231cc7904654bfb9fcb3e3f31dc1', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '35dfa1f4e0a7f02496751dc332a4c52b542fe538', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '0519e6959a2407315d600384121b6ad466de79eb', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: '600db9506bed0de6efc3d0367fb5df63273bba14', part: text }, h("h1", { key: '139a034878c8433edb1b936440c1b71d9d1022b2', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'bd9b3d46e57ec998e5e1a5bc465d981129fc1fd2' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: 'c03393474cea2a44b864eba0f9e36b1fe63eb256', part: text }, h("h1", { key: '3c19db3b8aefd25a363d4cd183eaaa2487d33f8c', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '45d95070b59c3a0da28bc5cda5356c2aa171d974' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: 'a8727df139e8d1eff3e67bc13359534281ceb795', part: text }, h("h1", { key: 'bb533bb65c20722002bda966782fcc4d165a139e', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '5901b10090d20523de1f96630ce7a9b71d9fdcac' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
153
+ return (h("div", { key: '12cd6c17c1f4f70e136fa0e9d6ff74d37af82a1e', class: "dispute-notification-root" }, this.isLoading && (h("div", { key: '33b1c6259abe1da5d92ac2aa37cfec9033fbb3d1', style: { marginBottom: '8px' } }, h(Skeleton, { key: '1f5bc2333a37587d3d11e545b58c9b85a2a145a5', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '280e35a187319c7698922c3cd3f579457a187e7a', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '3fd7f151a3d7516dd40835d6c42d2240d7170613', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: 'e78d3cf205ba862b8df5e5358e15c4961add1003', part: text }, h("h1", { key: 'c533f650a18a75ca7c9f1cb15a6d1da517317e54', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
154
+ _b.due_date, ") for this dispute has passed"), h("p", { key: '14f82547639777ab5179010f350d42f7b4082845' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: 'a2eefdc255af0c3b07091183fff4c5860f66af3a', part: text }, h("h1", { key: '043801fa6ac2f90ba10e6048feeecf670cc4e4dd', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: 'b4b115c46340ae96e43a63a1535b59f071efc7cc' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '451b315624efea9b5f1e619ae6b942611ba93135', class: "h5" }, "Dispute details"), h("div", { key: 'c7765f5f091a346de0eb7aa81c36d475832925d2', class: "d-table gap-2" }, h("div", { key: 'cb3ecb618099b579a488232d5ecafef28c7da235', class: "d-table-row gap-2" }, h("span", { key: '86475be18418565529a2d08a544962209f9766ac', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: '5efe0ffd6f0236b906ab9e52f32bd9a0533240a2', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: '286b29d07ddb23ba80d4831aadebb4f550545c39', class: "d-table-row gap-2" }, h("span", { key: '2a8582b5e4c6e0b4ad1db9b7222148949accf10d', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: 'b8e43894965778696e0cb41204b3efe1aac9443e', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '4864005f755bdbdecb5ed28370452850dfc9f047', class: "d-table-row gap-2" }, h("span", { key: '64b10de9b84fe9992b07a88294caa38b2b63fdca', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '5198c3cd3ebf4246c42d8b59603765bd39bae06b', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: '29c98ba58742d3195eca08571cbf793bc9d5a7c6', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: '9ef19c0152cbb6342214aa5073ffed303fc85624', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '558126e83a05c0729e17a1abf5ce849e02574096', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: 'f8c6fee1c63eef8cf2d2a00fb10051686c7572ae', part: text }, h("h1", { key: '23c4bb1c8ab00f4cf9a1447156c124f8ecd1f4b7', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'b1c469330757f22582e5c341c68adcd1aae3def3' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: '46c92fe084337c67ce0bfedf11d89aca38bdc5e4', part: text }, h("h1", { key: 'ac06dc25f88d88d257ff56aec620d803a45d6344', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '30a26bceb37855460b8ae6ef54c20591900b5fcf' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: '2320aa515a8112a27bdbd9e3f1b3a8daf2c1b28e', part: text }, h("h1", { key: '32e0cfc6e8d27afe01194ab61ad342781ec31bf8', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '6a8b333f0be16d81ffc23609bcdcb8f70435d515' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
155
155
  }
156
156
  };
157
157
 
@@ -304,7 +304,7 @@ const DisputeResponse = class {
304
304
  };
305
305
  }
306
306
  componentWillLoad() {
307
- checkPkgVersion();
307
+ detectDuplicateVersion();
308
308
  this.analytics = new JustifiAnalytics(this);
309
309
  this.initializeDisputeServiceMethods();
310
310
  }
@@ -352,7 +352,7 @@ const DisputeResponse = class {
352
352
  return this.currentStep === 0;
353
353
  }
354
354
  render() {
355
- return (h("div", { key: '57664882c2d3c6833f9a9cbe01452875119c6032', class: "dispute-response-root" }, h("div", { key: '92c8e3b3426210b68063ad7474aeb13429fd4c76', class: "row gy-3" }, h("div", { key: '0f7e1236d85765054a40a06d864199feba0cad21', class: "col-12" }, h("h1", { key: 'b12f3840caeb7c17d324829874b8a4089fcb123d', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'c493a872abb1d058cd98fab46eefa6f68caaa351', class: "col-12" }, this.currentStepComponent), h("div", { key: '06f7818c59490ec54c58e9e0a5d7effec11bf0a6', class: "col-12" }, h("div", { key: '754852aaab1b5048ed52796a13e169228a6ac2d1', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next")))))));
355
+ return (h("div", { key: 'a558e22c9d41b40d01fd7317566b8e92b181396a', class: "dispute-response-root" }, h("div", { key: 'b5ccda631bb6b8d9587c97c5f72c73563b32a336', class: "row gy-3" }, h("div", { key: '680cd57e4c08c919284911e03c31bf88e9ea27bd', class: "col-12" }, h("h1", { key: 'aa9cad23ec784d2d037a39f536f25547e52038fd', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '39e1d9bb2cd0cca28841430139c301fd18863f81', class: "col-12" }, this.currentStepComponent), h("div", { key: '3c87124fcab317c738b2ecfdaa454b008bd921fd', class: "col-12" }, h("div", { key: '210414d3492ce600c34b8c93824c81cae12bb3b4', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next")))))));
356
356
  }
357
357
  static get watchers() { return {
358
358
  "disputeId": ["propChanged"],
@@ -1,7 +1,7 @@
1
- import { A as Api } from './Api-83B3f28Q.js';
2
- import './Plaid-BP3xNxQF.js';
1
+ import { A as Api } from './Api-INJHjnya.js';
2
+ import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
- import './Business-DaDqgDrb.js';
4
+ import './Business-CTtGaVYs.js';
5
5
 
6
6
  const api = Api();
7
7
  class DisputeService {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { C as CountryCode } from './Business-DaDqgDrb.js';
3
- import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
4
- import { b as countryOptions, c as countryLabels } from './country-config-CJwnhkdq.js';
2
+ import { C as CountryCode } from './Business-CTtGaVYs.js';
3
+ import { z as zipCodeOnlyHandler } from './utils-Cpck08K0.js';
4
+ import { b as countryOptions, c as countryLabels, n as normalizePostalCode } from './country-config-DJFj1v-Q.js';
5
5
  import { I as IMask } from './index-Ce_F4E0f.js';
6
6
  import { q as inputInvalid, u as inputDisabled, v as inputFocused, w as input, x as label } from './parts-Bu7gdOaV.js';
7
7
  import { F as FormControlErrorText } from './form-control-error-text-FyanxO4T.js';
@@ -16,7 +16,7 @@ const FormAddressFields = class {
16
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17
17
  const labels = countryLabels[this.country];
18
18
  const options = countryOptions[this.country];
19
- return (h(Host, { key: '9b18ac26cce34bd3008146f106a260d9cb99de12' }, h("div", { key: 'c234c03bc4a3dbe74a0946af78aaed5992c3406c', class: "row gy-3" }, h("div", { key: '0ce04acdf48726866bd6beecc25d0008b754984f', class: "col-12" }, h("form-control-text", { key: '4d4b5098ebc39e52d0f17c677c4e92980793f46b', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: '4133b38343c52135f2457bd7a9ad91b094422fb5', class: "col-12" }, h("form-control-text", { key: '7e60be69dad198d488030ece4296326bb6368f2c', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: 'a34a4e57cbd168bbbe065329bcfb393473b0def1', class: "col-12" }, h("form-control-text", { key: '46e3005ef99ec988726ffcc37ec73756f002880d', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '2bf3389786351f2338cde13cbf87d28260444174', class: "col-12 col-md-6" }, h("form-control-select", { key: '18a2a403d20af45965877601fa8d44a5aea48894', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '1548ad58c0bd3b96067055601a006fc137ca31a3', class: "col-12 col-md-6" }, h("form-control-text", { key: '8e8193efa81f1f5d8c626f76d75d15aba60ac921', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: this.country === CountryCode.USA ? 5 : 7, keyDownHandler: this.country === CountryCode.USA ? numberOnlyHandler : undefined })))));
19
+ return (h(Host, { key: 'a1bbc92e63a973d2ad70019597132b599529d3b5' }, h("div", { key: 'f52aee4bdb8987e40693e75627bd5f852e20f9c9', class: "row gy-3" }, h("div", { key: '3557621ecc4910bba3d41551ffc6fbf88cabb1ef', class: "col-12" }, h("form-control-text", { key: '5d0df84b735ff1364bf62185db33afdc4c0782e2', name: "line1", label: "Street Address", inputHandler: this.inputHandler, defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, helpText: "No PO Boxes." })), h("div", { key: '671665f83b6569830296842ac089fdcfafa19b0d', class: "col-12" }, h("form-control-text", { key: '21b3f2e4dfc8b30603d22ffb4d59480be2035aff', name: "line2", label: "Address Line 2 (optional)", inputHandler: this.inputHandler, defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '731c4bb3c8fcbf2f68f0a721415210819d3721c6', class: "col-12" }, h("form-control-text", { key: 'b0283f71fe2d8efdadc918257d119c0af2b02243', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '42c208d228cf9c1f278c9c666d15f1508d6c8c51', class: "col-12 col-md-6" }, h("form-control-select", { key: '9da34256e043df09cf924c110b059304e35a3451', name: "state", label: labels.stateLabel, options: options.stateOptions, inputHandler: this.inputHandler, defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '24622af99d38f69c942e3e73d6705a68a2a3dc07', class: "col-12 col-md-6" }, h("form-control-text", { key: '24405b8aff1b14bcb00583085efeb8b3f33a6903', name: "postal_code", label: labels.postalLabel, inputHandler: this.inputHandler, defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, transformValue: normalizePostalCode, maxLength: this.country === CountryCode.USA ? 10 : 7, keyDownHandler: this.country === CountryCode.USA ? zipCodeOnlyHandler : undefined })))));
20
20
  }
21
21
  };
22
22
 
@@ -84,10 +84,10 @@ const FormControlNumberMasked = class {
84
84
  return input;
85
85
  }
86
86
  render() {
87
- return (h(Host, { key: '63f9e8fbdf09ad22d7744b074d1646e6ea620b61' }, h("div", { key: 'a9fb05c711ebd9de3d3022a2ec17a9c666e7e2aa', class: "form-group d-flex flex-column" }, h("div", { key: 'e726ecfce3bd700fab74b6b3f81bdcba0d43428f', class: "d-flex align-items-start gap-2" }, h("label", { key: '7940a4f3d8b3c894d0ee54871935e9989899c894', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '5c1782d425686b096e0b91c411e7543b794b969f', helpText: this.helpText })), h("input", { key: '3b8533a7cd4e0fe1907c6d5e01008063cf70d120', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
87
+ return (h(Host, { key: '9d164bbf77f8a5227128ab5c606d6f9eb8b5e260' }, h("div", { key: '780108deefb44f3bec06093bcbf830ba0f0d32d5', class: "form-group d-flex flex-column" }, h("div", { key: '8d1d98b481f68227d0843842fbdb0b768c2325fc', class: "d-flex align-items-start gap-2" }, h("label", { key: 'fe3fa6fbc9ddc286ddc60041d90b412b548dcdbc', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '3c93c47f498e8f15f7fddd8f284e0b577bf8f35c', helpText: this.helpText })), h("input", { key: 'c5c1f8d85996ea3c45d8312fdc27e22e02ab2e8d', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
88
88
  this.isFocused = false;
89
89
  this.formControlBlur.emit();
90
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '085b4f0ee135c12c6ea9293593e4c722091f895e', errorText: this.errorText, name: this.name }))));
90
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'dac687b433cdd1f480ae8f67cbdd762eda83492a', errorText: this.errorText, name: this.name }))));
91
91
  }
92
92
  static get watchers() { return {
93
93
  "defaultValue": ["handleDefaultValueChange"]
@@ -3,7 +3,7 @@ import { al as alertDanger, a3 as inputInvalidAndFocused, q as inputInvalid, v a
3
3
  import { c as createStore } from './index-3wWWWrhn.js';
4
4
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
5
5
  import { F as FormControlErrorText } from './form-control-error-text-FyanxO4T.js';
6
- import { p as packageJson } from './package-CAVi_ne1.js';
6
+ import { p as packageJson } from './package-BQpbTebi.js';
7
7
 
8
8
  const FormAlert = class {
9
9
  constructor(hostRef) {
@@ -1667,6 +1667,8 @@ class FrameCommunicationService {
1667
1667
  const MessageEventType = {
1668
1668
  tokenize: 'tokenize',
1669
1669
  validate: 'validate',
1670
+ /** Opts a hosted field into mask-on-blur. Carries no card data. */
1671
+ setMaskCardNumber: 'setMaskCardNumber',
1670
1672
  };
1671
1673
 
1672
1674
  const IframeInput = class {
@@ -1675,11 +1677,24 @@ const IframeInput = class {
1675
1677
  this.iframeLoaded = createEvent(this, "iframeLoaded", 7);
1676
1678
  this.isFocused = false;
1677
1679
  this.isValid = true;
1680
+ /**
1681
+ * Opt this field into masking its value to the last four characters when it
1682
+ * loses focus. Forwarded to the hosted field, which owns the behavior.
1683
+ */
1684
+ this.maskCardNumber = false;
1685
+ this.hasLoaded = false;
1678
1686
  this.dispatchMessageEvent = (event) => {
1679
1687
  const { eventType, data } = event.data;
1680
1688
  if ((data === null || data === void 0 ? void 0 : data.id) !== this.inputId) {
1681
1689
  return;
1682
1690
  }
1691
+ if (eventType === 'loaded') {
1692
+ this.hasLoaded = true;
1693
+ // Re-sent on every load, not just the first: componentDidRender swaps
1694
+ // the iframe src once the style store fills, so the frame can reload
1695
+ // and would otherwise come back without the flag.
1696
+ this.sendMaskCardNumber();
1697
+ }
1683
1698
  if (eventType === 'focused') {
1684
1699
  this.isFocused = true;
1685
1700
  }
@@ -1688,8 +1703,91 @@ const IframeInput = class {
1688
1703
  }
1689
1704
  };
1690
1705
  }
1706
+ maskCardNumberChanged() {
1707
+ if (this.hasLoaded)
1708
+ this.sendMaskCardNumber();
1709
+ }
1710
+ /**
1711
+ * The <iframe> is created in the LIGHT DOM and slotted in: an iframe inside a
1712
+ * shadow tree is invisible to `window.frames` (spec), so siblings could not
1713
+ * resolve it. The ::part wrappers stay in the shadow tree — theming untouched.
1714
+ */
1715
+ componentDidLoad() {
1716
+ const iframe = document.createElement('iframe');
1717
+ iframe.setAttribute('name', this.inputId);
1718
+ iframe.setAttribute('width', '100%');
1719
+ // Light-DOM element: merchant CSS reaches it, so pin the box inline.
1720
+ iframe.style.border = '0';
1721
+ iframe.style.display = 'block';
1722
+ iframe.style.width = '100%';
1723
+ iframe.style.boxSizing = 'border-box';
1724
+ iframe.addEventListener('load', () => {
1725
+ iFrameResize({
1726
+ log: false,
1727
+ onResized: () => {
1728
+ this.iframeLoaded.emit();
1729
+ }
1730
+ }, iframe);
1731
+ });
1732
+ this.iframeElement = iframe;
1733
+ this.initializeFrameCommunicationService();
1734
+ iframe.setAttribute('src', this.iframeSrc);
1735
+ this.mountIframe();
1736
+ }
1737
+ /**
1738
+ * Stencil runs componentDidLoad once per instance; a DOM move (framework
1739
+ * reparenting, list reorder) fires disconnected → connected on the same
1740
+ * instance, so the iframe has to be put back by hand.
1741
+ */
1742
+ connectedCallback() {
1743
+ var _a;
1744
+ if (this.iframeElement && !this.iframeElement.isConnected) {
1745
+ (_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
1746
+ this.mountIframe();
1747
+ }
1748
+ }
1749
+ mountIframe() {
1750
+ const root = this.el.getRootNode();
1751
+ // Duck-typed: ShadowRoot is not a global in Stencil's mock-doc.
1752
+ const host = root.nodeType === 11 && root.host ? root.host : null;
1753
+ const iframe = this.iframeElement;
1754
+ if (host) {
1755
+ if (host.getRootNode() !== document) {
1756
+ // A host nested in another shadow tree keeps the iframe out of the
1757
+ // document tree; sibling fields fall back to BroadcastChannel.
1758
+ console.warn(`[justifi] hosted field "${this.inputId}" is inside a nested shadow tree; window.frames cannot reach it`);
1759
+ }
1760
+ // Real <slot> element, not JSX: Stencil's slot polyfill for shadow:false
1761
+ // components would otherwise replace it with a virtual slot.
1762
+ if (!this.wrapperElement.querySelector(`slot[name="${this.inputId}"]`)) {
1763
+ const slot = document.createElement('slot');
1764
+ slot.name = this.inputId;
1765
+ this.wrapperElement.appendChild(slot);
1766
+ }
1767
+ iframe.setAttribute('slot', this.inputId);
1768
+ host.appendChild(iframe);
1769
+ }
1770
+ else {
1771
+ iframe.removeAttribute('slot');
1772
+ this.wrapperElement.appendChild(iframe);
1773
+ }
1774
+ }
1775
+ componentDidRender() {
1776
+ // iframeSrc depends on the iframeInputStyles store, which is filled after
1777
+ // first paint; keep the light-DOM iframe in sync like the old JSX src did.
1778
+ if (this.iframeElement && this.iframeElement.getAttribute('src') !== this.renderedSrc) {
1779
+ this.iframeElement.setAttribute('src', this.renderedSrc);
1780
+ }
1781
+ }
1691
1782
  disconnectedCallback() {
1692
- this.frameService.removeMessageListener(this.dispatchMessageEvent);
1783
+ var _a, _b, _c, _d, _e;
1784
+ // Stencil defers this call; on a DOM move the element is already back in
1785
+ // the document (its light-DOM iframe moved with the host), so leave it be.
1786
+ if (this.el.isConnected)
1787
+ return;
1788
+ (_a = this.frameService) === null || _a === void 0 ? void 0 : _a.removeMessageListener(this.dispatchMessageEvent);
1789
+ (_d = (_c = (_b = this.iframeElement) === null || _b === void 0 ? void 0 : _b.iFrameResizer) === null || _c === void 0 ? void 0 : _c.removeListeners) === null || _d === void 0 ? void 0 : _d.call(_c);
1790
+ (_e = this.iframeElement) === null || _e === void 0 ? void 0 : _e.remove();
1693
1791
  }
1694
1792
  async validate() {
1695
1793
  const response = await this.frameService
@@ -1714,6 +1812,12 @@ const IframeInput = class {
1714
1812
  this.frameService = new FrameCommunicationService(this.iframeElement, this.iframeOrigin);
1715
1813
  (_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
1716
1814
  }
1815
+ sendMaskCardNumber() {
1816
+ var _a;
1817
+ (_a = this.frameService) === null || _a === void 0 ? void 0 : _a.postMessage(MessageEventType.setMaskCardNumber, {
1818
+ enabled: !!this.maskCardNumber,
1819
+ });
1820
+ }
1717
1821
  get part() {
1718
1822
  if (this.isFocused && !this.isValid) {
1719
1823
  return inputInvalidAndFocused;
@@ -1745,25 +1849,22 @@ const IframeInput = class {
1745
1849
  return params;
1746
1850
  }
1747
1851
  get iframeSrc() {
1748
- return `${this.iframeOrigin}?${this.urlParams}`;
1852
+ // iframeOrigin already carries ?tabId=…; a second '?' would fold the
1853
+ // style params into the tabId value on the iframe side.
1854
+ const separator = this.iframeOrigin.includes('?') ? '&' : '?';
1855
+ return `${this.iframeOrigin}${separator}${this.urlParams}`;
1749
1856
  }
1750
1857
  render() {
1751
- return (h(Host, { key: '7116bdbe3d3a69fac28965fa011d016d35ec5025', class: "form-group d-flex flex-column" }, h("div", { key: 'e784c6f81476eb282a07714d5b789f41342c4a2a', style: {
1858
+ this.renderedSrc = this.iframeSrc;
1859
+ return (h(Host, { key: '4e4844f10dec9ddcb6f3f4ccaa5ffe7f254f1a33', class: "form-group d-flex flex-column" }, h("div", { key: '65cf8392e8e5925560a2bfa80fb15209ec14e267', style: {
1752
1860
  visibility: this.iframeLoaded ? 'visible' : 'hidden',
1753
1861
  height: this.iframeLoaded ? 'auto' : '0',
1754
- } }, h("label", { key: 'd0b4341c92a4c957ec4a03485357d6cef7f22426', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: '9be8449ee6b3d37aa3607ff31d5649c73e3f4206', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: '093b48e69a6e8a15a4fd9877424bb0c9a3f58ad7', id: this.inputId, name: this.inputId, src: this.iframeSrc, ref: el => {
1755
- this.iframeElement = el;
1756
- this.initializeFrameCommunicationService();
1757
- }, width: "100%", onLoad: () => {
1758
- iFrameResize({
1759
- log: false,
1760
- onResized: () => {
1761
- this.iframeLoaded.emit();
1762
- }
1763
- }, this.iframeElement);
1764
- } })), h(FormControlErrorText, { key: 'f5897f95387e6400f35c997b2921a60fb5f4f11b', errorText: this.errorText, name: this.inputId }))));
1862
+ } }, h("label", { key: 'c33c671e062b2d91a6c7dcdc938faa973a320ac8', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: 'dd294ff2efac3747af3ec6baa73fc74aaad8b46b', ref: el => (this.wrapperElement = el), class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }), h(FormControlErrorText, { key: 'a6a65814a1ba0fcb2ec4eff7f6b334a134763a8e', errorText: this.errorText, name: this.inputId }))));
1765
1863
  }
1766
1864
  get el() { return getElement(this); }
1865
+ static get watchers() { return {
1866
+ "maskCardNumber": ["maskCardNumberChanged"]
1867
+ }; }
1767
1868
  };
1768
1869
 
1769
1870
  export { FormAlert as form_alert, HiddenInput as hidden_input, IframeInput as iframe_input };
@@ -40,10 +40,10 @@ const FormControlCheckbox = class {
40
40
  return inputCheckbox;
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: '9ea01cd4924c033667f62b7aa40d58b5faccc031' }, h("div", { key: '88d3b33c11dbbe42e0fb297897488b0ba556d651', class: 'form-group d-flex flex-column' }, h("div", { key: '90207e47e5894596fce269e55ba2c6e9d0e01956', class: "form-check" }, h("input", { key: 'ab0d509ef0767fe895ee97d307e9b7c1ae4ee74c', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
43
+ return (h(Host, { key: 'b4a318391a00778af627a0385a93d7ef60c4bccf' }, h("div", { key: '51cc39ecf64ee93f675debb15f41826cb8313f55', class: 'form-group d-flex flex-column' }, h("div", { key: '6f94ae2471682353da92935d54ecfc6586c23043', class: "form-check" }, h("input", { key: '0765ddf0ca90961699fb4193bc69f4d993a86605', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
44
44
  this.isFocused = false;
45
45
  this.formControlBlur.emit();
46
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '3b073d6d6c8be7ed363d2fe58a23938151a38470', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '5e0718d4617805c9dcf80e3152df0064cf479f8b', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '03480fb80e0f07d6264913f495c7cfc1a137b621', errorText: this.errorText, name: this.name }))));
46
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '1393b351ea9d57d215f57c6dab211db04456563c', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'e6cf1f28d5319dddce29f2e8e16d5124696f7f2d', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '073b4f85a30dad86a1d71acc4f81f8be83d915d9', errorText: this.errorText, name: this.name }))));
47
47
  }
48
48
  };
49
49
 
@@ -47,10 +47,10 @@ const FormControlDate = class {
47
47
  return part;
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: 'f13cdd01d9c9c182cac6775b8c425c6b8c6a28a4' }, h("div", { key: '7c384c55489845aaa4c43f15b9a8a1cba78336f0', class: "form-group d-flex flex-column" }, h("div", { key: '49537b1c0411dc5af79c8029e31f7ee81c024b3b', class: "d-flex gap-2" }, h("label", { key: 'a628a20b2a2ad6c0793e8dbdcc1b4d7cd2903426', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'e093066be7c17c3cc0d36a552f2c96b878b84add', helpText: this.helpText })), h("input", { key: 'f2f1e4cd80dd57391fb661199473a30c2f564e84', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
50
+ return (h(Host, { key: '94251f3df294348460dafe736036018fda20cfb7' }, h("div", { key: '16f9e5a436bd58f5e1baf42cc5b6e5f47082cbef', class: "form-group d-flex flex-column" }, h("div", { key: 'f4f00eacfe91e033121f3e4e01b3d664dce14319', class: "d-flex gap-2" }, h("label", { key: '085aa90a2eb929073227ed1dd8a12541b3d3ab8d', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '87c826650b1e5f82db9110464c7e7f9c16cd6353', helpText: this.helpText })), h("input", { key: '824e104137bcb77a87e9691c0ae19b57b2812a85', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
51
51
  this.isFocused = false;
52
52
  this.formControlBlur.emit();
53
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: 'ce8212d07db5141ffdef577153a945f11f7ab368', errorText: this.errorText, name: this.name }))));
53
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '20566bdcd0149a9e464d547596b617ef9c95df27', errorText: this.errorText, name: this.name }))));
54
54
  }
55
55
  static get watchers() { return {
56
56
  "defaultValue": ["handleDefaultValueChange"]
@@ -12,7 +12,7 @@ const FormControlFileV2 = class {
12
12
  this.disabled = false;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '8f1a2e7469bf052321e464d3d7d4434a8e1b94eb', exportparts: "label,input,input-invalid" }, h("div", { key: 'a930b47727ba05e965ec5df7b042d2416d38db2c', class: "form-group d-flex flex-column" }, h("div", { key: 'e1040ac692c0f597c0461bcaa27f562c69056c30', class: "d-flex align-items-start gap-2" }, h("label", { key: '387e3d18da10274de2cf9ef680d9483d7855e77e', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '4bc4aab440ec7cca2eb6af7105d2d9078922376a', helpText: this.helpText })), h("input", { key: '4050a93b51b5b1ecadfe9cff53c5794321c77d13', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'aee21aa5cd54e48f2e7eca3763a07051dd942653', errorText: this.errorText, name: this.name }))));
15
+ return (h(Host, { key: 'da210da60328a5f8ee71a88b5fa8d4d67220239b', exportparts: "label,input,input-invalid" }, h("div", { key: 'f77db6dd47f4d9d64beace790a6d4fcd937c381c', class: "form-group d-flex flex-column" }, h("div", { key: 'ce25b3f690fed13cefa402d07f0afffc7c168f46', class: "d-flex align-items-start gap-2" }, h("label", { key: '82d2d2cebee0b98849c90ab90a67cb56be8c239e', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2593993d8ed2824c8ceaf0c7c9da194361edac25', helpText: this.helpText })), h("input", { key: '04d5a84a8c1a92b20ef26f47463b3a836027c8cb', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'ccb9cc9b8e138f3f9e1ed96fe660f3d784de004f', errorText: this.errorText, name: this.name }))));
16
16
  }
17
17
  get el() { return getElement(this); }
18
18
  };
@@ -46,10 +46,10 @@ const FormControlFile = class {
46
46
  return part;
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '9ea17017850bd5e83a213b5247af2fe64f11db6c' }, h("div", { key: '6cb7715a542d193a1ef1579dad6889fb0191e195', class: "form-group d-flex flex-column" }, h("div", { key: 'c643268b004611f98b4d24c341a46d0bce9a8944', class: "d-flex align-items-start gap-2" }, h("label", { key: '3541f24060c2279f0cfb604f7bdec355462196a8', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '66f62e7d0ab51765fefc92d8674402a439671792', helpText: this.helpText })), h("input", { key: '564819ed2423c923f16329dc4ccb7a96f50e7ddd', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
49
+ return (h(Host, { key: 'fd3e5af54ba42014196b5cd26e4fb91ae7b04e68' }, h("div", { key: 'a982526be770395d5863d55612f8b7667a134526', class: "form-group d-flex flex-column" }, h("div", { key: 'bc99a3c94724653ff964ba327a165d4ab4314df0', class: "d-flex align-items-start gap-2" }, h("label", { key: '5273169e3315ca56cbea084cdb1609bb2ecaf574', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '289c5af9aedae97a62e1b406f8c955f95b29ae55', helpText: this.helpText })), h("input", { key: '98dab3b8bb3afbd9f15ddcfc3e5e2bb73df7d857', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
50
50
  this.isFocused = false;
51
51
  this.formControlBlur.emit();
52
- } }), h(FormControlErrorText, { key: '2bbc1831fa7aaf773c24860ac47a8318b2eef93d', errorText: this.errorText, name: this.name }))));
52
+ } }), h(FormControlErrorText, { key: '9c78c3dd8138e90f0de3d806c61e02c85f918817', errorText: this.errorText, name: this.name }))));
53
53
  }
54
54
  get el() { return getElement(this); }
55
55
  };
@@ -49,10 +49,10 @@ const FormControlMonetary = class {
49
49
  return input;
50
50
  }
51
51
  render() {
52
- return (h(Host, { key: '0e155ea412884f0d45702620cf31aa3910940e88' }, h("div", { key: 'bdf371cf77ec32483c8f984fdc68133ae05be865', class: "form-group d-flex flex-column" }, h("label", { key: 'b8b30aa3bb6ebc5e423593737fd646090a584272', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: '6ba6701d1b54eb1b7e4e9de2f6386346b055d516', name: this.name, helpText: this.helpText }), h("div", { key: 'cf6893c681afe85d9e435a9e8920683dd9864c14', class: "input-group" }, h("span", { key: 'de56ce422d29f38028dcbefd8f35be3210223f67', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: '234592cf95dc5e613fee8da90a5a4e40389b5bc4', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
52
+ return (h(Host, { key: 'c93f2282272f252f5ebc3beaa2a9c8b5354d3e27' }, h("div", { key: '7ae866ddbd1f59c41aa65e1403fc4bc50e339cad', class: "form-group d-flex flex-column" }, h("label", { key: '1490d1484abf2bde39b66be0decf40cb631ec74f', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: '22134cce2d545a2890b1b8a3c7f65ed6d16dc56d', name: this.name, helpText: this.helpText }), h("div", { key: 'd1630cf3ed7523af0c5138d3aa515d005f7d960e', class: "input-group" }, h("span", { key: '6513844b4374ed9cac1b8e23036086bc002ea8f0', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: 'a59d39b8d81bef0178556d4fa0094dba0c40fd6e', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
53
53
  this.isFocused = false;
54
54
  this.formControlBlur.emit();
55
- }, onInput: (event) => this.updateInput(event.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 })), h(FormControlErrorText, { key: '2e66376501c5a7718f41c2714a66acf74bb6cde4', errorText: this.errorText, name: this.name }))));
55
+ }, onInput: (event) => this.updateInput(event.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 })), h(FormControlErrorText, { key: '777cdcb4a8872899dfea021185b83ad0f73bf153', errorText: this.errorText, name: this.name }))));
56
56
  }
57
57
  static get watchers() { return {
58
58
  "defaultValue": ["handleDefaultValueChange"]
@@ -4,10 +4,10 @@ import { F as FormControlHelpText } from './form-control-help-text-DxvEdU36.js';
4
4
  import { F as FormControlErrorText } from './form-control-error-text-FyanxO4T.js';
5
5
  import './event-types-CZfYo5-1.js';
6
6
  import { I as IDENTITY_MASKS, P as PHONE_MASKS } from './form-input-masks-CVaOFfrI.js';
7
- import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-Dfuc6aDW.js';
8
- import { C as CountryCode } from './Business-DaDqgDrb.js';
9
- import { c as countryLabels } from './country-config-CJwnhkdq.js';
10
- import { b as businessTitleOptions } from './business-form-options-BxVQL9ar.js';
7
+ import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-Dm8jO-BT.js';
8
+ import { C as CountryCode } from './Business-CTtGaVYs.js';
9
+ import { c as countryLabels } from './country-config-DJFj1v-Q.js';
10
+ import { b as businessTitleOptions } from './business-form-options-DLRkVtee.js';
11
11
 
12
12
  const FormControlNumber = class {
13
13
  constructor(hostRef) {
@@ -48,10 +48,10 @@ const FormControlNumber = class {
48
48
  return input;
49
49
  }
50
50
  render() {
51
- return (h(Host, { key: 'e21694c1c7611df6ede999aa75fece02977f66f3' }, h("div", { key: '8ea4a38832865e82ffeebcceaabc704d10403966', class: 'form-group d-flex flex-column' }, h("label", { key: '396ab2f79a7168080538ae46da735506b0797311', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '715cb6bfbf439fdd4f659e6d21091b047cbca94d', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
51
+ return (h(Host, { key: '9081f9d76b976b6362c1523e1de634b26b296c23' }, h("div", { key: '45c974d7715ed72a4a87f9f22ed83e2d817f2f06', class: 'form-group d-flex flex-column' }, h("label", { key: '4d106b3a4216f8972578a824ef325c7ca61cd95f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'daa202084755debd61a2472ca43c1af5f7d01be6', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
52
52
  this.isFocused = false;
53
53
  this.formControlBlur.emit();
54
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: 'f8695d85c9b447644b5bdf02d4df9e1c1e3e5da7', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'e736f720d89f5d5aeee6982cb15ea11f63c5dd93', errorText: this.errorText, name: this.name }))));
54
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: 'b3f6136f2922dd6774fe39c8d60d44c3ba73acbc', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'fc3e430004b05c8e57f211de263a9ebbb067f076', errorText: this.errorText, name: this.name }))));
55
55
  }
56
56
  get el() { return getElement(this); }
57
57
  static get watchers() { return {
@@ -33,10 +33,10 @@ const FormControlRadio = class {
33
33
  return inputRadio;
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: 'ffbfee5a2bffb9dc2d6c2489faa9daa60a36604e', class: 'form-group d-flex flex-column' }, h("div", { key: '93e4d129fd0a67d6b6f021b2af4e816683f8b926', class: "form-check" }, h("input", { key: 'e100d93d9750db95262e63aaaf75ff413dbc0928', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
36
+ return (h(Host, { key: 'f5746b8ab344d7d859495c3889c08166fc2eb6f9', class: 'form-group d-flex flex-column' }, h("div", { key: '65387cf2b9d2881115b3c6bc2751443b12a04631', class: "form-check" }, h("input", { key: 'b645faa1c0d03716f9b77467376a2b45d4bd50f1', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
37
37
  this.isFocused = false;
38
38
  this.formControlBlur.emit();
39
- }, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '14a8bb0f48683405413245f572d3186d8948de41', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: 'ca497838c5f52e0c9a528c9503b2e17785239d23', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '6f1f5d3ac8e1fe55d9c676f5e5f96633de777d01', errorText: this.errorText, name: this.name })));
39
+ }, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '131481024b5a7b720f8af4f3884a3fb9b7ced09a', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: '1ebbffbbc0b596aa74c603a739208792f25f4b35', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '006b4e0446be98b63aaed435bc26fea81d377f26', errorText: this.errorText, name: this.name })));
40
40
  }
41
41
  };
42
42
 
@@ -40,10 +40,10 @@ const FormControlSelect = class {
40
40
  }
41
41
  render() {
42
42
  var _a;
43
- return (h(Host, { key: '1bf4b5a98883ea56ee00cc10c8e665c5816322f9' }, h("div", { key: '9c36f16f9fad894ffe4ae9e665fae50839fbac58', class: "form-group d-flex flex-column" }, h("div", { key: 'f81841ffb7bf19c6460a087cec95617aa3a983a2', class: "d-flex align-items-start gap-2" }, h("label", { key: 'd17ae46135877411c2aa15b5a2390c31ca791955', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2e0c07c7f0421547271c18fa1919e97b1735a6ba', helpText: this.helpText })), h("select", { key: '5c68fb7f1ae8c55b3c52730286f2b33391b619cc', ref: el => (this.selectElement = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
43
+ return (h(Host, { key: '7ae757edb683563ddbd741dc2b47ca8f60036739' }, h("div", { key: 'eddf24df01b1e4c77a79190900368804427142c6', class: "form-group d-flex flex-column" }, h("div", { key: '5b28bcdecb5e2f5ebe8bed6450634bc62587ec09', class: "d-flex align-items-start gap-2" }, h("label", { key: 'bb6d3a3cede9e07f05ee3fbfaff4b64ff4ecce36', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'cb1ff06b81428b8bc9801d8b11f76dc0b6103460', helpText: this.helpText })), h("select", { key: '68c958cd97b38b3a5cf505ee79fff79b5c99b671', ref: el => (this.selectElement = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
44
44
  this.isFocused = false;
45
45
  this.formControlBlur.emit();
46
- }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '43c4397970628eabb1554d9352808566aa219a7a', errorText: this.errorText, name: this.name }))));
46
+ }, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '37efe1a0cefba96986546f3efe338855ad7e1142', errorText: this.errorText, name: this.name }))));
47
47
  }
48
48
  static get watchers() { return {
49
49
  "defaultValue": ["handleDefaultValueChange"]
@@ -57,10 +57,26 @@ const FormControlText = class {
57
57
  this.formControlBlur = createEvent(this, "formControlBlur", 7);
58
58
  this.isFocused = false;
59
59
  this.handleFormControlInput = (event) => {
60
+ var _a, _b;
60
61
  const target = event.target;
61
62
  const name = target.getAttribute('name');
62
- this.inputHandler(name, target.value);
63
- this.formControlInput.emit({ name, value: target.value });
63
+ const raw = target.value;
64
+ const value = this.transformValue ? this.transformValue(raw) : raw;
65
+ if (value !== raw) {
66
+ // Writing back to the input drops the caret at the end, which is wrong
67
+ // mid-string — and with a transform that uppercases, that would happen on
68
+ // every lowercase keystroke. Shift the caret by whatever the transform added.
69
+ const caret = (_a = target.selectionStart) !== null && _a !== void 0 ? _a : raw.length;
70
+ const atEnd = caret >= raw.length;
71
+ target.value = value;
72
+ const next = atEnd
73
+ ? value.length
74
+ : Math.max(0, Math.min(caret + (value.length - raw.length), value.length));
75
+ // Stencil's mock DOM does not implement setSelectionRange.
76
+ (_b = target.setSelectionRange) === null || _b === void 0 ? void 0 : _b.call(target, next, next);
77
+ }
78
+ this.inputHandler(name, value);
79
+ this.formControlInput.emit({ name, value });
64
80
  };
65
81
  this.updateInput = (newValue) => {
66
82
  const inputElement = this.el.querySelector('input');
@@ -88,10 +104,10 @@ const FormControlText = class {
88
104
  return input;
89
105
  }
90
106
  render() {
91
- return (h(Host, { key: '0a275b26c5e6604a478bd4618f8955264205b4f8' }, h("div", { key: 'c495cf0113cfd1ddd6a4d586dfb96d67ec7e92f1', class: "form-group d-flex flex-column" }, h("div", { key: '6a97e6086faaf4b43c41da9615568f359760343c', class: "d-flex align-items-start gap-2" }, h("label", { key: '39c1d7b7d281874a81125374e7a351783de14207', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '646caf4cd154574488610f47a593a8fbfff0778f', helpText: this.helpText })), h("input", { key: '540637afeb21d3da93c304710568a0ed8ad99dc4', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
107
+ return (h(Host, { key: '4808c4fb58073827260e3b9cacb29bf255dc1be0' }, h("div", { key: '2b98cc1e67fefbc4c7209138399a8878db18415a', class: "form-group d-flex flex-column" }, h("div", { key: 'a2ee4c060e34cb7631b6d0a910c8e924a671ec7c', class: "d-flex align-items-start gap-2" }, h("label", { key: 'e30e5db079b64f78f34024bf57894875148a7da4', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2eb82b47a70fd2acc2ca6c41485a0d4ede0cfa3a', helpText: this.helpText })), h("input", { key: '518f7b015ce95d515733e51a4bcf55a5326ac02e', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
92
108
  this.isFocused = false;
93
109
  this.formControlBlur.emit();
94
- }, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '1a8246dbf9908c7e56ae2cc0cbea65934c3a33ce', errorText: this.errorText, name: this.name }))));
110
+ }, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'fc648459c0d9ef21fdf861286e940d6bb8ac2004', errorText: this.errorText, name: this.name }))));
95
111
  }
96
112
  get el() { return getElement(this); }
97
113
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
- import { B as Business } from './Business-DaDqgDrb.js';
2
- import { C as ComponentErrorSeverity } from './Plaid-BP3xNxQF.js';
3
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
1
+ import { B as Business } from './Business-CTtGaVYs.js';
2
+ import { C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
3
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
4
4
 
5
5
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError, final }) => {
6
6
  var _a;
@@ -1,9 +1,9 @@
1
1
  import './config-state-BKOsYBXZ.js';
2
2
  import './dinero-HXpYMWUU.js';
3
- import { e as Payment, C as ComponentErrorSeverity } from './Plaid-BP3xNxQF.js';
3
+ import { e as Payment, C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Business-DaDqgDrb.js';
6
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
5
+ import './Business-CTtGaVYs.js';
6
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
7
7
 
8
8
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError, final }) => {
9
9
  var _a;
@@ -1,10 +1,10 @@
1
- import { A as Api } from './Api-83B3f28Q.js';
2
- import { S as SubAccount, C as ComponentErrorSeverity } from './Plaid-BP3xNxQF.js';
1
+ import { A as Api } from './Api-INJHjnya.js';
2
+ import { S as SubAccount, C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
- import './Business-DaDqgDrb.js';
4
+ import './Business-CTtGaVYs.js';
5
5
  import './config-state-BKOsYBXZ.js';
6
6
  import './dinero-HXpYMWUU.js';
7
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
7
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
8
8
 
9
9
  const api = Api();
10
10
  class SubAccountService {
@@ -1,4 +1,4 @@
1
- import { d as deconstructDate } from './Business-DaDqgDrb.js';
1
+ import { d as deconstructDate } from './Business-CTtGaVYs.js';
2
2
 
3
3
  const updateFormValues = (formController, newValues) => {
4
4
  formController.setValues(Object.assign(Object.assign({}, formController.values.getValue()), newValues));