@justifi/webcomponents 5.7.2 → 5.7.3

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 (405) hide show
  1. package/dist/cjs/{Api-Dp4CW5K6.js → Api-CJ1_RDQW.js} +1 -1
  2. package/dist/cjs/{Document-Qt0qiXeh.js → Payment-D5UynU2f.js} +0 -56
  3. package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  5. package/dist/cjs/{badge-BxoJOyTJ.js → badge-ByHiVqEE.js} +1 -1
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
  7. package/dist/cjs/bank-account-form_9.cjs.entry.js +16 -16
  8. package/dist/cjs/{business-additional-questions-schema-JlysTRE3.js → business-additional-questions-schema-e3GCIHk5.js} +1 -1
  9. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  10. package/dist/cjs/{business-identity-schema-BksYFWls.js → business-identity-schema-Diqj_WVQ.js} +1 -1
  11. package/dist/cjs/{business.service-DMIMZpx4.js → business.service-CsKKWn0g.js} +3 -3
  12. package/dist/cjs/{button-BPFSRx4d.js → button-DXvFLf3b.js} +1 -1
  13. package/dist/cjs/{check-pkg-version-hqYwYpQq.js → check-pkg-version-BqLxQqZQ.js} +4 -4
  14. package/dist/cjs/{checkout.service-DKH8NODe.js → checkout.service-CugpgJy_.js} +3 -3
  15. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
  16. package/dist/cjs/{payments-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-BZPc3hJS.js} +1 -1
  17. package/dist/cjs/{checkouts-table-Cj2iSB_P.js → checkouts-table-BV-36YfA.js} +2 -2
  18. package/dist/cjs/{config-state-D7p-XunE.js → config-state-BH7lf2ok.js} +1 -1
  19. package/dist/cjs/custom-popper_4.cjs.entry.js +2 -2
  20. package/dist/cjs/{dispute.service-8j6tLV4i.js → dispute.service-B8vLwAZm.js} +3 -3
  21. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  22. package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
  23. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  24. package/dist/cjs/{form-control-error-text-D9XDyFoW.js → form-control-error-text-B-3qE49U.js} +1 -1
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  26. package/dist/cjs/{form-control-help-text-J_boqSMc.js → form-control-help-text-BlYVOrII.js} +1 -1
  27. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  28. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  31. package/dist/cjs/form-control-number.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  33. package/dist/cjs/{get-payment-details-MM1u5jMc.js → get-payment-details-CudOQBpU.js} +4 -4
  34. package/dist/cjs/{get-subaccounts-CkjWYxIU.js → get-subaccounts-DjwsQffs.js} +4 -4
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  36. package/dist/cjs/{header-1-auSUfIpO.js → header-1-agnQ4uEf.js} +1 -1
  37. package/dist/cjs/{header-3-B-bXHCpC.js → header-3-BAx5OhvM.js} +1 -1
  38. package/dist/cjs/{iframe-input-styles-state-D9vhHzZQ.js → iframe-input-styles-state-CFjq45QT.js} +1 -1
  39. package/dist/cjs/iframe-input.cjs.entry.js +5 -5
  40. package/dist/cjs/{index-B8ljHEN1.js → index-oahmQhrI.js} +1 -1
  41. package/dist/cjs/{index-BYd8IvAa.js → index-y-rskGFM.js} +1 -1
  42. package/dist/cjs/{insurance-state-CFxbKNWH.js → insurance-state-CCo-Gmfe.js} +2 -2
  43. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +46 -19
  44. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +8 -8
  45. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
  47. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
  48. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  49. package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -7
  50. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -7
  52. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  53. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  54. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  56. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  57. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
  58. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -9
  59. package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
  60. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  61. package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -11
  62. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  64. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -12
  65. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  66. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  67. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  68. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -12
  69. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  70. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
  71. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -13
  72. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -5
  73. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
  74. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
  75. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  76. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
  77. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
  78. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -10
  79. package/dist/cjs/loader.cjs.js +1 -1
  80. package/dist/cjs/{package-BCOEGxFC.js → package-a_vXN-Ly.js} +1 -1
  81. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
  83. package/dist/cjs/{payment.service-CCxGhTwZ.js → payment.service-aqlDvgDe.js} +3 -3
  84. package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
  85. package/dist/cjs/{payouts-list-params-state-BvG5Ysrg.js → payments-list-params-state-BZPc3hJS.js} +1 -1
  86. package/dist/cjs/{payments-status-BTykBx8i.js → payments-status-CWK1uHtj.js} +2 -2
  87. package/dist/cjs/{payments-table-BR97ybd6.js → payments-table-CP8LGibG.js} +2 -2
  88. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  89. package/dist/cjs/{payout.service-CtphIhUK.js → payout.service-CL-hcMGg.js} +3 -3
  90. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
  91. package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → payouts-list-params-state-BZPc3hJS.js} +1 -1
  92. package/dist/cjs/{payouts-status-YCqmbd4K.js → payouts-status-Jz2Mh3JP.js} +2 -2
  93. package/dist/cjs/{payouts-table-DMcQiC1g.js → payouts-table-DyuoNtFw.js} +2 -2
  94. package/dist/cjs/{schema-validations-BUor-ySb.js → schema-validations-BSeMee-o.js} +0 -23
  95. package/dist/cjs/{skeleton-aMh0RMHq.js → skeleton-CgT0siC5.js} +1 -1
  96. package/dist/cjs/{spinner-BTyIjlMM.js → spinner-Cz4By3FY.js} +1 -1
  97. package/dist/cjs/{styled-host-udkBJV5h.js → styled-host-LD5MpzHs.js} +1 -1
  98. package/dist/cjs/{table-DKVauFHc.js → table-Cvr8-PLT.js} +2 -2
  99. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  100. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
  101. package/dist/cjs/{terminal-orders-list-params-state-BvG5Ysrg.js → terminal-orders-list-params-state-BZPc3hJS.js} +1 -1
  102. package/dist/cjs/{terminal-orders-table-D-CLcZws.js → terminal-orders-table-CslE3Ojj.js} +5 -5
  103. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  104. package/dist/cjs/{terminal.service-Dv_WJkue.js → terminal.service-3geWla42.js} +3 -3
  105. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
  106. package/dist/cjs/terminals-list-params-state-BZPc3hJS.js +22 -0
  107. package/dist/cjs/{terminals-table-BEJ6sF7w.js → terminals-table-DlZSKdHC.js} +2 -2
  108. package/dist/cjs/{utils-5lco6NzU.js → utils-B4fXt0os.js} +1 -1
  109. package/dist/cjs/webcomponents.cjs.js +2 -2
  110. package/dist/collection/collection-manifest.json +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
  112. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
  113. package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
  114. package/dist/docs.json +266 -46
  115. package/dist/esm/{Api-cgKcLG0y.js → Api-CZhQlPMs.js} +1 -1
  116. package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
  117. package/dist/esm/{Document-DvWsQBM6.js → Payment-BGiKmQYR.js} +2 -56
  118. package/dist/esm/{Refund-zZewCvey.js → Refund-DDIEc_gu.js} +55 -1
  119. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  120. package/dist/esm/{badge-Du9GTXoB.js → badge-Bbh4S1LJ.js} +1 -1
  121. package/dist/esm/bank-account-document-form-inputs_4.entry.js +8 -8
  122. package/dist/esm/bank-account-form_9.entry.js +9 -9
  123. package/dist/esm/{business-additional-questions-schema-CBUm3D7O.js → business-additional-questions-schema-uQlQ8fXQ.js} +1 -1
  124. package/dist/esm/business-details-core.entry.js +4 -4
  125. package/dist/esm/{business-identity-schema-CntGz8jo.js → business-identity-schema-BsrgqgDl.js} +1 -1
  126. package/dist/esm/{business.service-BWivPbyO.js → business.service-CUWiJ5Un.js} +4 -4
  127. package/dist/esm/{button-CjH5C0pG.js → button-BrZXQ8gb.js} +1 -1
  128. package/dist/esm/{check-pkg-version-BykGn7tx.js → check-pkg-version-CxnnjoM3.js} +5 -5
  129. package/dist/esm/{checkout.service-Bh-Q24Cr.js → checkout.service-DqXrjRw7.js} +4 -4
  130. package/dist/esm/checkouts-list-core.entry.js +11 -11
  131. package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-BI3u1DYG.js} +1 -1
  132. package/dist/esm/{checkouts-table-DcVkD83l.js → checkouts-table-p7UZFB5v.js} +2 -2
  133. package/dist/esm/{config-state-CkKrqnpZ.js → config-state-ecb1EsvM.js} +1 -1
  134. package/dist/esm/custom-popper_4.entry.js +2 -2
  135. package/dist/esm/{dispute.service-1AYcALSg.js → dispute.service-DpgnWZA1.js} +4 -4
  136. package/dist/esm/form-alert_5.entry.js +1 -1
  137. package/dist/esm/form-control-checkbox.entry.js +3 -3
  138. package/dist/esm/form-control-date.entry.js +2 -2
  139. package/dist/esm/{form-control-error-text-tGFxd6kW.js → form-control-error-text-lGsxANkt.js} +1 -1
  140. package/dist/esm/form-control-file-v2_2.entry.js +2 -2
  141. package/dist/esm/{form-control-help-text-2DawN8-N.js → form-control-help-text-DjU4NWmt.js} +1 -1
  142. package/dist/esm/form-control-help-text.entry.js +1 -1
  143. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  144. package/dist/esm/form-control-monetary.entry.js +3 -3
  145. package/dist/esm/form-control-number-masked_2.entry.js +2 -2
  146. package/dist/esm/form-control-number.entry.js +3 -3
  147. package/dist/esm/form-control-radio.entry.js +1 -1
  148. package/dist/esm/{get-payment-details-DXhXxFPr.js → get-payment-details-ChRlNtIz.js} +4 -4
  149. package/dist/esm/{get-subaccounts-CtHj1UM6.js → get-subaccounts-DiROU10G.js} +5 -5
  150. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  151. package/dist/esm/{header-1-D2gZb3iT.js → header-1-Xbhp2rfA.js} +1 -1
  152. package/dist/esm/{header-3-DAg8Vh4B.js → header-3-DwjHOg3C.js} +1 -1
  153. package/dist/esm/{iframe-input-styles-state-ibYqbF--.js → iframe-input-styles-state-BEips-at.js} +1 -1
  154. package/dist/esm/iframe-input.entry.js +5 -5
  155. package/dist/esm/{index-Cc3u0uDC.js → index-Dc7aGxx-.js} +1 -1
  156. package/dist/esm/{index-D6FDxSyt.js → index-DeiW2BDb.js} +1 -1
  157. package/dist/esm/{insurance-state-CsZbKSgm.js → insurance-state-CiK3s-Fy.js} +2 -2
  158. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +46 -19
  159. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
  160. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  161. package/dist/esm/justifi-business-details.entry.js +11 -11
  162. package/dist/esm/justifi-business-form.entry.js +17 -17
  163. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  164. package/dist/esm/justifi-checkout-core.entry.js +7 -7
  165. package/dist/esm/justifi-checkout.entry.js +10 -10
  166. package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
  167. package/dist/esm/justifi-checkouts-list.entry.js +14 -14
  168. package/dist/esm/justifi-config-provider.entry.js +3 -3
  169. package/dist/esm/justifi-details.entry.js +2 -2
  170. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  171. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  172. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -13
  173. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
  174. package/dist/esm/justifi-order-terminals.entry.js +13 -13
  175. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  176. package/dist/esm/justifi-payment-details.entry.js +12 -12
  177. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  178. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  179. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
  180. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  181. package/dist/esm/justifi-payments-list.entry.js +14 -14
  182. package/dist/esm/justifi-payout-details.entry.js +11 -11
  183. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
  184. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  185. package/dist/esm/justifi-payouts-list.entry.js +15 -15
  186. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  187. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +5 -5
  188. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -9
  189. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
  190. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
  191. package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
  192. package/dist/esm/justifi-terminals-list.entry.js +14 -14
  193. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -11
  194. package/dist/esm/loader.js +2 -2
  195. package/dist/esm/{package-BjMTOtI1.js → package-DCoo9Ds8.js} +1 -1
  196. package/dist/esm/pagination-menu.entry.js +1 -1
  197. package/dist/esm/payment-details-core.entry.js +6 -6
  198. package/dist/esm/{payment.service-2afJc31y.js → payment.service-BV8Gg3vY.js} +4 -4
  199. package/dist/esm/payments-list-core.entry.js +12 -12
  200. package/dist/esm/{payments-list-params-state-Bn7pL-8x.js → payments-list-params-state-BI3u1DYG.js} +1 -1
  201. package/dist/esm/{payments-status-CIUXcA0w.js → payments-status-DIH2IxWy.js} +2 -2
  202. package/dist/esm/{payments-table-B8316Kqz.js → payments-table-DiEtudGk.js} +2 -2
  203. package/dist/esm/payout-details-core.entry.js +7 -7
  204. package/dist/esm/{payout.service-Bd8Tc7-Q.js → payout.service-DA9Y4buU.js} +4 -4
  205. package/dist/esm/payouts-list-core.entry.js +12 -12
  206. package/dist/esm/{payouts-list-params-state-Bn7pL-8x.js → payouts-list-params-state-BI3u1DYG.js} +1 -1
  207. package/dist/esm/{payouts-status-Clo03qUI.js → payouts-status-ZOiWvFE-.js} +2 -2
  208. package/dist/esm/{payouts-table-Ip10eH4Q.js → payouts-table-DbzIHwgZ.js} +2 -2
  209. package/dist/esm/{schema-validations-C7D5tPzq.js → schema-validations-DLWfpHyI.js} +2 -23
  210. package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-B9rUHFom.js} +1 -1
  211. package/dist/esm/{spinner-onCBxbdo.js → spinner-CrzsUbgI.js} +1 -1
  212. package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-_2J3PYDn.js} +1 -1
  213. package/dist/esm/{table-p4dOlFPi.js → table-CqDcXJpP.js} +2 -2
  214. package/dist/esm/table-filters-menu.entry.js +2 -2
  215. package/dist/esm/terminal-orders-list-core.entry.js +11 -11
  216. package/dist/esm/{terminal-orders-list-params-state-Bn7pL-8x.js → terminal-orders-list-params-state-BI3u1DYG.js} +1 -1
  217. package/dist/esm/{terminal-orders-table-CCJT7oq4.js → terminal-orders-table-D7EOk3GS.js} +6 -6
  218. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  219. package/dist/esm/{terminal.service-8kwGru35.js → terminal.service-VdIvwUEC.js} +4 -4
  220. package/dist/esm/terminals-list-core.entry.js +11 -11
  221. package/dist/esm/terminals-list-params-state-BI3u1DYG.js +16 -0
  222. package/dist/esm/{terminals-table-cMkKUVff.js → terminals-table-C-fA-3eP.js} +2 -2
  223. package/dist/esm/{utils-BpP_VJGf.js → utils-CcleFgVO.js} +1 -1
  224. package/dist/esm/webcomponents.js +3 -3
  225. package/dist/module/Refund.js +55 -1
  226. package/dist/module/bank-account-document-inputs.js +1 -2
  227. package/dist/module/business-bank-account-form-step-core.js +37 -11
  228. package/dist/module/business-bank-account-form-step.js +0 -1
  229. package/dist/module/business-terms-conditions-form-step.js +1 -2
  230. package/dist/module/business.service.js +0 -1
  231. package/dist/module/check-pkg-version.js +0 -1
  232. package/dist/module/checkout.service.js +0 -1
  233. package/dist/module/checkouts-list-core2.js +0 -1
  234. package/dist/module/dispute-response-actions.js +0 -1
  235. package/dist/module/form.js +1 -1
  236. package/dist/module/get-payment-details.js +0 -1
  237. package/dist/module/get-subaccounts.js +0 -1
  238. package/dist/module/justifi-business-form.js +0 -1
  239. package/dist/module/justifi-checkouts-list-filters.js +0 -1
  240. package/dist/module/justifi-checkouts-list.js +0 -1
  241. package/dist/module/justifi-gross-payment-chart.js +0 -1
  242. package/dist/module/justifi-order-terminals.js +1 -2
  243. package/dist/module/justifi-payment-provisioning.js +0 -1
  244. package/dist/module/justifi-payment-transactions-list.js +1 -2
  245. package/dist/module/justifi-payments-list.js +0 -1
  246. package/dist/module/justifi-payout-details.js +0 -1
  247. package/dist/module/justifi-payout-transactions-list.js +1 -2
  248. package/dist/module/justifi-payouts-list.js +0 -1
  249. package/dist/module/justifi-refund-payment.js +1 -2
  250. package/dist/module/justifi-season-interruption-insurance.js +0 -1
  251. package/dist/module/justifi-terminal-orders-list-filters.js +0 -1
  252. package/dist/module/justifi-terminal-orders-list.js +1 -2
  253. package/dist/module/justifi-terminals-list-filters.js +0 -1
  254. package/dist/module/justifi-terminals-list.js +1 -2
  255. package/dist/module/justifi-tokenize-payment-method.js +0 -1
  256. package/dist/module/package.js +1 -1
  257. package/dist/module/payment.service.js +0 -1
  258. package/dist/module/payments-list-core2.js +0 -1
  259. package/dist/module/payout.service.js +0 -1
  260. package/dist/module/payouts-list-core2.js +0 -1
  261. package/dist/module/schema-validations.js +2 -23
  262. package/dist/module/terminal-orders-list-core2.js +0 -1
  263. package/dist/module/terminal.service.js +0 -1
  264. package/dist/module/terminals-list-core2.js +0 -1
  265. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
  266. package/dist/types/components.d.ts +264 -0
  267. package/dist/webcomponents/p--B09FkmB.js +1 -0
  268. package/dist/webcomponents/{p-77ac321c.entry.js → p-070a74b0.entry.js} +1 -1
  269. package/dist/webcomponents/{p-ffd197c2.entry.js → p-0bab65ad.entry.js} +1 -1
  270. package/dist/webcomponents/{p-5e467788.entry.js → p-0e3122fd.entry.js} +1 -1
  271. package/dist/webcomponents/{p-ceefc483.entry.js → p-0f4572d3.entry.js} +1 -1
  272. package/dist/webcomponents/{p-8183c2d1.entry.js → p-19f24867.entry.js} +1 -1
  273. package/dist/webcomponents/{p-a94952f6.entry.js → p-214d8301.entry.js} +1 -1
  274. package/dist/webcomponents/{p-10d41e17.entry.js → p-217c0657.entry.js} +1 -1
  275. package/dist/webcomponents/{p-a6722f44.entry.js → p-2182e23d.entry.js} +1 -1
  276. package/dist/webcomponents/{p-57c89023.entry.js → p-2648b61f.entry.js} +1 -1
  277. package/dist/webcomponents/{p-3a979295.entry.js → p-29402bea.entry.js} +1 -1
  278. package/dist/webcomponents/{p-af09b6ee.entry.js → p-30e036bd.entry.js} +1 -1
  279. package/dist/webcomponents/{p-7d3cf734.entry.js → p-342016ec.entry.js} +1 -1
  280. package/dist/webcomponents/{p-4b51a896.entry.js → p-35299b25.entry.js} +1 -1
  281. package/dist/webcomponents/{p-a33cfcfe.entry.js → p-388e3afc.entry.js} +1 -1
  282. package/dist/webcomponents/{p-19b9c96a.entry.js → p-3ef0b42b.entry.js} +1 -1
  283. package/dist/webcomponents/{p-b40108c0.entry.js → p-410b3f65.entry.js} +1 -1
  284. package/dist/webcomponents/p-4d4aed9d.entry.js +1 -0
  285. package/dist/webcomponents/{p-5d81f36e.entry.js → p-5023d221.entry.js} +1 -1
  286. package/dist/webcomponents/{p-4a070b7a.entry.js → p-57ec45d9.entry.js} +1 -1
  287. package/dist/webcomponents/{p-e2bfdba5.entry.js → p-5886b41e.entry.js} +1 -1
  288. package/dist/webcomponents/{p-6429afb4.entry.js → p-61daf152.entry.js} +1 -1
  289. package/dist/webcomponents/{p-bf3e8295.entry.js → p-6a89c4c8.entry.js} +1 -1
  290. package/dist/webcomponents/{p-c5628e09.entry.js → p-70b87e0c.entry.js} +1 -1
  291. package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
  292. package/dist/webcomponents/{p-c3c7be24.entry.js → p-7ba945a9.entry.js} +1 -1
  293. package/dist/webcomponents/{p-n2YROtpe.js → p-8qo1QTjv.js} +1 -1
  294. package/dist/webcomponents/{p-70c498d4.entry.js → p-9154c9ae.entry.js} +1 -1
  295. package/dist/webcomponents/{p-b0d3aab7.entry.js → p-95d4c1ec.entry.js} +1 -1
  296. package/dist/webcomponents/{p-3e94cf62.entry.js → p-9633ee66.entry.js} +1 -1
  297. package/dist/webcomponents/{p-1678e9e3.entry.js → p-9814a858.entry.js} +1 -1
  298. package/dist/webcomponents/{p-4680f931.entry.js → p-9c7574a3.entry.js} +1 -1
  299. package/dist/webcomponents/{p-7733b67b.entry.js → p-9c9bef60.entry.js} +1 -1
  300. package/dist/webcomponents/p-B0b_XePt.js +1 -0
  301. package/dist/webcomponents/p-B50n1fKP.js +1 -0
  302. package/dist/webcomponents/p-B9zTkzgI.js +1 -0
  303. package/dist/webcomponents/{p-clwP6zk3.js → p-BC1dBUlF.js} +1 -1
  304. package/dist/webcomponents/p-BNqn5ta3.js +1 -0
  305. package/dist/webcomponents/p-BUJ--tSs.js +1 -0
  306. package/dist/webcomponents/{p-DR89sFne.js → p-BdTK0wi9.js} +1 -1
  307. package/dist/webcomponents/{p-DDEz7_ad.js → p-BeW-xdck.js} +1 -1
  308. package/dist/webcomponents/{p-D5XSsLKb.js → p-Bjf1_zhy.js} +1 -1
  309. package/dist/webcomponents/p-Bkffx_rQ.js +1 -0
  310. package/dist/webcomponents/{p-DuYlA4lj.js → p-Bl3ch-Ez.js} +1 -1
  311. package/dist/webcomponents/p-BpDYt_Ep.js +1 -0
  312. package/dist/webcomponents/{p-CgxzrbM_.js → p-C1uPQOvi.js} +1 -1
  313. package/dist/webcomponents/p-C2HQYreI.js +1 -0
  314. package/dist/webcomponents/{p-DvhDilDP.js → p-CJ5VkiBV.js} +1 -1
  315. package/dist/webcomponents/{p-DnB1x5JE.js → p-CKAgqwwJ.js} +1 -1
  316. package/dist/webcomponents/{p-cNABKY0P.js → p-CaGTuT2-.js} +1 -1
  317. package/dist/webcomponents/{p-CQdeVKF8.js → p-CeSHqD1r.js} +1 -1
  318. package/dist/webcomponents/{p-Cd06j2SL.js → p-CgSqi8wc.js} +1 -1
  319. package/dist/webcomponents/{p-D2ZiLcDE.js → p-ChL8tkhB.js} +1 -1
  320. package/dist/webcomponents/p-ClM8H2uM.js +1 -0
  321. package/dist/webcomponents/p-CoZ_5FVT.js +1 -0
  322. package/dist/webcomponents/p-CopnqpXU.js +1 -0
  323. package/dist/webcomponents/p-D9siq_gL.js +1 -0
  324. package/dist/webcomponents/p-DCoo9Ds8.js +1 -0
  325. package/dist/webcomponents/{p-BR7flk4G.js → p-DGg9nHVL.js} +1 -1
  326. package/dist/webcomponents/{p-r__elyG4.js → p-DMNpawhg.js} +1 -1
  327. package/dist/webcomponents/p-DQCcSXwL.js +1 -0
  328. package/dist/webcomponents/{p-HBDBB6lL.js → p-DXhY2Usd.js} +1 -1
  329. package/dist/webcomponents/p-Ddc5F_89.js +1 -0
  330. package/dist/webcomponents/{p-l3o3Ndc0.js → p-DyCvl10I.js} +1 -1
  331. package/dist/webcomponents/{p-C0WFYqwq.js → p-EbNktJEa.js} +1 -1
  332. package/dist/webcomponents/{p-COcul8pX.js → p-HiTlvG5T.js} +1 -1
  333. package/dist/webcomponents/p-JOSiCHl7.js +1 -0
  334. package/dist/webcomponents/{p-uSM1EMk-.js → p-SoKRLnnI.js} +1 -1
  335. package/dist/webcomponents/{p-C1sOJl-_.js → p-XBoMjcoi.js} +1 -1
  336. package/dist/webcomponents/p-_5PRoEe6.js +1 -0
  337. package/dist/webcomponents/p-a32ae525.entry.js +1 -0
  338. package/dist/webcomponents/{p-abdae97a.entry.js → p-a60abc68.entry.js} +1 -1
  339. package/dist/webcomponents/{p-a8119fda.entry.js → p-aa539239.entry.js} +1 -1
  340. package/dist/webcomponents/{p-22a0b397.entry.js → p-aa949920.entry.js} +1 -1
  341. package/dist/webcomponents/{p-758ce5e5.entry.js → p-ab1353b0.entry.js} +4 -4
  342. package/dist/webcomponents/p-ac5f5d89.entry.js +1 -0
  343. package/dist/webcomponents/{p-bb50155f.entry.js → p-b0d1afd7.entry.js} +1 -1
  344. package/dist/webcomponents/p-b17ed568.entry.js +1 -0
  345. package/dist/webcomponents/{p-16d29d0b.entry.js → p-b59fc73d.entry.js} +1 -1
  346. package/dist/webcomponents/{p-d8b8b17c.entry.js → p-b5c7c78d.entry.js} +1 -1
  347. package/dist/webcomponents/{p-e73fe424.entry.js → p-b72eca25.entry.js} +1 -1
  348. package/dist/webcomponents/{p-3368d3d5.entry.js → p-b9283a1b.entry.js} +1 -1
  349. package/dist/webcomponents/{p-c01544c3.entry.js → p-b95a7dc5.entry.js} +1 -1
  350. package/dist/webcomponents/p-bO_FomzV.js +1 -0
  351. package/dist/webcomponents/{p-93df56e1.entry.js → p-bd1df685.entry.js} +1 -1
  352. package/dist/webcomponents/{p-2c7ae3ac.entry.js → p-bfb2bad3.entry.js} +1 -1
  353. package/dist/webcomponents/{p-935bbc62.entry.js → p-c13538df.entry.js} +1 -1
  354. package/dist/webcomponents/{p-8c107267.entry.js → p-c535a165.entry.js} +1 -1
  355. package/dist/webcomponents/{p-639baa7d.entry.js → p-c7a1439a.entry.js} +1 -1
  356. package/dist/webcomponents/{p-f23d4fdb.entry.js → p-c80d077b.entry.js} +1 -1
  357. package/dist/webcomponents/{p-a0662195.entry.js → p-ccd256f5.entry.js} +1 -1
  358. package/dist/webcomponents/{p-722c5e42.entry.js → p-cfb4491e.entry.js} +1 -1
  359. package/dist/webcomponents/p-d049acb4.entry.js +1 -0
  360. package/dist/webcomponents/{p-4f8b9b99.entry.js → p-d0b3a10e.entry.js} +1 -1
  361. package/dist/webcomponents/{p-2c8d7aa9.entry.js → p-d3f5c51e.entry.js} +1 -1
  362. package/dist/webcomponents/{p-90c24cda.entry.js → p-d3ff71df.entry.js} +1 -1
  363. package/dist/webcomponents/{p-33b23638.entry.js → p-d6a66b58.entry.js} +1 -1
  364. package/dist/webcomponents/{p-eHhqPyVW.js → p-d6tXI5Iw.js} +1 -1
  365. package/dist/webcomponents/{p-292da2d4.entry.js → p-d8f92442.entry.js} +1 -1
  366. package/dist/webcomponents/{p-59abf1de.entry.js → p-da6c0277.entry.js} +1 -1
  367. package/dist/webcomponents/{p-77896e7b.entry.js → p-e0e3a939.entry.js} +1 -1
  368. package/dist/webcomponents/{p-8ad67f87.entry.js → p-e3a07cb8.entry.js} +1 -1
  369. package/dist/webcomponents/{p-57fc593a.entry.js → p-f03acabd.entry.js} +1 -1
  370. package/dist/webcomponents/{p-c6490254.entry.js → p-f1e54daa.entry.js} +1 -1
  371. package/dist/webcomponents/{p-99b080d9.entry.js → p-f3d3070a.entry.js} +1 -1
  372. package/dist/webcomponents/p-hG0Fy7E9.js +1 -0
  373. package/dist/webcomponents/p-vTsHmSQQ.js +1 -0
  374. package/dist/webcomponents/webcomponents.esm.js +1 -1
  375. package/package.json +1 -1
  376. package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
  377. package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +0 -16
  378. package/dist/module/Document.js +0 -55
  379. package/dist/webcomponents/p-40f7e3af.entry.js +0 -1
  380. package/dist/webcomponents/p-5df5aa41.entry.js +0 -1
  381. package/dist/webcomponents/p-6n7viK-J.js +0 -1
  382. package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
  383. package/dist/webcomponents/p-B190pN0v.js +0 -1
  384. package/dist/webcomponents/p-BjMTOtI1.js +0 -1
  385. package/dist/webcomponents/p-Bk4gk-f7.js +0 -1
  386. package/dist/webcomponents/p-C0IqfGFc.js +0 -1
  387. package/dist/webcomponents/p-CaGOSFHG.js +0 -1
  388. package/dist/webcomponents/p-Cm_0sqXz.js +0 -1
  389. package/dist/webcomponents/p-Cx60eQXT.js +0 -1
  390. package/dist/webcomponents/p-D0ptm6-3.js +0 -1
  391. package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
  392. package/dist/webcomponents/p-DClC2nMO.js +0 -1
  393. package/dist/webcomponents/p-DJzjeg3x.js +0 -1
  394. package/dist/webcomponents/p-DgfzEZny.js +0 -1
  395. package/dist/webcomponents/p-DjGTAHJM.js +0 -1
  396. package/dist/webcomponents/p-U30-0DaA.js +0 -1
  397. package/dist/webcomponents/p-_pH3Hg4P.js +0 -1
  398. package/dist/webcomponents/p-a136ff22.entry.js +0 -1
  399. package/dist/webcomponents/p-b1586aa2.entry.js +0 -1
  400. package/dist/webcomponents/p-c5b6b76f.entry.js +0 -1
  401. package/dist/webcomponents/p-gZGxqQgQ.js +0 -1
  402. package/dist/webcomponents/p-l3uWWMRW.js +0 -1
  403. package/dist/webcomponents/p-um3YdOwW.js +0 -1
  404. package/dist/webcomponents/p-wqUvt1PB.js +0 -1
  405. /package/dist/webcomponents/{p-D6FDxSyt.js → p-DeiW2BDb.js} +0 -0
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as i}from"./p-D6FDxSyt.js";import{f as e}from"./p-BnE7qgLh.js";import{C as a}from"./p-DzFysjCc.js";import{C as o}from"./p-SdntD1xf.js";import{v as r,i as d,a as c,H as h}from"./p-D0ptm6-3.js";import{B as n}from"./p-cNABKY0P.js";import{S as l}from"./p-DuYlA4lj.js";import{S as m}from"./p-U30-0DaA.js";import{A as p,T as f}from"./p-BrLVc_85.js";import{H as b}from"./p-DgfzEZny.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-Cd06j2SL.js";const y=class{constructor(i){s(this,i),this.submitEvent=t(this,"submit-event"),this.errorEvent=t(this,"error-event"),this.loaded=t(this,"loaded"),this.hasLoadedFonts=!1,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1,this.completeCheckout=async s=>{this.complete({payment:s,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=s=>{this.submitEvent.emit({response:s}),this.renderState="success"},this.onError=({error:s,code:t,severity:i})=>{this.serverError=s,this.errorEvent.emit({errorCode:t,message:s,severity:i}),this.renderState="error"}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}async validate(){const s=r(),{isValid:t}=await this.paymentMethodOptionsRef.validate();return s.isValid&&t?{isValid:!0}:{isValid:!1}}componentWillLoad(){this.getCheckout&&(this.fetchData(),d("set",(s=>{const t=c[s];void 0!==t&&(this.insuranceToggled=t,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:s})=>{this.checkout=new a(s);const{status:t}=this.checkout;this.loaded.emit({checkout_status:t}),this.renderState="success"},onError:({error:s,code:t,severity:i})=>{this.serverError=s,this.renderState="error",this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}async submit(s){var t;s.preventDefault(),this.renderState="loading";const i=r(),e=await this.paymentMethodOptionsRef.resolvePaymentMethod(i);e.validationError?this.renderState="error":e.error?(this.renderState="error",this.serverError=e.error.message,this.onError({code:e.error.code,error:e.error.message,severity:o.ERROR})):e.token?this.completeCheckout({payment_mode:"ecom",payment_token:e.token}):"success"===(null===(t=e.bnpl)||void 0===t?void 0:t.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var s,t,e,a,o;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(m,{height:"300px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("justifi-payment-method-options",{ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(s=this.checkout)||void 0===s?void 0:s.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,bnpl:null===(t=this.checkout)||void 0===t?void 0:t.bnpl,authToken:this.authToken,"account-id":null===(e=this.checkout)||void 0===e?void 0:e.account_id,savedPaymentMethods:(null===(a=this.checkout)||void 0===a?void 0:a.payment_methods)||[],paymentAmount:null===(o=this.checkout)||void 0===o?void 0:o.payment_amount,insuranceToggled:this.insuranceToggled})))}get summary(){var s,t;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(m,{height:"24px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("div",{part:p},null===(s=this.checkout)||void 0===s?void 0:s.payment_description),i("div",null,i("span",{part:p},"Total")," ",i("span",{part:p},e(+(null===(t=this.checkout)||void 0===t?void 0:t.total_amount))))))}render(){return i(l,{key:"2fb8b2c2b543712023c74cf9b41dc57675c89237"},i("div",{key:"caba36e076e4162d9c92844f7c0632b5bf678de6",class:"row gy-3 jfi-checkout-core"},i("div",{key:"6a27d64005d785815d5567894d6e2a6e1e515cf8",class:"col-12",part:f},i(h,{key:"645fe4250331805e86811700b453458f065188bd",text:"Summary",class:"fs-5 fw-bold pb-3"}),this.summary),i("div",{key:"c49c73eb3462ad17e0344e74be508abe958a9358",class:"col-12"},i("slot",{key:"be626bff57c95b92f9853e2e9b63dd9279834142",name:"insurance"})),i("div",{key:"025b0400164935f10d6c79d445bfdcf157290fd6",class:"col-12 mt-4"},i(h,{key:"483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab",text:"Payment",class:"fs-5 fw-bold pb-3"}),i(b,{key:"21abbd4d669e351c8ad0a87b7b408a4998948b46",text:"Select payment type",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"9441e97e1bd64b796ebcf1404d4ca04964990982",class:"d-flex flex-column"},this.paymentType)),i("div",{key:"9db2e4fccff5b868e7d329d9b0be864942adcc3d",class:"col-12"},i("div",{key:"2eaef4ed6062b27de2516de7b71a056c829f8cab",class:"d-flex justify-content-end"},i(n,{key:"505869afa61094d628b58a32749c44f678e4fda3",type:"submit",variant:"primary",onClick:s=>this.submit(s),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};export{y as justifi_checkout_core}
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as e}from"./p-D6FDxSyt.js";import{a as i,b as r}from"./p-eHhqPyVW.js";import{F as o,c as n}from"./p-DVnVdicA.js";import{A as a,C as l,R as h,c}from"./p-BlJnA265.js";import{C as d,P as u}from"./p-B-iV5cYd.js";import{D as m}from"./p-BrLVc_85.js";import{S as p}from"./p-U30-0DaA.js";import"./p-CZfYo5-1.js";import{a as f,r as v,s as y,b}from"./p-yH3TC3ZQ.js";import{a as g,B as w}from"./p-XYgDHrVL.js";import{z as _,A as x,B as j,C as S,D as T,y as C,E as D,F as L}from"./p-l3uWWMRW.js";import"./p-D4Mv5jCp.js";import"./p-BnE7qgLh.js";import{C as O,a as k}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import{a as H,b as V}from"./p-CaGOSFHG.js";import"./p-Bk4gk-f7.js";import"./p-BH0Xfn-F.js";import{n as E}from"./p-BnjCmwMr.js";import{B as A}from"./p-cNABKY0P.js";import{i as B,a as P}from"./p-DR89sFne.js";import{S as W}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-Cd06j2SL.js";class I{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.account_number=s.account_number,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const F=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(p,{width:"25%"})),s("div",{class:"col-12"},s(p,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(p,{width:"50%"}),s(p,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(p,{width:"65%"}),s(p,{width:"35%"}))),N=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(p,{width:"40%",height:"40px"})),s(F,null),s(F,null),s(F,null)),U=class{constructor(s){t(this,s),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:s=>{this.additional_questions=new a(s.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t})),this.additional_questions=new a(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}recurringPaymentsWatcher(s){this.recurringPayments="Yes"===(null==s?void 0:s.business_recurring_payments)}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{additional_questions:new a(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){var t,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Additional Questions"),s("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},s("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===(t=this.errors)||void 0===t?void 0:t.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:d.WHOLE})),s("div",{class:"col-12 col-md-6"},s("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:d.WHOLE})),s("div",{class:"col-12"},s("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:f,defaultValue:null==l?void 0:l.business_when_service_received})),s("div",{class:"col-12"},s("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:v,defaultValue:null==l?void 0:l.business_recurring_payments})),s("div",{class:"col-12",hidden:!this.recurringPayments},s("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."})),s("div",{class:"col-12"},s("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})),s("div",{class:"col-12"},s("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=(s,t)=>{const e=n({bank_name:L.required("Enter bank name"),nickname:D.required("Enter nickname"),account_owner_name:C.required("Enter account owner name"),account_type:T.required("Select account type"),account_number:S.required("Enter account number"),routing_number:j.required("Enter routing number"),voided_check:x(s,t),bank_statement:_(s,t)}),i=n({bank_name:L.nullable(),nickname:D.nullable(),account_owner_name:C.nullable(),account_type:T.nullable(),account_number:S.nullable(),routing_number:j.nullable(),voided_check:x(s,t),bank_statement:_(s,t)});return t?i:e},R=class{constructor(s){t(this,s),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 H,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(q(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new V({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{s.data.bank_accounts.length>0?this.bankAccount=new I(s.data.bank_accounts[0]):(this.bankAccount=new I({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=s.data.documents},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async s=>{this.isLoading=!0;const t=s.record_data;return new Promise((e=>{this.postDocumentRecord({payload:t,onSuccess:t=>{e(this.handleDocRecordResponse(s,t))},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:k.POST_ERROR,message:t.error.message,severity:O.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>!s.error||(this.errorEvent.emit({errorCode:k.POST_ERROR,message:s.error.message,severity:O.ERROR,data:s.error}),!1)}watchHandler(s){this.formLoading.emit(s)}async validateAndSubmit({onSuccess:s}){this.existingBankAccount?this.sendData(s):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(q(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get postPayload(){return new I(this.formController.values.getValue()).payload}get existingBankAccount(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}async sendData(s){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;s()}catch(s){this.errorEvent.emit({message:s,errorCode:k.POST_ERROR,severity:O.ERROR})}}async postBankAccountData(){let s;return this.isLoading=!0,new Promise((t=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:t=>{s=t,e=!0},onError:({error:s,code:t,severity:i})=>{e=!1,this.errorEvent.emit({message:s,errorCode:t,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.bankAccount}),this.isLoading=!1,t(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const s=Object.values(this.documentData).flat();return!s.length||!(await Promise.all(s.map((s=>this.postDocumentRecordData(s))))).includes(!1)&&!(await Promise.all(s.map((s=>this.uploadDocument(s))))).includes(!1)}finally{this.isLoading=!1}}render(){const t=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",{class:"mb-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Bank Account Info"),s("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."})),s("hr",{class:"mt-2"}),s("bank-account-form-inputs",{defaultValue:t,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),s("fieldset",{class:"mt-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Document Uploads"),s("form-control-tooltip",{helpText:"These documents are required for underwriting purposes. Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),s("hr",{class:"mt-2"}),s("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),s("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},Y=class{constructor(s){t(this,s),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:s=>{this.coreInfo=new l(s.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return new l(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){const t=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Business Information")),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12"},s("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:t.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)."})),s("div",{class:"col-12"},s("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:t.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)"})),s("div",{class:"col-12 col-md-8"},s("form-control-select",{name:"classification",label:"Business Classification",options:b,defaultValue:t.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-4"},s("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:t.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"industry",label:"Industry",defaultValue:t.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:t.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:E,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),s("div",{class:"col-12"},s("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:t.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."})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"email",label:"Business Email Address",defaultValue:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:t.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:u.US})))))}},M=class{constructor(s){t(this,s),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=(s,t)=>{const e=this.refs.findIndex((s=>s===t));-1!==e&&(this.refs[e]=s)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{s.data.owners.length?this.ownersPayload=s.data.owners.map((s=>({id:s.id}))):this.addOwnerForm()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=s=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],s&&this.clickEvent.emit({name:w.addOwnerForm})},this.removeOwnerForm=s=>{this.ownersPayload=this.ownersPayload.filter((t=>t.id!==s)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((s=>s.id))}async validateAndSubmit({onSuccess:s}){const t=this.refs.map((s=>s.validate()));if(!(await Promise.all(t)).every((s=>s)))return;const e=this.refs.map((s=>s.submit()));(await Promise.all(e)).every((s=>s))&&this.sendData(s)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(s){const t=s.detail,e=this.ownersPayload.map((s=>s.id===t.id?t:s));e.includes(t)||(e[this.ownersPayload.findIndex((s=>!s.id))]=t,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?s(N,null):s("div",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Owners"),s("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."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},this.ownersPayload.map((t=>s("justifi-owner-form",{key:t.id,authToken:this.authToken,businessId:this.businessId,ownerId:t.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:s=>this.matchRef(s,t.id)})))),s("div",{class:"d-flex justify-content-start"},s("div",{class:"gap-2"},s(A,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},X=class{constructor(s){t(this,s),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:s=>{this.representative=new h(s.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{representative:new h(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(B("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){return this.isLoading?s(N,null):s("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},G=class{constructor(s){t(this,s),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:s=>{this.legal_address=new c(s.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{legal_address:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){var t,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Legal Address of your Business"),s("form-control-tooltip",{helpText:"No PO Boxes."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12"},s("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1})),s("div",{class:"col-12"},s("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})),s("div",{class:"col-12"},s("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})),s("div",{class:"col-12"},s("form-control-select",{name:"state",label:"State",options:W,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),s("div",{class:"col-12"},s("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:E})),s("div",{class:"col-12"},s("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{U as justifi_additional_questions_form_step_core,R as justifi_business_bank_account_form_step_core,Y as justifi_business_core_info_form_step_core,M as justifi_business_owners_form_step_core,X as justifi_business_representative_form_step_core,G as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as r}from"./p-D6FDxSyt.js";import{A as o}from"./p-D2ZiLcDE.js";import{C as i,a as e}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-CaGOSFHG.js";import"./p-Bk4gk-f7.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a}from"./p-C5RuuShs.js";import{E as n}from"./p-l3o3Ndc0.js";import{c as h,J as c}from"./p-BR7flk4G.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-BjMTOtI1.js";const m=o();class j{async fetchGrossVolumeChartData(t,s){return m.get({endpoint:`account/${t}/reports/gross_volume`,authToken:s})}}const u=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:t,authToken:s,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(t,s);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(t){const s=p(null==t?void 0:t.code);e({error:a(t),code:s,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new j}):(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{u as justifi_gross_payment_chart}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-D2ZiLcDE.js";import"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-CaGOSFHG.js";import"./p-Bk4gk-f7.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const n=t();class a{async fetchPayments(t,a,s){return n.get({endpoint:`account/${t}/payments`,params:s,authToken:a})}async fetchPayment(t,a){return n.get({endpoint:`payments/${t}`,authToken:a})}async fetchPaymentTransactions(t,a,s){return n.get({endpoint:`payments/${t}/payment_balance_transactions`,params:s,authToken:a})}}export{a as P}
@@ -1 +0,0 @@
1
- import{a as e,b as a}from"./p-DVnVdicA.js";import{S as t}from"./p-BX8GieXu.js";import{b as s,a as r,r as n,s as i,c}from"./p-yH3TC3ZQ.js";import{E as l}from"./p-CaGOSFHG.js";const o=e=>""===e?null:e,u=/^\d+$/,m=/P\.?\s?O\.?\s?Box|Postal\sBox/i,d=e().email("Enter valid email").transform(o),b=e().matches(/^\d{10}$/,"Enter valid phone number").transform(o),h=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(o),v=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(o),p=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(o),E=e().oneOf(s.map((e=>e.value)),"Select business classification").transform(o),S=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(o),N=e().matches(u,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(o),y=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(o),g=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(o),w=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(o),A=a=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${a} must be at least 18 years old`,(e=>{const a=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),a<=t})).transform(o),f=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(o),x=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!m.test(e))).transform(o),$=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!m.test(e))).transform(o),D=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(o),B=e().oneOf(t.map((e=>e.value)),"Enter a 2-letter state abbreviation, such as CA").transform(o),C=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(o),P=e().matches(u,"Enter valid revenue").transform(o),j=e().matches(u,"Enter valid payment volume").transform(o),I=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(o),_=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(o),z=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(o),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(o),q=e().transform(o),G=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(o),T=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(o),Z=e().oneOf(c.map((e=>e.value)),"Select account type").transform(o),F=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(u,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(o),H=e().length(9,"Routing number must be 9 digits").matches(u,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const a=Array.from(String(e),Number);return 9===a.length&&0==(3*(a[0]+a[3]+a[6])+7*(a[1]+a[4]+a[7])+(a[2]+a[5]+a[8]))%10})(e))).transform(o),V=a(),X=(e,a)=>e.some((e=>e.document_type===l.voidedCheck))||a?V.nullable():V.required("Please select one or more files"),k=(e,a)=>e.some((e=>e.document_type===l.bankStatement))||a?V.nullable():V.required("Please select one or more files");export{X as A,H as B,F as C,Z as D,T as E,G as F,v as a,E as b,h as c,y as d,d as e,_ as f,I as g,j as h,S as i,P as j,C as k,B as l,D as m,$ as n,q as o,b as p,x as q,z as r,O as s,N as t,f as u,A as v,p as w,w as x,g as y,k as z}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-Cd06j2SL.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,j=s((()=>a)),{state:p}=j,r=()=>Object.assign(Object.assign({},c),p),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,p}
@@ -1 +0,0 @@
1
- import{c as s}from"./p-Cd06j2SL.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,j=s((()=>a)),{state:p}=j,r=()=>Object.assign(Object.assign({},c),p),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,p}