@justifi/webcomponents 6.0.0-rc.5 → 6.0.0-rc.7

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 (566) hide show
  1. package/dist/cjs/{Api-CPuq_15r.js → Api-y2G49jOh.js} +1 -1
  2. package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BVZHsa6Z.js} +5 -4
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
  6. package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
  7. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  8. package/dist/cjs/{business.service-C3BdUPlm.js → business.service-D5IhSyRJ.js} +2 -2
  9. package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +6 -6
  11. package/dist/cjs/{check-pkg-version-BsodhBbK.js → check-pkg-version-CO2TpemN.js} +9 -3
  12. package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-4aS641tN.js} +2 -2
  13. package/dist/cjs/{checkout.store-Cn3Jj5gi.js → checkout.store-Ctwy9ahZ.js} +4 -2
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
  15. package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
  16. package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-B_gpjGhs.js} +2 -2
  17. package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
  19. package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-64ciJH0r.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  23. package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  25. package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  30. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
  33. package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-DE5xUUpt.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-CH477rHs.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  36. package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
  37. package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  39. package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
  40. package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
  41. package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
  42. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +7 -7
  44. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  45. package/dist/cjs/justifi-apple-pay.cjs.entry.js +47 -102
  46. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +20 -20
  47. package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
  48. package/dist/cjs/justifi-business-form.cjs.entry.js +12 -12
  49. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  50. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1422 -0
  51. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -45
  52. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -7
  53. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  54. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  58. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -14
  59. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  60. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  61. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
  62. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  64. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
  65. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -12
  66. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  67. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
  68. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  69. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -12
  70. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  71. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
  72. package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
  73. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  74. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +15 -11
  75. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  76. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -8
  77. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  78. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
  79. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
  80. package/dist/cjs/loader.cjs.js +2 -2
  81. package/dist/cjs/{package-DJaHaxMC.js → package-k4ZKuvRG.js} +1 -1
  82. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  83. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  84. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  85. package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service--kzMop3L.js} +2 -2
  86. package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
  87. package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
  88. package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
  89. package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-DFRtk-T9.js} +2 -2
  90. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  91. package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-D3omzNG_.js} +2 -2
  92. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
  93. package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
  94. package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
  95. package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-DE3t0x93.js} +2 -2
  96. package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
  97. package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
  98. package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
  99. package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
  100. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  101. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
  102. package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
  103. package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B1LJitwE.js} +4 -4
  104. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  105. package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-BOvYfpQW.js} +2 -2
  106. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
  107. package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
  108. package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-DYt7exFQ.js} +2 -2
  109. package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
  110. package/dist/cjs/webcomponents.cjs.js +3 -3
  111. package/dist/collection/api/Payment.js +3 -2
  112. package/dist/collection/api/services/apple-pay.service.js +31 -72
  113. package/dist/collection/api/services/plaid.service.js +20 -0
  114. package/dist/collection/assets/plaid-icon.svg +1 -0
  115. package/dist/collection/collection-manifest.json +2 -1
  116. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  117. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  118. package/dist/collection/components/checkout/checkout.js +7 -44
  119. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  120. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  121. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  122. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  123. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  137. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  138. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  139. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -0
  140. package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
  141. package/dist/collection/components/modular-checkout/modular-checkout.js +99 -169
  142. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +8 -48
  143. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  144. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  145. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  146. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  147. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  148. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +864 -0
  149. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +123 -0
  150. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +11 -5
  151. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +3 -2
  152. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  153. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  154. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  155. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  156. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  157. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  158. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  159. package/dist/collection/components/payments-list/payments-list.js +1 -1
  160. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  161. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  162. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  163. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  164. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  165. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  166. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  167. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  168. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  169. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  170. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  171. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +64 -36
  172. package/dist/collection/store/checkout.store.js +3 -1
  173. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  177. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  179. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  180. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  184. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  185. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  186. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  187. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  188. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  189. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  190. package/dist/collection/utils/check-pkg-version.js +6 -0
  191. package/dist/docs.json +337 -70
  192. package/dist/esm/{Api-N_veT2p6.js → Api-C1I68Tfr.js} +1 -1
  193. package/dist/esm/{Refund-Di6J0oN2.js → Refund-kKW8S1h6.js} +4 -3
  194. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  195. package/dist/esm/{badge-D4ZXPFjL.js → badge-DSYSJcRy.js} +1 -1
  196. package/dist/esm/bank-account-document-form-inputs_4.entry.js +8 -8
  197. package/dist/esm/bank-account-form.entry.js +6 -6
  198. package/dist/esm/business-details-core.entry.js +4 -4
  199. package/dist/esm/{business.service-Bdvhdc_d.js → business.service-B3wlBl1x.js} +2 -2
  200. package/dist/esm/{button-C0wLsDP3.js → button-CpllL0At.js} +1 -1
  201. package/dist/esm/card-form.entry.js +6 -6
  202. package/dist/esm/{check-pkg-version-D_w9UM2s.js → check-pkg-version-ggwQhM0h.js} +9 -3
  203. package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-KDp7tISm.js} +2 -2
  204. package/dist/esm/{checkout.store-OAv_iY1u.js → checkout.store-sQSQqMAD.js} +4 -2
  205. package/dist/esm/checkouts-list-core.entry.js +10 -10
  206. package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
  207. package/dist/esm/{checkouts-table-DjGKtqoc.js → checkouts-table-QOdiLpak.js} +2 -2
  208. package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
  209. package/dist/esm/custom-popper_2.entry.js +3 -3
  210. package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-DEZEPwn-.js} +2 -2
  211. package/dist/esm/form-alert_5.entry.js +1 -1
  212. package/dist/esm/form-control-checkbox.entry.js +5 -5
  213. package/dist/esm/form-control-date.entry.js +4 -4
  214. package/dist/esm/{form-control-error-text-Bzfs_rxk.js → form-control-error-text-R7U07nTg.js} +1 -1
  215. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  216. package/dist/esm/{form-control-help-text-ueLctOBN.js → form-control-help-text-CRLH-2f7.js} +1 -1
  217. package/dist/esm/form-control-help-text.entry.js +1 -1
  218. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  219. package/dist/esm/form-control-monetary.entry.js +5 -5
  220. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  221. package/dist/esm/form-control-number.entry.js +5 -5
  222. package/dist/esm/form-control-radio.entry.js +3 -3
  223. package/dist/esm/form-control-select_2.entry.js +6 -6
  224. package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-CYASKLT7.js} +2 -2
  225. package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-E0PYy_pc.js} +3 -3
  226. package/dist/esm/gross-payment-chart-core.entry.js +4 -4
  227. package/dist/esm/{header-1-BMKEv9y6.js → header-1-3M9If0gM.js} +1 -1
  228. package/dist/esm/{header-3-C3t3m27b.js → header-3-CWa41YWq.js} +1 -1
  229. package/dist/esm/hidden-input_2.entry.js +8 -8
  230. package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
  231. package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
  232. package/dist/esm/{insurance-state-d4hjThzE.js → insurance-state-CTalqbNa.js} +2 -2
  233. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
  234. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +7 -7
  235. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  236. package/dist/esm/justifi-apple-pay.entry.js +47 -102
  237. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +20 -20
  238. package/dist/esm/justifi-business-details.entry.js +9 -9
  239. package/dist/esm/justifi-business-form.entry.js +12 -12
  240. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  241. package/dist/esm/justifi-checkout-summary_7.entry.js +1414 -0
  242. package/dist/esm/justifi-checkout.entry.js +16 -45
  243. package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
  244. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  245. package/dist/esm/justifi-config-provider.entry.js +3 -3
  246. package/dist/esm/justifi-details.entry.js +2 -2
  247. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  248. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  249. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -14
  250. package/dist/esm/justifi-gross-payment-chart.entry.js +8 -8
  251. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  252. package/dist/esm/justifi-owner-form_3.entry.js +7 -7
  253. package/dist/esm/justifi-payment-details.entry.js +10 -10
  254. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  255. package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
  256. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  257. package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
  258. package/dist/esm/justifi-payments-list.entry.js +13 -13
  259. package/dist/esm/justifi-payout-details.entry.js +9 -9
  260. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  261. package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
  262. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  263. package/dist/esm/justifi-refund-payment.entry.js +12 -12
  264. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  265. package/dist/esm/justifi-season-interruption-insurance.entry.js +15 -11
  266. package/dist/esm/justifi-skeleton.entry.js +4 -4
  267. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  268. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  269. package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
  270. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  271. package/dist/esm/loader.js +3 -3
  272. package/dist/esm/{package-78C4rMuv.js → package-VsM6ERNV.js} +1 -1
  273. package/dist/esm/pagination-menu.entry.js +1 -1
  274. package/dist/esm/payment-details-core.entry.js +14 -14
  275. package/dist/esm/payment-method-option.entry.js +3 -3
  276. package/dist/esm/{payment.service-BWO84KlP.js → payment.service-uJpJaX2Z.js} +2 -2
  277. package/dist/esm/payments-list-core.entry.js +11 -11
  278. package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
  279. package/dist/esm/{payments-status-1yRdTNeS.js → payments-status-5orNU2Rd.js} +2 -2
  280. package/dist/esm/{payments-table-8RADYkma.js → payments-table-B0uyodyJ.js} +2 -2
  281. package/dist/esm/payout-details-core.entry.js +10 -10
  282. package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-ClUgtbbb.js} +2 -2
  283. package/dist/esm/payouts-list-core.entry.js +11 -11
  284. package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
  285. package/dist/esm/{payouts-status-BqsQVtBp.js → payouts-status-CZPwa2AE.js} +2 -2
  286. package/dist/esm/{payouts-table-DPw7yIx8.js → payouts-table-CaCSX_0q.js} +2 -2
  287. package/dist/esm/{skeleton-BmTjpTYa.js → skeleton-qMb0_Cjy.js} +1 -1
  288. package/dist/esm/{spinner-YGDOI-CS.js → spinner-DUzyWLhj.js} +1 -1
  289. package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
  290. package/dist/esm/{table-ybHxxc9f.js → table-Br3n9Xu-.js} +2 -2
  291. package/dist/esm/table-filters-menu.entry.js +3 -3
  292. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  293. package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
  294. package/dist/esm/{terminal-orders-table-D-xP5WuM.js → terminal-orders-table-DPtof5Zb.js} +4 -4
  295. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  296. package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-ClNtE3e-.js} +2 -2
  297. package/dist/esm/terminals-list-core.entry.js +10 -10
  298. package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
  299. package/dist/esm/{terminals-table-DVAPCgEr.js → terminals-table-ClkR_jrC.js} +2 -2
  300. package/dist/esm/{utils-DG5aMFmf.js → utils-Dg6gMUTv.js} +1 -1
  301. package/dist/esm/webcomponents.js +4 -4
  302. package/dist/module/Analytics.js +6 -0
  303. package/dist/module/ModularCheckout.js +30 -0
  304. package/dist/module/Refund.js +4 -3
  305. package/dist/module/additional-statement.js +1 -1
  306. package/dist/module/bank-account-billing-form-simple.js +1 -1
  307. package/dist/module/bank-account-form.js +2 -2
  308. package/dist/module/bank-account.js +2 -2
  309. package/dist/module/business-bank-account-form-step-core.js +1 -1
  310. package/dist/module/cancellation-policy.js +1 -1
  311. package/dist/module/card-billing-form-simple.js +1 -1
  312. package/dist/module/card-form.js +2 -2
  313. package/dist/module/card-form2.js +2 -2
  314. package/dist/module/checkout.store.js +3 -1
  315. package/dist/module/checkouts-list-core2.js +1 -1
  316. package/dist/module/custom-popper2.js +2 -2
  317. package/dist/module/customer-details.js +1 -1
  318. package/dist/module/dispute-management-core.js +1 -1
  319. package/dist/module/dispute-notification.js +1 -1
  320. package/dist/module/dispute-response-core.js +1 -1
  321. package/dist/module/dispute-response.js +1 -1
  322. package/dist/module/duplicate-charge.js +1 -1
  323. package/dist/module/electronic-evidence.js +1 -1
  324. package/dist/module/form-control-checkbox2.js +2 -2
  325. package/dist/module/form-control-date2.js +2 -2
  326. package/dist/module/form-control-file-v22.js +1 -1
  327. package/dist/module/form-control-file2.js +2 -2
  328. package/dist/module/form-control-monetary2.js +2 -2
  329. package/dist/module/form-control-number-masked2.js +2 -2
  330. package/dist/module/form-control-number.js +2 -2
  331. package/dist/module/form-control-radio2.js +2 -2
  332. package/dist/module/form-control-select2.js +2 -2
  333. package/dist/module/form-control-text2.js +2 -2
  334. package/dist/module/form-control-textarea2.js +2 -2
  335. package/dist/module/get-payment-details.js +1 -1
  336. package/dist/module/gross-payment-chart-core2.js +1 -1
  337. package/dist/module/hidden-input2.js +1 -1
  338. package/dist/module/iframe-input2.js +3 -3
  339. package/dist/module/justifi-apple-pay.js +39 -99
  340. package/dist/module/justifi-button2.js +1 -1
  341. package/dist/module/justifi-checkout.js +51 -76
  342. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  343. package/dist/module/justifi-checkouts-list.js +2 -2
  344. package/dist/module/justifi-dispute-management.js +1 -1
  345. package/dist/module/justifi-header2.js +1 -1
  346. package/dist/module/justifi-order-terminals.js +2 -2
  347. package/dist/module/justifi-payment-transactions-list.js +2 -2
  348. package/dist/module/justifi-payments-list-filters.js +2 -2
  349. package/dist/module/justifi-payments-list.js +2 -2
  350. package/dist/module/justifi-payout-details.js +1 -1
  351. package/dist/module/justifi-payout-transactions-list.js +2 -2
  352. package/dist/module/justifi-payouts-list-filters.js +2 -2
  353. package/dist/module/justifi-payouts-list.js +2 -2
  354. package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
  355. package/dist/module/justifi-plaid-payment-method.js +6 -0
  356. package/dist/module/justifi-refund-payment.js +1 -1
  357. package/dist/module/justifi-saved-payment-method.js +1 -1
  358. package/dist/module/justifi-season-interruption-insurance.js +4 -0
  359. package/dist/module/justifi-skeleton.js +1 -1
  360. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  361. package/dist/module/justifi-terminal-orders-list.js +2 -2
  362. package/dist/module/justifi-terminals-list-filters.js +2 -2
  363. package/dist/module/justifi-terminals-list.js +2 -2
  364. package/dist/module/modular-checkout.js +97 -151
  365. package/dist/module/package.js +1 -1
  366. package/dist/module/payment-details-core2.js +8 -8
  367. package/dist/module/payment-method-option.js +1 -1
  368. package/dist/module/payments-list-core2.js +1 -1
  369. package/dist/module/payout-details-core2.js +3 -3
  370. package/dist/module/payouts-list-core2.js +1 -1
  371. package/dist/module/plaid-payment-method.js +693 -0
  372. package/dist/module/product-or-service.js +1 -1
  373. package/dist/module/refund-policy.js +1 -1
  374. package/dist/module/save-new-payment-method.js +1 -1
  375. package/dist/module/saved-payment-methods.js +11 -5
  376. package/dist/module/sezzle-payment-method.js +3 -2
  377. package/dist/module/shipping-details.js +1 -1
  378. package/dist/module/summary.js +1 -1
  379. package/dist/module/table-filters-menu2.js +1 -1
  380. package/dist/module/terminal-orders-list-core2.js +2 -2
  381. package/dist/module/terminal-quantity-selector2.js +1 -1
  382. package/dist/module/terminals-list-core2.js +1 -1
  383. package/dist/module/tokenize-payment-method.js +46 -37
  384. package/dist/types/api/ApplePay.d.ts +2 -2
  385. package/dist/types/api/Checkout.d.ts +4 -0
  386. package/dist/types/api/Payment.d.ts +3 -4
  387. package/dist/types/api/services/apple-pay.service.d.ts +4 -15
  388. package/dist/types/api/services/plaid.service.d.ts +12 -0
  389. package/dist/types/components/checkout/checkout.d.ts +1 -7
  390. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +23 -0
  391. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -6
  392. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -1
  393. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
  394. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
  395. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
  396. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +7 -5
  397. package/dist/types/components.d.ts +45 -11
  398. package/dist/types/store/checkout.store.d.ts +4 -1
  399. package/dist/webcomponents/p-040e8524.entry.js +1 -0
  400. package/dist/webcomponents/p-0490c0f4.entry.js +1 -0
  401. package/dist/webcomponents/{p-6df132e6.entry.js → p-071208e4.entry.js} +1 -1
  402. package/dist/webcomponents/p-08270def.entry.js +1 -0
  403. package/dist/webcomponents/{p-776699bd.entry.js → p-0ea1e5e6.entry.js} +1 -1
  404. package/dist/webcomponents/{p-2ab0a2b3.entry.js → p-0eba50d0.entry.js} +1 -1
  405. package/dist/webcomponents/{p-DD74a16D.js → p-0mMX1Zv4.js} +1 -1
  406. package/dist/webcomponents/{p-7b9fa1fb.entry.js → p-14ff3155.entry.js} +1 -1
  407. package/dist/webcomponents/{p-e8a198fa.entry.js → p-15705e8a.entry.js} +1 -1
  408. package/dist/webcomponents/p-1f55a465.entry.js +1 -0
  409. package/dist/webcomponents/{p-3ffe1e2e.entry.js → p-22ac6133.entry.js} +1 -1
  410. package/dist/webcomponents/{p-76a95d07.entry.js → p-28618e6f.entry.js} +1 -1
  411. package/dist/webcomponents/p-3aecd2cd.entry.js +1 -0
  412. package/dist/webcomponents/{p-a70bc148.entry.js → p-3bf63d1e.entry.js} +1 -1
  413. package/dist/webcomponents/{p-4a1198ee.entry.js → p-3c6fa232.entry.js} +1 -1
  414. package/dist/webcomponents/p-3caa786e.entry.js +1 -0
  415. package/dist/webcomponents/{p-5afbfafb.entry.js → p-3e667b07.entry.js} +1 -1
  416. package/dist/webcomponents/p-4150309d.entry.js +1 -0
  417. package/dist/webcomponents/{p-dc245644.entry.js → p-4213d10e.entry.js} +4 -4
  418. package/dist/webcomponents/{p-4c994761.entry.js → p-44450a94.entry.js} +1 -1
  419. package/dist/webcomponents/p-4723f35b.entry.js +1 -0
  420. package/dist/webcomponents/p-4d9fe160.entry.js +1 -0
  421. package/dist/webcomponents/{p-ab308ee3.entry.js → p-54ca3070.entry.js} +1 -1
  422. package/dist/webcomponents/p-5580e6ca.entry.js +1 -0
  423. package/dist/webcomponents/p-57dde36e.entry.js +1 -0
  424. package/dist/webcomponents/p-5bc6f5ca.entry.js +1 -0
  425. package/dist/webcomponents/p-5f87add5.entry.js +1 -0
  426. package/dist/webcomponents/{p-1b892b3a.entry.js → p-60206d9c.entry.js} +1 -1
  427. package/dist/webcomponents/{p-5ad70aae.entry.js → p-613421d4.entry.js} +1 -1
  428. package/dist/webcomponents/{p-b04cc606.entry.js → p-6255c685.entry.js} +1 -1
  429. package/dist/webcomponents/{p-bbbb9225.entry.js → p-6d610c1e.entry.js} +1 -1
  430. package/dist/webcomponents/p-7089fb85.entry.js +1 -0
  431. package/dist/webcomponents/{p-03c7cee8.entry.js → p-70f51444.entry.js} +1 -1
  432. package/dist/webcomponents/p-728c60b4.entry.js +1 -0
  433. package/dist/webcomponents/{p-c62e23c1.entry.js → p-72dda22b.entry.js} +1 -1
  434. package/dist/webcomponents/{p-d0729065.entry.js → p-7890f311.entry.js} +1 -1
  435. package/dist/webcomponents/{p-c6860f60.entry.js → p-7cf87637.entry.js} +1 -1
  436. package/dist/webcomponents/p-82a15155.entry.js +1 -0
  437. package/dist/webcomponents/p-87884ca5.entry.js +1 -0
  438. package/dist/webcomponents/{p-9009dede.entry.js → p-884fce8b.entry.js} +1 -1
  439. package/dist/webcomponents/p-88905a54.entry.js +1 -0
  440. package/dist/webcomponents/p-8990707a.entry.js +1 -0
  441. package/dist/webcomponents/p-8b7cbdbf.entry.js +1 -0
  442. package/dist/webcomponents/p-8cca8903.entry.js +1 -0
  443. package/dist/webcomponents/{p-a406bf1a.entry.js → p-8ff839a4.entry.js} +1 -1
  444. package/dist/webcomponents/{p-a9d2dd5e.entry.js → p-95cbb655.entry.js} +1 -1
  445. package/dist/webcomponents/{p-4a79c737.entry.js → p-97c0dde4.entry.js} +1 -1
  446. package/dist/webcomponents/{p-fbaf62a5.entry.js → p-9846b23d.entry.js} +1 -1
  447. package/dist/webcomponents/p-98cffba9.entry.js +1 -0
  448. package/dist/webcomponents/{p-08a5cc2f.entry.js → p-9a2c044f.entry.js} +1 -1
  449. package/dist/webcomponents/p-9f5c9e41.entry.js +1 -0
  450. package/dist/webcomponents/p-B5Rc83j1.js +1 -0
  451. package/dist/webcomponents/p-B71k50jz.js +1 -0
  452. package/dist/webcomponents/p-B8iBcmNu.js +1 -0
  453. package/dist/webcomponents/p-BEPUC3Po.js +1 -0
  454. package/dist/webcomponents/p-BP7op0vq.js +1 -0
  455. package/dist/webcomponents/{p-I8XpD1TX.js → p-BPtcGAzB.js} +1 -1
  456. package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
  457. package/dist/webcomponents/{p-BUadwxkh.js → p-BRLwUSZk.js} +1 -1
  458. package/dist/webcomponents/p-BSt6p1oq.js +1 -0
  459. package/dist/webcomponents/p-BY1mRAvj.js +1 -0
  460. package/dist/webcomponents/{p-nWGo6sHu.js → p-Bb-6bNcq.js} +1 -1
  461. package/dist/webcomponents/p-BbZwa5UI.js +1 -0
  462. package/dist/webcomponents/{p-BZzESzqz.js → p-BfM6X7lF.js} +1 -1
  463. package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
  464. package/dist/webcomponents/{p-DWUnL_zj.js → p-Bu1jU017.js} +1 -1
  465. package/dist/webcomponents/{p-CP_tg-uH.js → p-C5id7s_l.js} +1 -1
  466. package/dist/webcomponents/{p-HAk7yBNq.js → p-CB0mCq1M.js} +1 -1
  467. package/dist/webcomponents/p-CaAVuW6B.js +1 -0
  468. package/dist/webcomponents/p-CpaS1Lex.js +1 -0
  469. package/dist/webcomponents/{p-Bpcb3SsP.js → p-CvG-itHC.js} +1 -1
  470. package/dist/webcomponents/{p-DhRb39as.js → p-CxqAv6yr.js} +1 -1
  471. package/dist/webcomponents/{p-BySyDTv5.js → p-D2_iJUrZ.js} +1 -1
  472. package/dist/webcomponents/p-DAED83Ew.js +1 -0
  473. package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
  474. package/dist/webcomponents/p-DDUmOl3v.js +1 -0
  475. package/dist/webcomponents/{p-BhdBpAn9.js → p-DGmp4ErD.js} +1 -1
  476. package/dist/webcomponents/p-DIDloHpm.js +1 -0
  477. package/dist/webcomponents/{p-DuXN7Akd.js → p-DNo0OPOP.js} +1 -1
  478. package/dist/webcomponents/{p-DBsw4qpn.js → p-DVBbk00Z.js} +1 -1
  479. package/dist/webcomponents/{p-Bb6FBEPP.js → p-Dc1CS9Mi.js} +1 -1
  480. package/dist/webcomponents/p-Dgflaz6J.js +1 -0
  481. package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
  482. package/dist/webcomponents/p-DsZZxRXY.js +1 -0
  483. package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
  484. package/dist/webcomponents/p-VsM6ERNV.js +1 -0
  485. package/dist/webcomponents/p-a1d3bb81.entry.js +1 -0
  486. package/dist/webcomponents/p-a9957ca5.entry.js +1 -0
  487. package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
  488. package/dist/webcomponents/p-b21ncS7l.js +1 -0
  489. package/dist/webcomponents/p-b2bbf609.entry.js +1 -0
  490. package/dist/webcomponents/{p-eca1e808.entry.js → p-b4e5470a.entry.js} +1 -1
  491. package/dist/webcomponents/p-c44325f8.entry.js +1 -0
  492. package/dist/webcomponents/{p-c029fc20.entry.js → p-c7f61bcb.entry.js} +1 -1
  493. package/dist/webcomponents/p-c874ca2b.entry.js +1 -0
  494. package/dist/webcomponents/p-caac63bf.entry.js +1 -0
  495. package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
  496. package/dist/webcomponents/p-d53004c8.entry.js +1 -0
  497. package/dist/webcomponents/p-d72e8541.entry.js +1 -0
  498. package/dist/webcomponents/{p-e00fd71d.entry.js → p-dd81b598.entry.js} +1 -1
  499. package/dist/webcomponents/p-eP3fmhta.js +1 -0
  500. package/dist/webcomponents/{p-134d5029.entry.js → p-eae6bfe7.entry.js} +1 -1
  501. package/dist/webcomponents/{p-fcb6e870.entry.js → p-f13ae573.entry.js} +1 -1
  502. package/dist/webcomponents/{p-afc83e27.entry.js → p-f1cba43c.entry.js} +1 -1
  503. package/dist/webcomponents/p-f680e617.entry.js +1 -0
  504. package/dist/webcomponents/p-fd4ffaa2.entry.js +1 -0
  505. package/dist/webcomponents/{p-wyEq9Pa1.js → p-qWQmu-fb.js} +1 -1
  506. package/dist/webcomponents/p-sw5RO19U.js +1 -0
  507. package/dist/webcomponents/webcomponents.esm.js +1 -1
  508. package/package.json +1 -1
  509. package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -804
  510. package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
  511. package/dist/esm/justifi-checkout-summary_6.entry.js +0 -797
  512. package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
  513. package/dist/webcomponents/p-0aee6da6.entry.js +0 -1
  514. package/dist/webcomponents/p-0e290b6e.entry.js +0 -1
  515. package/dist/webcomponents/p-0e64cd09.entry.js +0 -1
  516. package/dist/webcomponents/p-1246b999.entry.js +0 -1
  517. package/dist/webcomponents/p-12c312a0.entry.js +0 -1
  518. package/dist/webcomponents/p-1c0c1d7b.entry.js +0 -1
  519. package/dist/webcomponents/p-1e206c92.entry.js +0 -1
  520. package/dist/webcomponents/p-1ea7868a.entry.js +0 -1
  521. package/dist/webcomponents/p-281e36be.entry.js +0 -1
  522. package/dist/webcomponents/p-2a0a907d.entry.js +0 -1
  523. package/dist/webcomponents/p-32cecfaf.entry.js +0 -1
  524. package/dist/webcomponents/p-48f42f07.entry.js +0 -1
  525. package/dist/webcomponents/p-5510b57c.entry.js +0 -1
  526. package/dist/webcomponents/p-5a5f07be.entry.js +0 -1
  527. package/dist/webcomponents/p-5acd6add.entry.js +0 -1
  528. package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
  529. package/dist/webcomponents/p-6974a44c.entry.js +0 -1
  530. package/dist/webcomponents/p-6f2b41f5.entry.js +0 -1
  531. package/dist/webcomponents/p-6f9755cc.entry.js +0 -1
  532. package/dist/webcomponents/p-70cd4cbd.entry.js +0 -1
  533. package/dist/webcomponents/p-7288473f.entry.js +0 -1
  534. package/dist/webcomponents/p-78C4rMuv.js +0 -1
  535. package/dist/webcomponents/p-7WIgS5RM.js +0 -1
  536. package/dist/webcomponents/p-98939b74.entry.js +0 -1
  537. package/dist/webcomponents/p-BVD7g3cE.js +0 -1
  538. package/dist/webcomponents/p-BXKEChoo.js +0 -1
  539. package/dist/webcomponents/p-BmFoKOM3.js +0 -1
  540. package/dist/webcomponents/p-Bt388eye.js +0 -1
  541. package/dist/webcomponents/p-BtOB_CaO.js +0 -1
  542. package/dist/webcomponents/p-C0AHrswP.js +0 -1
  543. package/dist/webcomponents/p-CLwzqWk2.js +0 -1
  544. package/dist/webcomponents/p-CVQyw7ao.js +0 -1
  545. package/dist/webcomponents/p-D48iERjQ.js +0 -1
  546. package/dist/webcomponents/p-D7eeJWA-.js +0 -1
  547. package/dist/webcomponents/p-DKRXPZKS.js +0 -1
  548. package/dist/webcomponents/p-DOd8HaWV.js +0 -1
  549. package/dist/webcomponents/p-DaDsBt65.js +0 -1
  550. package/dist/webcomponents/p-DcE8SQPv.js +0 -1
  551. package/dist/webcomponents/p-Drz6LnIw.js +0 -1
  552. package/dist/webcomponents/p-UD2JhYS2.js +0 -1
  553. package/dist/webcomponents/p-WEguiGt1.js +0 -1
  554. package/dist/webcomponents/p-a1483fbd.entry.js +0 -1
  555. package/dist/webcomponents/p-a1a8f6bd.entry.js +0 -1
  556. package/dist/webcomponents/p-a4cb5604.entry.js +0 -1
  557. package/dist/webcomponents/p-b10e34b0.entry.js +0 -1
  558. package/dist/webcomponents/p-b41d2b8f.entry.js +0 -1
  559. package/dist/webcomponents/p-b8f63e28.entry.js +0 -1
  560. package/dist/webcomponents/p-bd560810.entry.js +0 -1
  561. package/dist/webcomponents/p-cbfc8269.entry.js +0 -1
  562. package/dist/webcomponents/p-dad15b15.entry.js +0 -1
  563. package/dist/webcomponents/p-e6ca1872.entry.js +0 -1
  564. package/dist/webcomponents/p-e70a5f50.entry.js +0 -1
  565. package/dist/webcomponents/p-fb1904d2.entry.js +0 -1
  566. package/dist/webcomponents/p-pska2q1M.js +0 -1
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-Bn7inNWG.js";import{c as i}from"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{g as r}from"./p-BP7op0vq.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c,J as p}from"./p-CxqAv6yr.js";import{g as d,a as h}from"./p-D2muobcE.js";import{P as l}from"./p-BEPUC3Po.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as j,g as v,h as T,i as g,j as C,k}from"./p-CB0mCq1M.js";import{S as D}from"./p-DxqCFDtF.js";import{T as P}from"./p-CZfYo5-1.js";import{a as I}from"./p-zdIeCUeh.js";import{N as S,O as q}from"./p-RvUQ__Pq.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-VsM6ERNV.js";import"./p-BPtcGAzB.js";import"./p-BbZwa5UI.js";const B={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},E={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},x={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},E[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},I(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},I(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},I(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.updated_at,{showTime:!0})))},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,B,x),c(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:n,final:c})=>{var p;try{const c=await a.fetchPayoutTransactions(t,e,i);c.error?n({error:h(c.error),code:d(null===(p=c.error)||void 0===p?void 0:p.code),severity:s.ERROR}):o({balanceTransactions:c.data.map((t=>new r(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=d(null==t?void 0:t.code);n({error:h(t),code:e,severity:s.ERROR})}finally{c()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"0627b879f2139685ebdbb879d6e13ef99a466654"},t(u,{key:"33fa60d6acc25540e81465500c454f69a2e132ad"},t(m,{key:"5bce0713f04022cbfad1c7e053e60a6a340a37e2"},t(b,{key:"226dda187d5002c9bd48c64d9396ae3736dbbeb2"},t(y,{key:"d7726ab935ce064696fb017b10829120f2e8717f"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"a6d46402bd1ba1f4bd820b0badd74d038b82e9ba"},t(w,{key:"5958446a6844c2134d8ae8608b1222a5ade9dc88",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"f64911e09fa1d587dbbdf755ae7b9aabc4b31448",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(v,{key:"8c1422f9ab251ad648396bf42e6751a50a8a9810",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"4538b7850a81a7c17cf4a7b39248d1c29552c9ee"},t(C,{key:"bf332e1eef41f832aff8fb3d84de891c6fc44cb4"},t(k,{key:"823e4ce33a986a57aa29f41ec3f09987d8a03a22",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"37aa4a533e9ebdf8df92660b6ebbb1f8dba96eea",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payout_transactions_list}
@@ -1 +1 @@
1
- import{r as s,c as t,h as r}from"./p-kpoIU4v_.js";import{A as o}from"./p-I8XpD1TX.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a}from"./p-D2muobcE.js";import{E as n}from"./p-DuXN7Akd.js";import{c as h,J as c}from"./p-DhRb39as.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-78C4rMuv.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:a(h.error),code:p(null===(n=h.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(h.data)}catch(s){const t=p(null==s?void 0:s.code);e({error:a(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
1
+ import{r as s,c as t,h as r}from"./p-Bn7inNWG.js";import{A as o}from"./p-BPtcGAzB.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a}from"./p-D2muobcE.js";import{E as n}from"./p-DNo0OPOP.js";import{c as h,J as c}from"./p-CxqAv6yr.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-VsM6ERNV.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:a(h.error),code:p(null===(n=h.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(h.data)}catch(s){const t=p(null==s?void 0:s.code);e({error:a(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
@@ -1 +1 @@
1
- import{r as l,h as i,H as t}from"./p-kpoIU4v_.js";import{c as e,D as s}from"./p-DuXN7Akd.js";import{l as d,s as v,m as o}from"./p-zdIeCUeh.js";import"./p-RvUQ__Pq.js";import"./p-HXpYMWUU.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||d(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:v(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,v,o,a,u,n;return!this.legalAddress||d(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(v=this.legalAddress)||void 0===v?void 0:v.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,d,v,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.line2}),i(e,{title:"City",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,v,a,u,n,r,c,h,m,p,b,g,w;return!this.representative||d(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(v=this.representative)||void 0===v?void 0:v.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(b=this.representative)||void 0===b?void 0:b.email}),i(e,{title:"Phone",value:null===(g=this.representative)||void 0===g?void 0:g.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(w=this.representative)||void 0===w?void 0:w.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
1
+ import{r as l,h as i,H as t}from"./p-Bn7inNWG.js";import{c as e,D as s}from"./p-DNo0OPOP.js";import{l as d,s as v,m as o}from"./p-zdIeCUeh.js";import"./p-RvUQ__Pq.js";import"./p-HXpYMWUU.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||d(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:v(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,v,o,a,u,n;return!this.legalAddress||d(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(v=this.legalAddress)||void 0===v?void 0:v.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,d,v,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.line2}),i(e,{title:"City",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,v,a,u,n,r,c,h,m,p,b,g,w;return!this.representative||d(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(v=this.representative)||void 0===v?void 0:v.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(b=this.representative)||void 0===b?void 0:b.email}),i(e,{title:"Phone",value:null===(g=this.representative)||void 0===g?void 0:g.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(w=this.representative)||void 0===w?void 0:w.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-Bn7inNWG.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as d}from"./p-DsZZxRXY.js";import{f as l,g as r,t as f,h as c,j as p,k as o}from"./p-RvUQ__Pq.js";import{S as n}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{c as b,a as m}from"./p-zdIeCUeh.js";import"./p-BFTU3MAI.js";import"./p-CpaS1Lex.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=b(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(i[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(n,{key:"0c73ae99756262e6ba40e72276b511070af4e68a"},a("table-filters-menu",{key:"743c956a0048506afd183b32a21839896904ab20",params:e,clearParams:d,part:l},a("div",{key:"a1ef2ace492cec39e7a92776f92ad6c77e845124",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"12777eec67882e8873c5670084abc359134af545",class:"p-2"},a("form-control-text",{key:"9717940d68bad26545c05e681875862d816f5903",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:r})),a("div",{key:"c4f3f6fc3eba84df52a90459c1ba93770d726def",class:"p-2"},a("form-control-text",{key:"3feccdbf8465ee62b226534e40bcd905fffb912b",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:f})),a("div",{key:"d256237c10018161f2466d764770fae50f22697b",class:"p-2"},a("form-control-select",{key:"293c79070436d91f58ea346eaf565b0b105af448",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:c})),a("div",{key:"a14db9644e4af3dafeae4cabcf16f1651f75bee6",class:"p-2"},a("form-control-date",{key:"5c9aaffbab312307585c1a9c1537e0c1be823c5d",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"8eedf4c52906f5c3f1a194737473a25afa9a7b7f",class:"p-2"},a("form-control-date",{key:"e0201787ad957d0df44289bab71fe9cc0517c49a",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:o})))))}};export{u as justifi_payments_list_filters}
@@ -1 +1 @@
1
- import{h as e,r as i,H as a}from"./p-kpoIU4v_.js";import{S as t}from"./p-DOd8HaWV.js";import{w as s,c as d}from"./p-9y5MOK55.js";import"./p-RvUQ__Pq.js";import"./p-7WIgS5RM.js";const c=i=>{const{isReady:a}=i;return a?null:e("div",{class:"container-fluid p-0"},e("div",{class:"mb-3"},e(t,{height:"18px",width:"100px"}),e(t,{height:"36px"})),e("div",{class:"row"},e("div",{class:"col-4 align-content-end"},e(t,{height:"18px",width:"80px"}),e(t,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(t,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(t,{height:"18px",width:"30px"}),e(t,{height:"36px"}))))},r=class{constructor(e){i(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=d.iframeOrigin}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((i=>{e.addEventListener("iframeLoaded",(()=>{i()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.cardNumberIframeElement.validate(),i=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),t=await this.cvvIframeElement.validate();return e&&i&&a&&t}async tokenize(e,i,a){return this.cardNumberIframeElement.tokenize(e,i,a)}render(){return e(a,{key:"c43351c7ab1eb6bf413f162634f55007798bb076"},e(c,{key:"f0a29497de2270108868e892d666b552dea27a1e",isReady:this.isReady}),e("div",{key:"2734b111c1f2f2275435d2141445ac30482946be",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9",class:"mb-3"},e("iframe-input",{key:"9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),e("div",{key:"080769719aa9b0d6abc9b18c46247eecd6428833",class:"d-flex align-items-start"},e("div",{key:"b3a825ed849ec0032d4a9018537f8ffab4b93ca3",class:"flex-fill me-3"},e("iframe-input",{key:"5f60eb2d3b3e1303e1a0f6a3f0cd60270bb2d0b8",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Exp. Month",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),e("div",{key:"cfd000502f10593b59608e13f5de7911c546d030",class:"flex-fill me-3"},e("iframe-input",{key:"ab2a45264fe5890c171d03000f30720eafe354b5",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"Exp. Year",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),e("div",{key:"637516bfd8030e56c9b1e97edfd3a635edb95f20",class:"flex-fill"},e("iframe-input",{key:"e407cc2470841fe12b1bdb84bbc8ecfb0165c72d",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}};export{r as card_form}
1
+ import{h as e,r as i,H as a}from"./p-Bn7inNWG.js";import{S as t}from"./p-CaAVuW6B.js";import{w as s,c as d}from"./p-DhGNCW2f.js";import"./p-RvUQ__Pq.js";import"./p-CpaS1Lex.js";const r=i=>{const{isReady:a}=i;return a?null:e("div",{class:"container-fluid p-0"},e("div",{class:"mb-3"},e(t,{height:"18px",width:"100px"}),e(t,{height:"36px"})),e("div",{class:"row"},e("div",{class:"col-4 align-content-end"},e(t,{height:"18px",width:"80px"}),e(t,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(t,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(t,{height:"18px",width:"30px"}),e(t,{height:"36px"}))))},c=class{constructor(e){i(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=d.iframeOrigin}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((i=>{e.addEventListener("iframeLoaded",(()=>{i()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.cardNumberIframeElement.validate(),i=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),t=await this.cvvIframeElement.validate();return e&&i&&a&&t}async tokenize(e,i,a){return this.cardNumberIframeElement.tokenize(e,i,a)}render(){return e(a,{key:"d5e5c74e5e3be0bb5a9603a89724d23cc6216d6c"},e(r,{key:"a1e90d74ca6e72678255590a94937932a9520046",isReady:this.isReady}),e("div",{key:"bb303552ed581492de8ebb0d83cea751ddd90a09",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"9641c97124a504729b1eba3e8704d8fd3fda7fde",class:"mb-3"},e("iframe-input",{key:"a5a73c00c2ac0cd12ef98b155a40108248529fb7",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),e("div",{key:"dad1b83f028745aa8b85a8e552f702d5daa3ac6f",class:"d-flex align-items-start"},e("div",{key:"5de05029d93a81d5ad8c799135863e8cdd1e8619",class:"flex-fill me-3"},e("iframe-input",{key:"4ec81652e51187bbaa25600299f8cb89f0c41c5c",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Exp. Month",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),e("div",{key:"0280f01efdbbfa3542036fa4ee7baec130e42688",class:"flex-fill me-3"},e("iframe-input",{key:"b13dba61a6bd18529e70987029592b5b7307e74b",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"Exp. Year",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),e("div",{key:"edf1e383a148a2d535c4733a2b5af2d8e31e2f43",class:"flex-fill"},e("iframe-input",{key:"d63e832db1a089f36909db23cacb110f6571535c",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}};export{c as card_form}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as p}from"./p-DhRb39as.js";import{P as a}from"./p-5rVtZ2GJ.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{d as n}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as d}from"./p-Bpcb3SsP.js";import{S as j}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-wyEq9Pa1.js";import"./p-78C4rMuv.js";import"./p-I8XpD1TX.js";import"./p-zdIeCUeh.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CP_tg-uH.js";import"./p-DKRXPZKS.js";import"./p-RvUQ__Pq.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else 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=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"b668ecfbc78e07ffeb5830a10f7a8675d15c5c97"},i("payouts-list-core",{key:"ae082078d735cafc42684db978e3e9dc48d75dd4",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
1
+ import{r as t,c as s,h as i}from"./p-Bn7inNWG.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as p}from"./p-CxqAv6yr.js";import{P as a}from"./p-BEPUC3Po.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{d as n}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as d}from"./p-CvG-itHC.js";import{S as j}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-qWQmu-fb.js";import"./p-VsM6ERNV.js";import"./p-BPtcGAzB.js";import"./p-zdIeCUeh.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C5id7s_l.js";import"./p-DDUmOl3v.js";import"./p-RvUQ__Pq.js";const v=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else 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=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"3634ad59f6812d546780dd367c4ccb8e886283ed"},i("payouts-list-core",{key:"3172f765100e19c25f717256e5e7ed0b139c1bc1",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{v as justifi_payouts_list}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,H as i}from"./p-Bn7inNWG.js";import{c as s,F as c}from"./p-CR9D6mKt.js";import{k as r,l as d,m as n,n as l,q as o,y as h}from"./p-CYBR4K2p.js";import{r as f,av as b}from"./p-RvUQ__Pq.js";import{S as u}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{S as m}from"./p-CaAVuW6B.js";import{c as p,J as y}from"./p-CxqAv6yr.js";import{w as v,c as k}from"./p-DhGNCW2f.js";import{H as g}from"./p-BSt6p1oq.js";import{n as _}from"./p-BnjCmwMr.js";import{S as j}from"./p-BX8GieXu.js";import{B as x}from"./p-DD0Mvpeu.js";import{c as w}from"./p-DAED83Ew.js";import"./p-BFTU3MAI.js";import"./p-yH3TC3ZQ.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-VsM6ERNV.js";import"./p-BPtcGAzB.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-CpaS1Lex.js";const V=class{constructor(a){e(this,a),this.radioClick=t(this,"radio-click"),this.checked=!1,this.hidden=!1,this.handleClick=()=>{this.radioClick.emit(this.value)}}render(){return a(u,{key:"492a73e2bab02c04aa8733ce0b9ab801e5ff8875"},a("div",{key:"c095a98ba11739b85ece4c7bb0e0c30e7e08ec7b",class:`radio-list-item p-3 ${this.class||""}`,part:f,onClick:this.handleClick,hidden:this.hidden},a("form-control-radio",{key:"050ed9e552c4a8bf4462e544d3496bed356e7c06",name:this.name,value:this.value,checked:this.checked,label:this.label,inputHandler:()=>null})))}},C=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c(s({name:h.required("Enter full name"),address_line1:o.nullable(),address_line2:l.nullable(),address_city:n.nullable(),address_state:d.nullable(),address_postal_code:r.nullable()}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return a(u,{key:"81a8511265b4813817b4cf183aa176b464645e85"},a("div",{key:"7dddd3ec7822077268c73da7d0f34a691ddde1cb",part:b,class:"mt-4"},a("form",{key:"1c9000a4b022209129cf511d79a77cf3dc44b77e"},a("fieldset",{key:"134c349c5745197b5ebb79b31748bf480e1cab7a"},this.legend&&a("legend",{key:"fb8e12086fd6fb51f7456d8fc6e82a9184514d4f"},this.legend),a("div",{key:"a49ae2d182e442efbe44aae7c2e0a4e40dabe7d7",class:"row gy-3"},a("div",{key:"2be4b2aab266d0fc17f32237693dea8578c7545d",class:"col-12"},a("form-control-text",{key:"92d1b3b05ba04212e46feecfd886f7dcc912e4fe",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})))))))}},H=e=>{const{isReady:t}=e;return t?null:a("div",{class:"container-fluid p-0"},a("div",{class:"row mb-3"},a("div",{class:"col-12 align-content-end"},a(m,{height:"18px",width:"120px"}),a(m,{height:"36px"}))),a("div",{class:"row"},a("div",{class:"col-12 align-content-end"},a(m,{height:"18px",width:"110px"}),a(m,{height:"36px"}))))},O=class{constructor(t){e(this,t),this.isReady=!1}async componentWillLoad(){await v(),this.iframeOrigin=k.iframeOrigin,p(),this.analytics=new y(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return e&&t}async tokenize({clientId:e,paymentMethodMetadata:t,account:a}){return this.accountNumberIframeElement.tokenize(e,t,a)}render(){return a(u,{key:"f7b088f8dd8a977f3843183fb444f28862644fb3"},a(H,{key:"63179b2a1616ac98e9647bc8a6cf8f32cf159c24",isReady:this.isReady}),a("hidden-input",{key:"bc2427c6ae7ca231f444cac83789682c5b7f252b"}),a("div",{key:"d7b8ad011f441f35130a8836d5a9998aeed5ef6f",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},a("div",{key:"87c14b39416411432109fa477a45905824986a5d",class:"row mb-3"},a("iframe-input",{key:"aa63db40e7dcff302c804b6f772a8903ac53a588",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),a("div",{key:"683ff288ff835321c364b4af64524dbf183da030",class:"row"},a("iframe-input",{key:"46653b74876dfc02916b7d2842ab793b8658e8b2",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},B=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return"card"===this.paymentMethodType&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return"bankAccount"===this.paymentMethodType&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async fill(e){var t;null===(t=this.selectedFormRef)||void 0===t||t.fill(e)}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return a(i,null,a(this.showSimpleBankAccountBillingForm?"justifi-bank-account-billing-form-simple":this.showSimpleCardBillingForm?"justifi-card-billing-form-simple":"justifi-billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},N=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c(s({name:h.required("Enter full name"),address_line1:o.required("Enter street address"),address_line2:l.nullable(),address_city:n.required("Enter city"),address_state:d.required("Select state"),address_postal_code:r.required("Enter postal code")})),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return a(u,null,a("div",{part:b,class:"mt-4"},a(g,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),a("form",null,a("fieldset",null,this.legend&&a("legend",null,this.legend),a("div",{class:"row gy-3"},a("div",{class:"col-12"},a("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-select",{name:"address_state",label:"State",options:j,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:_})))))))}},D=class{constructor(t){e(this,t),this.variant="primary",this.type="button"}render(){return a(u,{key:"b9a4be42df1dbeca39a2c310ab6375cc2c1946f3"},a(x,{key:"04bfb3aaa6af8b2dafa07dbcebaf6b7a03a07442",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle},this.text))}},L=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c(s({name:h.nullable(),address_line1:o.nullable(),address_line2:l.nullable(),address_city:n.nullable(),address_state:d.nullable(),address_postal_code:r.required("Enter postal code")}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return a(u,{key:"a88ea2aa0b1cc2fccda7c169aad9c061e106ecfe"},a("div",{key:"414df056d92819bf646886ca8e15f2ed10e6ab18",part:b},a("form",{key:"c11f6eb5c7c5c1ecbeb8cc8f644a3b3ba72254c7"},a("fieldset",{key:"dd69c65ff7f36da3954c01ca2401e8ede6799f14"},this.legend&&a("legend",{key:"25a86a61452b84237cc58c047916de22c35b764d"},this.legend),a("div",{key:"2fa8445fcf4ac0500f357d92480f18ccac655689",class:"row gy-3"},a("div",{key:"b7ac75fcab43435a03ad919757541f74661ce5b4",class:"col-12"},a("form-control-text",{key:"fd9e84c9605edf1a987c7243409eb0182f79a803",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:_})))))))}},M=e=>{const{isReady:t}=e;return t?null:a("div",{class:"container-fluid p-0"},a("div",{class:"mb-3"},a(m,{height:"18px",width:"100px"}),a(m,{height:"36px"})),a("div",{class:"row"},a("div",{class:"col-4 align-content-end"},a(m,{height:"18px",width:"80px"}),a(m,{height:"36px"})),a("div",{class:"col-4 align-content-end"},a(m,{height:"36px"})),a("div",{class:"col-4 align-content-end"},a(m,{height:"18px",width:"30px"}),a(m,{height:"36px"}))))},I=class{constructor(t){e(this,t),this.isReady=!1}async componentWillLoad(){await v(),this.iframeOrigin=k.iframeOrigin,p(),this.analytics=new y(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.cardNumberIframeElement.validate(),t=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),i=await this.cvvIframeElement.validate();return e&&t&&a&&i}async tokenize({clientId:e,paymentMethodMetadata:t,account:a}){return this.cardNumberIframeElement.tokenize(e,t,a)}render(){return a(u,{key:"75938c15dce1b5b078773f28c689c8f7d4ad5059"},a(M,{key:"fa27e1cb7262b012e69c6c88580bfa432edb13f0",isReady:this.isReady}),a("hidden-input",{key:"305afc644870ea4c5e11ade42e6f8b5504b0a299"}),a("div",{key:"fc87adbea2130fd4334f2f7a8dbc666ad9b84f76",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},a("div",{key:"b426b711813d401e181c833c06f440adc2998f4a",class:"mb-3"},a("iframe-input",{key:"1c81cac902a472ffe841340de40c8aa80688d908",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),a("div",{key:"370fb4bd7951ea6948b57923141842da07575bd3",class:"row"},a("div",{key:"7912c07831d685c0f30d103537933c4ec0e41726",class:"col-4 align-content-end"},a("iframe-input",{key:"a892fead0333523eecd1a6e02fb6cd3807e1b0ad",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),a("div",{key:"699f614dcada9748525afe53cd461a5dd4f96847",class:"col-4 align-content-end"},a("iframe-input",{key:"0c65a7fbb4bf1fa35fc645de62723f8d130217de",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),a("div",{key:"b25d6322892f5a3313db2592193552f34e364103",class:"col-4 align-content-end"},a("iframe-input",{key:"279646b3bfa68f8e03d0118e2de86668471f5821",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}},S=class{constructor(a){e(this,a),this.checkboxChanged=t(this,"checkboxChanged"),this.isChecked=!1,this.handleCheckboxChange=(e,t)=>{this.isChecked=t,w.savePaymentMethod=t,this.checkboxChanged.emit(this.isChecked)}}render(){return a(u,{key:"407e24ad9cd84378dab6a85ed813a8040f93942a"},a("form-control-checkbox",{key:"73dc01e01c4ca57e26c6897c06a0280fda8c98db",label:"Save New Payment Method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange}))}};export{C as justifi_bank_account_billing_form_simple,O as justifi_bank_account_form,B as justifi_billing_form,N as justifi_billing_form_full,D as justifi_button,L as justifi_card_billing_form_simple,I as justifi_card_form,V as justifi_radio_list_item,S as justifi_save_new_payment_method}
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-kpoIU4v_.js";import{a as i,b as r}from"./p-DSP8qjHL.js";import{F as o,c as n,b as a}from"./p-CR9D6mKt.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-RvUQ__Pq.js";import{S as f}from"./p-DOd8HaWV.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,l as j,m as k}from"./p-WEguiGt1.js";import{z as S,A as T,B as C,y as O,C as H,D as L}from"./p-CYBR4K2p.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as E,a as D}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as V}from"./p-BnjCmwMr.js";import{B as A}from"./p-D48iERjQ.js";import{i as B,a as P}from"./p-PgEzcvI6.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-zdIeCUeh.js";import"./p-7WIgS5RM.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 U=()=>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(U,null),t(U,null),t(U,null)),F=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"]}}},q=(t,s)=>t.some((t=>t.document_type===s)),N="Please upload either a voided check or a bank statement. Only one is required.",Y=(t,s)=>{const e=q(t,x.voidedCheck),i=q(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:T.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(N),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(N),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:T.nullable(),routing_number:S.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(Y(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 k({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:D.POST_ERROR,message:s.error.message,severity:E.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:D.POST_ERROR,message:t.error.message,severity:E.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(Y(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:D.POST_ERROR,severity:E.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"]}}},X=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:V,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})))))}},Q=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(A,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},z=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(B("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})}},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.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:V})),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{F as justifi_additional_questions_form_step_core,M as justifi_business_bank_account_form_step_core,X as justifi_business_core_info_form_step_core,Q as justifi_business_owners_form_step_core,z as justifi_business_representative_form_step_core,G as justifi_legal_address_form_step_core}
1
+ import{h as t,r as s,c as e}from"./p-Bn7inNWG.js";import{a as i,b as r}from"./p-DSP8qjHL.js";import{F as o,c as n,b as a}from"./p-CR9D6mKt.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-RvUQ__Pq.js";import{S as f}from"./p-CaAVuW6B.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,k as j,l as k}from"./p-BP7op0vq.js";import{z as S,A as C,B as T,y as O,C as H,D as L}from"./p-CYBR4K2p.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{C as D,a as E}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as B}from"./p-BnjCmwMr.js";import{B as V}from"./p-DD0Mvpeu.js";import{i as A,a as P}from"./p-PgEzcvI6.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-zdIeCUeh.js";import"./p-CpaS1Lex.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 U=()=>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%"}))),q=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(U,null),t(U,null),t(U,null)),F=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(q,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"]}}},N=(t,s)=>t.some((t=>t.document_type===s)),R="Please upload either a voided check or a bank statement. Only one is required.",Y=(t,s)=>{const e=N(t,x.voidedCheck),i=N(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:T.required("Select account type"),account_number:C.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:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:T.nullable(),account_number:C.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},X=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(Y(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 k({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 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: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(Y(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(q,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"]}}},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.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(q,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:B,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})))))}},G=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(q,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(V,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},z=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(q,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},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.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(q,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:B})),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{F as justifi_additional_questions_form_step_core,X as justifi_business_bank_account_form_step_core,M as justifi_business_core_info_form_step_core,G as justifi_business_owners_form_step_core,z as justifi_business_representative_form_step_core,Q as justifi_legal_address_form_step_core}
@@ -0,0 +1 @@
1
+ import{h as s,r as t,c as i}from"./p-Bn7inNWG.js";import{A as e}from"./p-BPtcGAzB.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-CxqAv6yr.js";import{c as h}from"./p-DAED83Ew.js";import{p as d,f as p,r as u,h as v}from"./p-zdIeCUeh.js";import{v as m,i as y,a as f,H as j}from"./p-B71k50jz.js";import{z as _,A as g}from"./p-RvUQ__Pq.js";import{S as C}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{S as k}from"./p-CaAVuW6B.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-VsM6ERNV.js";import"./p-HXpYMWUU.js";const w=e();class b{async fetchQuote(s,t){return w.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return w.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const q=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(k,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(k,{width:"70%"})),s("div",{class:"col-12"},s(k,{width:"40%"})),s("div",{class:"col-12"},s(k,{width:"40%"})),s("div",{class:"col-12"},s(k,{width:"100%"})),s("div",{class:"col-12"},s(k,{width:"80%"}))),T=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new b};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return f[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(C,null,this.isLoading?s(q,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{T as justifi_season_interruption_insurance}