@justifi/webcomponents 5.7.1 → 5.7.3-rc-01

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 (721) hide show
  1. package/dist/cjs/{check-pkg-version-BqC8BOhm.js → Analytics-DYN4hp2b.js} +27 -26
  2. package/dist/cjs/{Api-C8nf_gS9.js → Api-BTdkb3Zh.js} +2 -2
  3. package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
  4. package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-BsYZoJ0a.js} +2 -4
  5. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
  6. package/dist/cjs/Document-rXGBUaOh.js +58 -0
  7. package/dist/cjs/{Document-CL5Zc72Q.js → Payment-D5UynU2f.js} +1 -57
  8. package/dist/cjs/{Refund-CYxocU06.js → Refund-BDFOEJv_.js} +1 -1
  9. package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -15
  10. package/dist/cjs/{badge-BxoJOyTJ.js → badge-sO_Hcamo.js} +1 -1
  11. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +15 -14
  12. package/dist/cjs/{bank-account-form_9.cjs.entry.js → bank-account-form_7.cjs.entry.js} +51 -210
  13. package/dist/cjs/billing-form-schema-oZ4GROWP.js +26 -0
  14. package/dist/cjs/{business-additional-questions-schema-DR8vt11M.js → business-additional-questions-schema-CHOaeZot.js} +6 -6
  15. package/dist/cjs/business-details-core.cjs.entry.js +5 -6
  16. package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
  17. package/dist/cjs/{business-identity-schema-BYaCsboD.js → business-identity-schema-DmpEndsx.js} +10 -10
  18. package/dist/cjs/{business.service-C2rg_zSw.js → business.service-ev-3rHag.js} +7 -6
  19. package/dist/cjs/{button-BPFSRx4d.js → button-CCZd8WSY.js} +1 -1
  20. package/dist/cjs/checkout-actions-CRbQgLn0.js +61 -0
  21. package/dist/cjs/{checkout.service-CyvIIMeq.js → checkout.service-D4hTYr1i.js} +7 -6
  22. package/dist/cjs/checkout.store-osqdxFMq.js +29 -0
  23. package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -15
  24. package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-fVsfZZ5G.js} +1 -1
  25. package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-C1Jv_A7m.js} +3 -3
  26. package/dist/cjs/{config-state-D7p-XunE.js → config-state-BTfJl-LU.js} +1 -1
  27. package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
  28. package/dist/cjs/{dispute.service-CKPR1vFS.js → dispute.service-Dru9NStj.js} +7 -6
  29. package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
  30. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  31. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  32. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  33. package/dist/cjs/{form-control-error-text-D9XDyFoW.js → form-control-error-text-DPDsFdAT.js} +1 -1
  34. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  35. package/dist/cjs/{form-control-help-text-J_boqSMc.js → form-control-help-text-CT5HzEnX.js} +1 -1
  36. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  37. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  38. package/dist/cjs/form-control-monetary.cjs.entry.js +6 -6
  39. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  40. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  41. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  42. package/dist/cjs/{get-business-DHg5rpse.js → get-business-BiEc-jdH.js} +3 -3
  43. package/dist/cjs/{get-payment-details-C9HqIv-M.js → get-payment-details-AOibpML7.js} +10 -9
  44. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
  45. package/dist/cjs/{get-subaccounts-BNpIanJ9.js → get-subaccounts-Dw7CbPDi.js} +10 -9
  46. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  47. package/dist/cjs/{header-1-auSUfIpO.js → header-1--wdCXxjA.js} +1 -1
  48. package/dist/cjs/{header-3-B-bXHCpC.js → header-3-DxUQJ7TT.js} +1 -1
  49. package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
  50. package/dist/cjs/{index-BYd8IvAa.js → index-2GwnTbNA.js} +22 -4
  51. package/dist/cjs/{index-B8ljHEN1.js → index-DEMVrrsF.js} +1 -1
  52. package/dist/cjs/{insurance-state-CFxbKNWH.js → insurance-state-BmAF1Sef.js} +2 -2
  53. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +25 -24
  54. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -22
  55. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +43 -43
  56. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +85 -0
  57. package/dist/cjs/justifi-billing-information-form.cjs.entry.js +51 -0
  58. package/dist/cjs/justifi-business-details.cjs.entry.js +26 -20
  59. package/dist/cjs/justifi-business-form.cjs.entry.js +29 -28
  60. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  61. package/dist/cjs/justifi-card-form.cjs.entry.js +93 -0
  62. package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
  64. package/dist/cjs/justifi-checkout.cjs.entry.js +31 -74
  65. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +13 -12
  66. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +22 -21
  67. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  68. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  69. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  70. package/dist/cjs/justifi-dispute-management.cjs.entry.js +18 -17
  71. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +23 -22
  72. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +17 -16
  73. package/dist/cjs/justifi-modular-checkout.cjs.entry.js +205 -0
  74. package/dist/cjs/justifi-order-terminals.cjs.entry.js +22 -21
  75. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +20 -19
  76. package/dist/cjs/justifi-payment-details.cjs.entry.js +19 -18
  77. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  78. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +18 -17
  79. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +21 -20
  80. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
  81. package/dist/cjs/justifi-payments-list.cjs.entry.js +23 -22
  82. package/dist/cjs/justifi-payout-details.cjs.entry.js +19 -18
  83. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +21 -20
  84. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  85. package/dist/cjs/justifi-payouts-list.cjs.entry.js +24 -23
  86. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +50 -0
  87. package/dist/cjs/justifi-refund-payment.cjs.entry.js +28 -27
  88. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
  89. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +6 -6
  90. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +24 -25
  91. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
  92. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +14 -13
  93. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +20 -19
  94. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +13 -12
  95. package/dist/cjs/justifi-terminals-list.cjs.entry.js +22 -21
  96. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +26 -19
  97. package/dist/cjs/loader.cjs.js +3 -4
  98. package/dist/cjs/{package-Biee4Hdo.js → package-DF9mLjoQ.js} +1 -1
  99. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  100. package/dist/cjs/payment-details-core.cjs.entry.js +15 -15
  101. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
  102. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
  103. package/dist/cjs/{payment.service-C996aLGw.js → payment.service-rsnscZu7.js} +7 -6
  104. package/dist/cjs/payments-list-core.cjs.entry.js +17 -16
  105. package/dist/cjs/{payments-list-params-state-BvG5Ysrg.js → payments-list-params-state-fVsfZZ5G.js} +1 -1
  106. package/dist/cjs/{payments-status-BTykBx8i.js → payments-status-DPqU5v9h.js} +2 -2
  107. package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BM3AoAJf.js} +3 -3
  108. package/dist/cjs/payout-details-core.cjs.entry.js +11 -11
  109. package/dist/cjs/{payout.service-BwKgEbDo.js → payout.service-BnmI3X4n.js} +7 -6
  110. package/dist/cjs/payouts-list-core.cjs.entry.js +17 -16
  111. package/dist/cjs/{payouts-list-params-state-BvG5Ysrg.js → payouts-list-params-state-fVsfZZ5G.js} +1 -1
  112. package/dist/cjs/{payouts-status-YCqmbd4K.js → payouts-status-CU8aqIhH.js} +2 -2
  113. package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-1HL4kk9B.js} +3 -3
  114. package/dist/cjs/{schema-validations-Bhz09M42.js → schema-validations-C0BNwMBi.js} +36 -37
  115. package/dist/cjs/{skeleton-aMh0RMHq.js → skeleton-ByLavxr1.js} +1 -1
  116. package/dist/cjs/{spinner-BTyIjlMM.js → spinner-DOC4Ab7M.js} +1 -1
  117. package/dist/cjs/{styled-host-udkBJV5h.js → styled-host-IMxk64cc.js} +1 -1
  118. package/dist/cjs/{table-DKVauFHc.js → table-BgQP2M2-.js} +2 -2
  119. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  120. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +16 -15
  121. package/dist/cjs/{terminal-orders-list-params-state-BvG5Ysrg.js → terminal-orders-list-params-state-fVsfZZ5G.js} +1 -1
  122. package/dist/cjs/{terminal-orders-table-CxY1ykZ7.js → terminal-orders-table-OxMHSAJ1.js} +10 -9
  123. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  124. package/dist/cjs/{terminal.service-D7dxg9ZQ.js → terminal.service--PPaq5xS.js} +7 -6
  125. package/dist/cjs/terminals-list-core.cjs.entry.js +16 -15
  126. package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +22 -0
  127. package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-yRGsrfBw.js} +3 -3
  128. package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
  129. package/dist/cjs/{utils-5lco6NzU.js → utils-bn0fXuc-.js} +1 -1
  130. package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
  131. package/dist/cjs/webcomponents.cjs.js +4 -5
  132. package/dist/collection/api/BillingInformation.js +1 -0
  133. package/dist/collection/api/Business.js +3 -1
  134. package/dist/collection/api/Checkout.js +1 -3
  135. package/dist/collection/api/ComponentError.js +2 -0
  136. package/dist/collection/api/PaymentMethod.js +1 -0
  137. package/dist/collection/collection-manifest.json +10 -3
  138. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
  139. package/dist/collection/components/business-details/business-details-core.js +1 -2
  140. package/dist/collection/components/business-details/business-details.js +10 -3
  141. package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
  142. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
  143. package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
  144. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  145. package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
  146. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  147. package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
  148. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  149. package/dist/collection/components/checkout/checkout.js +11 -2
  150. package/dist/collection/components/checkout/new-payment-method.js +17 -6
  151. package/dist/collection/components/checkout/payment-method-options.js +6 -37
  152. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  153. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  154. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  160. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  161. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  162. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  163. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  164. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  165. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  166. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  167. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  168. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  169. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  170. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -12
  171. package/dist/collection/components/modular-checkout/modular-checkout.js +345 -0
  172. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +10 -0
  173. package/dist/collection/components/modular-checkout-parts/bank-account.js +119 -0
  174. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +21 -0
  175. package/dist/collection/components/modular-checkout-parts/billing-form.js +116 -0
  176. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +10 -0
  177. package/dist/collection/components/modular-checkout-parts/card-form.js +123 -0
  178. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +114 -0
  179. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +23 -0
  180. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +127 -0
  181. package/dist/collection/components/modular-checkout-parts/summary.js +12 -0
  182. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  183. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  184. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  185. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  186. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  187. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  188. package/dist/collection/components/payments-list/payments-list.js +1 -1
  189. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  190. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  191. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  192. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  193. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  194. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  195. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  196. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  197. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  198. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  199. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  200. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +13 -7
  201. package/dist/collection/store/checkout.store.js +25 -0
  202. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  203. package/dist/collection/ui-components/details/details.js +2 -2
  204. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  205. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  206. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  207. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  208. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  209. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  210. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  211. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  212. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  213. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  214. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  215. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  216. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  217. package/dist/collection/utils/utils.js +3 -0
  218. package/dist/docs.json +1290 -472
  219. package/dist/esm/{check-pkg-version-DxnKX9GQ.js → Analytics-DR277kvb.js} +28 -27
  220. package/dist/esm/{Api-KYhsw8Nv.js → Api-CqimcNgb.js} +2 -2
  221. package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
  222. package/dist/esm/{Checkout-Dfpql997.js → Checkout-CV6qgU0r.js} +2 -4
  223. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
  224. package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
  225. package/dist/esm/Document-Ct-uNz2r.js +55 -0
  226. package/dist/esm/{Document-cNXrKmGy.js → Payment-BEvE6jAC.js} +3 -57
  227. package/dist/esm/{Refund-2YJqP9qX.js → Refund-CwUn_GFj.js} +1 -1
  228. package/dist/esm/additional-questions-details_5.entry.js +15 -16
  229. package/dist/esm/{badge-Du9GTXoB.js → badge-D_Q0kAPD.js} +2 -2
  230. package/dist/esm/bank-account-document-form-inputs_4.entry.js +17 -16
  231. package/dist/esm/{bank-account-form_9.entry.js → bank-account-form_7.entry.js} +43 -200
  232. package/dist/esm/billing-form-schema-PFvYpvy4.js +24 -0
  233. package/dist/esm/{business-additional-questions-schema-GpN_koGK.js → business-additional-questions-schema-0lssJqN7.js} +2 -2
  234. package/dist/esm/business-details-core.entry.js +6 -7
  235. package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
  236. package/dist/esm/{business-identity-schema-BjuQ6ajL.js → business-identity-schema-Bel1K5mu.js} +2 -2
  237. package/dist/esm/{business.service-ClD_YDeT.js → business.service-BM8hLxHS.js} +8 -7
  238. package/dist/esm/{button-CjH5C0pG.js → button-BVAxQPpP.js} +2 -2
  239. package/dist/esm/checkout-actions-UQ6g1s7I.js +58 -0
  240. package/dist/esm/{checkout.service-DfzkmIe4.js → checkout.service-CuCgG9hv.js} +8 -7
  241. package/dist/esm/checkout.store-DQrlfeus.js +27 -0
  242. package/dist/esm/checkouts-list-core.entry.js +18 -17
  243. package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-DhPyCV-V.js} +1 -1
  244. package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-Cc6U-0md.js} +4 -4
  245. package/dist/esm/{config-state-CkKrqnpZ.js → config-state-BjXhUj2q.js} +1 -1
  246. package/dist/esm/custom-popper_4.entry.js +9 -9
  247. package/dist/esm/{dispute.service-BTOWqnmk.js → dispute.service-rB4Hq6ot.js} +8 -7
  248. package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
  249. package/dist/esm/form-alert_5.entry.js +4 -4
  250. package/dist/esm/form-control-checkbox.entry.js +6 -6
  251. package/dist/esm/form-control-date.entry.js +5 -5
  252. package/dist/esm/{form-control-error-text-tGFxd6kW.js → form-control-error-text-_SAT-ts2.js} +2 -2
  253. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  254. package/dist/esm/{form-control-help-text-2DawN8-N.js → form-control-help-text-Cjeu_VrV.js} +2 -2
  255. package/dist/esm/form-control-help-text.entry.js +1 -1
  256. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  257. package/dist/esm/form-control-monetary.entry.js +7 -7
  258. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  259. package/dist/esm/form-control-number.entry.js +6 -6
  260. package/dist/esm/form-control-radio.entry.js +4 -4
  261. package/dist/esm/{get-business-CIKToQur.js → get-business-BSRtbTh7.js} +3 -3
  262. package/dist/esm/{get-payment-details-D-prcfRc.js → get-payment-details-DtkGDTwo.js} +10 -9
  263. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
  264. package/dist/esm/{get-subaccounts-B0uEyOp_.js → get-subaccounts-C-ENQBmY.js} +11 -10
  265. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  266. package/dist/esm/{header-1-D2gZb3iT.js → header-1-5FIT-wD7.js} +2 -2
  267. package/dist/esm/{header-3-DAg8Vh4B.js → header-3-Ce9WLWBm.js} +2 -2
  268. package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
  269. package/dist/esm/{index-D6FDxSyt.js → index-Bta_r52Z.js} +22 -5
  270. package/dist/esm/{index-Cc3u0uDC.js → index-Cf8VXyXg.js} +1 -1
  271. package/dist/esm/{insurance-state-CsZbKSgm.js → insurance-state-BcwZy_5w.js} +3 -3
  272. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +19 -18
  273. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -19
  274. package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
  275. package/dist/esm/justifi-bank-account-form.entry.js +83 -0
  276. package/dist/esm/justifi-billing-information-form.entry.js +49 -0
  277. package/dist/esm/justifi-business-details.entry.js +26 -20
  278. package/dist/esm/justifi-business-form.entry.js +27 -26
  279. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  280. package/dist/esm/justifi-card-form.entry.js +91 -0
  281. package/dist/esm/justifi-checkout-core.entry.js +11 -11
  282. package/dist/esm/justifi-checkout-summary.entry.js +19 -0
  283. package/dist/esm/justifi-checkout.entry.js +28 -71
  284. package/dist/esm/justifi-checkouts-list-filters.entry.js +15 -14
  285. package/dist/esm/justifi-checkouts-list.entry.js +22 -21
  286. package/dist/esm/justifi-config-provider.entry.js +3 -3
  287. package/dist/esm/justifi-details.entry.js +4 -4
  288. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  289. package/dist/esm/justifi-dispute-management.entry.js +17 -16
  290. package/dist/esm/justifi-dispute-notification_3.entry.js +23 -22
  291. package/dist/esm/justifi-gross-payment-chart.entry.js +17 -16
  292. package/dist/esm/justifi-modular-checkout.entry.js +203 -0
  293. package/dist/esm/justifi-order-terminals.entry.js +22 -21
  294. package/dist/esm/justifi-owner-form_3.entry.js +21 -20
  295. package/dist/esm/justifi-payment-details.entry.js +19 -18
  296. package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
  297. package/dist/esm/justifi-payment-provisioning.entry.js +17 -16
  298. package/dist/esm/justifi-payment-transactions-list.entry.js +21 -20
  299. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  300. package/dist/esm/justifi-payments-list.entry.js +22 -21
  301. package/dist/esm/justifi-payout-details.entry.js +19 -18
  302. package/dist/esm/justifi-payout-transactions-list.entry.js +21 -20
  303. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  304. package/dist/esm/justifi-payouts-list.entry.js +24 -23
  305. package/dist/esm/justifi-postal-code-form.entry.js +48 -0
  306. package/dist/esm/justifi-refund-payment.entry.js +22 -21
  307. package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
  308. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -7
  309. package/dist/esm/justifi-season-interruption-insurance.entry.js +23 -24
  310. package/dist/esm/justifi-sezzle-payment-method.entry.js +78 -0
  311. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +16 -15
  312. package/dist/esm/justifi-terminal-orders-list.entry.js +20 -19
  313. package/dist/esm/justifi-terminals-list-filters.entry.js +15 -14
  314. package/dist/esm/justifi-terminals-list.entry.js +22 -21
  315. package/dist/esm/justifi-tokenize-payment-method.entry.js +26 -19
  316. package/dist/esm/loader.js +3 -4
  317. package/dist/esm/{package-DPiTQ9dr.js → package-CyXXks-Q.js} +1 -1
  318. package/dist/esm/pagination-menu.entry.js +2 -2
  319. package/dist/esm/{parts-BrLVc_85.js → parts-_6eQgwfE.js} +1 -1
  320. package/dist/esm/payment-details-core.entry.js +16 -16
  321. package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
  322. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
  323. package/dist/esm/{payment.service-CgwLo1_s.js → payment.service-DoUv1QsX.js} +8 -7
  324. package/dist/esm/payments-list-core.entry.js +19 -18
  325. package/dist/esm/{payments-list-params-state-Bn7pL-8x.js → payments-list-params-state-DhPyCV-V.js} +1 -1
  326. package/dist/esm/{payments-status-CIUXcA0w.js → payments-status-BeL2gi3P.js} +2 -2
  327. package/dist/esm/{payments-table-BBf5fV74.js → payments-table-MrDAlH2o.js} +4 -4
  328. package/dist/esm/payout-details-core.entry.js +12 -12
  329. package/dist/esm/{payout.service-DYFCNfLa.js → payout.service-B_Fm08zQ.js} +8 -7
  330. package/dist/esm/payouts-list-core.entry.js +19 -18
  331. package/dist/esm/{payouts-list-params-state-Bn7pL-8x.js → payouts-list-params-state-DhPyCV-V.js} +1 -1
  332. package/dist/esm/{payouts-status-Clo03qUI.js → payouts-status-BxbhUjA3.js} +2 -2
  333. package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-HoX3UYIj.js} +4 -4
  334. package/dist/esm/{schema-validations-D9YNVLiI.js → schema-validations-DYV7urvw.js} +8 -9
  335. package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-CPNYhX-V.js} +2 -2
  336. package/dist/esm/{spinner-onCBxbdo.js → spinner-Cl-6YJPf.js} +2 -2
  337. package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-BSX_LSdk.js} +1 -1
  338. package/dist/esm/{table-p4dOlFPi.js → table-RCk8zh4L.js} +3 -3
  339. package/dist/esm/table-filters-menu.entry.js +4 -4
  340. package/dist/esm/terminal-orders-list-core.entry.js +18 -17
  341. package/dist/esm/{terminal-orders-list-params-state-Bn7pL-8x.js → terminal-orders-list-params-state-DhPyCV-V.js} +1 -1
  342. package/dist/esm/{terminal-orders-table-BopP465z.js → terminal-orders-table-DxHLNkx_.js} +12 -11
  343. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  344. package/dist/esm/{terminal.service-f-whs_d4.js → terminal.service-2VkdfNas.js} +8 -7
  345. package/dist/esm/terminals-list-core.entry.js +18 -17
  346. package/dist/esm/terminals-list-params-state-DhPyCV-V.js +16 -0
  347. package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-v-LOevYA.js} +4 -4
  348. package/dist/esm/{utils-BpP_VJGf.js → utils-1WrbuHVR.js} +2 -2
  349. package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
  350. package/dist/esm/{utils-BWcTxbSg.js → utils-BjLkBMLe.js} +4 -1
  351. package/dist/esm/webcomponents.js +4 -5
  352. package/dist/module/{check-pkg-version.js → Analytics.js} +21 -21
  353. package/dist/module/Business.js +3 -1
  354. package/dist/module/Checkout.js +3 -3
  355. package/dist/module/additional-questions-details2.js +3 -4
  356. package/dist/module/additional-statement.js +1 -1
  357. package/dist/module/bank-account-form2.js +2 -2
  358. package/dist/module/billing-form-schema.js +24 -0
  359. package/dist/module/billing-form.js +6 -5
  360. package/dist/module/business-address-schema.js +1 -1
  361. package/dist/module/business-bank-account-form-step-core.js +1 -1
  362. package/dist/module/business-core-info-schema.js +1 -1
  363. package/dist/module/business-details-core2.js +11 -7
  364. package/dist/module/business-identity-schema.js +1 -1
  365. package/dist/module/business-terms-conditions-form-step.js +2 -2
  366. package/dist/module/button.js +1 -1
  367. package/dist/module/cancellation-policy.js +1 -1
  368. package/dist/module/card-form2.js +2 -2
  369. package/dist/module/checkout-actions.js +58 -0
  370. package/dist/module/checkout-core.js +32 -38
  371. package/dist/module/checkout.store.js +27 -0
  372. package/dist/module/checkouts-list-core2.js +2 -2
  373. package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
  374. package/dist/module/core-info-details.js +6 -0
  375. package/dist/module/core-info-details2.js +34 -0
  376. package/dist/module/custom-popper2.js +2 -2
  377. package/dist/module/customer-details.js +1 -1
  378. package/dist/module/details.js +2 -2
  379. package/dist/module/dispute-management-core.js +1 -1
  380. package/dist/module/dispute-notification.js +1 -1
  381. package/dist/module/dispute-response-core.js +1 -1
  382. package/dist/module/dispute-response.js +2 -2
  383. package/dist/module/duplicate-charge.js +1 -1
  384. package/dist/module/electronic-evidence.js +1 -1
  385. package/dist/module/form-control-checkbox2.js +2 -2
  386. package/dist/module/form-control-date2.js +2 -2
  387. package/dist/module/form-control-file-v22.js +1 -1
  388. package/dist/module/form-control-file2.js +2 -2
  389. package/dist/module/form-control-monetary2.js +2 -2
  390. package/dist/module/form-control-number-masked2.js +2 -2
  391. package/dist/module/form-control-number.js +2 -2
  392. package/dist/module/form-control-radio2.js +2 -2
  393. package/dist/module/form-control-select2.js +2 -2
  394. package/dist/module/form-control-text2.js +2 -2
  395. package/dist/module/form-control-textarea2.js +2 -2
  396. package/dist/module/gross-payment-chart-core2.js +1 -1
  397. package/dist/module/hidden-input2.js +1 -1
  398. package/dist/module/iframe-input2.js +5 -5
  399. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  400. package/dist/module/justifi-bank-account-form.js +103 -0
  401. package/dist/module/justifi-billing-information-form.d.ts +11 -0
  402. package/dist/module/justifi-billing-information-form.js +94 -0
  403. package/dist/module/justifi-business-details.js +21 -10
  404. package/dist/module/justifi-business-form.js +1 -1
  405. package/dist/module/justifi-card-form.d.ts +11 -0
  406. package/dist/module/justifi-card-form.js +111 -0
  407. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  408. package/dist/module/justifi-checkout-summary.js +37 -0
  409. package/dist/module/justifi-checkout.js +48 -99
  410. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  411. package/dist/module/justifi-checkouts-list.js +2 -2
  412. package/dist/module/justifi-dispute-management.js +2 -2
  413. package/dist/module/justifi-gross-payment-chart.js +1 -1
  414. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  415. package/dist/module/justifi-modular-checkout.js +219 -0
  416. package/dist/module/justifi-order-terminals.js +3 -3
  417. package/dist/module/justifi-payment-details.js +1 -1
  418. package/dist/module/justifi-payment-provisioning.js +1 -1
  419. package/dist/module/justifi-payment-transactions-list.js +3 -3
  420. package/dist/module/justifi-payments-list-filters.js +3 -3
  421. package/dist/module/justifi-payments-list.js +2 -2
  422. package/dist/module/justifi-payout-details.js +1 -1
  423. package/dist/module/justifi-payout-transactions-list.js +3 -3
  424. package/dist/module/justifi-payouts-list-filters.js +3 -3
  425. package/dist/module/justifi-payouts-list.js +2 -2
  426. package/dist/module/justifi-postal-code-form.d.ts +11 -0
  427. package/dist/module/justifi-postal-code-form.js +86 -0
  428. package/dist/module/justifi-refund-payment.js +1 -1
  429. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  430. package/dist/module/justifi-saved-payment-methods.js +58 -0
  431. package/dist/module/justifi-season-interruption-insurance.js +9 -11
  432. package/dist/module/justifi-sezzle-payment-method.js +108 -1
  433. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  434. package/dist/module/justifi-terminal-orders-list.js +2 -2
  435. package/dist/module/justifi-terminals-list-filters.js +2 -2
  436. package/dist/module/justifi-terminals-list.js +2 -2
  437. package/dist/module/justifi-tokenize-payment-method.js +42 -42
  438. package/dist/module/legal-address-details2.js +3 -3
  439. package/dist/module/new-payment-method.js +15 -4
  440. package/dist/module/package.js +3 -3
  441. package/dist/module/parts.js +1 -1
  442. package/dist/module/payment-details-core2.js +8 -8
  443. package/dist/module/payment-method-option-utils.js +23 -0
  444. package/dist/module/payment-method-options.js +35 -53
  445. package/dist/module/payments-list-core2.js +2 -2
  446. package/dist/module/payout-details-core2.js +3 -3
  447. package/dist/module/payouts-list-core2.js +2 -2
  448. package/dist/module/product-or-service.js +1 -1
  449. package/dist/module/refund-policy.js +1 -1
  450. package/dist/module/representative-details2.js +3 -3
  451. package/dist/module/saved-payment-method.js +2 -22
  452. package/dist/module/schema-validations.js +5 -6
  453. package/dist/module/shipping-details.js +1 -1
  454. package/dist/module/table-filters-menu2.js +2 -2
  455. package/dist/module/terminal-orders-list-core2.js +2 -2
  456. package/dist/module/terminal-quantity-selector2.js +1 -1
  457. package/dist/module/terminals-list-core2.js +2 -2
  458. package/dist/module/utils2.js +3 -0
  459. package/dist/types/api/BillingInformation.d.ts +13 -0
  460. package/dist/types/api/Checkout.d.ts +14 -13
  461. package/dist/types/api/ComponentError.d.ts +3 -1
  462. package/dist/types/api/PaymentMethod.d.ts +21 -0
  463. package/dist/types/components/business-details/business-details.d.ts +1 -0
  464. package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
  465. package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
  466. package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
  467. package/dist/types/components/checkout/checkout.d.ts +1 -0
  468. package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
  469. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  470. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  471. package/dist/types/components/modular-checkout/modular-checkout.d.ts +31 -0
  472. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +6 -0
  473. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +18 -0
  474. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +23 -0
  475. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +16 -0
  476. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +6 -0
  477. package/dist/types/components/modular-checkout-parts/card-form.d.ts +20 -0
  478. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +16 -0
  479. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +5 -0
  480. package/dist/types/components/{checkout → modular-checkout-parts}/sezzle-payment-method.d.ts +2 -8
  481. package/dist/types/components/modular-checkout-parts/summary.d.ts +3 -0
  482. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +3 -2
  483. package/dist/types/components.d.ts +449 -42
  484. package/dist/types/stencil-public-runtime.d.ts +1 -1
  485. package/dist/types/store/checkout.store.d.ts +19 -0
  486. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  487. package/dist/types/utils/utils.d.ts +1 -1
  488. package/dist/webcomponents/p-00900e52.entry.js +1 -0
  489. package/dist/webcomponents/p-025ae692.entry.js +1 -0
  490. package/dist/webcomponents/p-02e26641.entry.js +1 -0
  491. package/dist/webcomponents/p-04c91ec1.entry.js +1 -0
  492. package/dist/webcomponents/{p-bf3e8295.entry.js → p-0c13f2da.entry.js} +1 -1
  493. package/dist/webcomponents/p-0d5e93b3.entry.js +1 -0
  494. package/dist/webcomponents/{p-90c24cda.entry.js → p-15c63931.entry.js} +1 -1
  495. package/dist/webcomponents/p-19b5f93a.entry.js +1 -0
  496. package/dist/webcomponents/p-1ac365b4.entry.js +1 -0
  497. package/dist/webcomponents/{p-b40108c0.entry.js → p-1d59c747.entry.js} +1 -1
  498. package/dist/webcomponents/p-1d64d86b.entry.js +1 -0
  499. package/dist/webcomponents/p-20d7db42.entry.js +1 -0
  500. package/dist/webcomponents/p-25b310f0.entry.js +1 -0
  501. package/dist/webcomponents/p-271b131d.entry.js +1 -0
  502. package/dist/webcomponents/p-2882b4e9.entry.js +1 -0
  503. package/dist/webcomponents/p-2a08ba01.entry.js +1 -0
  504. package/dist/webcomponents/p-2f027626.entry.js +1 -0
  505. package/dist/webcomponents/p-2fa36c0e.entry.js +1 -0
  506. package/dist/webcomponents/p-379584fb.entry.js +1 -0
  507. package/dist/webcomponents/p-39f31e23.entry.js +1 -0
  508. package/dist/webcomponents/p-3b6888c5.entry.js +1 -0
  509. package/dist/webcomponents/p-3d62f9a5.entry.js +1 -0
  510. package/dist/webcomponents/p-3edd5ebd.entry.js +1 -0
  511. package/dist/webcomponents/p-4232760b.entry.js +1 -0
  512. package/dist/webcomponents/p-4be4f7b4.entry.js +1 -0
  513. package/dist/webcomponents/p-531738ae.entry.js +1 -0
  514. package/dist/webcomponents/p-54019e68.entry.js +1 -0
  515. package/dist/webcomponents/{p-3e94cf62.entry.js → p-584ba20d.entry.js} +1 -1
  516. package/dist/webcomponents/p-5bc6f1e6.entry.js +20 -0
  517. package/dist/webcomponents/p-5bfbb0f8.entry.js +1 -0
  518. package/dist/webcomponents/{p-19b9c96a.entry.js → p-5da3ba38.entry.js} +1 -1
  519. package/dist/webcomponents/{p-bb50155f.entry.js → p-5ea3cfca.entry.js} +1 -1
  520. package/dist/webcomponents/p-5f9dbaff.entry.js +1 -0
  521. package/dist/webcomponents/p-6b229318.entry.js +1 -0
  522. package/dist/webcomponents/p-6fc1ace5.entry.js +1 -0
  523. package/dist/webcomponents/{p-7733b67b.entry.js → p-712220f9.entry.js} +1 -1
  524. package/dist/webcomponents/p-716d41f2.entry.js +1 -0
  525. package/dist/webcomponents/p-7253f1ea.entry.js +1 -0
  526. package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
  527. package/dist/webcomponents/p-80b662de.entry.js +1 -0
  528. package/dist/webcomponents/p-82164a5e.entry.js +1 -0
  529. package/dist/webcomponents/p-8532c68c.entry.js +1 -0
  530. package/dist/webcomponents/p-8590c5df.entry.js +1 -0
  531. package/dist/webcomponents/p-8e555a6e.entry.js +1 -0
  532. package/dist/webcomponents/p-96f89c69.entry.js +1 -0
  533. package/dist/webcomponents/p-98a39544.entry.js +1 -0
  534. package/dist/webcomponents/{p-CpTwq2jw.js → p-9REosSLu.js} +1 -1
  535. package/dist/webcomponents/{p-b2192f8b.entry.js → p-9a17fd5a.entry.js} +1 -1
  536. package/dist/webcomponents/p-9a9f9c57.entry.js +1 -0
  537. package/dist/webcomponents/{p-D5XSsLKb.js → p-B4MIwTdb.js} +1 -1
  538. package/dist/webcomponents/{p-n2YROtpe.js → p-B7VsiIW-.js} +1 -1
  539. package/dist/webcomponents/p-B8Ovjy6S.js +1 -0
  540. package/dist/webcomponents/p-BE5Nvydk.js +1 -0
  541. package/dist/webcomponents/{p-DuYlA4lj.js → p-BEDtXmpq.js} +1 -1
  542. package/dist/webcomponents/p-BGHVK-vQ.js +1 -0
  543. package/dist/webcomponents/{p-BzPi8Ea_.js → p-BPCw4WEY.js} +1 -1
  544. package/dist/webcomponents/p-BSUCBhkJ.js +1 -0
  545. package/dist/webcomponents/{p-DvHZ2jYI.js → p-BhLPwu1L.js} +1 -1
  546. package/dist/webcomponents/p-BhrFjjAs.js +1 -0
  547. package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
  548. package/dist/webcomponents/p-BoGb-Wsw.js +1 -0
  549. package/dist/webcomponents/p-Bond4qGX.js +1 -0
  550. package/dist/webcomponents/p-BpEw7AJl.js +1 -0
  551. package/dist/webcomponents/p-Bta_r52Z.js +2 -0
  552. package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
  553. package/dist/webcomponents/p-C-WgCIei.js +1 -0
  554. package/dist/webcomponents/p-CBs671Ol.js +1 -0
  555. package/dist/webcomponents/p-CCpqJxzB.js +1 -0
  556. package/dist/webcomponents/p-CDTncSrX.js +1 -0
  557. package/dist/webcomponents/p-CLpgfEbx.js +1 -0
  558. package/dist/webcomponents/p-CRYPNa2o.js +1 -0
  559. package/dist/webcomponents/p-CbGBEkk3.js +1 -0
  560. package/dist/webcomponents/p-CeNlJX4-.js +1 -0
  561. package/dist/webcomponents/p-CnnRWu7z.js +1 -0
  562. package/dist/webcomponents/{p-C0WFYqwq.js → p-CqVelcDt.js} +1 -1
  563. package/dist/webcomponents/p-Ct-uNz2r.js +1 -0
  564. package/dist/webcomponents/{p-82kiZkHt.js → p-Ctw40vkk.js} +1 -1
  565. package/dist/webcomponents/p-CvChBLtI.js +1 -0
  566. package/dist/webcomponents/{p-D0ptm6-3.js → p-CwHYDF33.js} +1 -1
  567. package/dist/webcomponents/p-CyXXks-Q.js +1 -0
  568. package/dist/webcomponents/p-Czro_9VO.js +1 -0
  569. package/dist/webcomponents/{p-Cd06j2SL.js → p-D3BIZZrc.js} +1 -1
  570. package/dist/webcomponents/{p-ByRPlUBS.js → p-D3SYNGyb.js} +1 -1
  571. package/dist/webcomponents/{p-BjB_yKBJ.js → p-D7js9xfx.js} +1 -1
  572. package/dist/webcomponents/p-DKClunJd.js +1 -0
  573. package/dist/webcomponents/p-DOB09NZD.js +1 -0
  574. package/dist/webcomponents/p-DUdzWNqB.js +1 -0
  575. package/dist/webcomponents/p-D_FOQEGU.js +1 -0
  576. package/dist/webcomponents/p-DaS3t0DL.js +1 -0
  577. package/dist/webcomponents/p-DddGO-XR.js +1 -0
  578. package/dist/webcomponents/p-Dge4w7_c.js +1 -0
  579. package/dist/webcomponents/p-DkWBoLsd.js +1 -0
  580. package/dist/webcomponents/p-DknV-QPT.js +1 -0
  581. package/dist/webcomponents/p-DnX5CZFd.js +1 -0
  582. package/dist/webcomponents/p-DuiQuWNq.js +1 -0
  583. package/dist/webcomponents/p-Dw6NWKHn.js +1 -0
  584. package/dist/webcomponents/p-DzPrenCi.js +1 -0
  585. package/dist/webcomponents/p-NqdaxjDT.js +1 -0
  586. package/dist/webcomponents/p-YDuIVoos.js +1 -0
  587. package/dist/webcomponents/{p-OSmuQKbK.js → p-Yj41tobi.js} +1 -1
  588. package/dist/webcomponents/{p-BrLVc_85.js → p-_6eQgwfE.js} +1 -1
  589. package/dist/webcomponents/p-a2db11b5.entry.js +1 -0
  590. package/dist/webcomponents/p-a31913e3.entry.js +1 -0
  591. package/dist/webcomponents/p-a4d457e9.entry.js +1 -0
  592. package/dist/webcomponents/{p-24792e8e.entry.js → p-b3e6d27c.entry.js} +1 -1
  593. package/dist/webcomponents/p-b8ee41c1.entry.js +1 -0
  594. package/dist/webcomponents/p-bde749ac.entry.js +1 -0
  595. package/dist/webcomponents/{p-82515f70.entry.js → p-be51c7c5.entry.js} +1 -1
  596. package/dist/webcomponents/p-bf16b11c.entry.js +1 -0
  597. package/dist/webcomponents/p-ce291c6a.entry.js +1 -0
  598. package/dist/webcomponents/p-d82b509a.entry.js +1 -0
  599. package/dist/webcomponents/p-d9b06582.entry.js +1 -0
  600. package/dist/webcomponents/p-dbc02ba8.entry.js +1 -0
  601. package/dist/webcomponents/p-dcad0df5.entry.js +1 -0
  602. package/dist/webcomponents/{p-59abf1de.entry.js → p-df2ad580.entry.js} +1 -1
  603. package/dist/webcomponents/p-e03630ec.entry.js +1 -0
  604. package/dist/webcomponents/p-e07sVz4Z.js +1 -0
  605. package/dist/webcomponents/p-e563df65.entry.js +1 -0
  606. package/dist/webcomponents/p-e8294f7e.entry.js +1 -0
  607. package/dist/webcomponents/p-ea664ada.entry.js +1 -0
  608. package/dist/webcomponents/p-ec9bb3f6.entry.js +1 -0
  609. package/dist/webcomponents/p-ecf6a315.entry.js +1 -0
  610. package/dist/webcomponents/p-ef9dcfe1.entry.js +1 -0
  611. package/dist/webcomponents/p-f71b1ff0.entry.js +1 -0
  612. package/dist/webcomponents/{p-99b080d9.entry.js → p-f7e24a51.entry.js} +1 -1
  613. package/dist/webcomponents/{p-5e467788.entry.js → p-ff223825.entry.js} +1 -1
  614. package/dist/webcomponents/p-hDoH7hHP.js +1 -0
  615. package/dist/webcomponents/p-pGzabKc7.js +1 -0
  616. package/dist/webcomponents/p-uLUlLQpP.js +1 -0
  617. package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
  618. package/dist/webcomponents/p-zucQG3cz.js +1 -0
  619. package/dist/webcomponents/webcomponents.esm.js +1 -1
  620. package/package.json +1 -1
  621. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  622. package/dist/cjs/iframe-input-styles-state-D9vhHzZQ.js +0 -26
  623. package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
  624. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
  625. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  626. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  627. package/dist/esm/iframe-input-styles-state-ibYqbF--.js +0 -23
  628. package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +0 -16
  629. package/dist/module/generic-info-details.js +0 -6
  630. package/dist/module/generic-info-details2.js +0 -34
  631. package/dist/module/sezzle-payment-method.js +0 -104
  632. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
  633. package/dist/webcomponents/p-0ab2f675.entry.js +0 -1
  634. package/dist/webcomponents/p-0b57ecc3.entry.js +0 -1
  635. package/dist/webcomponents/p-0deb6a38.entry.js +0 -1
  636. package/dist/webcomponents/p-16adfe77.entry.js +0 -1
  637. package/dist/webcomponents/p-1a85f26f.entry.js +0 -1
  638. package/dist/webcomponents/p-1b22572d.entry.js +0 -1
  639. package/dist/webcomponents/p-22a0b397.entry.js +0 -1
  640. package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
  641. package/dist/webcomponents/p-25ea4450.entry.js +0 -1
  642. package/dist/webcomponents/p-2adda453.entry.js +0 -1
  643. package/dist/webcomponents/p-2b8ac00a.entry.js +0 -1
  644. package/dist/webcomponents/p-2dbc4b19.entry.js +0 -1
  645. package/dist/webcomponents/p-3368d3d5.entry.js +0 -1
  646. package/dist/webcomponents/p-3a979295.entry.js +0 -1
  647. package/dist/webcomponents/p-3abc8eab.entry.js +0 -1
  648. package/dist/webcomponents/p-3babed12.entry.js +0 -1
  649. package/dist/webcomponents/p-40541e0c.entry.js +0 -1
  650. package/dist/webcomponents/p-4194214c.entry.js +0 -1
  651. package/dist/webcomponents/p-43d6bbed.entry.js +0 -1
  652. package/dist/webcomponents/p-44d8c2b1.entry.js +0 -1
  653. package/dist/webcomponents/p-4749e0d0.entry.js +0 -1
  654. package/dist/webcomponents/p-4ee0cd96.entry.js +0 -1
  655. package/dist/webcomponents/p-54281359.entry.js +0 -1
  656. package/dist/webcomponents/p-639baa7d.entry.js +0 -1
  657. package/dist/webcomponents/p-6429afb4.entry.js +0 -1
  658. package/dist/webcomponents/p-6n7viK-J.js +0 -1
  659. package/dist/webcomponents/p-799000c1.entry.js +0 -1
  660. package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
  661. package/dist/webcomponents/p-83154291.entry.js +0 -1
  662. package/dist/webcomponents/p-84d27581.entry.js +0 -1
  663. package/dist/webcomponents/p-9105f700.entry.js +0 -1
  664. package/dist/webcomponents/p-916ea4fc.entry.js +0 -1
  665. package/dist/webcomponents/p-935bbc62.entry.js +0 -1
  666. package/dist/webcomponents/p-935fa555.entry.js +0 -1
  667. package/dist/webcomponents/p-947239a6.entry.js +0 -1
  668. package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
  669. package/dist/webcomponents/p-B190pN0v.js +0 -1
  670. package/dist/webcomponents/p-BM5lviat.js +0 -1
  671. package/dist/webcomponents/p-BWJ7zamv.js +0 -1
  672. package/dist/webcomponents/p-BiPRf6d2.js +0 -1
  673. package/dist/webcomponents/p-BmWpHZ-Z.js +0 -1
  674. package/dist/webcomponents/p-C0IqfGFc.js +0 -1
  675. package/dist/webcomponents/p-C0UUR9CN.js +0 -1
  676. package/dist/webcomponents/p-C5RuuShs.js +0 -1
  677. package/dist/webcomponents/p-CCGhF18e.js +0 -1
  678. package/dist/webcomponents/p-CQdeVKF8.js +0 -1
  679. package/dist/webcomponents/p-CffckWWF.js +0 -1
  680. package/dist/webcomponents/p-CgxzrbM_.js +0 -1
  681. package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
  682. package/dist/webcomponents/p-D5Sh88BE.js +0 -1
  683. package/dist/webcomponents/p-D6FDxSyt.js +0 -2
  684. package/dist/webcomponents/p-DDEz7_ad.js +0 -1
  685. package/dist/webcomponents/p-DJzjeg3x.js +0 -1
  686. package/dist/webcomponents/p-DNt_pMGt.js +0 -1
  687. package/dist/webcomponents/p-DPiTQ9dr.js +0 -1
  688. package/dist/webcomponents/p-DQuL1Twl.js +0 -1
  689. package/dist/webcomponents/p-DVnVdicA.js +0 -1
  690. package/dist/webcomponents/p-DZfxGQ1I.js +0 -1
  691. package/dist/webcomponents/p-DgfzEZny.js +0 -1
  692. package/dist/webcomponents/p-DjGTAHJM.js +0 -1
  693. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  694. package/dist/webcomponents/p-DuBhW0xA.js +0 -1
  695. package/dist/webcomponents/p-M61ygz6l.js +0 -1
  696. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  697. package/dist/webcomponents/p-U30-0DaA.js +0 -1
  698. package/dist/webcomponents/p-ZE1NEnP3.js +0 -1
  699. package/dist/webcomponents/p-a46730eb.entry.js +0 -1
  700. package/dist/webcomponents/p-a4dd3835.entry.js +0 -1
  701. package/dist/webcomponents/p-ad85bd0d.entry.js +0 -1
  702. package/dist/webcomponents/p-af2c38f7.entry.js +0 -1
  703. package/dist/webcomponents/p-afa54e39.entry.js +0 -1
  704. package/dist/webcomponents/p-cNABKY0P.js +0 -1
  705. package/dist/webcomponents/p-cab175e9.entry.js +0 -1
  706. package/dist/webcomponents/p-ceefc483.entry.js +0 -1
  707. package/dist/webcomponents/p-d-_oUZor.js +0 -1
  708. package/dist/webcomponents/p-d1331dbb.entry.js +0 -1
  709. package/dist/webcomponents/p-d2dc6f22.entry.js +0 -20
  710. package/dist/webcomponents/p-d9c70010.entry.js +0 -1
  711. package/dist/webcomponents/p-dd05cce1.entry.js +0 -1
  712. package/dist/webcomponents/p-e00aeb33.entry.js +0 -1
  713. package/dist/webcomponents/p-e1c5ee0a.entry.js +0 -1
  714. package/dist/webcomponents/p-ea8dd3e7.entry.js +0 -1
  715. package/dist/webcomponents/p-f389c2aa.entry.js +0 -1
  716. package/dist/webcomponents/p-f8b205f7.entry.js +0 -1
  717. package/dist/webcomponents/p-l3o3Ndc0.js +0 -1
  718. package/dist/webcomponents/p-o_73WSki.js +0 -1
  719. package/dist/webcomponents/p-um3YdOwW.js +0 -1
  720. package/dist/webcomponents/p-vb3fTJEZ.js +0 -1
  721. package/dist/webcomponents/p-wqUvt1PB.js +0 -1
