@justifi/webcomponents 5.0.0 → 5.1.0

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 (656) hide show
  1. package/dist/cjs/{Api-f5280a80.js → Api-b0e4be29.js} +12 -0
  2. package/dist/cjs/{Checkout-a528241d.js → Checkout-2ff4f9c8.js} +6 -0
  3. package/dist/cjs/{Payment-d074b246.js → Payment-84817e2d.js} +10 -1
  4. package/dist/cjs/{SubAccount-fda5ec5b.js → SubAccount-f236913b.js} +6 -1
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  6. package/dist/cjs/badge-fbf58cb9.js +44 -0
  7. package/dist/cjs/bank-account-form_9.cjs.entry.js +56 -64
  8. package/dist/cjs/{iframe-input.cjs.entry.js → billing-form_3.cjs.entry.js} +99 -6
  9. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  10. package/dist/cjs/business.service-ffb6f478.js +38 -0
  11. package/dist/cjs/{button-94bdc1f0.js → button-e7796b07.js} +1 -1
  12. package/dist/cjs/{check-pkg-version-05db7d8e.js → check-pkg-version-931df996.js} +3 -4
  13. package/dist/cjs/{checkout.service-671fab62.js → checkout.service-e9c05c15.js} +7 -8
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -9
  15. package/dist/cjs/checkouts-table-0f19c1e6.js +57 -0
  16. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  17. package/dist/cjs/{dispute.service-c362a953.js → dispute.service-9272a2a6.js} +8 -9
  18. package/dist/cjs/{event-types-4df47396.js → event-types-aa1a9be1.js} +3 -3
  19. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  20. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  21. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  22. package/dist/cjs/{form-control-error-text-a2fd5fc1.js → form-control-error-text-c1f49f35.js} +1 -1
  23. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
  24. package/dist/cjs/form-control-file.cjs.entry.js +4 -4
  25. package/dist/cjs/{form-control-help-text-b6f7ae6e.js → form-control-help-text-e6cc71a7.js} +1 -1
  26. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  27. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  28. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-select_3.cjs.entry.js +6 -6
  31. package/dist/cjs/{get-payout-csv-d2aed52c.js → get-payout-csv-778db023.js} +7 -8
  32. package/dist/cjs/{get-subaccounts-9aa22224.js → get-subaccounts-b087fa39.js} +5 -6
  33. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  34. package/dist/cjs/{header-1-cb7af794.js → header-1-96b97cab.js} +1 -1
  35. package/dist/cjs/{header-3-75e50713.js → header-3-ce77b96b.js} +1 -1
  36. package/dist/cjs/{insurance-state-001cfe12.js → insurance-state-8959c7c7.js} +1 -1
  37. package/dist/cjs/{justifi-additional-questions-form-step-core_8.cjs.entry.js → justifi-additional-questions-form-step-core_9.cjs.entry.js} +225 -16
  38. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +54 -161
  39. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -7
  41. package/dist/cjs/justifi-business-form.cjs.entry.js +40 -15
  42. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  43. package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -11
  44. package/dist/cjs/justifi-checkout.cjs.entry.js +11 -11
  45. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
  47. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  48. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  49. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -16
  51. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
  52. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -9
  53. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  56. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
  58. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
  61. package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -7
  62. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +21 -4
  63. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -11
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -14
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +28 -15
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-48c58886.js → package-52ac8376.js} +1 -1
  69. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  70. package/dist/cjs/{parts-811ddb9c.js → parts-addf2176.js} +20 -2
  71. package/dist/cjs/payment-details-core.cjs.entry.js +27 -13
  72. package/dist/cjs/{payment-provisioning-actions-06466dda.js → payment-provisioning-actions-fbd30d1b.js} +31 -0
  73. package/dist/cjs/{payment.service-9a5336f1.js → payment.service-042c7c99.js} +6 -7
  74. package/dist/cjs/payments-list-core.cjs.entry.js +11 -10
  75. package/dist/cjs/payments-status-411c325c.js +58 -0
  76. package/dist/cjs/{payments-table-cf5d1c33.js → payments-table-16f3f95e.js} +12 -12
  77. package/dist/cjs/payout-details-core.cjs.entry.js +22 -7
  78. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -10
  79. package/dist/cjs/payouts-status-0951e39d.js +53 -0
  80. package/dist/cjs/{payouts-table-58881d95.js → payouts-table-bc15179c.js} +14 -16
  81. package/dist/cjs/{skeleton-5ca03840.js → skeleton-c4903a53.js} +1 -1
  82. package/dist/cjs/{spinner-c11fcb44.js → spinner-aac395e3.js} +1 -1
  83. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  84. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -8
  85. package/dist/cjs/terminals-table-3c19847b.js +45 -0
  86. package/dist/cjs/{utils-a21b7453.js → utils-5fb95d31.js} +6 -8
  87. package/dist/cjs/{utils-fc17191b.js → utils-a05a8bf6.js} +2 -2
  88. package/dist/cjs/webcomponents.cjs.js +1 -1
  89. package/dist/collection/api/BankAccount.js +12 -0
  90. package/dist/collection/api/Checkout.js +5 -0
  91. package/dist/collection/api/Payment.js +10 -1
  92. package/dist/collection/api/Payout.js +5 -1
  93. package/dist/collection/api/services/business.service.js +6 -0
  94. package/dist/collection/collection-manifest.json +4 -1
  95. package/dist/collection/components/{billing-form → billing-forms/billing-form}/billing-form.js +10 -10
  96. package/dist/collection/components/{billing-form → billing-forms}/billing-form-schema.js +13 -2
  97. package/dist/collection/components/billing-forms/billing-form-wrapper.js +183 -0
  98. package/dist/collection/components/billing-forms/postal-form/postal-form.js +136 -0
  99. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  100. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  101. package/dist/collection/components/business-forms/business-form/business-form-loading.js +6 -0
  102. package/dist/collection/components/business-forms/business-form/business-form.js +10 -4
  103. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  104. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  105. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  106. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  107. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  108. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +13 -3
  110. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +270 -0
  112. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +37 -146
  113. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +13 -3
  114. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  115. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +11 -3
  116. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +13 -3
  119. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
  122. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +13 -3
  123. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +30 -0
  125. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -2
  128. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-loading.js +6 -0
  129. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  132. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +1 -1
  133. package/dist/collection/components/checkout/card-form/card-form.js +1 -1
  134. package/dist/collection/components/checkout/checkout-core.js +30 -27
  135. package/dist/collection/components/checkout/checkout.js +29 -24
  136. package/dist/collection/components/checkout/new-payment-method.js +35 -32
  137. package/dist/collection/components/checkout/payment-method-options.js +29 -44
  138. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  139. package/dist/collection/components/checkout/saved-payment-method.js +1 -21
  140. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -21
  141. package/dist/collection/components/checkout/test/checkout.js +0 -1
  142. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  143. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  145. package/dist/collection/components/checkouts-list/checkouts-status.js +26 -11
  146. package/dist/collection/components/checkouts-list/checkouts-table.js +7 -7
  147. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  160. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  161. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
  162. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-loading.js +4 -0
  163. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -2
  164. package/dist/collection/components/payment-details/payment-details-core.js +10 -12
  165. package/dist/collection/components/payment-details/payment-details-loading.js +4 -0
  166. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  167. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  168. package/dist/collection/components/payments-list/payments-list.js +1 -1
  169. package/dist/collection/components/payments-list/payments-status.js +51 -21
  170. package/dist/collection/components/payments-list/payments-table.js +8 -8
  171. package/dist/collection/components/payout-details/payout-details-core.js +3 -4
  172. package/dist/collection/components/payout-details/payout-details-loading.js +4 -0
  173. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  174. package/dist/collection/components/payouts-list/payouts-list-filters.js +1 -1
  175. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  176. package/dist/collection/components/payouts-list/payouts-status.js +46 -19
  177. package/dist/collection/components/payouts-list/payouts-table.js +10 -10
  178. package/dist/collection/components/refund-form/refund-form.js +1 -1
  179. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  180. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  181. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  182. package/dist/collection/components/terminals-list/terminals-status.js +21 -9
  183. package/dist/collection/components/terminals-list/terminals-table.js +4 -4
  184. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +60 -25
  185. package/dist/collection/styles/parts.js +11 -2
  186. package/dist/collection/ui-components/badge/badge.js +39 -0
  187. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  188. package/dist/collection/ui-components/details/details.js +1 -1
  189. package/dist/collection/ui-components/details/utils.js +1 -1
  190. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  191. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  194. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  196. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  202. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  203. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  204. package/dist/collection/utils/table.js +1 -1
  205. package/dist/collection/utils/utils.js +6 -8
  206. package/dist/config.js +0 -1
  207. package/dist/docs.json +779 -197
  208. package/dist/esm/{Api-391d00e2.js → Api-0cac5b8a.js} +12 -1
  209. package/dist/esm/{Checkout-0b4086f8.js → Checkout-d476bb83.js} +6 -0
  210. package/dist/esm/{Payment-4f72d277.js → Payment-47630113.js} +10 -1
  211. package/dist/esm/{SubAccount-99a00594.js → SubAccount-f31349a9.js} +6 -1
  212. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  213. package/dist/esm/badge-b034e71b.js +42 -0
  214. package/dist/esm/bank-account-form_9.entry.js +55 -63
  215. package/dist/esm/{iframe-input.entry.js → billing-form_3.entry.js} +98 -7
  216. package/dist/esm/{business-additional-questions-schema-48e93928.js → business-additional-questions-schema-aba9747e.js} +1 -1
  217. package/dist/esm/business-details-core.entry.js +3 -3
  218. package/dist/esm/{business-identity-schema-75126188.js → business-identity-schema-8b0f1619.js} +1 -1
  219. package/dist/esm/{business.service-182aea6f.js → business.service-ab2663a3.js} +8 -3
  220. package/dist/esm/{button-1886a33d.js → button-8a02823c.js} +1 -1
  221. package/dist/esm/{check-pkg-version-95b9be89.js → check-pkg-version-f613bceb.js} +2 -3
  222. package/dist/esm/{checkout.service-32a6ebe8.js → checkout.service-c275270e.js} +4 -5
  223. package/dist/esm/checkouts-list-core.entry.js +10 -9
  224. package/dist/esm/checkouts-table-115bacc4.js +53 -0
  225. package/dist/esm/custom-popper.entry.js +2 -2
  226. package/dist/esm/{dispute.service-4e5059aa.js → dispute.service-882e35ed.js} +4 -5
  227. package/dist/esm/{event-types-01dcdcbd.js → event-types-948c3b14.js} +3 -3
  228. package/dist/esm/form-alert_5.entry.js +5 -5
  229. package/dist/esm/form-control-checkbox.entry.js +5 -5
  230. package/dist/esm/form-control-date.entry.js +4 -4
  231. package/dist/esm/{form-control-error-text-3b2553b5.js → form-control-error-text-066cdad4.js} +1 -1
  232. package/dist/esm/form-control-file-v2_2.entry.js +4 -4
  233. package/dist/esm/form-control-file.entry.js +4 -4
  234. package/dist/esm/{form-control-help-text-a2fc3617.js → form-control-help-text-3b6f5980.js} +1 -1
  235. package/dist/esm/form-control-monetary.entry.js +5 -5
  236. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  237. package/dist/esm/form-control-number.entry.js +5 -5
  238. package/dist/esm/form-control-radio.entry.js +3 -3
  239. package/dist/esm/form-control-select_3.entry.js +6 -6
  240. package/dist/esm/{get-payout-csv-e6058aa7.js → get-payout-csv-50aea928.js} +4 -5
  241. package/dist/esm/{get-subaccounts-0b8af245.js → get-subaccounts-ab3dd32c.js} +4 -5
  242. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  243. package/dist/esm/{header-1-c6a00a22.js → header-1-75c284dd.js} +1 -1
  244. package/dist/esm/{header-3-a1c6d475.js → header-3-4a327395.js} +1 -1
  245. package/dist/esm/{insurance-state-8fc9376f.js → insurance-state-b495be64.js} +1 -1
  246. package/dist/esm/{justifi-additional-questions-form-step-core_8.entry.js → justifi-additional-questions-form-step-core_9.entry.js} +230 -22
  247. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +53 -160
  248. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  249. package/dist/esm/justifi-business-details.entry.js +6 -7
  250. package/dist/esm/justifi-business-form.entry.js +43 -18
  251. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  252. package/dist/esm/justifi-checkout-core.entry.js +10 -11
  253. package/dist/esm/justifi-checkout.entry.js +11 -11
  254. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  255. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  256. package/dist/esm/justifi-details.entry.js +3 -3
  257. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  258. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  259. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -15
  260. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -6
  261. package/dist/esm/justifi-owner-form_3.entry.js +10 -11
  262. package/dist/esm/justifi-payment-details.entry.js +10 -10
  263. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  264. package/dist/esm/justifi-payment-provisioning.entry.js +6 -7
  265. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  266. package/dist/esm/justifi-payments-list.entry.js +13 -13
  267. package/dist/esm/justifi-payout-details.entry.js +10 -10
  268. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  269. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  270. package/dist/esm/justifi-refund-form.entry.js +6 -6
  271. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +22 -5
  272. package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -9
  273. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  274. package/dist/esm/justifi-terminals-list.entry.js +12 -11
  275. package/dist/esm/justifi-tokenize-payment-method.entry.js +29 -16
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/{package-223933b4.js → package-9b94eb81.js} +1 -1
  278. package/dist/esm/pagination-menu.entry.js +1 -1
  279. package/dist/esm/{parts-186d437f.js → parts-93f379ab.js} +12 -3
  280. package/dist/esm/payment-details-core.entry.js +28 -14
  281. package/dist/esm/{payment-provisioning-actions-0635eff7.js → payment-provisioning-actions-a262ee82.js} +31 -1
  282. package/dist/esm/{payment.service-45f90e06.js → payment.service-92b90855.js} +4 -5
  283. package/dist/esm/payments-list-core.entry.js +11 -10
  284. package/dist/esm/payments-status-82466054.js +56 -0
  285. package/dist/esm/{payments-table-d6fbab5b.js → payments-table-c0bb25b6.js} +12 -12
  286. package/dist/esm/payout-details-core.entry.js +23 -8
  287. package/dist/esm/payouts-list-core.entry.js +11 -10
  288. package/dist/esm/payouts-status-b98c8297.js +51 -0
  289. package/dist/esm/{payouts-table-2e61a116.js → payouts-table-4382a264.js} +14 -16
  290. package/dist/esm/{schema-validations-c7d4f9df.js → schema-validations-5b0ac96b.js} +1 -1
  291. package/dist/esm/{skeleton-8f71cdf7.js → skeleton-3bcb2b5d.js} +1 -1
  292. package/dist/esm/{spinner-879489b3.js → spinner-b83f3a87.js} +1 -1
  293. package/dist/esm/table-filters-menu.entry.js +3 -3
  294. package/dist/esm/terminals-list-core.entry.js +10 -8
  295. package/dist/esm/terminals-table-8f1c2146.js +41 -0
  296. package/dist/esm/{utils-d7633e66.js → utils-7fb6331d.js} +2 -2
  297. package/dist/esm/{utils-54543523.js → utils-b76d791e.js} +7 -9
  298. package/dist/esm/webcomponents.js +1 -1
  299. package/dist/module/Checkout.js +6 -0
  300. package/dist/module/Payment.js +11 -1
  301. package/dist/module/SubAccount.js +6 -1
  302. package/dist/module/additional-questions.js +2 -2
  303. package/dist/module/additional-statement.js +2 -2
  304. package/dist/module/badge.js +42 -0
  305. package/dist/module/bank-account-form2.js +1 -1
  306. package/dist/module/billing-form-schema.js +16 -0
  307. package/dist/module/billing-form-wrapper.js +114 -0
  308. package/dist/module/{justifi-billing-form.d.ts → billing-form.d.ts} +4 -4
  309. package/dist/module/billing-form.js +4 -97
  310. package/dist/module/billing-form2.js +90 -0
  311. package/dist/module/business-additional-questions-form-step-core.js +13 -3
  312. package/dist/module/business-additional-questions-form-step.js +1 -1
  313. package/dist/module/business-additional-questions-schema.js +1 -1
  314. package/dist/module/business-address-schema.js +1 -1
  315. package/dist/module/business-bank-account-form-step-core.js +206 -0
  316. package/dist/module/business-bank-account-form-step.js +49 -157
  317. package/dist/module/business-core-info-form-step-core.js +14 -4
  318. package/dist/module/business-core-info-form-step.js +1 -1
  319. package/dist/module/business-core-info.js +2 -2
  320. package/dist/module/business-document-upload-form-step.js +2 -3
  321. package/dist/module/business-document-upload-input-group.js +1 -1
  322. package/dist/module/business-documents-on-file.js +1 -1
  323. package/dist/module/business-form-options.js +1 -1
  324. package/dist/module/business-owners-form-step-core.js +10 -2
  325. package/dist/module/business-owners-form-step.js +1 -1
  326. package/dist/module/business-representative-form-inputs.js +1 -1
  327. package/dist/module/business-representative-form-step-core.js +12 -2
  328. package/dist/module/business-representative-form-step.js +1 -1
  329. package/dist/module/business-representative.js +1 -1
  330. package/dist/module/business-terms-conditions-form-step.js +2 -3
  331. package/dist/module/business-terms-conditions-text.js +2 -2
  332. package/dist/module/business.service.js +8 -3
  333. package/dist/module/button.js +1 -1
  334. package/dist/module/cancellation-policy.js +2 -2
  335. package/dist/module/card-form2.js +1 -1
  336. package/dist/module/check-pkg-version.js +1 -2
  337. package/dist/module/checkout-core.js +51 -40
  338. package/dist/module/checkout.service.js +1 -2
  339. package/dist/module/checkouts-list-core2.js +36 -27
  340. package/dist/module/config.js +116 -2
  341. package/dist/module/custom-popper2.js +2 -2
  342. package/dist/module/customer-details.js +2 -2
  343. package/dist/module/details.js +1 -1
  344. package/dist/module/dispute-management-core.js +1 -1
  345. package/dist/module/dispute-notification.js +2 -2
  346. package/dist/module/dispute-response-actions.js +2 -3
  347. package/dist/module/dispute-response-core.js +2 -2
  348. package/dist/module/dispute-response.js +1 -1
  349. package/dist/module/duplicate-charge.js +2 -2
  350. package/dist/module/electronic-evidence.js +2 -2
  351. package/dist/module/event-types.js +2 -2
  352. package/dist/module/form-alert2.js +1 -1
  353. package/dist/module/form-control-checkbox2.js +3 -3
  354. package/dist/module/form-control-date2.js +3 -3
  355. package/dist/module/form-control-file-v22.js +1 -1
  356. package/dist/module/form-control-file2.js +3 -3
  357. package/dist/module/form-control-monetary2.js +3 -3
  358. package/dist/module/form-control-number-masked2.js +3 -3
  359. package/dist/module/form-control-number.js +2 -2
  360. package/dist/module/form-control-radio2.js +3 -3
  361. package/dist/module/form-control-select2.js +3 -3
  362. package/dist/module/form-control-text2.js +3 -3
  363. package/dist/module/form-control-textarea2.js +3 -3
  364. package/dist/module/form-control-tooltip2.js +1 -1
  365. package/dist/module/get-payout-csv.js +2 -3
  366. package/dist/module/get-subaccounts.js +2 -3
  367. package/dist/module/gross-payment-chart-core2.js +1 -1
  368. package/dist/module/hidden-input2.js +1 -1
  369. package/dist/module/identity-address-form.js +2 -2
  370. package/dist/module/iframe-input2.js +3 -3
  371. package/dist/module/justifi-billing-form-wrapper.d.ts +11 -0
  372. package/dist/module/justifi-billing-form-wrapper.js +6 -0
  373. package/dist/module/justifi-business-bank-account-form-step-core.d.ts +11 -0
  374. package/dist/module/justifi-business-bank-account-form-step-core.js +6 -0
  375. package/dist/module/justifi-business-details.js +1 -1
  376. package/dist/module/justifi-business-form.js +32 -7
  377. package/dist/module/justifi-checkout.js +53 -41
  378. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  379. package/dist/module/justifi-checkouts-list.js +2 -2
  380. package/dist/module/justifi-dispute-management.js +2 -2
  381. package/dist/module/justifi-gross-payment-chart.js +2 -3
  382. package/dist/module/justifi-payment-details.js +1 -1
  383. package/dist/module/justifi-payment-provisioning.js +33 -28
  384. package/dist/module/justifi-payments-list-filters.js +1 -1
  385. package/dist/module/justifi-payments-list.js +2 -2
  386. package/dist/module/justifi-payout-details.js +1 -1
  387. package/dist/module/justifi-payouts-list-filters.js +1 -1
  388. package/dist/module/justifi-payouts-list.js +2 -2
  389. package/dist/module/justifi-refund-form.js +2 -3
  390. package/dist/module/justifi-season-interruption-insurance.js +6 -5
  391. package/dist/module/justifi-terminals-list-filters.js +1 -1
  392. package/dist/module/justifi-terminals-list.js +3 -4
  393. package/dist/module/justifi-tokenize-payment-method.js +73 -45
  394. package/dist/module/legal-address-form-step-core.js +13 -3
  395. package/dist/module/legal-address-form-step.js +1 -1
  396. package/dist/module/legal-address-form.js +2 -2
  397. package/dist/module/new-payment-method.js +50 -43
  398. package/dist/module/owner-form-core2.js +2 -2
  399. package/dist/module/owner-form-inputs2.js +1 -1
  400. package/dist/module/owner-form.js +2 -2
  401. package/dist/module/package.js +1 -1
  402. package/dist/module/pagination-menu2.js +1 -1
  403. package/dist/module/parts.js +12 -3
  404. package/dist/module/payment-details-core2.js +25 -13
  405. package/dist/module/payment-method-options.js +49 -39
  406. package/dist/module/payment-provisioning-actions.js +32 -2
  407. package/dist/module/payment-provisioning-core.js +31 -25
  408. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  409. package/dist/module/payment-provisioning-form-steps.js +32 -26
  410. package/dist/module/payment-provisioning-loading.js +25 -0
  411. package/dist/module/payment.service.js +1 -2
  412. package/dist/module/payments-list-core2.js +12 -12
  413. package/dist/module/payments-status.js +52 -20
  414. package/dist/module/payout-details-core2.js +18 -5
  415. package/dist/module/payouts-list-core2.js +14 -16
  416. package/dist/module/payouts-status.js +47 -18
  417. package/dist/module/postal-form.d.ts +11 -0
  418. package/dist/module/postal-form.js +6 -0
  419. package/dist/module/postal-form2.js +83 -0
  420. package/dist/module/product-or-service.js +2 -2
  421. package/dist/module/refund-policy.js +2 -2
  422. package/dist/module/save-new-payment-method.js +1 -1
  423. package/dist/module/saved-payment-method.js +2 -5
  424. package/dist/module/schema-validations.js +2 -2
  425. package/dist/module/season-interruption-insurance-core.js +19 -2
  426. package/dist/module/sezzle-payment-method.js +2 -5
  427. package/dist/module/shipping-details.js +2 -2
  428. package/dist/module/spinner.js +1 -1
  429. package/dist/module/table-filters-menu2.js +2 -2
  430. package/dist/module/terminals-list-core2.js +26 -14
  431. package/dist/module/utils.js +1 -1
  432. package/dist/module/utils2.js +6 -8
  433. package/dist/module/utils3.js +23 -24
  434. package/dist/module/utils4.js +24 -23
  435. package/dist/types/api/BankAccount.d.ts +11 -0
  436. package/dist/types/api/Checkout.d.ts +4 -2
  437. package/dist/types/api/Payment.d.ts +9 -4
  438. package/dist/types/api/Payout.d.ts +4 -2
  439. package/dist/types/api/services/business.service.d.ts +7 -0
  440. package/dist/types/components/{billing-form → billing-forms/billing-form}/billing-form.d.ts +2 -2
  441. package/dist/types/components/{billing-form → billing-forms}/billing-form-schema.d.ts +11 -2
  442. package/dist/types/components/billing-forms/billing-form-wrapper.d.ts +19 -0
  443. package/dist/types/components/billing-forms/postal-form/postal-form.d.ts +20 -0
  444. package/dist/types/components/business-forms/business-form/business-form-loading.d.ts +1 -0
  445. package/dist/types/components/business-forms/business-form/business-form.d.ts +1 -0
  446. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -0
  447. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +35 -0
  448. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +6 -24
  449. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -0
  450. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +1 -0
  451. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -0
  452. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -0
  453. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +9 -0
  454. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-loading.d.ts +1 -0
  455. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
  456. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +1 -1
  457. package/dist/types/components/checkout/checkout-core.d.ts +3 -6
  458. package/dist/types/components/checkout/checkout.d.ts +3 -3
  459. package/dist/types/components/checkout/new-payment-method.d.ts +4 -4
  460. package/dist/types/components/checkout/payment-method-options.d.ts +3 -5
  461. package/dist/types/components/checkout/saved-payment-method.d.ts +0 -1
  462. package/dist/types/components/checkout/sezzle-payment-method.d.ts +0 -1
  463. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +1 -1
  464. package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -1
  465. package/dist/types/components/checkouts-list/checkouts-table.d.ts +7 -6
  466. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-loading.d.ts +2 -0
  467. package/dist/types/components/payment-details/payment-details-loading.d.ts +2 -0
  468. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
  469. package/dist/types/components/payments-list/payments-status.d.ts +1 -1
  470. package/dist/types/components/payments-list/payments-table.d.ts +8 -7
  471. package/dist/types/components/payout-details/payout-details-loading.d.ts +2 -0
  472. package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -1
  473. package/dist/types/components/payouts-list/payouts-status.d.ts +1 -1
  474. package/dist/types/components/payouts-list/payouts-table.d.ts +10 -9
  475. package/dist/types/components/terminals-list/terminals-list-core.d.ts +1 -1
  476. package/dist/types/components/terminals-list/terminals-status.d.ts +1 -1
  477. package/dist/types/components/terminals-list/terminals-table.d.ts +5 -4
  478. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +3 -1
  479. package/dist/types/components.d.ts +123 -77
  480. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -1
  481. package/dist/types/styles/parts.d.ts +10 -1
  482. package/dist/types/ui-components/badge/badge.d.ts +18 -0
  483. package/dist/types/utils/table.d.ts +3 -3
  484. package/dist/types/utils/utils.d.ts +2 -1
  485. package/dist/webcomponents/p-04ce1f82.js +1 -0
  486. package/dist/webcomponents/p-0544f4a4.entry.js +1 -0
  487. package/dist/webcomponents/p-060ff1a1.js +1 -0
  488. package/dist/webcomponents/p-0658b707.entry.js +1 -0
  489. package/dist/webcomponents/{p-1dbae48b.entry.js → p-09fd4ee2.entry.js} +1 -1
  490. package/dist/webcomponents/p-0d7e7957.js +1 -0
  491. package/dist/webcomponents/p-0f4168f4.entry.js +1 -0
  492. package/dist/webcomponents/p-10cface4.entry.js +1 -0
  493. package/dist/webcomponents/p-10f9ff7b.entry.js +1 -0
  494. package/dist/webcomponents/p-12233a57.entry.js +1 -0
  495. package/dist/webcomponents/p-135e24c0.js +1 -0
  496. package/dist/webcomponents/p-14d21d66.entry.js +1 -0
  497. package/dist/webcomponents/p-156f0a23.entry.js +1 -0
  498. package/dist/webcomponents/p-16a9e343.js +1 -0
  499. package/dist/webcomponents/p-1a27f22e.js +1 -0
  500. package/dist/webcomponents/p-1e2526c8.entry.js +1 -0
  501. package/dist/webcomponents/p-24a9c773.js +1 -0
  502. package/dist/webcomponents/{p-b056034f.entry.js → p-2b081961.entry.js} +1 -1
  503. package/dist/webcomponents/p-2bd8650b.js +1 -0
  504. package/dist/webcomponents/p-2c7441ea.entry.js +1 -0
  505. package/dist/webcomponents/p-2ce40098.js +1 -0
  506. package/dist/webcomponents/p-2d27d054.entry.js +1 -0
  507. package/dist/webcomponents/p-2d801915.js +1 -0
  508. package/dist/webcomponents/p-351c7fa3.entry.js +1 -0
  509. package/dist/webcomponents/p-39177d5a.js +1 -0
  510. package/dist/webcomponents/p-3f209fcc.entry.js +1 -0
  511. package/dist/webcomponents/p-3fa7d9c9.entry.js +1 -0
  512. package/dist/webcomponents/p-411382f3.js +1 -0
  513. package/dist/webcomponents/p-44604a45.js +1 -0
  514. package/dist/webcomponents/p-46769ec3.entry.js +1 -0
  515. package/dist/webcomponents/p-47cd431c.js +1 -0
  516. package/dist/webcomponents/{p-0aa63869.entry.js → p-4bcfdb99.entry.js} +1 -1
  517. package/dist/webcomponents/p-4c4f9e3b.js +1 -0
  518. package/dist/webcomponents/p-4e122ace.js +1 -0
  519. package/dist/webcomponents/p-4e92b1ac.entry.js +1 -0
  520. package/dist/webcomponents/{p-d75b52c8.entry.js → p-541b7c36.entry.js} +1 -1
  521. package/dist/webcomponents/p-560bc606.entry.js +1 -0
  522. package/dist/webcomponents/p-5d0763a5.js +1 -0
  523. package/dist/webcomponents/p-5d177a30.js +1 -0
  524. package/dist/webcomponents/p-67aef066.entry.js +1 -0
  525. package/dist/webcomponents/{p-1e6077f4.js → p-6b21b6c9.js} +1 -1
  526. package/dist/webcomponents/p-6bc01617.js +1 -0
  527. package/dist/webcomponents/{p-323ba4df.entry.js → p-6e8be579.entry.js} +1 -1
  528. package/dist/webcomponents/p-72a90154.entry.js +1 -0
  529. package/dist/webcomponents/{p-8c7a81c1.js → p-730e8425.js} +1 -1
  530. package/dist/webcomponents/p-73323a41.entry.js +1 -0
  531. package/dist/webcomponents/p-73619f0a.js +1 -0
  532. package/dist/webcomponents/{p-f4722957.js → p-74736657.js} +1 -1
  533. package/dist/webcomponents/p-74d6e182.entry.js +1 -0
  534. package/dist/webcomponents/p-783f72a5.entry.js +1 -0
  535. package/dist/webcomponents/{p-08b8d1f0.entry.js → p-7b1fcab5.entry.js} +1 -1
  536. package/dist/webcomponents/p-7bddbee4.js +1 -0
  537. package/dist/webcomponents/{p-c9670f3c.entry.js → p-7db2a4d5.entry.js} +1 -1
  538. package/dist/webcomponents/p-83aa33f0.js +1 -0
  539. package/dist/webcomponents/p-850b7717.entry.js +1 -0
  540. package/dist/webcomponents/p-87ce7b69.js +1 -0
  541. package/dist/webcomponents/p-8d61499c.entry.js +1 -0
  542. package/dist/webcomponents/p-9154210a.entry.js +1 -0
  543. package/dist/webcomponents/p-92d78790.js +1 -0
  544. package/dist/webcomponents/p-96bc127e.entry.js +1 -0
  545. package/dist/webcomponents/p-98e49e54.entry.js +1 -0
  546. package/dist/webcomponents/p-a3df6c3e.entry.js +1 -0
  547. package/dist/webcomponents/p-a5008b32.entry.js +1 -0
  548. package/dist/webcomponents/p-a59636ed.js +1 -0
  549. package/dist/webcomponents/p-a7b04e24.js +1 -0
  550. package/dist/webcomponents/{p-7b9f21cd.entry.js → p-ac2588af.entry.js} +1 -1
  551. package/dist/webcomponents/p-aee49e6e.entry.js +1 -0
  552. package/dist/webcomponents/p-b04da0de.entry.js +1 -0
  553. package/dist/webcomponents/{p-b1d4e520.entry.js → p-b78da082.entry.js} +1 -1
  554. package/dist/webcomponents/p-b7b18a0f.entry.js +1 -0
  555. package/dist/webcomponents/p-ba202e33.js +1 -0
  556. package/dist/webcomponents/p-bf07d5d0.entry.js +1 -0
  557. package/dist/webcomponents/{p-a47971d8.entry.js → p-c0e18724.entry.js} +1 -1
  558. package/dist/webcomponents/{p-47e7f876.entry.js → p-c65c07f7.entry.js} +1 -1
  559. package/dist/webcomponents/{p-7216ef00.entry.js → p-ca6214ca.entry.js} +1 -1
  560. package/dist/webcomponents/{p-af834eb8.js → p-cb8f7bf4.js} +1 -1
  561. package/dist/webcomponents/p-ce2de434.entry.js +1 -0
  562. package/dist/webcomponents/{p-bb61c6e0.js → p-d1f78cb5.js} +1 -1
  563. package/dist/webcomponents/p-d6e51c2f.js +1 -0
  564. package/dist/webcomponents/{p-f9fdcc1a.entry.js → p-d86c1f11.entry.js} +2 -2
  565. package/dist/webcomponents/p-def672dc.entry.js +1 -0
  566. package/dist/webcomponents/p-df795bd0.entry.js +1 -0
  567. package/dist/webcomponents/{p-fa2e3dc7.entry.js → p-e0f21a47.entry.js} +1 -1
  568. package/dist/webcomponents/{p-79b7c30d.js → p-eb644cb7.js} +1 -1
  569. package/dist/webcomponents/p-f2158e48.entry.js +1 -0
  570. package/dist/webcomponents/p-f3867b82.entry.js +1 -0
  571. package/dist/webcomponents/p-f65abd18.js +1 -0
  572. package/dist/webcomponents/{p-663a00cd.entry.js → p-f76a7f9c.entry.js} +1 -1
  573. package/dist/webcomponents/p-fd6619d0.entry.js +1 -0
  574. package/dist/webcomponents/webcomponents.esm.js +1 -1
  575. package/package.json +1 -1
  576. package/dist/cjs/business.service-285f6f26.js +0 -32
  577. package/dist/cjs/checkouts-table-17648e93.js +0 -48
  578. package/dist/cjs/config-b190e93e.js +0 -15
  579. package/dist/cjs/payments-status-68ac449d.js +0 -26
  580. package/dist/cjs/payouts-status-2f7be07d.js +0 -24
  581. package/dist/cjs/terminals-table-91985249.js +0 -33
  582. package/dist/esm/checkouts-table-8b116232.js +0 -44
  583. package/dist/esm/config-187b3ae1.js +0 -13
  584. package/dist/esm/payments-status-a7c18f2a.js +0 -24
  585. package/dist/esm/payouts-status-cd58e525.js +0 -22
  586. package/dist/esm/terminals-table-8e42977c.js +0 -29
  587. package/dist/module/Api.js +0 -116
  588. package/dist/module/justifi-billing-form.js +0 -6
  589. package/dist/webcomponents/p-01f32098.entry.js +0 -1
  590. package/dist/webcomponents/p-0201ec6c.entry.js +0 -1
  591. package/dist/webcomponents/p-050a6855.entry.js +0 -1
  592. package/dist/webcomponents/p-0cc6c539.js +0 -1
  593. package/dist/webcomponents/p-0ccbc022.entry.js +0 -1
  594. package/dist/webcomponents/p-0e180654.js +0 -1
  595. package/dist/webcomponents/p-0eb86b3f.entry.js +0 -1
  596. package/dist/webcomponents/p-0f23ff58.js +0 -1
  597. package/dist/webcomponents/p-16d2932d.js +0 -1
  598. package/dist/webcomponents/p-1ce22da6.entry.js +0 -1
  599. package/dist/webcomponents/p-206fde40.js +0 -1
  600. package/dist/webcomponents/p-20a24f3a.entry.js +0 -1
  601. package/dist/webcomponents/p-238f1ff8.entry.js +0 -1
  602. package/dist/webcomponents/p-2462bf86.entry.js +0 -1
  603. package/dist/webcomponents/p-32a5bf4e.js +0 -1
  604. package/dist/webcomponents/p-34c14f59.js +0 -1
  605. package/dist/webcomponents/p-3db8b3c7.js +0 -1
  606. package/dist/webcomponents/p-3eabbdd4.entry.js +0 -1
  607. package/dist/webcomponents/p-438df53f.entry.js +0 -1
  608. package/dist/webcomponents/p-441c1cf8.js +0 -1
  609. package/dist/webcomponents/p-4972d608.entry.js +0 -1
  610. package/dist/webcomponents/p-4a576796.js +0 -1
  611. package/dist/webcomponents/p-4d916b2d.js +0 -1
  612. package/dist/webcomponents/p-5968ff8a.js +0 -1
  613. package/dist/webcomponents/p-597bd1e1.entry.js +0 -1
  614. package/dist/webcomponents/p-5bbe1133.entry.js +0 -1
  615. package/dist/webcomponents/p-5cb947bc.entry.js +0 -1
  616. package/dist/webcomponents/p-5d3f81c0.entry.js +0 -1
  617. package/dist/webcomponents/p-6677c60d.entry.js +0 -1
  618. package/dist/webcomponents/p-68694a17.entry.js +0 -1
  619. package/dist/webcomponents/p-6ab77b89.js +0 -1
  620. package/dist/webcomponents/p-6b840696.entry.js +0 -1
  621. package/dist/webcomponents/p-6fbd6abb.js +0 -1
  622. package/dist/webcomponents/p-6feeb9f2.js +0 -1
  623. package/dist/webcomponents/p-70eea098.entry.js +0 -1
  624. package/dist/webcomponents/p-73a18b5a.entry.js +0 -1
  625. package/dist/webcomponents/p-7a975a3c.js +0 -1
  626. package/dist/webcomponents/p-808bb677.entry.js +0 -1
  627. package/dist/webcomponents/p-80b1bcc2.entry.js +0 -1
  628. package/dist/webcomponents/p-88acfa7c.entry.js +0 -1
  629. package/dist/webcomponents/p-8a94d2c8.js +0 -1
  630. package/dist/webcomponents/p-8fe80110.entry.js +0 -1
  631. package/dist/webcomponents/p-90dc2f2c.js +0 -1
  632. package/dist/webcomponents/p-9c2d5229.entry.js +0 -1
  633. package/dist/webcomponents/p-9c2e00cc.js +0 -1
  634. package/dist/webcomponents/p-a3949f32.js +0 -1
  635. package/dist/webcomponents/p-ac147eef.entry.js +0 -1
  636. package/dist/webcomponents/p-b392ec21.js +0 -1
  637. package/dist/webcomponents/p-b6d76082.entry.js +0 -1
  638. package/dist/webcomponents/p-bb0f8b70.js +0 -1
  639. package/dist/webcomponents/p-bb71cef3.js +0 -1
  640. package/dist/webcomponents/p-bbcaa29b.entry.js +0 -1
  641. package/dist/webcomponents/p-c092cbb2.js +0 -1
  642. package/dist/webcomponents/p-c212414b.entry.js +0 -1
  643. package/dist/webcomponents/p-c2a2b9fe.entry.js +0 -1
  644. package/dist/webcomponents/p-cc977850.js +0 -1
  645. package/dist/webcomponents/p-d53c5ea5.entry.js +0 -1
  646. package/dist/webcomponents/p-d8fdf2b5.entry.js +0 -1
  647. package/dist/webcomponents/p-d960db89.entry.js +0 -1
  648. package/dist/webcomponents/p-db8c12ee.js +0 -1
  649. package/dist/webcomponents/p-e396506c.entry.js +0 -1
  650. package/dist/webcomponents/p-e4421e98.entry.js +0 -1
  651. package/dist/webcomponents/p-e7bb6520.js +0 -1
  652. package/dist/webcomponents/p-ed8918d1.entry.js +0 -1
  653. package/dist/webcomponents/p-edb57087.js +0 -1
  654. package/dist/webcomponents/p-ee4a2aac.entry.js +0 -1
  655. package/dist/webcomponents/p-ef4c49b9.js +0 -1
  656. package/dist/webcomponents/p-f88d5c0d.entry.js +0 -1
