@justifi/webcomponents 5.7.7 → 6.0.0-rc.10

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 (756) hide show
  1. package/dist/cjs/{Api-DLhABIj9.js → Api-DyimBzKT.js} +1 -1
  2. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-D4OLnOkg.js} +10 -0
  3. package/dist/cjs/{Refund-1bG6RRPO.js → Refund-BefKONu4.js} +248 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -9
  6. package/dist/cjs/bank-account-form.cjs.entry.js +66 -0
  7. package/dist/cjs/{business.service-CaCyLLFW.js → business.service-BB6zl4Gc.js} +3 -5
  8. package/dist/cjs/card-form.cjs.entry.js +74 -0
  9. package/dist/cjs/{check-pkg-version-D6Kztnv7.js → check-pkg-version-DiQ-d5Nl.js} +10 -6
  10. package/dist/cjs/{checkout.service-DgD37tJv.js → checkout.service-B-R80p4f.js} +3 -5
  11. package/dist/cjs/checkout.store-BGvYPPz0.js +88 -0
  12. package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -7
  13. package/dist/cjs/{checkouts-table-Bzpqcsu0.js → checkouts-table-DjMdEiEW.js} +1 -1
  14. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +22 -2
  15. package/dist/cjs/dinero-BwNN_k7x.js +1657 -0
  16. package/dist/cjs/{dispute.service-C0w_4Agq.js → dispute.service-B5tITFAh.js} +3 -5
  17. package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  21. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -3
  23. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
  24. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +4 -23
  27. package/dist/cjs/{get-business-BJrtsomz.js → get-business-o5jPq_ME.js} +2 -2
  28. package/dist/cjs/{get-payment-details-BbfnopoD.js → get-payment-details-BfgRmNL4.js} +5 -7
  29. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-DE_D9y08.js} +2 -2
  30. package/dist/cjs/{get-subaccounts-CpCJjnYt.js → get-subaccounts-Bnfv2tEN.js} +5 -7
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
  32. package/dist/cjs/{iframe-input_4.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -153
  33. package/dist/cjs/index-D-dD-aC2.js +30 -0
  34. package/dist/cjs/index.cjs.js +8 -0
  35. package/dist/cjs/{insurance-state-e44s1lUQ.js → insurance-state-d2thhXUX.js} +18 -0
  36. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -5
  37. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -18
  38. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  39. package/dist/cjs/justifi-apple-pay.cjs.entry.js +782 -0
  40. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +373 -0
  41. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -12
  42. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -11
  43. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1421 -0
  45. package/dist/cjs/justifi-checkout.cjs.entry.js +69 -99
  46. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +11 -12
  47. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -14
  48. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  49. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -11
  50. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -14
  51. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -9
  52. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -13
  53. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -13
  54. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -12
  55. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -12
  57. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
  58. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
  59. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -13
  60. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
  61. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
  62. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
  63. package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -14
  64. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -11
  65. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +31 -0
  66. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +120 -18
  67. package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
  68. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -7
  69. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -11
  70. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -6
  71. package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -13
  72. package/dist/cjs/loader.cjs.js +1 -1
  73. package/dist/cjs/{package-C0-LCfay.js → package-Be2aoTf8.js} +1 -1
  74. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  75. package/dist/cjs/payment-method-option-utils-WYHIHy-l.js +15 -0
  76. package/dist/cjs/payment-method-option.cjs.entry.js +17 -0
  77. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-CZVlnRA0.js} +2 -2
  78. package/dist/cjs/{payment.service-CtSdIJoy.js → payment.service-aR96UW5e.js} +3 -5
  79. package/dist/cjs/payments-list-core.cjs.entry.js +6 -7
  80. package/dist/cjs/{payments-table-CUGE6F-R.js → payments-table-BE8u0-i0.js} +1 -1
  81. package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
  82. package/dist/cjs/{payout.service-7DP6F8x7.js → payout.service-6Cl_yXXQ.js} +3 -5
  83. package/dist/cjs/payouts-list-core.cjs.entry.js +6 -7
  84. package/dist/cjs/{payouts-table-Ca9HqjV7.js → payouts-table-BbydhJUr.js} +1 -1
  85. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  86. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +6 -7
  87. package/dist/cjs/{terminal-orders-table-DPe_2FNB.js → terminal-orders-table-B4HjERrK.js} +3 -5
  88. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  89. package/dist/cjs/{terminal.service-BR9g1yaB.js → terminal.service-D1FAYZzd.js} +3 -5
  90. package/dist/cjs/terminals-list-core.cjs.entry.js +6 -7
  91. package/dist/cjs/{terminals-table-DDoJIYZu.js → terminals-table-C79Xc4FI.js} +1 -1
  92. package/dist/cjs/{utils-Dewr6SlQ.js → utils-ChCUZgUy.js} +3 -1661
  93. package/dist/cjs/{utils-l0veqT9y.js → utils-DvUQQLmR.js} +1 -1
  94. package/dist/cjs/webcomponents.cjs.js +1 -1
  95. package/dist/collection/actions/checkout/checkout-actions.js +2 -1
  96. package/dist/collection/api/ApplePay.js +119 -0
  97. package/dist/collection/api/BillingInformation.js +1 -0
  98. package/dist/collection/api/Checkout.js +1 -3
  99. package/dist/collection/api/ComponentError.js +10 -0
  100. package/dist/collection/api/Payment.js +5 -2
  101. package/dist/collection/api/PaymentMethod.js +1 -0
  102. package/dist/collection/api/services/apple-pay.service.js +293 -0
  103. package/dist/collection/api/services/plaid.service.js +20 -0
  104. package/dist/collection/assets/plaid-icon.svg +1 -0
  105. package/dist/collection/collection-manifest.json +17 -9
  106. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  107. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  108. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  109. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  110. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  111. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  112. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  113. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  114. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  115. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  119. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  122. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  123. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  129. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +3 -3
  130. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  131. package/dist/collection/components/checkout/checkout.js +136 -53
  132. package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
  133. package/dist/collection/components/checkout/save-new-payment-method.js +9 -5
  134. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  135. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  136. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  137. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  138. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  144. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  151. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  152. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  153. package/dist/collection/components/insurance/insurance-state.js +18 -1
  154. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +118 -12
  155. package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
  156. package/dist/collection/components/modular-checkout/modular-checkout.js +525 -0
  157. package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
  158. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +509 -0
  159. package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/bank-account-billing-form-simple.js +7 -5
  160. package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
  161. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
  162. package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/billing-form-full.js +12 -8
  163. package/dist/collection/components/{checkout/billing-form → modular-checkout/sub-components}/card-billing-form-simple.js +7 -5
  164. package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
  165. package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
  166. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
  167. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +885 -0
  168. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +124 -0
  169. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +42 -0
  170. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +144 -0
  171. package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
  172. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  173. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  174. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  175. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  176. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  177. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  178. package/dist/collection/components/payments-list/payments-list.js +1 -1
  179. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  180. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  181. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  182. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  183. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  184. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  185. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  186. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  187. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  188. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  189. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  190. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +317 -78
  191. package/dist/collection/index.js +1 -0
  192. package/dist/collection/store/checkout.store.js +78 -0
  193. package/dist/collection/ui-components/apple-pay-button.js +146 -0
  194. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  196. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  198. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  202. package/dist/collection/ui-components/form/form-control-radio.js +5 -5
  203. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  204. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  205. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  206. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  207. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  208. package/dist/collection/ui-components/index.js +1 -0
  209. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
  210. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
  211. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +155 -0
  212. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
  213. package/dist/collection/utils/check-pkg-version.js +6 -0
  214. package/dist/docs.json +5408 -5097
  215. package/dist/esm/{Api-BJv2_XdA.js → Api-DAWuvzbl.js} +1 -1
  216. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-Cjcsf8ku.js} +11 -1
  217. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  218. package/dist/esm/{Refund-Dwnnpqim.js → Refund-CVh70dXA.js} +247 -2
  219. package/dist/esm/additional-questions-details_5.entry.js +4 -3
  220. package/dist/esm/{badge-XXatxWS0.js → badge-DSYSJcRy.js} +1 -1
  221. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -13
  222. package/dist/{module/bank-account-form2.js → esm/bank-account-form.entry.js} +12 -36
  223. package/dist/esm/business-details-core.entry.js +3 -3
  224. package/dist/esm/{business.service-Di9jP2_p.js → business.service-cQrH5BqF.js} +4 -6
  225. package/dist/esm/{button-C-ZZ9yD1.js → button-CpllL0At.js} +1 -1
  226. package/dist/esm/card-form.entry.js +72 -0
  227. package/dist/esm/{check-pkg-version-8KHO3ihW.js → check-pkg-version-CAnDiqiu.js} +11 -7
  228. package/dist/esm/{checkout.service-l-H_OIZa.js → checkout.service-Bbgi1I6V.js} +4 -6
  229. package/dist/esm/checkout.store-CCdFOPCK.js +83 -0
  230. package/dist/esm/checkouts-list-core.entry.js +11 -12
  231. package/dist/esm/{checkouts-table-DmwocPX2.js → checkouts-table-Ddf2I-Ul.js} +3 -3
  232. package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +22 -3
  233. package/dist/esm/dinero-HXpYMWUU.js +1655 -0
  234. package/dist/esm/{dispute.service-CaEbHFjw.js → dispute.service-CrZsNDW8.js} +4 -6
  235. package/dist/esm/form-alert_5.entry.js +5 -5
  236. package/dist/esm/form-control-checkbox.entry.js +5 -5
  237. package/dist/esm/form-control-date.entry.js +4 -4
  238. package/dist/esm/{form-control-error-text-eKr_QuRZ.js → form-control-error-text-R7U07nTg.js} +1 -1
  239. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  240. package/dist/esm/{form-control-help-text-Dw2vjMQ5.js → form-control-help-text-CRLH-2f7.js} +1 -1
  241. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  242. package/dist/esm/form-control-monetary.entry.js +7 -6
  243. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  244. package/dist/esm/form-control-number.entry.js +5 -5
  245. package/dist/esm/form-control-radio.entry.js +3 -3
  246. package/dist/esm/{form-control-select_3.entry.js → form-control-select_2.entry.js} +7 -25
  247. package/dist/esm/{get-business-GEPTefIj.js → get-business-Crb6P-iI.js} +2 -2
  248. package/dist/esm/{get-payment-details-BOpjKcRB.js → get-payment-details-0VzpMNY9.js} +5 -7
  249. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-D-Lnooki.js} +2 -2
  250. package/dist/esm/{get-subaccounts-0Ri4RB5r.js → get-subaccounts-9UMbyFiT.js} +6 -8
  251. package/dist/esm/gross-payment-chart-core.entry.js +6 -5
  252. package/dist/esm/{header-1-BnwrlkS-.js → header-1-3M9If0gM.js} +1 -1
  253. package/dist/esm/{header-3-IOnOCyak.js → header-3-CWa41YWq.js} +1 -1
  254. package/dist/esm/{iframe-input_4.entry.js → hidden-input_2.entry.js} +106 -146
  255. package/dist/esm/index-CbL73B6U.js +30 -0
  256. package/dist/esm/index.js +1 -1
  257. package/dist/esm/insurance-state-CTalqbNa.js +45 -0
  258. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -9
  259. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -21
  260. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  261. package/dist/esm/justifi-apple-pay.entry.js +780 -0
  262. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +363 -0
  263. package/dist/esm/justifi-business-details.entry.js +13 -14
  264. package/dist/esm/justifi-business-form.entry.js +15 -16
  265. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  266. package/dist/esm/justifi-checkout-summary_7.entry.js +1413 -0
  267. package/dist/esm/justifi-checkout.entry.js +69 -99
  268. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -8
  269. package/dist/esm/justifi-checkouts-list.entry.js +15 -16
  270. package/dist/esm/justifi-details.entry.js +2 -2
  271. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  272. package/dist/esm/justifi-dispute-management.entry.js +11 -12
  273. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -17
  274. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -12
  275. package/dist/esm/justifi-order-terminals.entry.js +15 -16
  276. package/dist/esm/justifi-owner-form_3.entry.js +14 -15
  277. package/dist/esm/justifi-payment-details.entry.js +13 -14
  278. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  279. package/dist/esm/justifi-payment-provisioning.entry.js +12 -13
  280. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -15
  281. package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
  282. package/dist/esm/justifi-payments-list.entry.js +15 -16
  283. package/dist/esm/justifi-payout-details.entry.js +13 -14
  284. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -15
  285. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
  286. package/dist/esm/justifi-payouts-list.entry.js +17 -18
  287. package/dist/esm/justifi-refund-payment.entry.js +14 -15
  288. package/dist/esm/justifi-saved-payment-method.entry.js +29 -0
  289. package/dist/esm/justifi-season-interruption-insurance.entry.js +122 -20
  290. package/dist/esm/justifi-skeleton.entry.js +15 -0
  291. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -9
  292. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -14
  293. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -8
  294. package/dist/esm/justifi-terminals-list.entry.js +15 -16
  295. package/dist/esm/loader.js +1 -1
  296. package/dist/esm/{package-BOCuVjGs.js → package-CnWtPu8L.js} +1 -1
  297. package/dist/esm/pagination-menu.entry.js +1 -1
  298. package/dist/esm/{parts-CVGBVdVC.js → parts-RvUQ__Pq.js} +1 -1
  299. package/dist/esm/payment-details-core.entry.js +15 -14
  300. package/dist/esm/payment-method-option-utils-lUHAQVFl.js +15 -0
  301. package/dist/esm/payment-method-option.entry.js +15 -0
  302. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-ONP8lDnV.js} +2 -2
  303. package/dist/esm/{payment.service-Dz5mhgIm.js → payment.service-TxyxCg0E.js} +4 -6
  304. package/dist/esm/payments-list-core.entry.js +12 -13
  305. package/dist/esm/{payments-status-CN8wEqKC.js → payments-status-5orNU2Rd.js} +1 -1
  306. package/dist/esm/{payments-table-SmMgUr5X.js → payments-table-gkJV5GNK.js} +3 -3
  307. package/dist/esm/payout-details-core.entry.js +11 -10
  308. package/dist/esm/{payout.service-DUnRbCmv.js → payout.service-BOwZ4wWh.js} +4 -6
  309. package/dist/esm/payouts-list-core.entry.js +12 -13
  310. package/dist/esm/{payouts-status-BzTh9X2W.js → payouts-status-CZPwa2AE.js} +1 -1
  311. package/dist/esm/{payouts-table-SB6q0e7V.js → payouts-table-0PtktGRd.js} +3 -3
  312. package/dist/esm/{skeleton-DK6mW457.js → skeleton-qMb0_Cjy.js} +1 -1
  313. package/dist/esm/{spinner-CWoD0q_S.js → spinner-DUzyWLhj.js} +1 -1
  314. package/dist/esm/{table-KCj3mM1K.js → table-Br3n9Xu-.js} +2 -2
  315. package/dist/esm/table-filters-menu.entry.js +3 -3
  316. package/dist/esm/terminal-orders-list-core.entry.js +11 -12
  317. package/dist/esm/{terminal-orders-table-CPsSDEWs.js → terminal-orders-table-DTBSIMlJ.js} +6 -8
  318. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  319. package/dist/esm/{terminal.service-Vhk3qPk2.js → terminal.service-E6dZlM43.js} +4 -6
  320. package/dist/esm/terminals-list-core.entry.js +11 -12
  321. package/dist/esm/{terminals-table-CAavYaG5.js → terminals-table-TGUKTi7I.js} +3 -3
  322. package/dist/esm/{utils-Dccsn9BY.js → utils-BeQLScSm.js} +1 -1
  323. package/dist/esm/{utils-CKEiU2Q5.js → utils-BscIVFn8.js} +3 -1660
  324. package/dist/esm/{utils-_kzStVq_.js → utils-Dg6gMUTv.js} +1 -1
  325. package/dist/esm/webcomponents.js +1 -1
  326. package/dist/module/{check-pkg-version.js → Analytics.js} +28 -24
  327. package/dist/module/ModularCheckout.js +30 -0
  328. package/dist/module/Refund.js +331 -1
  329. package/dist/module/additional-questions.js +1 -1
  330. package/dist/module/additional-statement.js +2 -2
  331. package/dist/module/badge.js +1 -1
  332. package/dist/module/bank-account-billing-form-simple.js +9 -4
  333. package/dist/module/bank-account-document-inputs.js +3 -5
  334. package/dist/module/bank-account-form-inputs2.js +1 -1
  335. package/dist/module/bank-account-form.js +86 -1
  336. package/dist/module/bank-account.js +103 -0
  337. package/dist/module/billing-form-full.js +14 -11
  338. package/dist/module/billing-form-schema.js +3 -3
  339. package/dist/module/business-additional-questions-form-step.js +2 -2
  340. package/dist/module/business-bank-account-form-step-core.js +2 -4
  341. package/dist/module/business-bank-account-form-step.js +3 -5
  342. package/dist/module/business-core-info-form-step.js +2 -2
  343. package/dist/module/business-core-info.js +1 -1
  344. package/dist/module/business-details-core2.js +1 -0
  345. package/dist/module/business-documents-on-file2.js +2 -1
  346. package/dist/module/business-owners-form-step-core.js +1 -0
  347. package/dist/module/business-owners-form-step.js +2 -2
  348. package/dist/module/business-representative-form-inputs.js +1 -1
  349. package/dist/module/business-representative-form-step.js +2 -2
  350. package/dist/module/business-representative.js +1 -1
  351. package/dist/module/business-terms-conditions-form-step.js +2 -4
  352. package/dist/module/business.service.js +1 -3
  353. package/dist/module/button.js +1 -1
  354. package/dist/module/cancellation-policy.js +2 -2
  355. package/dist/module/card-billing-form-simple.js +9 -4
  356. package/dist/module/card-form.js +94 -1
  357. package/dist/module/card-form2.js +28 -13
  358. package/dist/module/checkout.service.js +1 -3
  359. package/dist/module/checkout.store.js +81 -0
  360. package/dist/module/checkouts-list-core2.js +6 -6
  361. package/dist/module/custom-popper2.js +2 -2
  362. package/dist/module/customer-details.js +2 -2
  363. package/dist/module/dinero.js +1655 -0
  364. package/dist/module/dispute-management-core.js +2 -2
  365. package/dist/module/dispute-notification.js +3 -2
  366. package/dist/module/dispute-response-actions.js +1 -3
  367. package/dist/module/dispute-response-core.js +2 -2
  368. package/dist/module/dispute-response.js +4 -3
  369. package/dist/module/duplicate-charge.js +2 -2
  370. package/dist/module/electronic-evidence.js +2 -2
  371. package/dist/module/form-alert2.js +1 -1
  372. package/dist/module/form-control-checkbox2.js +4 -3
  373. package/dist/module/form-control-date2.js +3 -2
  374. package/dist/module/form-control-file-v22.js +1 -1
  375. package/dist/module/form-control-file2.js +3 -2
  376. package/dist/module/form-control-monetary-provisioning2.js +4 -3
  377. package/dist/module/form-control-monetary2.js +4 -3
  378. package/dist/module/form-control-number-masked2.js +3 -2
  379. package/dist/module/form-control-number.js +4 -3
  380. package/dist/module/form-control-radio2.js +4 -4
  381. package/dist/module/form-control-select2.js +3 -2
  382. package/dist/module/form-control-text2.js +3 -2
  383. package/dist/module/form-control-textarea2.js +3 -3
  384. package/dist/module/get-business.js +1 -1
  385. package/dist/module/get-payment-details.js +2 -4
  386. package/dist/module/get-payout-csv.js +1 -1
  387. package/dist/module/get-subaccounts.js +2 -4
  388. package/dist/module/gross-payment-chart-core2.js +2 -2
  389. package/dist/module/header-2.js +8 -0
  390. package/dist/module/header-3.js +8 -0
  391. package/dist/module/hidden-input2.js +2 -2
  392. package/dist/module/identity-address-form.js +1 -1
  393. package/dist/module/iframe-input2.js +6 -6
  394. package/dist/module/index.js +1 -0
  395. package/dist/module/insurance-state.js +18 -7
  396. package/dist/module/{justifi-checkout-core.d.ts → justifi-apple-pay.d.ts} +4 -4
  397. package/dist/module/justifi-apple-pay.js +811 -0
  398. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  399. package/dist/module/justifi-bank-account-form.js +6 -0
  400. package/dist/module/justifi-business-details.js +2 -2
  401. package/dist/module/justifi-business-form.js +4 -5
  402. package/dist/module/justifi-button.d.ts +11 -0
  403. package/dist/module/justifi-button.js +6 -0
  404. package/dist/module/justifi-button2.js +41 -0
  405. package/dist/module/justifi-card-form.d.ts +11 -0
  406. package/dist/module/justifi-card-form.js +6 -0
  407. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  408. package/dist/module/justifi-checkout-summary.js +6 -0
  409. package/dist/module/justifi-checkout.js +147 -139
  410. package/dist/module/justifi-checkouts-list-filters.js +4 -5
  411. package/dist/module/justifi-checkouts-list.js +5 -6
  412. package/dist/module/justifi-dispute-management.js +3 -4
  413. package/dist/module/justifi-gross-payment-chart.js +2 -4
  414. package/dist/module/justifi-header.d.ts +11 -0
  415. package/dist/module/justifi-header.js +6 -0
  416. package/dist/module/justifi-header2.js +43 -0
  417. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  418. package/dist/module/justifi-modular-checkout.js +6 -0
  419. package/dist/module/justifi-order-terminals.js +7 -7
  420. package/dist/module/justifi-payment-details.js +2 -2
  421. package/dist/module/justifi-payment-provisioning.js +3 -5
  422. package/dist/module/justifi-payment-transactions-list.js +7 -7
  423. package/dist/module/justifi-payments-list-filters.js +4 -3
  424. package/dist/module/justifi-payments-list.js +5 -6
  425. package/dist/module/justifi-payout-details.js +3 -5
  426. package/dist/module/justifi-payout-transactions-list.js +7 -7
  427. package/dist/module/justifi-payouts-list-filters.js +4 -3
  428. package/dist/module/justifi-payouts-list.js +5 -6
  429. package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
  430. package/dist/module/justifi-plaid-payment-method.js +6 -0
  431. package/dist/module/justifi-radio-list-item.d.ts +11 -0
  432. package/dist/module/justifi-radio-list-item.js +6 -0
  433. package/dist/module/justifi-radio-list-item2.js +55 -0
  434. package/dist/module/justifi-refund-payment.js +3 -4
  435. package/dist/module/justifi-saved-payment-method.js +57 -1
  436. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  437. package/dist/module/justifi-saved-payment-methods.js +6 -0
  438. package/dist/module/justifi-season-interruption-insurance.js +124 -24
  439. package/dist/module/justifi-skeleton.d.ts +11 -0
  440. package/dist/module/justifi-skeleton.js +39 -0
  441. package/dist/module/justifi-terminal-orders-list-filters.js +5 -6
  442. package/dist/module/justifi-terminal-orders-list.js +5 -6
  443. package/dist/module/justifi-terminals-list-filters.js +4 -5
  444. package/dist/module/justifi-terminals-list.js +5 -6
  445. package/dist/module/justifi-tokenize-payment-method.js +1 -219
  446. package/dist/module/legal-address-form-step.js +2 -2
  447. package/dist/module/legal-address-form.js +1 -1
  448. package/dist/module/modular-checkout.js +406 -0
  449. package/dist/module/owner-form-core2.js +3 -2
  450. package/dist/module/owner-form-inputs2.js +1 -1
  451. package/dist/module/owner-form.js +1 -1
  452. package/dist/module/package.js +3 -3
  453. package/dist/module/pagination-menu2.js +1 -1
  454. package/dist/module/parts.js +1 -1
  455. package/dist/module/payment-details-core2.js +10 -9
  456. package/dist/module/payment-method-option-utils.js +15 -0
  457. package/dist/module/payment-method-option.d.ts +11 -0
  458. package/dist/module/payment-method-option.js +54 -0
  459. package/dist/module/payment-provisioning-actions.js +1 -1
  460. package/dist/module/payment-provisioning-core.js +3 -2
  461. package/dist/module/payment-provisioning-form-buttons.js +2 -1
  462. package/dist/module/payment-provisioning-form-steps.js +1 -1
  463. package/dist/module/payment-provisioning-loading.js +1 -0
  464. package/dist/module/payment.service.js +1 -3
  465. package/dist/module/payments-list-core2.js +6 -6
  466. package/dist/module/payout-details-core2.js +5 -4
  467. package/dist/module/payout.service.js +1 -3
  468. package/dist/module/payouts-list-core2.js +6 -6
  469. package/dist/module/plaid-payment-method.js +687 -0
  470. package/dist/module/product-or-service.js +2 -2
  471. package/dist/module/refund-policy.js +2 -2
  472. package/dist/module/save-new-payment-method.js +13 -6
  473. package/dist/module/saved-payment-methods.js +75 -0
  474. package/dist/module/sezzle-payment-method.js +34 -35
  475. package/dist/module/shipping-details.js +2 -2
  476. package/dist/module/spinner.js +1 -1
  477. package/dist/module/summary.js +35 -0
  478. package/dist/module/table-filters-menu2.js +1 -1
  479. package/dist/module/table.js +1 -1
  480. package/dist/module/terminal-orders-list-core2.js +6 -6
  481. package/dist/module/terminal-quantity-selector2.js +2 -2
  482. package/dist/module/terminal.service.js +1 -3
  483. package/dist/module/terminals-list-core2.js +6 -6
  484. package/dist/module/tokenize-payment-method.js +410 -0
  485. package/dist/module/utils2.js +3 -1660
  486. package/dist/module/utils4.js +1 -1
  487. package/dist/types/api/ApplePay.d.ts +196 -0
  488. package/dist/types/api/BillingInformation.d.ts +13 -0
  489. package/dist/types/api/Checkout.d.ts +23 -26
  490. package/dist/types/api/ComponentError.d.ts +10 -1
  491. package/dist/types/api/Payment.d.ts +4 -3
  492. package/dist/types/api/PaymentMethod.d.ts +21 -0
  493. package/dist/types/api/services/apple-pay.service.d.ts +55 -0
  494. package/dist/types/api/services/plaid.service.d.ts +12 -0
  495. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
  496. package/dist/types/components/checkout/checkout.d.ts +26 -11
  497. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
  498. package/dist/types/components/insurance/insurance-state.d.ts +2 -1
  499. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +9 -3
  500. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +31 -0
  501. package/dist/types/components/modular-checkout/modular-checkout.d.ts +43 -0
  502. package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
  503. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +39 -0
  504. package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/bank-account-billing-form-simple.d.ts +1 -1
  505. package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
  506. package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
  507. package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/billing-form-full.d.ts +1 -2
  508. package/dist/types/components/{checkout/billing-form → modular-checkout/sub-components}/card-billing-form-simple.d.ts +1 -1
  509. package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
  510. package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
  511. package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
  512. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
  513. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
  514. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
  515. package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +4 -10
  516. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
  517. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +45 -17
  518. package/dist/types/components.d.ts +468 -223
  519. package/dist/types/index.d.ts +2 -0
  520. package/dist/types/store/checkout.store.d.ts +38 -0
  521. package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
  522. package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
  523. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  524. package/dist/types/ui-components/index.d.ts +1 -0
  525. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
  526. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
  527. package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
  528. package/dist/webcomponents/index.esm.js +1 -0
  529. package/dist/webcomponents/p-0803d130.entry.js +1 -0
  530. package/dist/webcomponents/{p-BtyEAd0R.js → p-0Om7jLBs.js} +1 -1
  531. package/dist/webcomponents/p-117b7f47.entry.js +1 -0
  532. package/dist/webcomponents/p-17093105.entry.js +1 -0
  533. package/dist/webcomponents/p-1a08b47f.entry.js +1 -0
  534. package/dist/webcomponents/p-1bcb3852.entry.js +1 -0
  535. package/dist/webcomponents/p-1eb2b847.entry.js +1 -0
  536. package/dist/webcomponents/p-2f7aa249.entry.js +1 -0
  537. package/dist/webcomponents/{p-7a0661a2.entry.js → p-2fa34c82.entry.js} +4 -4
  538. package/dist/webcomponents/p-33311d41.entry.js +1 -0
  539. package/dist/webcomponents/p-336c31b3.entry.js +1 -0
  540. package/dist/webcomponents/p-3f33c940.entry.js +1 -0
  541. package/dist/webcomponents/p-442f86e8.entry.js +1 -0
  542. package/dist/webcomponents/{p-80b6c011.entry.js → p-44450a94.entry.js} +1 -1
  543. package/dist/webcomponents/p-464e7a8e.entry.js +1 -0
  544. package/dist/webcomponents/p-50392803.entry.js +1 -0
  545. package/dist/webcomponents/p-52cbd667.entry.js +1 -0
  546. package/dist/webcomponents/{p-d43a4316.entry.js → p-54ca3070.entry.js} +1 -1
  547. package/dist/webcomponents/{p-BTS3E50C.js → p-5aA7gjr5.js} +1 -1
  548. package/dist/webcomponents/p-5ad0f438.entry.js +1 -0
  549. package/dist/webcomponents/p-613421d4.entry.js +1 -0
  550. package/dist/webcomponents/p-62d12566.entry.js +1 -0
  551. package/dist/webcomponents/p-65ed60bf.entry.js +1 -0
  552. package/dist/webcomponents/p-6cf30a24.entry.js +1 -0
  553. package/dist/webcomponents/{p-bcadc072.entry.js → p-70f51444.entry.js} +1 -1
  554. package/dist/webcomponents/p-729dbd8f.entry.js +1 -0
  555. package/dist/webcomponents/p-77948b46.entry.js +1 -0
  556. package/dist/webcomponents/p-7bcfaff4.entry.js +1 -0
  557. package/dist/webcomponents/{p-96247d70.entry.js → p-7cf87637.entry.js} +1 -1
  558. package/dist/webcomponents/p-7dd74e6f.entry.js +1 -0
  559. package/dist/webcomponents/{p-ck6bcYXe.js → p-7s1gsXM5.js} +1 -1
  560. package/dist/webcomponents/p-80331983.entry.js +1 -0
  561. package/dist/webcomponents/p-85f20746.entry.js +1 -0
  562. package/dist/webcomponents/p-8687e5d6.entry.js +1 -0
  563. package/dist/webcomponents/p-89ecd650.entry.js +1 -0
  564. package/dist/webcomponents/p-8a6718b6.entry.js +1 -0
  565. package/dist/webcomponents/p-8d6b81ba.entry.js +1 -0
  566. package/dist/webcomponents/p-8d743490.entry.js +1 -0
  567. package/dist/webcomponents/p-8f7396b1.entry.js +1 -0
  568. package/dist/webcomponents/p-8ff839a4.entry.js +1 -0
  569. package/dist/webcomponents/{p-d53c3370.entry.js → p-95cbb655.entry.js} +1 -1
  570. package/dist/webcomponents/p-98cffba9.entry.js +1 -0
  571. package/dist/webcomponents/{p-cdd2c7c8.entry.js → p-9a2c044f.entry.js} +1 -1
  572. package/dist/webcomponents/p-9be67b19.entry.js +1 -0
  573. package/dist/webcomponents/p-9e8021a1.entry.js +1 -0
  574. package/dist/webcomponents/p-9fc0ea58.entry.js +1 -0
  575. package/dist/webcomponents/p-9fc567d8.entry.js +1 -0
  576. package/dist/webcomponents/p-9fcff84c.entry.js +1 -0
  577. package/dist/webcomponents/p-B71k50jz.js +1 -0
  578. package/dist/webcomponents/p-BF4U0yVj.js +1 -0
  579. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  580. package/dist/webcomponents/p-BHf9IqGw.js +1 -0
  581. package/dist/webcomponents/p-BSt6p1oq.js +1 -0
  582. package/dist/webcomponents/{p-BQQ7ifKz.js → p-Bb-6bNcq.js} +1 -1
  583. package/dist/webcomponents/p-BbZwa5UI.js +1 -0
  584. package/dist/webcomponents/p-BdKWuCys.js +1 -0
  585. package/dist/webcomponents/p-BfM6X7lF.js +1 -0
  586. package/dist/webcomponents/{p-DK0C7j0u.js → p-BjVfIXWC.js} +1 -1
  587. package/dist/webcomponents/{p-BpWSwi9x.js → p-BsGE9UDv.js} +1 -1
  588. package/dist/webcomponents/{p-DV1c2IYS.js → p-C5id7s_l.js} +1 -1
  589. package/dist/webcomponents/{p-dzS7n4Xj.js → p-CAJnQLZF.js} +1 -1
  590. package/dist/webcomponents/{p-DetWIU1e.js → p-CB0mCq1M.js} +1 -1
  591. package/dist/webcomponents/p-CaAVuW6B.js +1 -0
  592. package/dist/webcomponents/p-Cb0FhuyU.js +1 -0
  593. package/dist/webcomponents/p-CbL73B6U.js +1 -0
  594. package/dist/webcomponents/p-Cjcsf8ku.js +1 -0
  595. package/dist/webcomponents/p-CnWtPu8L.js +1 -0
  596. package/dist/webcomponents/{p-C5RuuShs.js → p-D2muobcE.js} +1 -1
  597. package/dist/webcomponents/{p-v6yK8Vbe.js → p-DD0Mvpeu.js} +1 -1
  598. package/dist/webcomponents/{p-B_t2t34m.js → p-DDUmOl3v.js} +1 -1
  599. package/dist/webcomponents/p-DH8F0bsw.js +1 -0
  600. package/dist/webcomponents/p-DIDloHpm.js +1 -0
  601. package/dist/webcomponents/p-DIjoBk44.js +1 -0
  602. package/dist/webcomponents/p-DK2sRMlx.js +1 -0
  603. package/dist/webcomponents/{p-qGbNz93o.js → p-DNo0OPOP.js} +1 -1
  604. package/dist/webcomponents/p-DRXvcLy9.js +1 -0
  605. package/dist/webcomponents/p-DYGIC0QH.js +1 -0
  606. package/dist/webcomponents/p-DZYcH7jA.js +1 -0
  607. package/dist/webcomponents/p-Da3idOSV.js +1 -0
  608. package/dist/webcomponents/p-Dgflaz6J.js +1 -0
  609. package/dist/webcomponents/p-ED_TzwCp.js +1 -0
  610. package/dist/webcomponents/p-HXpYMWUU.js +1 -0
  611. package/dist/webcomponents/p-JyHlIFWl.js +1 -0
  612. package/dist/webcomponents/{p-CVGBVdVC.js → p-RvUQ__Pq.js} +1 -1
  613. package/dist/webcomponents/p-Wh1V0gvF.js +1 -0
  614. package/dist/webcomponents/p-ZpPDShvP.js +1 -0
  615. package/dist/webcomponents/p-a55f07af.entry.js +1 -0
  616. package/dist/webcomponents/p-aa6194ef.entry.js +1 -0
  617. package/dist/webcomponents/p-ab6a5dc9.entry.js +1 -0
  618. package/dist/webcomponents/p-af9c4174.entry.js +1 -0
  619. package/dist/webcomponents/p-b7d2f2eb.entry.js +1 -0
  620. package/dist/webcomponents/p-bbc4b4cb.entry.js +1 -0
  621. package/dist/webcomponents/p-c599e526.entry.js +1 -0
  622. package/dist/webcomponents/p-d62cd269.entry.js +1 -0
  623. package/dist/webcomponents/p-d9dd7d24.entry.js +1 -0
  624. package/dist/webcomponents/p-dd7352da.entry.js +1 -0
  625. package/dist/webcomponents/p-e8a67dc7.entry.js +1 -0
  626. package/dist/webcomponents/p-eb2d9e5b.entry.js +1 -0
  627. package/dist/webcomponents/p-eddaca4e.entry.js +1 -0
  628. package/dist/webcomponents/p-ef32fe0e.entry.js +1 -0
  629. package/dist/webcomponents/{p-c51651aa.entry.js → p-f1cba43c.entry.js} +1 -1
  630. package/dist/webcomponents/p-f1f0b405.entry.js +1 -0
  631. package/dist/webcomponents/p-f499a8de.entry.js +1 -0
  632. package/dist/webcomponents/p-f4d0cdf0.entry.js +1 -0
  633. package/dist/webcomponents/p-f680e617.entry.js +1 -0
  634. package/dist/webcomponents/p-f7c4222f.entry.js +1 -0
  635. package/dist/webcomponents/p-fa1884b4.entry.js +1 -0
  636. package/dist/webcomponents/p-z-5r0gWn.js +1 -0
  637. package/dist/webcomponents/webcomponents.esm.js +1 -1
  638. package/package.json +2 -2
  639. package/dist/cjs/Checkout-BbhldGDh.js +0 -103
  640. package/dist/cjs/Payment-D6XuQ4Ve.js +0 -151
  641. package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -544
  642. package/dist/cjs/iframe-input-styles-state-DH-5a2Mg.js +0 -26
  643. package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -141
  644. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +0 -124
  645. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -80
  646. package/dist/collection/components/checkout/checkout-core.js +0 -454
  647. package/dist/collection/components/checkout/new-payment-method.js +0 -378
  648. package/dist/collection/components/checkout/payment-method-options.js +0 -440
  649. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  650. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +0 -447
  651. package/dist/esm/Checkout-CIUkm9aQ.js +0 -101
  652. package/dist/esm/Payment-DrCqUoz-.js +0 -149
  653. package/dist/esm/bank-account-form_9.entry.js +0 -534
  654. package/dist/esm/iframe-input-styles-state-Cqb62KAu.js +0 -23
  655. package/dist/esm/insurance-state-DRFl0tWj.js +0 -28
  656. package/dist/esm/justifi-checkout-core.entry.js +0 -139
  657. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +0 -122
  658. package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -78
  659. package/dist/module/Checkout.js +0 -121
  660. package/dist/module/Payment.js +0 -204
  661. package/dist/module/checkout-core.js +0 -292
  662. package/dist/module/justifi-checkout-core.js +0 -6
  663. package/dist/module/justifi-new-payment-method.d.ts +0 -11
  664. package/dist/module/justifi-new-payment-method.js +0 -6
  665. package/dist/module/justifi-payment-method-options.d.ts +0 -11
  666. package/dist/module/justifi-payment-method-options.js +0 -6
  667. package/dist/module/justifi-season-interruption-insurance-core.d.ts +0 -11
  668. package/dist/module/justifi-season-interruption-insurance-core.js +0 -6
  669. package/dist/module/new-payment-method.js +0 -222
  670. package/dist/module/payment-method-options.js +0 -237
  671. package/dist/module/saved-payment-method.js +0 -79
  672. package/dist/module/season-interruption-insurance-core.js +0 -168
  673. package/dist/types/components/checkout/checkout-core.d.ts +0 -49
  674. package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
  675. package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
  676. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +0 -32
  677. package/dist/webcomponents/p-08e1bf28.entry.js +0 -1
  678. package/dist/webcomponents/p-09cb06ed.entry.js +0 -1
  679. package/dist/webcomponents/p-0adbbb23.entry.js +0 -1
  680. package/dist/webcomponents/p-0b067d3c.entry.js +0 -1
  681. package/dist/webcomponents/p-0bfd309e.entry.js +0 -1
  682. package/dist/webcomponents/p-0f005fdd.entry.js +0 -1
  683. package/dist/webcomponents/p-0nMw2Aul.js +0 -1
  684. package/dist/webcomponents/p-14dc17fd.entry.js +0 -1
  685. package/dist/webcomponents/p-266f1ff3.entry.js +0 -1
  686. package/dist/webcomponents/p-35387685.entry.js +0 -1
  687. package/dist/webcomponents/p-3946adfa.entry.js +0 -1
  688. package/dist/webcomponents/p-3c44b724.entry.js +0 -1
  689. package/dist/webcomponents/p-3e3b5cdb.entry.js +0 -1
  690. package/dist/webcomponents/p-41876098.entry.js +0 -1
  691. package/dist/webcomponents/p-45edf188.entry.js +0 -1
  692. package/dist/webcomponents/p-4786f2d0.entry.js +0 -1
  693. package/dist/webcomponents/p-4c1c55bb.entry.js +0 -1
  694. package/dist/webcomponents/p-4f358b63.entry.js +0 -1
  695. package/dist/webcomponents/p-5375df08.entry.js +0 -1
  696. package/dist/webcomponents/p-575b972d.entry.js +0 -1
  697. package/dist/webcomponents/p-580aa2e3.entry.js +0 -1
  698. package/dist/webcomponents/p-5b857a1c.entry.js +0 -1
  699. package/dist/webcomponents/p-5c9d1c35.entry.js +0 -1
  700. package/dist/webcomponents/p-690514f2.entry.js +0 -1
  701. package/dist/webcomponents/p-6a853571.entry.js +0 -1
  702. package/dist/webcomponents/p-724e4e6c.entry.js +0 -1
  703. package/dist/webcomponents/p-756a7021.entry.js +0 -1
  704. package/dist/webcomponents/p-89431ee2.entry.js +0 -1
  705. package/dist/webcomponents/p-8f5c1ae6.entry.js +0 -1
  706. package/dist/webcomponents/p-989d56de.entry.js +0 -1
  707. package/dist/webcomponents/p-99f7a36d.entry.js +0 -1
  708. package/dist/webcomponents/p-BCgpQGhw.js +0 -1
  709. package/dist/webcomponents/p-BOCuVjGs.js +0 -1
  710. package/dist/webcomponents/p-BUSn_ReW.js +0 -1
  711. package/dist/webcomponents/p-BZtgbC0H.js +0 -1
  712. package/dist/webcomponents/p-Bs-84XY6.js +0 -1
  713. package/dist/webcomponents/p-BvXjypQm.js +0 -1
  714. package/dist/webcomponents/p-C-wMveZe.js +0 -1
  715. package/dist/webcomponents/p-CCl9g-ln.js +0 -1
  716. package/dist/webcomponents/p-CDPZXQAo.js +0 -1
  717. package/dist/webcomponents/p-CKEiU2Q5.js +0 -1
  718. package/dist/webcomponents/p-CS4_rnSp.js +0 -1
  719. package/dist/webcomponents/p-CnMP2-Xk.js +0 -1
  720. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  721. package/dist/webcomponents/p-CxHdQoIo.js +0 -1
  722. package/dist/webcomponents/p-DFWnHEN2.js +0 -1
  723. package/dist/webcomponents/p-DKSNNnPC.js +0 -1
  724. package/dist/webcomponents/p-DjFzWJxk.js +0 -1
  725. package/dist/webcomponents/p-DnGswpsl.js +0 -1
  726. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  727. package/dist/webcomponents/p-DsLxs70Z.js +0 -1
  728. package/dist/webcomponents/p-DtdcFDM_.js +0 -1
  729. package/dist/webcomponents/p-DwF36W04.js +0 -1
  730. package/dist/webcomponents/p-L4y68wud.js +0 -1
  731. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  732. package/dist/webcomponents/p-a09ca567.entry.js +0 -1
  733. package/dist/webcomponents/p-a3313ebe.entry.js +0 -1
  734. package/dist/webcomponents/p-aeaafe28.entry.js +0 -1
  735. package/dist/webcomponents/p-b25bbf0a.entry.js +0 -1
  736. package/dist/webcomponents/p-b7594923.entry.js +0 -1
  737. package/dist/webcomponents/p-b79e302a.entry.js +0 -1
  738. package/dist/webcomponents/p-ba268a78.entry.js +0 -1
  739. package/dist/webcomponents/p-ba68ea4f.entry.js +0 -1
  740. package/dist/webcomponents/p-bf0e00be.entry.js +0 -1
  741. package/dist/webcomponents/p-c15d8dd0.entry.js +0 -1
  742. package/dist/webcomponents/p-c28f2569.entry.js +0 -1
  743. package/dist/webcomponents/p-c5911cd9.entry.js +0 -1
  744. package/dist/webcomponents/p-cefb9a76.entry.js +0 -1
  745. package/dist/webcomponents/p-d2ae3c55.entry.js +0 -1
  746. package/dist/webcomponents/p-d2e1d179.entry.js +0 -1
  747. package/dist/webcomponents/p-d4d58793.entry.js +0 -1
  748. package/dist/webcomponents/p-dc6b707a.entry.js +0 -1
  749. package/dist/webcomponents/p-dfd9aff0.entry.js +0 -1
  750. package/dist/webcomponents/p-e4682bb6.entry.js +0 -1
  751. package/dist/webcomponents/p-ee566062.entry.js +0 -1
  752. package/dist/webcomponents/p-ef07d761.entry.js +0 -1
  753. package/dist/webcomponents/p-f24b04eb.entry.js +0 -1
  754. package/dist/webcomponents/p-f8e974af.entry.js +0 -1
  755. package/dist/webcomponents/p-fb60bc7a.entry.js +0 -1
  756. package/dist/webcomponents/p-znmwKCgq.js +0 -1