@@ -1,12 +1,11 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
3
  import { isEmptyObject } from "../../../utils/utils";
4
4
  export class AdditionalQuestionsDetails {
5
5
  render() {
6
- var _a, _b;
7
- if (isEmptyObject(this.additionalQuestions))
6
+ if (!this.additionalQuestions || isEmptyObject(this.additionalQuestions))
8
7
  return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
8
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: this.additionalQuestions.business_revenue }), h(DetailItem, { title: "Business Payment Volume", value: this.additionalQuestions.business_payment_volume }))))));
10
9
  }
11
10
  static get is() { return "additional-questions-details"; }
12
11
  static get properties() {
@@ -11,7 +11,6 @@ var RENDER_STATES;
11
11
  export class BusinessDetailsCore {
12
12
  constructor() {
13
13
  this.renderState = RENDER_STATES.LOADING;
14
- this.errorMessage = 'An error ocurred.';
15
14
  }
16
15
  async componentWillLoad() {
17
16
  if (this.getBusiness) {
@@ -43,7 +42,7 @@ export class BusinessDetailsCore {
43
42
  if (this.renderState === RENDER_STATES.ERROR) {
44
43
  return h(StyledHost, null, ErrorState(this.errorMessage));
45
44
  }
46
- return (h(StyledHost, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })));
45
+ return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
47
46
  }
48
47
  static get is() { return "business-details-core"; }
49
48
  static get properties() {
@@ -1,4 +1,4 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { ErrorState } from "../../ui-components/details/utils";
3
3
  import { BusinessService } from "../../api/services/business.service";
4
4
  import { makeGetBusiness } from "../../actions/business/get-business";
@@ -6,6 +6,13 @@ import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/Component
6
6
  import JustifiAnalytics from "../../api/Analytics";
7
7
  import { checkPkgVersion } from "../../utils/check-pkg-version";
8
8
  export class BusinessDetails {
9
+ constructor() {
10
+ this.errorMessage = null;
11
+ this.handleErrorEvent = event => {
12
+ this.errorMessage = event.detail.message;
13
+ this.errorEvent.emit(event.detail);
14
+ };
15
+ }
9
16
  componentWillLoad() {
10
17
  checkPkgVersion();
11
18
  this.analytics = new JustifiAnalytics(this);
@@ -34,9 +41,9 @@ export class BusinessDetails {
34
41
  }
35
42
  render() {
36
43
  if (this.errorMessage) {
37
- return h(Host, null, ErrorState(this.errorMessage));
44
+ return ErrorState(this.errorMessage);
38
45
  }
39
- return (h(Host, null, h("business-details-core", { getBusiness: this.getBusiness })));
46
+ return (h("business-details-core", { getBusiness: this.getBusiness, "onError-event": this.handleErrorEvent }));
40
47
  }
41
48
  static get is() { return "justifi-business-details"; }
42
49
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,41 @@
1
+ import { h } from "@stencil/core";
2
+ import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
+ import { snakeCaseToHumanReadable } from "../../../utils/utils";
4
+ export class CoreInfoDetails {
5
+ render() {
6
+ if (!this.business) {
7
+ return null;
8
+ }
9
+ ;
10
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Core Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: this.business.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: this.business.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable(this.business.classification) }), h(DetailItem, { title: "Industry", value: this.business.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: this.business.tax_id }), h(DetailItem, { title: "Website URL", value: this.business.website_url }), h(DetailItem, { title: "Email Address", value: this.business.email }), h(DetailItem, { title: "Phone Number", value: this.business.phone }))))));
11
+ }
12
+ static get is() { return "core-info-details"; }
13
+ static get properties() {
14
+ return {
15
+ "business": {
16
+ "type": "unknown",
17
+ "attribute": "business",
18
+ "mutable": false,
19
+ "complexType": {
20
+ "original": "Business",
21
+ "resolved": "Business",
22
+ "references": {
23
+ "Business": {
24
+ "location": "import",
25
+ "path": "../../../api/Business",
26
+ "id": "src/api/Business.ts::Business"
27
+ }
28
+ }
29
+ },
30
+ "required": false,
31
+ "optional": false,
32
+ "docs": {
33
+ "tags": [],
34
+ "text": ""
35
+ },
36
+ "getter": false,
37
+ "setter": false
38
+ }
39
+ };
40
+ }
41
+ }
@@ -1,12 +1,12 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
3
  import { isEmptyObject } from "../../../utils/utils";
