@justifi/webcomponents 5.7.3 → 5.7.4-rc-01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (646) hide show
  1. package/dist/cjs/{check-pkg-version-BqLxQqZQ.js → Analytics-CLEDjTfr.js} +23 -23
  2. package/dist/cjs/{Api-CJ1_RDQW.js → Api-c8NBCwu4.js} +1 -1
  3. package/dist/cjs/{Checkout-TZnRz3-3.js → Checkout-BsYZoJ0a.js} +1 -3
  4. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  6. package/dist/cjs/{badge-ByHiVqEE.js → badge-DDksduwk.js} +1 -1
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +9 -9
  8. package/dist/cjs/{bank-account-form_9.cjs.entry.js → bank-account-form_7.cjs.entry.js} +24 -195
  9. package/dist/cjs/billing-form-schema-X1bkxteI.js +26 -0
  10. package/dist/cjs/{business-additional-questions-schema-e3GCIHk5.js → business-additional-questions-schema-C1Ot5vrv.js} +6 -6
  11. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  12. package/dist/cjs/{business-identity-schema-Diqj_WVQ.js → business-identity-schema-hk4UVEna.js} +10 -10
  13. package/dist/cjs/{business.service-CsKKWn0g.js → business.service-BjlK8M6t.js} +3 -3
  14. package/dist/cjs/{button-DXvFLf3b.js → button-0HYMPryx.js} +1 -1
  15. package/dist/cjs/checkout-actions-CRbQgLn0.js +61 -0
  16. package/dist/cjs/{checkout.service-CugpgJy_.js → checkout.service-Bln6jCAj.js} +3 -3
  17. package/dist/cjs/checkout.store-LEOetpmH.js +29 -0
  18. package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -11
  19. package/dist/cjs/{checkouts-list-params-state-BZPc3hJS.js → checkouts-list-params-state-DZUKBmLC.js} +1 -1
  20. package/dist/cjs/{checkouts-table-BV-36YfA.js → checkouts-table-CrpOOe_e.js} +2 -2
  21. package/dist/cjs/{config-state-BH7lf2ok.js → config-state-Dz9bnWHg.js} +1 -1
  22. package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
  23. package/dist/cjs/{dispute.service-B8vLwAZm.js → dispute.service-Bo84yh33.js} +3 -3
  24. package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
  25. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  26. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  27. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  28. package/dist/cjs/{form-control-error-text-B-3qE49U.js → form-control-error-text-CVPYL0lE.js} +1 -1
  29. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  30. package/dist/cjs/{form-control-help-text-BlYVOrII.js → form-control-help-text-B3jRgfoa.js} +1 -1
  31. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  32. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
  33. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  34. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  35. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  36. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  37. package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
  38. package/dist/cjs/{get-payment-details-CudOQBpU.js → get-payment-details-OrAuseBX.js} +4 -4
  39. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
  40. package/dist/cjs/{get-subaccounts-DjwsQffs.js → get-subaccounts-CoC0XYqj.js} +5 -5
  41. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +28 -9
  42. package/dist/cjs/{header-1-agnQ4uEf.js → header-1-M-mc3bsa.js} +1 -1
  43. package/dist/cjs/{header-3-BAx5OhvM.js → header-3-BnKbOjvz.js} +1 -1
  44. package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
  45. package/dist/cjs/{index-oahmQhrI.js → index-BCtVWU61.js} +1 -1
  46. package/dist/cjs/{index-y-rskGFM.js → index-D5bL1DOi.js} +38 -10
  47. package/dist/cjs/{insurance-state-CCo-Gmfe.js → insurance-state-BsGy_svD.js} +2 -2
  48. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +23 -23
  49. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +16 -16
  50. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +43 -43
  51. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +85 -0
  52. package/dist/cjs/justifi-billing-information-form.cjs.entry.js +50 -0
  53. package/dist/cjs/justifi-business-details.cjs.entry.js +14 -14
  54. package/dist/cjs/justifi-business-form.cjs.entry.js +23 -23
  55. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  56. package/dist/cjs/justifi-card-form.cjs.entry.js +93 -0
  57. package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -9
  58. package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
  59. package/dist/cjs/justifi-checkout.cjs.entry.js +26 -70
  60. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +8 -8
  61. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
  62. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  64. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  65. package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -13
  66. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +18 -18
  67. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +12 -12
  68. package/dist/cjs/justifi-modular-checkout.cjs.entry.js +204 -0
  69. package/dist/cjs/justifi-order-terminals.cjs.entry.js +17 -17
  70. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +14 -14
  71. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  72. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  73. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +13 -13
  74. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +16 -16
  75. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  76. package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -17
  77. package/dist/cjs/justifi-payout-details.cjs.entry.js +14 -14
  78. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -16
  79. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  80. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -19
  81. package/dist/cjs/justifi-postal-code-form.cjs.entry.js +49 -0
  82. package/dist/cjs/justifi-refund-payment.cjs.entry.js +23 -23
  83. package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
  84. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -5
  85. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +19 -21
  86. package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
  87. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +9 -9
  88. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
  89. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +8 -8
  90. package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
  91. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +20 -13
  92. package/dist/cjs/loader.cjs.js +3 -4
  93. package/dist/cjs/{package-a_vXN-Ly.js → package-D89BDRKu.js} +1 -1
  94. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  95. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  96. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
  97. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
  98. package/dist/cjs/{payment.service-aqlDvgDe.js → payment.service-C0t9DRcu.js} +3 -3
  99. package/dist/cjs/payments-list-core.cjs.entry.js +12 -12
  100. package/dist/cjs/{payments-list-params-state-BZPc3hJS.js → payments-list-params-state-DZUKBmLC.js} +1 -1
  101. package/dist/cjs/{payments-status-CWK1uHtj.js → payments-status-DG50GuXR.js} +2 -2
  102. package/dist/cjs/{payments-table-CP8LGibG.js → payments-table-BqxFc71K.js} +2 -2
  103. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  104. package/dist/cjs/{payout.service-CL-hcMGg.js → payout.service-DGeLS8BN.js} +3 -3
  105. package/dist/cjs/payouts-list-core.cjs.entry.js +12 -12
  106. package/dist/cjs/{payouts-list-params-state-BZPc3hJS.js → payouts-list-params-state-DZUKBmLC.js} +1 -1
  107. package/dist/cjs/{payouts-status-Jz2Mh3JP.js → payouts-status-meuI7eBr.js} +2 -2
  108. package/dist/cjs/{payouts-table-DyuoNtFw.js → payouts-table-iT2IauEa.js} +2 -2
  109. package/dist/cjs/{schema-validations-BSeMee-o.js → schema-validations-CllkToCZ.js} +31 -31
  110. package/dist/cjs/{skeleton-CgT0siC5.js → skeleton-CbZBGO47.js} +1 -1
  111. package/dist/cjs/{spinner-Cz4By3FY.js → spinner-CIZFX7bz.js} +1 -1
  112. package/dist/cjs/{styled-host-LD5MpzHs.js → styled-host-DXNHOiqW.js} +1 -1
  113. package/dist/cjs/{table-Cvr8-PLT.js → table-CxvETNS1.js} +2 -2
  114. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  115. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +11 -11
  116. package/dist/cjs/{terminal-orders-list-params-state-BZPc3hJS.js → terminal-orders-list-params-state-DZUKBmLC.js} +1 -1
  117. package/dist/cjs/{terminal-orders-table-CslE3Ojj.js → terminal-orders-table-Dw6uHG1R.js} +5 -5
  118. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  119. package/dist/cjs/{terminal.service-3geWla42.js → terminal.service-Ck6PIO3G.js} +3 -3
  120. package/dist/cjs/terminals-list-core.cjs.entry.js +11 -11
  121. package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +22 -0
  122. package/dist/cjs/{terminals-table-DlZSKdHC.js → terminals-table-sf-s5v6D.js} +2 -2
  123. package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
  124. package/dist/cjs/{utils-B4fXt0os.js → utils-wkdkLmDI.js} +1 -1
  125. package/dist/cjs/webcomponents.cjs.js +4 -5
  126. package/dist/collection/api/BillingInformation.js +1 -0
  127. package/dist/collection/api/Checkout.js +1 -3
  128. package/dist/collection/api/ComponentError.js +2 -0
  129. package/dist/collection/api/PaymentMethod.js +1 -0
  130. package/dist/collection/collection-manifest.json +9 -2
  131. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  132. package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
  133. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  134. package/dist/collection/components/checkout/checkout.js +11 -2
  135. package/dist/collection/components/checkout/payment-method-options.js +3 -33
  136. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  137. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  138. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  143. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  144. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  152. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  153. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  154. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -12
  155. package/dist/collection/components/modular-checkout/modular-checkout.js +345 -0
  156. package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +10 -0
  157. package/dist/collection/components/modular-checkout-parts/bank-account.js +98 -0
  158. package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +21 -0
  159. package/dist/collection/components/modular-checkout-parts/billing-form.js +116 -0
  160. package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +10 -0
  161. package/dist/collection/components/modular-checkout-parts/card-form.js +102 -0
  162. package/dist/collection/components/modular-checkout-parts/postal-code-form.js +114 -0
  163. package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +23 -0
  164. package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +127 -0
  165. package/dist/collection/components/modular-checkout-parts/summary.js +12 -0
  166. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  167. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  168. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  169. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  170. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  171. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  172. package/dist/collection/components/payments-list/payments-list.js +1 -1
  173. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  174. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  175. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  176. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  177. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  178. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  179. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  180. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  181. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  182. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  183. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  184. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
  185. package/dist/collection/store/checkout.store.js +25 -0
  186. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  187. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  188. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  190. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  191. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  194. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  196. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  198. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  199. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  200. package/dist/docs.json +799 -268
  201. package/dist/esm/{check-pkg-version-CxnnjoM3.js → Analytics-B3nThWuq.js} +25 -25
  202. package/dist/esm/{Api-CZhQlPMs.js → Api-C3T8XYbb.js} +2 -2
  203. package/dist/esm/{Checkout-B9LrTq63.js → Checkout-CV6qgU0r.js} +2 -4
  204. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
  205. package/dist/esm/{Payment-BGiKmQYR.js → Payment-BEvE6jAC.js} +1 -1
  206. package/dist/esm/{Refund-DDIEc_gu.js → Refund-BKe90wSq.js} +1 -1
  207. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  208. package/dist/esm/{badge-Bbh4S1LJ.js → badge-DHaTxWwu.js} +2 -2
  209. package/dist/esm/bank-account-document-form-inputs_4.entry.js +13 -13
  210. package/dist/esm/{bank-account-form_9.entry.js → bank-account-form_7.entry.js} +20 -189
  211. package/dist/esm/billing-form-schema-BQf2Ydp0.js +24 -0
  212. package/dist/esm/{business-additional-questions-schema-uQlQ8fXQ.js → business-additional-questions-schema-D00MNMDJ.js} +2 -2
  213. package/dist/esm/business-details-core.entry.js +5 -5
  214. package/dist/esm/{business-identity-schema-BsrgqgDl.js → business-identity-schema-pxSsAdgG.js} +2 -2
  215. package/dist/esm/{business.service-CUWiJ5Un.js → business.service-BMABw2vX.js} +5 -5
  216. package/dist/esm/{button-BrZXQ8gb.js → button-5hc5r__m.js} +2 -2
  217. package/dist/esm/checkout-actions-UQ6g1s7I.js +58 -0
  218. package/dist/esm/{checkout.service-DqXrjRw7.js → checkout.service-jmweME4d.js} +5 -5
  219. package/dist/esm/checkout.store-Ffl2B_i4.js +27 -0
  220. package/dist/esm/checkouts-list-core.entry.js +15 -15
  221. package/dist/esm/{checkouts-list-params-state-BI3u1DYG.js → checkouts-list-params-state-DFWVMJRJ.js} +1 -1
  222. package/dist/esm/{checkouts-table-p7UZFB5v.js → checkouts-table-BS_UiHaT.js} +4 -4
  223. package/dist/esm/{config-state-ecb1EsvM.js → config-state-B3mtRA6f.js} +1 -1
  224. package/dist/esm/custom-popper_4.entry.js +9 -9
  225. package/dist/esm/{dispute.service-DpgnWZA1.js → dispute.service-DWQ8DPZa.js} +5 -5
  226. package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
  227. package/dist/esm/form-alert_5.entry.js +2 -2
  228. package/dist/esm/form-control-checkbox.entry.js +6 -6
  229. package/dist/esm/form-control-date.entry.js +5 -5
  230. package/dist/esm/{form-control-error-text-lGsxANkt.js → form-control-error-text-C93L7yFm.js} +2 -2
  231. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  232. package/dist/esm/{form-control-help-text-DjU4NWmt.js → form-control-help-text-p28euWGX.js} +2 -2
  233. package/dist/esm/form-control-help-text.entry.js +1 -1
  234. package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
  235. package/dist/esm/form-control-monetary.entry.js +7 -7
  236. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  237. package/dist/esm/form-control-number.entry.js +6 -6
  238. package/dist/esm/form-control-radio.entry.js +4 -4
  239. package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
  240. package/dist/esm/{get-payment-details-ChRlNtIz.js → get-payment-details-PSdVeuGc.js} +7 -7
  241. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
  242. package/dist/esm/{get-subaccounts-DiROU10G.js → get-subaccounts-CownROrO.js} +8 -8
  243. package/dist/esm/gross-payment-chart-core.entry.js +30 -11
  244. package/dist/esm/{header-1-Xbhp2rfA.js → header-1-CUc5m0Ge.js} +2 -2
  245. package/dist/esm/{header-3-DwjHOg3C.js → header-3-BXU3iN46.js} +2 -2
  246. package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
  247. package/dist/esm/{index-Dc7aGxx-.js → index-BAq5IUBW.js} +1 -1
  248. package/dist/esm/{index-DeiW2BDb.js → index-N3w5zrz2.js} +38 -11
  249. package/dist/esm/{insurance-state-CiK3s-Fy.js → insurance-state-Br0fBMFI.js} +3 -3
  250. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +15 -15
  251. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +15 -15
  252. package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
  253. package/dist/esm/justifi-bank-account-form.entry.js +83 -0
  254. package/dist/esm/justifi-billing-information-form.entry.js +48 -0
  255. package/dist/esm/justifi-business-details.entry.js +16 -16
  256. package/dist/esm/justifi-business-form.entry.js +23 -23
  257. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  258. package/dist/esm/justifi-card-form.entry.js +91 -0
  259. package/dist/esm/justifi-checkout-core.entry.js +11 -11
  260. package/dist/esm/justifi-checkout-summary.entry.js +19 -0
  261. package/dist/esm/justifi-checkout.entry.js +25 -69
  262. package/dist/esm/justifi-checkouts-list-filters.entry.js +12 -12
  263. package/dist/esm/justifi-checkouts-list.entry.js +19 -19
  264. package/dist/esm/justifi-config-provider.entry.js +3 -3
  265. package/dist/esm/justifi-details.entry.js +3 -3
  266. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  267. package/dist/esm/justifi-dispute-management.entry.js +14 -14
  268. package/dist/esm/justifi-dispute-notification_3.entry.js +20 -20
  269. package/dist/esm/justifi-gross-payment-chart.entry.js +14 -14
  270. package/dist/esm/justifi-modular-checkout.entry.js +202 -0
  271. package/dist/esm/justifi-order-terminals.entry.js +19 -19
  272. package/dist/esm/justifi-owner-form_3.entry.js +17 -17
  273. package/dist/esm/justifi-payment-details.entry.js +16 -16
  274. package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
  275. package/dist/esm/justifi-payment-provisioning.entry.js +14 -14
  276. package/dist/esm/justifi-payment-transactions-list.entry.js +18 -18
  277. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  278. package/dist/esm/justifi-payments-list.entry.js +19 -19
  279. package/dist/esm/justifi-payout-details.entry.js +16 -16
  280. package/dist/esm/justifi-payout-transactions-list.entry.js +18 -18
  281. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  282. package/dist/esm/justifi-payouts-list.entry.js +21 -21
  283. package/dist/esm/justifi-postal-code-form.entry.js +47 -0
  284. package/dist/esm/justifi-refund-payment.entry.js +19 -19
  285. package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
  286. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -7
  287. package/dist/esm/justifi-season-interruption-insurance.entry.js +20 -22
  288. package/dist/esm/justifi-sezzle-payment-method.entry.js +78 -0
  289. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +13 -13
  290. package/dist/esm/justifi-terminal-orders-list.entry.js +17 -17
  291. package/dist/esm/justifi-terminals-list-filters.entry.js +12 -12
  292. package/dist/esm/justifi-terminals-list.entry.js +19 -19
  293. package/dist/esm/justifi-tokenize-payment-method.entry.js +22 -15
  294. package/dist/esm/loader.js +3 -4
  295. package/dist/esm/{package-DCoo9Ds8.js → package-rzqedGq4.js} +1 -1
  296. package/dist/esm/pagination-menu.entry.js +2 -2
  297. package/dist/esm/{parts-BrLVc_85.js → parts-_6eQgwfE.js} +1 -1
  298. package/dist/esm/payment-details-core.entry.js +16 -16
  299. package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
  300. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
  301. package/dist/esm/{payment.service-BV8Gg3vY.js → payment.service-u8UGq6gX.js} +5 -5
  302. package/dist/esm/payments-list-core.entry.js +16 -16
  303. package/dist/esm/{payments-list-params-state-BI3u1DYG.js → payments-list-params-state-DFWVMJRJ.js} +1 -1
  304. package/dist/esm/{payments-status-DIH2IxWy.js → payments-status-BMqVM0kB.js} +2 -2
  305. package/dist/esm/{payments-table-DiEtudGk.js → payments-table-BMIALfY5.js} +4 -4
  306. package/dist/esm/payout-details-core.entry.js +12 -12
  307. package/dist/esm/{payout.service-DA9Y4buU.js → payout.service-CXW3oJqI.js} +5 -5
  308. package/dist/esm/payouts-list-core.entry.js +16 -16
  309. package/dist/esm/{payouts-list-params-state-BI3u1DYG.js → payouts-list-params-state-DFWVMJRJ.js} +1 -1
  310. package/dist/esm/{payouts-status-ZOiWvFE-.js → payouts-status-BGGBJaXG.js} +2 -2
  311. package/dist/esm/{payouts-table-DbzIHwgZ.js → payouts-table-BNPc0Z6X.js} +4 -4
  312. package/dist/esm/{schema-validations-DLWfpHyI.js → schema-validations-C7pC-de1.js} +2 -2
  313. package/dist/esm/{skeleton-B9rUHFom.js → skeleton-C0KgFH0Z.js} +2 -2
  314. package/dist/esm/{spinner-CrzsUbgI.js → spinner-Dtab-HTx.js} +2 -2
  315. package/dist/esm/{styled-host-_2J3PYDn.js → styled-host-DtvbNFVU.js} +1 -1
  316. package/dist/esm/table-filters-menu.entry.js +4 -4
  317. package/dist/esm/{table-CqDcXJpP.js → table-wp341KhD.js} +3 -3
  318. package/dist/esm/terminal-orders-list-core.entry.js +15 -15
  319. package/dist/esm/{terminal-orders-list-params-state-BI3u1DYG.js → terminal-orders-list-params-state-DFWVMJRJ.js} +1 -1
  320. package/dist/esm/{terminal-orders-table-D7EOk3GS.js → terminal-orders-table-CzEC1eXm.js} +9 -9
  321. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  322. package/dist/esm/{terminal.service-VdIvwUEC.js → terminal.service-Cw0RbYs3.js} +5 -5
  323. package/dist/esm/terminals-list-core.entry.js +15 -15
  324. package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +16 -0
  325. package/dist/esm/{terminals-table-C-fA-3eP.js → terminals-table-CcKZ_9re.js} +4 -4
  326. package/dist/esm/{utils-CcleFgVO.js → utils-BGp_IJEa.js} +2 -2
  327. package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
  328. package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
  329. package/dist/esm/webcomponents.js +4 -5
  330. package/dist/module/{check-pkg-version.js → Analytics.js} +21 -21
  331. package/dist/module/Checkout.js +3 -3
  332. package/dist/module/additional-statement.js +1 -1
  333. package/dist/module/bank-account-form2.js +2 -2
  334. package/dist/module/billing-form-schema.js +24 -0
  335. package/dist/module/billing-form.js +3 -3
  336. package/dist/module/business-address-schema.js +1 -1
  337. package/dist/module/business-bank-account-form-step-core.js +1 -1
  338. package/dist/module/business-core-info-schema.js +1 -1
  339. package/dist/module/business-identity-schema.js +1 -1
  340. package/dist/module/button.js +1 -1
  341. package/dist/module/cancellation-policy.js +1 -1
  342. package/dist/module/card-form2.js +2 -2
  343. package/dist/module/checkout-actions.js +58 -0
  344. package/dist/module/checkout-core.js +32 -38
  345. package/dist/module/checkout.store.js +27 -0
  346. package/dist/module/checkouts-list-core2.js +2 -2
  347. package/dist/module/custom-popper2.js +2 -2
  348. package/dist/module/customer-details.js +1 -1
  349. package/dist/module/dispute-management-core.js +1 -1
  350. package/dist/module/dispute-notification.js +1 -1
  351. package/dist/module/dispute-response-core.js +1 -1
  352. package/dist/module/dispute-response.js +2 -2
  353. package/dist/module/duplicate-charge.js +1 -1
  354. package/dist/module/electronic-evidence.js +1 -1
  355. package/dist/module/form-control-checkbox2.js +2 -2
  356. package/dist/module/form-control-date2.js +2 -2
  357. package/dist/module/form-control-file-v22.js +1 -1
  358. package/dist/module/form-control-file2.js +2 -2
  359. package/dist/module/form-control-monetary2.js +2 -2
  360. package/dist/module/form-control-number-masked2.js +2 -2
  361. package/dist/module/form-control-number.js +2 -2
  362. package/dist/module/form-control-radio2.js +2 -2
  363. package/dist/module/form-control-select2.js +2 -2
  364. package/dist/module/form-control-text2.js +2 -2
  365. package/dist/module/form-control-textarea2.js +2 -2
  366. package/dist/module/gross-payment-chart-core2.js +25 -6
  367. package/dist/module/hidden-input2.js +1 -1
  368. package/dist/module/iframe-input2.js +5 -5
  369. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  370. package/dist/module/justifi-bank-account-form.js +105 -0
  371. package/dist/module/justifi-billing-information-form.d.ts +11 -0
  372. package/dist/module/justifi-billing-information-form.js +94 -0
  373. package/dist/module/justifi-business-details.js +1 -1
  374. package/dist/module/justifi-business-form.js +1 -1
  375. package/dist/module/justifi-card-form.d.ts +11 -0
  376. package/dist/module/justifi-card-form.js +113 -0
  377. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  378. package/dist/module/justifi-checkout-summary.js +37 -0
  379. package/dist/module/justifi-checkout.js +48 -99
  380. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  381. package/dist/module/justifi-checkouts-list.js +2 -2
  382. package/dist/module/justifi-dispute-management.js +2 -2
  383. package/dist/module/justifi-gross-payment-chart.js +1 -1
  384. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  385. package/dist/module/justifi-modular-checkout.js +218 -0
  386. package/dist/module/justifi-order-terminals.js +3 -3
  387. package/dist/module/justifi-payment-details.js +1 -1
  388. package/dist/module/justifi-payment-provisioning.js +1 -1
  389. package/dist/module/justifi-payment-transactions-list.js +3 -3
  390. package/dist/module/justifi-payments-list-filters.js +3 -3
  391. package/dist/module/justifi-payments-list.js +2 -2
  392. package/dist/module/justifi-payout-details.js +1 -1
  393. package/dist/module/justifi-payout-transactions-list.js +3 -3
  394. package/dist/module/justifi-payouts-list-filters.js +3 -3
  395. package/dist/module/justifi-payouts-list.js +2 -2
  396. package/dist/module/justifi-postal-code-form.d.ts +11 -0
  397. package/dist/module/justifi-postal-code-form.js +86 -0
  398. package/dist/module/justifi-refund-payment.js +1 -1
  399. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  400. package/dist/module/justifi-saved-payment-methods.js +58 -0
  401. package/dist/module/justifi-season-interruption-insurance.js +9 -11
  402. package/dist/module/justifi-sezzle-payment-method.js +108 -1
  403. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  404. package/dist/module/justifi-terminal-orders-list.js +2 -2
  405. package/dist/module/justifi-terminals-list-filters.js +2 -2
  406. package/dist/module/justifi-terminals-list.js +2 -2
  407. package/dist/module/justifi-tokenize-payment-method.js +41 -40
  408. package/dist/module/package.js +3 -3
  409. package/dist/module/parts.js +1 -1
  410. package/dist/module/payment-details-core2.js +8 -8
  411. package/dist/module/payment-method-option-utils.js +23 -0
  412. package/dist/module/payment-method-options.js +34 -51
  413. package/dist/module/payments-list-core2.js +2 -2
  414. package/dist/module/payout-details-core2.js +3 -3
  415. package/dist/module/payouts-list-core2.js +2 -2
  416. package/dist/module/product-or-service.js +1 -1
  417. package/dist/module/refund-policy.js +1 -1
  418. package/dist/module/saved-payment-method.js +2 -22
  419. package/dist/module/schema-validations.js +1 -1
  420. package/dist/module/shipping-details.js +1 -1
  421. package/dist/module/table-filters-menu2.js +2 -2
  422. package/dist/module/terminal-orders-list-core2.js +2 -2
  423. package/dist/module/terminal-quantity-selector2.js +1 -1
  424. package/dist/module/terminals-list-core2.js +2 -2
  425. package/dist/types/api/BillingInformation.d.ts +13 -0
  426. package/dist/types/api/Checkout.d.ts +14 -13
  427. package/dist/types/api/ComponentError.d.ts +3 -1
  428. package/dist/types/api/PaymentMethod.d.ts +21 -0
  429. package/dist/types/components/checkout/checkout.d.ts +1 -0
  430. package/dist/types/components/checkout/payment-method-options.d.ts +0 -1
  431. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  432. package/dist/types/components/modular-checkout/modular-checkout.d.ts +31 -0
  433. package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +6 -0
  434. package/dist/types/components/modular-checkout-parts/bank-account.d.ts +18 -0
  435. package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +23 -0
  436. package/dist/types/components/modular-checkout-parts/billing-form.d.ts +16 -0
  437. package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +6 -0
  438. package/dist/types/components/modular-checkout-parts/card-form.d.ts +20 -0
  439. package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +16 -0
  440. package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +5 -0
  441. package/dist/types/components/{checkout → modular-checkout-parts}/sezzle-payment-method.d.ts +2 -8
  442. package/dist/types/components/modular-checkout-parts/summary.d.ts +3 -0
  443. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  444. package/dist/types/components.d.ts +149 -22
  445. package/dist/types/stencil-public-runtime.d.ts +1 -1
  446. package/dist/types/store/checkout.store.d.ts +19 -0
  447. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  448. package/dist/webcomponents/{p-d6a66b58.entry.js → p-02e39fe2.entry.js} +1 -1
  449. package/dist/webcomponents/{p-388e3afc.entry.js → p-03ed0703.entry.js} +1 -1
  450. package/dist/webcomponents/{p-3ef0b42b.entry.js → p-042c6784.entry.js} +1 -1
  451. package/dist/webcomponents/p-05ab99e7.entry.js +1 -0
  452. package/dist/webcomponents/p-05d92d45.entry.js +1 -0
  453. package/dist/webcomponents/p-0977a99a.entry.js +1 -0
  454. package/dist/webcomponents/p-0a7c3741.entry.js +1 -0
  455. package/dist/webcomponents/p-0d8ebb69.entry.js +1 -0
  456. package/dist/webcomponents/{p-0e3122fd.entry.js → p-0ed08f7b.entry.js} +1 -1
  457. package/dist/webcomponents/{p-9814a858.entry.js → p-0fc4a0df.entry.js} +1 -1
  458. package/dist/webcomponents/p-0lkrqFgg.js +1 -0
  459. package/dist/webcomponents/p-0wMiAwXe.js +1 -0
  460. package/dist/webcomponents/{p-5023d221.entry.js → p-1301a9ae.entry.js} +1 -1
  461. package/dist/webcomponents/p-15db3b15.entry.js +1 -0
  462. package/dist/webcomponents/{p-d3ff71df.entry.js → p-17727dd3.entry.js} +1 -1
  463. package/dist/webcomponents/p-1a0f21d1.entry.js +1 -0
  464. package/dist/webcomponents/p-31a9d45e.entry.js +1 -0
  465. package/dist/webcomponents/p-33bf5d85.entry.js +1 -0
  466. package/dist/webcomponents/p-4126de9e.entry.js +1 -0
  467. package/dist/webcomponents/{p-35299b25.entry.js → p-41dffb12.entry.js} +1 -1
  468. package/dist/webcomponents/{p-9154c9ae.entry.js → p-46c0aa2e.entry.js} +1 -1
  469. package/dist/webcomponents/p-4e38dfac.entry.js +1 -0
  470. package/dist/webcomponents/p-4ed62ecf.entry.js +1 -0
  471. package/dist/webcomponents/p-5f33350c.entry.js +1 -0
  472. package/dist/webcomponents/{p-217c0657.entry.js → p-60abac93.entry.js} +1 -1
  473. package/dist/webcomponents/{p-d8f92442.entry.js → p-6286917e.entry.js} +1 -1
  474. package/dist/webcomponents/p-631bbd5a.entry.js +1 -0
  475. package/dist/webcomponents/p-63e5e6f6.entry.js +1 -0
  476. package/dist/webcomponents/p-64f047ea.entry.js +1 -0
  477. package/dist/webcomponents/{p-aa539239.entry.js → p-6d5833b4.entry.js} +1 -1
  478. package/dist/webcomponents/{p-b0d1afd7.entry.js → p-6f6d7a87.entry.js} +1 -1
  479. package/dist/webcomponents/p-6ff96203.entry.js +1 -0
  480. package/dist/webcomponents/p-716dc79c.entry.js +1 -0
  481. package/dist/webcomponents/p-738ee098.entry.js +1 -0
  482. package/dist/webcomponents/{p-e3a07cb8.entry.js → p-783b70b5.entry.js} +1 -1
  483. package/dist/webcomponents/{p-6a89c4c8.entry.js → p-7a8a06d6.entry.js} +1 -1
  484. package/dist/webcomponents/{p-9c9bef60.entry.js → p-7c466cc9.entry.js} +1 -1
  485. package/dist/webcomponents/p-7c6f2fad.entry.js +1 -0
  486. package/dist/webcomponents/p-7e484d46.entry.js +1 -0
  487. package/dist/webcomponents/{p-a60abc68.entry.js → p-83037fd2.entry.js} +1 -1
  488. package/dist/webcomponents/{p-410b3f65.entry.js → p-84df9f26.entry.js} +1 -1
  489. package/dist/webcomponents/{p-ac5f5d89.entry.js → p-8ba23f7f.entry.js} +1 -1
  490. package/dist/webcomponents/{p-70b87e0c.entry.js → p-8bb3513f.entry.js} +1 -1
  491. package/dist/webcomponents/p-8fefebd7.entry.js +1 -0
  492. package/dist/webcomponents/p-93a843db.entry.js +1 -0
  493. package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
  494. package/dist/webcomponents/p-9b1992ef.entry.js +1 -0
  495. package/dist/webcomponents/p-9ba825c5.entry.js +1 -0
  496. package/dist/webcomponents/{p-9633ee66.entry.js → p-9c6479a4.entry.js} +1 -1
  497. package/dist/webcomponents/{p-29402bea.entry.js → p-9fe2281c.entry.js} +1 -1
  498. package/dist/webcomponents/p-BByypogb.js +1 -0
  499. package/dist/webcomponents/p-BI7GlCtv.js +1 -0
  500. package/dist/webcomponents/p-BJatoeR1.js +1 -0
  501. package/dist/webcomponents/p-BKatPL5G.js +1 -0
  502. package/dist/webcomponents/p-BXeHgiPz.js +1 -0
  503. package/dist/webcomponents/{p-Bjf1_zhy.js → p-BaoXNxnc.js} +1 -1
  504. package/dist/webcomponents/p-BgiXKaf2.js +1 -0
  505. package/dist/webcomponents/p-BhrFjjAs.js +1 -0
  506. package/dist/webcomponents/{p-DXhY2Usd.js → p-BmgpToYI.js} +1 -1
  507. package/dist/webcomponents/p-BnvoOeKL.js +1 -0
  508. package/dist/webcomponents/p-Bond4qGX.js +1 -0
  509. package/dist/webcomponents/p-BooprPq0.js +1 -0
  510. package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
  511. package/dist/webcomponents/{p-BC1dBUlF.js → p-C39xg5_f.js} +1 -1
  512. package/dist/webcomponents/{p-JOSiCHl7.js → p-C8Zhkgm5.js} +1 -1
  513. package/dist/webcomponents/{p-SoKRLnnI.js → p-CAdO_ZNx.js} +1 -1
  514. package/dist/webcomponents/p-CCPoezRw.js +1 -0
  515. package/dist/webcomponents/{p--B09FkmB.js → p-CFpYbRwn.js} +1 -1
  516. package/dist/webcomponents/p-CKRDBISo.js +1 -0
  517. package/dist/webcomponents/p-CXLazxt0.js +1 -0
  518. package/dist/webcomponents/{p-EbNktJEa.js → p-CdkOB2ri.js} +1 -1
  519. package/dist/webcomponents/{p-DQCcSXwL.js → p-Cf4TMP3p.js} +1 -1
  520. package/dist/webcomponents/p-CfBKn_Vl.js +1 -0
  521. package/dist/webcomponents/p-Cjf9yu8r.js +1 -0
  522. package/dist/webcomponents/p-Cwt_9Jzb.js +1 -0
  523. package/dist/webcomponents/p-D5ny0x8_.js +1 -0
  524. package/dist/webcomponents/{p-DzFysjCc.js → p-D7js9xfx.js} +1 -1
  525. package/dist/webcomponents/p-D7uH6T8P.js +1 -0
  526. package/dist/webcomponents/{p-ChL8tkhB.js → p-DHvfrLVU.js} +1 -1
  527. package/dist/webcomponents/p-DKClunJd.js +1 -0
  528. package/dist/webcomponents/p-DLopwJ61.js +1 -0
  529. package/dist/webcomponents/p-DRKOMqbX.js +1 -0
  530. package/dist/webcomponents/p-DXJXAroG.js +1 -0
  531. package/dist/webcomponents/{p-CgSqi8wc.js → p-Dcbfnfn2.js} +1 -1
  532. package/dist/webcomponents/{p-vTsHmSQQ.js → p-DddGO-XR.js} +1 -1
  533. package/dist/webcomponents/{p-CJ5VkiBV.js → p-DhyQbCOq.js} +1 -1
  534. package/dist/webcomponents/{p-DMNpawhg.js → p-Dqx8L05_.js} +1 -1
  535. package/dist/webcomponents/{p-B50n1fKP.js → p-DyvT8iXz.js} +1 -1
  536. package/dist/webcomponents/{p-DyCvl10I.js → p-MNmf3fQL.js} +1 -1
  537. package/dist/webcomponents/p-N3w5zrz2.js +2 -0
  538. package/dist/webcomponents/p-NqdaxjDT.js +1 -0
  539. package/dist/webcomponents/{p-CKAgqwwJ.js → p-Rx3SLAbu.js} +1 -1
  540. package/dist/webcomponents/{p-CaGTuT2-.js → p-Smvec9tp.js} +1 -1
  541. package/dist/webcomponents/{p-8qo1QTjv.js → p-XTXkuHkQ.js} +1 -1
  542. package/dist/webcomponents/{p-BrLVc_85.js → p-_6eQgwfE.js} +1 -1
  543. package/dist/webcomponents/{p-b95a7dc5.entry.js → p-a76e0f42.entry.js} +1 -1
  544. package/dist/webcomponents/{p-214d8301.entry.js → p-acdf6a5f.entry.js} +1 -1
  545. package/dist/webcomponents/{p-da6c0277.entry.js → p-bac895b4.entry.js} +1 -1
  546. package/dist/webcomponents/p-bc05e051.entry.js +1 -0
  547. package/dist/webcomponents/{p-d049acb4.entry.js → p-c102dea5.entry.js} +1 -1
  548. package/dist/webcomponents/{p-e0e3a939.entry.js → p-c4d2ff85.entry.js} +1 -1
  549. package/dist/webcomponents/p-cb84a2e6.entry.js +1 -0
  550. package/dist/webcomponents/{p-bfb2bad3.entry.js → p-cdc71a77.entry.js} +1 -1
  551. package/dist/webcomponents/p-ce242f4c.entry.js +1 -0
  552. package/dist/webcomponents/p-d0d83153.entry.js +1 -0
  553. package/dist/webcomponents/p-d5ada96f.entry.js +1 -0
  554. package/dist/webcomponents/p-d81f30f6.entry.js +1 -0
  555. package/dist/webcomponents/p-d90e981c.entry.js +1 -0
  556. package/dist/webcomponents/{p-f3d3070a.entry.js → p-da961813.entry.js} +1 -1
  557. package/dist/webcomponents/p-dadd593a.entry.js +1 -0
  558. package/dist/webcomponents/{p-2648b61f.entry.js → p-de969ec7.entry.js} +1 -1
  559. package/dist/webcomponents/p-e3437894.entry.js +1 -0
  560. package/dist/webcomponents/p-eb6f1a3f.entry.js +1 -0
  561. package/dist/webcomponents/p-ebc0b06d.entry.js +1 -0
  562. package/dist/webcomponents/p-ecfab304.entry.js +1 -0
  563. package/dist/webcomponents/{p-ccd256f5.entry.js → p-ef520bb8.entry.js} +1 -1
  564. package/dist/webcomponents/p-efa7aef1.entry.js +1 -0
  565. package/dist/webcomponents/p-eilUGO3o.js +1 -0
  566. package/dist/webcomponents/p-fd7c5ac5.entry.js +1 -0
  567. package/dist/webcomponents/{p-ab1353b0.entry.js → p-feea4bfd.entry.js} +6 -6
  568. package/dist/webcomponents/p-hDoH7hHP.js +1 -0
  569. package/dist/webcomponents/p-jA8bbxkp.js +1 -0
  570. package/dist/webcomponents/{p-Bl3ch-Ez.js → p-o5iASgog.js} +1 -1
  571. package/dist/webcomponents/p-pGzabKc7.js +1 -0
  572. package/dist/webcomponents/p-rzqedGq4.js +1 -0
  573. package/dist/webcomponents/p-w128-0Mj.js +1 -0
  574. package/dist/webcomponents/p-zucQG3cz.js +1 -0
  575. package/dist/webcomponents/webcomponents.esm.js +1 -1
  576. package/package.json +1 -1
  577. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  578. package/dist/cjs/iframe-input-styles-state-CFjq45QT.js +0 -26
  579. package/dist/cjs/terminals-list-params-state-BZPc3hJS.js +0 -22
  580. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  581. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  582. package/dist/esm/iframe-input-styles-state-BEips-at.js +0 -23
  583. package/dist/esm/terminals-list-params-state-BI3u1DYG.js +0 -16
  584. package/dist/module/sezzle-payment-method.js +0 -104
  585. package/dist/webcomponents/p-070a74b0.entry.js +0 -1
  586. package/dist/webcomponents/p-0bab65ad.entry.js +0 -1
  587. package/dist/webcomponents/p-0f4572d3.entry.js +0 -1
  588. package/dist/webcomponents/p-19f24867.entry.js +0 -1
  589. package/dist/webcomponents/p-2182e23d.entry.js +0 -1
  590. package/dist/webcomponents/p-30e036bd.entry.js +0 -1
  591. package/dist/webcomponents/p-342016ec.entry.js +0 -1
  592. package/dist/webcomponents/p-4d4aed9d.entry.js +0 -1
  593. package/dist/webcomponents/p-57ec45d9.entry.js +0 -1
  594. package/dist/webcomponents/p-5886b41e.entry.js +0 -1
  595. package/dist/webcomponents/p-61daf152.entry.js +0 -1
  596. package/dist/webcomponents/p-7ba945a9.entry.js +0 -1
  597. package/dist/webcomponents/p-95d4c1ec.entry.js +0 -1
  598. package/dist/webcomponents/p-9c7574a3.entry.js +0 -1
  599. package/dist/webcomponents/p-B0b_XePt.js +0 -1
  600. package/dist/webcomponents/p-B9zTkzgI.js +0 -1
  601. package/dist/webcomponents/p-BNqn5ta3.js +0 -1
  602. package/dist/webcomponents/p-BUJ--tSs.js +0 -1
  603. package/dist/webcomponents/p-BdTK0wi9.js +0 -1
  604. package/dist/webcomponents/p-BeW-xdck.js +0 -1
  605. package/dist/webcomponents/p-Bkffx_rQ.js +0 -1
  606. package/dist/webcomponents/p-BpDYt_Ep.js +0 -1
  607. package/dist/webcomponents/p-C1uPQOvi.js +0 -1
  608. package/dist/webcomponents/p-C2HQYreI.js +0 -1
  609. package/dist/webcomponents/p-C5RuuShs.js +0 -1
  610. package/dist/webcomponents/p-CeSHqD1r.js +0 -1
  611. package/dist/webcomponents/p-ClM8H2uM.js +0 -1
  612. package/dist/webcomponents/p-CoZ_5FVT.js +0 -1
  613. package/dist/webcomponents/p-CopnqpXU.js +0 -1
  614. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  615. package/dist/webcomponents/p-D9siq_gL.js +0 -1
  616. package/dist/webcomponents/p-DCoo9Ds8.js +0 -1
  617. package/dist/webcomponents/p-DGg9nHVL.js +0 -1
  618. package/dist/webcomponents/p-DQuL1Twl.js +0 -1
  619. package/dist/webcomponents/p-DVnVdicA.js +0 -1
  620. package/dist/webcomponents/p-Ddc5F_89.js +0 -1
  621. package/dist/webcomponents/p-DeiW2BDb.js +0 -2
  622. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  623. package/dist/webcomponents/p-HiTlvG5T.js +0 -1
  624. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  625. package/dist/webcomponents/p-XBoMjcoi.js +0 -1
  626. package/dist/webcomponents/p-_5PRoEe6.js +0 -1
  627. package/dist/webcomponents/p-a32ae525.entry.js +0 -1
  628. package/dist/webcomponents/p-aa949920.entry.js +0 -1
  629. package/dist/webcomponents/p-b17ed568.entry.js +0 -1
  630. package/dist/webcomponents/p-b59fc73d.entry.js +0 -1
  631. package/dist/webcomponents/p-b5c7c78d.entry.js +0 -1
  632. package/dist/webcomponents/p-b72eca25.entry.js +0 -1
  633. package/dist/webcomponents/p-b9283a1b.entry.js +0 -1
  634. package/dist/webcomponents/p-bO_FomzV.js +0 -1
  635. package/dist/webcomponents/p-bd1df685.entry.js +0 -1
  636. package/dist/webcomponents/p-c13538df.entry.js +0 -1
  637. package/dist/webcomponents/p-c535a165.entry.js +0 -1
  638. package/dist/webcomponents/p-c7a1439a.entry.js +0 -1
  639. package/dist/webcomponents/p-c80d077b.entry.js +0 -1
  640. package/dist/webcomponents/p-cfb4491e.entry.js +0 -1
  641. package/dist/webcomponents/p-d0b3a10e.entry.js +0 -1
  642. package/dist/webcomponents/p-d3f5c51e.entry.js +0 -1
  643. package/dist/webcomponents/p-d6tXI5Iw.js +0 -1
  644. package/dist/webcomponents/p-f03acabd.entry.js +0 -1
  645. package/dist/webcomponents/p-f1e54daa.entry.js +0 -1
  646. package/dist/webcomponents/p-hG0Fy7E9.js +0 -1
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-DeiW2BDb.js";import{a as i,b as r}from"./p-d6tXI5Iw.js";import{F as o,c as n,b as a}from"./p-DVnVdicA.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{D as p}from"./p-BrLVc_85.js";import{S as f}from"./p-BpDYt_Ep.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,h as j,i as T}from"./p--B09FkmB.js";import{z as S,A as k,B as C,y as O,C as D,D as L}from"./p-JOSiCHl7.js";import"./p-Ddc5F_89.js";import"./p-BnE7qgLh.js";import{C as H,a as B}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import{n as E}from"./p-BnjCmwMr.js";import{B as V}from"./p-CaGTuT2-.js";import{i as A,a as P}from"./p-BdTK0wi9.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-CgSqi8wc.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const F=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),q=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(F,null),t(F,null),t(F,null)),N=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"]}}},U=(t,s)=>t.some((t=>t.document_type===s)),R="Please upload either a voided check or a bank statement. Only one is required.",X=(t,s)=>{const e=U(t,x.voidedCheck),i=U(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:D.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:k.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(R),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:D.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:k.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},Y=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(X(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new T({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:B.POST_ERROR,message:s.error.message,severity:H.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await fetch(t.presigned_url,{method:"PUT",body:t.fileString});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:B.POST_ERROR,message:t.error.message,severity:H.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(X(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:B.POST_ERROR,severity:H.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:E,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},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(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"]}}},G=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(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})}},J=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(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:E})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{N as justifi_additional_questions_form_step_core,Y as justifi_business_bank_account_form_step_core,M as justifi_business_core_info_form_step_core,Q as justifi_business_owners_form_step_core,G as justifi_business_representative_form_step_core,J as justifi_legal_address_form_step_core}
1
+ import{h as t,r as s,c as e}from"./p-N3w5zrz2.js";import{a as i,b as r}from"./p-D5ny0x8_.js";import{F as o,c as n,b as a}from"./p-Bond4qGX.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{x as p}from"./p-_6eQgwfE.js";import{S as f}from"./p-BI7GlCtv.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,h as j,i as S}from"./p-CFpYbRwn.js";import{z as T,A as k,B as C,i as O,C as L,D as H}from"./p-C8Zhkgm5.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import{C as D,a as E}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import{n as B}from"./p-BnjCmwMr.js";import{B as V}from"./p-Smvec9tp.js";import{i as A,a as P}from"./p-BgiXKaf2.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-Dcbfnfn2.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const F=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),R=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(F,null),t(F,null),t(F,null)),N=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)),U="Please upload either a voided check or a bank statement. Only one is required.",X=(t,s)=>{const e=q(t,x.voidedCheck),i=q(t,x.bankStatement),r=e||i,o=n().shape({bank_name:H.required("Enter bank name"),nickname:L.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:k.required("Enter account number"),routing_number:T.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(U),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(U),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:H.nullable(),nickname:L.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:k.nullable(),routing_number:T.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},Y=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(X(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new S({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:E.POST_ERROR,message:s.error.message,severity:D.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await fetch(t.presigned_url,{method:"PUT",body:t.fileString});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:E.POST_ERROR,message:t.error.message,severity:D.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(X(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:E.POST_ERROR,severity:D.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(R,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},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.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: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})))))}},M=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(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(R,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(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: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{N as justifi_additional_questions_form_step_core,Y as justifi_business_bank_account_form_step_core,G as justifi_business_core_info_form_step_core,M as justifi_business_owners_form_step_core,z as justifi_business_representative_form_step_core,Q as justifi_legal_address_form_step_core}
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-DeiW2BDb.js";import{c as r,a as i,F as o}from"./p-DVnVdicA.js";import{f as n}from"./p-BnE7qgLh.js";import"./p-Ddc5F_89.js";import{C as a,a as u}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{R as l,g as h}from"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{B as m}from"./p-CaGTuT2-.js";import{S as p}from"./p-Bl3ch-Ez.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-DQCcSXwL.js";import{m as d}from"./p-hG0Fy7E9.js";import{c as f,J as j}from"./p-DGg9nHVL.js";import{g as v,a as y}from"./p-C5RuuShs.js";import{A as b}from"./p-ChL8tkhB.js";import{S as w}from"./p-BpDYt_Ep.js";import"./p-BFTU3MAI.js";import"./p-CgSqi8wc.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-DCoo9Ds8.js";const g=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},C=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},B=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],D=b();class S{async postRefund(t,s,e,r){return D.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),x=()=>t(p,null,t("div",{class:"row gap-5"},t(T,null),t(T,null),t(T,null))),A=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new j(this),this.initializeApi(),this.formController=new o(C())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(C(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new h({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:v(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=v(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new S}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(x,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:B,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(m,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{A as justifi_refund_payment}
1
+ import{h as t,r as s,c as e}from"./p-N3w5zrz2.js";import{c as r,a as i,F as o}from"./p-Bond4qGX.js";import{f as n}from"./p-9REosSLu.js";import"./p-CfBKn_Vl.js";import{C as a,a as u}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{R as l,g as m}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{B as h}from"./p-Smvec9tp.js";import{S as p}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-Cf4TMP3p.js";import{m as d}from"./p-BJatoeR1.js";import{c as f,J as j}from"./p-0lkrqFgg.js";import{g as v,a as y}from"./p-NqdaxjDT.js";import{A as b}from"./p-DHvfrLVU.js";import{S as w}from"./p-BI7GlCtv.js";import"./p-BFTU3MAI.js";import"./p-Dcbfnfn2.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-_6eQgwfE.js";import"./p-rzqedGq4.js";const g=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},x=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},R=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],A=b();class C{async postRefund(t,s,e,r){return A.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),B=()=>t(p,null,t("div",{class:"row gap-5"},t(T,null),t(T,null),t(T,null))),S=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new j(this),this.initializeApi(),this.formController=new o(x())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(x(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new m({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:v(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=v(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new C}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(B,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:R,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(h,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{S as justifi_refund_payment}
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./p-N3w5zrz2.js";import{B as a}from"./p-Smvec9tp.js";import{ah as r,ai as s}from"./p-_6eQgwfE.js";const o=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length},d=class{constructor(t){e(this,t),this.showClearButton=!1}watchParamsHandler(e){this.showClearButton=o(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=o(this.params)}render(){return t("div",{key:"e205ff268a099beae125bbe8a85a6ae5e34924af",class:"d-flex gap-2"},t("div",{key:"e61fcbc31cfa97093771ad99b1f4bc088a2a6b98",class:"dropdown pb-3"},t("button",{key:"3c4425f10ebb39b011d2783c5ef88ebbd34b8e65",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle",part:r,"data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"03692eaae9d340c0f204f55e8c26b8353c4caa74",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"ed80b52e0cabbba44d09798b3b8bd4ab99d72659",class:"dropdown-menu",part:s,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"6cc0bf4f7fd5fa16b431b21933b36f75035221c7"})))),t("div",{key:"13f401ce7926aaf678021ed7dc768b967987b0ec"},t(a,{key:"d6a16f4e5b31e5602d6729e39fccfa4dbfdd8336",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{d as table_filters_menu}
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-DeiW2BDb.js";import{E as a}from"./p-DyCvl10I.js";import"./p-BrLVc_85.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
1
+ import{r as s,h as t}from"./p-N3w5zrz2.js";import{E as a}from"./p-MNmf3fQL.js";import"./p-_6eQgwfE.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-N3w5zrz2.js";import{c as i}from"./p-CfBKn_Vl.js";import{a as s}from"./p-9REosSLu.js";import{C as o,a as r}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{d as n}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d,J as p}from"./p-0lkrqFgg.js";import{g as h,a as l}from"./p-NqdaxjDT.js";import{P as f}from"./p-DyvT8iXz.js";import{T as u,l as m,a as y,b,c as _,d as w,e as j,f as T,g,h as v,i as k,j as D,k as C}from"./p-XTXkuHkQ.js";import{S as I}from"./p-o5iASgog.js";import{T as P}from"./p-CZfYo5-1.js";import{I as S,J as q}from"./p-_6eQgwfE.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-rzqedGq4.js";import"./p-DHvfrLVU.js";import"./p-D7uH6T8P.js";const A={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")},x={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"},E={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)},x[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},s(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},s(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.updated_at,{showTime:!0})))},F=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=c,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 u(this.balanceTransactions,this.columns,A,E),d(),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:s,onError:r,final:c})=>{var d;try{const c=await a.fetchPayoutTransactions(t,e,i);c.error?r({error:l(c.error),code:h(null===(d=c.error)||void 0===d?void 0:d.code),severity:o.ERROR}):s({balanceTransactions:c.data.map((t=>new n(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);r({error:l(t),code:e,severity:o.ERROR})}finally{c()}})({accountId:i.accountId,authToken:this.authToken,service:new f})({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(r.MISSING_PROPS,this.errorMessage,o.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(I,{key:"6c624e5edba69e17a4cab229b90beb9d2ecda69d"},t(m,{key:"449f93393a5e2b1aa2dd0f4f136e264fde27a9a4"},t(y,{key:"de857828525be5df2e383859ac51e8b0719422fd"},t(b,{key:"c3f2ae5ff5ae6f78a587bee899d68b3e7934cf41"},t(_,{key:"57ddf8fcaafa22cf3e6137a3de82550748ac9288"},this.transactionsTable.columnData.map((t=>t)))),t(w,{key:"9f634545f5afd44dab4b2a16ec630efeeee18f52"},t(j,{key:"12ffb167f61de13a91c05f6c93304ff1b688d734",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"5453befdfcd1764163cc9c1a9c51f5f35e7c2c62",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"19f22366e49c1022f0bf96839bac88c76892d62d",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(v,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"e86e144a90d9010e866bd48d96d24c613ebeb8ef"},t(D,{key:"6e4bee39a0c426332331128b27560218adc888e4"},t(C,{key:"9becbcedb44ad9f9d1ed7ef5725af087178b6829",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"17582aa7347e31457c8f29af49ccc4dcc60d3d04",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{F as justifi_payout_transactions_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{C as r,a as o}from"./p-BhrFjjAs.js";import{c as e,J as a}from"./p-0lkrqFgg.js";import{T as p}from"./p-DhyQbCOq.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{b as n}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as h}from"./p-NqdaxjDT.js";import{m,S as d}from"./p-CCPoezRw.js";import{S as j}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-CAdO_ZNx.js";import"./p-rzqedGq4.js";import"./p-DHvfrLVU.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BaoXNxnc.js";import"./p-_6eQgwfE.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var p,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return a({error:h(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(p=d.data)||void 0===p?void 0:p.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new p}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"fd66e35b3ef7396cda794cf025aded020c39c0e4"},i("terminals-list-core",{key:"f6452fa39029743a7858ed84ba83764ca7dfdcca",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_terminals_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as p,e as n,f as d,g as c,h as m,i as f,j as b,k as j,l as u}from"./p-XTXkuHkQ.js";import{T as g}from"./p-CZfYo5-1.js";import{p as y,a as k}from"./p-BXeHgiPz.js";import{o as l,g as C}from"./p-Cwt_9Jzb.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-_6eQgwfE.js";import"./p-D7uH6T8P.js";import"./p-CdkOB2ri.js";import"./p-BaoXNxnc.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,y,k),this.getPayments&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"f7d8eb83c5c0bfe1f426a784a8d4a14689958c8a"},e(r,{key:"b4c6aa6781f64a95e75dcb6e163eae62280d4777"},e(h,{key:"35c522e3cb956adabdbc0d5f49d4ecb564b28922"},e(o,{key:"1d08847173e7a17eef90aff34dd4eed12f43a55f"},this.paymentsTable.columnData.map((t=>t)))),e(p,{key:"d18ec5a41975ed90e2517f1ab7b1d35bd13f2021"},e(n,{key:"3ccdaaa336b40207f240d0c35bd066991016ea52",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(d,{key:"373fc79d3328a93ce02721f670d84d0b77afa322",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(c,{key:"d6141695f295827c1f22f823e5a59de9d4147956",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"bada9a9d7e5a6c630aa2a272d324b3506c84be70"},e(b,{key:"4b2147edb866f00fd895c9be647ff826e8b964e5"},e(j,{key:"ea9856256d190727350137530933bd51ba4935d0",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"27932b928dd6245e14404b51a69b7073205d4139",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
@@ -0,0 +1 @@
1
+ import{r as d,h as e}from"./p-N3w5zrz2.js";import{t as c}from"./p-_6eQgwfE.js";import{f}from"./p-9REosSLu.js";import{s as o}from"./p-BByypogb.js";import{S as r}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-Dcbfnfn2.js";const s=class{constructor(e){d(this,e)}render(){return e(r,{key:"9a2eea1693287ad73dfedd3ddc24e949e9d75148"},e("section",{key:"1943be6cef0c4a1c830ddfc14d893c3906482534"},e("div",{key:"cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef"},e("div",{key:"b5bc944a5310252dc0720e3e7d709f1a57f898c8",part:c},null==o?void 0:o.paymentDescription),e("div",{key:"dbe53880d7c3ff8d4513a570e1b024f1e2f43028"},e("span",{key:"d8986a9265463d8f9d7f62598cc4ec3203081c09",part:c},"Total")," ",e("span",{key:"32cbc6e259fdee2c71ad72fcf59ab157704c4758",part:c},f(+(null==o?void 0:o.totalAmount)))))))}};export{s as justifi_checkout_summary}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import{a as s}from"./p-9REosSLu.js";import{C as i,a as r}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{c as o}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c,J as p}from"./p-0lkrqFgg.js";import{g as h,a as d}from"./p-NqdaxjDT.js";import{P as f}from"./p-Cf4TMP3p.js";import{T as l,l as u,a as m,b as y,c as b,d as _,e as j,f as g,g as T,h as k,i as w,j as v,k as C}from"./p-XTXkuHkQ.js";import{S as D}from"./p-o5iASgog.js";import{T as R}from"./p-CZfYo5-1.js";import{I as S,J as F}from"./p-_6eQgwfE.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-rzqedGq4.js";import"./p-DHvfrLVU.js";import"./p-D7uH6T8P.js";const x={created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:S,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),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"),payment_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:S,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:S,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},I={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},q={created_at:(e,a)=>t("td",{part:F(a)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:F(a)},I[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:F(a)},e.id),amount:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:F(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:F(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:F(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:F(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:F(a)},e.source_id),source_type:(e,a)=>t("td",{part:F(a)},e.source_type)},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,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:R.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:R.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:R.row,data:a})}}componentWillLoad(){this.transactionsTable=new l(this.balanceTransactions,this.columns,x,q),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.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:r,onError:n,final:c})=>{var p;try{const c=await a.fetchPaymentTransactions(t,e,s);c.error?n({error:d(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.code),severity:i.ERROR}):r({balanceTransactions:c.data.map((t=>new o(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);n({error:d(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new f})({params:this.pagingParams,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="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.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}render(){return t(D,{key:"2e6911991eb1fc44421771f3eaeaab5b56a428a7"},t(u,{key:"316b7fbfd053e46cf13867e339af620348a9eab6"},t(m,{key:"fb9e5747d296827057127ba02b129813acdf8697"},t(y,{key:"e18cb6967b4fc7a87e6446331b749a661152ae15"},t(b,{key:"e6826933dda843935998e30de46c282822f52015"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"25ec99be29c6cfd4c73268ba9bdd3bd27dd111d3"},t(j,{key:"d4543307e31e2c697958118c7cce3175a04a23da",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"729b803595deed86cb03fee9bce764a7652f167f",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"a774dd4abc6d1d0f36e9bf5d5a9c851cca632181",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(w,{key:"f986ae746e06bf1ec934a6adc5149a9ced344c1e"},t(v,{key:"622645b9ca816156183d08f71806bca804ddbc8b"},t(C,{key:"672fa0fd592029908aaa88dddbfb5db90d14f7e6",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"60538e822fbf8279ec428c82e2fd9cf53a9d1b44",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payment_transactions_list}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e,H as a,g as i}from"./p-DeiW2BDb.js";import{i as r,a as o,b as h,c as n,l as f}from"./p-BrLVc_85.js";import{F as l}from"./p-ClM8H2uM.js";import{F as c}from"./p-C2HQYreI.js";import"./p-CZfYo5-1.js";const d=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?h:n}render(){return e(a,{key:"575b10375e81774d2ce099cb9f79960fe530ea71"},e("div",{key:"6f23da58c5fbf994dbf814022ab99668c0c71f77",class:"form-group d-flex flex-column"},e("label",{key:"4b19d3067770ce1523e88a7f701a0e193098eb5f",part:f,class:"form-label",htmlFor:this.name},this.label),e("input",{key:"e6331df9a0484fa12e05d63b3b45af3a9d8b0993",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),e(l,{key:"55ef88b41cea29d14df3412a9743685114cfda13",helpText:this.helpText,name:this.name}),e(c,{key:"efad443056dba5b77f86da12854b2a3668c101cd",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_number}
1
+ import{r as t,c as s,h as e,H as a,a as i}from"./p-N3w5zrz2.js";import{i as r,a as o,b as h,c as n,l as f}from"./p-_6eQgwfE.js";import{F as l}from"./p-DLopwJ61.js";import{F as c}from"./p-BooprPq0.js";import"./p-CZfYo5-1.js";const d=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?h:n}render(){return e(a,{key:"01d3a08bbd6dc5aab1a2da27007ba35585d8c97b"},e("div",{key:"78ca32dadb2a598846266ae595ef156d0cedc66f",class:"form-group d-flex flex-column"},e("label",{key:"8a7e94d0dbc675f2ade59b984b4eb609323fd227",part:f,class:"form-label",htmlFor:this.name},this.label),e("input",{key:"61cc9f3fbe322d4e14e54750809b2e1572b14ff2",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),e(l,{key:"9ff16beb0781040517f8e54fe5d46c2df4cc817e",helpText:this.helpText,name:this.name}),e(c,{key:"2f77c35f2738fb792956e8723670f77354896d59",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_number}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as i}from"./p-N3w5zrz2.js";import{B as e}from"./p-Smvec9tp.js";import{S as o}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as r,J as a}from"./p-0lkrqFgg.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import{C as p,a as c}from"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{s as d}from"./p-BByypogb.js";import"./p-_6eQgwfE.js";import"./p-rzqedGq4.js";import"./p-DHvfrLVU.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const h=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.submitButtonText="Submit",this.isLoading=!1}componentWillLoad(){r(),this.analytics=new a(this),this.authToken||(this.authToken=d.authToken),this.accountId||(this.accountId=d.accountId)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}async tokenizePaymentMethod(s){let t;s&&s.preventDefault(),this.isLoading=!0;try{t=await this.paymentMethodOptionsRef.resolvePaymentMethod({isValid:!0}),t.error&&this.errorEvent.emit({errorCode:t.error.code,message:t.error.message,severity:p.ERROR})}catch(s){this.errorEvent.emit({errorCode:c.TOKENIZE_ERROR,message:s.message,severity:p.ERROR})}finally{return this.submitEvent.emit({response:t}),this.isLoading=!1,t}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}async validate(){return this.paymentMethodOptionsRef.validate()}render(){return i(o,{key:"28bbe8fe3e9af2ced36216f5c5a4951daa82b4db"},i("form",{key:"1aac4f1f0045a6b36160874afe650afdfcc68d14"},i("fieldset",{key:"cea4c054fbcb6e3cdd7eec1e6fd528c3a82eb24f"},i("div",{key:"08fc6dd0621d9392d8236f7b75906c84a4ffc420",class:"row gy-3"},i("div",{key:"54eeca6b19dbc25126312e4492d24e58e636c4f4",class:"col-12"},i("justifi-payment-method-options",{key:"c985cb5c1888ad62e45d51c8bcd60cac22115ea6",ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!1,paymentMethodGroupId:this.paymentMethodGroupId,"show-saved-payment-methods":!1,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,authToken:this.authToken,"account-id":this.accountId})),i("div",{key:"1c5006de7b3dd8872d100dbaba94a1f73bd9682f",class:"col-12"},i(e,{key:"efc638ef35650335e7408b1dc5433f9ecb4f22ac",variant:"primary",type:"submit",onClick:s=>this.tokenizePaymentMethod(s),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.hideSubmitButton},this.submitButtonText))))))}};export{h as justifi_tokenize_payment_method}
@@ -1 +1 @@
1
- import{h as s,F as t,r as i,c as e}from"./p-DeiW2BDb.js";import{E as l}from"./p-DyCvl10I.js";import{S as r}from"./p-Bl3ch-Ez.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-BpDYt_Ep.js";import"./p-BrLVc_85.js";const n=()=>{const i=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(t,null,s(i,null),s(i,null),s(i,null),s(i,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){i(this,s),this.errorEvent=e(this,"error-event"),this.renderState=a.LOADING}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}render(){return s(r,null,this.renderState===a.LOADING?s(n,null):this.renderState===a.ERROR?l(this.errorMessage):s("justifi-details",{"error-message":this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
1
+ import{h as s,F as t,r as i,c as e}from"./p-N3w5zrz2.js";import{E as l}from"./p-MNmf3fQL.js";import{S as r}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-BI7GlCtv.js";import"./p-_6eQgwfE.js";const n=()=>{const i=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(t,null,s(i,null),s(i,null),s(i,null),s(i,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){i(this,s),this.errorEvent=e(this,"error-event"),this.renderState=a.LOADING}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}render(){return s(r,null,this.renderState===a.LOADING?s(n,null):this.renderState===a.ERROR?l(this.errorMessage):s("justifi-details",{"error-message":this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
@@ -0,0 +1 @@
1
+ import{r as o,h as s}from"./p-N3w5zrz2.js";import{r as e}from"./p-_6eQgwfE.js";import{S as a}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{s as t}from"./p-BByypogb.js";import{C as i}from"./p-zucQG3cz.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";const r=class{constructor(s){o(this,s),this.onPaymentMethodOptionClick=o=>s=>{s.preventDefault(),t.selectedPaymentMethod=o}}componentWillLoad(){t.paymentMethods.length||console.warn("No saved payment methods available.")}render(){return s(a,{key:"7bebb3f8ff2a2abe400e1d099154a1729913140c"},s("div",{key:"3a5798c5ceba63160dceecb0dc65f8a211bb5110",class:"saved-payment-methods"},t.paymentMethods.length?t.paymentMethods.map((o=>s("div",{class:"radio-list-item p-3",part:e,onClick:this.onPaymentMethodOptionClick(null==o?void 0:o.id)},s("form-control-radio",{name:"paymentMethodType",value:null==o?void 0:o.id,checked:t.selectedPaymentMethod===(null==o?void 0:o.id),label:`${i[null==o?void 0:o.brand]||""} *${null==o?void 0:o.acct_last_four}`})))):null))}};export{r as justifi_saved_payment_methods}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,H as i,c as a}from"./p-N3w5zrz2.js";import{S as s}from"./p-BI7GlCtv.js";import{w as d,c as r}from"./p-CfBKn_Vl.js";import{c as n,F as c}from"./p-Bond4qGX.js";import{p as o,s as h,c as l,l as f,a as b,i as m}from"./p-C8Zhkgm5.js";import{d as p,r as u}from"./p-_6eQgwfE.js";import{H as y}from"./p-jA8bbxkp.js";import"./p-CZfYo5-1.js";import{n as v}from"./p-BnjCmwMr.js";import{S as k}from"./p-BX8GieXu.js";import{a as g}from"./p-DddGO-XR.js";import{P as w,C as x}from"./p-zucQG3cz.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-yH3TC3ZQ.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-9REosSLu.js";import"./p-7MWRbTXI.js";const _=t=>{const{isReady:i}=t;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(s,{height:"18px",width:"120px"}),e(s,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(s,{height:"18px",width:"110px"}),e(s,{height:"36px"}))))},j=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await d(),this.iframeOrigin=r.iframeOrigin}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return e&&t}async tokenize(e,t,i){return this.accountNumberIframeElement.tokenize(e,t,i)}render(){return e(i,{key:"cdddf967e7142731f3b5aef31bfc3d004ce97733"},e(_,{key:"5eafa58bd31bbbd5ff5ca90a036fc696f7bd05fb",isReady:this.isReady}),e("div",{key:"c8486e0337df9a61bd1979014f3de53eef22b071",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"3db2146e4d770c024efab6e777dbfa4ace26f23a",class:"row mb-3"},e("iframe-input",{key:"5f9da4873119c1a1e771c7663b98e283766a37a1",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),e("div",{key:"7ed20c940afd5ffc4348e4102a4cfd351d8e2198",class:"row"},e("iframe-input",{key:"0667de245764f1d9181682beb674c4a376447a68",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},C=t=>{const{isReady:i}=t;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"mb-3"},e(s,{height:"18px",width:"100px"}),e(s,{height:"36px"})),e("div",{class:"row"},e("div",{class:"col-4 align-content-end"},e(s,{height:"18px",width:"80px"}),e(s,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(s,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(s,{height:"18px",width:"30px"}),e(s,{height:"36px"}))))},M=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await d(),this.iframeOrigin=r.iframeOrigin}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.cardNumberIframeElement.validate(),t=await this.expirationMonthIframeElement.validate(),i=await this.expirationYearIframeElement.validate(),a=await this.cvvIframeElement.validate();return e&&t&&i&&a}async tokenize(e,t,i){return this.cardNumberIframeElement.tokenize(e,t,i)}render(){return e(i,{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`})))))}},O=class{constructor(e){t(this,e),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c((e=>{const t=n({name:m.required("Enter full name"),address_line1:b.required("Enter street address"),address_line2:f.nullable(),address_city:l.required("Enter city"),address_state:h.required("Select state"),address_postal_code:o.required("Enter postal code")}),i=n({name:m.nullable(),address_line1:b.nullable(),address_line2:f.nullable(),address_city:l.nullable(),address_state:h.nullable(),address_postal_code:o.required("Enter postal code")});return e?i:t})(this.isPostalOnlyMode))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}get isPostalOnlyMode(){return"card"===this.paymentMethodType&&this.hideCardBillingForm}get hideAllBillingFields(){return"bankAccount"===this.paymentMethodType&&this.hideBankAccountBillingForm}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 t=this.formController.getInitialValues();return e(i,{key:"ffffb2d8a4571222645d3c47eb1e2286b8597140"},e("div",{key:"69b4f6c623cacbf32a30a9b9f23c3de427835c25",part:p,class:"mt-4",hidden:this.hideAllBillingFields},!this.isPostalOnlyMode&&!this.hideAllBillingFields&&e(y,{key:"96c0781a9b3dd7c5ef0b75ac8667664fee0bd95e",text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),e("form",{key:"97380a90146a9732594f1c356fab952089280f99"},e("fieldset",{key:"fd8bbea485c10633f1d8cca62b222a8abb0d022f"},this.legend&&e("legend",{key:"8febee534a2d055093309e8f8f06078b0b35f4e4"},this.legend),e("div",{key:"16ac8abe899cdb964d83322fa74cb00f737ab338",class:"row gy-3"},e("div",{key:"866f73c45b807aeeea4e6addf4de5f2d3a1a232d",class:"col-12",hidden:this.isPostalOnlyMode},e("form-control-text",{key:"1734b2aac3eb0508f9ae2e4bf41836fc5dd71cad",name:"name",label:"Full Name",defaultValue:t.name,errorText:this.errors.name,inputHandler:this.inputHandler})),e("div",{key:"569c0dc60b47d3e9077af401b720d7777c903bde",class:"col-12",hidden:this.isPostalOnlyMode},e("form-control-text",{key:"74406a7f4efde53a41141a218d246408c4807fc8",name:"address_line1",label:"Street Address",defaultValue:t.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),e("div",{key:"a7f3b7f137b0dd6a92cce6999ef65f13bcff4a31",class:"col-12",hidden:this.isPostalOnlyMode},e("form-control-text",{key:"8b6d28170c44af6b7701499a8a4626749d4cd36d",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:t.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),e("div",{key:"3a9031a0ddbea7e1020c420cdd6811ea9c86b9e4",class:"col-12",hidden:this.isPostalOnlyMode},e("form-control-text",{key:"730b395bb97c349a63f669669830cbce6ba86f83",name:"address_city",label:"City",defaultValue:t.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),e("div",{key:"7998420d30b1957a086303862f7200f20541ead2",class:"col-12",hidden:this.isPostalOnlyMode},e("form-control-select",{key:"b94b623a26891646957f25e59cb03038a989eabf",name:"address_state",label:"State",options:k,defaultValue:t.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),e("div",{key:"7b0d6eae7eb90f4b33b3e73f920b6ea25920f809",class:"col-12",hidden:this.hideAllBillingFields},e("form-control-text",{key:"703e429c7999f5cc143c5648bd9fbdc4f5bb6ee9",name:"address_postal_code",label:"ZIP",defaultValue:t.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:v})))))))}},V={bankAccount:"New bank account",card:"New credit or debit card"},B=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=a(this,"paymentMethodOptionSelected"),this.saveNewPaymentMethodChecked=!1,this.onPaymentMethodOptionClick=e=>{e.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}handleCheckboxChanged(e){this.saveNewPaymentMethodChecked=e.detail}async fillBillingForm(e){this.billingFormRef.fill(e)}async resolvePaymentMethod(e){var t,i;if(this.paymentMethodFormRef&&this.billingFormRef)try{const{isValid:a,errors:s}=await this.validate();if(!a||!e.isValid)return{validationError:!0,error:{code:"validation_error",message:`${Object.values(s)[0]||"Validation error"}`,decline_code:void 0}};const d=await this.tokenize();if(d.error)return{error:d.error};{const e=d.data;return{token:(null===(t=e.card)||void 0===t?void 0:t.token)||(null===(i=e.bank_account)||void 0===i?void 0:i.token),data:e}}}catch(e){return{error:e}}}async validate(){const e=await this.billingFormRef.validate(),t=await this.paymentMethodFormRef.validate();return{isValid:e.isValid&&t.isValid,errors:Object.assign(Object.assign({},e.errors),t.errors)}}async tokenize(){try{const e=await this.billingFormRef.getValues();let t;t=this.saveNewPaymentMethodChecked?Object.assign(Object.assign({},e),{payment_method_group_id:this.paymentMethodGroupId}):Object.assign({},e);const i=this.authToken;return await this.paymentMethodFormRef.tokenize(i,t,this.accountId)}catch(e){return e}}showNewPaymentMethodForm(){var t;const i=null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id;return e("div",{class:"mt-4 pb-4"},e("hidden-input",null),e("card"===i?"card-form":"bank-account-form",{ref:e=>this.paymentMethodFormRef=e}),e("justifi-billing-form",{ref:e=>this.billingFormRef=e,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:i}),e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupId}))}get hiddenRadioInput(){return!this.showAch||!this.showCard}render(){var t,a;return e(i,{key:"137378e62a729bd2287b1bdf89cb85c702cd4e12",class:"payment-method"},e("div",{key:"dabfcf5c56169708a8968a16aeaafefb43ca3ab8",class:"radio-list-item p-3",part:u,onClick:this.onPaymentMethodOptionClick,hidden:this.hiddenRadioInput},e("form-control-radio",{key:"d098e2b8f6e1230fc16fdc2cbfd616559bcf2b89",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:V[null===(a=this.paymentMethodOption)||void 0===a?void 0:a.id]})),this.isSelected?this.showNewPaymentMethodForm():null)}},N=class{constructor(e){t(this,e),this.savedPaymentMethods=[],this.paymentMethodOptions=[]}async fillBillingForm(e){const t=this.selectedPaymentMethodOptionRef;t.fillBillingForm&&t.fillBillingForm(e)}connectedCallback(){this.paymentMethodsChanged()}paymentMethodsChanged(){var e;this.paymentMethodOptions=this.savedPaymentMethods.map((e=>new w(e))).filter((e=>(this.showCard||e.type!==g.card)&&(this.showAch||e.type!==g.bankAccount))),this.showCard&&this.paymentMethodOptions.push(new w({id:g.card})),this.showAch&&this.paymentMethodOptions.push(new w({id:g.bankAccount})),this.selectedPaymentMethodId||(this.selectedPaymentMethodId=null===(e=this.paymentMethodOptions[0])||void 0===e?void 0:e.id)}paymentMethodOptionSelected(e){this.selectedPaymentMethodId=e.detail.id}async resolvePaymentMethod(e){var t;return await(null===(t=this.selectedPaymentMethodOptionRef)||void 0===t?void 0:t.resolvePaymentMethod(e))}async validate(){return this.selectedPaymentMethodOptionRef.validate()}render(){var t;return e(i,{key:"2d3dc8bc98cea3efbcf342a31b6883f30099b031"},null===(t=this.paymentMethodOptions)||void 0===t?void 0:t.map((t=>{const i=this.selectedPaymentMethodId===t.id;return t.id===g.card||t.id===g.bankAccount?e("justifi-new-payment-method",{paymentMethodOption:t,authToken:this.authToken,"account-id":this.accountId,"is-selected":i,"show-card":this.showCard,"show-ach":this.showAch,paymentMethodGroupId:this.paymentMethodGroupId,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,ref:e=>{i&&(this.selectedPaymentMethodOptionRef=e)}}):this.showSavedPaymentMethods?e("justifi-saved-payment-method",{paymentMethodOption:t,"is-selected":i,ref:e=>{i&&(this.selectedPaymentMethodOptionRef=e)}}):void 0})))}static get watchers(){return{savedPaymentMethods:["paymentMethodsChanged"]}}},P=class{constructor(e){t(this,e),this.checkboxChanged=a(this,"checkboxChanged"),this.isChecked=!1}handleCheckboxChange(e,t){this.isChecked=t,this.checkboxChanged.emit(this.isChecked)}render(){return e("div",{key:"e6e7a75237ec2062188bf85deadac58892663b3b",class:"mt-4 form-check"},e("form-control-checkbox",{key:"abbaeb4e9119c4d41f0a727c7a070c14b7418302",label:"Save new payment method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange.bind(this)}))}},T=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=a(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=e=>{e.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(e){var t;return e.isValid?{token:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id}:{validationError:!0}}render(){var t,a,s;return e(i,{key:"78487e52f549547f4c89f48a238a8916d77d4f1c",class:"payment-method"},e("div",{key:"d437a5f9e79356b1177703da2b5d7f4ca98072ce",class:"radio-list-item p-3",part:u,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{key:"0dd03b9ebae98c441c63717aba310d77e587b1c8",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${x[null===(a=this.paymentMethodOption)||void 0===a?void 0:a.brand]||""} *${null===(s=this.paymentMethodOption)||void 0===s?void 0:s.acct_last_four}`})))}};export{j as bank_account_form,M as card_form,O as justifi_billing_form,B as justifi_new_payment_method,N as justifi_payment_method_options,P as justifi_save_new_payment_method,T as justifi_saved_payment_method}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-N3w5zrz2.js";import{f as t,p as s,c as r}from"./p-CXLazxt0.js";import{n as c,o as f,q as o}from"./p-_6eQgwfE.js";import{S as d}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as i,a as p}from"./p-9REosSLu.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";const l=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=i(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(d,{key:"05c16ac0eda9f43a8fea014e92788a9d1dd5726b"},a("table-filters-menu",{key:"4ff930a4cf5410fcdee019be664f7f56992f293e",params:e,clearParams:r,part:c},a("div",{key:"2cecc576a4fd6779ea866b56e7623351de3cf6e8",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"34864c377740cb9415259c893a18b13d15a98534",class:"p-2"},a("form-control-date",{key:"72481e53e0aac0b9e2cffdc22c59da302b5a638d",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDate:!0})||p(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:f})),a("div",{key:"8edb0b5a2693211f9acf608d3ed8f101c4315648",class:"p-2"},a("form-control-date",{key:"520f02a76b921590e3b43cd8e2a17f120278c90a",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDate:!0})||p(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:o})))))}};export{l as justifi_payouts_list_filters}
@@ -0,0 +1 @@
1
+ import{r as s,c as e,h as t,H as a}from"./p-N3w5zrz2.js";import{$ as i,a0 as r,a1 as h,a2 as o,a3 as c,l as f}from"./p-_6eQgwfE.js";import{F as m}from"./p-DLopwJ61.js";import{F as n}from"./p-BooprPq0.js";import"./p-CZfYo5-1.js";const p=class{constructor(t){s(this,t),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const e=s.target,t=e.getAttribute("name");this.inputHandler(t,e.checked),this.formControlInput.emit({name:t,value:e.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?i:this.isFocused&&this.checked?r:this.isFocused?h:this.checked?o:c}render(){return t(a,{key:"a3b0fd8435bde51d1e2e0aaa0e322f10c599d60b"},t("div",{key:"1bf5c142fc98a80f66bb51343bcd2aa8ece2376a",class:"form-group d-flex flex-column"},t("div",{key:"7e006d94b3716d4a93239e4f5e9e5f0058e5f460",class:"form-check"},t("input",{key:"29d7b5552ce996fea4b71be9745372aa6804890f",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),t("label",{key:"9731752e9eabd937800492a9ae9f64a96deebb5a",class:"form-check-label",htmlFor:this.name,part:f},this.label)),t(m,{key:"d333c061d00a23f0ef368e54094989cd7b892229",helpText:this.helpText,name:this.name}),t(n,{key:"ec2734c748e851499d6699e7acb32bb74a04e256",errorText:this.errorText,name:this.name})))}};export{p as form_control_checkbox}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-DeiW2BDb.js";import{c as o,J as r}from"./p-DGg9nHVL.js";import{C as e,a as p}from"./p-SdntD1xf.js";import{m as n,a}from"./p-BTS3E50C.js";import{B as h}from"./p-DMNpawhg.js";import{A as m}from"./p-ChL8tkhB.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p--B09FkmB.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-DCoo9Ds8.js";import"./p-C5RuuShs.js";import"./p-Ddc5F_89.js";import"./p-CgSqi8wc.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=m();class c{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const d=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new c})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"11871305b4b4974787a9278195ea0b314be250b0",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{d as justifi_payment_provisioning}
1
+ import{r as s,c as i,h as t}from"./p-N3w5zrz2.js";import{c as o,J as r}from"./p-0lkrqFgg.js";import{C as e,a as p}from"./p-BhrFjjAs.js";import{m as n,a}from"./p-BxfUcCXo.js";import{B as h}from"./p-Dqx8L05_.js";import{A as m}from"./p-DHvfrLVU.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-rzqedGq4.js";import"./p-NqdaxjDT.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const j=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"11871305b4b4974787a9278195ea0b314be250b0",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{j as justifi_payment_provisioning}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-N3w5zrz2.js";import{d as s,b as i}from"./p-9REosSLu.js";import{a as d,b as c,D as f,c as o,C as r,E as l}from"./p-MNmf3fQL.js";import{B as b}from"./p-Smvec9tp.js";import{S as h}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{M as n}from"./p-eilUGO3o.js";import{S as p}from"./p-BI7GlCtv.js";import{a as y,B as v}from"./p-BaoXNxnc.js";import"./p-BFTU3MAI.js";import"./p-_6eQgwfE.js";const u=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(p,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(p,{width:"70%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"100%"})),e("div",{class:"col-12"},e(p,{width:"80%"}))),m=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var t;return e(h,{key:"f6b9b84a740d3e5196eca16df2f34a1b225edbc8"},this.loading&&e(u,{key:"3d24389cb52696810d93b0047f02dd44ee8a1386"}),!this.loading&&this.errorMessage&&l(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"159849ab2d24fd2c08812dffc2323194b9cb5bbc","error-message":this.errorMessage},e(d,{key:"e42544c3d30edd29b79028d3e47e7e1fc25e2a8c",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},n(null===(t=this.payout)||void 0===t?void 0:t.status),e(y,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(c,{key:"665e463415c851fd5198cf1ce6cbbd3e777a60ee",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${i(this.payout.updated_at)}`}),e(c,{key:"434c279f54780b4ef3a59c4a4ab5e84a0fbc536a",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${i(this.payout.created_at)}`}),e(c,{key:"76f7fcc47a5014a4f20dc8686b45a72eb0888228",title:"ID",value:this.payout.id}),e("div",{key:"da0272c9aa553ec71d6e65f3865f6ce643f79092",class:"m-4"},e(b,{key:"9037551eba246803a623654a88f7f8cfbe210de3",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"b7b6f40493db4db7e1defe66f4f510c32e0fab9e",slot:"detail-sections"},e(f,{key:"460e4a6bafc65e6c83dc955b99f75ed589f9ba42",sectionTitle:"Details"}),e("div",{key:"cdb8280c872e55410f24b6a90ba17f64ae0414d4",class:"d-table gap-2 w-100"},e(o,{key:"f401e006c82aa38c2b390668b3905bb10bf92d88",title:"Date paid",value:s(this.payout.deposits_at)}),e(o,{key:"95fa773958f9ad5950432cba9f0f8821b87183c7",title:"Statement Description",value:this.payout.description}),e(o,{key:"70930d62905c51939b33e6e5341a66eff7f1f80d",title:"Payout Method",value:this.payout.delivery_method}),e(o,{key:"f7203ba0a060df09a86fe47bb7354ba4440de247",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(o,{key:"9937a4bb3cf00943ff719e2851e06066960cd518",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(f,{key:"60988e407834a87285a8203e53053ebec0d109ae",sectionTitle:"Account"}),e("div",{key:"d30c4e5ee64658b9ecefe9720c1a8266d1af7314",class:"d-table gap-2 w-100"},e(o,{key:"a60f91b7dc0b6edf4ccad3437358f70ef8a97b2e",title:"ID",value:this.payout.account_id}),e(o,{key:"81da5682023ce4ad02b30688859262931b6d319c",title:"Account Type",value:this.payout.bank_account.account_type}),e(o,{key:"21ced58dd4f97df5b9839f49cce50162405416fe",title:"Institution",value:this.payout.bank_account.account_type}),e(o,{key:"73191d6ffabdf08536f4699c3f2ba4fa867a3992",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(o,{key:"d9ea68ef61a0cb63b1056f753a957927cf3204f7",title:"Account Number",value:this.payout.bank_account.account_number_last4})),this.payout.metadata&&[e(f,{key:"1eaca03125f7e50c62c7f731a7442c088858a317",sectionTitle:"Metadata"}),e("div",{key:"1368c90f240c2ea2e6711603d8599025dce2dd82",class:"d-table gap-2 w-100"},e(r,{key:"52ec68588672ffa71ff98139e9d7ae193fbd55bd",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{m as payout_details_core}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-N3w5zrz2.js";import{B as a,a as e}from"./p-BaoXNxnc.js";const n=n=>t(e,Object.assign({},{canceled:{variant:a.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:a.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:a.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:a.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:a.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:a.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:a.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:a.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
@@ -0,0 +1 @@
1
+ import{r as a,h as e}from"./p-N3w5zrz2.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-Cjf9yu8r.js";import{P as l,Q as d,R as o,S as p}from"./p-_6eQgwfE.js";import{S as f}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-D7js9xfx.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{I as c}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-BFTU3MAI.js";import"./p-Dcbfnfn2.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const n=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{s[a]=e}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([a,e])=>{e&&(i[a]=e)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:c.connected},{label:"Disconnected",value:c.disconnected},{label:"Unknown",value:c.unknown},{label:"Pending Configuration",value:c.pending_configuration}]}render(){const a=Object.assign({},s);return e(f,{key:"c8a9a83b3184a95474a428cfdb1135eadd680adb"},e("table-filters-menu",{key:"4a4a12bbbdb3be98d61d177c02612c3213419b43",params:a,clearParams:r,part:l},e("div",{key:"6d6cdf7dc4a24cdb6195f17989b17f91c43cd064",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"158cb8665cdb140e25ed449d42fb147fb8da21bb",class:"p-2"},e("form-control-text",{key:"33e06125bf7f7d5242a625aedae2c560f0cc6a8f",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:d})),e("div",{key:"3d8ad10f63e16a847caf944fef9567819a77d422",class:"p-2"},e("form-control-text",{key:"d6217d8aa97f2c03a35fcd3d51cb42ed26e246a7",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:o})),e("div",{key:"2fbf61a905de7028371bcc4b3412f7cc00feb4f9",class:"p-2"},e("form-control-select",{key:"55a297af239e4e09e4d89c06a9c2d1a90fa7ff1e",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status,disabled:!!this.terminalStatus,part:p})))))}};export{n as justifi_terminals_list_filters}