@@ -1,5 +1,335 @@
1
1
  import { c as formatCurrency } from './utils2.js';
2
2
 
3
+ var ComponentErrorCodes;
4
+ (function (ComponentErrorCodes) {
5
+ ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
6
+ ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
7
+ ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
8
+ ComponentErrorCodes["POST_ERROR"] = "post-error";
9
+ ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
10
+ ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
11
+ ComponentErrorCodes["COMPLETE_CHECKOUT_ERROR"] = "complete-checkout-error";
12
+ ComponentErrorCodes["CHECKOUT_ALREADY_COMPLETED"] = "checkout-already-completed";
13
+ ComponentErrorCodes["CHECKOUT_EXPIRED"] = "checkout-expired";
14
+ ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
15
+ ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
16
+ ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
17
+ ComponentErrorCodes["INVALID_REFUND_AMOUNT"] = "invalid-refund-amount";
18
+ ComponentErrorCodes["VALIDATION_ERROR"] = "validation-error";
19
+ })(ComponentErrorCodes || (ComponentErrorCodes = {}));
20
+ var ComponentErrorSeverity;
21
+ (function (ComponentErrorSeverity) {
22
+ ComponentErrorSeverity["INFO"] = "info";
23
+ ComponentErrorSeverity["WARNING"] = "warning";
24
+ ComponentErrorSeverity["ERROR"] = "error";
25
+ })(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
26
+ var ComponentErrorMessages;
27
+ (function (ComponentErrorMessages) {
28
+ ComponentErrorMessages["NOT_AUTHENTICATED"] = "Not authenticated. Please provide a valid auth token, checkout id, and account id.";
29
+ ComponentErrorMessages["CHECKOUT_ALREADY_COMPLETED"] = "Checkout already completed. Please create a new checkout.";
30
+ ComponentErrorMessages["CHECKOUT_EXPIRED"] = "Checkout expired. Please create a new checkout.";
31
+ })(ComponentErrorMessages || (ComponentErrorMessages = {}));
32
+
33
+ class Completion {
34
+ constructor(data) {
35
+ this.payment_mode = ICheckoutPaymentMode[data.payment_mode];
36
+ this.payment_token = data.payment_token;
37
+ this.payment_status = data.payment_status;
38
+ this.payment_response = data.payment_response;
39
+ this.payment_error_code = data.payment_error_code;
40
+ this.payment_error_description = data.payment_error_description;
41
+ this.checkout_id = data.checkout_id;
42
+ this.additional_transactions = data.additional_transactions;
43
+ this.payment_id = data.payment_id;
44
+ this.payment_method_id = data.payment_method_id;
45
+ this.status = data.status;
46
+ this.created_at = data.created_at;
47
+ this.updated_at = data.updated_at;
48
+ }
49
+ }
50
+ class Checkout {
51
+ constructor(data) {
52
+ var _a;
53
+ this.id = data.id;
54
+ this.description = data.description;
55
+ this.payment_intent_id = data.payment_intent_id;
56
+ this.account_id = data.account_id;
57
+ this.platform_account_id = data.platform_account_id;
58
+ this.payment_amount = data.payment_amount;
59
+ this.payment_client_id = data.payment_client_id;
60
+ this.payment_description = data.payment_description;
61
+ this.payment_methods = data.payment_methods;
62
+ this.payment_method_group_id = data.payment_method_group_id;
63
+ this.payment_settings = data.payment_settings;
64
+ this.bnpl = data.bnpl;
65
+ this.total_amount = data.total_amount;
66
+ this.insurance_amount = data.insurance_amount;
67
+ this.status = ICheckoutStatus[data.status];
68
+ this.payment_currency = data.payment_currency;
69
+ this.mode = data.mode;
70
+ this.statement_descriptor = data.statement_descriptor;
71
+ this.application_fees = data.application_fees;
72
+ this.successful_payment_id = data.successful_payment_id;
73
+ this.created_at = data.created_at;
74
+ this.updated_at = data.updated_at;
75
+ this.completions = (_a = data.completions) === null || _a === void 0 ? void 0 : _a.map((completion) => new Completion(completion));
76
+ }
77
+ get payment_mode() {
78
+ var _a, _b, _c, _d, _e, _f;
79
+ let paymentMode;
80
+ if (!this.completions || this.completions.length === 0) {
81
+ return ICheckoutPaymentMode.unknown;
82
+ }
83
+ const sortedCompletions = this.completions.sort((a, b) => {
84
+ return (new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime());
85
+ });
86
+ const lastCompletion = sortedCompletions[0];
87
+ if (lastCompletion.payment_mode) {
88
+ paymentMode = lastCompletion.payment_mode;
89
+ }
90
+ else if ((_c = (_b = (_a = lastCompletion.payment_response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.payment_method) === null || _c === void 0 ? void 0 : _c.card) {
91
+ paymentMode = ICheckoutPaymentMode.card;
92
+ }
93
+ else if ((_f = (_e = (_d = lastCompletion.payment_response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.payment_method) === null || _f === void 0 ? void 0 : _f.bank_account) {
94
+ paymentMode = ICheckoutPaymentMode.bank_account;
95
+ }
96
+ return paymentMode;
97
+ }
98
+ formattedPaymentAmount(amount) {
99
+ return formatCurrency(amount, this.payment_currency);
100
+ }
101
+ }
102
+ var ICheckoutPaymentMode;
103
+ (function (ICheckoutPaymentMode) {
104
+ ICheckoutPaymentMode["bnpl"] = "Buy Now Pay Later";
105
+ ICheckoutPaymentMode["ecom"] = "E-commerce";
106
+ ICheckoutPaymentMode["card"] = "Card";
107
+ ICheckoutPaymentMode["bank_account"] = "Bank Account";
108
+ ICheckoutPaymentMode["card_present"] = "Card Present";
109
+ ICheckoutPaymentMode["unknown"] = "";
110
+ })(ICheckoutPaymentMode || (ICheckoutPaymentMode = {}));
111
+ var ICheckoutPaymentModeParam;
112
+ (function (ICheckoutPaymentModeParam) {
113
+ ICheckoutPaymentModeParam["bnpl"] = "bnpl";
114
+ ICheckoutPaymentModeParam["ecom"] = "ecom";
115
+ })(ICheckoutPaymentModeParam || (ICheckoutPaymentModeParam = {}));
116
+ var ICheckoutStatus;
117
+ (function (ICheckoutStatus) {
118
+ ICheckoutStatus["created"] = "created";
119
+ ICheckoutStatus["completed"] = "completed";
120
+ ICheckoutStatus["attempted"] = "attempted";
121
+ ICheckoutStatus["expired"] = "expired";
122
+ })(ICheckoutStatus || (ICheckoutStatus = {}));
123
+ var CompletionStatuses;
124
+ (function (CompletionStatuses) {
125
+ CompletionStatuses["failed"] = "failed";
126
+ CompletionStatuses["succeeded"] = "succeeded";
127
+ })(CompletionStatuses || (CompletionStatuses = {}));
128
+
129
+ var DisputeStatus;
130
+ (function (DisputeStatus) {
131
+ DisputeStatus["won"] = "won";
132
+ DisputeStatus["lost"] = "lost";
133
+ DisputeStatus["underReview"] = "under_review";
134
+ DisputeStatus["needsResponse"] = "needs_response";
135
+ })(DisputeStatus || (DisputeStatus = {}));
136
+ class Dispute {
137
+ get needsResponse() {
138
+ return this.status == DisputeStatus.needsResponse;
139
+ }
140
+ get underReview() {
141
+ return this.status == DisputeStatus.underReview;
142
+ }
143
+ get won() {
144
+ return this.status == DisputeStatus.won;
145
+ }
146
+ get lost() {
147
+ return this.status == DisputeStatus.lost;
148
+ }
149
+ constructor(dispute) {
150
+ this.id = dispute.id;
151
+ this.amount = dispute.amount;
152
+ this.currency = dispute.currency;
153
+ this.payment_id = dispute.payment_id;
154
+ this.reason = dispute.reason;
155
+ this.due_date = dispute.due_date;
156
+ this.status = dispute.status;
157
+ this.metadata = dispute.metadata;
158
+ this.created_at = dispute.created_at;
159
+ this.updated_at = dispute.updated_at;
160
+ this.dispute_response = dispute.dispute_response ? new DisputeResponse(dispute.dispute_response) : undefined;
161
+ }
162
+ }
163
+ class DisputeResponse {
164
+ constructor(response) {
165
+ this.additional_statement = response.additional_statement;
166
+ this.cancellation_policy_disclosure = response.cancellation_policy_disclosure;
167
+ this.cancellation_rebuttal = response.cancellation_rebuttal;
168
+ this.customer_billing_address = response.customer_billing_address;
169
+ this.customer_email_address = response.customer_email_address;
170
+ this.customer_name = response.customer_name;
171
+ this.customer_purchase_ip_address = response.customer_purchase_ip_address;
172
+ this.duplicate_charge_explanation = response.duplicate_charge_explanation;
173
+ this.product_description = response.product_description;
174
+ this.refund_policy_disclosure = response.refund_policy_disclosure;
175
+ this.refund_refusal_explanation = response.refund_refusal_explanation;
176
+ this.service_date = response.service_date;
177
+ this.shipping_address = response.shipping_address;
178
+ this.shipping_carrier = response.shipping_carrier;
179
+ this.shipping_date = response.shipping_date;
180
+ this.shipping_tracking_number = response.shipping_tracking_number;
181
+ this.duplicate_charge_original_payment_id = response.duplicate_charge_original_payment_id;
182
+ }
183
+ }
184
+
185
+ var CaptureStrategy;
186
+ (function (CaptureStrategy) {
187
+ CaptureStrategy["automatic"] = "automatic";
188
+ CaptureStrategy["manual"] = "manual";
189
+ })(CaptureStrategy || (CaptureStrategy = {}));
190
+ var PaymentMethodTypes;
191
+ (function (PaymentMethodTypes) {
192
+ PaymentMethodTypes["card"] = "card";
193
+ PaymentMethodTypes["bankAccount"] = "bankAccount";
194
+ PaymentMethodTypes["sezzle"] = "sezzle";
195
+ PaymentMethodTypes["plaid"] = "plaid";
196
+ PaymentMethodTypes["applePay"] = "applePay";
197
+ })(PaymentMethodTypes || (PaymentMethodTypes = {}));
198
+ var PaymentTypes;
199
+ (function (PaymentTypes) {
200
+ PaymentTypes["card"] = "Card";
201
+ PaymentTypes["bankAccount"] = "ACH";
202
+ PaymentTypes["unknown"] = "Unknown";
203
+ })(PaymentTypes || (PaymentTypes = {}));
204
+ var PaymentStatuses;
205
+ (function (PaymentStatuses) {
206
+ PaymentStatuses["pending"] = "pending";
207
+ PaymentStatuses["automatic"] = "automatic";
208
+ PaymentStatuses["authorized"] = "authorized";
209
+ PaymentStatuses["succeeded"] = "succeeded";
210
+ PaymentStatuses["failed"] = "failed";
211
+ PaymentStatuses["canceled"] = "canceled";
212
+ PaymentStatuses["disputed"] = "disputed";
213
+ PaymentStatuses["fully_refunded"] = "fully_refunded";
214
+ PaymentStatuses["partially_refunded"] = "partially_refunded";
215
+ })(PaymentStatuses || (PaymentStatuses = {}));
216
+ var CurrencyTypes;
217
+ (function (CurrencyTypes) {
218
+ CurrencyTypes["usd"] = "usd";
219
+ CurrencyTypes["cad"] = "cad";
220
+ })(CurrencyTypes || (CurrencyTypes = {}));
221
+ class PaymentMethod {
222
+ constructor(paymentMethod) {
223
+ this.card = paymentMethod.card ? new Card(paymentMethod.card) : undefined;
224
+ this.bank_account = paymentMethod.bank_account
225
+ ? new BankAccount(paymentMethod.bank_account)
226
+ : undefined;
227
+ }
228
+ get payersName() {
229
+ if (this.card) {
230
+ return this.card.name;
231
+ }
232
+ else if (this.bank_account) {
233
+ return this.bank_account.name;
234
+ }
235
+ return null;
236
+ }
237
+ get lastFourDigits() {
238
+ if (this.card) {
239
+ return `**** ${this.card.acct_last_four}`;
240
+ }
241
+ else if (this.bank_account) {
242
+ return `**** ${this.bank_account.acct_last_four}`;
243
+ }
244
+ return null;
245
+ }
246
+ }
247
+ class BankAccount {
248
+ constructor(bankAccount) {
249
+ this.id = bankAccount.id;
250
+ this.acct_last_four = bankAccount.acct_last_four;
251
+ this.name = bankAccount.name;
252
+ this.brand = bankAccount.brand;
253
+ this.token = bankAccount.token;
254
+ this.created_at = bankAccount.created_at;
255
+ this.updated_at = bankAccount.updated_at;
256
+ }
257
+ }
258
+ class Card {
259
+ constructor(card) {
260
+ this.id = card.id || '';
261
+ this.acct_last_four = card.acct_last_four;
262
+ this.name = card.name;
263
+ this.brand = card.brand;
264
+ this.token = card.token;
265
+ this.created_at = card.created_at;
266
+ this.updated_at = card.updated_at;
267
+ }
268
+ }
269
+ class Payment {
270
+ constructor(payment) {
271
+ this.id = payment.id;
272
+ this.account_id = payment.account_id;
273
+ this.currency = payment.currency;
274
+ this.amount = payment.amount;
275
+ this.amount_disputed = payment.amount_disputed;
276
+ this.amount_refundable = payment.amount_refundable;
277
+ this.amount_refunded = payment.amount_refunded;
278
+ this.balance = payment.balance;
279
+ this.captured = payment.captured;
280
+ this.capture_strategy = payment.capture_strategy;
281
+ this.description = payment.description;
282
+ this.disputed = payment.disputed;
283
+ this.disputes = payment.disputes;
284
+ this.error_code = payment.error_code;
285
+ this.error_description = payment.error_description;
286
+ this.expedited = payment.expedited;
287
+ this.fee_amount = payment.fee_amount;
288
+ this.is_test = payment.is_test;
289
+ this.metadata = payment.metadata;
290
+ this.payment_method = new PaymentMethod(payment.payment_method);
291
+ this.payment_intent_id = payment.payment_intent_id;
292
+ this.refunded = payment.refunded;
293
+ this.status = payment.status;
294
+ this.created_at = payment.created_at;
295
+ this.updated_at = payment.updated_at;
296
+ }
297
+ get disputedStatus() {
298
+ const lost = this.disputes.some((dispute) => dispute.status === DisputeStatus.lost);
299
+ // if a dispute is 'won', we don't show a dispute status, just general status
300
+ // TODO: update this logic to work with new DisputeStatus enum
301
+ // (cast 'open' as DisputeStatus in the meantime to keep existing functionality)
302
+ if (!this.disputed) {
303
+ return null;
304
+ }
305
+ else if (lost) {
306
+ return DisputeStatus.lost;
307
+ }
308
+ else {
309
+ return 'open';
310
+ }
311
+ }
312
+ get payment_type() {
313
+ if (this.payment_method) {
314
+ return this.payment_method.card
315
+ ? PaymentTypes.card
316
+ : PaymentTypes.bankAccount;
317
+ }
318
+ else {
319
+ return PaymentTypes.unknown;
320
+ }
321
+ }
322
+ get payers_name() {
323
+ return this.payment_method.payersName;
324
+ }
325
+ get last_four_digits() {
326
+ return this.payment_method.lastFourDigits;
327
+ }
328
+ formattedPaymentAmount(amount) {
329
+ return formatCurrency(amount, this.currency);
330
+ }
331
+ }
332
+
3
333
  var PaymentBalanceTxnType;
4
334
  (function (PaymentBalanceTxnType) {
5
335
  PaymentBalanceTxnType["payment"] = "payment";
@@ -339,4 +669,4 @@ class RefundPayload {
339
669
  }
340
670
  }
341
671
 
342
- export { EntityDocumentType as E, ITerminalStatus as I, Payout as P, RefundReasons as R, SubAccount as S, TerminalOrderStatus as T, TerminalOrderType as a, EntityDocumentStorage as b, EntityDocument as c, Terminal as d, PaymentBalanceTransaction as e, PayoutBalanceTransaction as f, TerminalOrder as g, TerminalModel as h, RefundPayload as i };
672
+ export { ComponentErrorSeverity as C, Dispute as D, EntityDocumentType as E, ICheckoutStatus as I, PaymentMethodTypes as P, RefundReasons as R, SubAccount as S, TerminalOrderStatus as T, ComponentErrorCodes as a, DisputeStatus as b, Payment as c, ComponentErrorMessages as d, ICheckoutPaymentModeParam as e, TerminalOrderType as f, ITerminalStatus as g, EntityDocumentStorage as h, EntityDocument as i, Checkout as j, Payout as k, Terminal as l, PaymentBalanceTransaction as m, PayoutBalanceTransaction as n, TerminalOrder as o, TerminalModel as p, RefundPayload as q };
@@ -26,7 +26,7 @@ const AdditionalQuestions = /*@__PURE__*/ proxyCustomElement(class AdditionalQue
26
26
  render() {
27
27
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
28
28
  const additionalQuestionsDefaultValue = this.formController.getInitialValues().additional_questions;
29
- return (h(Host, { key: '6e2549b906fec8928dae89a4f143916a2b50eff3' }, h("fieldset", { key: '525eab0debf75c3996c45128e9431086e49c3850' }, h("legend", { key: 'adeb6e2a32fb4f9e991d7b4843569116e336743c', part: heading2 }, "Additional Questions"), h("div", { key: '29b55613d32bc434017fc561033c6c9b8800666d', class: "row gy-3" }, h("div", { key: '80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: 'e69e6c75d3a6add592e90e3709d7b7ff694ebfe0', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'af0e66f6f647ed7248e0d861707cc378c85b0dce', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: 'e1f6af9f7537bf4d4e96739ff7537be01ca9371c', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'b914a2f8abd79eab79d284f1ece9850f4a417893', class: "col-12" }, h("form-control-select", { key: '8954dfe23f7984810fbae657ac9995e40253b377', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: 'da533644fd51e8678fc80d49c7db0ce20a803019', class: "col-12" }, h("form-control-select", { key: '06c23865a5bbda38b294dd4edfee6ace942fb732', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: 'bb492db9aea205138ef76cf6fc7c3f686bb41a79', class: "col-12" }, h("form-control-text", { key: 'a3f900076730b504587619ff9c4c13ecce36f541', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: 'e2f56ae5d9654bdb1077689a1ef59c9047e97bda', class: "col-12" }, h("form-control-select", { key: '697e41186b4c82046e50288594681117bf8dd6fe', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: '2e2f5d17b70604b9425997d9e4e0dfafea933448', class: "col-12" }, h("form-control-text", { key: '27d305b06e7bc2d66084c9d04ebb785883564bbd', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
29
+ return (h(Host, { key: 'e3e354a7cf470f658e0f95d37186b1f45771b673' }, h("fieldset", { key: '7fb001177a4f907d513eb5955063d446234ede0c' }, h("legend", { key: 'ee6b045a438be9f56345daad752e105640f1ca3d', part: heading2 }, "Additional Questions"), h("div", { key: 'ed114675357f3b70c34a3eb941fdb30e6219cdc9', class: "row gy-3" }, h("div", { key: 'b85c27c827cf5e5d0d556c343315e5eec736f538', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: '4576f67fa74ba7c2ca9730468ddc52b055a3c496', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '0614c60cc7daaf890ccb4888d41b0260a26f9a0e', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: '2c435c1553714d75542e0e3bcf1d723f26b37da8', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '8d4a19eb0b6b5707f4a423543d86ae50f6492efc', class: "col-12" }, h("form-control-select", { key: '2e49f907bae85cd4901e4aa4413284596fbed365', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: '11bc4e0bbe2122b977cf8bc29ac0601ef941881c', class: "col-12" }, h("form-control-select", { key: 'c511b728971250dc3272c1ef9ff96131a9ac6a2e', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '5a40dfe41a9fca815cdf0eb7455b41615d1e6c76', class: "col-12" }, h("form-control-text", { key: 'd8aaf0f6d7d44b1b15ec76af198a0117493f08c6', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: 'b211bb865a60baf1ea00c81f76f000ff2a31d7bd', class: "col-12" }, h("form-control-select", { key: '4b693e7425e690a59e2c70646cca2b886b8a8796', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: 'e85b7fceb9cdc808afaf3559609b7519c9630266', class: "col-12" }, h("form-control-text", { key: 'ae4a6518c7499826f30376f1c902f694244059c7', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
30
30
  }
31
31
  }, [256, "justifi-additional-questions", {
32
32
  "formController": [16, "form-controller"],
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { c as create$3, a as create$6, F as FormController } from './form.js';
3
3
  import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
4
- import { $ as heading5 } from './parts.js';
4
+ import { _ as heading5 } from './parts.js';
5
5
  import { d as defineCustomElement$5 } from './custom-popper2.js';
6
6
  import { d as defineCustomElement$4 } from './form-control-file-v22.js';
7
7
  import { d as defineCustomElement$3 } from './form-control-help-text2.js';
@@ -39,7 +39,7 @@ const AdditionalStatement = /*@__PURE__*/ proxyCustomElement(class AdditionalSta
39
39
  }
40
40
  render() {
41
41
  var _a, _b;
42
- return (h("div", { key: '3da2494959f8f95bd5dcea3ec7b40d7a6d13f07d' }, h("div", { key: '7e30011761a53353dc4ea2a29860fb1b0e97a4f2', class: "row gy-3" }, h("div", { key: 'f059331f2f33f10a179ff4c0cdd39966dd3244b9', class: "col-12" }, h("h2", { key: '504f4debdd82105dee45199402edd1b4f8855b22', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: 'bb6d287f7b13b48b0da327baac376afa5b0422ed', class: "col-12" }, h("form-control-textarea", { key: '11f24185c7bdf2c8611bbdd565e5f7621487e2ee', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '0a7b1a3d9599b973fe8eba88d895345286b22e4b', class: "col-12" }, h("form-control-file-v2", { key: '18a913b89ea00c8559ad33377f57e4b9a276d00d', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
42
+ return (h("div", { key: '3904e1b961f9e1a0683647d306a128efcd7b9202' }, h("div", { key: '37ae13e4b7ad7bc8a18b588c4e591cde9030147e', class: "row gy-3" }, h("div", { key: '2f9b835795f21e4585638ad8be2093642f08b982', class: "col-12" }, h("h2", { key: '9ff1aeb8256ffe97c6300bd48597542519cda0a7', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: 'e4c6b9f4624b06103b6c643838a76c4a724e3168', class: "col-12" }, h("form-control-textarea", { key: 'dc9a5cb126a2d6f70cd8d59cdcfcd29f5c4e341b', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: 'ba5202a5d8df30f5f4b7217341110646bb76e082', class: "col-12" }, h("form-control-file-v2", { key: '3168fc63d6bd6013821ee335914d916bb680fe42', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
43
43
  }
44
44
  }, [256, "justifi-additional-statement", {
45
45
  "disputeResponse": [8, "dispute-response"],
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
- import { x as badgeDark, y as badgeLight, z as badgeInfo, A as badgeWarning, B as badgeDanger, C as badgeSuccess, D as badgeSecondary, E as badgePrimary, F as badge } from './parts.js';
2
+ import { D as badgeDark, E as badgeLight, F as badgeInfo, G as badgeWarning, H as badgeDanger, I as badgeSuccess, J as badgeSecondary, K as badgePrimary, L as badge } from './parts.js';
3
3
 
4
4
  var BadgeVariant;
5
5
  (function (BadgeVariant) {
@@ -1,7 +1,11 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { n as nameOnlySchema } from './billing-form-schema.js';
3
- import { U as billingForm } from './parts.js';
3
+ import { V as billingForm } from './parts.js';
4
4
  import { F as FormController } from './form.js';
5
+ import { S as StyledHost } from './styled-host.js';
6
+ import './details.js';
7
+ import './event-types.js';
8
+ import './justifi-radio-list-item2.js';
5
9
  import { d as defineCustomElement$3 } from './custom-popper2.js';
6
10
  import { d as defineCustomElement$2 } from './form-control-text2.js';
7
11
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
@@ -10,6 +14,7 @@ const BankAccountBillingFormSimple = /*@__PURE__*/ proxyCustomElement(class Bank
10
14
  constructor() {
11
15
  super();
12
16
  this.__registerHost();
17
+ this.__attachShadow();
13
18
  this.errors = {};
14
19
  this.inputHandler = (name, value) => {
15
20
  this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
@@ -37,9 +42,9 @@ const BankAccountBillingFormSimple = /*@__PURE__*/ proxyCustomElement(class Bank
37
42
  }
38
43
  render() {
39
44
  const billingFormDefaultValue = this.formController.getInitialValues();
40
- return (h(Host, { key: '26bb004c8683881a5f7b6a4a7de3b1e2c680d157' }, h("div", { key: '89951cc4128e5b6578943af160eb44eb64d02272', part: billingForm, class: "mt-4" }, h("form", { key: '06ff2993369ed913abd9973fc7bb87514d047671' }, h("fieldset", { key: '29b61ffe7a9047a9909d8ed3688c41b9bbedc1d0' }, this.legend && (h("legend", { key: 'eb02a71dfa08b5b5b5e3646f96d9a6882b71bda0' }, this.legend)), h("div", { key: 'b6c5e23355c9a70423f23540f2a7191ae33aa738', class: "row gy-3" }, h("div", { key: 'a7f5606df9c5ca03de56ccaf3a809550a8437ff0', class: "col-12" }, h("form-control-text", { key: '688e677b9ceb86ae0c41715b12edbc6cee913424', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
45
+ return (h(StyledHost, { key: '81a8511265b4813817b4cf183aa176b464645e85' }, h("div", { key: '7dddd3ec7822077268c73da7d0f34a691ddde1cb', part: billingForm, class: "mt-4" }, h("form", { key: '1c9000a4b022209129cf511d79a77cf3dc44b77e' }, h("fieldset", { key: '134c349c5745197b5ebb79b31748bf480e1cab7a' }, this.legend && (h("legend", { key: 'fb8e12086fd6fb51f7456d8fc6e82a9184514d4f' }, this.legend)), h("div", { key: 'a49ae2d182e442efbe44aae7c2e0a4e40dabe7d7', class: "row gy-3" }, h("div", { key: '2be4b2aab266d0fc17f32237693dea8578c7545d', class: "col-12" }, h("form-control-text", { key: '92d1b3b05ba04212e46feecfd886f7dcc912e4fe', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler }))))))));
41
46
  }
42
- }, [256, "justifi-bank-account-billing-form-simple", {
47
+ }, [257, "justifi-bank-account-billing-form-simple", {
43
48
  "legend": [1025],
44
49
  "formController": [32],
45
50
  "billingInfo": [32],
@@ -1,10 +1,8 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import './config-state.js';
3
- import './utils2.js';
4
- import './Checkout.js';
5
- import './Pagination.js';
6
- import './Payment.js';
3
+ import './dinero.js';
7
4
  import { E as EntityDocumentType } from './Refund.js';
5
+ import './Pagination.js';
8
6
  import './Business.js';
9
7
  import { d as defineCustomElement$3 } from './custom-popper2.js';
10
8
  import { d as defineCustomElement$2 } from './form-control-file2.js';
@@ -16,7 +14,7 @@ const BankAccountDocumentFormInputs = /*@__PURE__*/ proxyCustomElement(class Ban
16
14
  this.__registerHost();
17
15
  }
18
16
  render() {
19
- return (h("div", { key: 'a3ff8b1ff23923beb847e66d6c56a39de9a86434', class: "row gy-3" }, h("div", { key: '86f9ba3a8f0f87f7fa67ba0fcf1d7c04f67e9bc5', class: "col-12" }, h("form-control-file", { key: '9cc2bc21414c8e3f4b25ac47b76340a4ce569c42', name: "voided_check", label: "Voided Check", documentType: EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), h("div", { key: 'bee72d6c63514cdbd3200910d3a53b045c60d05d', class: "col-12" }, h("form-control-file", { key: '80a79f352d078cd210768b4060cad7014b1060c5', name: "bank_statement", label: "Bank Statement", documentType: EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
17
+ return (h("div", { key: '23f5fa6b191b3feea7677a85a421002642a86f50', class: "row gy-3" }, h("div", { key: 'da9d9698f15aeb4bb05baef8fb63c630fcff8a82', class: "col-12" }, h("form-control-file", { key: 'b84a8ec1753210f74989c04b5520f0e94c5a083d', name: "voided_check", label: "Voided Check", documentType: EntityDocumentType.voidedCheck, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["voided_check"], multiple: true })), h("div", { key: '06d442df900406f122970bde6b2b293f2c9080ee', class: "col-12" }, h("form-control-file", { key: 'b3dc1d48900c5932c4d59f8b31a323193f0e86b4', name: "bank_statement", label: "Bank Statement", documentType: EntityDocumentType.bankStatement, inputHandler: this.inputHandler, onFileSelected: this.storeFiles, errorText: this.errors["bank_statement"], multiple: true }))));
20
18
  }
21
19
  }, [256, "bank-account-document-form-inputs", {
22
20
  "inputHandler": [16, "input-handler"],
@@ -13,7 +13,7 @@ const BankAccountFormInputs = /*@__PURE__*/ proxyCustomElement(class BankAccount
13
13
  this.__registerHost();
14
14
  }
15
15
  render() {
16
- return (h("div", { key: 'b18e803521d67b40e4e5af03a66dcdca0b678968', class: "row gy-3" }, h("div", { key: 'e2e6667ffbcebb6a9aa50739814e7bbebceaabfa', class: "col-12" }, h("form-control-text", { key: 'e1ad63fb7db32dbb6ed67cf18919c681d6d192ef', name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '54db821813e7eb931b8f19fad7fce976cdeb0045', class: "col-12" }, h("form-control-text", { key: '4ecf222c1918e364f319d07e0a770d68dba099d0', name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'a92c38f2abbcb3dcaee4bc5ea73df44b31adc3f9', class: "col-12" }, h("form-control-text", { key: '492ff1a4d1e9c4f2fa9d0e527a34dc5ccb09afe6', name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '8e14e6e3de43822d139085d3a05bfd0e7ae5b1be', class: "col-12" }, h("form-control-select", { key: 'f6648b6f7c4a475f88b849bf3a75d446bb539c69', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '68a2efc082f5b6414ebde10b6da4365677dbefca', class: "col-12" }, h("form-control-text", { key: '3ef9b3db5882063708ccf1eb282f3e90ed53ce82', name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." })), h("div", { key: 'e3270db28269bc25dd4d5a99274f042c1efd1fc6', class: "col-12" }, h("form-control-text", { key: 'a8e801f65a4cc164cdc7bf186fed67f87abc828f', name: "routing_number", label: "Routing Number", defaultValue: this.defaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." }))));
16
+ return (h("div", { key: 'da4dc9523bca84cdd02f7e5d47e513c426ed90fd', class: "row gy-3" }, h("div", { key: 'b625a293dec704cbbb132469fdbc8c5d99a660e1', class: "col-12" }, h("form-control-text", { key: 'b41460ddc605f73faf71233ccbbef7e34e690e5a', name: "bank_name", label: "Bank Name", defaultValue: this.defaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'e5560bcdba399baa2e54441436ef5c67936e9fef', class: "col-12" }, h("form-control-text", { key: '18cd16931899f724fd92cb89f1b8d4cd41c5354c', name: "nickname", label: "Nickname", defaultValue: this.defaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '3bb589db98e5d65022576b602bda41f36e3a90d5', class: "col-12" }, h("form-control-text", { key: 'c870513b8895add114d5ec588561fa6f33a63514', name: "account_owner_name", label: "Account Owner Name", defaultValue: this.defaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '1783e7b4af2b012338fe2e1b4f1faa9b5e086bcd', class: "col-12" }, h("form-control-select", { key: '6a9af0f6edeae133dce04b7f829abb802db4ac83', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: this.defaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '3c3ffced96f67320b4c580be6f28dd8ef5d2c109', class: "col-12" }, h("form-control-text", { key: 'e85df115a9de08ad9abb3237f7bf6c6d23c84150', name: "account_number", label: "Account Number", defaultValue: this.defaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." })), h("div", { key: '5a25cb25160aff24d1f62df2115dbd248709141e', class: "col-12" }, h("form-control-text", { key: 'dfdf7dce470efb8eea65aa6daf562d190963bace', name: "routing_number", label: "Routing Number", defaultValue: this.defaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." }))));
17
17
  }
18
18
  }, [256, "bank-account-form-inputs", {
19
19
  "defaultValue": [8, "default-value"],
@@ -1,4 +1,89 @@
1
- import { B as BankAccountForm$1, d as defineCustomElement$1 } from './bank-account-form2.js';
1
+ import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
2
+ import { S as Skeleton } from './skeleton.js';
3
+ import { w as waitForConfig, c as configState } from './config-state.js';
4
+ import { j as generateTabId } from './utils2.js';
5
+ import { d as defineCustomElement$2 } from './iframe-input2.js';
6
+
7
+ const BankAccountFormSkeleton = (props) => {
8
+ const { isReady } = props;
9
+ if (isReady) {
10
+ return null;
11
+ }
12
+ return (h("div", { class: "container-fluid p-0" },
13
+ h("div", { class: "row mb-3" },
14
+ h("div", { class: "col-12 align-content-end" },
15
+ h(Skeleton, { height: "18px", width: "120px" }),
16
+ h(Skeleton, { height: "36px" }))),
17
+ h("div", { class: "row" },
18
+ h("div", { class: "col-12 align-content-end" },
19
+ h(Skeleton, { height: "18px", width: "110px" }),
20
+ h(Skeleton, { height: "36px" })))));
21
+ };
22
+
23
+ const BankAccountForm$1 = /*@__PURE__*/ proxyCustomElement(class BankAccountForm extends HTMLElement {
24
+ constructor() {
25
+ super();
26
+ this.__registerHost();
27
+ this.isReady = false;
28
+ }
29
+ async componentWillLoad() {
30
+ await waitForConfig();
31
+ this.iframeOrigin = configState.iframeOrigin;
32
+ this.tabId = generateTabId();
33
+ }
34
+ componentDidRender() {
35
+ const elements = [
36
+ this.accountNumberIframeElement,
37
+ this.routingNumberIframeElement,
38
+ ];
39
+ Promise.all(elements.map((element) => {
40
+ return new Promise((resolve) => {
41
+ element.addEventListener('iframeLoaded', () => { resolve(); });
42
+ });
43
+ })).then(() => {
44
+ this.isReady = true;
45
+ });
46
+ }
47
+ async validate() {
48
+ const accountNumberIsValid = await this.accountNumberIframeElement.validate();
49
+ const routingNumberIsValid = await this.routingNumberIframeElement.validate();
50
+ return accountNumberIsValid && routingNumberIsValid;
51
+ }
52
+ async tokenize(clientId, paymentMethodMetadata, account) {
53
+ return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
54
+ }
55
+ render() {
56
+ return (h(Host, { key: '7ee7c6e3c26ab1a90bdbf7215fe13f65aade1025' }, h(BankAccountFormSkeleton, { key: 'e4afc94a21b041972d031cfce88a102f763932d1', isReady: this.isReady }), h("div", { key: '8980e0dc0048dbd9cd93a4f93fab8c4cbfeef611', class: "container-fluid p-0", style: {
57
+ opacity: this.isReady ? '1' : '0',
58
+ height: this.isReady ? 'auto' : '0',
59
+ } }, h("div", { key: 'd04bb6b18498de9646ba6e2ee32f223774a72cc7', class: "row mb-3" }, h("iframe-input", { key: '7eb29da8beff34cbe5d2b7c151fec433d17f8555', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}` })), h("div", { key: 'c6345cddc37cbe5627ca4581fb98be55b85550a6', class: "row" }, h("iframe-input", { key: '0bf71a22e9126e04f15f213d84953ccfd3388ef0', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}` })))));
60
+ }
61
+ }, [256, "bank-account-form", {
62
+ "isReady": [32],
63
+ "iframeOrigin": [32],
64
+ "tabId": [32],
65
+ "validate": [64],
66
+ "tokenize": [64]
67
+ }]);
68
+ function defineCustomElement$1() {
69
+ if (typeof customElements === "undefined") {
70
+ return;
71
+ }
72
+ const components = ["bank-account-form", "iframe-input"];
73
+ components.forEach(tagName => { switch (tagName) {
74
+ case "bank-account-form":
75
+ if (!customElements.get(tagName)) {
76
+ customElements.define(tagName, BankAccountForm$1);
77
+ }
78
+ break;
79
+ case "iframe-input":
80
+ if (!customElements.get(tagName)) {
81
+ defineCustomElement$2();
82
+ }
83
+ break;
84
+ } });
85
+ }
86
+ defineCustomElement$1();
2
87
 
3
88
  const BankAccountForm = BankAccountForm$1;
4
89
  const defineCustomElement = defineCustomElement$1;