@justifi/webcomponents 5.7.4-rc-01 → 5.7.5

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 (581) hide show
  1. package/dist/cjs/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
  2. package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
  3. package/dist/cjs/{Refund-BFE-2OxN.js → Refund-DN-yzFgy.js} +17 -8
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
  5. package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -19
  6. package/dist/cjs/{business-additional-questions-schema-C1Ot5vrv.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
  7. package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js} +10 -10
  8. package/dist/cjs/{business.service-BjlK8M6t.js → business.service-U2eLTrq9.js} +3 -3
  9. package/dist/cjs/{Analytics-CLEDjTfr.js → check-pkg-version-DuL7lRe2.js} +23 -23
  10. package/dist/cjs/{checkout.service-Bln6jCAj.js → checkout.service-DtMzeEwi.js} +3 -3
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
  12. package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
  13. package/dist/cjs/{dispute.service-Bo84yh33.js → dispute.service-CGVAs-5M.js} +3 -3
  14. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
  22. package/dist/cjs/{get-payment-details-OrAuseBX.js → get-payment-details-CdVEiscr.js} +4 -4
  23. package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-CoC0XYqj.js → get-subaccounts-fBIoOr7m.js} +4 -4
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +26 -0
  27. package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
  28. package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
  29. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +21 -20
  30. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
  31. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +46 -49
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
  34. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +67 -23
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  42. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  43. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  45. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  47. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  48. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  52. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  54. package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
  55. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -16
  56. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  57. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  59. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  60. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -15
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/cjs/{package-D89BDRKu.js → package-o4g7MDiy.js} +1 -1
  63. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  64. package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
  65. package/dist/cjs/{payment.service-C0t9DRcu.js → payment.service-DmpOOPu1.js} +3 -3
  66. package/dist/cjs/payments-list-core.cjs.entry.js +4 -4
  67. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  68. package/dist/cjs/{payout.service-DGeLS8BN.js → payout.service-BfO6L79f.js} +3 -3
  69. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
  70. package/dist/cjs/{schema-validations-CllkToCZ.js → schema-validations-BSeMee-o.js} +31 -31
  71. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
  73. package/dist/cjs/{terminal-orders-table-Dw6uHG1R.js → terminal-orders-table-DMjFmuxk.js} +3 -3
  74. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  75. package/dist/cjs/{terminal.service-Ck6PIO3G.js → terminal.service-h-LWztbo.js} +3 -3
  76. package/dist/cjs/terminals-list-core.cjs.entry.js +4 -4
  77. package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
  78. package/dist/cjs/webcomponents.cjs.js +1 -1
  79. package/dist/collection/api/Checkout.js +3 -1
  80. package/dist/collection/api/ComponentError.js +0 -2
  81. package/dist/collection/api/DisputeEvidenceDocument.js +4 -7
  82. package/dist/collection/api/Document.js +17 -8
  83. package/dist/collection/collection-manifest.json +1 -8
  84. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
  85. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  86. package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
  87. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  88. package/dist/collection/components/checkout/checkout.js +2 -11
  89. package/dist/collection/components/checkout/payment-method-options.js +33 -3
  90. package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
  91. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  92. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  93. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  94. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  95. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  96. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  97. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  98. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  99. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  100. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  101. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  104. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  105. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  106. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  107. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  108. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  109. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -10
  110. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  111. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  112. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  113. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  114. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  115. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  116. package/dist/collection/components/payments-list/payments-list.js +1 -1
  117. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  118. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  119. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  120. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  121. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  122. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  123. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  124. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  125. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  126. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  127. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  128. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -10
  129. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  130. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  131. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  132. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  133. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  134. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  135. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  136. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  139. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  140. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  141. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  142. package/dist/collection/ui-components/form/iframe-input.js +5 -10
  143. package/dist/docs.json +255 -786
  144. package/dist/esm/{Api-C3T8XYbb.js → Api-69eVlLFc.js} +1 -1
  145. package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
  146. package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
  147. package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
  148. package/dist/esm/{Refund-BKe90wSq.js → Refund-f_BCgcDa.js} +18 -9
  149. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  150. package/dist/esm/{badge-DHaTxWwu.js → badge-VWumlkvS.js} +1 -1
  151. package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
  152. package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -17
  153. package/dist/esm/{business-additional-questions-schema-D00MNMDJ.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
  154. package/dist/esm/business-details-core.entry.js +3 -3
  155. package/dist/esm/{business-identity-schema-pxSsAdgG.js → business-identity-schema-BsrgqgDl.js} +2 -2
  156. package/dist/esm/{business.service-BMABw2vX.js → business.service-BviUFOjP.js} +5 -5
  157. package/dist/esm/{button-5hc5r__m.js → button-BfT7Ex96.js} +1 -1
  158. package/dist/esm/{Analytics-B3nThWuq.js → check-pkg-version-phOwcSQM.js} +25 -25
  159. package/dist/esm/{checkout.service-jmweME4d.js → checkout.service-B8W_W-lc.js} +5 -5
  160. package/dist/esm/checkouts-list-core.entry.js +11 -11
  161. package/dist/esm/{checkouts-table-BS_UiHaT.js → checkouts-table-zIrBvmQp.js} +3 -3
  162. package/dist/esm/custom-popper_4.entry.js +8 -8
  163. package/dist/esm/{dispute.service-DWQ8DPZa.js → dispute.service-1e9677RK.js} +5 -5
  164. package/dist/esm/form-alert_5.entry.js +1 -1
  165. package/dist/esm/form-control-checkbox.entry.js +5 -5
  166. package/dist/esm/form-control-date.entry.js +4 -4
  167. package/dist/esm/{form-control-error-text-C93L7yFm.js → form-control-error-text-CYWqNNkG.js} +1 -1
  168. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  169. package/dist/esm/{form-control-help-text-p28euWGX.js → form-control-help-text-DMdU5_la.js} +1 -1
  170. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  171. package/dist/esm/form-control-monetary.entry.js +6 -6
  172. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  173. package/dist/esm/form-control-number.entry.js +5 -5
  174. package/dist/esm/form-control-radio.entry.js +3 -3
  175. package/dist/esm/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
  176. package/dist/esm/{get-payment-details-PSdVeuGc.js → get-payment-details-B5-Hzdrg.js} +6 -6
  177. package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
  178. package/dist/esm/{get-subaccounts-CownROrO.js → get-subaccounts-Cv7zn0lA.js} +7 -7
  179. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  180. package/dist/esm/{header-1-CUc5m0Ge.js → header-1-84nZCcj4.js} +1 -1
  181. package/dist/esm/{header-3-BXU3iN46.js → header-3-DpBr7qOY.js} +1 -1
  182. package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +23 -0
  183. package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
  184. package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
  185. package/dist/esm/{insurance-state-Br0fBMFI.js → insurance-state-BDLlv3CM.js} +1 -1
  186. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -13
  187. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
  188. package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
  189. package/dist/esm/justifi-business-details.entry.js +13 -13
  190. package/dist/esm/justifi-business-form.entry.js +19 -19
  191. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  192. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  193. package/dist/esm/justifi-checkout.entry.js +66 -22
  194. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  195. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  196. package/dist/esm/justifi-details.entry.js +2 -2
  197. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  198. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  199. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  200. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  201. package/dist/esm/justifi-order-terminals.entry.js +15 -15
  202. package/dist/esm/justifi-owner-form_3.entry.js +14 -14
  203. package/dist/esm/justifi-payment-details.entry.js +13 -13
  204. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  205. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  206. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  207. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  208. package/dist/esm/justifi-payments-list.entry.js +15 -15
  209. package/dist/esm/justifi-payout-details.entry.js +13 -13
  210. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  211. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  212. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  213. package/dist/esm/justifi-refund-payment.entry.js +15 -15
  214. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  215. package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -17
  216. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  217. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  218. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  219. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  220. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -18
  221. package/dist/esm/loader.js +1 -1
  222. package/dist/esm/{package-rzqedGq4.js → package-B0XIc_FO.js} +1 -1
  223. package/dist/esm/pagination-menu.entry.js +1 -1
  224. package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +14 -14
  226. package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
  227. package/dist/esm/{payment.service-u8UGq6gX.js → payment.service-BMbF1Svr.js} +5 -5
  228. package/dist/esm/payments-list-core.entry.js +12 -12
  229. package/dist/esm/{payments-status-BMqVM0kB.js → payments-status-_qXPu883.js} +1 -1
  230. package/dist/esm/{payments-table-BMIALfY5.js → payments-table-CrCdh5OV.js} +3 -3
  231. package/dist/esm/payout-details-core.entry.js +10 -10
  232. package/dist/esm/{payout.service-CXW3oJqI.js → payout.service-HKpmn5XB.js} +5 -5
  233. package/dist/esm/payouts-list-core.entry.js +12 -12
  234. package/dist/esm/{payouts-status-BGGBJaXG.js → payouts-status-C1XLgtWW.js} +1 -1
  235. package/dist/esm/{payouts-table-BNPc0Z6X.js → payouts-table-DIqsk6Oa.js} +3 -3
  236. package/dist/esm/{schema-validations-C7pC-de1.js → schema-validations-DLWfpHyI.js} +2 -2
  237. package/dist/esm/{skeleton-C0KgFH0Z.js → skeleton-CdD_FIeP.js} +1 -1
  238. package/dist/esm/{spinner-Dtab-HTx.js → spinner-DIlSUUzM.js} +1 -1
  239. package/dist/esm/{table-wp341KhD.js → table-DjsimZwr.js} +2 -2
  240. package/dist/esm/table-filters-menu.entry.js +3 -3
  241. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  242. package/dist/esm/{terminal-orders-table-CzEC1eXm.js → terminal-orders-table-BnXCVH7W.js} +7 -7
  243. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  244. package/dist/esm/{terminal.service-Cw0RbYs3.js → terminal.service-XpfOXoFl.js} +5 -5
  245. package/dist/esm/terminals-list-core.entry.js +11 -11
  246. package/dist/esm/{terminals-table-CcKZ_9re.js → terminals-table-CCLlefFA.js} +3 -3
  247. package/dist/esm/{utils-BGp_IJEa.js → utils-6CI1OiOE.js} +1 -1
  248. package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
  249. package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
  250. package/dist/esm/webcomponents.js +1 -1
  251. package/dist/module/Checkout.js +3 -3
  252. package/dist/module/Refund.js +17 -8
  253. package/dist/module/additional-statement.js +1 -1
  254. package/dist/module/bank-account-form2.js +2 -2
  255. package/dist/module/billing-form.js +3 -3
  256. package/dist/module/business-address-schema.js +1 -1
  257. package/dist/module/business-bank-account-form-step-core.js +3 -2
  258. package/dist/module/business-core-info-schema.js +1 -1
  259. package/dist/module/business-identity-schema.js +1 -1
  260. package/dist/module/button.js +1 -1
  261. package/dist/module/cancellation-policy.js +1 -1
  262. package/dist/module/card-form2.js +2 -2
  263. package/dist/module/{Analytics.js → check-pkg-version.js} +21 -21
  264. package/dist/module/checkout-core.js +38 -32
  265. package/dist/module/checkouts-list-core2.js +2 -2
  266. package/dist/module/custom-popper2.js +2 -2
  267. package/dist/module/customer-details.js +1 -1
  268. package/dist/module/dispute-management-core.js +1 -1
  269. package/dist/module/dispute-notification.js +1 -1
  270. package/dist/module/dispute-response-core.js +1 -1
  271. package/dist/module/dispute-response.js +2 -2
  272. package/dist/module/duplicate-charge.js +1 -1
  273. package/dist/module/electronic-evidence.js +1 -1
  274. package/dist/module/file-input-handler.js +4 -7
  275. package/dist/module/form-control-checkbox2.js +2 -2
  276. package/dist/module/form-control-date2.js +2 -2
  277. package/dist/module/form-control-file-v22.js +1 -1
  278. package/dist/module/form-control-file2.js +2 -2
  279. package/dist/module/form-control-monetary2.js +2 -2
  280. package/dist/module/form-control-number-masked2.js +2 -2
  281. package/dist/module/form-control-number.js +2 -2
  282. package/dist/module/form-control-radio2.js +2 -2
  283. package/dist/module/form-control-select2.js +2 -2
  284. package/dist/module/form-control-text2.js +2 -2
  285. package/dist/module/form-control-textarea2.js +2 -2
  286. package/dist/module/gross-payment-chart-core2.js +1 -1
  287. package/dist/module/hidden-input2.js +1 -1
  288. package/dist/module/iframe-input2.js +5 -5
  289. package/dist/module/justifi-business-details.js +1 -1
  290. package/dist/module/justifi-business-form.js +1 -1
  291. package/dist/module/justifi-checkout.js +99 -48
  292. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  293. package/dist/module/justifi-checkouts-list.js +2 -2
  294. package/dist/module/justifi-dispute-management.js +2 -2
  295. package/dist/module/justifi-gross-payment-chart.js +1 -1
  296. package/dist/module/justifi-order-terminals.js +3 -3
  297. package/dist/module/justifi-payment-details.js +1 -1
  298. package/dist/module/justifi-payment-provisioning.js +1 -1
  299. package/dist/module/justifi-payment-transactions-list.js +3 -3
  300. package/dist/module/justifi-payments-list-filters.js +3 -3
  301. package/dist/module/justifi-payments-list.js +2 -2
  302. package/dist/module/justifi-payout-details.js +1 -1
  303. package/dist/module/justifi-payout-transactions-list.js +3 -3
  304. package/dist/module/justifi-payouts-list-filters.js +3 -3
  305. package/dist/module/justifi-payouts-list.js +2 -2
  306. package/dist/module/justifi-refund-payment.js +1 -1
  307. package/dist/module/justifi-season-interruption-insurance.js +11 -9
  308. package/dist/module/justifi-sezzle-payment-method.js +1 -108
  309. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  310. package/dist/module/justifi-terminal-orders-list.js +2 -2
  311. package/dist/module/justifi-terminals-list-filters.js +2 -2
  312. package/dist/module/justifi-terminals-list.js +2 -2
  313. package/dist/module/justifi-tokenize-payment-method.js +40 -41
  314. package/dist/module/package.js +3 -3
  315. package/dist/module/parts.js +1 -1
  316. package/dist/module/payment-details-core2.js +8 -8
  317. package/dist/module/payment-method-options.js +51 -34
  318. package/dist/module/payments-list-core2.js +2 -2
  319. package/dist/module/payout-details-core2.js +3 -3
  320. package/dist/module/payouts-list-core2.js +2 -2
  321. package/dist/module/product-or-service.js +1 -1
  322. package/dist/module/refund-policy.js +1 -1
  323. package/dist/module/saved-payment-method.js +22 -2
  324. package/dist/module/schema-validations.js +1 -1
  325. package/dist/module/sezzle-payment-method.js +104 -0
  326. package/dist/module/shipping-details.js +1 -1
  327. package/dist/module/table-filters-menu2.js +2 -2
  328. package/dist/module/terminal-orders-list-core2.js +2 -2
  329. package/dist/module/terminal-quantity-selector2.js +1 -1
  330. package/dist/module/terminals-list-core2.js +2 -2
  331. package/dist/types/api/Checkout.d.ts +13 -14
  332. package/dist/types/api/ComponentError.d.ts +1 -3
  333. package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
  334. package/dist/types/api/Document.d.ts +2 -2
  335. package/dist/types/components/checkout/checkout.d.ts +0 -1
  336. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  337. package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
  338. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  339. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  340. package/dist/types/components.d.ts +22 -149
  341. package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
  342. package/dist/webcomponents/{p-a76e0f42.entry.js → p-0da7c7e5.entry.js} +1 -1
  343. package/dist/webcomponents/p-111535c9.entry.js +1 -0
  344. package/dist/webcomponents/{p-41dffb12.entry.js → p-18ddc883.entry.js} +1 -1
  345. package/dist/webcomponents/p-1ANZF89K.js +1 -0
  346. package/dist/webcomponents/p-1CYqfEKd.js +1 -0
  347. package/dist/webcomponents/{p-8bb3513f.entry.js → p-249d9a7f.entry.js} +1 -1
  348. package/dist/webcomponents/p-2b5a7776.entry.js +1 -0
  349. package/dist/webcomponents/{p-0fc4a0df.entry.js → p-30415c7f.entry.js} +1 -1
  350. package/dist/webcomponents/{p-7c6f2fad.entry.js → p-312b81a6.entry.js} +1 -1
  351. package/dist/webcomponents/{p-0ed08f7b.entry.js → p-36c99fce.entry.js} +1 -1
  352. package/dist/webcomponents/{p-9c6479a4.entry.js → p-39d3df56.entry.js} +1 -1
  353. package/dist/webcomponents/{p-bac895b4.entry.js → p-3bf842ea.entry.js} +1 -1
  354. package/dist/webcomponents/p-3dc2d47c.entry.js +1 -0
  355. package/dist/webcomponents/p-40bbb25c.entry.js +1 -0
  356. package/dist/webcomponents/{p-1a0f21d1.entry.js → p-40fb2439.entry.js} +1 -1
  357. package/dist/webcomponents/{p-acdf6a5f.entry.js → p-412805ce.entry.js} +1 -1
  358. package/dist/webcomponents/{p-783b70b5.entry.js → p-43c3a433.entry.js} +1 -1
  359. package/dist/webcomponents/{p-feea4bfd.entry.js → p-4ac8d9d4.entry.js} +4 -4
  360. package/dist/webcomponents/{p-1301a9ae.entry.js → p-5436c41f.entry.js} +1 -1
  361. package/dist/webcomponents/p-5576322e.entry.js +1 -0
  362. package/dist/webcomponents/p-59db70c0.entry.js +1 -0
  363. package/dist/webcomponents/p-600da1ee.entry.js +1 -0
  364. package/dist/webcomponents/{p-ef520bb8.entry.js → p-6daf7df0.entry.js} +1 -1
  365. package/dist/webcomponents/{p-9fe2281c.entry.js → p-7d324f45.entry.js} +1 -1
  366. package/dist/webcomponents/p-867a4a55.entry.js +1 -0
  367. package/dist/webcomponents/{p-6d5833b4.entry.js → p-878f26f7.entry.js} +1 -1
  368. package/dist/webcomponents/p-8c0162b3.entry.js +1 -0
  369. package/dist/webcomponents/p-8e201c63.entry.js +1 -0
  370. package/dist/webcomponents/p-91b5da99.entry.js +1 -0
  371. package/dist/webcomponents/{p-17727dd3.entry.js → p-95d99ffc.entry.js} +1 -1
  372. package/dist/webcomponents/p-989f51bc.entry.js +1 -0
  373. package/dist/webcomponents/{p-83037fd2.entry.js → p-9f9002c1.entry.js} +1 -1
  374. package/dist/webcomponents/p-B0XIc_FO.js +1 -0
  375. package/dist/webcomponents/{p-Dqx8L05_.js → p-B3AHoKpE.js} +1 -1
  376. package/dist/webcomponents/{p-CAdO_ZNx.js → p-BLWOT0S7.js} +1 -1
  377. package/dist/webcomponents/{p-Cf4TMP3p.js → p-BOQVwCyQ.js} +1 -1
  378. package/dist/webcomponents/{p-BaoXNxnc.js → p-BSl0X3r8.js} +1 -1
  379. package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
  380. package/dist/webcomponents/p-BdTK0wi9.js +1 -0
  381. package/dist/webcomponents/{p-BmgpToYI.js → p-Bgdp97Tl.js} +1 -1
  382. package/dist/webcomponents/{p-DhyQbCOq.js → p-BkDN6yJN.js} +1 -1
  383. package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
  384. package/dist/webcomponents/{p-Rx3SLAbu.js → p-Bnrk5pzA.js} +1 -1
  385. package/dist/webcomponents/p-BqoTJ9CO.js +1 -0
  386. package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
  387. package/dist/webcomponents/p-C5RuuShs.js +1 -0
  388. package/dist/webcomponents/p-C9oyC18r.js +1 -0
  389. package/dist/webcomponents/{p-C39xg5_f.js → p-CNSeavdR.js} +1 -1
  390. package/dist/webcomponents/p-CSO7ljYx.js +1 -0
  391. package/dist/webcomponents/{p-XTXkuHkQ.js → p-CYTPbCLN.js} +1 -1
  392. package/dist/webcomponents/p-CgEahdBL.js +1 -0
  393. package/dist/webcomponents/p-Ckf8pUs-.js +1 -0
  394. package/dist/webcomponents/{p-MNmf3fQL.js → p-Clv1feia.js} +1 -1
  395. package/dist/webcomponents/p-Cm9gh1Sz.js +1 -0
  396. package/dist/webcomponents/p-CraCsD1A.js +1 -0
  397. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  398. package/dist/webcomponents/{p-CdkOB2ri.js → p-Cw3BMq7G.js} +1 -1
  399. package/dist/webcomponents/{p-DHvfrLVU.js → p-D9lioyBA.js} +1 -1
  400. package/dist/webcomponents/p-DVnVdicA.js +1 -0
  401. package/dist/webcomponents/p-DgIkDBGX.js +1 -0
  402. package/dist/webcomponents/p-DniQ6yo6.js +1 -0
  403. package/dist/webcomponents/p-DpbCEDZ3.js +1 -0
  404. package/dist/webcomponents/p-Ds11n2AD.js +1 -0
  405. package/dist/webcomponents/p-DvuraFxP.js +1 -0
  406. package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
  407. package/dist/webcomponents/{p-C8Zhkgm5.js → p-JOSiCHl7.js} +1 -1
  408. package/dist/webcomponents/{p-CFpYbRwn.js → p-KoNvNGKV.js} +1 -1
  409. package/dist/webcomponents/p-SdntD1xf.js +1 -0
  410. package/dist/webcomponents/p-Zuu7wsNB.js +1 -0
  411. package/dist/webcomponents/p-a151a347.entry.js +1 -0
  412. package/dist/webcomponents/{p-02e39fe2.entry.js → p-a23dfac9.entry.js} +1 -1
  413. package/dist/webcomponents/{p-cdc71a77.entry.js → p-a38b3d9a.entry.js} +1 -1
  414. package/dist/webcomponents/p-a48f8ec2.entry.js +1 -0
  415. package/dist/webcomponents/{p-042c6784.entry.js → p-a7e9a1d1.entry.js} +1 -1
  416. package/dist/webcomponents/{p-9b1992ef.entry.js → p-a87c50de.entry.js} +1 -1
  417. package/dist/webcomponents/{p-de969ec7.entry.js → p-aa72125e.entry.js} +1 -1
  418. package/dist/webcomponents/p-b648fca4.entry.js +1 -0
  419. package/dist/webcomponents/p-b92737c4.entry.js +1 -0
  420. package/dist/webcomponents/p-bbf264c6.entry.js +1 -0
  421. package/dist/webcomponents/{p-60abac93.entry.js → p-bdbd0c8e.entry.js} +1 -1
  422. package/dist/webcomponents/p-be89720e.entry.js +1 -0
  423. package/dist/webcomponents/{p-03ed0703.entry.js → p-c18a5ebf.entry.js} +1 -1
  424. package/dist/webcomponents/p-c87WhXVB.js +1 -0
  425. package/dist/webcomponents/p-d3a2fa7e.entry.js +1 -0
  426. package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
  427. package/dist/webcomponents/{p-6286917e.entry.js → p-d768d814.entry.js} +1 -1
  428. package/dist/webcomponents/p-d7883a41.entry.js +1 -0
  429. package/dist/webcomponents/{p-4ed62ecf.entry.js → p-d9a9279b.entry.js} +1 -1
  430. package/dist/webcomponents/p-d9ae1fea.entry.js +1 -0
  431. package/dist/webcomponents/p-da872abc.entry.js +1 -0
  432. package/dist/webcomponents/p-db86c150.entry.js +1 -0
  433. package/dist/webcomponents/{p-d5ada96f.entry.js → p-dbcc1a8e.entry.js} +1 -1
  434. package/dist/webcomponents/p-e0345315.entry.js +1 -0
  435. package/dist/webcomponents/{p-6f6d7a87.entry.js → p-e21ba107.entry.js} +1 -1
  436. package/dist/webcomponents/p-e2867ef6.entry.js +1 -0
  437. package/dist/webcomponents/{p-46c0aa2e.entry.js → p-e4fa3f41.entry.js} +1 -1
  438. package/dist/webcomponents/{p-c4d2ff85.entry.js → p-edfcb58d.entry.js} +1 -1
  439. package/dist/webcomponents/p-f37bb6d6.entry.js +1 -0
  440. package/dist/webcomponents/p-f5eeb11d.entry.js +1 -0
  441. package/dist/webcomponents/p-f6d5f392.entry.js +1 -0
  442. package/dist/webcomponents/p-f6debdb8.entry.js +1 -0
  443. package/dist/webcomponents/{p-6ff96203.entry.js → p-fcb85a8e.entry.js} +1 -1
  444. package/dist/webcomponents/p-hBHbB3i6.js +1 -0
  445. package/dist/webcomponents/{p-Smvec9tp.js → p-pOQo1ck9.js} +1 -1
  446. package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
  447. package/dist/webcomponents/webcomponents.esm.js +1 -1
  448. package/package.json +1 -1
  449. package/dist/cjs/billing-form-schema-X1bkxteI.js +0 -26
  450. package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
  451. package/dist/cjs/checkout.store-LEOetpmH.js +0 -29
  452. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
  453. package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -50
  454. package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
  455. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
  456. package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -204
  457. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -49
  458. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
  459. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
  460. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
  461. package/dist/collection/api/BillingInformation.js +0 -1
  462. package/dist/collection/api/PaymentMethod.js +0 -1
  463. package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
  464. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
  465. package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -98
  466. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
  467. package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
  468. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
  469. package/dist/collection/components/modular-checkout-parts/card-form.js +0 -102
  470. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
  471. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
  472. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
  473. package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
  474. package/dist/collection/store/checkout.store.js +0 -25
  475. package/dist/esm/billing-form-schema-BQf2Ydp0.js +0 -24
  476. package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
  477. package/dist/esm/checkout.store-Ffl2B_i4.js +0 -27
  478. package/dist/esm/justifi-bank-account-form.entry.js +0 -83
  479. package/dist/esm/justifi-billing-information-form.entry.js +0 -48
  480. package/dist/esm/justifi-card-form.entry.js +0 -91
  481. package/dist/esm/justifi-checkout-summary.entry.js +0 -19
  482. package/dist/esm/justifi-modular-checkout.entry.js +0 -202
  483. package/dist/esm/justifi-postal-code-form.entry.js +0 -47
  484. package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
  485. package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
  486. package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
  487. package/dist/module/billing-form-schema.js +0 -24
  488. package/dist/module/checkout-actions.js +0 -58
  489. package/dist/module/checkout.store.js +0 -27
  490. package/dist/module/justifi-bank-account-form.d.ts +0 -11
  491. package/dist/module/justifi-bank-account-form.js +0 -105
  492. package/dist/module/justifi-billing-information-form.d.ts +0 -11
  493. package/dist/module/justifi-billing-information-form.js +0 -94
  494. package/dist/module/justifi-card-form.d.ts +0 -11
  495. package/dist/module/justifi-card-form.js +0 -113
  496. package/dist/module/justifi-checkout-summary.d.ts +0 -11
  497. package/dist/module/justifi-checkout-summary.js +0 -37
  498. package/dist/module/justifi-modular-checkout.d.ts +0 -11
  499. package/dist/module/justifi-modular-checkout.js +0 -218
  500. package/dist/module/justifi-postal-code-form.d.ts +0 -11
  501. package/dist/module/justifi-postal-code-form.js +0 -86
  502. package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
  503. package/dist/module/justifi-saved-payment-methods.js +0 -58
  504. package/dist/module/payment-method-option-utils.js +0 -23
  505. package/dist/types/api/BillingInformation.d.ts +0 -13
  506. package/dist/types/api/PaymentMethod.d.ts +0 -21
  507. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
  508. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
  509. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
  510. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
  511. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
  512. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
  513. package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
  514. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
  515. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
  516. package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
  517. package/dist/types/store/checkout.store.d.ts +0 -19
  518. package/dist/webcomponents/p-05ab99e7.entry.js +0 -1
  519. package/dist/webcomponents/p-05d92d45.entry.js +0 -1
  520. package/dist/webcomponents/p-0977a99a.entry.js +0 -1
  521. package/dist/webcomponents/p-0a7c3741.entry.js +0 -1
  522. package/dist/webcomponents/p-0d8ebb69.entry.js +0 -1
  523. package/dist/webcomponents/p-0lkrqFgg.js +0 -1
  524. package/dist/webcomponents/p-0wMiAwXe.js +0 -1
  525. package/dist/webcomponents/p-15db3b15.entry.js +0 -1
  526. package/dist/webcomponents/p-31a9d45e.entry.js +0 -1
  527. package/dist/webcomponents/p-33bf5d85.entry.js +0 -1
  528. package/dist/webcomponents/p-4126de9e.entry.js +0 -1
  529. package/dist/webcomponents/p-4e38dfac.entry.js +0 -1
  530. package/dist/webcomponents/p-5f33350c.entry.js +0 -1
  531. package/dist/webcomponents/p-631bbd5a.entry.js +0 -1
  532. package/dist/webcomponents/p-63e5e6f6.entry.js +0 -1
  533. package/dist/webcomponents/p-64f047ea.entry.js +0 -1
  534. package/dist/webcomponents/p-716dc79c.entry.js +0 -1
  535. package/dist/webcomponents/p-738ee098.entry.js +0 -1
  536. package/dist/webcomponents/p-7c466cc9.entry.js +0 -1
  537. package/dist/webcomponents/p-7e484d46.entry.js +0 -1
  538. package/dist/webcomponents/p-8ba23f7f.entry.js +0 -1
  539. package/dist/webcomponents/p-8fefebd7.entry.js +0 -1
  540. package/dist/webcomponents/p-93a843db.entry.js +0 -1
  541. package/dist/webcomponents/p-9ba825c5.entry.js +0 -1
  542. package/dist/webcomponents/p-BByypogb.js +0 -1
  543. package/dist/webcomponents/p-BI7GlCtv.js +0 -1
  544. package/dist/webcomponents/p-BJatoeR1.js +0 -1
  545. package/dist/webcomponents/p-BKatPL5G.js +0 -1
  546. package/dist/webcomponents/p-BXeHgiPz.js +0 -1
  547. package/dist/webcomponents/p-BgiXKaf2.js +0 -1
  548. package/dist/webcomponents/p-BhrFjjAs.js +0 -1
  549. package/dist/webcomponents/p-BnvoOeKL.js +0 -1
  550. package/dist/webcomponents/p-Bond4qGX.js +0 -1
  551. package/dist/webcomponents/p-BooprPq0.js +0 -1
  552. package/dist/webcomponents/p-CCPoezRw.js +0 -1
  553. package/dist/webcomponents/p-D5ny0x8_.js +0 -1
  554. package/dist/webcomponents/p-D7uH6T8P.js +0 -1
  555. package/dist/webcomponents/p-DKClunJd.js +0 -1
  556. package/dist/webcomponents/p-DLopwJ61.js +0 -1
  557. package/dist/webcomponents/p-DRKOMqbX.js +0 -1
  558. package/dist/webcomponents/p-DXJXAroG.js +0 -1
  559. package/dist/webcomponents/p-DyvT8iXz.js +0 -1
  560. package/dist/webcomponents/p-NqdaxjDT.js +0 -1
  561. package/dist/webcomponents/p-bc05e051.entry.js +0 -1
  562. package/dist/webcomponents/p-c102dea5.entry.js +0 -1
  563. package/dist/webcomponents/p-cb84a2e6.entry.js +0 -1
  564. package/dist/webcomponents/p-ce242f4c.entry.js +0 -1
  565. package/dist/webcomponents/p-d0d83153.entry.js +0 -1
  566. package/dist/webcomponents/p-d81f30f6.entry.js +0 -1
  567. package/dist/webcomponents/p-d90e981c.entry.js +0 -1
  568. package/dist/webcomponents/p-da961813.entry.js +0 -1
  569. package/dist/webcomponents/p-dadd593a.entry.js +0 -1
  570. package/dist/webcomponents/p-e3437894.entry.js +0 -1
  571. package/dist/webcomponents/p-eb6f1a3f.entry.js +0 -1
  572. package/dist/webcomponents/p-ebc0b06d.entry.js +0 -1
  573. package/dist/webcomponents/p-ecfab304.entry.js +0 -1
  574. package/dist/webcomponents/p-efa7aef1.entry.js +0 -1
  575. package/dist/webcomponents/p-eilUGO3o.js +0 -1
  576. package/dist/webcomponents/p-fd7c5ac5.entry.js +0 -1
  577. package/dist/webcomponents/p-hDoH7hHP.js +0 -1
  578. package/dist/webcomponents/p-jA8bbxkp.js +0 -1
  579. package/dist/webcomponents/p-pGzabKc7.js +0 -1
  580. package/dist/webcomponents/p-rzqedGq4.js +0 -1
  581. package/dist/webcomponents/p-zucQG3cz.js +0 -1
@@ -10,16 +10,13 @@ import { ComponentClickEvent as ComponentClickEvent1, ComponentErrorCodes, Compo
10
10
  import { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEvent, ComponentSubmitEvent } from "./api/ComponentEvents";
11
11
  import { Placement, PositioningStrategy } from "@popperjs/core";
12
12
  import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
13
- import { IPaymentMethodMetadata } from "./api/PaymentMethod";
14
- import { BillingFormFields as BillingFormFields2, FormController } from "./components";
13
+ import { BillingFormFields as BillingFormFields1, FormController } from "./components";
15
14
  import { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
16
15
  import { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
17
16
  import { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
18
- import { BillingFormFields as BillingFormFields1 } from "./components/modular-checkout-parts/billing-form-schema";
19
17
  import { FormController as FormController1 } from "./ui-components/form/form";
20
18
  import { ILoadedEventResponse as ILoadedEventResponse1 } from "./api/Checkout";
21
19
  import { Dispute, IDispute } from "./api/Dispute";
22
- import { IBillingInfo } from "./api/BillingInformation";
23
20
  import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
24
21
  import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
25
22
  import { Identity } from "./api/Identity";
@@ -29,16 +26,13 @@ export { ComponentClickEvent as ComponentClickEvent1, ComponentErrorCodes, Compo
29
26
  export { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEvent, ComponentSubmitEvent } from "./api/ComponentEvents";
30
27
  export { Placement, PositioningStrategy } from "@popperjs/core";
31
28
  export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
32
- export { IPaymentMethodMetadata } from "./api/PaymentMethod";
33
- export { BillingFormFields as BillingFormFields2, FormController } from "./components";
29
+ export { BillingFormFields as BillingFormFields1, FormController } from "./components";
34
30
  export { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
35
31
  export { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
36
32
  export { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
37
- export { BillingFormFields as BillingFormFields1 } from "./components/modular-checkout-parts/billing-form-schema";
38
33
  export { FormController as FormController1 } from "./ui-components/form/form";
39
34
  export { ILoadedEventResponse as ILoadedEventResponse1 } from "./api/Checkout";
40
35
  export { Dispute, IDispute } from "./api/Dispute";
41
- export { IBillingInfo } from "./api/BillingInformation";
42
36
  export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
43
37
  export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
44
38
  export { Identity } from "./api/Identity";
@@ -256,7 +250,7 @@ export namespace Components {
256
250
  "iframeOrigin": string;
257
251
  "inputId": string;
258
252
  "label": string;
259
- "tokenize": (clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string) => Promise<any>;
253
+ "tokenize": (clientId: string, paymentMethodMetadata: any, account?: string) => Promise<any>;
260
254
  "validate": () => Promise<any>;
261
255
  }
262
256
  interface JustifiAdditionalQuestions {
@@ -282,10 +276,6 @@ export namespace Components {
282
276
  "documentErrors": any;
283
277
  "validateAndSubmit": (onSuccess: (formData: any, documentList: DisputeEvidenceDocument[], formStep: DisputeResponseFormStep) => void) => Promise<void>;
284
278
  }
285
- interface JustifiBankAccountForm {
286
- "tokenize": ({ clientId, paymentMethodMetadata, account }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
287
- "validate": () => Promise<any>;
288
- }
289
279
  interface JustifiBillingForm {
290
280
  "fill": (fields: BillingFormFields) => Promise<void>;
291
281
  "getValues": () => Promise<BillingFormFields>;
@@ -295,11 +285,6 @@ export namespace Components {
295
285
  "paymentMethodType"?: string;
296
286
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
297
287
  }
298
- interface JustifiBillingInformationForm {
299
- "fill": (fields: BillingFormFields1) => Promise<void>;
300
- "getValues": () => Promise<BillingFormFields1>;
301
- "validate": () => Promise<{ isValid: boolean; }>;
302
- }
303
288
  interface JustifiBusinessBankAccountFormStep {
304
289
  "allowOptionalFields"?: boolean;
305
290
  "authToken": string;
@@ -403,10 +388,6 @@ export namespace Components {
403
388
  "documentErrors": any;
404
389
  "validateAndSubmit": (onSuccess: (formData: any, documentList: DisputeEvidenceDocument[], formStep: DisputeResponseFormStep) => void) => Promise<void>;
405
390
  }
406
- interface JustifiCardForm {
407
- "tokenize": ({ clientId, paymentMethodMetadata, account, }: { clientId: string; paymentMethodMetadata: any; account?: string; }) => Promise<any>;
408
- "validate": () => Promise<any>;
409
- }
410
391
  interface JustifiCheckout {
411
392
  "authToken": string;
412
393
  "checkoutId": string;
@@ -433,8 +414,6 @@ export namespace Components {
433
414
  "hideCardBillingForm"?: boolean;
434
415
  "validate": () => Promise<{ isValid: boolean; }>;
435
416
  }
436
- interface JustifiCheckoutSummary {
437
- }
438
417
  interface JustifiCheckoutsList {
439
418
  "accountId": string;
440
419
  "authToken": string;
@@ -556,17 +535,6 @@ export namespace Components {
556
535
  "patchBusiness": Function;
557
536
  "validateAndSubmit": ({ onSuccess }: { onSuccess: any; }) => Promise<void>;
558
537
  }
559
- interface JustifiModularCheckout {
560
- "accountId": string;
561
- "authToken": string;
562
- "checkoutId": string;
563
- /**
564
- * @default false
565
- */
566
- "savePaymentMethod"?: boolean;
567
- "submitCheckout": (submitCheckoutArgs: IBillingInfo) => Promise<void>;
568
- "validate": () => Promise<boolean>;
569
- }
570
538
  interface JustifiNewPaymentMethod {
571
539
  "accountId": string;
572
540
  "authToken": string;
@@ -626,6 +594,7 @@ export namespace Components {
626
594
  */
627
595
  "savedPaymentMethods": any[];
628
596
  "showAch": boolean;
597
+ "showBnpl": boolean;
629
598
  "showCard": boolean;
630
599
  "showSavedPaymentMethods": boolean;
631
600
  "validate": () => Promise<{ isValid: boolean; errors?: any; }>;
@@ -719,11 +688,6 @@ export namespace Components {
719
688
  "createdAfter"?: string;
720
689
  "createdBefore"?: string;
721
690
  }
722
- interface JustifiPostalCodeForm {
723
- "fill": (fields: BillingFormFields1) => Promise<void>;
724
- "getValues": () => Promise<BillingFormFields1>;
725
- "validate": () => Promise<{ isValid: boolean; }>;
726
- }
727
691
  interface JustifiProductOrService {
728
692
  "disputeResponse": any;
729
693
  /**
@@ -757,11 +721,9 @@ export namespace Components {
757
721
  "paymentMethodOption": PaymentMethodOption;
758
722
  "resolvePaymentMethod": (insuranceValidation: any) => Promise<PaymentMethodPayload>;
759
723
  }
760
- interface JustifiSavedPaymentMethods {
761
- }
762
724
  interface JustifiSeasonInterruptionInsurance {
763
- "authToken"?: string;
764
- "checkoutId"?: string;
725
+ "authToken": string;
726
+ "checkoutId": string;
765
727
  "coveredIdentityFirstName"?: string;
766
728
  "coveredIdentityLastName"?: string;
767
729
  "policyAttributesEndDate"?: string;
@@ -793,6 +755,12 @@ export namespace Components {
793
755
  "validate": () => Promise<{ isValid: boolean; }>;
794
756
  }
795
757
  interface JustifiSezzlePaymentMethod {
758
+ "accountId": string;
759
+ "bnpl": any;
760
+ "clientId": string;
761
+ "isSelected": boolean;
762
+ "paymentAmount": number;
763
+ "paymentMethodOption": PaymentMethodOption;
796
764
  "resolvePaymentMethod": (insuranceValidation: any) => Promise<PaymentMethodPayload>;
797
765
  }
798
766
  interface JustifiShippingDetails {
@@ -831,11 +799,11 @@ export namespace Components {
831
799
  "terminalStatus"?: ITerminalStatus;
832
800
  }
833
801
  interface JustifiTokenizePaymentMethod {
834
- "accountId"?: string;
835
- "authToken"?: string;
802
+ "accountId": string;
803
+ "authToken": string;
836
804
  "disableBankAccount"?: boolean;
837
805
  "disableCreditCard"?: boolean;
838
- "fillBillingForm": (fields: BillingFormFields2) => Promise<void>;
806
+ "fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
839
807
  "hideBankAccountBillingForm"?: boolean;
840
808
  "hideCardBillingForm"?: boolean;
841
809
  "hideSubmitButton"?: boolean;
@@ -1091,10 +1059,6 @@ export interface JustifiLegalAddressFormStepCoreCustomEvent<T> extends CustomEve
1091
1059
  detail: T;
1092
1060
  target: HTMLJustifiLegalAddressFormStepCoreElement;
1093
1061
  }
1094
- export interface JustifiModularCheckoutCustomEvent<T> extends CustomEvent<T> {
1095
- detail: T;
1096
- target: HTMLJustifiModularCheckoutElement;
1097
- }
1098
1062
  export interface JustifiNewPaymentMethodCustomEvent<T> extends CustomEvent<T> {
1099
1063
  detail: T;
1100
1064
  target: HTMLJustifiNewPaymentMethodElement;
@@ -1626,24 +1590,12 @@ declare global {
1626
1590
  prototype: HTMLJustifiAdditionalStatementElement;
1627
1591
  new (): HTMLJustifiAdditionalStatementElement;
1628
1592
  };
1629
- interface HTMLJustifiBankAccountFormElement extends Components.JustifiBankAccountForm, HTMLStencilElement {
1630
- }
1631
- var HTMLJustifiBankAccountFormElement: {
1632
- prototype: HTMLJustifiBankAccountFormElement;
1633
- new (): HTMLJustifiBankAccountFormElement;
1634
- };
1635
1593
  interface HTMLJustifiBillingFormElement extends Components.JustifiBillingForm, HTMLStencilElement {
1636
1594
  }
1637
1595
  var HTMLJustifiBillingFormElement: {
1638
1596
  prototype: HTMLJustifiBillingFormElement;
1639
1597
  new (): HTMLJustifiBillingFormElement;
1640
1598
  };
1641
- interface HTMLJustifiBillingInformationFormElement extends Components.JustifiBillingInformationForm, HTMLStencilElement {
1642
- }
1643
- var HTMLJustifiBillingInformationFormElement: {
1644
- prototype: HTMLJustifiBillingInformationFormElement;
1645
- new (): HTMLJustifiBillingInformationFormElement;
1646
- };
1647
1599
  interface HTMLJustifiBusinessBankAccountFormStepElementEventMap {
1648
1600
  "error-event": ComponentErrorEvent1;
1649
1601
  }
@@ -1874,12 +1826,6 @@ declare global {
1874
1826
  prototype: HTMLJustifiCancellationPolicyElement;
1875
1827
  new (): HTMLJustifiCancellationPolicyElement;
1876
1828
  };
1877
- interface HTMLJustifiCardFormElement extends Components.JustifiCardForm, HTMLStencilElement {
1878
- }
1879
- var HTMLJustifiCardFormElement: {
1880
- prototype: HTMLJustifiCardFormElement;
1881
- new (): HTMLJustifiCardFormElement;
1882
- };
1883
1829
  interface HTMLJustifiCheckoutElementEventMap {
1884
1830
  "error-event": ComponentErrorEvent;
1885
1831
  "loaded": ILoadedEventResponse;
@@ -1917,12 +1863,6 @@ declare global {
1917
1863
  prototype: HTMLJustifiCheckoutCoreElement;
1918
1864
  new (): HTMLJustifiCheckoutCoreElement;
1919
1865
  };
1920
- interface HTMLJustifiCheckoutSummaryElement extends Components.JustifiCheckoutSummary, HTMLStencilElement {
1921
- }
1922
- var HTMLJustifiCheckoutSummaryElement: {
1923
- prototype: HTMLJustifiCheckoutSummaryElement;
1924
- new (): HTMLJustifiCheckoutSummaryElement;
1925
- };
1926
1866
  interface HTMLJustifiCheckoutsListElementEventMap {
1927
1867
  "error-event": ComponentErrorEvent;
1928
1868
  }
@@ -2131,24 +2071,6 @@ declare global {
2131
2071
  prototype: HTMLJustifiLegalAddressFormStepCoreElement;
2132
2072
  new (): HTMLJustifiLegalAddressFormStepCoreElement;
2133
2073
  };
2134
- interface HTMLJustifiModularCheckoutElementEventMap {
2135
- "error-event": any;
2136
- "checkout-complete-event": any;
2137
- }
2138
- interface HTMLJustifiModularCheckoutElement extends Components.JustifiModularCheckout, HTMLStencilElement {
2139
- addEventListener<K extends keyof HTMLJustifiModularCheckoutElementEventMap>(type: K, listener: (this: HTMLJustifiModularCheckoutElement, ev: JustifiModularCheckoutCustomEvent<HTMLJustifiModularCheckoutElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2140
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2141
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2142
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2143
- removeEventListener<K extends keyof HTMLJustifiModularCheckoutElementEventMap>(type: K, listener: (this: HTMLJustifiModularCheckoutElement, ev: JustifiModularCheckoutCustomEvent<HTMLJustifiModularCheckoutElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2144
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2145
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2146
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2147
- }
2148
- var HTMLJustifiModularCheckoutElement: {
2149
- prototype: HTMLJustifiModularCheckoutElement;
2150
- new (): HTMLJustifiModularCheckoutElement;
2151
- };
2152
2074
  interface HTMLJustifiNewPaymentMethodElementEventMap {
2153
2075
  "paymentMethodOptionSelected": any;
2154
2076
  }
@@ -2371,12 +2293,6 @@ declare global {
2371
2293
  prototype: HTMLJustifiPayoutsListFiltersElement;
2372
2294
  new (): HTMLJustifiPayoutsListFiltersElement;
2373
2295
  };
2374
- interface HTMLJustifiPostalCodeFormElement extends Components.JustifiPostalCodeForm, HTMLStencilElement {
2375
- }
2376
- var HTMLJustifiPostalCodeFormElement: {
2377
- prototype: HTMLJustifiPostalCodeFormElement;
2378
- new (): HTMLJustifiPostalCodeFormElement;
2379
- };
2380
2296
  interface HTMLJustifiProductOrServiceElement extends Components.JustifiProductOrService, HTMLStencilElement {
2381
2297
  }
2382
2298
  var HTMLJustifiProductOrServiceElement: {
@@ -2441,12 +2357,6 @@ declare global {
2441
2357
  prototype: HTMLJustifiSavedPaymentMethodElement;
2442
2358
  new (): HTMLJustifiSavedPaymentMethodElement;
2443
2359
  };
2444
- interface HTMLJustifiSavedPaymentMethodsElement extends Components.JustifiSavedPaymentMethods, HTMLStencilElement {
2445
- }
2446
- var HTMLJustifiSavedPaymentMethodsElement: {
2447
- prototype: HTMLJustifiSavedPaymentMethodsElement;
2448
- new (): HTMLJustifiSavedPaymentMethodsElement;
2449
- };
2450
2360
  interface HTMLJustifiSeasonInterruptionInsuranceElementEventMap {
2451
2361
  "error-event": ComponentErrorEvent;
2452
2362
  }
@@ -2781,9 +2691,7 @@ declare global {
2781
2691
  "justifi-additional-questions-form-step": HTMLJustifiAdditionalQuestionsFormStepElement;
2782
2692
  "justifi-additional-questions-form-step-core": HTMLJustifiAdditionalQuestionsFormStepCoreElement;
2783
2693
  "justifi-additional-statement": HTMLJustifiAdditionalStatementElement;
2784
- "justifi-bank-account-form": HTMLJustifiBankAccountFormElement;
2785
2694
  "justifi-billing-form": HTMLJustifiBillingFormElement;
2786
- "justifi-billing-information-form": HTMLJustifiBillingInformationFormElement;
2787
2695
  "justifi-business-bank-account-form-step": HTMLJustifiBusinessBankAccountFormStepElement;
2788
2696
  "justifi-business-bank-account-form-step-core": HTMLJustifiBusinessBankAccountFormStepCoreElement;
2789
2697
  "justifi-business-core-info": HTMLJustifiBusinessCoreInfoElement;
@@ -2799,10 +2707,8 @@ declare global {
2799
2707
  "justifi-business-representative-form-step-core": HTMLJustifiBusinessRepresentativeFormStepCoreElement;
2800
2708
  "justifi-business-terms-conditions-form-step": HTMLJustifiBusinessTermsConditionsFormStepElement;
2801
2709
  "justifi-cancellation-policy": HTMLJustifiCancellationPolicyElement;
2802
- "justifi-card-form": HTMLJustifiCardFormElement;
2803
2710
  "justifi-checkout": HTMLJustifiCheckoutElement;
2804
2711
  "justifi-checkout-core": HTMLJustifiCheckoutCoreElement;
2805
- "justifi-checkout-summary": HTMLJustifiCheckoutSummaryElement;
2806
2712
  "justifi-checkouts-list": HTMLJustifiCheckoutsListElement;
2807
2713
  "justifi-checkouts-list-filters": HTMLJustifiCheckoutsListFiltersElement;
2808
2714
  "justifi-config-provider": HTMLJustifiConfigProviderElement;
@@ -2820,7 +2726,6 @@ declare global {
2820
2726
  "justifi-legal-address-form": HTMLJustifiLegalAddressFormElement;
2821
2727
  "justifi-legal-address-form-step": HTMLJustifiLegalAddressFormStepElement;
2822
2728
  "justifi-legal-address-form-step-core": HTMLJustifiLegalAddressFormStepCoreElement;
2823
- "justifi-modular-checkout": HTMLJustifiModularCheckoutElement;
2824
2729
  "justifi-new-payment-method": HTMLJustifiNewPaymentMethodElement;
2825
2730
  "justifi-order-terminals": HTMLJustifiOrderTerminalsElement;
2826
2731
  "justifi-owner-form": HTMLJustifiOwnerFormElement;
@@ -2837,13 +2742,11 @@ declare global {
2837
2742
  "justifi-payout-transactions-list": HTMLJustifiPayoutTransactionsListElement;
2838
2743
  "justifi-payouts-list": HTMLJustifiPayoutsListElement;
2839
2744
  "justifi-payouts-list-filters": HTMLJustifiPayoutsListFiltersElement;
2840
- "justifi-postal-code-form": HTMLJustifiPostalCodeFormElement;
2841
2745
  "justifi-product-or-service": HTMLJustifiProductOrServiceElement;
2842
2746
  "justifi-refund-payment": HTMLJustifiRefundPaymentElement;
2843
2747
  "justifi-refund-policy": HTMLJustifiRefundPolicyElement;
2844
2748
  "justifi-save-new-payment-method": HTMLJustifiSaveNewPaymentMethodElement;
2845
2749
  "justifi-saved-payment-method": HTMLJustifiSavedPaymentMethodElement;
2846
- "justifi-saved-payment-methods": HTMLJustifiSavedPaymentMethodsElement;
2847
2750
  "justifi-season-interruption-insurance": HTMLJustifiSeasonInterruptionInsuranceElement;
2848
2751
  "justifi-season-interruption-insurance-core": HTMLJustifiSeasonInterruptionInsuranceCoreElement;
2849
2752
  "justifi-sezzle-payment-method": HTMLJustifiSezzlePaymentMethodElement;
@@ -3135,16 +3038,12 @@ declare namespace LocalJSX {
3135
3038
  */
3136
3039
  "documentErrors"?: any;
3137
3040
  }
3138
- interface JustifiBankAccountForm {
3139
- }
3140
3041
  interface JustifiBillingForm {
3141
3042
  "hideBankAccountBillingForm"?: boolean;
3142
3043
  "hideCardBillingForm"?: boolean;
3143
3044
  "legend"?: string;
3144
3045
  "paymentMethodType"?: string;
3145
3046
  }
3146
- interface JustifiBillingInformationForm {
3147
- }
3148
3047
  interface JustifiBusinessBankAccountFormStep {
3149
3048
  "allowOptionalFields"?: boolean;
3150
3049
  "authToken"?: string;
@@ -3263,8 +3162,6 @@ declare namespace LocalJSX {
3263
3162
  */
3264
3163
  "documentErrors"?: any;
3265
3164
  }
3266
- interface JustifiCardForm {
3267
- }
3268
3165
  interface JustifiCheckout {
3269
3166
  "authToken"?: string;
3270
3167
  "checkoutId"?: string;
@@ -3292,8 +3189,6 @@ declare namespace LocalJSX {
3292
3189
  "onLoaded"?: (event: JustifiCheckoutCoreCustomEvent<ILoadedEventResponse1>) => void;
3293
3190
  "onSubmit-event"?: (event: JustifiCheckoutCoreCustomEvent<ComponentSubmitEvent>) => void;
3294
3191
  }
3295
- interface JustifiCheckoutSummary {
3296
- }
3297
3192
  interface JustifiCheckoutsList {
3298
3193
  "accountId"?: string;
3299
3194
  "authToken"?: string;
@@ -3426,17 +3321,6 @@ declare namespace LocalJSX {
3426
3321
  "onFormLoading"?: (event: JustifiLegalAddressFormStepCoreCustomEvent<boolean>) => void;
3427
3322
  "patchBusiness"?: Function;
3428
3323
  }
3429
- interface JustifiModularCheckout {
3430
- "accountId"?: string;
3431
- "authToken"?: string;
3432
- "checkoutId"?: string;
3433
- "onCheckout-complete-event"?: (event: JustifiModularCheckoutCustomEvent<any>) => void;
3434
- "onError-event"?: (event: JustifiModularCheckoutCustomEvent<any>) => void;
3435
- /**
3436
- * @default false
3437
- */
3438
- "savePaymentMethod"?: boolean;
3439
- }
3440
3324
  interface JustifiNewPaymentMethod {
3441
3325
  "accountId"?: string;
3442
3326
  "authToken"?: string;
@@ -3493,6 +3377,7 @@ declare namespace LocalJSX {
3493
3377
  */
3494
3378
  "savedPaymentMethods"?: any[];
3495
3379
  "showAch"?: boolean;
3380
+ "showBnpl"?: boolean;
3496
3381
  "showCard"?: boolean;
3497
3382
  "showSavedPaymentMethods"?: boolean;
3498
3383
  }
@@ -3596,8 +3481,6 @@ declare namespace LocalJSX {
3596
3481
  "createdAfter"?: string;
3597
3482
  "createdBefore"?: string;
3598
3483
  }
3599
- interface JustifiPostalCodeForm {
3600
- }
3601
3484
  interface JustifiProductOrService {
3602
3485
  "disputeResponse"?: any;
3603
3486
  /**
@@ -3631,8 +3514,6 @@ declare namespace LocalJSX {
3631
3514
  "onPaymentMethodOptionSelected"?: (event: JustifiSavedPaymentMethodCustomEvent<any>) => void;
3632
3515
  "paymentMethodOption"?: PaymentMethodOption;
3633
3516
  }
3634
- interface JustifiSavedPaymentMethods {
3635
- }
3636
3517
  interface JustifiSeasonInterruptionInsurance {
3637
3518
  "authToken"?: string;
3638
3519
  "checkoutId"?: string;
@@ -3668,7 +3549,13 @@ declare namespace LocalJSX {
3668
3549
  "toggleCoverage"?: Function;
3669
3550
  }
3670
3551
  interface JustifiSezzlePaymentMethod {
3552
+ "accountId"?: string;
3553
+ "bnpl"?: any;
3554
+ "clientId"?: string;
3555
+ "isSelected"?: boolean;
3671
3556
  "onPaymentMethodOptionSelected"?: (event: JustifiSezzlePaymentMethodCustomEvent<any>) => void;
3557
+ "paymentAmount"?: number;
3558
+ "paymentMethodOption"?: PaymentMethodOption;
3672
3559
  }
3673
3560
  interface JustifiShippingDetails {
3674
3561
  "disputeResponse"?: any;
@@ -3845,9 +3732,7 @@ declare namespace LocalJSX {
3845
3732
  "justifi-additional-questions-form-step": JustifiAdditionalQuestionsFormStep;
3846
3733
  "justifi-additional-questions-form-step-core": JustifiAdditionalQuestionsFormStepCore;
3847
3734
  "justifi-additional-statement": JustifiAdditionalStatement;
3848
- "justifi-bank-account-form": JustifiBankAccountForm;
3849
3735
  "justifi-billing-form": JustifiBillingForm;
3850
- "justifi-billing-information-form": JustifiBillingInformationForm;
3851
3736
  "justifi-business-bank-account-form-step": JustifiBusinessBankAccountFormStep;
3852
3737
  "justifi-business-bank-account-form-step-core": JustifiBusinessBankAccountFormStepCore;
3853
3738
  "justifi-business-core-info": JustifiBusinessCoreInfo;
@@ -3863,10 +3748,8 @@ declare namespace LocalJSX {
3863
3748
  "justifi-business-representative-form-step-core": JustifiBusinessRepresentativeFormStepCore;
3864
3749
  "justifi-business-terms-conditions-form-step": JustifiBusinessTermsConditionsFormStep;
3865
3750
  "justifi-cancellation-policy": JustifiCancellationPolicy;
3866
- "justifi-card-form": JustifiCardForm;
3867
3751
  "justifi-checkout": JustifiCheckout;
3868
3752
  "justifi-checkout-core": JustifiCheckoutCore;
3869
- "justifi-checkout-summary": JustifiCheckoutSummary;
3870
3753
  "justifi-checkouts-list": JustifiCheckoutsList;
3871
3754
  "justifi-checkouts-list-filters": JustifiCheckoutsListFilters;
3872
3755
  "justifi-config-provider": JustifiConfigProvider;
@@ -3884,7 +3767,6 @@ declare namespace LocalJSX {
3884
3767
  "justifi-legal-address-form": JustifiLegalAddressForm;
3885
3768
  "justifi-legal-address-form-step": JustifiLegalAddressFormStep;
3886
3769
  "justifi-legal-address-form-step-core": JustifiLegalAddressFormStepCore;
3887
- "justifi-modular-checkout": JustifiModularCheckout;
3888
3770
  "justifi-new-payment-method": JustifiNewPaymentMethod;
3889
3771
  "justifi-order-terminals": JustifiOrderTerminals;
3890
3772
  "justifi-owner-form": JustifiOwnerForm;
@@ -3901,13 +3783,11 @@ declare namespace LocalJSX {
3901
3783
  "justifi-payout-transactions-list": JustifiPayoutTransactionsList;
3902
3784
  "justifi-payouts-list": JustifiPayoutsList;
3903
3785
  "justifi-payouts-list-filters": JustifiPayoutsListFilters;
3904
- "justifi-postal-code-form": JustifiPostalCodeForm;
3905
3786
  "justifi-product-or-service": JustifiProductOrService;
3906
3787
  "justifi-refund-payment": JustifiRefundPayment;
3907
3788
  "justifi-refund-policy": JustifiRefundPolicy;
3908
3789
  "justifi-save-new-payment-method": JustifiSaveNewPaymentMethod;
3909
3790
  "justifi-saved-payment-method": JustifiSavedPaymentMethod;
3910
- "justifi-saved-payment-methods": JustifiSavedPaymentMethods;
3911
3791
  "justifi-season-interruption-insurance": JustifiSeasonInterruptionInsurance;
3912
3792
  "justifi-season-interruption-insurance-core": JustifiSeasonInterruptionInsuranceCore;
3913
3793
  "justifi-sezzle-payment-method": JustifiSezzlePaymentMethod;
@@ -3969,9 +3849,7 @@ declare module "@stencil/core" {
3969
3849
  "justifi-additional-questions-form-step": LocalJSX.JustifiAdditionalQuestionsFormStep & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsFormStepElement>;
3970
3850
  "justifi-additional-questions-form-step-core": LocalJSX.JustifiAdditionalQuestionsFormStepCore & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsFormStepCoreElement>;
3971
3851
  "justifi-additional-statement": LocalJSX.JustifiAdditionalStatement & JSXBase.HTMLAttributes<HTMLJustifiAdditionalStatementElement>;
3972
- "justifi-bank-account-form": LocalJSX.JustifiBankAccountForm & JSXBase.HTMLAttributes<HTMLJustifiBankAccountFormElement>;
3973
3852
  "justifi-billing-form": LocalJSX.JustifiBillingForm & JSXBase.HTMLAttributes<HTMLJustifiBillingFormElement>;
3974
- "justifi-billing-information-form": LocalJSX.JustifiBillingInformationForm & JSXBase.HTMLAttributes<HTMLJustifiBillingInformationFormElement>;
3975
3853
  "justifi-business-bank-account-form-step": LocalJSX.JustifiBusinessBankAccountFormStep & JSXBase.HTMLAttributes<HTMLJustifiBusinessBankAccountFormStepElement>;
3976
3854
  "justifi-business-bank-account-form-step-core": LocalJSX.JustifiBusinessBankAccountFormStepCore & JSXBase.HTMLAttributes<HTMLJustifiBusinessBankAccountFormStepCoreElement>;
3977
3855
  /**
@@ -3992,10 +3870,8 @@ declare module "@stencil/core" {
3992
3870
  "justifi-business-representative-form-step-core": LocalJSX.JustifiBusinessRepresentativeFormStepCore & JSXBase.HTMLAttributes<HTMLJustifiBusinessRepresentativeFormStepCoreElement>;
3993
3871
  "justifi-business-terms-conditions-form-step": LocalJSX.JustifiBusinessTermsConditionsFormStep & JSXBase.HTMLAttributes<HTMLJustifiBusinessTermsConditionsFormStepElement>;
3994
3872
  "justifi-cancellation-policy": LocalJSX.JustifiCancellationPolicy & JSXBase.HTMLAttributes<HTMLJustifiCancellationPolicyElement>;
3995
- "justifi-card-form": LocalJSX.JustifiCardForm & JSXBase.HTMLAttributes<HTMLJustifiCardFormElement>;
3996
3873
  "justifi-checkout": LocalJSX.JustifiCheckout & JSXBase.HTMLAttributes<HTMLJustifiCheckoutElement>;
3997
3874
  "justifi-checkout-core": LocalJSX.JustifiCheckoutCore & JSXBase.HTMLAttributes<HTMLJustifiCheckoutCoreElement>;
3998
- "justifi-checkout-summary": LocalJSX.JustifiCheckoutSummary & JSXBase.HTMLAttributes<HTMLJustifiCheckoutSummaryElement>;
3999
3875
  "justifi-checkouts-list": LocalJSX.JustifiCheckoutsList & JSXBase.HTMLAttributes<HTMLJustifiCheckoutsListElement>;
4000
3876
  "justifi-checkouts-list-filters": LocalJSX.JustifiCheckoutsListFilters & JSXBase.HTMLAttributes<HTMLJustifiCheckoutsListFiltersElement>;
4001
3877
  "justifi-config-provider": LocalJSX.JustifiConfigProvider & JSXBase.HTMLAttributes<HTMLJustifiConfigProviderElement>;
@@ -4013,7 +3889,6 @@ declare module "@stencil/core" {
4013
3889
  "justifi-legal-address-form": LocalJSX.JustifiLegalAddressForm & JSXBase.HTMLAttributes<HTMLJustifiLegalAddressFormElement>;
4014
3890
  "justifi-legal-address-form-step": LocalJSX.JustifiLegalAddressFormStep & JSXBase.HTMLAttributes<HTMLJustifiLegalAddressFormStepElement>;
4015
3891
  "justifi-legal-address-form-step-core": LocalJSX.JustifiLegalAddressFormStepCore & JSXBase.HTMLAttributes<HTMLJustifiLegalAddressFormStepCoreElement>;
4016
- "justifi-modular-checkout": LocalJSX.JustifiModularCheckout & JSXBase.HTMLAttributes<HTMLJustifiModularCheckoutElement>;
4017
3892
  "justifi-new-payment-method": LocalJSX.JustifiNewPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiNewPaymentMethodElement>;
4018
3893
  "justifi-order-terminals": LocalJSX.JustifiOrderTerminals & JSXBase.HTMLAttributes<HTMLJustifiOrderTerminalsElement>;
4019
3894
  "justifi-owner-form": LocalJSX.JustifiOwnerForm & JSXBase.HTMLAttributes<HTMLJustifiOwnerFormElement>;
@@ -4030,13 +3905,11 @@ declare module "@stencil/core" {
4030
3905
  "justifi-payout-transactions-list": LocalJSX.JustifiPayoutTransactionsList & JSXBase.HTMLAttributes<HTMLJustifiPayoutTransactionsListElement>;
4031
3906
  "justifi-payouts-list": LocalJSX.JustifiPayoutsList & JSXBase.HTMLAttributes<HTMLJustifiPayoutsListElement>;
4032
3907
  "justifi-payouts-list-filters": LocalJSX.JustifiPayoutsListFilters & JSXBase.HTMLAttributes<HTMLJustifiPayoutsListFiltersElement>;
4033
- "justifi-postal-code-form": LocalJSX.JustifiPostalCodeForm & JSXBase.HTMLAttributes<HTMLJustifiPostalCodeFormElement>;
4034
3908
  "justifi-product-or-service": LocalJSX.JustifiProductOrService & JSXBase.HTMLAttributes<HTMLJustifiProductOrServiceElement>;
4035
3909
  "justifi-refund-payment": LocalJSX.JustifiRefundPayment & JSXBase.HTMLAttributes<HTMLJustifiRefundPaymentElement>;
4036
3910
  "justifi-refund-policy": LocalJSX.JustifiRefundPolicy & JSXBase.HTMLAttributes<HTMLJustifiRefundPolicyElement>;
4037
3911
  "justifi-save-new-payment-method": LocalJSX.JustifiSaveNewPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSaveNewPaymentMethodElement>;
4038
3912
  "justifi-saved-payment-method": LocalJSX.JustifiSavedPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSavedPaymentMethodElement>;
4039
- "justifi-saved-payment-methods": LocalJSX.JustifiSavedPaymentMethods & JSXBase.HTMLAttributes<HTMLJustifiSavedPaymentMethodsElement>;
4040
3913
  "justifi-season-interruption-insurance": LocalJSX.JustifiSeasonInterruptionInsurance & JSXBase.HTMLAttributes<HTMLJustifiSeasonInterruptionInsuranceElement>;
4041
3914
  "justifi-season-interruption-insurance-core": LocalJSX.JustifiSeasonInterruptionInsuranceCore & JSXBase.HTMLAttributes<HTMLJustifiSeasonInterruptionInsuranceCoreElement>;
4042
3915
  "justifi-sezzle-payment-method": LocalJSX.JustifiSezzlePaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiSezzlePaymentMethodElement>;
@@ -1,5 +1,4 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- import { IPaymentMethodMetadata } from "../../api/PaymentMethod";
3
2
  export declare class IframeInput {
4
3
  private iframeElement;
5
4
  private frameService;
@@ -13,7 +12,7 @@ export declare class IframeInput {
13
12
  iframeOrigin: string;
14
13
  disconnectedCallback(): void;
15
14
  validate(): Promise<any>;
16
- tokenize(clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string): Promise<any>;
15
+ tokenize(clientId: string, paymentMethodMetadata: any, account?: string): Promise<any>;
17
16
  private initializeFrameCommunicationService;
18
17
  private dispatchMessageEvent;
19
18
  private get part();
@@ -1 +1 @@
1
- import{h as i,r as s,c as t}from"./p-N3w5zrz2.js";import{am as e,aj as r,af as o,t as l}from"./p-_6eQgwfE.js";import{S as d}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-0lkrqFgg.js";import{C as h,a as c}from"./p-BhrFjjAs.js";import{B as v}from"./p-Dqx8L05_.js";import{B as p}from"./p-BlJnA265.js";import{m as u}from"./p-DKClunJd.js";import{S as m}from"./p-BI7GlCtv.js";import"./p-CfBKn_Vl.js";import{k as f}from"./p-9REosSLu.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{f as j,e as w,a as g}from"./p-CFpYbRwn.js";import"./p-7MWRbTXI.js";import{g as x,a as b}from"./p-NqdaxjDT.js";import{T as y}from"./p-DhyQbCOq.js";import"./p-rzqedGq4.js";import"./p-DHvfrLVU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";const S=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(S,null)),C=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),B=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?g.boardingShipping:g.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){u({id:this.businessId,authToken:this.authToken,service:new v})({onSuccess:({business:i})=>{this.business=new p(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:b(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new j(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:b(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,f(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"80d01331179298720ebc453702a6db644ea51ff4"},i("div",{key:"895f5315bf90607eae80c6cd471d8adcab542d14",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{B as justifi_order_terminals}
1
+ import{h as i,r as s,c as t}from"./p-N3w5zrz2.js";import{ak as e,ah as r,ad as o,A as l}from"./p-BrLVc_85.js";import{S as d}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-Ckf8pUs-.js";import{C as h,a as c}from"./p-SdntD1xf.js";import{B as p}from"./p-B3AHoKpE.js";import{B as v}from"./p-BlJnA265.js";import{m as u}from"./p-Cs0cIpIm.js";import{S as m}from"./p-C9oyC18r.js";import"./p-CfBKn_Vl.js";import{j as f}from"./p-BnE7qgLh.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{f as w,e as y,a as j}from"./p-KoNvNGKV.js";import"./p-7MWRbTXI.js";import{g as b,a as g}from"./p-C5RuuShs.js";import{T as x}from"./p-BkDN6yJN.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";const S=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),B=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(S,null)),C=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),k=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new y({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?j.boardingShipping:j.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){u({id:this.businessId,authToken:this.authToken,service:new p})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:b(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new w(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=b(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new x})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:g(d.error),code:b(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=b(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new x});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(B,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,f(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"95d4b374036e4713216ce61e87571a607b8c3f0a"},i("div",{key:"3e57b055db0d1bf26b9eb38a78fa57493afd3af3",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{k as justifi_order_terminals}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as e}from"./p-N3w5zrz2.js";import{a as i,b as r}from"./p-d6tXI5Iw.js";import{F as o,c as n,b as a}from"./p-DVnVdicA.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{D as p}from"./p-BrLVc_85.js";import{S as f}from"./p-C9oyC18r.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,h as j,i as T}from"./p-KoNvNGKV.js";import{z as S,A as k,B as C,y as O,C as L,D as H}from"./p-JOSiCHl7.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import{C as D,a as V}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import{n as E}from"./p-BnjCmwMr.js";import{B}from"./p-pOQo1ck9.js";import{i as A,a as P}from"./p-BdTK0wi9.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-Dcbfnfn2.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const N=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),F=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(N,null),t(N,null),t(N,null)),q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new l(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new l(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:u.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:u.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:b,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},U=(t,s)=>t.some((t=>t.document_type===s)),R="Please upload either a voided check or a bank statement. Only one is required.",X=(t,s)=>{const e=U(t,x.voidedCheck),i=U(t,x.bankStatement),r=e||i,o=n().shape({bank_name:H.required("Enter bank name"),nickname:L.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:k.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:H.nullable(),nickname:L.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:k.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},Q=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(X(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new T({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:V.POST_ERROR,message:s.error.message,severity:D.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:V.POST_ERROR,message:t.error.message,severity:D.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(X(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:V.POST_ERROR,severity:D.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},Y=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:g,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:E,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},z=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(F,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(B,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},K=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(A("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(F,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},M=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:E})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{q as justifi_additional_questions_form_step_core,Q as justifi_business_bank_account_form_step_core,Y as justifi_business_core_info_form_step_core,z as justifi_business_owners_form_step_core,K as justifi_business_representative_form_step_core,M as justifi_legal_address_form_step_core}