4
4
  export class LegalAddressDetails {
5
5
  render() {
6
6
  var _a, _b, _c, _d, _e, _f, _g;
7
- if (isEmptyObject(this.legalAddress))
7
+ if (!this.legalAddress || isEmptyObject(this.legalAddress))
8
8
  return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
9
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
10
10
  }
11
11
  static get is() { return "legal-address-details"; }
12
12
  static get properties() {
@@ -1,12 +1,12 @@
1
- import { Host, h } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
3
  import { formatMediumDate, isEmptyObject } from "../../../utils/utils";
4
4
  export class JustifiRepresentativeDetails {
5
5
  render() {
6
6
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
7
- if (isEmptyObject(this.representative))
7
+ if (!this.representative || isEmptyObject(this.representative))
8
8
  return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
9
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
10
10
  }
11
11
  static get is() { return "representative-details"; }
12
12
  static get properties() {
@@ -30,7 +30,7 @@ export class BusinessTermsConditionsFormStep {
30
30
  this.formLoading.emit(true);
31
31
  try {
32
32
  const payload = this.termsPayload;
33
- const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload });
33
+ const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload, authToken: this.authToken });
34
34
  this.handleResponse(response, onSuccess);
35
35
  }
36
36
  catch (error) {
@@ -108,7 +108,7 @@ export class BusinessTermsConditionsFormStep {
108
108
  return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
109
109
  }
110
110
  render() {
111
- return (h("form", { key: '6bba766ba11512058470225103aa2afff318ab99' }, h("fieldset", { key: '318755ea4fc772e61ac9f8318ccf95494f71bf73' }, h("legend", { key: 'e5a268e9be8ed0a69eb8eed23ffc742228218685', part: heading2 }, "Terms and Conditions"), h("hr", { key: '100eed0ad0c8e7a5c652640c337d899be6f2131a' }), h("div", { key: '08a878a7fe9cd7b8ccb2217932d5d3a3b53bb0c9' }, h("p", { key: 'a5b3ddc655c511187327028229a893f7ea06c7ca' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '5c021ef8a8bce686a615a7478a4312f842eb4248' }), h("div", { key: '6b3172972459d33e70e6bf4b8c2c9d93a843b7f4', class: "row-gy-3" }, h("div", { key: '1e99c4eab265b0b0f370a02ddf76b15d27db961c', class: "col-12" }, h("form-control-checkbox", { key: '4c974e3fd58f34000fa70d38d3da312f9bd1fe0d', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
111
+ return (h("form", { key: 'c1ca0ecd364a999e7525e9ac3da82e874a8784e8' }, h("fieldset", { key: 'a77178a38044c458d8dbd31a7e1aeb3f1a34c968' }, h("legend", { key: '7e933517fca8d54095466715bf1f0485625be74f', part: heading2 }, "Terms and Conditions"), h("hr", { key: '1c1da0b7378c51ad2be5efc0e51dedd3ed178c8f' }), h("div", { key: 'bc37aa5162dddc8ade4316b5f24deb1d4a4b6f86' }, h("p", { key: 'aef3d0c9186845e3f44b8e1906c405647f489b53' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '2a6a480916cc0c4bf35d96c96c3f0250e87149cb' }), h("div", { key: '2e3bed3a57bcb026152fcdc82debab0e667f8148', class: "row-gy-3" }, h("div", { key: '3243c1819e4e61921421467271b2a4d2a89e73d4', class: "col-12" }, h("form-control-checkbox", { key: '20b9b72809148ef390a6da7d9f5bc216436d34a5', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
112
112
  }
113
113
  static get is() { return "justifi-business-terms-conditions-form-step"; }
114
114
  static get properties() {
@@ -1,7 +1,7 @@
1
1
  import { mixed, string } from "yup";
2
2
  import StateOptions from "../../../utils/state-options";
3
- import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions } from "../utils/business-form-options";
4
- import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber } from "./schema-helpers";
3
+ import { businessServiceReceivedOptions, recurringPaymentsOptions, seasonalBusinessOptions, bankAccountTypeOptions, businessClassificationOptions, } from "../utils/business-form-options";
4
+ import { numbersOnlyRegex, phoneRegex, poBoxRegex, ssnRegex, transformEmptyString, urlRegex, validateRoutingNumber, } from "./schema-helpers";
5
5
  import { EntityDocumentType } from "../../../api/Document";
6
6
  // Common Validations
7
7
  export const emailValidation = string()
@@ -55,7 +55,7 @@ export const identityTitleValidation = string()
55
55
  .max(50, 'Title must be less than 50 characters')
56
56
  .transform(transformEmptyString);
57
57
  export const dobValidation = (role) => {
58
- return (string()
58
+ return string()
59
59
  .test('min', 'Enter a valid date', (value) => {
60
60
  const date = new Date(value);
61
61
  const minDate = new Date('1902-01-01');
@@ -67,7 +67,7 @@ export const dobValidation = (role) => {
67
67
  minAgeDate.setFullYear(minAgeDate.getFullYear() - 18);
68
68
  return date <= minAgeDate;
69
69
  })
70
- .transform(transformEmptyString));
70
+ .transform(transformEmptyString);
71
71
  };
72
72
  export const ssnValidation = string()
73
73
  .matches(ssnRegex, 'Enter valid SSN')
@@ -102,7 +102,7 @@ export const cityValidation = string()
102
102
  .max(50, 'City must be less than 50 characters')
103
103
  .transform(transformEmptyString);
104
104
  export const stateValidation = string()
105
- .oneOf(StateOptions.map((option) => option.value), 'Select state')
105
+ .oneOf(StateOptions.map((option) => option.value), 'Enter a 2-letter state abbreviation, such as CA')
106
106
  .transform(transformEmptyString);
107
107
  export const postalValidation = string()
108
108
  .matches(/^[0-9]{5}$/, 'Enter valid postal code')
@@ -130,8 +130,7 @@ export const recurringPaymentsPercentageValidation = string()
130
130
  export const seasonalBusinessValidation = string()
131
131
  .oneOf(seasonalBusinessOptions.map((option) => option.value), 'Select seasonal business')
132
132
  .transform(transformEmptyString);
133
- export const otherPaymentDetailsValidation = string()
134
- .transform(transformEmptyString);
133
+ export const otherPaymentDetailsValidation = string().transform(transformEmptyString);
135
134
  // Bank Account Validations
136
135
  export const bankNameValidation = string()
137
136
  .min(2, 'Name must be at least 2 characters')
@@ -31,10 +31,10 @@ export class BankAccountForm {
31
31
  return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: 'b6cdf5a9320d92a5390daaa0a5218274f2dfc178' }, h(BankAccountFormSkeleton, { key: '286fcc38a26820d166ced0bc886143ed3d880da4', isReady: this.isReady }), h("div", { key: '041fcacff70d7cdfc0c8f41258bd9db18703e4c1', class: "container-fluid p-0", style: {
34
+ return (h(Host, { key: 'cdddf967e7142731f3b5aef31bfc3d004ce97733' }, h(BankAccountFormSkeleton, { key: '5eafa58bd31bbbd5ff5ca90a036fc696f7bd05fb', isReady: this.isReady }), h("div", { key: 'c8486e0337df9a61bd1979014f3de53eef22b071', class: "container-fluid p-0", style: {
35
35
  opacity: this.isReady ? '1' : '0',
36
36
  height: this.isReady ? 'auto' : '0',
37
- } }, h("div", { key: '94dc0eb0d79b40ade96e1961611e3e7a8eef20ea', class: "row mb-3" }, h("iframe-input", { key: '41c82b772e7873a45409e35ed56dfea16c20c2ee', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '1c95618a50e2d36a3a9a3a7b691ae0dfa6a09936', class: "row" }, h("iframe-input", { key: '28a4dde70c8f55b4f6bf6ce2d3beee6acbebbc0b', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
37
+ } }, h("div", { key: '3db2146e4d770c024efab6e777dbfa4ace26f23a', class: "row mb-3" }, h("iframe-input", { key: '5f9da4873119c1a1e771c7663b98e283766a37a1', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '7ed20c940afd5ffc4348e4102a4cfd351d8e2198', class: "row" }, h("iframe-input", { key: '0667de245764f1d9181682beb674c4a376447a68', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
38
38
  }
39
39
  static get is() { return "bank-account-form"; }
40
40
  static get states() {
@@ -35,13 +35,14 @@ export class BillingForm {
35
35
  this.formController.setInitialValues(fields);
36
36
  }
37
37
  async validate() {
38
- let isValid = await this.formController.validate();
39
- return { isValid: isValid };
38
+ const isValid = await this.formController.validate();
39
+ const errors = this.formController.errors.getValue();
40
+ return { isValid, errors };
40
41
  }
41
42
  render() {
42
43
  const billingFormDefaultValue = this.formController.getInitialValues();
43
44
  const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
44
- return (h(Host, { key: '0df4ecdee8c32874325b83dd79586c7449ce6d93' }, h("div", { key: '6d5b45f278a7c69a76fe0895036ab37b810d0262', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: 'bc8f57f42134859e28dd523500ef874101198076', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '908b8265b028caaa01314bc56bdbfe550b632b94' }, h("fieldset", { key: 'af3e34fca100b0e0c3f13ef3af3a88009859e277' }, this.legend && h("legend", { key: '15cfcc98681d4386afad33d68910f7732e88b9a9' }, this.legend), h("div", { key: 'de372fbe06a6da1f512170a6f79f27c96499d790', class: "row gy-3" }, h("div", { key: 'bb4aab9d17a7bed7cb09e4306158f5e0ff248b8f', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'f8e086504b6f3fac0e4bd2a0c0dee5e2f2c3328a', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9a5105e1183a61c55639c8153a65169fb65998c5', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '4802e1462b0b1f433c77f817b733611332b18711', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '3edf7b2390c2fa7d0cadd75f9102a63f88a3685b', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'bec348d7030fa44e5a627ebc3f67ed9689a4a5b9', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '066d141b9529aae210fc2585bd2fd386e5b82120', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '602587fcca0666d7070e5cd0316ed1c541953337', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '125aeec26f292763abefe1c3a1a3070a2a8b4c7c', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'fb8d46d217d452809ee199ef8640e93714a91e85', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: 'b622a69cb724ed15d2fe0fb2a9039635bc96a12e', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: 'a094770db85d5a65524909b5c4ec532fca167a95', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
45
+ return (h(Host, { key: 'ffffb2d8a4571222645d3c47eb1e2286b8597140' }, h("div", { key: '69b4f6c623cacbf32a30a9b9f23c3de427835c25', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '96c0781a9b3dd7c5ef0b75ac8667664fee0bd95e', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '97380a90146a9732594f1c356fab952089280f99' }, h("fieldset", { key: 'fd8bbea485c10633f1d8cca62b222a8abb0d022f' }, this.legend && h("legend", { key: '8febee534a2d055093309e8f8f06078b0b35f4e4' }, this.legend), h("div", { key: '16ac8abe899cdb964d83322fa74cb00f737ab338', class: "row gy-3" }, h("div", { key: '866f73c45b807aeeea4e6addf4de5f2d3a1a232d', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '1734b2aac3eb0508f9ae2e4bf41836fc5dd71cad', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '569c0dc60b47d3e9077af401b720d7777c903bde', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '74406a7f4efde53a41141a218d246408c4807fc8', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'a7f3b7f137b0dd6a92cce6999ef65f13bcff4a31', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '8b6d28170c44af6b7701499a8a4626749d4cd36d', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '3a9031a0ddbea7e1020c420cdd6811ea9c86b9e4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '730b395bb97c349a63f669669830cbce6ba86f83', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '7998420d30b1957a086303862f7200f20541ead2', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'b94b623a26891646957f25e59cb03038a989eabf', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '7b0d6eae7eb90f4b33b3e73f920b6ea25920f809', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '703e429c7999f5cc143c5648bd9fbdc4f5bb6ee9', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
45
46
  }
46
47
  static get is() { return "justifi-billing-form"; }
47
48
  static get properties() {
@@ -183,7 +184,7 @@ export class BillingForm {
183
184
  },
184
185
  "validate": {
185
186
  "complexType": {
186
- "signature": "() => Promise<{ isValid: boolean; }>",
187
+ "signature": "() => Promise<{ isValid: boolean; errors: any; }>",
187
188
  "parameters": [],
188
189
  "references": {
189
190
  "Promise": {
@@ -191,7 +192,7 @@ export class BillingForm {
191
192
  "id": "global::Promise"
192
193
  }
193
194
  },
194
- "return": "Promise<{ isValid: boolean; }>"
195
+ "return": "Promise<{ isValid: boolean; errors: any; }>"
195
196
  },
196
197
  "docs": {
197
198
  "text": "",
@@ -35,10 +35,10 @@ export class CardForm {
35
35
  return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: '3d28e96f020196a359a359507237b50dd9fed020' }, h(CardFormSkeleton, { key: 'ee07eb10acf142fcaab1398278e335df49f1abe9', isReady: this.isReady }), h("div", { key: 'bfce475f392cbb2bad3fd1c76f16c6e6a6718c1f', class: "container-fluid p-0", style: {
38
+ return (h(Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
39
39
  opacity: this.isReady ? '1' : '0',
40
40
  height: this.isReady ? 'auto' : '0',
41
- } }, h("div", { key: 'e8517852800a9a165e61308f8d1cf875a87c021e', class: "mb-3" }, h("iframe-input", { key: '6efe224b7f4a2f63eec601d3e48c454d78c30300', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'cb6df3c5d9788a22c26255d1fe94331544730d24', class: "row" }, h("div", { key: '895943798b131da4215b24da822f7109e045e05b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'ebea71cabe9f783734f924cfd0b03797cd203ce7', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: 'a65042ba66ca4a2a6f520147d316eb20f82369ea', class: "col-4 align-content-end" }, h("iframe-input", { key: '8ef921245a3075ba36c310955bea671b71aca658', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'e37d637b078a36736ba698d0d96465e138fcf5ab', class: "col-4 align-content-end" }, h("iframe-input", { key: 'df20adb17524ea29f55e1c223267a9f0294b6062', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
41
+ } }, h("div", { key: '036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9', class: "mb-3" }, h("iframe-input", { key: '9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'cd54e4a30da50cfe5151b557fe1d92ebb483ad7e', class: "row" }, h("div", { key: '6b3e84079d606a6ffd5580deae0d6e4563d4c7ef', class: "col-4 align-content-end" }, h("iframe-input", { key: '9ea2ad1c93ca90bbb4bc7a4c83a72e8f4cc9da61', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '9478f77f64decfcdfd77f888d54cb37f46ad8ab7', class: "col-4 align-content-end" }, h("iframe-input", { key: '43191d41eb743e0c509236ea316c1afb180b8fbb', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '65599647fc750e6c62fb2866190ffa87689d8a5b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'df367f3143aaff25ba9147698090ccbcea902cbf', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
42
42
  }
43
43
  static get is() { return "card-form"; }
44
44
  static get states() {
@@ -4,10 +4,17 @@ import { CheckoutService } from "../../api/services/checkout.service";
4
4
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api/ComponentError";
5
5
  import JustifiAnalytics from "../../api/Analytics";
6
6
  import { checkPkgVersion } from "../../utils/check-pkg-version";
7
+ import checkoutStore from "../../store/checkout.store";
7
8
  export class Checkout {
8
9
  constructor() {
9
10
  this.errorMessage = '';
10
11
  }
12
+ connectedCallback() {
13
+ if (this.authToken && this.checkoutId) {
14
+ checkoutStore.checkoutId = this.checkoutId;
15
+ checkoutStore.authToken = this.authToken;
16
+ }
17
+ }
11
18
  componentWillLoad() {
12
19
  checkPkgVersion();
13
20
  this.analytics = new JustifiAnalytics(this);
@@ -40,6 +47,8 @@ export class Checkout {
40
47
  }
41
48
  }
42
49
  propChanged() {
50
+ checkoutStore.authToken = this.authToken;
51
+ checkoutStore.checkoutId = this.checkoutId;
43
52
  this.initializeGetCheckout();
44
53
  }
45
54
  async fillBillingForm(fields) {
@@ -50,11 +59,11 @@ export class Checkout {
50
59
  return { isValid };
51
60
  }
52
61
  render() {
53
- return (h("justifi-checkout-core", { key: 'c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
62
+ return (h("justifi-checkout-core", { key: '3aaf3ff84469870995456a56ac4c2b5806a23802', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: el => {
54
63
  if (el) {
55
64
  this.checkoutCoreRef = el;
56
65
  }
57
- } }, h("div", { key: '7a4be7220e5eb199f94c5086c23e10dce68d4854', slot: "insurance" }, h("slot", { key: 'f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc', name: "insurance" }))));
66
+ } }, h("div", { key: 'ce9694f701ae7123a4ee5fbae76e9bbef1f7250c', slot: "insurance" }, h("slot", { key: '2049b12cfc42cc42c46be83e6305317e97ae5cba', name: "insurance" }))));
58
67
  }
59
68
  static get is() { return "justifi-checkout"; }
60
69
  static get properties() {
@@ -23,9 +23,18 @@ export class NewPaymentMethod {
23
23
  if (!this.paymentMethodFormRef || !this.billingFormRef)
24
24
  return;
25
25
  try {
26
- const isValid = await this.validate();
26
+ const { isValid, errors } = await this.validate();
27
27
  if (!isValid || !insuranceValidation.isValid) {
28
- return { validationError: true };
28
+ // get propety value from first property in errors object
29
+ const message = `${Object.values(errors)[0] || 'Validation error'}`;
30
+ return {
31
+ validationError: true,
32
+ error: {
33
+ code: 'validation_error',
34
+ message,
35
+ decline_code: undefined
36
+ }
37
+ };
29
38
  }
30
39
  const tokenizeResponse = await this.tokenize();
31
40
  if (tokenizeResponse.error) {
@@ -46,7 +55,9 @@ export class NewPaymentMethod {
46
55
  async validate() {
47
56
  const billingFormValidation = await this.billingFormRef.validate();
48
57
  const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
49
- return billingFormValidation.isValid && paymentMethodFormValidation.isValid;
58
+ const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
59
+ const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
60
+ return { isValid, errors };
50
61
  }
51
62
  async tokenize() {
52
63
  try {
@@ -76,7 +87,7 @@ export class NewPaymentMethod {
76
87
  }
77
88
  render() {
78
89
  var _a, _b;
79
- return (h(Host, { key: 'b80791923e2276322ebe0ce3b25b2073beac188d', class: "payment-method" }, h("div", { key: '47dc555bc135d4562958cf371ca3c8b80ee7236d', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'e485347f39fa4b7d46d64e231931d6bdf541687c', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
90
+ return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
80
91
  }
81
92
  static get is() { return "justifi-new-payment-method"; }
82
93
  static get properties() {
@@ -338,7 +349,7 @@ export class NewPaymentMethod {
338
349
  },
339
350
  "validate": {
340
351
  "complexType": {
341
- "signature": "() => Promise<boolean>",
352
+ "signature": "() => Promise<{ isValid: boolean; errors: any; }>",
342
353
  "parameters": [],
343
354
  "references": {
344
355
  "Promise": {
@@ -346,7 +357,7 @@ export class NewPaymentMethod {
346
357
  "id": "global::Promise"
347
358
  }
348
359
  },
349
- "return": "Promise<boolean>"
360
+ "return": "Promise<{ isValid: boolean; errors: any; }>"
350
361
  },
351
362
  "docs": {
352
363
  "text": "",
@@ -16,7 +16,7 @@ export class PaymentMethodOptions {
16
16
  this.paymentMethodsChanged();
17
17
  }
18
18
  paymentMethodsChanged() {
19
- var _a, _b;
19
+ var _a;
20
20
  this.paymentMethodOptions = this.savedPaymentMethods
21
21
  .map((paymentMethod) => new PaymentMethodOption(paymentMethod))
22
22
  .filter((paymentMethod) => {
@@ -24,9 +24,6 @@ export class PaymentMethodOptions {
24
24
  return ((this.showCard || paymentMethod.type !== PaymentMethodTypes.card) &&
25
25
  (this.showAch || paymentMethod.type !== PaymentMethodTypes.bankAccount));
26
26
  });
27
- if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle' && !this.insuranceToggled) {
28
- this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzle }));
29
- }
30
27
  if (this.showCard) {
31
28
  this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
32
29
  }
@@ -34,7 +31,7 @@ export class PaymentMethodOptions {
34
31
  this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
35
32
  }
36
33
  if (!this.selectedPaymentMethodId) {
37
- this.selectedPaymentMethodId = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
34
+ this.selectedPaymentMethodId = (_a = this.paymentMethodOptions[0]) === null || _a === void 0 ? void 0 : _a.id;
38
35
  }
39
36
  }
40
37
  paymentMethodOptionSelected(event) {
@@ -46,16 +43,14 @@ export class PaymentMethodOptions {
46
43
  }
47
44
  async validate() {
48
45
  const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
49
- const isValid = await newPaymentMethodElement.validate();
50
- return { isValid: isValid };
46
+ return newPaymentMethodElement.validate();
51
47
  }
52
48
  render() {
53
49
  var _a;
54
- return (h(Host, { key: '506450161ed363330132c2bfa99a6a7729e94778' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
50
+ return (h(Host, { key: '2d3dc8bc98cea3efbcf342a31b6883f30099b031' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
55
51
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
56
52
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
57
53
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
58
- const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
59
54
  if (newCard || newBankAccount) {
60
55
  return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, "show-card": this.showCard, "show-ach": this.showAch, paymentMethodGroupId: this.paymentMethodGroupId, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, ref: (el) => {
61
56
  if (isSelected) {
@@ -63,13 +58,6 @@ export class PaymentMethodOptions {
63
58
  }
64
59
  } }));
65
60
  }
66
- else if (sezzle) {
67
- return (h("justifi-sezzle-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
68
- if (isSelected) {
69
- this.selectedPaymentMethodOptionRef = el;
70
- }
71
- } }));
72
- }
73
61
  else if (this.showSavedPaymentMethods) {
74
62
  return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
75
63
  if (isSelected) {
@@ -120,25 +108,6 @@ export class PaymentMethodOptions {
120
108
  "setter": false,
121
109
  "reflect": false
122
110
  },
123
- "showBnpl": {
124
- "type": "boolean",
125
- "attribute": "show-bnpl",
126
- "mutable": false,
127
- "complexType": {
128
- "original": "boolean",
129
- "resolved": "boolean",
130
- "references": {}
131
- },
132
- "required": false,
133
- "optional": false,
134
- "docs": {
135
- "tags": [],
136
- "text": ""
137
- },
138
- "getter": false,
139
- "setter": false,
140
- "reflect": false
141
- },
142
111
  "showSavedPaymentMethods": {
143
112
  "type": "boolean",
144
113
  "attribute": "show-saved-payment-methods",
@@ -402,7 +371,7 @@ export class PaymentMethodOptions {
402
371
  },
403
372
  "validate": {
404
373
  "complexType": {
405
- "signature": "() => Promise<{ isValid: boolean; }>",
374
+ "signature": "() => Promise<{ isValid: boolean; errors?: any; }>",
406
375
  "parameters": [],
407
376
  "references": {
408
377
  "Promise": {
@@ -414,7 +383,7 @@ export class PaymentMethodOptions {
414
383
  "id": "global::HTMLJustifiNewPaymentMethodElement"
415
384
  }
416
385
  },
417
- "return": "Promise<{ isValid: boolean; }>"
386
+ "return": "Promise<{ isValid: boolean; errors?: any; }>"
418
387
  },
419
388
  "docs": {
420
389
  "text": "",
@@ -118,7 +118,7 @@ export class CheckoutsListCore {
118
118
  return !this.showEmptyState && !this.showErrorState && !this.loading;
119
119
  }
120
120
  render() {
121
- return (h(TableWrapper, { key: '79f36b8dd358285868187892962f5e2138942fe8' }, h(TableComponent, { key: 'e48c644e425ac45ab27b92548bc49af35b599245' }, h(TableHead, { key: '6d47b68c0a74f0eff3146dfc4720b0cc0f6fc24d' }, h(TableHeadRow, { key: 'a3660ae82b53ba7dead2e577fd8d573426935dc6' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '08fbd465bae0afa3de8d472c84e0410150509673' }, h(TableLoadingState, { key: 'ba7d778f9fc029166d6228fe9b1a8f1598a68c5a', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '312b176371526658852b74ae228524695f5c1947', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'a24680fb1d681397a3cb266ec34ab5c9310dfa64', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '503ffd707d958a353a18a6f06d1280a0cb01c741' }, h(TableFootRow, { key: '250fcfc3961881ab460221e5e0160d5b6d35e5c3' }, h(TableFootCell, { key: '2631d54b49bbee1502e5412cd9303d7d67746525', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'd7bb27501b62a1089090b06c82b2a2c328a2e0b6', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
121
+ return (h(TableWrapper, { key: 'c496328d1840fb1f823f233c04c78525b5f12553' }, h(TableComponent, { key: 'f994cfed9bf75a299fc94dd22306911d84b44541' }, h(TableHead, { key: '0ffb6ce97ebe1a35eb0143b43767223d844a70e0' }, h(TableHeadRow, { key: 'd063eaafc44bf75be0de5463a1f9b2789ec8b76e' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '624a316c1631070a999c48342e71c55207b51be3' }, h(TableLoadingState, { key: '0f7444acf626537bf2179fdb64a435550bcf20d3', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ea68f85498d3bcbb44c8d9158d5cc6a228867e6c', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'db72f0190431182f410f246ad00fceb51901fd66', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '855184d90f85a1dd299c372b5b065e1af2151a99' }, h(TableFootRow, { key: 'b216c505abd04f79c0a733312fc5babdb35f2b77' }, h(TableFootCell, { key: 'efa83af6ee8543443826ccfe4efc230afc5d05f6', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '70664e167672a40b63c7fdd2603c52e8584870e9', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) }))))))));
122
122
  }
123
123
  static get is() { return "checkouts-list-core"; }
124
124
  static get properties() {
@@ -38,7 +38,7 @@ export class CheckoutsListFilters {
38
38
  }
39
39
  render() {
40
40
  const filterMenuParams = Object.assign({}, filterParams);
41
- return (h(StyledHost, { key: 'bcae6fee83117dde40a29ebcab8e85089bcdc37e' }, h("table-filters-menu", { key: '56c6a5d205836fe010917f0f0d978507cf227a3f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'c82691f9b863368a2b7523dc7d9d348c3fe2e776', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '9abbb01e53139ebd376a638400b199d88288b175', class: "p-2" }, h("form-control-select", { key: '3859777cf1f4ee451a65440a90dfe9e5f4a2f069', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '3c23d4b820ea2424d6ddc01e6952c8c46cd7d975', class: "p-2" }, h("form-control-select", { key: 'c376228f82419b959b3fefa6b32d25c584c6ea3b', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
41
+ return (h(StyledHost, { key: '75225e92af6efb7185735a63adf83ed7699452b1' }, h("table-filters-menu", { key: '086762cdd3a08d9221be6d374d4fd4d1b82c717f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: '23f5d2938419a2e92cbacf79d82a3893b6d256c2', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '43bf85dccce2233d59720defbea2897df488d880', class: "p-2" }, h("form-control-select", { key: '61c381ec0a205245311ba2e490a03b1e571d366b', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '4d01e881ca741302be99559209ab383aad4ee739', class: "p-2" }, h("form-control-select", { key: '82a1c6c3cfa9c77bc656aff5d7b0130436a54042', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
42
42
  }
43
43
  static get is() { return "justifi-checkouts-list-filters"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -61,7 +61,7 @@ export class CheckoutsList {
61
61
  }
62
62
  }
63
63
  render() {
64
- return (h(StyledHost, { key: 'c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7' }, h("checkouts-list-core", { key: '484d31c0b0434181b3bd69cb9c3b6810aa0f2983', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
64
+ return (h(StyledHost, { key: '0e9e50e18983dad43cfab19f2271678d3f5e6abd' }, h("checkouts-list-core", { key: '6f128cc756477ff64638625d9a9ff9a5b4533948', getCheckouts: this.getCheckouts, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
65
65
  }
66
66
  static get is() { return "justifi-checkouts-list"; }
67
67
  static get encapsulation() { return "shadow"; }
@@ -46,7 +46,7 @@ export class DisputeManagementCore {
46
46
  });
47
47
  }
48
48
  render() {
49
- return (h("div", { key: '5a8663529813801b730d449c835cfafb9924d860' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
49
+ return (h("div", { key: '6374c478bc8907019b48e1a53b0ecb2e171ab2e4' }, this.showDisputeResponseForm ? (h("justifi-dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("justifi-dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading }))));
50
50
  }
51
51
  static get is() { return "justifi-dispute-management-core"; }
52
52
  static get properties() {
@@ -43,7 +43,7 @@ export class DisputeManagement {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (h("justifi-dispute-management-core", { key: '5abe4c29317f9baa7fc40d82e2cd533de321d58f', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
46
+ return (h("justifi-dispute-management-core", { key: 'e19f33cd7106c3c44fb86faeef743c62ff9004b9', getDispute: this.getDispute, disputeId: this.disputeId, authToken: this.authToken, "onError-event": this.handleErrorEvent }));
47
47
  }
48
48
  static get is() { return "justifi-dispute-management"; }
49
49
  static get properties() {