@@ -1,24 +0,0 @@
1
- const MapPaymentStatusToBadge = (status) => {
2
- switch (status) {
3
- case 'succeeded':
4
- return "<span class='badge bg-success' title='This payment was successfully captured'>Succeeded</span>";
5
- case 'authorized':
6
- return "<span class='badge bg-primary' title='This card payment was authorized, but not captured. It could still succeed or fail.'>Authorized</span>";
7
- case 'pending':
8
- return "<span class='badge bg-primary' title='This ACH payment was processed, but the funds have not settled. It could still succeed or fail.'>Pending</span>";
9
- case 'achFailed':
10
- return "<span class='badge bg-danger' title='The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)'>Failed</span>";
11
- case 'failed':
12
- return "<span class='badge bg-danger' title='This card payment did not go through (it will not appear in a payout)'>Failed</span>";
13
- case 'canceled':
14
- return "<span class='badge bg-danger' title='This payment was canceled'>Canceled</span>";
15
- case 'disputed':
16
- return "<span class='badge bg-secondary' title='The account holder disputed this payment. The amount has been returned and a fee assessed.'>Disputed</span>";
17
- case 'fully_refunded':
18
- return "<span class='badge bg-secondary' title='The full amount of this payment has been refunded'>Fully Refunded</span>";
19
- case 'partially_refunded':
20
- return "<span class='badge bg-secondary' title='A portion of this payment has been refunded'>Partially Refunded</span>";
21
- }
22
- };
23
-
24
- export { MapPaymentStatusToBadge as M };
@@ -1,22 +0,0 @@
1
- const MapPayoutStatusToBadge = (status) => {
2
- switch (status) {
3
- case 'canceled':
4
- return "<span class='badge bg-danger' title='Transfer to your bank account failed'>Canceled</span>";
5
- case 'failed':
6
- return "<span class='badge bg-danger' title='Transfer to your bank account failed'>Failed</span>";
7
- case 'forwarded':
8
- return "<span class='badge bg-secondary' title='This payout initially failed; the funds have been forwarded to your next successful payout'>Forwarded</span>";
9
- case 'in_transit':
10
- return "<span class='badge bg-primary' title='Transfer to your bank account has been initiated'>In Transit</span>";
11
- case 'paid':
12
- return "<span class='badge bg-success' title='Successfully deposited into your bank account'>Paid</span>";
13
- case 'pending':
14
- return "<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Pending</span>";
15
- case 'scheduled':
16
- return "<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Scheduled</span>";
17
- case 'withdrawn':
18
- return "<span class='badge bg-success' title='Negative payout balance successfully withdrawn from your bank account'>Withdrawn</span>";
19
- }
20
- };
21
-
22
- export { MapPayoutStatusToBadge as M };
@@ -1,29 +0,0 @@
1
- import { h } from './index-29fcfdf5.js';
2
- import { k as tableHeadCell, m as getAlternateTableCellPart } from './parts-186d437f.js';
3
-
4
- const MapTerminalStatusToBadge = (status) => {
5
- switch (status) {
6
- case 'connected':
7
- return "<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";
8
- case 'disconnected':
9
- return "<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";
10
- case 'unknown':
11
- return "<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>";
12
- }
13
- };
14
-
15
- const defaultColumnsKeys = 'nickname,provider_id,status';
16
- const terminalTableColumns = {
17
- nickname: () => (h("th", { part: tableHeadCell, scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
18
- provider_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
19
- sub_account_name: () => (h("th", { part: tableHeadCell, scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
20
- status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The current status of each terminal" }, "Status")),
21
- };
22
- const terminalTableCells = {
23
- nickname: (value, index) => (h("td", { part: getAlternateTableCellPart(index) }, value)),
24
- provider_id: (value, index) => (h("td", { part: getAlternateTableCellPart(index) }, value)),
25
- sub_account_name: (value, index) => (h("td", { part: getAlternateTableCellPart(index) }, value)),
26
- status: (value, index) => (h("td", { part: getAlternateTableCellPart(index), innerHTML: MapTerminalStatusToBadge(value) })),
27
- };
28
-
29
- export { terminalTableCells as a, defaultColumnsKeys as d, terminalTableColumns as t };
@@ -1,116 +0,0 @@
1
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
2
- // require the crypto API and do not support built-in fallback to lower quality random number
3
- // generators (like Math.random()).
4
- let getRandomValues;
5
- const rnds8 = new Uint8Array(16);
6
- function rng() {
7
- // lazy load so that environments that need to polyfill have a chance to do so
8
- if (!getRandomValues) {
9
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
10
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
11
-
12
- if (!getRandomValues) {
13
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
14
- }
15
- }
16
-
17
- return getRandomValues(rnds8);
18
- }
19
-
20
- /**
21
- * Convert array of 16 byte values to UUID string format of the form:
22
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
23
- */
24
-
25
- const byteToHex = [];
26
-
27
- for (let i = 0; i < 256; ++i) {
28
- byteToHex.push((i + 0x100).toString(16).slice(1));
29
- }
30
-
31
- function unsafeStringify(arr, offset = 0) {
32
- // Note: Be careful editing this code! It's been tuned for performance
33
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
34
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
35
- }
36
-
37
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
38
- const native = {
39
- randomUUID
40
- };
41
-
42
- function v4(options, buf, offset) {
43
- if (native.randomUUID && !buf && !options) {
44
- return native.randomUUID();
45
- }
46
-
47
- options = options || {};
48
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
49
-
50
- rnds[6] = rnds[6] & 0x0f | 0x40;
51
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
52
-
53
- if (buf) {
54
- offset = offset || 0;
55
-
56
- for (let i = 0; i < 16; ++i) {
57
- buf[offset + i] = rnds[i];
58
- }
59
-
60
- return buf;
61
- }
62
-
63
- return unsafeStringify(rnds);
64
- }
65
-
66
- const Api = ({ authToken, apiOrigin }) => {
67
- async function getAuthorizationHeader() {
68
- if (!authToken) {
69
- return {
70
- 'Content-Type': 'application/json',
71
- };
72
- }
73
- return {
74
- Authorization: `Bearer ${authToken}`,
75
- 'Idempotency-Key': v4(),
76
- 'Content-Type': 'application/json',
77
- };
78
- }
79
- async function makeRequest(endpoint, method, params, body, signal, headers) {
80
- const url = `${apiOrigin}/v1/${endpoint}`;
81
- const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
82
- const defaultHeaders = await getAuthorizationHeader();
83
- const mergedHeaders = Object.assign(Object.assign({}, defaultHeaders), headers);
84
- const response = await fetch(requestUrl, {
85
- method: method,
86
- headers: mergedHeaders,
87
- body: body,
88
- signal: signal,
89
- });
90
- if (response) {
91
- return response.status === 204 ? {} : response.json();
92
- }
93
- handleError(requestUrl);
94
- }
95
- async function get(endpoint, params, signal, headers) {
96
- return makeRequest(endpoint, 'GET', params, null, signal, headers);
97
- }
98
- async function post(endpoint, body, params, signal) {
99
- return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
100
- }
101
- async function put(endpoint, body, params, signal) {
102
- return makeRequest(endpoint, 'PUT', params, JSON.stringify(body), signal);
103
- }
104
- async function patch(endpoint, body, params, signal) {
105
- return makeRequest(endpoint, 'PATCH', params, JSON.stringify(body), signal);
106
- }
107
- async function destroy(endpoint, params, signal) {
108
- return makeRequest(endpoint, 'DELETE', params, null, signal);
109
- }
110
- return { get, post, put, patch, destroy };
111
- };
112
- function handleError(requestUrl) {
113
- console.error(`Error fetching from ${requestUrl}`);
114
- }
115
-
116
- export { Api as A };
@@ -1,6 +0,0 @@
1
- import { B as BillingForm, d as defineCustomElement$1 } from './billing-form.js';
2
-
3
- const JustifiBillingForm = BillingForm;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { JustifiBillingForm, defineCustomElement };
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-2783e363.js";import{c as e,F as a}from"./p-5844a0f0.js";import{b as f,a as o}from"./p-79b7c30d.js";import{a as c,i as r}from"./p-bb61c6e0.js";import{A as d}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as n}from"./p-0f23ff58.js";import{B as b,a as h}from"./p-275f2154.js";import{c as p,J as m}from"./p-e7bb6520.js";import{B as l}from"./p-32a5bf4e.js";import{S as j}from"./p-bfe9748b.js";import{H as u}from"./p-b392ec21.js";import{B as y}from"./p-73f9be7c.js";import"./p-af834eb8.js";import"./p-6078a370.js";import"./p-0ea387a2.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";import"./p-1e6077f4.js";import"./p-ef4c49b9.js";const k=e(Object.assign(Object.assign({},f().fields),{legal_address:c(),additional_questions:o(),representative:r("representative")})),v=class{constructor(t){s(this,t),this.submitEvent=i(this,"submit-event",7),this.clickEvent=i(this,"click-event",7),this.instantiateBusiness=s=>{const i=new b(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isLoading=!0;try{const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new b(Object.assign(Object.assign({},i),s)).payload,e=await this.api.patch(this.businessEndpoint,t);this.handleReponse(e)}catch(s){this.errorMessage=h.patchData}finally{this.isLoading=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const s=await this.api.get(this.businessEndpoint);this.instantiateBusiness(s.data)}catch(s){this.errorMessage=h.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.errorMessage=void 0}componentWillLoad(){p(),this.analytics=new m(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new a(k),this.api=d({authToken:this.authToken,apiOrigin:n.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isLoading}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(s){s.error&&(this.errorMessage=h.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return t(j,{key:"583d9fda192de2a23255af3a66749bec30e82668"},t("form",{key:"6de44b1f63b18b7e47c377665878435134155d2a",onSubmit:this.validateAndSubmit},t("div",{key:"e83cf5471df4628461978deba6a6269f5a91dc58",class:"row gap-3"},t(u,{key:"228f8d97e1574c714de73884dd564aac2f58bc3c",text:this.title}),t("form-alert",{key:"e3fe0d57a7ee44f44273481c41b3699e1ccf05d1",text:this.errorMessage,hideAlert:this.hideErrors}),t("div",{key:"af3fc2e821a601d5046f230735ba52359f3f3710",class:"col-12 mb-4"},t("justifi-business-core-info",{key:"e27933c4dd6bfc3746d5071d7cdaec05c1795ec2",formController:this.formController})),t("div",{key:"4c11232954cfb171c0c249465637a3050645f36f",class:"col-12 mb-4"},t("justifi-legal-address-form",{key:"3d9f7b042822f4b898862a0c89c00fa281daff66",formController:this.formController})),t("div",{key:"f3b0209fc3cb1b0cd65692f0505ddfcc80a99d0a",class:"col-12 mb-4"},t("justifi-additional-questions",{key:"a9c0f77135d8ff2f2c2f2ffba6d288f1f1b60f61",formController:this.formController})),t("div",{key:"085df35d64de470c9f0198d52b698945759afe27",class:"col-12 mb-4"},t("justifi-business-representative",{key:"fdb24f037b26f9063d0d1f073d7effb6e3789f7f",formController:this.formController})),t("div",{key:"2b0617d9cd67d296de734c8becbea183555317e4",class:"col-12 d-flex flex-row-reverse"},t(l,{key:"7452cb606515807d9d2089330cf5861cd2dcdc1e",type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:y.submit}),isLoading:this.isLoading},"Submit")))))}};export{v as justifi_business_form}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{l as t}from"./p-c6be72b0.js";import{q as s,c as l}from"./p-8da3667c.js";import{S as c}from"./p-bfe9748b.js";import"./p-f20b6ce1.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a}}componentWillLoad(){this.debouncedSetParamsOnChange=t.exports.debounce(this.setParamsOnChange,300)}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:"connected"},{label:"Disconnected",value:"disconnected"},{label:"Unknown",value:"unknown"}]}render(){return a(c,{key:"3a5ad7d48cab44e058b47416531e0b229521fa66"},a("table-filters-menu",{key:"f443919483a6de96285eb6ee06fc7a40d70dc8a4",params:Object.assign({},s),clearParams:l},a("div",{key:"5858a235e31a41c6092df9f35773d03ca660fd4a",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"73cf6b38fb79063fe96cfb697fe537904237a0f2",class:"p-2"},a("form-control-text",{key:"e2383519f8b9e50c9c38c47ce5cf65023af8be55",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:s.terminal_id})),a("div",{key:"a6bdc258402f59aea76c0c2f1d25f22841a15302",class:"p-2"},a("form-control-select",{key:"acc06bbb87338b579794b930e9a0205ad7e9e65a",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:s.status||""})))))}};export{n as justifi_terminals_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s}from"./p-2783e363.js";import{C as e,a as r}from"./p-14c91ffd.js";import{c as o,J as a}from"./p-e7bb6520.js";import{a as p}from"./p-abdbcd8e.js";import{g as n,a as h}from"./p-8115b2f4.js";import{D as d}from"./p-441c1cf8.js";import{c}from"./p-0f23ff58.js";import"./p-1e6077f4.js";import"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";const m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.disputeId=void 0,this.authToken=void 0,this.apiOrigin=c.proxyApiOrigin,this.getDispute=void 0,this.errorMessage=null}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetDispute()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:i,service:s,apiOrigin:r})=>async({onSuccess:o,onError:a})=>{var d;try{const c=await s.fetchDispute(t,i,r);if(c.error)return a({error:n(c.error),code:h(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);o({dispute:new p(c.data),pagingInfo:t})}}catch(t){const i=h(null==t?void 0:t.code);return a({error:t.message||t,code:i,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new d,apiOrigin:this.apiOrigin}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return s("justifi-dispute-management-core",{key:"3e2a5b24484e8f1e198168910be7880732da3931",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{s as e}from"./p-ef4c49b9.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e,H as i,g as a}from"./p-2783e363.js";import{i as o,a as h,b as r,c as d,l as n}from"./p-ef4c49b9.js";import{F as c}from"./p-c092cbb2.js";import{F as l}from"./p-4d916b2d.js";const f=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),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||"")},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.isFocused?h:this.errorText?r:d}render(){return e(i,{key:"49da5c23574f5edac307f75d83285addee02d49f"},e("div",{key:"f12d88f53e7a1e97d3219b3cc4a2020295b7cb14",class:"form-group d-flex flex-column"},e("label",{key:"0c926aae68a9e42df7d8e7810a9de75d4db5f5e4",part:n,class:"form-label",htmlFor:this.name},this.label),e("input",{key:"606c34cd4f4095b6bfd6c33bf46be8d8948d44ee",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(c,{key:"0cf682568468359ab5b2451b9746e02c7352ba08",helpText:this.helpText,name:this.name}),e(l,{key:"8eedbb1669d0d776c61444fbb435dbdc0a297675",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_number}
@@ -1 +0,0 @@
1
- let n;const t=new Uint8Array(16);function r(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(t)}const o=[];for(let n=0;n<256;++n)o.push((n+256).toString(16).slice(1));const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function c(n,t,c){if(e.randomUUID&&!t&&!n)return e.randomUUID();const u=(n=n||{}).random||(n.rng||r)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){c=c||0;for(let n=0;n<16;++n)t[c+n]=u[n];return t}return function(n,t=0){return o[n[t+0]]+o[n[t+1]]+o[n[t+2]]+o[n[t+3]]+"-"+o[n[t+4]]+o[n[t+5]]+"-"+o[n[t+6]]+o[n[t+7]]+"-"+o[n[t+8]]+o[n[t+9]]+"-"+o[n[t+10]]+o[n[t+11]]+o[n[t+12]]+o[n[t+13]]+o[n[t+14]]+o[n[t+15]]}(u)}const u=({authToken:n,apiOrigin:t})=>{async function r(r,o,e,u,i,a){const p=`${t}/v1/${r}`,s=e?`${p}?${new URLSearchParams(e)}`:p,y=await async function(){return n?{Authorization:`Bearer ${n}`,"Idempotency-Key":c(),"Content-Type":"application/json"}:{"Content-Type":"application/json"}}(),f=Object.assign(Object.assign({},y),a),d=await fetch(s,{method:o,headers:f,body:u,signal:i});if(d)return 204===d.status?{}:d.json();!function(n){console.error(`Error fetching from ${n}`)}(s)}return{get:async function(n,t,o,e){return r(n,"GET",t,null,o,e)},post:async function(n,t,o,e){return r(n,"POST",o,JSON.stringify(t),e)},put:async function(n,t,o,e){return r(n,"PUT",o,JSON.stringify(t),e)},patch:async function(n,t,o,e){return r(n,"PATCH",o,JSON.stringify(t),e)},destroy:async function(n,t,o){return r(n,"DELETE",t,null,o)}}};export{u as A}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-16d2932d.js";import{p as a}from"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{n as i,o as r}from"./p-ef4c49b9.js";import{T as h,a as o,b as c,c as d,d as n}from"./p-8c7a81c1.js";import{c as f,a as p}from"./p-6feeb9f2.js";import{o as b,q as u}from"./p-16ba9bea.js";import"./p-abdbcd8e.js";import"./p-90dc2f2c.js";import"./p-f4722957.js";import"./p-f20b6ce1.js";const m=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:h.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:h.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:h.row,data:e})},this.getCheckouts=void 0,this.getSubAccounts=void 0,this.columns=void 0,this.checkouts=[],this.checkoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=a,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new o(this.checkouts,this.columns,f,p),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),b("set",(()=>{this.pagingParams={}})),b("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.requestParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get requestParams(){return Object.assign(Object.assign({},u),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"7079f5dbb8f52d0e99da70f6975e65f2024bd7c9"},e("div",{key:"8d73be1816687fe3af837d5853f75b5aad756f6e",class:"table-wrapper"},e("table",{key:"3a9d8cb62a25d28660fa160de263ae80c2b67804",class:"table table-hover",part:i},e("thead",{key:"cc1954f52372d481e789cf5460118952633ab34e",class:"table-head sticky-top"},e("tr",{key:"141e9d5f5e671181487a77dd01ea86d0f2927ba6",class:"table-light text-nowrap"},this.checkoutsTable.columnData.map((t=>t)))),e("tbody",{key:"c6f1ba23fcda58bef598d32ec6901e7bae56fe9c",class:"table-body"},e(c,{key:"746e4eaab6f4840f95a7243ac7d9a119fe4dac6c",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(d,{key:"7d7cfed557fe138cfd56a8283da75b8fd55ef01e",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(n,{key:"71e438127afde6489e232ecd19f91545da9ca8fa",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"45a0d79963f2e6edd7f2f11620c0314345b3d6d5",class:"sticky-bottom"},e("tr",{key:"8d502311b14f5f1a7cae5d00f3bff361f4816d72",class:"table-light align-middle"},e("td",{key:"522745aa9b5d46188dd4b351debc83601c144dfe",part:r,colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"41323e6e3aa31631dca4dba29e40551b9a9d5446",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{queryParams:["updateOnPropChange"],pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{m as checkouts_list_core}
@@ -1 +0,0 @@
1
- const i={iframeOrigin:"https://components.justifi.ai/v2",proxyApiOrigin:"https://wc-proxy.justifi.ai",proxyAuthToken:"eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g",exampleAccountId:"acc_5Et9iXrSSAZR2KSouQGAWi",exampleBusinessId:"biz_3bh69bq1rk3dmXNoAKVonu",examplePaymentId:"py_1NNeEnf4FbelxDCQN2RHcE",examplePayoutId:"po_17745yESnHyEgWNeunmhmR",privateApiOrigin:"",privateAuthToken:""};export{i as c}
@@ -1 +0,0 @@
1
- class i{constructor(i){this.payment_mode=s[i.payment_mode],this.payment_token=i.payment_token,this.payment_status=i.payment_status,this.payment_response=i.payment_response,this.payment_error_code=i.payment_error_code,this.payment_error_description=i.payment_error_description,this.checkout_id=i.checkout_id,this.additional_transactions=i.additional_transactions,this.payment_id=i.payment_id,this.payment_method_id=i.payment_method_id,this.status=i.status,this.created_at=i.created_at,this.updated_at=i.updated_at}}class t{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=t.status,this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var i,t,h,o,n,e;let d;if(!this.completions||0===this.completions.length)return s.unknown;const l=this.completions.sort(((i,t)=>new Date(t.updated_at).getTime()-new Date(i.updated_at).getTime()))[0];return l.payment_mode?d=l.payment_mode:(null===(h=null===(t=null===(i=l.payment_response)||void 0===i?void 0:i.data)||void 0===t?void 0:t.payment_method)||void 0===h?void 0:h.card)?d=s.card:(null===(e=null===(n=null===(o=l.payment_response)||void 0===o?void 0:o.data)||void 0===n?void 0:n.payment_method)||void 0===e?void 0:e.bank_account)&&(d=s.bank_account),d}}var s,h;!function(i){i.bnpl="Buy Now Pay Later",i.ecom="E-commerce",i.card="Card",i.bank_account="Bank Account",i.card_present="Card Present",i.unknown=""}(s||(s={})),function(i){i.failed="failed",i.succeeded="succeeded"}(h||(h={}));export{t as C}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{q as t,c as l}from"./p-16ba9bea.js";import{S as c}from"./p-bfe9748b.js";import"./p-f20b6ce1.js";const s=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a}}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:"created"},{label:"Completed",value:"completed"},{label:"Attempted",value:"attempted"},{label:"Expired",value:"expired"}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:"ecom"},{label:"BNPL",value:"bnpl"}]}render(){return a(c,{key:"7eedab4f46529871c876c5b36c3dfdc4a76442bc"},a("table-filters-menu",{key:"645593908d9b2b258a520d6fd469f668a34d5980",params:Object.assign({},t),clearParams:l},a("div",{key:"dd06db2469e9666efd44f0625bd41a69dd45fb1a",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"dba0a96a17a1c255236e0733fe5394638f1abc1f",class:"p-2"},a("form-control-select",{key:"a833d0ece1a88f04f9a68a27098c035b71bc2d86",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:t.status||""})),a("div",{key:"bb90e2e96b0542e8fb00a2ccd7cbb43f4dc8b6a8",class:"p-2"},a("form-control-select",{key:"c214d31111ad970f9f40c0b6b948302e4702d2ba",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:t.payment_mode||""})))))}};export{s as justifi_checkouts_list_filters}
@@ -1 +0,0 @@
1
- const a=a=>{switch(a){case"canceled":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Canceled</span>";case"failed":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Failed</span>";case"forwarded":return"<span class='badge bg-secondary' title='This payout initially failed; the funds have been forwarded to your next successful payout'>Forwarded</span>";case"in_transit":return"<span class='badge bg-primary' title='Transfer to your bank account has been initiated'>In Transit</span>";case"paid":return"<span class='badge bg-success' title='Successfully deposited into your bank account'>Paid</span>";case"pending":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Pending</span>";case"scheduled":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Scheduled</span>";case"withdrawn":return"<span class='badge bg-success' title='Negative payout balance successfully withdrawn from your bank account'>Withdrawn</span>"}};export{a as M}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e}from"./p-2783e363.js";import{A as s}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as r}from"./p-0f23ff58.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as d}from"./p-14c91ffd.js";import{c,J as h}from"./p-e7bb6520.js";import"./p-abdbcd8e.js";import"./p-1e6077f4.js";class u{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",i)}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,e)}}const p=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){c(),this.analytics=new h(this),this.initializeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var d;try{const c=await i.fetchQuote(t,e);if(c.error)return r({error:o(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:n.ERROR});s({quote:c.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new u}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:d})=>{var c;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return d({error:o(h.error),code:a(null===(c=h.error)||void 0===c?void 0:c.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return d({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new u})):this.errorEvent.emit({errorCode:d.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"4a0e93d18f16971cee44cdc9d0b312ded7728274",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{p as justifi_season_interruption_insurance}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-2783e363.js";import{c as e,J as o}from"./p-e7bb6520.js";import{a as r,C as n}from"./p-14c91ffd.js";import{m as a,a as h}from"./p-5968ff8a.js";import{B as p}from"./p-edb57087.js";import{c as d}from"./p-0f23ff58.js";import{A as c}from"./p-0e180654.js";import"./p-1e6077f4.js";import"./p-8115b2f4.js";class m{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return c({authToken:s,apiOrigin:d.proxyApiOrigin}).post("entities/provisioning",e)}}const u=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){e(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new p}),this.postProvisioning=h({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new m})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"845a347f0aead4523515a3a6d34ce7a08cda278a",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{u as justifi_payment_provisioning}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as i}from"./p-2783e363.js";import{P as e}from"./p-cc977850.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import{P as r}from"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{C as o,a}from"./p-14c91ffd.js";import{g as p,a as c}from"./p-8115b2f4.js";import{c as n,J as h}from"./p-e7bb6520.js";import{c as m}from"./p-0f23ff58.js";import{S as d}from"./p-bfe9748b.js";import{d as f}from"./p-34c14f59.js";import"./p-0e180654.js";import"./p-abdbcd8e.js";import"./p-1e6077f4.js";import"./p-bb71cef3.js";import"./p-f4722957.js";import"./p-ef4c49b9.js";const j=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.getPayments=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=m.proxyApiOrigin,this.columns=f}componentWillLoad(){n(),this.analytics=new h(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:s,authToken:t,service:i,apiOrigin:e})=>async({params:a,onSuccess:n,onError:h})=>{var m,d;try{const f=await i.fetchPayments(s,t,a,e);if(f.error)return h({error:p(f.error),code:c(null===(d=f.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const s=Object.assign({},f.page_info);n({payments:(null===(m=f.data)||void 0===m?void 0:m.map((s=>new r(s))))||[],pagingInfo:s})}}catch(s){const t=c(null==s?void 0:s.code);return h({error:s.message||s,code:t,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new e,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return i(d,{key:"35086c06a347cb7ee577366cd5674a2c50c4ffe5"},i("payments-list-core",{key:"bee1a7cf3e600a0060a62cf8151eea390dfd2cfa",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-2783e363.js";import{f as r,g as n,j as a}from"./p-ef4c49b9.js";const t=(t,o)=>s("button",Object.assign({class:`btn btn-${t.variant}`,onClick:t.clickHandler,part:`${{primary:n,secondary:a}[t.variant]} ${t.isLoading?r:""}`},t),t.isLoading?s("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},s("span",{class:"visually-hidden"},"Loading...")):o);export{t as B}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{M as e}from"./p-bb71cef3.js";import{c as a,b as p}from"./p-f4722957.js";import{k as o,m as s}from"./p-ef4c49b9.js";const r="created_at,amount,status,payment_type,description,payers_name,last_four_digits",i={created_at:()=>t("th",{part:o,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:o,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:o,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:o,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:o,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:o,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method")},c={created_at:(e,p)=>t("td",{part:s(p)},t("div",{class:"fw-bold"},a(e,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e,{showTime:!0}))),amount:(e,a)=>t("td",{part:s(a)},p(e,!0,!0)),status:(a,p)=>t("td",{part:s(p),innerHTML:e(a)}),payment_type:(e,a)=>t("td",{part:s(a)},e),description:(e,a)=>t("td",{part:s(a)},e),payers_name:(e,a)=>t("td",{part:s(a)},e),last_four_digits:(e,a)=>t("td",{part:s(a)},e)};export{c as a,r as d,i as p}
@@ -1 +0,0 @@
1
- var t,i,s,h,e,n;!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(t||(t={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(i||(i={}));class c{constructor(t){this.id=t.id,this.account_id=t.account_id,this.amount=t.amount,this.bank_account=t.bank_account,this.currency=t.currency,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at}get csv(){return this.id}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown"}(s||(s={})),function(t){t.verifone="verifone"}(h||(h={}));class d{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||"",this.provider_id=t.provider_id||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||""}}!function(t){t.test="test",t.live="live"}(e||(e={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(n||(n={}));class a{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}export{c as P,a as S,d as T}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-2783e363.js";import{C as e,a as o}from"./p-14c91ffd.js";import{c as r,J as a}from"./p-e7bb6520.js";import{c as n}from"./p-0f23ff58.js";import{m as p,P as h}from"./p-6ab77b89.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import{P as d}from"./p-3db8b3c7.js";import{g as c,a as b}from"./p-8115b2f4.js";import{m as l,S as m}from"./p-db8c12ee.js";import{S as u}from"./p-bfe9748b.js";import{d as f}from"./p-a3949f32.js";import"./p-1e6077f4.js";import"./p-0e180654.js";import"./p-abdbcd8e.js";import"./p-f4722957.js";import"./p-206fde40.js";import"./p-ef4c49b9.js";const g=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=n.proxyApiOrigin,this.columns=f}componentWillLoad(){r(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new h,apiOrigin:this.apiOrigin};this.getPayouts=(({id:t,authToken:s,service:i,apiOrigin:o})=>async({params:r,onSuccess:a,onError:n})=>{var p,h;try{const l=await i.fetchPayouts(t,s,r,o);if(l.error)return n({error:c(l.error),code:b(null===(h=l.error)||void 0===h?void 0:h.code),severity:e.ERROR});{const t=Object.assign({},l.page_info);a({payouts:(null===(p=l.data)||void 0===p?void 0:p.map((t=>new d(t))))||[],pagingInfo:t})}}catch(t){const s=b(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:e.ERROR})}})(t),this.getPayoutCSV=p(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=l({accountId:this.accountId,authToken:this.authToken,service:new m,apiOrigin:this.apiOrigin}))}render(){return i(u,{key:"78316ffab976d4674ed157de643d0e579a503050",exportedparts:"\ntable-head,table-head-row,table-head-cell,table-body,table-row,table-row-even,\ntable-row-odd,table-cell,loading-state-cell,loading-state-spinner,error-state,\nempty-state,pagination-bar,page-arrow,page-button,page-button-disabled,page-button-text\n"},i("payouts-list-core",{key:"6d258120f1ab81723505f76db75f4d4289e072b4",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{g as justifi_payouts_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-16d2932d.js";import{p as i}from"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{a,C as r}from"./p-14c91ffd.js";import{n as h,o}from"./p-ef4c49b9.js";import{T as d,a as c,b as n,c as p,d as b}from"./p-8c7a81c1.js";import{p as f,a as m}from"./p-a3949f32.js";import{o as u,q as l}from"./p-9f773228.js";import"./p-abdbcd8e.js";import"./p-90dc2f2c.js";import"./p-f4722957.js";import"./p-206fde40.js";import"./p-f20b6ce1.js";const y=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:r.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:d.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:d.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payouts.find((t=>t.id===s));this.clickEvent.emit({name:d.row,data:e})},this.getPayouts=void 0,this.getSubAccounts=void 0,this.getPayoutCSV=void 0,this.columns=void 0,this.payouts=[],this.payoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=i,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new c(this.payouts,this.columns,f,m(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),u("set",(()=>{this.pagingParams={}})),u("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.requestParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get requestParams(){return Object.assign(Object.assign({},l),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"b32c27e9cd63eebde1bbce6634eeb8be1c804db8"},e("div",{key:"842d7df46f21510c872e34234d70a3adef80ebd9",class:"table-wrapper",part:"table-wrapper"},e("table",{key:"3fb2afe1a78cbb39f896d1833a06c4c976e53292",class:"table table-hover",part:h},e("thead",{key:"65e335052e013f6bd2ddd154b0772d813b03e02f",class:"table-head sticky-top",part:"table-head"},e("tr",{key:"0d113369ff9e4a1933b8c0f699e03ab3812d30d4",class:"table-light text-nowrap",part:"table-head-row"},this.payoutsTable.columnData.map((t=>t)))),e("tbody",{key:"64eea2dda7fe52844a39fe4a78840444959c9bf8",class:"table-body"},e(n,{key:"3f3fb69c8105de8374e57e7279ad0d3e4e88f777",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"df74f8ea143edbfb57efee6952c7ddffc690db8e",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"d12c61e243397de8024c8fe13e518ae3328b5d95",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"23f8f411959eb2464a4f0d75830adedf5cc9d15b",class:"sticky-bottom"},e("tr",{key:"63a62a4743ef38050ef9d6f2870fc74b5a011568",class:"table-light align-middle"},e("td",{key:"23a7b62618db1dd52da8c43627f7d512c2f18bc1",part:o,colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"3c401e3d08d930cc19c5a09e1b34c740f2dd833b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{queryParams:["updateOnPropChange"],pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{y as payouts_list_core}
@@ -1 +0,0 @@
1
- import{A as s}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as e}from"./p-0f23ff58.js";class t{async fetchDispute(t,p){const i=`disputes/${t}`;return s({authToken:p,apiOrigin:e.proxyApiOrigin}).get(i)}async updateDisputeResponse(t,p,i){const n=`disputes/${t}/response`;return s({authToken:p,apiOrigin:e.proxyApiOrigin}).patch(n,i)}async submitDisputeResponse(t,p,i){const n=`disputes/${t}/response`;return s({authToken:p,apiOrigin:e.proxyApiOrigin}).post(n,i)}async createDisputeEvidence(t,p,i){const n=`disputes/${t}/evidence`;return s({authToken:p,apiOrigin:e.proxyApiOrigin}).put(n,i)}}export{t as D}
@@ -1 +0,0 @@
1
- import{r as t,h as e,H as i,c as s}from"./p-2783e363.js";import{i as a}from"./p-4cc3c7f9.js";import{i as o,b as n,a as d,c as r,y as c,z as h}from"./p-ef4c49b9.js";import{c as l,F as f}from"./p-5844a0f0.js";import{u as b,l as m,k as u,m as p,n as y,q as v}from"./p-af834eb8.js";import{S as k}from"./p-6078a370.js";import{n as w}from"./p-e3c22aa9.js";import{c as g}from"./p-0f23ff58.js";import{H as j}from"./p-8a94d2c8.js";import{a as _}from"./p-6fbd6abb.js";import{j as x,b as C}from"./p-f4722957.js";import"./p-f20b6ce1.js";import"./p-0ea387a2.js";import"./p-275f2154.js";import"./p-1ff8810b.js";import"./p-abdbcd8e.js";const M=class{constructor(e){t(this,e)}async validate(){const t=await this.accountNumberIframeElement.validate(),e=await this.routingNumberIframeElement.validate();return t&&e}async tokenize(t,e,i){return this.accountNumberIframeElement.tokenize(t,e,i)}render(){return e(i,{key:"d0f0426565fedc6697eb46e6bc8d03d31eee9c37"},e("div",{key:"6e792d5cba9421d7d106805d0e0e070ef5b116f9",class:"container-fluid p-0"},e("div",{key:"89def9b854a7dc9a2e2fbb62d70bc6eaccfa6b0f",class:"row mb-3"},e("iframe-input",{key:"2c0392ed840edb2364922c0d523f509ea84b3cd3",inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:"https://components.justifi.ai/v2/accountNumber"})),e("div",{key:"6dbe7911ab8693a4850a60e2d86f4539382a341c",class:"row"},e("iframe-input",{key:"042153db083d7fa8f4e6d2c5704054fbcf6c1af1",inputId:"routingNumber",ref:t=>this.routingNumberIframeElement=t,label:"Routing Number",iframeOrigin:"https://components.justifi.ai/v2/routingNumber"}))))}},S=class{constructor(e){t(this,e)}async validate(){const t=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),i=await this.expirationYearIframeElement.validate(),s=await this.cvvIframeElement.validate();return t&&e&&i&&s}async tokenize(t,e,i){return this.cardNumberIframeElement.tokenize(t,e,i)}render(){return e(i,{key:"d667f365a95a2251fadffce158033ca8fcbc5723",class:"container-fluid p-0"},e("div",{key:"43d8e15de893154c96b49ea1917046120daa8b2c",class:"mb-3"},e("iframe-input",{key:"c342a50a3194511edfbe6c1f1033bf47b743ddd6",inputId:"cardNumber",ref:t=>this.cardNumberIframeElement=t,label:"Card Number",iframeOrigin:"https://components.justifi.ai/v2/cardNumber"})),e("div",{key:"2fa70e85071ec6fe4525039de6215026795f71f4",class:"row"},e("div",{key:"e7dba59f040258e556664ccf84549edda8a1dd8d",class:"col-4 align-content-end"},e("iframe-input",{key:"0c2c63ee318b0fc61ff704ffe02160aee252d281",inputId:"expirationMonth",ref:t=>this.expirationMonthIframeElement=t,label:"Expiration",iframeOrigin:"https://components.justifi.ai/v2/expirationMonth"})),e("div",{key:"e211c9bc9cb15ea9571af7d965fcb1d6e4c5669d",class:"col-4 align-content-end"},e("iframe-input",{key:"d783cb0d28f1d08826e773efc14c2aa871905a83",inputId:"expirationYear",ref:t=>this.expirationYearIframeElement=t,label:"",iframeOrigin:"https://components.justifi.ai/v2/expirationYear"})),e("div",{key:"83af611f578e7db1984713047708e725c9c1c7b5",class:"col-4 align-content-end"},e("iframe-input",{key:"1f53fce0b7856b8591f6454a549e123fa408be5f",inputId:"CVV",ref:t=>this.cvvIframeElement=t,label:"CVV",iframeOrigin:"https://components.justifi.ai/v2/CVV"}))))}},z=class{constructor(e){t(this,e),this.isFocused=!1,this.errorText=""}async componentDidLoad(){const t=await this.getBaseFontStyles();a("fontStyles",t);const e=await this.getFocusedStyles();a("focused",e);const i=await this.getFocusedAndInvalidStyles();a("focusedAndInvalid",i)}async getBaseFontStyles(){return new Promise((t=>{setTimeout((()=>{const e=getComputedStyle(this.hiddenInput);t({fontFamily:e.fontFamily,fontSize:e.fontSize,fontWeight:e.fontWeight,lineHeight:e.lineHeight,margin:e.margin,padding:e.padding,color:e.color})}),500)}))}async getFocusedStyles(){return new Promise((t=>{this.hiddenInput.focus(),setTimeout((()=>{this.hiddenInput.blur();let e=getComputedStyle(this.hiddenInput);t({boxShadow:e.boxShadow,border:e.border})}),500)}))}async getFocusedAndInvalidStyles(){return new Promise((t=>{this.hiddenInput.focus(),this.errorText="Error",setTimeout((()=>{const e=getComputedStyle(this.hiddenInput),i={boxShadow:e.boxShadow,border:e.border};this.hiddenInput.blur(),t(i)}),500)}))}get part(){return this.isFocused&&this.errorText?o:this.errorText?n:this.isFocused?d:r}render(){return e(i,{key:"61734f69c30d37c98e3896c8407225dbe49fe3a2"},e("input",{key:"eda00a901e028a09ccd793b1fbc4136a048a0aad",ref:t=>this.hiddenInput=t,type:"text",class:this.errorText?"form-control is-invalid":"form-control",onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,part:this.part,tabindex:"-1",style:{height:"0",opacity:"0",pointerEvents:"none",animation:"none"}}))}},O=l({name:b.required("Enter full name"),address_line1:m.required("Enter street address"),address_line2:u.nullable(),address_city:p.required("Enter city"),address_state:y.required("Select state"),address_postal_code:v.required("Enter postal code")}),V=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new f(O)}componentDidLoad(){this.formController.values.subscribe((t=>this.billingInfo=Object.assign({},t))),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}async getValues(){return this.formController.values.getValue()}async fill(t){this.formController.setInitialValues(t)}async validate(){return{isValid:await this.formController.validate()}}render(){const t=this.formController.getInitialValues();return e(i,{key:"b3bb548839b39a87ad330b9048426baff317cae0"},e("form",{key:"32e999825e5094e8e5399d46f67b67186f18d7b2"},e("fieldset",{key:"c8f13e2d392c45804bb51907a21ff80cb1148fd3"},this.legend&&e("legend",{key:"c4117087a3391f8c28815069d832d6133459b250"},this.legend),e("div",{key:"61d9de519f93d42bab36670108a6b923e30cff7f",class:"row gy-3"},e("div",{key:"4753e297cbab92db6f073e9679ea9f3e9dacf432",class:"col-12"},e("form-control-text",{key:"1f366def4cd8449cc242eb3bd71952a1548def08",name:"name",label:"Full Name",defaultValue:t.name,errorText:this.errors.name,inputHandler:this.inputHandler})),e("div",{key:"c7efc6968d6f776be84ac16b56a785965a81501b",class:"col-12"},e("form-control-text",{key:"789ca132aabfe42381ce55ec343494b9ac766e73",name:"address_line1",label:"Street Address",defaultValue:t.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),e("div",{key:"f750e3800a361e78c58a31091b8d07437fe7fdcf",class:"col-12"},e("form-control-text",{key:"66e06c53dec8b254bf5f7b1d4029c17523f2ceb7",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:t.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),e("div",{key:"9868c2a9bcbed8c65ac8ca8d89ea2102fd0dd1c6",class:"col-12"},e("form-control-text",{key:"a637775b91a89fa32c54c97e6a97ec18b2e69024",name:"address_city",label:"City",defaultValue:t.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),e("div",{key:"274656a1a879790c99a684da3aa6070f473e2d0b",class:"col-12"},e("form-control-select",{key:"5fca9ff62f2e2f26fc936474133dbdf24183e86d",name:"address_state",label:"State",options:k,defaultValue:t.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),e("div",{key:"e24b2e9961e1a464a1d99fa4982814e7d43c5a79",class:"col-12"},e("form-control-text",{key:"1992d68c496b1331a0efbbbeb03153f9155a77d3",name:"address_postal_code",label:"ZIP",defaultValue:t.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:w}))))))}},N={bankAccount:"New bank account",card:"New credit or debit card"},P=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)},this.iframeOrigin=g.iframeOrigin,this.authToken=void 0,this.accountId=void 0,this.paymentMethodOption=void 0,this.paymentMethodGroupId=void 0,this.isSelected=void 0,this.saveNewPaymentMethodChecked=!1}handleCheckboxChanged(t){this.saveNewPaymentMethodChecked=t.detail}async fillBillingForm(t){this.billingFormRef.fill(t)}async resolvePaymentMethod(t){var e,i;if(this.paymentMethodFormRef&&this.billingFormRef)try{if(!await this.validate()||!t.isValid)return{validationError:!0};const s=await this.tokenize();if(s.error)return{error:s.error};{const t=s.data;return{token:(null===(e=t.card)||void 0===e?void 0:e.token)||(null===(i=t.bank_account)||void 0===i?void 0:i.token)}}}catch(t){return{error:t}}}async validate(){const t=await this.billingFormRef.validate(),e=await this.paymentMethodFormRef.validate();return t.isValid&&e.isValid}async tokenize(){try{const t=await this.billingFormRef.getValues();let e;e=this.saveNewPaymentMethodChecked?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupId}):Object.assign({},t);const i=this.authToken;return await this.paymentMethodFormRef.tokenize(i,e,this.accountId)}catch(t){return t}}showNewPaymentMethodForm(){var t;return e("div",{class:"mt-4 pb-4 border-bottom"},e("hidden-input",null),e("div",{class:"mb-4"},"card"===(null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id)?e("card-form",{ref:t=>this.paymentMethodFormRef=t}):e("bank-account-form",{ref:t=>this.paymentMethodFormRef=t})),e("div",{part:c},e(j,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),e("justifi-billing-form",{ref:t=>this.billingFormRef=t})),e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupId}))}render(){var t,s;return e(i,{key:"4b6e52ca95845aa1c9163f4d3eafbfc98ca51deb",class:"payment-method"},e("div",{key:"d4aea7115ff71564a4d1e87a468174a29a040406",class:"radio-list-item p-3",part:h,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{key:"0204f84a72bb89e03772894f208895359370714b",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:N[null===(s=this.paymentMethodOption)||void 0===s?void 0:s.id]})),this.isSelected?this.showNewPaymentMethodForm():null)}};class T{constructor(t){this.id=t.id,this.brand=t.brand,this.acct_last_four=t.acct_last_four,this.type=x(t.type)}}var F;!function(t){t.american_express="American Express",t.diners_club="Diners Club",t.discover="Discover",t.jcb="JCB",t.mastercard="Mastercard",t.china_unionpay="UnionPay",t.visa="Visa",t.unknown="Unknown"}(F||(F={}));const E=class{constructor(e){t(this,e),this.toggleCreatingNewPaymentMethod=s(this,"toggleCreatingNewPaymentMethod",7),this.showCard=void 0,this.showAch=void 0,this.showBnpl=void 0,this.showSavedPaymentMethods=void 0,this.paymentMethodGroupId=void 0,this.bnpl=void 0,this.insuranceToggled=void 0,this.authToken=void 0,this.accountId=void 0,this.iframeOrigin=g.iframeOrigin,this.savedPaymentMethods=[],this.paymentAmount=void 0,this.selectedPaymentMethodId=void 0,this.paymentMethodOptions=[]}async fillBillingForm(t){const e=this.selectedPaymentMethodOptionRef;e.fillBillingForm&&e.fillBillingForm(t)}connectedCallback(){this.paymentMethodsChanged()}paymentMethodsChanged(){var t,e;this.paymentMethodOptions=this.savedPaymentMethods.map((t=>new T(t))).filter((t=>(this.showCard||t.type!==_.card)&&(this.showAch||t.type!==_.bankAccount))),this.showBnpl&&"sezzle"===(null===(t=this.bnpl)||void 0===t?void 0:t.provider)&&!this.insuranceToggled&&this.paymentMethodOptions.push(new T({id:_.sezzle})),this.showCard&&this.paymentMethodOptions.push(new T({id:_.card})),this.showAch&&this.paymentMethodOptions.push(new T({id:_.bankAccount})),this.selectedPaymentMethodId||(this.selectedPaymentMethodId=null===(e=this.paymentMethodOptions[0])||void 0===e?void 0:e.id)}paymentMethodOptionSelected(t){this.selectedPaymentMethodId=t.detail.id}async resolvePaymentMethod(t){var e;return await(null===(e=this.selectedPaymentMethodOptionRef)||void 0===e?void 0:e.resolvePaymentMethod(t))}render(){var t;return e(i,{key:"3ab3caf94332163f031ecebe101d45c35e1416bd"},null===(t=this.paymentMethodOptions)||void 0===t?void 0:t.map((t=>{const i=this.selectedPaymentMethodId===t.id,s=t.id===_.sezzle;return t.id===_.card||t.id===_.bankAccount?e("justifi-new-payment-method",{paymentMethodOption:t,authToken:this.authToken,"account-id":this.accountId,"is-selected":i,paymentMethodGroupId:this.paymentMethodGroupId,ref:t=>{i&&(this.selectedPaymentMethodOptionRef=t)}}):s?e("justifi-sezzle-payment-method",{paymentMethodOption:t,"is-selected":i,paymentAmount:this.paymentAmount,bnpl:this.bnpl,ref:t=>{i&&(this.selectedPaymentMethodOptionRef=t)}}):this.showSavedPaymentMethods?e("justifi-saved-payment-method",{paymentMethodOption:t,"is-selected":i,ref:t=>{i&&(this.selectedPaymentMethodOptionRef=t)}}):void 0})))}static get watchers(){return{savedPaymentMethods:["paymentMethodsChanged"]}}},H=class{constructor(e){t(this,e),this.checkboxChanged=s(this,"checkboxChanged",7),this.isChecked=!1}handleCheckboxChange(t,e){this.isChecked=e,this.checkboxChanged.emit(this.isChecked)}render(){return e("div",{key:"4b0ac5e02aa02214bf8ddd574db56eb9508b0607",class:"mt-4 form-check"},e("form-control-checkbox",{key:"bca05c6b8fa00dd7bbc34ee36ef6086ae1764b82",label:"Save new payment method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange.bind(this)}))}},I=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)},this.iframeOrigin=g.iframeOrigin,this.paymentMethodOption=void 0,this.isSelected=void 0}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,s,a;return e(i,{key:"8e5a11a58cf828356df001461b6bb3163521f1ed",class:"payment-method"},e("div",{key:"c20a8a3dcea1f885b94c4829b85be8d6f401ad42",class:"radio-list-item p-3",part:h,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{key:"72b970f6808e9f938869195fa29217f44b44250e",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${F[null===(s=this.paymentMethodOption)||void 0===s?void 0:s.brand]||""} *${null===(a=this.paymentMethodOption)||void 0===a?void 0:a.acct_last_four}`})))}},A=e("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),B=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=this.bnpl,i=+this.paymentAmount,s=new(0,window.Checkout)({mode:"popup",publicKey:e.provider_client_id,apiMode:e.provider_mode,apiVersion:e.provider_api_version});s.sezzleButtonElement=this.sezzleButtonRef,s.init({onClick:function(t){t.preventDefault(),s.startCheckout({checkout_url:e.provider_checkout_url})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=s,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(i)},this.iframeOrigin=g.iframeOrigin,this.bnpl=void 0,this.clientId=void 0,this.accountId=void 0,this.paymentMethodOption=void 0,this.isSelected=void 0,this.paymentAmount=void 0,this.installmentPlan=void 0,this.sezzleCheckout=void 0,this.sezzlePromise=void 0}componentDidRender(){this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()}}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var t,s,a;return e(i,{key:"bbe1a2f4a2418d8c9e946e15567f7df89ac06084",class:"payment-method"},e("script",{key:"a254fbb032a531a889d81297053be07001262706",src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),e("div",{key:"691439a9541b69f59fac8ed744d633a7cba69fbd",class:"radio-list-item p-3",part:h,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{key:"4f03055cf993502ff1999abfbd14aa5e6977b811",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:e("div",null,e("div",null,"Buy now, pay later with ",A),this.installmentPlan&&e("small",null,e("span",null,null===(s=this.installmentPlan)||void 0===s?void 0:s.installments.length)," ",e("span",null,this.installmentPlan.schedule," payments of")," ",e("span",{class:"fw-bold"},C(null===(a=this.installmentPlan)||void 0===a?void 0:a.installments[0].amountInCents))))})))}};export{M as bank_account_form,S as card_form,z as hidden_input,V as justifi_billing_form,P as justifi_new_payment_method,E as justifi_payment_method_options,H as justifi_save_new_payment_method,I as justifi_saved_payment_method,B as justifi_sezzle_payment_method}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{k as e,m as a}from"./p-ef4c49b9.js";const s=t=>{switch(t){case"connected":return"<span class='badge bg-success' title='This terminal is connected.'>Connected</span>";case"disconnected":return"<span class='badge bg-danger' title='This terminal is disconnected.'>Disconnected</span>";case"unknown":return"<span class='badge bg-secondary' title='The status of this terminal is unknown'>Unknown</span>"}},n="nickname,provider_id,status",c={nickname:()=>t("th",{part:e,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),provider_id:()=>t("th",{part:e,scope:"col",title:"The provider ID of the terminal"},"Provider ID"),sub_account_name:()=>t("th",{part:e,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:e,scope:"col",title:"The current status of each terminal"},"Status")},i={nickname:(e,s)=>t("td",{part:a(s)},e),provider_id:(e,s)=>t("td",{part:a(s)},e),sub_account_name:(e,s)=>t("td",{part:a(s)},e),status:(e,n)=>t("td",{part:a(n),innerHTML:s(e)})};export{i as a,n as d,c as t}
@@ -1 +0,0 @@
1
- import{h as r}from"./p-2783e363.js";import{d as t}from"./p-ef4c49b9.js";const e=e=>{const{errorText:o,name:s}=e;return o?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},o):null};export{e as F}
@@ -1 +0,0 @@
1
- import{C as r}from"./p-14c91ffd.js";import{g as e,a as o}from"./p-8115b2f4.js";const n=({authToken:n,businessId:t,service:s})=>async({onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await s.fetchBusiness(t,n);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}},t=({authToken:n,businessId:t,service:s})=>async({payload:i,onSuccess:c,onError:a,final:u=(()=>{})})=>{var d;try{const u=await s.patchBusiness(n,t,i);if(u.error){return a({error:e(u.error),code:o(null===(d=u.error)||void 0===d?void 0:d.code),severity:r.ERROR})}c(u)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},s=({authToken:n,businessId:t,product:s,service:i})=>async({onSuccess:c,onError:a})=>{var u;try{const d=await i.postProvisioning(n,t,s);if(d.error){return a({error:e(d.error),code:o(null===(u=d.error)||void 0===u?void 0:u.code),severity:r.ERROR})}c(d)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:s})=>async({onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await s.fetchIdentity(t,n);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}},c=({authToken:n,identityId:t,service:s})=>async({payload:i,onSuccess:c,onError:a,final:u=(()=>{})})=>{var d;try{const u=await s.patchIdentity(n,t,i);if(u.error){return a({error:e(u.error),code:o(null===(d=u.error)||void 0===d?void 0:d.code),severity:r.ERROR})}c(u)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},a=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await t.postIdentity(n,s);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}};export{s as a,t as b,i as c,c as d,a as e,n as m}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{q as t,c as f}from"./p-9f773228.js";import{S as s}from"./p-bfe9748b.js";import{d as r,c}from"./p-f4722957.js";import"./p-f20b6ce1.js";const d=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=r(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}render(){return a(s,{key:"dbeddac44642b50552902b1d072384d0e308bbcd"},a("table-filters-menu",{key:"0a4fc98cf7cf7bb5748c9443fe0ad22676b2ec0a",params:Object.assign({},t),clearParams:f},a("div",{key:"36e7cfd3b59458bfc4f34b25e14d39984d6f9b19",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"3670d1890feecaf9c0ad41278e3862606fa6576a",class:"p-2"},a("form-control-date",{key:"8f0e4ef2e46b542f17504ef888839726067d3319",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:c(t.created_after,{showInputDate:!0})})),a("div",{key:"8f661de9cd9115e7ce10e92684cf98d66f9e3e5f",class:"p-2"},a("form-control-date",{key:"60d03f6687f308c4cb4a39176bec248b204803e2",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:c(t.created_before,{showInputDate:!0})})))))}};export{d as justifi_payouts_list_filters}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as e,H as i}from"./p-2783e363.js";import{a,C as n}from"./p-14c91ffd.js";import{m as o,b as r}from"./p-5968ff8a.js";import{B as h}from"./p-edb57087.js";import{c,F as d,e as u}from"./p-5844a0f0.js";import{z as f,A as l,u as b,B as p,C as m,D as v,E as y,F as g,G as k,H as _,I as w,J as j,K as T,L as C,M as O}from"./p-af834eb8.js";import{A as S}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as x}from"./p-0f23ff58.js";import{n as I}from"./p-e3c22aa9.js";import{h as A}from"./p-ef4c49b9.js";import{c as L}from"./p-0ea387a2.js";import{a as F,B}from"./p-73f9be7c.js";import{B as E}from"./p-275f2154.js";import{S as D}from"./p-0cc6c539.js";import{B as H}from"./p-32a5bf4e.js";import"./p-8115b2f4.js";import"./p-6078a370.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";const P=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-additional-questions-form-step-core",{key:"bef3e4d67c4ccbb25dae52291ba9a399e854fb53",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};class W{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}}const q=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.bankAccount=Object.assign({},new W(s.data.bank_accounts.length>0?s.data.bank_accounts[0]:{})),this.formController.setInitialValues(Object.assign({},this.bankAccount))}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),e=Object.assign(Object.assign({},t),{business_id:this.businessId}),i=await this.api.post(this.bankAccountEndpoint,e);this.handleResponse(i,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.bankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get bankAccountEndpoint(){return"entities/bank_accounts"}get formDisabled(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:F.bankAccount})}async validateAndSubmit({onSuccess:s}){this.formDisabled?(this.stepCompleteEvent.emit({response:null,formStep:F.bankAccount,metadata:"no data submitted"}),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.formController=new d((s=>{const t=c({bank_name:f.required("Enter bank name"),nickname:l.required("Enter nickname"),account_owner_name:b.required("Enter account owner name"),account_type:p.required("Select account type"),account_number:m.required("Enter account number"),routing_number:v.required("Enter routing number")}),e=c({bank_name:f.nullable(),nickname:l.nullable(),account_owner_name:b.nullable(),account_type:p.nullable(),account_number:m.nullable(),routing_number:v.nullable()});return s?e:t})(this.allowOptionalFields)),this.api=S({authToken:this.authToken,apiOrigin:x.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((s=>this.bankAccount=Object.assign({},s))),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){const s=this.formController.getInitialValues();return e("form",{key:"d326af8d567422ee342571d35119497cd5983a7f"},e("fieldset",{key:"4ada14e070e9f9b1f12aa3288af50e78c8d7e2f3"},e("div",{key:"e9e104ca5ddd22fbddb2154d026ec0cb6610426a",class:"d-flex align-items-center gap-2"},e("legend",{key:"7800c3648bebce9ca000162e3c85f0cc558f045e",class:"mb-0",part:A},"Bank Account Info"),e("form-control-tooltip",{key:"3dbc31dfc1f7f60b68f10f2666e58ae208bb36cb",helpText:"The Direct Deposit Account is the business bank account where your 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."})),e("hr",{key:"489cf91c3af1050ee1f0babe8fa6ba7fa9d1912d",class:"mt-2"}),e("div",{key:"cace0eee0e8b9849294b11bad15452b77dcd9ee9",class:"row gy-3"},e("div",{key:"0697524d52d53ccfab7201e1f06c0f8f477c8da7",class:"col-12"},e("form-control-text",{key:"b391b6e7e3f9c1c92f5bb651da2291ca75afc7f3",name:"bank_name",label:"Bank Name",defaultValue:s.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"84afc5c90399809d228561e348f4a6f5fbeeaa48",class:"col-12"},e("form-control-text",{key:"add80854eae161c51dfc3006e8f03ef01113291c",name:"nickname",label:"Nickname",defaultValue:s.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"f5d31db2be25a09b6f57b78fcac9b6031077d235",class:"col-12"},e("form-control-text",{key:"5a916bfbad467bd2a55f0159716c29cb78d4d9d0",name:"account_owner_name",label:"Account Owner Name",defaultValue:s.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"ebce663decaf9bd6b46794b820197c7ba8a450cc",class:"col-12"},e("form-control-select",{key:"dd42e72741934d015a1d405b09e7c14b8f865606",name:"account_type",label:"Account Type",options:L,defaultValue:s.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"2fa3139ed30465e1e0f9a5075eb13e9c3874aa0a",class:"col-12"},e("form-control-text",{key:"f309563391770bd1074b7c29b47c39c5c7ecec5f",name:"account_number",label:"Account Number",defaultValue:s.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:I,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),e("div",{key:"80424fa942fe444ba9137e724ecd50fb4839c59f",class:"col-12"},e("form-control-text",{key:"c5e08a9cdbb11c92e3271d6507f6bd3225abdf2f",name:"routing_number",label:"Routing Number",defaultValue:s.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:I,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))))}},V=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-core-info-form-step-core",{key:"fbaca40250e3cabd3a1ec91f1a10aab53174a23e",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},z=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new E(s.data)),this.existingDocuments=s.data.documents,this.paymentVolume=s.data.additional_questions.business_payment_volume}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new d(((s,t,e)=>{const i=c({voided_check:y(t,e),government_id:g.nullable(),ss4:k.nullable(),other:_.nullable(),balance_sheet:w(s,t,e),bank_statement:j(s,t,e),profit_and_loss_statement:T(s,t,e)}),a=c({voided_check:y(t,e),government_id:g.nullable(),ss4:k.nullable(),other:_.nullable(),balance_sheet:w(s,t,e),bank_statement:j(s,t,e),profit_and_loss_statement:T(s,t,e)});return e?a:i})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.createDocumentRecord=async s=>{this.formLoading.emit(!0);const t=s.record_data;try{const e=await this.api.post(this.documentEndpoint,t);return this.handleDocRecordResponse(s,e)}catch(s){return this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s}),!1}},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:t.error.message,severity:n.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>s.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}),!1):(this.stepCompleteEvent.emit({response:s,formStep:F.documentUpload}),!0),this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new C({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.sendData=async s=>{try{const t=Object.values(this.documentData).flat();if(!t.length)return this.stepCompleteEvent.emit({response:null,formStep:F.documentUpload,metadata:"no data submitted"}),s();const e=t.map((s=>this.createDocumentRecord(s)));if(!await Promise.all(e))return;const i=t.map((s=>this.uploadDocument(s)));if(!await Promise.all(i))return;await s()}finally{this.formLoading.emit(!1)}},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new O,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=S({authToken:this.authToken,apiOrigin:x.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?e(D,{height:"50px"}):e("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?e(D,{height:"350px"}):e("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return e("form",{key:"0d59a81a25ce1b983e1cc1e076072fc60f277829"},e("fieldset",{key:"806183bf7a2b7bd49f11be8f8e66685360b392d8"},e("div",{key:"22e1914c580e90acbf0cc295ed878c2f4d3cb12f",class:"d-flex align-items-center gap-2"},e("legend",{key:"88369a06ab43a76c477a6af93672364fd101a7d2",class:"mb-0",part:A},"Document Uploads"),e("form-control-tooltip",{key:"ccbff3cea2f17156a358a82de3e5e8afa87e2ab5",helpText:"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),e("hr",{key:"e99c7eba9c7605244bee06ae4c0fa4954cafb99a",class:"mt-2"}),this.documentsOnFile,e("div",{key:"ddbeda2a9740d2a20becde70f5f8113e4a327dc7",class:"d-flex flex-column"},this.formInputs)))}},M=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e(i,{key:"2f5256be2313b3916c1f0d7a69d2b27b305cf66c"},e("justifi-business-owners-form-step-core",{key:"2c8d3c4cb731b3cf58cf1cc71df2a52c72f660cc",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},N=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-representative-form-step-core",{key:"24461e0acb80a0161fb796c3ee35f511601f707e",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},R=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.formCompleted=t(this,"formCompleted",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.termsPayload,e=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.acceptedTerms=t,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.acceptedTerms=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=S({authToken:this.authToken,apiOrigin:x.proxyApiOrigin}),this.formController=new d((s=>{const t=c({accepted:u().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=c({accepted:u().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:F.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:F.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){return e("form",{key:"acbe79a11f280351401eed6722db5f033cf3f889"},e("fieldset",{key:"dceb358d0578dca96ab26433dc056296854359cd"},e("legend",{key:"81c73a6eab1654a1da56031bdd83cdc2a13dfb2d",part:A},"Terms and Conditions"),e("hr",{key:"24c0e396766b7c5c925d50d05154913eeee1fca0"}),e("justifi-business-terms-conditions-text",{key:"dc0634fa35ae5f74105b0c7711d9e53254f5f555"}),e("br",{key:"cd3abfa1415477fad5014a6a28c6a99b9205d2c6"}),e("div",{key:"21d395c38900bf670df836cbf5aff7a9336081c1",class:"row-gy-3"},e("div",{key:"1930a06c942c99121b00b569215b388eb0d3e953",class:"col-12"},e("form-control-checkbox",{key:"ebf7dc7ec3fbabdcebac51e13df0e15aa48dfe25",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},U=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-legal-address-form-step-core",{key:"66973db19fe252e82b8e44f875aef6e6de4f519d",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Y=class{constructor(t){s(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return e("div",{key:"e1ab54d1e838fcf447bc27cb7a24360c683d6ad8",class:"d-flex gap-2"},e(H,{key:"203ce170dcd2c39edbd238cdacbd5a778d6e3a39",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),e(H,{key:"820000f2ffc9a3d037b12ca11b724169de0747b8",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,B.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),e(H,{key:"5da1da1e44963c1138b4ecf9619b43f7ff0caa06",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,B.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},$=class{constructor(t){s(this,t),this.componentStepMapping={0:()=>e("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>e("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>e("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>e("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>e("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>e("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),6:()=>e("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>e("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[7]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return e("div",{key:"95db2f73894dc4adff2c17298f5f0791c8db463b",class:"col-12 mb-4"},this.currentStepComponent)}};export{P as justifi_additional_questions_form_step,q as justifi_business_bank_account_form_step,V as justifi_business_core_info_form_step,z as justifi_business_document_upload_form_step,M as justifi_business_owners_form_step,N as justifi_business_representative_form_step,R as justifi_business_terms_conditions_form_step,U as justifi_legal_address_form_step,Y as justifi_payment_provisioning_form_buttons,$ as justifi_payment_provisioning_form_steps}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{l as t}from"./p-c6be72b0.js";import{q as d,c as l}from"./p-fc3daedd.js";import{S as c}from"./p-bfe9748b.js";import{d as s,c as f}from"./p-f4722957.js";import"./p-f20b6ce1.js";const i=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{d[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.exports.debounce(this.setParamsOnChange,300)}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){return a(c,{key:"9cd31c52650516e81343bf13c3e18ed96258bc57"},a("table-filters-menu",{key:"eb1abd1876bd3bf52e04108e680c2b006338514c",params:Object.assign({},d),clearParams:l},a("div",{key:"2787fa1c460d45a5d66efe5a2f3ef25333ec9201",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"f7f599337b113e9aad1c72fdb4dd88c3dec92a63",class:"p-2"},a("form-control-text",{key:"ee692c59649fcbe4ec0e7e5bef891d5145ac4d35",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:d.payment_id})),a("div",{key:"1dce20fc5bb6a69e06e7960349e6f5623d5eef66",class:"p-2"},a("form-control-text",{key:"2a84495e90b49bfa51912251d6c5804646248f7b",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:d.terminal_id})),a("div",{key:"bbd95d93ddb713a4ae90876b735e4f88ce6abfef",class:"p-2"},a("form-control-select",{key:"ce1b6ac3d27149b013c937e3bdb43257a6f16c86",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:d.payment_status||""})),a("div",{key:"ae3b27ef30ded613a255c688162a3ff561a5f5d3",class:"p-2"},a("form-control-date",{key:"eaefc349011d12e5f950ad12fea24507dee9516f",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:f(d.created_after,{showInputDateTime:!0})||"",showTime:!0})),a("div",{key:"f52daff95da491a911be96d8c0f3a6dc395a95c6",class:"p-2"},a("form-control-date",{key:"cb8d8b5a424c3a1ca36c52608d89948d88c54cb5",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:f(d.created_before,{showInputDateTime:!0})||"",showTime:!0})))))}};export{i as justifi_payments_list_filters}