@justifi/webcomponents 5.7.3-rc-02 → 5.7.4-rc-01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/dist/cjs/{check-pkg-version-CgQ8N_ta.js → Analytics-CLEDjTfr.js} +22 -22
  2. package/dist/cjs/{Api-BTdkb3Zh.js → Api-c8NBCwu4.js} +1 -1
  3. package/dist/cjs/{Checkout-BTgAlgVL.js → Checkout-BsYZoJ0a.js} +3 -3
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  5. package/dist/cjs/{badge-sO_Hcamo.js → badge-DDksduwk.js} +1 -1
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  7. package/dist/cjs/bank-account-form_7.cjs.entry.js +410 -0
  8. package/dist/cjs/billing-form-schema-X1bkxteI.js +26 -0
  9. package/dist/cjs/{business-additional-questions-schema-e3GCIHk5.js → business-additional-questions-schema-C1Ot5vrv.js} +6 -6
  10. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  11. package/dist/cjs/{business-identity-schema-Diqj_WVQ.js → business-identity-schema-hk4UVEna.js} +10 -10
  12. package/dist/cjs/{business.service-DNoCHqtI.js → business.service-BjlK8M6t.js} +2 -2
  13. package/dist/cjs/{button-CCZd8WSY.js → button-0HYMPryx.js} +1 -1
  14. package/dist/cjs/{checkout.service-C3R0uykH.js → checkout.service-Bln6jCAj.js} +2 -2
  15. package/dist/cjs/{checkout.store-osqdxFMq.js → checkout.store-LEOetpmH.js} +1 -1
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -9
  17. package/dist/cjs/{payments-list-params-state-fVsfZZ5G.js → checkouts-list-params-state-DZUKBmLC.js} +1 -1
  18. package/dist/cjs/{checkouts-table-C1Jv_A7m.js → checkouts-table-CrpOOe_e.js} +2 -2
  19. package/dist/cjs/{config-state-BTfJl-LU.js → config-state-Dz9bnWHg.js} +1 -1
  20. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper_4.cjs.entry.js} +101 -1
  21. package/dist/cjs/{dispute.service-CaA-mq-i.js → dispute.service-Bo84yh33.js} +2 -2
  22. package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
  23. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  24. package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  26. package/dist/cjs/{form-control-error-text-DPDsFdAT.js → form-control-error-text-CVPYL0lE.js} +1 -1
  27. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  28. package/dist/cjs/{form-control-help-text-CT5HzEnX.js → form-control-help-text-B3jRgfoa.js} +1 -1
  29. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  30. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  31. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  33. package/dist/cjs/form-control-number.cjs.entry.js +3 -3
  34. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/{get-payment-details-CnPsEZA8.js → get-payment-details-OrAuseBX.js} +2 -2
  36. package/dist/cjs/{get-subaccounts-CgOAdXG4.js → get-subaccounts-CoC0XYqj.js} +3 -3
  37. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +27 -8
  38. package/dist/cjs/{header-1--wdCXxjA.js → header-1-M-mc3bsa.js} +1 -1
  39. package/dist/cjs/{header-3-DxUQJ7TT.js → header-3-BnKbOjvz.js} +1 -1
  40. package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
  41. package/dist/cjs/{index-DEMVrrsF.js → index-BCtVWU61.js} +1 -1
  42. package/dist/cjs/{index-2GwnTbNA.js → index-D5bL1DOi.js} +17 -7
  43. package/dist/cjs/{insurance-state-BmAF1Sef.js → insurance-state-BsGy_svD.js} +2 -2
  44. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +22 -22
  45. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -13
  46. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +35 -35
  47. package/dist/cjs/{bank-account-form.cjs.entry.js → justifi-bank-account-form.cjs.entry.js} +30 -8
  48. package/dist/cjs/{justifi-billing-information-form_2.cjs.entry.js → justifi-billing-information-form.cjs.entry.js} +7 -60
  49. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  50. package/dist/cjs/justifi-business-form.cjs.entry.js +20 -20
  51. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  52. package/dist/cjs/{card-form.cjs.entry.js → justifi-card-form.cjs.entry.js} +31 -9
  53. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  54. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
  55. package/dist/cjs/justifi-checkout.cjs.entry.js +48 -93
  56. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  57. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
  58. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  61. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  62. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
  63. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
  64. package/dist/cjs/{justifi-checkout-summary_2.cjs.entry.js → justifi-modular-checkout.cjs.entry.js} +13 -26
  65. package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -13
  66. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +11 -11
  67. package/dist/cjs/justifi-payment-details.cjs.entry.js +12 -12
  68. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  69. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  70. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +13 -13
  71. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  72. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  73. package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -11
  74. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +13 -13
  75. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  76. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  77. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +49 -0
  78. package/dist/cjs/justifi-refund-payment.cjs.entry.js +21 -21
  79. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
  80. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -7
  81. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -11
  82. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
  83. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +6 -6
  84. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +12 -12
  85. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +6 -6
  86. package/dist/cjs/justifi-terminals-list.cjs.entry.js +14 -14
  87. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -12
  88. package/dist/cjs/loader.cjs.js +2 -2
  89. package/dist/cjs/{package-wSbEFwqE.js → package-D89BDRKu.js} +1 -1
  90. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  91. package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
  92. package/dist/cjs/{payment.service-C-HKmIG6.js → payment.service-C0t9DRcu.js} +2 -2
  93. package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
  94. package/dist/cjs/{payouts-list-params-state-fVsfZZ5G.js → payments-list-params-state-DZUKBmLC.js} +1 -1
  95. package/dist/cjs/{payments-status-DPqU5v9h.js → payments-status-DG50GuXR.js} +2 -2
  96. package/dist/cjs/{payments-table-BM3AoAJf.js → payments-table-BqxFc71K.js} +2 -2
  97. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  98. package/dist/cjs/{payout.service-BHU3EPR2.js → payout.service-DGeLS8BN.js} +2 -2
  99. package/dist/cjs/payouts-list-core.cjs.entry.js +10 -10
  100. package/dist/cjs/{checkouts-list-params-state-fVsfZZ5G.js → payouts-list-params-state-DZUKBmLC.js} +1 -1
  101. package/dist/cjs/{payouts-status-CU8aqIhH.js → payouts-status-meuI7eBr.js} +2 -2
  102. package/dist/cjs/{payouts-table-1HL4kk9B.js → payouts-table-iT2IauEa.js} +2 -2
  103. package/dist/cjs/{schema-validations-BSeMee-o.js → schema-validations-CllkToCZ.js} +31 -31
  104. package/dist/cjs/{skeleton-ByLavxr1.js → skeleton-CbZBGO47.js} +1 -1
  105. package/dist/cjs/{spinner-DOC4Ab7M.js → spinner-CIZFX7bz.js} +1 -1
  106. package/dist/cjs/{styled-host-IMxk64cc.js → styled-host-DXNHOiqW.js} +1 -1
  107. package/dist/cjs/{table-BgQP2M2-.js → table-CxvETNS1.js} +2 -2
  108. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  109. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -9
  110. package/dist/cjs/{terminal-orders-list-params-state-fVsfZZ5G.js → terminal-orders-list-params-state-DZUKBmLC.js} +1 -1
  111. package/dist/cjs/{terminal-orders-table-C3KZTeE5.js → terminal-orders-table-Dw6uHG1R.js} +4 -4
  112. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  113. package/dist/cjs/{terminal.service-Bc1YJWi0.js → terminal.service-Ck6PIO3G.js} +2 -2
  114. package/dist/cjs/terminals-list-core.cjs.entry.js +9 -9
  115. package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +22 -0
  116. package/dist/cjs/{terminals-table-yRGsrfBw.js → terminals-table-sf-s5v6D.js} +2 -2
  117. package/dist/cjs/{utils-bn0fXuc-.js → utils-wkdkLmDI.js} +1 -1
  118. package/dist/cjs/webcomponents.cjs.js +3 -3
  119. package/dist/collection/collection-manifest.json +1 -1
  120. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  121. package/dist/collection/components/checkout/billing-form/billing-form.js +5 -2
  122. package/dist/collection/components/checkout/card-form/card-form.js +1 -1
  123. package/dist/collection/components/checkout/checkout.js +37 -102
  124. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  125. package/dist/collection/components/checkout/payment-method-options.js +26 -37
  126. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  127. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  128. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  129. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +2 -1
  130. package/dist/collection/components/modular-checkout/modular-checkout.js +2 -2
  131. package/dist/collection/components/modular-checkout-parts/bank-account.js +7 -28
  132. package/dist/collection/components/modular-checkout-parts/card-form.js +8 -29
  133. package/dist/docs.json +206 -240
  134. package/dist/esm/{check-pkg-version-BmebRZ4u.js → Analytics-B3nThWuq.js} +22 -22
  135. package/dist/esm/{Api-CqimcNgb.js → Api-C3T8XYbb.js} +1 -1
  136. package/dist/esm/{Checkout-CH19cJxH.js → Checkout-CV6qgU0r.js} +3 -3
  137. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  138. package/dist/esm/{badge-BoemLewg.js → badge-DHaTxWwu.js} +2 -2
  139. package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
  140. package/dist/esm/bank-account-form_7.entry.js +402 -0
  141. package/dist/esm/billing-form-schema-BQf2Ydp0.js +24 -0
  142. package/dist/esm/{business-additional-questions-schema-uQlQ8fXQ.js → business-additional-questions-schema-D00MNMDJ.js} +2 -2
  143. package/dist/esm/business-details-core.entry.js +5 -5
  144. package/dist/esm/{business-identity-schema-BsrgqgDl.js → business-identity-schema-pxSsAdgG.js} +2 -2
  145. package/dist/esm/{business.service-wY8gOZQr.js → business.service-BMABw2vX.js} +2 -2
  146. package/dist/esm/{button-BcLzheaP.js → button-5hc5r__m.js} +2 -2
  147. package/dist/esm/{checkout.service-Ci9Zkxiz.js → checkout.service-jmweME4d.js} +2 -2
  148. package/dist/esm/{checkout.store-DQrlfeus.js → checkout.store-Ffl2B_i4.js} +1 -1
  149. package/dist/esm/checkouts-list-core.entry.js +10 -10
  150. package/dist/esm/{checkouts-list-params-state-DhPyCV-V.js → checkouts-list-params-state-DFWVMJRJ.js} +1 -1
  151. package/dist/esm/{checkouts-table-ub2cX2KR.js → checkouts-table-BS_UiHaT.js} +3 -3
  152. package/dist/esm/{config-state-BjXhUj2q.js → config-state-B3mtRA6f.js} +1 -1
  153. package/dist/esm/{custom-popper_2.entry.js → custom-popper_4.entry.js} +101 -3
  154. package/dist/esm/{dispute.service-D3IjL7Z8.js → dispute.service-DWQ8DPZa.js} +2 -2
  155. package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
  156. package/dist/esm/form-alert_5.entry.js +2 -2
  157. package/dist/esm/form-control-checkbox.entry.js +4 -4
  158. package/dist/esm/form-control-date.entry.js +3 -3
  159. package/dist/esm/{form-control-error-text-C4vfc3el.js → form-control-error-text-C93L7yFm.js} +2 -2
  160. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  161. package/dist/esm/{form-control-help-text-Dsr1zpTw.js → form-control-help-text-p28euWGX.js} +2 -2
  162. package/dist/esm/form-control-help-text.entry.js +1 -1
  163. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  164. package/dist/esm/form-control-monetary.entry.js +4 -4
  165. package/dist/esm/form-control-number-masked_2.entry.js +3 -3
  166. package/dist/esm/form-control-number.entry.js +4 -4
  167. package/dist/esm/form-control-radio.entry.js +2 -2
  168. package/dist/esm/{get-payment-details-CmVKt1jR.js → get-payment-details-PSdVeuGc.js} +2 -2
  169. package/dist/esm/{get-subaccounts-BRX7HFGO.js → get-subaccounts-CownROrO.js} +3 -3
  170. package/dist/esm/gross-payment-chart-core.entry.js +28 -9
  171. package/dist/esm/{header-1-CmImLcLi.js → header-1-CUc5m0Ge.js} +2 -2
  172. package/dist/esm/{header-3-BMoxz2Hr.js → header-3-BXU3iN46.js} +2 -2
  173. package/dist/esm/hidden-input_2.entry.js +5 -5
  174. package/dist/esm/{index-Cf8VXyXg.js → index-BAq5IUBW.js} +1 -1
  175. package/dist/esm/{index-Bta_r52Z.js → index-N3w5zrz2.js} +17 -7
  176. package/dist/esm/{insurance-state-DMexHdvO.js → insurance-state-Br0fBMFI.js} +3 -3
  177. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +11 -11
  178. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
  179. package/dist/esm/justifi-additional-statement_8.entry.js +3 -3
  180. package/dist/esm/{bank-account-form.entry.js → justifi-bank-account-form.entry.js} +31 -9
  181. package/dist/{module/billing-form2.js → esm/justifi-billing-information-form.entry.js} +18 -61
  182. package/dist/esm/justifi-business-details.entry.js +10 -10
  183. package/dist/esm/justifi-business-form.entry.js +17 -17
  184. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  185. package/dist/esm/{card-form.entry.js → justifi-card-form.entry.js} +32 -10
  186. package/dist/esm/justifi-checkout-core.entry.js +10 -10
  187. package/dist/esm/justifi-checkout-summary.entry.js +19 -0
  188. package/dist/esm/justifi-checkout.entry.js +47 -92
  189. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  190. package/dist/esm/justifi-checkouts-list.entry.js +14 -14
  191. package/dist/esm/justifi-config-provider.entry.js +3 -3
  192. package/dist/esm/justifi-details.entry.js +3 -3
  193. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  194. package/dist/esm/justifi-dispute-management.entry.js +8 -8
  195. package/dist/esm/justifi-dispute-notification_3.entry.js +12 -12
  196. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  197. package/dist/esm/{justifi-checkout-summary_2.entry.js → justifi-modular-checkout.entry.js} +12 -24
  198. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  199. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  200. package/dist/esm/justifi-payment-details.entry.js +11 -11
  201. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  202. package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
  203. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  204. package/dist/esm/justifi-payments-list-filters.entry.js +5 -5
  205. package/dist/esm/justifi-payments-list.entry.js +13 -13
  206. package/dist/esm/justifi-payout-details.entry.js +10 -10
  207. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  208. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  209. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  210. package/dist/esm/justifi-postal-code-form.entry.js +47 -0
  211. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  212. package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
  213. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +8 -8
  214. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
  215. package/dist/{module/sezzle-payment-method.js → esm/justifi-sezzle-payment-method.entry.js} +14 -46
  216. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  217. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  218. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  219. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  220. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -11
  221. package/dist/esm/loader.js +3 -3
  222. package/dist/esm/{package-CJdXAC5R.js → package-rzqedGq4.js} +1 -1
  223. package/dist/esm/pagination-menu.entry.js +2 -2
  224. package/dist/esm/{parts-C71Mxtso.js → parts-_6eQgwfE.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +7 -7
  226. package/dist/esm/{payment.service-ddFQWXPn.js → payment.service-u8UGq6gX.js} +2 -2
  227. package/dist/esm/payments-list-core.entry.js +11 -11
  228. package/dist/esm/{payments-list-params-state-DhPyCV-V.js → payments-list-params-state-DFWVMJRJ.js} +1 -1
  229. package/dist/esm/{payments-status-DvsFQolO.js → payments-status-BMqVM0kB.js} +2 -2
  230. package/dist/esm/{payments-table-CCKeaI5x.js → payments-table-BMIALfY5.js} +3 -3
  231. package/dist/esm/payout-details-core.entry.js +8 -8
  232. package/dist/esm/{payout.service-Ws4Pebcz.js → payout.service-CXW3oJqI.js} +2 -2
  233. package/dist/esm/payouts-list-core.entry.js +11 -11
  234. package/dist/esm/{payouts-list-params-state-DhPyCV-V.js → payouts-list-params-state-DFWVMJRJ.js} +1 -1
  235. package/dist/esm/{payouts-status-BkM4Gvme.js → payouts-status-BGGBJaXG.js} +2 -2
  236. package/dist/esm/{payouts-table-CqBOvPOo.js → payouts-table-BNPc0Z6X.js} +3 -3
  237. package/dist/esm/{schema-validations-DLWfpHyI.js → schema-validations-C7pC-de1.js} +2 -2
  238. package/dist/esm/{skeleton-BVM4XTj9.js → skeleton-C0KgFH0Z.js} +2 -2
  239. package/dist/esm/{spinner-BsxFRVXW.js → spinner-Dtab-HTx.js} +2 -2
  240. package/dist/esm/{styled-host-BSX_LSdk.js → styled-host-DtvbNFVU.js} +1 -1
  241. package/dist/esm/table-filters-menu.entry.js +3 -3
  242. package/dist/esm/{table-DxdC1lXb.js → table-wp341KhD.js} +3 -3
  243. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  244. package/dist/esm/{terminal-orders-list-params-state-DhPyCV-V.js → terminal-orders-list-params-state-DFWVMJRJ.js} +1 -1
  245. package/dist/esm/{terminal-orders-table-DV7nRYuE.js → terminal-orders-table-CzEC1eXm.js} +5 -5
  246. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  247. package/dist/esm/{terminal.service-DH8gRG1H.js → terminal.service-Cw0RbYs3.js} +2 -2
  248. package/dist/esm/terminals-list-core.entry.js +10 -10
  249. package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +16 -0
  250. package/dist/esm/{terminals-table-DUHel128.js → terminals-table-CcKZ_9re.js} +3 -3
  251. package/dist/esm/{utils-B-aPFy3u.js → utils-BGp_IJEa.js} +2 -2
  252. package/dist/esm/webcomponents.js +4 -4
  253. package/dist/module/bank-account-form.js +1 -83
  254. package/dist/module/{bank-account.js → bank-account-form2.js} +12 -27
  255. package/dist/module/billing-form.js +19 -25
  256. package/dist/module/button.js +1 -1
  257. package/dist/module/card-form.js +1 -91
  258. package/dist/module/card-form2.js +15 -30
  259. package/dist/module/checkout-actions.js +58 -0
  260. package/dist/module/checkout-core.js +268 -0
  261. package/dist/module/gross-payment-chart-core2.js +24 -5
  262. package/dist/module/justifi-bank-account-form.js +100 -1
  263. package/dist/module/justifi-billing-information-form.js +89 -1
  264. package/dist/module/justifi-card-form.js +108 -1
  265. package/dist/module/justifi-checkout-core.js +1 -201
  266. package/dist/module/justifi-checkout-summary.js +32 -1
  267. package/dist/module/justifi-checkout.js +109 -104
  268. package/dist/module/justifi-modular-checkout.js +213 -1
  269. package/dist/module/justifi-new-payment-method.js +1 -214
  270. package/dist/module/justifi-order-terminals.js +1 -1
  271. package/dist/module/justifi-postal-code-form.js +81 -1
  272. package/dist/module/justifi-saved-payment-method.js +1 -57
  273. package/dist/module/justifi-saved-payment-methods.js +53 -1
  274. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  275. package/dist/module/justifi-sezzle-payment-method.js +108 -1
  276. package/dist/module/justifi-tokenize-payment-method.js +74 -8
  277. package/dist/module/new-payment-method.js +204 -0
  278. package/dist/module/package.js +1 -1
  279. package/dist/module/parts.js +1 -1
  280. package/dist/module/payment-method-options.js +100 -27
  281. package/dist/module/save-new-payment-method.js +1 -1
  282. package/dist/module/saved-payment-method.js +59 -0
  283. package/dist/module/season-interruption-insurance-core.js +2 -2
  284. package/dist/types/components/checkout/checkout.d.ts +9 -19
  285. package/dist/types/components/checkout/payment-method-options.d.ts +1 -2
  286. package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -1
  287. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +3 -3
  288. package/dist/types/components/modular-checkout-parts/card-form.d.ts +2 -2
  289. package/dist/types/components.d.ts +1 -21
  290. package/dist/webcomponents/{p-badf50e2.entry.js → p-02e39fe2.entry.js} +1 -1
  291. package/dist/webcomponents/p-03ed0703.entry.js +1 -0
  292. package/dist/webcomponents/p-042c6784.entry.js +1 -0
  293. package/dist/webcomponents/p-05ab99e7.entry.js +1 -0
  294. package/dist/webcomponents/{p-54487455.entry.js → p-05d92d45.entry.js} +1 -1
  295. package/dist/webcomponents/{p-32d41de6.entry.js → p-0977a99a.entry.js} +1 -1
  296. package/dist/webcomponents/{p-e2adbafd.entry.js → p-0a7c3741.entry.js} +1 -1
  297. package/dist/webcomponents/{p-db13afe8.entry.js → p-0d8ebb69.entry.js} +1 -1
  298. package/dist/webcomponents/{p-114d2d7e.entry.js → p-0ed08f7b.entry.js} +1 -1
  299. package/dist/webcomponents/{p-dd5c8738.entry.js → p-0fc4a0df.entry.js} +1 -1
  300. package/dist/webcomponents/p-0lkrqFgg.js +1 -0
  301. package/dist/webcomponents/p-0wMiAwXe.js +1 -0
  302. package/dist/webcomponents/{p-c6f6cca0.entry.js → p-1301a9ae.entry.js} +1 -1
  303. package/dist/webcomponents/{p-b0c7f45a.entry.js → p-15db3b15.entry.js} +1 -1
  304. package/dist/webcomponents/{p-ed8eb110.entry.js → p-17727dd3.entry.js} +1 -1
  305. package/dist/webcomponents/p-1a0f21d1.entry.js +1 -0
  306. package/dist/webcomponents/{p-0d038c74.entry.js → p-31a9d45e.entry.js} +1 -1
  307. package/dist/webcomponents/p-33bf5d85.entry.js +1 -0
  308. package/dist/webcomponents/{p-90521984.entry.js → p-4126de9e.entry.js} +1 -1
  309. package/dist/webcomponents/{p-30b1b0d4.entry.js → p-41dffb12.entry.js} +1 -1
  310. package/dist/webcomponents/{p-a3245777.entry.js → p-46c0aa2e.entry.js} +1 -1
  311. package/dist/webcomponents/{p-fe5b7b4c.entry.js → p-4e38dfac.entry.js} +1 -1
  312. package/dist/webcomponents/{p-e2ac6f48.entry.js → p-4ed62ecf.entry.js} +1 -1
  313. package/dist/webcomponents/p-5f33350c.entry.js +1 -0
  314. package/dist/webcomponents/{p-f21e1351.entry.js → p-60abac93.entry.js} +1 -1
  315. package/dist/webcomponents/{p-ea883d7c.entry.js → p-6286917e.entry.js} +1 -1
  316. package/dist/webcomponents/p-631bbd5a.entry.js +1 -0
  317. package/dist/webcomponents/{p-7982b38b.entry.js → p-63e5e6f6.entry.js} +1 -1
  318. package/dist/webcomponents/{p-20ac139f.entry.js → p-64f047ea.entry.js} +1 -1
  319. package/dist/webcomponents/{p-28190487.entry.js → p-6d5833b4.entry.js} +1 -1
  320. package/dist/webcomponents/{p-498ef7fe.entry.js → p-6f6d7a87.entry.js} +1 -1
  321. package/dist/webcomponents/{p-be676a47.entry.js → p-6ff96203.entry.js} +1 -1
  322. package/dist/webcomponents/p-716dc79c.entry.js +1 -0
  323. package/dist/webcomponents/p-738ee098.entry.js +1 -0
  324. package/dist/webcomponents/{p-655e9c99.entry.js → p-783b70b5.entry.js} +1 -1
  325. package/dist/webcomponents/{p-0c13f2da.entry.js → p-7a8a06d6.entry.js} +1 -1
  326. package/dist/webcomponents/{p-62308de3.entry.js → p-7c466cc9.entry.js} +1 -1
  327. package/dist/webcomponents/{p-4cdc323c.entry.js → p-7c6f2fad.entry.js} +1 -1
  328. package/dist/webcomponents/p-7e484d46.entry.js +1 -0
  329. package/dist/webcomponents/{p-b122d960.entry.js → p-83037fd2.entry.js} +1 -1
  330. package/dist/webcomponents/{p-1d59c747.entry.js → p-84df9f26.entry.js} +1 -1
  331. package/dist/webcomponents/{p-85b73bd5.entry.js → p-8ba23f7f.entry.js} +1 -1
  332. package/dist/webcomponents/{p-fa781ff0.entry.js → p-8bb3513f.entry.js} +1 -1
  333. package/dist/webcomponents/p-8fefebd7.entry.js +1 -0
  334. package/dist/webcomponents/{p-cbfb26e2.entry.js → p-93a843db.entry.js} +1 -1
  335. package/dist/webcomponents/p-9b1992ef.entry.js +1 -0
  336. package/dist/webcomponents/p-9ba825c5.entry.js +1 -0
  337. package/dist/webcomponents/p-9c6479a4.entry.js +1 -0
  338. package/dist/webcomponents/{p-ea664ada.entry.js → p-9fe2281c.entry.js} +1 -1
  339. package/dist/webcomponents/{p-D_FOQEGU.js → p-BByypogb.js} +1 -1
  340. package/dist/webcomponents/p-BI7GlCtv.js +1 -0
  341. package/dist/webcomponents/p-BJatoeR1.js +1 -0
  342. package/dist/webcomponents/p-BKatPL5G.js +1 -0
  343. package/dist/webcomponents/{p-Cl-Q3cHB.js → p-BXeHgiPz.js} +1 -1
  344. package/dist/webcomponents/p-BaoXNxnc.js +1 -0
  345. package/dist/webcomponents/p-BgiXKaf2.js +1 -0
  346. package/dist/webcomponents/p-BmgpToYI.js +1 -0
  347. package/dist/webcomponents/{p-1tXUo5Ef.js → p-BnvoOeKL.js} +1 -1
  348. package/dist/webcomponents/p-Bond4qGX.js +1 -0
  349. package/dist/webcomponents/p-BooprPq0.js +1 -0
  350. package/dist/webcomponents/{p-BZAglFez.js → p-C39xg5_f.js} +1 -1
  351. package/dist/webcomponents/{p-JOSiCHl7.js → p-C8Zhkgm5.js} +1 -1
  352. package/dist/webcomponents/{p-C8EG4ZSX.js → p-CAdO_ZNx.js} +1 -1
  353. package/dist/webcomponents/p-CCPoezRw.js +1 -0
  354. package/dist/webcomponents/p-CKRDBISo.js +1 -0
  355. package/dist/webcomponents/p-CXLazxt0.js +1 -0
  356. package/dist/webcomponents/{p-kfHhaHAJ.js → p-CdkOB2ri.js} +1 -1
  357. package/dist/webcomponents/p-Cf4TMP3p.js +1 -0
  358. package/dist/webcomponents/{p-CBs671Ol.js → p-CfBKn_Vl.js} +1 -1
  359. package/dist/webcomponents/p-Cjf9yu8r.js +1 -0
  360. package/dist/webcomponents/p-Cwt_9Jzb.js +1 -0
  361. package/dist/webcomponents/p-D5ny0x8_.js +1 -0
  362. package/dist/webcomponents/p-D7js9xfx.js +1 -0
  363. package/dist/webcomponents/p-D7uH6T8P.js +1 -0
  364. package/dist/webcomponents/{p-Yj41tobi.js → p-DHvfrLVU.js} +1 -1
  365. package/dist/webcomponents/p-DLopwJ61.js +1 -0
  366. package/dist/webcomponents/p-DRKOMqbX.js +1 -0
  367. package/dist/webcomponents/{p-DFPGAF4g.js → p-DXJXAroG.js} +1 -1
  368. package/dist/webcomponents/{p-D3BIZZrc.js → p-Dcbfnfn2.js} +1 -1
  369. package/dist/webcomponents/{p-_P2I6GdZ.js → p-DhyQbCOq.js} +1 -1
  370. package/dist/webcomponents/{p-CO90ONTY.js → p-Dqx8L05_.js} +1 -1
  371. package/dist/webcomponents/p-DyvT8iXz.js +1 -0
  372. package/dist/webcomponents/p-MNmf3fQL.js +1 -0
  373. package/dist/webcomponents/p-N3w5zrz2.js +2 -0
  374. package/dist/webcomponents/{p-DLr6u3Be.js → p-Rx3SLAbu.js} +1 -1
  375. package/dist/webcomponents/p-Smvec9tp.js +1 -0
  376. package/dist/webcomponents/p-XTXkuHkQ.js +1 -0
  377. package/dist/webcomponents/{p-C71Mxtso.js → p-_6eQgwfE.js} +1 -1
  378. package/dist/webcomponents/{p-7efbe6e6.entry.js → p-a76e0f42.entry.js} +1 -1
  379. package/dist/webcomponents/{p-f1dcc9c2.entry.js → p-acdf6a5f.entry.js} +1 -1
  380. package/dist/webcomponents/{p-9a4b9734.entry.js → p-bac895b4.entry.js} +1 -1
  381. package/dist/webcomponents/p-bc05e051.entry.js +1 -0
  382. package/dist/webcomponents/p-c102dea5.entry.js +1 -0
  383. package/dist/webcomponents/{p-95aada97.entry.js → p-c4d2ff85.entry.js} +1 -1
  384. package/dist/webcomponents/{p-1debe4fc.entry.js → p-cb84a2e6.entry.js} +1 -1
  385. package/dist/webcomponents/{p-cc7d0b8c.entry.js → p-cdc71a77.entry.js} +1 -1
  386. package/dist/webcomponents/p-ce242f4c.entry.js +1 -0
  387. package/dist/webcomponents/p-d0d83153.entry.js +1 -0
  388. package/dist/webcomponents/{p-cc26a8fa.entry.js → p-d5ada96f.entry.js} +1 -1
  389. package/dist/webcomponents/p-d81f30f6.entry.js +1 -0
  390. package/dist/webcomponents/p-d90e981c.entry.js +1 -0
  391. package/dist/webcomponents/{p-a8f1165e.entry.js → p-da961813.entry.js} +1 -1
  392. package/dist/webcomponents/{p-d5f95784.entry.js → p-dadd593a.entry.js} +1 -1
  393. package/dist/webcomponents/{p-f0a849be.entry.js → p-de969ec7.entry.js} +1 -1
  394. package/dist/webcomponents/p-e3437894.entry.js +1 -0
  395. package/dist/webcomponents/p-eb6f1a3f.entry.js +1 -0
  396. package/dist/webcomponents/p-ebc0b06d.entry.js +1 -0
  397. package/dist/webcomponents/p-ecfab304.entry.js +1 -0
  398. package/dist/webcomponents/{p-93564eb7.entry.js → p-ef520bb8.entry.js} +1 -1
  399. package/dist/webcomponents/{p-31b3575b.entry.js → p-efa7aef1.entry.js} +1 -1
  400. package/dist/webcomponents/{p-B1jCcGW-.js → p-eilUGO3o.js} +1 -1
  401. package/dist/webcomponents/p-fd7c5ac5.entry.js +1 -0
  402. package/dist/webcomponents/{p-c1dabcc9.entry.js → p-feea4bfd.entry.js} +6 -6
  403. package/dist/webcomponents/p-jA8bbxkp.js +1 -0
  404. package/dist/webcomponents/{p-BEDtXmpq.js → p-o5iASgog.js} +1 -1
  405. package/dist/webcomponents/p-rzqedGq4.js +1 -0
  406. package/dist/webcomponents/p-w128-0Mj.js +1 -0
  407. package/dist/webcomponents/webcomponents.esm.js +1 -1
  408. package/package.json +1 -1
  409. package/dist/cjs/form-control-select_2.cjs.entry.js +0 -105
  410. package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +0 -234
  411. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
  412. package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +0 -166
  413. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +0 -32
  414. package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +0 -22
  415. package/dist/esm/form-control-select_2.entry.js +0 -102
  416. package/dist/esm/justifi-bank-account-form_4.entry.js +0 -229
  417. package/dist/esm/justifi-billing-information-form_2.entry.js +0 -100
  418. package/dist/esm/justifi-new-payment-method.entry.js +0 -97
  419. package/dist/esm/justifi-payment-method-options_3.entry.js +0 -162
  420. package/dist/esm/justifi-saved-payment-method.entry.js +0 -30
  421. package/dist/esm/terminals-list-params-state-DhPyCV-V.js +0 -16
  422. package/dist/module/header-3.js +0 -8
  423. package/dist/module/modular-checkout.js +0 -269
  424. package/dist/module/postal-code-form.js +0 -83
  425. package/dist/module/saved-payment-methods.js +0 -55
  426. package/dist/module/summary.js +0 -34
  427. package/dist/webcomponents/p-07e8c50a.entry.js +0 -1
  428. package/dist/webcomponents/p-0d24f707.entry.js +0 -1
  429. package/dist/webcomponents/p-0f07e5d2.entry.js +0 -1
  430. package/dist/webcomponents/p-16c567ac.entry.js +0 -1
  431. package/dist/webcomponents/p-3523e4d2.entry.js +0 -1
  432. package/dist/webcomponents/p-3c172b0a.entry.js +0 -1
  433. package/dist/webcomponents/p-55b2ccd4.entry.js +0 -1
  434. package/dist/webcomponents/p-56368e10.entry.js +0 -1
  435. package/dist/webcomponents/p-6ae0dad9.entry.js +0 -1
  436. package/dist/webcomponents/p-6ed72565.entry.js +0 -1
  437. package/dist/webcomponents/p-803b249d.entry.js +0 -1
  438. package/dist/webcomponents/p-819c5da9.entry.js +0 -1
  439. package/dist/webcomponents/p-8a2d963a.entry.js +0 -1
  440. package/dist/webcomponents/p-BRvTM0jE.js +0 -1
  441. package/dist/webcomponents/p-BdTK0wi9.js +0 -1
  442. package/dist/webcomponents/p-BeOlrj_S.js +0 -1
  443. package/dist/webcomponents/p-BjIcn6FF.js +0 -1
  444. package/dist/webcomponents/p-BoGb-Wsw.js +0 -1
  445. package/dist/webcomponents/p-Bta_r52Z.js +0 -2
  446. package/dist/webcomponents/p-BvkP2v3x.js +0 -1
  447. package/dist/webcomponents/p-C8rAwXW9.js +0 -1
  448. package/dist/webcomponents/p-CA9D3qnA.js +0 -1
  449. package/dist/webcomponents/p-CDTncSrX.js +0 -1
  450. package/dist/webcomponents/p-CGCMYhyV.js +0 -1
  451. package/dist/webcomponents/p-CJdXAC5R.js +0 -1
  452. package/dist/webcomponents/p-CbGBEkk3.js +0 -1
  453. package/dist/webcomponents/p-DHP6oxsO.js +0 -1
  454. package/dist/webcomponents/p-DT6jDcoi.js +0 -1
  455. package/dist/webcomponents/p-DVnVdicA.js +0 -1
  456. package/dist/webcomponents/p-DX1Drndq.js +0 -1
  457. package/dist/webcomponents/p-Db-JSm6-.js +0 -1
  458. package/dist/webcomponents/p-Dc10zfEZ.js +0 -1
  459. package/dist/webcomponents/p-DnX5CZFd.js +0 -1
  460. package/dist/webcomponents/p-Dw516k9e.js +0 -1
  461. package/dist/webcomponents/p-DwxSNAz7.js +0 -1
  462. package/dist/webcomponents/p-Fa3dQnb9.js +0 -1
  463. package/dist/webcomponents/p-IrS5pxMU.js +0 -1
  464. package/dist/webcomponents/p-RadC5UjV.js +0 -1
  465. package/dist/webcomponents/p-SuXHDcwL.js +0 -1
  466. package/dist/webcomponents/p-abcde13f.entry.js +0 -1
  467. package/dist/webcomponents/p-bf9afbe6.entry.js +0 -1
  468. package/dist/webcomponents/p-c4989fc1.entry.js +0 -1
  469. package/dist/webcomponents/p-cc5dfa3d.entry.js +0 -1
  470. package/dist/webcomponents/p-d039c1ea.entry.js +0 -1
  471. package/dist/webcomponents/p-d6tXI5Iw.js +0 -1
  472. package/dist/webcomponents/p-dad85acd.entry.js +0 -1
  473. package/dist/webcomponents/p-f165c5fc.entry.js +0 -1
  474. package/dist/webcomponents/p-f2d283e5.entry.js +0 -1
  475. package/dist/webcomponents/p-f55f054a.entry.js +0 -1
  476. package/dist/webcomponents/p-f7ae2df8.entry.js +0 -1
  477. package/dist/webcomponents/p-f7ef66ba.entry.js +0 -1
  478. package/dist/webcomponents/p-f8750427.entry.js +0 -1
  479. package/dist/webcomponents/p-uLUlLQpP.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as s,H as a,a as i}from"./p-Bta_r52Z.js";import{c as o,l as r,b as h,U as l,a as c}from"./p-C71Mxtso.js";import{F as f}from"./p-DT6jDcoi.js";import"./p-CZfYo5-1.js";const n=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=h),this.disabled&&(t=l),this.isFocused&&(t=c),t}render(){var t;return s(a,{key:"605b6cb9bfa7bac528ee0af9c4deb5e7b1356b93"},s("div",{key:"f8b42609971ff02c4bc147a113bb4a025d32bcd8",class:"form-group d-flex flex-column"},s("div",{key:"26c87da7b92edbb7fd41825a4e64b642778d0808",class:"d-flex align-items-start gap-2"},s("label",{key:"43ad562c323b586bf7ab0260258d8678ef3194aa",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"1e4b1fa0e9bae57b6e783fb873de38c49ae7a8a4",helpText:this.helpText})),s("select",{key:"bef2df140499a642ea9bf5bd3f6d7b558042e733",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>s("option",{value:t.value},t.label)))),s(f,{key:"99abaaa766c1270cf1cfd926320d343393b13d1d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?h:this.disabled?l:this.isFocused?c:o}render(){return s(a,{key:"fab6618fdcf4d8c5f61687ecd5edfd6783754ec8"},s("div",{key:"8f5b56c46fcd890c2601dd3b79fe60438bd561ef",class:"form-group d-flex flex-column"},s("div",{key:"2226c532baa84905d8051e2222f24105b224d42b",class:"d-flex align-items-start gap-2"},s("label",{key:"7c516dce181a938168dbe4961a90a946c723fc91",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"f4868f88e4f3e4795e25ad505e78cf8ab212623d",helpText:this.helpText})),s("input",{key:"10f02be3c0d055089697155878fedc23aa9f31e3",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),s(f,{key:"02c21c4b071903db49e2e8b786275247d75c92f9",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{n as form_control_select,d as form_control_text}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-Bta_r52Z.js";import{c as r,F as e}from"./p-DVnVdicA.js";import{b as o,a}from"./p-d6tXI5Iw.js";import{i as p,a as h}from"./p-BdTK0wi9.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import{C as n,a as l}from"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import{B as m,b as d}from"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c,J as j}from"./p-Dc10zfEZ.js";import{B as u}from"./p-IrS5pxMU.js";import{S as f}from"./p-BEDtXmpq.js";import{H as v}from"./p-BjIcn6FF.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-C8rAwXW9.js";import{B as w}from"./p-XYgDHrVL.js";import{m as C,b as g}from"./p-BxfUcCXo.js";import{B}from"./p-CO90ONTY.js";import"./p-BFTU3MAI.js";import"./p-JOSiCHl7.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-D3BIZZrc.js";import"./p-Dt-vy9Le.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-C71Mxtso.js";import"./p-NqdaxjDT.js";const x=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),y=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),X=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(y,null),s(y,null),s(y,null)),D=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){c(),this.analytics=new j(this),this.formController=new e(x),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new B}),this.patchBusiness=g({authToken:this.authToken,businessId:this.businessId,service:new B}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=d.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(X,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:w.submit}),isLoading:this.isSaving},"Submit")))))}};export{D as justifi_business_form}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-Bta_r52Z.js";import{T as a,a as i,b as r,c as h,d as o,e as d,f as p,g as c,h as n,i as m,j as f,k as b,l as j}from"./p-BvkP2v3x.js";import{T as l}from"./p-CZfYo5-1.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import{p as u}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{t as g,a as y}from"./p-BZAglFez.js";import{o as k,g as C}from"./p-BoGb-Wsw.js";import"./p-C71Mxtso.js";import"./p-RadC5UjV.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DwxSNAz7.js";const O=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=u,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new a(this.terminalOrders,this.columns,g,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"aae9cc67cadd3989bfe35b4a029f6838e0d1ab54"},e(i,{key:"e5fe37a91442392ed811478fae42686abdd0f764"},e(r,{key:"7ec41066cd103cbc7846fd957ffb7fa3f6a92318"},e(h,{key:"17291d4aa59ea50de7e2d1e6d302a4bea8c2989c"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"020a2ce88efdb3223a02a01f5eeb2d5d743e1e29"},e(d,{key:"8d104a25063bed6d617d0eda6cff9591ce9f81d2",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"1ff344e0a586b616fea6fda64c4f7a9b0071285a",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(c,{key:"97dd1548d785d0c300f8fe48ebc3db906a1977c9",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(n,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"95b22129c05b799281992eb2656a94b012cdfdda"},e(f,{key:"b17eaaf582cea7dc7732b0fedd3e5d013737111b"},e(b,{key:"1ec85f78971ed79021aa1eec527edc59c8dfbb09",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"08c14ef23e528575927210859e7cd46f21c77d7c",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{C as r,a as o}from"./p-BhrFjjAs.js";import{c as e,J as a}from"./p-Dc10zfEZ.js";import{T as p}from"./p-_P2I6GdZ.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{b as n}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as m}from"./p-NqdaxjDT.js";import{m as h,S as d}from"./p-CA9D3qnA.js";import{S as j}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{d as u}from"./p-C8EG4ZSX.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DwxSNAz7.js";import"./p-C71Mxtso.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=u,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var p,h;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return a({error:m(d.error),code:c(null===(h=d.error)||void 0===h?void 0:h.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(p=d.data)||void 0===p?void 0:p.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new p}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=h({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"fd66e35b3ef7396cda794cf025aded020c39c0e4"},i("terminals-list-core",{key:"f6452fa39029743a7858ed84ba83764ca7dfdcca",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_terminals_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import{C as o,a as r}from"./p-BhrFjjAs.js";import{C as e}from"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as p,a}from"./p-NqdaxjDT.js";import{c,J as n}from"./p-Dc10zfEZ.js";import{C as h}from"./p-DFPGAF4g.js";import{m,S as u}from"./p-CA9D3qnA.js";import{S as d}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-DLr6u3Be.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-DwxSNAz7.js";import"./p-C71Mxtso.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:c,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:a(u.error),code:p(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);c({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"0e9e50e18983dad43cfab19f2271678d3f5e6abd"},i("checkouts-list-core",{key:"6f128cc756477ff64638625d9a9ff9a5b4533948",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_checkouts_list}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as o,H as s}from"./p-Bta_r52Z.js";import{C as i}from"./p-zucQG3cz.js";import{r as a}from"./p-C71Mxtso.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";const r=class{constructor(o){t(this,o),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,r;return o(s,{key:"96a1e315728d17d67ef35f2a269210ec28b7eb24",class:"payment-method"},o("div",{key:"fb9edf8f6a5a2f76138a83f36c949ffdee4f0f01",class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick},o("form-control-radio",{key:"14388b6e3ba9e631719587b798485e4d30664639",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${i[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(r=this.paymentMethodOption)||void 0===r?void 0:r.acct_last_four}`})))}};export{r as justifi_saved_payment_method}
@@ -1 +0,0 @@
1
- import{h as t,r as s,c as e}from"./p-Bta_r52Z.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{C as p}from"./p-C71Mxtso.js";import{S as f}from"./p-C8rAwXW9.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 S}from"./p-CFpYbRwn.js";import{z as T,A as k,B as C,y as O,C as L,D as H}from"./p-JOSiCHl7.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import{C as D,a as E}from"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import{n as A}from"./p-BnjCmwMr.js";import{B}from"./p-IrS5pxMU.js";import{i as V,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-D3BIZZrc.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 F=()=>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%"}))),R=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(F,null),t(F,null),t(F,null)),U=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(R,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"]}}},X=(t,s)=>t.some((t=>t.document_type===s)),q="Please upload either a voided check or a bank statement. Only one is required.",N=(t,s)=>{const e=X(t,x.voidedCheck),i=X(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:T.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(q),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(q),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:T.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},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.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(N(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 S({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:E.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 fetch(t.presigned_url,{method:"PUT",body:t.fileString});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:E.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(N(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:E.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(R,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(R,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:A,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(R,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"]}}},G=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(V("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(R,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},J=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(R,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:A})),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{U as justifi_additional_questions_form_step_core,M 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,G as justifi_business_representative_form_step_core,J as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-D3BIZZrc.js";const t={},a={},c=s((()=>t)),{state:o,on:e}=c,p=s((()=>a)),{state:r}=p,j=()=>Object.assign(Object.assign({},o),r),b=()=>{c.reset()};export{b as c,o as f,j as g,e as o,r as p}