@justifi/webcomponents 6.7.2 → 6.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (732) hide show
  1. package/dist/cjs/{Api-QUTWjGTy.js → Api-CVbEWBG6.js} +1 -1
  2. package/dist/cjs/{Business-DWHy_-z9.js → Business-uoeKyW_a.js} +5 -0
  3. package/dist/cjs/{GooglePay-BwiJ_80p.js → GooglePay-CbKCUEfb.js} +1 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  5. package/dist/cjs/{badge-Cc87HAsf.js → badge-DkOPisAV.js} +2 -2
  6. package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +29 -26
  7. package/dist/cjs/bank-account-form.cjs.entry.js +7 -7
  8. package/dist/cjs/{business-additional-questions-schema-Y1mXnwUT.js → business-additional-questions-schema-BtOuMq_U.js} +5 -3
  9. package/dist/cjs/business-details-core.cjs.entry.js +7 -7
  10. package/dist/cjs/{business-form-options-e9UFw4P-.js → business-form-options-D1r-wJpo.js} +1 -1
  11. package/dist/cjs/{business-identity-schema-D_OO0Suf.js → business-identity-schema-CMvq6f8m.js} +6 -2
  12. package/dist/cjs/{business.service-q93NsTG_.js → business.service-DR4Ce5XV.js} +3 -3
  13. package/dist/cjs/{button-fUPGXjU_.js → button-C2p1BMP-.js} +2 -2
  14. package/dist/cjs/card-form.cjs.entry.js +7 -7
  15. package/dist/cjs/{check-pkg-version-BG-Rfkh5.js → check-pkg-version-Bs_9oZb4.js} +4 -4
  16. package/dist/cjs/{checkout.service-CwelwhrT.js → checkout.service-CQqd4X4y.js} +3 -3
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +14 -14
  18. package/dist/cjs/{payments-list-params-state-DfZySwaC.js → checkouts-list-params-state-vGJZ6Oe2.js} +1 -1
  19. package/dist/cjs/{checkouts-table-BBtqxG2F.js → checkouts-table-DftTbgXr.js} +3 -3
  20. package/dist/cjs/{config-state-CYoBVAca.js → config-state-BIgGhhe9.js} +1 -1
  21. package/dist/cjs/{country-config-MCOhn8o3.js → country-config-DGi9t3Ma.js} +1 -1
  22. package/dist/cjs/custom-popper_2.cjs.entry.js +6 -6
  23. package/dist/cjs/{dispute.service-q5ha39uN.js → dispute.service-aok1_zRv.js} +3 -3
  24. package/dist/cjs/form-alert_5.cjs.entry.js +11 -11
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +11 -8
  26. package/dist/cjs/form-control-date.cjs.entry.js +7 -7
  27. package/dist/cjs/{form-control-error-text-Dg_65HGK.js → form-control-error-text-BC5aRpfl.js} +2 -2
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +17 -10
  29. package/dist/cjs/{form-control-help-text-tB5u1-5M.js → form-control-help-text-B2yMic8i.js} +2 -2
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +12 -8
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +8 -8
  33. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +13 -11
  34. package/dist/cjs/{owner-form-core_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +71 -18
  35. package/dist/cjs/form-control-radio.cjs.entry.js +9 -6
  36. package/dist/cjs/form-control-select_2.cjs.entry.js +11 -11
  37. package/dist/cjs/{get-business-D9ZHyPem.js → get-business-CtsxSYA6.js} +1 -1
  38. package/dist/cjs/{get-payment-details-DidIAK2i.js → get-payment-details-tCICJHBb.js} +3 -3
  39. package/dist/cjs/{get-subaccounts-BE_wcfM7.js → get-subaccounts-BcsCQAVN.js} +4 -4
  40. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
  41. package/dist/cjs/{header-1-Bqejh9no.js → header-1-B-nd_U7n.js} +2 -2
  42. package/dist/cjs/{header-3-DQ649Me2.js → header-3--BEJGMFA.js} +2 -2
  43. package/dist/cjs/hidden-input_2.cjs.entry.js +10 -10
  44. package/dist/cjs/{index-mmd0OhmD.js → index-W-zoNiyM.js} +90 -21
  45. package/dist/cjs/index-p7cvUYAE.js +4450 -0
  46. package/dist/cjs/{input-handlers-D6QMwPTB.js → input-handlers-DaRKFvGI.js} +1 -1
  47. package/dist/cjs/{insurance-state-DsGnIHMM.js → insurance-state-CiVJ5e26.js} +3 -3
  48. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +23 -23
  49. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +78 -57
  50. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +34 -34
  52. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +10 -10
  53. package/dist/cjs/justifi-business-details.cjs.entry.js +13 -13
  54. package/dist/cjs/justifi-business-form.cjs.entry.js +22 -22
  55. package/dist/cjs/justifi-checkout.cjs.entry.js +15 -15
  56. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -10
  57. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +16 -16
  58. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-details.cjs.entry.js +4 -4
  60. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
  61. package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -11
  62. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +25 -25
  63. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11 -11
  64. package/dist/cjs/justifi-order-terminals.cjs.entry.js +17 -17
  65. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
  66. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +23 -11
  67. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -11
  68. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +16 -16
  69. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
  70. package/dist/cjs/justifi-payments-list.cjs.entry.js +16 -16
  71. package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -12
  72. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -16
  73. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  74. package/dist/cjs/justifi-payouts-list.cjs.entry.js +17 -17
  75. package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -16
  76. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -4
  77. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +14 -14
  78. package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
  79. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
  80. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +14 -14
  81. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -9
  82. package/dist/cjs/justifi-terminals-list.cjs.entry.js +16 -16
  83. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
  84. package/dist/cjs/loader.cjs.js +2 -2
  85. package/dist/cjs/{package-Df5lTFe6.js → package-DcGEg97O.js} +1 -1
  86. package/dist/cjs/pagination-menu.cjs.entry.js +2 -2
  87. package/dist/cjs/{parts-BVbaniVM.js → parts-BsBVknuf.js} +1 -0
  88. package/dist/cjs/payment-details-core.cjs.entry.js +20 -20
  89. package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
  90. package/dist/cjs/payment-provisioning-loading-B3hvtd9o.js +12 -0
  91. package/dist/cjs/{payment.service-CyHFdJ7n.js → payment.service-B4ACB8Q3.js} +3 -3
  92. package/dist/cjs/payments-list-core.cjs.entry.js +15 -15
  93. package/dist/cjs/{payouts-list-params-state-DfZySwaC.js → payments-list-params-state-vGJZ6Oe2.js} +1 -1
  94. package/dist/cjs/{payments-status-BP4u31jU.js → payments-status-BAR25wA6.js} +2 -2
  95. package/dist/cjs/{payments-table-CWXVhECV.js → payments-table-BLJ54fGU.js} +3 -3
  96. package/dist/cjs/payout-details-core.cjs.entry.js +13 -13
  97. package/dist/cjs/{payout.service-Half-hdB.js → payout.service-qVbNnemO.js} +3 -3
  98. package/dist/cjs/payouts-list-core.cjs.entry.js +15 -15
  99. package/dist/cjs/{checkouts-list-params-state-DfZySwaC.js → payouts-list-params-state-vGJZ6Oe2.js} +1 -1
  100. package/dist/cjs/{payouts-status-CM5Zy-0J.js → payouts-status-uZAaS1RP.js} +2 -2
  101. package/dist/cjs/{payouts-table-ZLTcfkUm.js → payouts-table-C4jZJ8rq.js} +3 -3
  102. package/dist/cjs/{schema-validations-Bf2mk2xU.js → schema-validations-DYYDrVol.js} +19 -3
  103. package/dist/cjs/{skeleton-B8dzxFFr.js → skeleton-BGGMhPJj.js} +2 -2
  104. package/dist/cjs/{spinner-jHyLNCGO.js → spinner-CV2CNXOQ.js} +2 -2
  105. package/dist/cjs/{styled-host-D5g7INLE.js → styled-host-DAi5SuFa.js} +1 -1
  106. package/dist/cjs/{table-CrtpRwGN.js → table-eTN_pRIP.js} +3 -3
  107. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
  108. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +14 -14
  109. package/dist/cjs/{terminal-orders-list-params-state-DfZySwaC.js → terminal-orders-list-params-state-vGJZ6Oe2.js} +1 -1
  110. package/dist/cjs/{terminal-orders-table-DT53anT3.js → terminal-orders-table-C2jG4WQa.js} +6 -6
  111. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +4 -4
  112. package/dist/cjs/{terminal.service-CFt55QNO.js → terminal.service-D1ohedi-.js} +3 -3
  113. package/dist/cjs/terminals-list-core.cjs.entry.js +14 -14
  114. package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +22 -0
  115. package/dist/cjs/{terminals-table-DahpSz98.js → terminals-table-DZz8k4tP.js} +3 -3
  116. package/dist/cjs/{utils-CMiA4X7s.js → utils-T6hRmGuY.js} +2 -2
  117. package/dist/cjs/webcomponents.cjs.js +30 -3
  118. package/dist/collection/api/Business.js +2 -0
  119. package/dist/collection/api/Identity.js +3 -0
  120. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  121. package/dist/collection/components/business-details/business-details-core.js +2 -2
  122. package/dist/collection/components/business-details/business-details.js +2 -2
  123. package/dist/collection/components/business-details/core-info-details/core-info-details.js +1 -1
  124. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
  125. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  126. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  127. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  128. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -4
  129. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  130. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -4
  131. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +3 -3
  132. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +5 -5
  133. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +6 -6
  134. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -7
  135. package/dist/collection/components/business-forms/owner-form/owner-form.js +4 -4
  136. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -4
  137. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +4 -4
  138. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +5 -5
  139. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +5 -5
  140. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +2 -2
  141. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -3
  142. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -3
  143. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +35 -7
  144. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +6 -6
  145. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  146. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +4 -4
  147. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +19 -11
  148. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
  149. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -8
  150. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +7 -7
  151. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
  152. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -3
  153. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -3
  154. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +2 -0
  155. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +5 -1
  156. package/dist/collection/components/business-forms/schemas/schema-validations.js +15 -0
  157. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  158. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  159. package/dist/collection/components/checkout/checkout.js +23 -4
  160. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  161. package/dist/collection/components/checkout/saved-payment-method.js +3 -3
  162. package/dist/collection/components/checkouts-list/checkouts-list-core.js +4 -4
  163. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  164. package/dist/collection/components/checkouts-list/checkouts-list.js +3 -3
  165. package/dist/collection/components/dispute-management/dispute-management-core.js +4 -4
  166. package/dist/collection/components/dispute-management/dispute-management.js +3 -3
  167. package/dist/collection/components/dispute-management/dispute-notification.js +5 -5
  168. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +2 -2
  169. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +2 -2
  170. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +2 -2
  171. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  172. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -4
  173. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +2 -2
  174. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +2 -2
  175. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +2 -2
  176. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +2 -2
  177. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +2 -2
  178. package/dist/collection/components/filters/table-filters-menu.js +3 -3
  179. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  180. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -2
  181. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +7 -7
  182. package/dist/collection/components/modular-checkout/modular-checkout.js +3 -3
  183. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
  184. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  185. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  186. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  187. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  188. package/dist/collection/components/modular-checkout/sub-components/google-pay.js +2 -2
  189. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +6 -6
  190. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  191. package/dist/collection/components/order-terminals/order-terminals.js +4 -4
  192. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +5 -5
  193. package/dist/collection/components/payment-details/payment-details-core.js +9 -9
  194. package/dist/collection/components/payment-details/payment-details.js +2 -2
  195. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +3 -3
  196. package/dist/collection/components/payments-list/payments-list-core.js +3 -3
  197. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  198. package/dist/collection/components/payments-list/payments-list.js +3 -3
  199. package/dist/collection/components/payout-details/payout-details-core.js +5 -5
  200. package/dist/collection/components/payout-details/payout-details.js +2 -2
  201. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +3 -3
  202. package/dist/collection/components/payouts-list/payouts-list-core.js +5 -5
  203. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  204. package/dist/collection/components/payouts-list/payouts-list.js +3 -3
  205. package/dist/collection/components/refund-payment/refund-payment.js +3 -3
  206. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -3
  207. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  208. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +3 -3
  209. package/dist/collection/components/terminals-list/terminals-list-core.js +4 -4
  210. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  211. package/dist/collection/components/terminals-list/terminals-list.js +3 -3
  212. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
  213. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  214. package/dist/collection/ui-components/custom-popper/custom-popper.js +3 -3
  215. package/dist/collection/ui-components/details/details.js +2 -2
  216. package/dist/collection/ui-components/form/form-control-checkbox.js +16 -10
  217. package/dist/collection/ui-components/form/form-control-date.js +5 -5
  218. package/dist/collection/ui-components/form/form-control-file-v2.js +16 -8
  219. package/dist/collection/ui-components/form/form-control-file.js +16 -10
  220. package/dist/collection/ui-components/form/form-control-monetary.js +5 -5
  221. package/dist/collection/ui-components/form/form-control-number-masked.js +14 -10
  222. package/dist/collection/ui-components/form/form-control-number.js +10 -8
  223. package/dist/collection/ui-components/form/form-control-radio.js +18 -12
  224. package/dist/collection/ui-components/form/form-control-select.js +6 -6
  225. package/dist/collection/ui-components/form/form-control-text.js +5 -5
  226. package/dist/collection/ui-components/form/form-control-textarea.js +19 -11
  227. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -2
  228. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +2 -2
  229. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
  230. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  231. package/dist/collection/ui-components/form/iframe-input.js +6 -6
  232. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  233. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
  234. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  235. package/dist/docs.json +577 -277
  236. package/dist/esm/{Api-Dln8a6No.js → Api-ohkSjyhl.js} +1 -1
  237. package/dist/esm/{Business-B5rtFhtR.js → Business-CHJTjG_5.js} +5 -0
  238. package/dist/esm/{GooglePay-NNHE-OLJ.js → GooglePay-5EiPffHy.js} +1 -1
  239. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  240. package/dist/esm/{badge-DtrH25ss.js → badge-BW9VFFkp.js} +2 -2
  241. package/dist/esm/bank-account-document-form-inputs_8.entry.js +29 -26
  242. package/dist/esm/bank-account-form.entry.js +7 -7
  243. package/dist/esm/{business-additional-questions-schema-woG5-pgK.js → business-additional-questions-schema-DQb10ehS.js} +5 -3
  244. package/dist/esm/business-details-core.entry.js +7 -7
  245. package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-Bm89rMmk.js} +1 -1
  246. package/dist/esm/{business-identity-schema-B7VTDF4j.js → business-identity-schema-CaMnpPqx.js} +7 -3
  247. package/dist/esm/{business.service-BrUSam2T.js → business.service-C7smiL6_.js} +3 -3
  248. package/dist/esm/{button-Bpf3VX8Q.js → button-DMeChykB.js} +2 -2
  249. package/dist/esm/card-form.entry.js +7 -7
  250. package/dist/esm/{check-pkg-version-c_8fDHCB.js → check-pkg-version-DIZ2yD72.js} +4 -4
  251. package/dist/esm/{checkout.service-Bxt1qPaY.js → checkout.service-CYq6KXZv.js} +3 -3
  252. package/dist/esm/checkouts-list-core.entry.js +14 -14
  253. package/dist/esm/{checkouts-list-params-state-gllzDQAb.js → checkouts-list-params-state-CiGfmyWW.js} +1 -1
  254. package/dist/esm/{checkouts-table-CB4GdlcZ.js → checkouts-table-B9YTe5fJ.js} +3 -3
  255. package/dist/esm/{config-state-C2NXATwF.js → config-state-kKn89dp1.js} +1 -1
  256. package/dist/esm/{country-config-BQ4D46Lb.js → country-config-CQxaTFuP.js} +1 -1
  257. package/dist/esm/custom-popper_2.entry.js +6 -6
  258. package/dist/esm/{dispute.service-DYRYxxaT.js → dispute.service-D7Dv8LTn.js} +3 -3
  259. package/dist/esm/form-alert_5.entry.js +11 -11
  260. package/dist/esm/form-control-checkbox.entry.js +11 -8
  261. package/dist/esm/form-control-date.entry.js +7 -7
  262. package/dist/esm/{form-control-error-text-BZYykCDp.js → form-control-error-text-CTQxgr7_.js} +2 -2
  263. package/dist/esm/form-control-file-v2_2.entry.js +17 -10
  264. package/dist/esm/{form-control-help-text-D-p66Yxr.js → form-control-help-text-B-aaeX6n.js} +2 -2
  265. package/dist/esm/form-control-help-text.entry.js +1 -1
  266. package/dist/esm/form-control-monetary-provisioning.entry.js +12 -8
  267. package/dist/esm/form-control-monetary.entry.js +8 -8
  268. package/dist/esm/form-control-number-masked_3.entry.js +13 -11
  269. package/dist/esm/{owner-form-core_2.entry.js → form-control-number_3.entry.js} +71 -19
  270. package/dist/esm/form-control-radio.entry.js +9 -6
  271. package/dist/esm/form-control-select_2.entry.js +11 -11
  272. package/dist/esm/{get-business-Xt7B5dSo.js → get-business-BAmwId14.js} +1 -1
  273. package/dist/esm/{get-payment-details-BJ1PLhJZ.js → get-payment-details-CPJZp31y.js} +3 -3
  274. package/dist/esm/{get-subaccounts-CzGHjlUF.js → get-subaccounts-CqMFocN0.js} +4 -4
  275. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  276. package/dist/esm/{header-1-WwkF5F9y.js → header-1-DFMANSXo.js} +2 -2
  277. package/dist/esm/{header-3-C5jS39cE.js → header-3-Ck64YtdM.js} +2 -2
  278. package/dist/esm/hidden-input_2.entry.js +10 -10
  279. package/dist/esm/index-CV0Pyo1O.js +4434 -0
  280. package/dist/esm/{index-B-fWxE5e.js → index-cDVGjRkU.js} +90 -21
  281. package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-AgwQ-yKX.js} +1 -1
  282. package/dist/esm/{insurance-state-C11WKZU6.js → insurance-state-DQ3xzFpR.js} +3 -3
  283. package/dist/esm/internal-tokenize-payment-method_7.entry.js +23 -23
  284. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +72 -51
  285. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  286. package/dist/esm/justifi-apple-pay_8.entry.js +34 -34
  287. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +10 -10
  288. package/dist/esm/justifi-business-details.entry.js +13 -13
  289. package/dist/esm/justifi-business-form.entry.js +22 -22
  290. package/dist/esm/justifi-checkout.entry.js +15 -15
  291. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -10
  292. package/dist/esm/justifi-checkouts-list.entry.js +16 -16
  293. package/dist/esm/justifi-config-provider.entry.js +3 -3
  294. package/dist/esm/justifi-details.entry.js +4 -4
  295. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  296. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  297. package/dist/esm/justifi-dispute-notification_3.entry.js +25 -25
  298. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  299. package/dist/esm/justifi-order-terminals.entry.js +17 -17
  300. package/dist/esm/justifi-payment-details.entry.js +14 -14
  301. package/dist/esm/justifi-payment-provisioning-core.entry.js +23 -11
  302. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  303. package/dist/esm/justifi-payment-transactions-list.entry.js +16 -16
  304. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  305. package/dist/esm/justifi-payments-list.entry.js +16 -16
  306. package/dist/esm/justifi-payout-details.entry.js +12 -12
  307. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -16
  308. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  309. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  310. package/dist/esm/justifi-refund-payment.entry.js +16 -16
  311. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  312. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -14
  313. package/dist/esm/justifi-skeleton.entry.js +5 -5
  314. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
  315. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
  316. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
  317. package/dist/esm/justifi-terminals-list.entry.js +16 -16
  318. package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
  319. package/dist/esm/loader.js +3 -3
  320. package/dist/esm/{package-BzT9OxlN.js → package-ZkBwsSuI.js} +1 -1
  321. package/dist/esm/pagination-menu.entry.js +2 -2
  322. package/dist/esm/{parts-sA8HBfkI.js → parts-DrquDBSk.js} +1 -1
  323. package/dist/esm/payment-details-core.entry.js +20 -20
  324. package/dist/esm/payment-method-option.entry.js +4 -4
  325. package/dist/esm/payment-provisioning-loading-DU0pNyqx.js +10 -0
  326. package/dist/esm/{payment.service-BoGemgMw.js → payment.service-BGf8F56_.js} +3 -3
  327. package/dist/esm/payments-list-core.entry.js +15 -15
  328. package/dist/esm/{payments-list-params-state-gllzDQAb.js → payments-list-params-state-CiGfmyWW.js} +1 -1
  329. package/dist/esm/{payments-status-CADg1cD0.js → payments-status-Bn-MvMcF.js} +2 -2
  330. package/dist/esm/{payments-table-C6zHWwGO.js → payments-table-CF3_zGnh.js} +3 -3
  331. package/dist/esm/payout-details-core.entry.js +13 -13
  332. package/dist/esm/{payout.service-BSG50wqN.js → payout.service-Co3xg-7j.js} +3 -3
  333. package/dist/esm/payouts-list-core.entry.js +15 -15
  334. package/dist/esm/{payouts-list-params-state-gllzDQAb.js → payouts-list-params-state-CiGfmyWW.js} +1 -1
  335. package/dist/esm/{payouts-status-4VDQvaYV.js → payouts-status-ehZrz-Xx.js} +2 -2
  336. package/dist/esm/{payouts-table-BU5XbzB9.js → payouts-table-CGZJfsje.js} +3 -3
  337. package/dist/esm/{schema-validations-iamDi5JD.js → schema-validations-jBrJ0mYI.js} +19 -4
  338. package/dist/esm/{skeleton-Dtt56Fl3.js → skeleton-D9UXuoik.js} +2 -2
  339. package/dist/esm/{spinner-DikooWuI.js → spinner-ACMfJh3a.js} +2 -2
  340. package/dist/esm/{styled-host-DhOcKWqZ.js → styled-host-D6byRazK.js} +1 -1
  341. package/dist/esm/{table-1hqe6s5m.js → table-BbMG2jg9.js} +3 -3
  342. package/dist/esm/table-filters-menu.entry.js +4 -4
  343. package/dist/esm/terminal-orders-list-core.entry.js +14 -14
  344. package/dist/esm/{terminal-orders-list-params-state-gllzDQAb.js → terminal-orders-list-params-state-CiGfmyWW.js} +1 -1
  345. package/dist/esm/{terminal-orders-table-BsVBelxB.js → terminal-orders-table-uNYLd8i5.js} +6 -6
  346. package/dist/esm/terminal-quantity-selector.entry.js +4 -4
  347. package/dist/esm/{terminal.service-YKfi6Mr9.js → terminal.service-Cxs-IO0Z.js} +3 -3
  348. package/dist/esm/terminals-list-core.entry.js +14 -14
  349. package/dist/esm/terminals-list-params-state-CiGfmyWW.js +16 -0
  350. package/dist/esm/{terminals-table-CXJTn-0I.js → terminals-table-B-7FR4ug.js} +3 -3
  351. package/dist/esm/{utils-CgFsPVsv.js → utils-DhCv62Pi.js} +2 -2
  352. package/dist/esm/webcomponents.js +31 -4
  353. package/dist/module/Business.js +5 -0
  354. package/dist/module/additional-questions.js +1 -1
  355. package/dist/module/additional-statement.js +2 -2
  356. package/dist/module/bank-account-billing-form-simple.js +1 -1
  357. package/dist/module/bank-account-document-inputs.js +1 -1
  358. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  359. package/dist/module/bank-account-form-inputs2.js +1 -1
  360. package/dist/module/bank-account-form.js +2 -2
  361. package/dist/module/bank-account-read-only-value2.js +1 -1
  362. package/dist/module/bank-account.js +2 -2
  363. package/dist/module/business-additional-questions-form-step.js +2 -2
  364. package/dist/module/business-additional-questions-schema.js +3 -1
  365. package/dist/module/business-address-schema.js +1 -1
  366. package/dist/module/business-bank-account-form-step.js +1 -1
  367. package/dist/module/business-core-info.js +2 -2
  368. package/dist/module/business-details-core2.js +1 -1
  369. package/dist/module/business-identity-schema.js +5 -1
  370. package/dist/module/business-owners-form-step.js +41 -7
  371. package/dist/module/business-representative-form-inputs.js +2 -2
  372. package/dist/module/business-representative.js +2 -2
  373. package/dist/module/business-terms-conditions-form-step.js +1 -1
  374. package/dist/module/button.js +1 -1
  375. package/dist/module/cancellation-policy.js +2 -2
  376. package/dist/module/card-billing-form-simple.js +1 -1
  377. package/dist/module/card-form.js +2 -2
  378. package/dist/module/card-form2.js +2 -2
  379. package/dist/module/checkouts-list-core2.js +2 -2
  380. package/dist/module/custom-popper2.js +2 -2
  381. package/dist/module/customer-details.js +2 -2
  382. package/dist/module/details.js +1 -1
  383. package/dist/module/dispute-management-core.js +1 -1
  384. package/dist/module/dispute-notification.js +3 -3
  385. package/dist/module/dispute-response-core.js +2 -2
  386. package/dist/module/dispute-response.js +1 -1
  387. package/dist/module/duplicate-charge.js +2 -2
  388. package/dist/module/electronic-evidence.js +2 -2
  389. package/dist/module/form-address-fields.js +1 -1
  390. package/dist/module/form-control-checkbox2.js +5 -2
  391. package/dist/module/form-control-date2.js +2 -2
  392. package/dist/module/form-control-file-v22.js +4 -1
  393. package/dist/module/form-control-file2.js +5 -2
  394. package/dist/module/form-control-monetary-provisioning2.js +6 -2
  395. package/dist/module/form-control-monetary2.js +2 -2
  396. package/dist/module/form-control-number-masked2.js +4 -2
  397. package/dist/module/form-control-number.js +1 -84
  398. package/dist/module/form-control-number2.js +87 -0
  399. package/dist/module/form-control-radio2.js +5 -2
  400. package/dist/module/form-control-select2.js +2 -2
  401. package/dist/module/form-control-text2.js +2 -2
  402. package/dist/module/form-control-textarea2.js +6 -2
  403. package/dist/module/google-pay.js +2 -2
  404. package/dist/module/gross-payment-chart-core2.js +1 -1
  405. package/dist/module/hidden-input2.js +1 -1
  406. package/dist/module/identity-address-form.js +1 -1
  407. package/dist/module/iframe-input2.js +3 -3
  408. package/dist/module/index2.js +90 -21
  409. package/dist/module/internal-tokenize-payment-method2.js +1 -1
  410. package/dist/module/justifi-button2.js +1 -1
  411. package/dist/module/justifi-checkout.js +3 -3
  412. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  413. package/dist/module/justifi-checkouts-list.js +1 -1
  414. package/dist/module/justifi-dispute-management.js +1 -1
  415. package/dist/module/justifi-header2.js +1 -1
  416. package/dist/module/justifi-order-terminals.js +2 -2
  417. package/dist/module/justifi-payment-provisioning.js +27 -21
  418. package/dist/module/justifi-payment-transactions-list.js +2 -2
  419. package/dist/module/justifi-payments-list-filters.js +3 -3
  420. package/dist/module/justifi-payments-list.js +1 -1
  421. package/dist/module/justifi-payout-transactions-list.js +2 -2
  422. package/dist/module/justifi-payouts-list-filters.js +3 -3
  423. package/dist/module/justifi-payouts-list.js +1 -1
  424. package/dist/module/justifi-saved-payment-method.js +1 -1
  425. package/dist/module/justifi-skeleton.js +1 -1
  426. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  427. package/dist/module/justifi-terminal-orders-list.js +1 -1
  428. package/dist/module/justifi-terminals-list-filters.js +2 -2
  429. package/dist/module/justifi-terminals-list.js +1 -1
  430. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  431. package/dist/module/legal-address-form.js +1 -1
  432. package/dist/module/modular-checkout.js +1 -1
  433. package/dist/module/owner-form-core2.js +11 -5
  434. package/dist/module/owner-form-inputs2.js +13 -7
  435. package/dist/module/owner-form.js +11 -5
  436. package/dist/module/package.js +1 -1
  437. package/dist/module/parts.js +1 -1
  438. package/dist/module/payment-details-core2.js +8 -8
  439. package/dist/module/payment-method-option.js +1 -1
  440. package/dist/module/payment-provisioning-core.js +41 -23
  441. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  442. package/dist/module/payment-provisioning-form-steps.js +27 -21
  443. package/dist/module/payments-list-core2.js +2 -2
  444. package/dist/module/payout-details-core2.js +3 -3
  445. package/dist/module/payouts-list-core2.js +2 -2
  446. package/dist/module/product-or-service.js +2 -2
  447. package/dist/module/refund-policy.js +2 -2
  448. package/dist/module/save-new-payment-method.js +1 -1
  449. package/dist/module/schema-validations.js +16 -1
  450. package/dist/module/shipping-details.js +2 -2
  451. package/dist/module/summary.js +1 -1
  452. package/dist/module/table-filters-menu2.js +2 -2
  453. package/dist/module/table.js +1 -1
  454. package/dist/module/terminal-orders-list-core2.js +2 -2
  455. package/dist/module/terminal-quantity-selector2.js +2 -2
  456. package/dist/module/terminals-list-core2.js +2 -2
  457. package/dist/types/api/Business.d.ts +4 -0
  458. package/dist/types/api/Identity.d.ts +4 -0
  459. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  460. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -0
  461. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +4 -0
  462. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +3 -3
  463. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -0
  464. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +2 -0
  465. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -0
  466. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +10 -0
  467. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
  468. package/dist/types/components/checkout/checkout.d.ts +19 -0
  469. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +3 -0
  470. package/dist/types/components.d.ts +378 -240
  471. package/dist/types/ui-components/form/form-control-checkbox.d.ts +2 -2
  472. package/dist/types/ui-components/form/form-control-file-v2.d.ts +2 -2
  473. package/dist/types/ui-components/form/form-control-file.d.ts +2 -2
  474. package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -2
  475. package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
  476. package/dist/types/ui-components/form/form-control-radio.d.ts +3 -3
  477. package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -2
  478. package/dist/webcomponents/p-001ce9f8.entry.js +1 -0
  479. package/dist/webcomponents/{p-36a0af30.entry.js → p-0467df5d.entry.js} +1 -1
  480. package/dist/webcomponents/p-0f6fa1c0.entry.js +1 -0
  481. package/dist/webcomponents/p-0fb3fd77.entry.js +1 -0
  482. package/dist/webcomponents/{p-d0c4b0ea.entry.js → p-172b0c96.entry.js} +1 -1
  483. package/dist/webcomponents/p-198d2941.entry.js +1 -0
  484. package/dist/webcomponents/p-1dbf3473.entry.js +1 -0
  485. package/dist/webcomponents/p-1eefdd41.entry.js +1 -0
  486. package/dist/webcomponents/p-252bd81d.entry.js +1 -0
  487. package/dist/webcomponents/p-265a7cb3.entry.js +1 -0
  488. package/dist/webcomponents/p-2e7143b8.entry.js +1 -0
  489. package/dist/webcomponents/p-32fac30b.entry.js +1 -0
  490. package/dist/webcomponents/p-393c9065.entry.js +1 -0
  491. package/dist/webcomponents/p-3d2495df.entry.js +1 -0
  492. package/dist/webcomponents/p-4165281d.entry.js +1 -0
  493. package/dist/webcomponents/p-4786d1ea.entry.js +1 -0
  494. package/dist/webcomponents/p-493e73a9.entry.js +1 -0
  495. package/dist/webcomponents/p-4d7a2565.entry.js +1 -0
  496. package/dist/webcomponents/p-50cc771a.entry.js +1 -0
  497. package/dist/webcomponents/p-50f16cca.entry.js +1 -0
  498. package/dist/webcomponents/p-52203b01.entry.js +1 -0
  499. package/dist/webcomponents/p-53be30e9.entry.js +1 -0
  500. package/dist/webcomponents/p-55e63bdd.entry.js +1 -0
  501. package/dist/webcomponents/p-5af4bb01.entry.js +1 -0
  502. package/dist/webcomponents/p-639e5ce9.entry.js +1 -0
  503. package/dist/webcomponents/p-65f4681c.entry.js +1 -0
  504. package/dist/webcomponents/p-66e8b443.entry.js +1 -0
  505. package/dist/webcomponents/p-6ed0be7f.entry.js +1 -0
  506. package/dist/webcomponents/p-7184c2f8.entry.js +1 -0
  507. package/dist/webcomponents/p-73b9cc29.entry.js +1 -0
  508. package/dist/webcomponents/p-782ccafb.entry.js +1 -0
  509. package/dist/webcomponents/p-79d1d6b3.entry.js +1 -0
  510. package/dist/webcomponents/{p-897b794b.entry.js → p-7b4e9ae8.entry.js} +2 -2
  511. package/dist/webcomponents/p-7c4fa66f.entry.js +1 -0
  512. package/dist/webcomponents/p-7ec771bc.entry.js +1 -0
  513. package/dist/webcomponents/{p-1a327b0e.entry.js → p-7fdfc2c8.entry.js} +1 -1
  514. package/dist/webcomponents/p-86db9040.entry.js +1 -0
  515. package/dist/webcomponents/{p-725319f3.entry.js → p-931ea171.entry.js} +1 -1
  516. package/dist/webcomponents/{p-20af8597.entry.js → p-99065f37.entry.js} +1 -1
  517. package/dist/webcomponents/p-9ce5fcb6.entry.js +1 -0
  518. package/dist/webcomponents/p-9d844936.entry.js +1 -0
  519. package/dist/webcomponents/p-AMVhBsGv.js +1 -0
  520. package/dist/webcomponents/{p-B4xdk4mG.js → p-APob2Eta.js} +1 -1
  521. package/dist/webcomponents/p-B8CPGGs6.js +1 -0
  522. package/dist/webcomponents/{p-CPpUGsw5.js → p-BAu40WfT.js} +1 -1
  523. package/dist/webcomponents/p-BPTtWj7E.js +1 -0
  524. package/dist/webcomponents/{p-Dit3fZpU.js → p-BXdZKjdB.js} +1 -1
  525. package/dist/webcomponents/p-BZ4YUsyP.js +1 -0
  526. package/dist/webcomponents/{p-CV8xqdt6.js → p-Bhk8tHxs.js} +1 -1
  527. package/dist/webcomponents/p-BhvkOTYA.js +1 -0
  528. package/dist/webcomponents/p-BqL4QuAa.js +1 -0
  529. package/dist/webcomponents/{p-BP2sTIQV.js → p-BqNNwq6C.js} +1 -1
  530. package/dist/webcomponents/p-Bz97Ujvk.js +1 -0
  531. package/dist/webcomponents/{p-C77ElQ41.js → p-C-LV3hNf.js} +1 -1
  532. package/dist/webcomponents/p-C3E-JbVM.js +1 -0
  533. package/dist/webcomponents/{p-BMJe4lzg.js → p-CAZzU98o.js} +1 -1
  534. package/dist/webcomponents/p-CGKWIBVk.js +1 -0
  535. package/dist/webcomponents/p-CHJTjG_5.js +1 -0
  536. package/dist/webcomponents/{p-DUmUUj9r.js → p-COcg4_A3.js} +1 -1
  537. package/dist/webcomponents/{p-C2Senazf.js → p-CQ36pja3.js} +1 -1
  538. package/dist/webcomponents/p-CV0Pyo1O.js +2 -0
  539. package/dist/webcomponents/{p-DfKxeSrC.js → p-Ce785aMx.js} +1 -1
  540. package/dist/webcomponents/p-CpGEMRkH.js +1 -0
  541. package/dist/webcomponents/{p-CBbwdoSa.js → p-CruQSM5j.js} +1 -1
  542. package/dist/webcomponents/p-D0PhRMmy.js +1 -0
  543. package/dist/webcomponents/p-D4EBPNuU.js +1 -0
  544. package/dist/webcomponents/{p-sCHf--Vc.js → p-D81X4BBI.js} +1 -1
  545. package/dist/webcomponents/p-D8GTwl9v.js +1 -0
  546. package/dist/webcomponents/{p-Dlrq1iZf.js → p-DBOsYeYk.js} +1 -1
  547. package/dist/webcomponents/p-DDjKoqh6.js +1 -0
  548. package/dist/webcomponents/{p-11wdbrqX.js → p-DLLFAj4z.js} +1 -1
  549. package/dist/webcomponents/p-DOnVHzNq.js +1 -0
  550. package/dist/webcomponents/{p-tGDdRx0W.js → p-DVJaoI_m.js} +1 -1
  551. package/dist/webcomponents/p-DaZF_q9T.js +1 -0
  552. package/dist/webcomponents/p-Dm07nLGs.js +1 -0
  553. package/dist/webcomponents/{p-BrRsgB8S.js → p-DpkIbI5R.js} +1 -1
  554. package/dist/webcomponents/p-DrquDBSk.js +1 -0
  555. package/dist/webcomponents/p-Dw63wyhO.js +1 -0
  556. package/dist/webcomponents/{p-D6bKoyRc.js → p-JO-3z7ao.js} +1 -1
  557. package/dist/webcomponents/{p-CCxsFwC4.js → p-MBH9QO2m.js} +1 -1
  558. package/dist/webcomponents/p-NO0z-S2W.js +1 -0
  559. package/dist/webcomponents/{p-W9WWoLzT.js → p-YYXsr-bI.js} +1 -1
  560. package/dist/webcomponents/p-ZkBwsSuI.js +1 -0
  561. package/dist/webcomponents/p-_LSWCi-4.js +1 -0
  562. package/dist/webcomponents/p-a20bddd2.entry.js +1 -0
  563. package/dist/webcomponents/p-a3510078.entry.js +1 -0
  564. package/dist/webcomponents/p-a4834220.entry.js +1 -0
  565. package/dist/webcomponents/p-a9b493c1.entry.js +1 -0
  566. package/dist/webcomponents/p-a9ecaf0f.entry.js +1 -0
  567. package/dist/webcomponents/p-b2371f43.entry.js +1 -0
  568. package/dist/webcomponents/p-bc56446a.entry.js +1 -0
  569. package/dist/webcomponents/p-c11512e7.entry.js +1 -0
  570. package/dist/webcomponents/p-c5afb831.entry.js +1 -0
  571. package/dist/webcomponents/{p-f37f3e94.entry.js → p-c7c79332.entry.js} +1 -1
  572. package/dist/webcomponents/p-c90f7ed6.entry.js +1 -0
  573. package/dist/webcomponents/p-ca8d78af.entry.js +1 -0
  574. package/dist/webcomponents/p-d0d6d1cc.entry.js +1 -0
  575. package/dist/webcomponents/p-d55c348b.entry.js +1 -0
  576. package/dist/webcomponents/p-d7fa8461.entry.js +1 -0
  577. package/dist/webcomponents/p-dff12534.entry.js +1 -0
  578. package/dist/webcomponents/p-e11c7df0.entry.js +1 -0
  579. package/dist/webcomponents/p-e1a8785d.entry.js +1 -0
  580. package/dist/webcomponents/p-e54cdb00.entry.js +1 -0
  581. package/dist/webcomponents/p-e5651bb1.entry.js +1 -0
  582. package/dist/webcomponents/p-e926be0d.entry.js +1 -0
  583. package/dist/webcomponents/p-e9daf75f.entry.js +1 -0
  584. package/dist/webcomponents/p-ea0cd47d.entry.js +1 -0
  585. package/dist/webcomponents/p-f13c4a88.entry.js +1 -0
  586. package/dist/webcomponents/p-f5f46f2d.entry.js +1 -0
  587. package/dist/webcomponents/p-mhEMV8M-.js +1 -0
  588. package/dist/webcomponents/p-sPEyLX4E.js +1 -0
  589. package/dist/webcomponents/p-wqq-X93m.js +1 -0
  590. package/dist/webcomponents/{p-DGGjRqDa.js → p-y-FoILTI.js} +1 -1
  591. package/dist/webcomponents/{p-yyedWKWX.js → p-y8av3w9x.js} +1 -1
  592. package/dist/webcomponents/p-ztF3Y786.js +1 -0
  593. package/dist/webcomponents/webcomponents.esm.js +1 -1
  594. package/package.json +8 -12
  595. package/dist/cjs/form-control-number.cjs.entry.js +0 -58
  596. package/dist/cjs/index-BhI7cJcE.js +0 -1891
  597. package/dist/cjs/terminals-list-params-state-DfZySwaC.js +0 -22
  598. package/dist/esm/form-control-number.entry.js +0 -56
  599. package/dist/esm/index-DwYM91AU.js +0 -1879
  600. package/dist/esm/terminals-list-params-state-gllzDQAb.js +0 -16
  601. package/dist/webcomponents/p-016b3e4c.entry.js +0 -1
  602. package/dist/webcomponents/p-035a4adc.entry.js +0 -1
  603. package/dist/webcomponents/p-06cae9e2.entry.js +0 -1
  604. package/dist/webcomponents/p-06f81525.entry.js +0 -1
  605. package/dist/webcomponents/p-0935600b.entry.js +0 -1
  606. package/dist/webcomponents/p-0ab9a3ae.entry.js +0 -1
  607. package/dist/webcomponents/p-0b7c4ed5.entry.js +0 -1
  608. package/dist/webcomponents/p-0bb616fc.entry.js +0 -1
  609. package/dist/webcomponents/p-138ada4a.entry.js +0 -1
  610. package/dist/webcomponents/p-148d3327.entry.js +0 -1
  611. package/dist/webcomponents/p-1575ca68.entry.js +0 -1
  612. package/dist/webcomponents/p-1e761d96.entry.js +0 -1
  613. package/dist/webcomponents/p-20e85114.entry.js +0 -1
  614. package/dist/webcomponents/p-2cb9edad.entry.js +0 -1
  615. package/dist/webcomponents/p-2d4a2d26.entry.js +0 -1
  616. package/dist/webcomponents/p-368b37ad.entry.js +0 -1
  617. package/dist/webcomponents/p-3a3935a3.entry.js +0 -1
  618. package/dist/webcomponents/p-3f14d0c4.entry.js +0 -1
  619. package/dist/webcomponents/p-4d2589b2.entry.js +0 -1
  620. package/dist/webcomponents/p-511e80a4.entry.js +0 -1
  621. package/dist/webcomponents/p-5996879d.entry.js +0 -1
  622. package/dist/webcomponents/p-5a748e49.entry.js +0 -1
  623. package/dist/webcomponents/p-5c6727ae.entry.js +0 -1
  624. package/dist/webcomponents/p-622af881.entry.js +0 -1
  625. package/dist/webcomponents/p-6454626a.entry.js +0 -1
  626. package/dist/webcomponents/p-64ebff16.entry.js +0 -1
  627. package/dist/webcomponents/p-66713269.entry.js +0 -1
  628. package/dist/webcomponents/p-679b36b5.entry.js +0 -1
  629. package/dist/webcomponents/p-71577fa1.entry.js +0 -1
  630. package/dist/webcomponents/p-77754a65.entry.js +0 -1
  631. package/dist/webcomponents/p-7ec4838f.entry.js +0 -1
  632. package/dist/webcomponents/p-88a8741b.entry.js +0 -1
  633. package/dist/webcomponents/p-899b981b.entry.js +0 -1
  634. package/dist/webcomponents/p-8c4b502d.entry.js +0 -1
  635. package/dist/webcomponents/p-8df30672.entry.js +0 -1
  636. package/dist/webcomponents/p-911b3d63.entry.js +0 -1
  637. package/dist/webcomponents/p-97b8bf5c.entry.js +0 -1
  638. package/dist/webcomponents/p-9b74a642.entry.js +0 -1
  639. package/dist/webcomponents/p-9b8aee30.entry.js +0 -1
  640. package/dist/webcomponents/p-9e94c9ef.entry.js +0 -1
  641. package/dist/webcomponents/p-B5rtFhtR.js +0 -1
  642. package/dist/webcomponents/p-BOqOio4U.js +0 -1
  643. package/dist/webcomponents/p-BUsqF4-J.js +0 -1
  644. package/dist/webcomponents/p-BYsgavgS.js +0 -1
  645. package/dist/webcomponents/p-BhqSAzpT.js +0 -1
  646. package/dist/webcomponents/p-BzT9OxlN.js +0 -1
  647. package/dist/webcomponents/p-C9VmfRis.js +0 -1
  648. package/dist/webcomponents/p-CK_XkZku.js +0 -1
  649. package/dist/webcomponents/p-CQGIjIgZ.js +0 -1
  650. package/dist/webcomponents/p-CZ3F1ZAT.js +0 -1
  651. package/dist/webcomponents/p-CgiDds_u.js +0 -1
  652. package/dist/webcomponents/p-CsgUIrv8.js +0 -1
  653. package/dist/webcomponents/p-D032AB34.js +0 -1
  654. package/dist/webcomponents/p-DATDsXcA.js +0 -1
  655. package/dist/webcomponents/p-DKGn-ILd.js +0 -1
  656. package/dist/webcomponents/p-DOcRWTul.js +0 -1
  657. package/dist/webcomponents/p-DY_3dcgR.js +0 -1
  658. package/dist/webcomponents/p-DdJYXOQX.js +0 -1
  659. package/dist/webcomponents/p-DmdEjScI.js +0 -1
  660. package/dist/webcomponents/p-DwYM91AU.js +0 -2
  661. package/dist/webcomponents/p-RTAZ4tdd.js +0 -1
  662. package/dist/webcomponents/p-Ty7R7tsw.js +0 -1
  663. package/dist/webcomponents/p-U3nU15el.js +0 -1
  664. package/dist/webcomponents/p-Uqevvbqm.js +0 -1
  665. package/dist/webcomponents/p-VRubcA-q.js +0 -1
  666. package/dist/webcomponents/p-a0b4c42b.entry.js +0 -1
  667. package/dist/webcomponents/p-af7c219d.entry.js +0 -1
  668. package/dist/webcomponents/p-b0f0d53c.entry.js +0 -1
  669. package/dist/webcomponents/p-b752c5bc.entry.js +0 -1
  670. package/dist/webcomponents/p-bbff6196.entry.js +0 -1
  671. package/dist/webcomponents/p-c0c36187.entry.js +0 -1
  672. package/dist/webcomponents/p-c920dc54.entry.js +0 -1
  673. package/dist/webcomponents/p-cdf1e61c.entry.js +0 -1
  674. package/dist/webcomponents/p-d077569e.entry.js +0 -1
  675. package/dist/webcomponents/p-d7b1b7b5.entry.js +0 -1
  676. package/dist/webcomponents/p-dc6c9c79.entry.js +0 -1
  677. package/dist/webcomponents/p-e4335938.entry.js +0 -1
  678. package/dist/webcomponents/p-e805b011.entry.js +0 -1
  679. package/dist/webcomponents/p-ecbc83bf.entry.js +0 -1
  680. package/dist/webcomponents/p-f30c939f.entry.js +0 -1
  681. package/dist/webcomponents/p-f56d7b4c.entry.js +0 -1
  682. package/dist/webcomponents/p-f99403d8.entry.js +0 -1
  683. package/dist/webcomponents/p-fb644da6.entry.js +0 -1
  684. package/dist/webcomponents/p-fc4b27ec.entry.js +0 -1
  685. package/dist/webcomponents/p-fe43449c.entry.js +0 -1
  686. package/dist/webcomponents/p-giyZ3C4E.js +0 -1
  687. package/dist/webcomponents/p-sA8HBfkI.js +0 -1
  688. package/docs/.eslintrc.cjs +0 -17
  689. package/docs/changelog/index.mdx +0 -17
  690. package/docs/entities/businessdetails/index.mdx +0 -143
  691. package/docs/entities/businessform/index.mdx +0 -241
  692. package/docs/entities/index.mdx +0 -19
  693. package/docs/entities/payment-provisioning/index.mdx +0 -128
  694. package/docs/frameworks/angular/index.mdx +0 -112
  695. package/docs/frameworks/index.mdx +0 -18
  696. package/docs/frameworks/react/index.mdx +0 -125
  697. package/docs/frameworks/vue/index.mdx +0 -102
  698. package/docs/helpers/PartsTable.js +0 -50
  699. package/docs/helpers/PropsTable.js +0 -56
  700. package/docs/helpers/index.ts +0 -3
  701. package/docs/helpers/version.js +0 -32
  702. package/docs/introduction/index.mdx +0 -125
  703. package/docs/merchant-tools/checkouts-list/index.mdx +0 -97
  704. package/docs/merchant-tools/gross-payments-chart/index.mdx +0 -83
  705. package/docs/merchant-tools/index.mdx +0 -25
  706. package/docs/merchant-tools/order-terminals/index.mdx +0 -84
  707. package/docs/merchant-tools/payment-details/index.mdx +0 -132
  708. package/docs/merchant-tools/payment-transactions-list/index.mdx +0 -85
  709. package/docs/merchant-tools/payments-list/index.mdx +0 -109
  710. package/docs/merchant-tools/payout-details/index.mdx +0 -84
  711. package/docs/merchant-tools/payout-transactions-list/index.mdx +0 -84
  712. package/docs/merchant-tools/payouts-list/index.mdx +0 -92
  713. package/docs/merchant-tools/terminal-orders-list/index.mdx +0 -85
  714. package/docs/merchant-tools/terminals-list/index.mdx +0 -93
  715. package/docs/modular-checkout/complete-examples/index.mdx +0 -20
  716. package/docs/modular-checkout/index.mdx +0 -20
  717. package/docs/modular-checkout/introduction/index.mdx +0 -102
  718. package/docs/modular-checkout/sub-components/apple-pay.mdx +0 -106
  719. package/docs/modular-checkout/sub-components/bank-account-form.mdx +0 -167
  720. package/docs/modular-checkout/sub-components/card-form.mdx +0 -178
  721. package/docs/modular-checkout/sub-components/index.mdx +0 -23
  722. package/docs/modular-checkout/sub-components/payment-method-options.mdx +0 -87
  723. package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +0 -158
  724. package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +0 -183
  725. package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +0 -221
  726. package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +0 -183
  727. package/docs/modular-checkout/sub-components/summary.mdx +0 -111
  728. package/docs/payment-facilitation/dispute-management/index.mdx +0 -99
  729. package/docs/payment-facilitation/index.mdx +0 -21
  730. package/docs/payment-facilitation/refund-payment/index.mdx +0 -241
  731. package/docs/payment-facilitation/tokenize-payment-method/index.mdx +0 -350
  732. package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +0 -150
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as e,H as i}from"./p-DwYM91AU.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as c}from"./p-5aA7gjr5.js";import{B as d,a as l,D as u}from"./p-Dlrq1iZf.js";import{a as m,c as p,b as f}from"./p-giyZ3C4E.js";import{F as b,c as v,a as y,b as g,d as w}from"./p-DiJD6Iqx.js";import{A as k,C as _,e as j,R as C,f as T}from"./p-B5rtFhtR.js";import{C as x,P as O}from"./p-CVaOFfrI.js";import{J as S,ah as A,l as I,X as L}from"./p-sA8HBfkI.js";import{S as B}from"./p-CsgUIrv8.js";import"./p-CZfYo5-1.js";import{b as D,c as E}from"./p-CPpUGsw5.js";import{a as P,B as H}from"./p-XYgDHrVL.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{E as V,m as F,n as W}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{z as q,A as R,u as M,B as U,C as Y,D as z,E as X}from"./p-D032AB34.js";import{B as N}from"./p-Ty7R7tsw.js";import{c as G}from"./p-DfKxeSrC.js";import{i as J,e as Z}from"./p-DOcRWTul.js";import{A as K}from"./p-yyedWKWX.js";import"./p-D2muobcE.js";import"./p-BFTU3MAI.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-DkoufM1t.js";class ${constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.account_number=s.account_number,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.institution_number=s.institution_number,this.transit_number=s.transit_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const Q=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(B,{width:"25%"})),s("div",{class:"col-12"},s(B,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(B,{width:"50%"}),s(B,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(B,{width:"65%"}),s(B,{width:"35%"}))),ss=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(B,{width:"40%",height:"40px"})),s(Q,null),s(Q,null),s(Q,null)),ts=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.additional_questions=new k(s.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t})),this.additional_questions=new k(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}recurringPaymentsWatcher(s){this.recurringPayments="Yes"===(null==s?void 0:s.business_recurring_payments)}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{additional_questions:new k(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new b(m(this.allowOptionalFields))}componentDidLoad(){this.getBusiness&&this.getData(),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var t,e,i,r;const n=this.formController.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Additional Questions"),s("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},s("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(t=this.errors)||void 0===t?void 0:t.business_revenue,defaultValue:null==n?void 0:n.business_revenue,maskOptions:x.WHOLE})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==n?void 0:n.business_payment_volume})),s("div",{class:"col-12"},s("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:D,defaultValue:null==n?void 0:n.business_when_service_received})),s("div",{class:"col-12"},s("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_other_payment_details,defaultValue:null==n?void 0:n.business_other_payment_details})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],additional_questions:["recurringPaymentsWatcher"]}}},es=(s,t)=>s.some((s=>s.document_type===t)),is=s=>s?{bank_name:Y.nullable(),nickname:U.nullable(),account_owner_name:M.nullable(),account_type:R.nullable(),account_number:q.nullable()}:{bank_name:Y.required("Enter bank name"),nickname:U.required("Enter nickname"),account_owner_name:M.required("Enter account owner name"),account_type:R.required("Select account type"),account_number:q.required("Enter account number")},rs=(s,t)=>{if(t)return{voided_check:g().nullable(),bank_statement:g().nullable()};const e=es(s,V.voidedCheck),i=es(s,V.bankStatement),r=e||i,n="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:g().when("bank_statement",{is:s=>!s&&!r,then:s=>s.required(n),otherwise:s=>s.notRequired()}),bank_statement:g().when("voided_check",{is:s=>!s&&!r,then:s=>s.required(n),otherwise:s=>s.notRequired()})}},ns={[_.USA]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},is(t)),(s=>s?{routing_number:X.nullable()}:{routing_number:X.required("Enter routing number")})(t)),rs(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s),[_.CAN]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},is(t)),(s=>{const t=y().length(3,"Institution number must be 3 digits").matches(z,"Enter valid institution number"),e=y().length(5,"Transit number must be 5 digits").matches(z,"Enter valid transit number");return s?{institution_number:t.nullable(),transit_number:e.nullable()}:{institution_number:t.required("Enter institution number"),transit_number:e.required("Enter transit number")}})(t)),rs(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s)},os=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new F,this.isLoading=!1,this.isAddingNewBankAccount=!0,this.getSchema=()=>(0,ns[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new b(this.getSchema()),this.formController.setInitialValues(this.isAddingNewBankAccount?{business_id:this.businessId}:Object.assign({},this.bankAccount)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new W({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{if(s.data.bank_accounts.length>0){const t=s.data.bank_accounts;this.bankAccount=new $(t[t.length-1]),this.isAddingNewBankAccount=!1}else this.bankAccount=new $({}),this.bankAccount.business_id=this.businessId;this.existingDocuments=s.data.documents},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.handleChangeBankAccount=()=>{this.isAddingNewBankAccount=!0,this.documentData=new F,this.initializeFormController()},this.handleCancel=()=>{this.isAddingNewBankAccount=!1,this.documentData=new F,this.initializeFormController()},this.handleSaveBankAccount=async()=>{this.formController.validateAndSubmit((()=>{this.sendData((()=>{}))}))},this.postDocumentRecordData=async s=>{this.isLoading=!0;const t=s.record_data;return new Promise((e=>{this.postDocumentRecord({payload:t,onSuccess:t=>{e(this.handleDocRecordResponse(s,t))},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:r.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 s.getFileData(),e=await fetch(s.presigned_url,{method:"PUT",body:t});return this.handleUploadResponse(e)},this.handleUploadResponse=s=>!s.error||(this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.error.message,severity:r.ERROR,data:s.error}),!1)}propChanged(){this.initializeApi()}watchHandler(s){this.formLoading.emit(s)}async validateAndSubmit({onSuccess:s}){this.existingBankAccount&&!this.isAddingNewBankAccount?this.sendData(s):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData(),this.formController=new b(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.postBankAccount=h({authToken:this.authToken,service:new l}),this.postDocumentRecord=c({authToken:this.authToken,service:new u})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}get postPayload(){const s=this.formController.values.getValue();return new $(s).payload}get existingBankAccount(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}get showReadOnlyView(){return this.existingBankAccount&&!this.isAddingNewBankAccount}async sendData(s){try{if(this.isAddingNewBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;this.isAddingNewBankAccount&&(this.isAddingNewBankAccount=!1,await this.refreshBankAccountData()),s()}catch(s){this.errorEvent.emit({message:s,errorCode:n.POST_ERROR,severity:r.ERROR})}}async postBankAccountData(){let s;return this.isLoading=!0,new Promise((t=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:t=>{s=t,e=!0},onError:({error:s,code:t,severity:i})=>{e=!1,this.errorEvent.emit({message:s,errorCode:t,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:P.bankAccount}),this.isLoading=!1,t(e)}})}))}async refreshBankAccountData(){return new Promise((s=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{if(s.data.bank_accounts.length>0){const t=s.data.bank_accounts;this.bankAccount=new $(t[t.length-1])}this.existingDocuments=s.data.documents,this.initializeFormController()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.isLoading=!1,s()}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const s=Object.values(this.documentData).flat();return!s.length||!(await Promise.all(s.map((s=>this.postDocumentRecordData(s))))).includes(!1)&&!(await Promise.all(s.map((s=>this.uploadDocument(s))))).includes(!1)}finally{this.isLoading=!1}}render(){const t=this.formController.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",{class:"mb-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Bank Account Info"),s("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),s("hr",{class:"mt-2"}),s(this.country===_.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:t,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.showReadOnlyView}),this.showReadOnlyView&&s("div",{class:"mt-3"},s(N,{variant:"secondary",type:"button",onClick:this.handleChangeBankAccount,disabled:this.isLoading,part:A},"Change Bank Account")),(!this.existingBankAccount||this.isAddingNewBankAccount)&&s("div",{class:"mt-3 d-flex gap-2"},this.isAddingNewBankAccount&&s(N,{variant:"secondary",type:"button",onClick:this.handleCancel,disabled:this.isLoading,part:A},"Cancel"),s(N,{variant:"primary",type:"button",onClick:this.handleSaveBankAccount,disabled:this.isLoading,isLoading:this.isLoading},"Save Bank Account"))),s("fieldset",{class:"mt-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Document Uploads"),s("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),s("hr",{class:"mt-2"}),s("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),s("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],isLoading:["watchHandler"]}}},as=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.coreInfo=new j(s.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s(),this.isEditingTaxId=!1},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return new j(this.formController.values.getValue()).payload}componentWillLoad(){this.initializeApi();const s=this.country===_.CAN?p(this.allowOptionalFields):f(this.allowOptionalFields);this.formController=new b(s),this.getData()}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var t,e;const i=this.formController.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Business Information")),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12"},s("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),s("div",{class:"col-12"},s("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),s("div",{class:"col-12 col-md-8"},s("form-control-select",{name:"classification",label:"Business Classification",options:E,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-4"},s("form-control-date",{name:"date_of_incorporation",label:"Date of Registration",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),s("div",{class:"col-12 col-md-6"},!(null===(t=this.coreInfo)||void 0===t?void 0:t.tax_id_last4)||this.isEditingTaxId?s("form-control-number-masked",{name:"tax_id",label:G[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:G[this.country].taxIdHelpText}):s("div",null,s("label",{class:"form-label",part:I},G[this.country].taxIdLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:L,value:`****${null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:A,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),s("div",{class:"col-12"},s("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:O.US})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},hs=class{constructor(s){t(this,s),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(s,t)=>{const e=this.refs.findIndex((s=>s===t));-1!==e&&(this.refs[e]=s)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{s.data.owners.length?this.ownersPayload=s.data.owners.map((s=>({id:s.id}))):this.addOwnerForm()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=s=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],s&&this.clickEvent.emit({name:H.addOwnerForm})},this.removeOwnerForm=s=>{this.ownersPayload=this.ownersPayload.filter((t=>t.id!==s)),this.newFormOpen&&(this.newFormOpen=!1)}}propChanged(){this.initializeApi()}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((s=>s.id))}async validateAndSubmit({onSuccess:s}){const t=this.refs.map((s=>s.validate()));if(!(await Promise.all(t)).every((s=>s)))return;const e=this.refs.map((s=>s.submit()));(await Promise.all(e)).every((s=>s))&&this.sendData(s)}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(s){const t=s.detail,e=this.ownersPayload.map((s=>s.id===t.id?t:s));e.includes(t)||(e[this.ownersPayload.findIndex((s=>!s.id))]=t,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return s(i,null,this.isLoading?s(ss,null):s("div",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Owners"),s("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},this.ownersPayload.map((t=>s("justifi-owner-form",{key:t.id,authToken:this.authToken,businessId:this.businessId,ownerId:t.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:s=>this.matchRef(s,t.id)})))),s("div",{class:"d-flex justify-content-start"},s("div",{class:"gap-2"},s(N,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner")))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],ownersPayload:["ownersWatcher"]}}},cs=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&this.formController&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.representative=new C(s.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.representative}),this.formLoading.emit(!1)}})}}propChanged(){this.initializeApi(),this.getData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.initializeApi(),this.initializeForm()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}initializeForm(){const s=J[this.country];s?(this.formController=new b(s("representative",this.allowOptionalFields)),this.getData()):this.errorEvent.emit({message:"Missing schema for selected country",errorCode:n.MISSING_PROPS,severity:r.ERROR})}componentDidLoad(){this.formController&&this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get patchPayload(){return{representative:new C(this.formController.values.getValue()).payload}}render(){return!this.formController||this.isLoading?s(ss,null):s("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},ds=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:s.message,severity:r.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({endpoint:this.termsConditionsEndpoint,body:t,authToken:this.authToken});this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.message,severity:r.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}))}}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=K(),this.formController=new b((s=>{const t=v({accepted:w().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=v({accepted:w().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.error.message,severity:r.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:P.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:P.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)}))}get merchantAgreementLink(){return s("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return s("form",{key:"721f3c171358f9450a8b460dafac3c9f7f27727b"},s("fieldset",{key:"e151086c528d5e359e4ecd2c33feb01c5571a6ca"},s("legend",{key:"ff4ba3bead3ec50cf9736d6a864740e542f42b2d",part:S},"Terms and Conditions"),s("hr",{key:"c076bfe230bafbe8db7280f5f708de893c970bf2"}),s("div",{key:"d2a1e0f4e15077d07fe7de2cb847252990b44bde"},s("p",{key:"559c4c6d6e27b5fb800984e87097fe080482462d"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),s("br",{key:"014b3a7be231c81bd23c35ab212d7ac4e4c1d107"}),s("div",{key:"3ef38ecffd678c36c564836434f0a0da341116af",class:"row-gy-3"},s("div",{key:"e715723e19a212628d29fec46ca494b7080dac66",class:"col-12"},s("form-control-checkbox",{key:"6054f012fa3abacf6b9f6ffe7d7e88444d8a1066",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})))))}},ls=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{const t=new T((s.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},t),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{legal_address:new T(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new b((0,Z[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var t;const e=null===(t=this.formController)||void 0===t?void 0:t.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Legal Address of your Business"),s("form-control-tooltip",{helpText:"No PO Boxes."})),s("hr",{class:"mt-2"}),s("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:e,inputHandler:this.inputHandler})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},us=class{constructor(s){t(this,s)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return s("div",{key:"e13d3613af061d0067d1dbd84b6c3aebfc782aad",class:"d-flex gap-2"},s(N,{key:"7b422ce77e13872f3dbd622574bce0e3e6e9c2ed",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),s(N,{key:"ea1242fdccb0b0af2438f4aaab91e3e17a607ef7",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,H.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),s(N,{key:"0c323f533ea84608dcdabb885f69d71a81ec684b",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,H.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},ms=class{constructor(e){t(this,e),this.allowOptionalFields=!1,this.country=_.USA,this.componentStepMapping={0:()=>s("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>s("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>s("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>s("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>s("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>s("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),6:()=>s("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return s("div",{key:"dcf3f283bae7de00311f35e41b8d803196f50d49",class:"col-12 mb-4"},this.currentStepComponent)}};export{ts as justifi_additional_questions_form_step,os as justifi_business_bank_account_form_step,as as justifi_business_core_info_form_step,hs as justifi_business_owners_form_step,cs as justifi_business_representative_form_step,ds as justifi_business_terms_conditions_form_step,ls as justifi_legal_address_form_step,us as justifi_payment_provisioning_form_buttons,ms as justifi_payment_provisioning_form_steps}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-11wdbrqX.js";import{T as n}from"./p-CCxsFwC4.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{f as p}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m,S as d}from"./p-C9VmfRis.js";import{S as u}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-CV8xqdt6.js";import"./p-BzT9OxlN.js";import"./p-yyedWKWX.js";import"./p-B09GVew-.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-U3nU15el.js";import"./p-sA8HBfkI.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var n,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return a({error:h(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(n=d.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"9bf1797fc21c7fdf2b58aedab5819513338e714b"},i("terminals-list-core",{key:"46c5f5cc5a436d47e4813207cce07d28a4f20ef7",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_terminals_list}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as i}from"./p-DwYM91AU.js";import{C as o}from"./p-ZpPDShvP.js";import{v as a}from"./p-sA8HBfkI.js";import"./p-HXpYMWUU.js";const r=class{constructor(s){e(this,s),this.paymentMethodOptionSelected=t(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=e=>{e.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(e){var t;return e.isValid?{token:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id}:{validationError:!0}}render(){var e,t,r;return s(i,{key:"feeb934714fe00e87f6c89ec3954dafebef81733",class:"payment-method"},s("div",{key:"62370e3c41538e5a5aed16dc0f2d9056bebc01c0",class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick},s("form-control-radio",{key:"583aa5751277bb585b6b1686d229810d830c8686",name:"paymentMethodType",value:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id,checked:this.isSelected,label:`${o[null===(t=this.paymentMethodOption)||void 0===t?void 0:t.brand]||""} *${null===(r=this.paymentMethodOption)||void 0===r?void 0:r.acct_last_four}`})))}};export{r as justifi_saved_payment_method}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as r}from"./p-DY_3dcgR.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{e as p}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-DUmUUj9r.js";import{c as m,J as c}from"./p-11wdbrqX.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-yyedWKWX.js";import"./p-B09GVew-.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-sA8HBfkI.js";import"./p-BzT9OxlN.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:o.ERROR}):r(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:o.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new r}),this.getPayoutCSV=d({authToken:this.authToken,service:new r})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as e,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-11wdbrqX.js";import{D as n}from"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{D as c}from"./p-Dit3fZpU.js";import"./p-BzT9OxlN.js";import"./p-yyedWKWX.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-BrRsgB8S.js";import"./p-DkoufM1t.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:o})=>{var p;try{const c=await i.fetchDispute(t,s);if(c.error)return o({error:h(c.error),code:a(null===(p=c.error)||void 0===p?void 0:p.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);r({dispute:new n(c.data),pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new c}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"e19f33cd7106c3c44fb86faeef743c62ff9004b9",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_dispute_management}
@@ -1 +0,0 @@
1
- import{h as s,r as i,c as t}from"./p-DwYM91AU.js";import{ao as e,am as r,ai as o,G as l}from"./p-sA8HBfkI.js";import{S as d}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as a,J as n}from"./p-11wdbrqX.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-Dlrq1iZf.js";import{B as v}from"./p-B5rtFhtR.js";import{m as p}from"./p-sCHf--Vc.js";import{S as m}from"./p-CsgUIrv8.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{k as f,j as w,b}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g,a as x}from"./p-D2muobcE.js";import{T as y}from"./p-CCxsFwC4.js";import{k as j}from"./p-B09GVew-.js";import"./p-BzT9OxlN.js";import"./p-yyedWKWX.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";const k=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(m,{width:"25%"})),s("div",{class:"col-12"},s(m,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(m,{width:"50%"}),s(m,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(m,{width:"65%"}),s(m,{width:"35%"}))),S=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(m,{width:"40%",height:"40px"})),s(k,null)),B=()=>s("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},s("div",{class:"d-flex align-items-center gap-3"},s(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),s("div",{class:"flex-grow-1"},s("div",{class:"d-flex row flex-row"},s("div",{class:"col-6 flex-column"},s(m,null),s(m,{width:"60%"})),s("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},s(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),s(m,{width:"80px",height:"32px"}),s(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),s("div",{class:"mt-4"},s("div",{class:"d-flex flex-column gap-2"},s(m,null),s(m,null)))))),C=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?b.boardingShipping:b.boardingOnly}),a(),this.analytics=new n(this),this.loadData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}handleError(s,i,t){this.error={message:s,code:i,severity:t},this.errorEvent.emit({errorCode:i,message:s,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:s})=>{this.business=new v(s),this.loading.business=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:s,authToken:i,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,a;try{const n=await t.fetchTerminalModels(s,i);if(n.error)return r({error:x(n.error),code:g(null===(a=n.error)||void 0===a?void 0:a.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=n.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((s=>new f(s))))||[],orderLimit:null===(d=n.data)||void 0===d?void 0:d.order_limit})}catch(s){const i=g(null==s?void 0:s.code);return r({error:s.message||s,code:i,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:s,orderLimit:i})=>{this.terminalModels=s,this.orderLimit=i,this.loading.terminals=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.loading.terminals=!1}})}submitOrder(){const s=(({authToken:s,service:i,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await i.orderTerminals(s,e,t);if(d.error)return o({error:x(d.error),code:g(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:s}=d;r({data:s})}}catch(s){const i=g(null==s?void 0:s.code);return o({error:s.message||s,code:i,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,s({terminalOrder:this.order.payload,onSuccess:({data:s})=>{this.submitted.emit(s),this.submitting=!1},onError:({error:s,code:i,severity:t})=>{this.handleError(s,i,t),this.submitting=!1}})}onSelectedQuantityChange(s){this.order.updateTerminal(s.detail.modelName,s.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return s("div",null,this.loading.business&&s(S,null),this.loading.terminals&&s("div",{class:"mt-5"},s(B,null),s(B,null),s(B,null)))}renderBusinessDetails(){var i,t,o,l,d,a,n,h;if(!this.loading.business&&this.business)return s("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},s("div",{class:"row"},s("div",{class:"col-12"},s("h2",{part:r},this.business.legal_name))),s("div",{class:"row"},s("div",{class:"col-6"},s("h5",{part:e},"Representative:"),s("div",null,s("div",null,null===(t=null===(i=this.business)||void 0===i?void 0:i.representative)||void 0===t?void 0:t.name),s("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),s("div",null,null===(a=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===a?void 0:a.email),s("div",null,j(null===(h=null===(n=this.business)||void 0===n?void 0:n.representative)||void 0===h?void 0:h.phone)))),s("div",{class:"col-6"},s("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),s("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",s("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return s("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((i=>s("terminal-quantity-selector",{modelName:i.model_name,description:i.description,imageUrl:i.image_url,helpUrl:i.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return s("div",{class:"mt-3"},s("div",{class:"text-end"},"Order limit: ",this.orderLimit),s("div",{class:"d-flex justify-content-end mt-3"},s("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return s(d,{key:"aa60b46b6f455a6e925a835f1b558c88966b2a90"},s("div",{key:"33361446b5b2848a0d7d4af36ff54a3be76a5779",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{C as justifi_order_terminals}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-DwYM91AU.js";import{c as t,a as c,F as i}from"./p-DiJD6Iqx.js";import{ao as d}from"./p-sA8HBfkI.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:c().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,c=t.name,i=t.files;a[c]=[];for(const e of i)a[c].push(new n(e,c))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new i(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"d943c5a732c4ece78a9d3894b1395bfe9fde13eb"},a("div",{key:"918d1e3ef1259396d177e41d10998cbd9d69c060",class:"row gy-3"},a("div",{key:"bfab1580c07005da4046884acd07858478ed9e29",class:"col-12"},a("h2",{key:"9d82008f712ce05f35a42bc169f581ec5e38d9ea",class:"h5",part:d},"Additional Evidence")),a("div",{key:"28b192ee15fc788ef9923e366b46e0d1458f5061",class:"col-12"},a("form-control-textarea",{key:"799b740724230fc5fd7ed7e19d8f7069416eed10",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"0e1f293bd196f45faaa495f310be6c72ce101e0e",class:"col-12"},a("form-control-file-v2",{key:"02ae90e06226350272bb49d1cb0d753f641c6801",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:c().nullable(),cancellation_rebuttal:c().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new i(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"24d9db9409e2bc6147e73b70b103c86d9c65580d"},a("div",{key:"a724a9f96b0cc7f6a38fab82b572962b72ffbf9b",class:"row gy-3"},a("div",{key:"ba734334efd7a7fbc7adcc2c8bcb73f80278a413",class:"col-12"},a("h2",{key:"f57de791ca5b8f6752ce06460ba813f89f8145f5",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"86946aa4b4b2615864c3e6053e661564f4eb5658",class:"col-12"},a("form-control-textarea",{key:"0f996bfd0a1b64effef21418a7813a12f1ad5fcd",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"d46ca79368e4bc1f13e406d0fece0be4b8e33950",class:"col-12"},a("form-control-textarea",{key:"0d7991cf878e645b80b8aa8b03533dc758d267a9",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"aa89c58ba7263fe7419908fd4964874645b26c3e",class:"col-12"},a("form-control-file-v2",{key:"7e6020a57b0d804c20e0b2c092bf512912679eb9",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.cancellation_policy}))))}},u=t({customer_name:c().nullable(),customer_email_address:c().nullable(),customer_billing_address:c().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new i(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"b348b17f0b320a540b0496f04572ba1360f4fd15"},a("div",{key:"376750fbcd6da41a602d6ad5b4a2130dbcce17dc",class:"row gy-3"},a("div",{key:"2f6134bbd055fdb8afa495e29370a3528b5d8701",class:"col-12"},a("h2",{key:"7e29aa97b070479bc6df91fe2bd4416a3a2210dd",class:"h5",part:d},"Customer Details")),a("div",{key:"7f44155fab6f6387fa768af1225c10a63fc3587b",class:"col-12"},a("form-control-text",{key:"6c38a71cdcf231729d9db144a3936130dc0e0b4d",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"06c883df8dfa58535c32bcb43e6649537ff0b91c",class:"col-12"},a("form-control-text",{key:"eb424a6d80d90d19e7be31323de3ad41ede47c09",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"a7ba05dfc72dabeeb690daff6e9f692488172d15",class:"col-12"},a("form-control-textarea",{key:"9b47c924dfdd8065d6e456210a2cdaac30376f9b",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"37ba310fdd33ffb1fc41a168fb31c4f21a49b568",class:"col-12"},a("form-control-file-v2",{key:"e54b14ab429073482f68f8ba259e797be4c41a0f",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.customer_signature})),a("div",{key:"9084a731a58784355bc543759d6bf50bd6001c52",class:"col-12"},a("form-control-file-v2",{key:"bfb40202ff50523583ad8bcc7dc96740495de312",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:c().nullable(),duplicate_charge_explanation:c().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new i(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"e47e81701d243ca3d0cbd63752ac8edc02337cf8"},a("div",{key:"e8c380c186d957a09910887ffaa1476c55889ae2",class:"row gy-3"},a("div",{key:"6209bbe1f2b37a0fb7215d9eca5da546f7b07343",class:"col-12"},a("h2",{key:"4fcc49631c78e5f780b116f6741efbdc8526a81b",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"8d0a2ebe2fc159af79392decb28775e39e18868a",class:"col-12"},a("form-control-text",{key:"45e3bfb01b42fdbfa366226bce57f59b33b682e5",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"2e2d2c826a068d1ca22b527187b8850c5f92aa80",class:"col-12"},a("form-control-textarea",{key:"97437cc325d852b9ff4ad1080d7921caac392ad2",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"bf0afc8eaf9eafd1cf08a1d1efeb1007e66ed1a0",class:"col-12"},a("form-control-file-v2",{key:"75d18cc087a7765798f51463d2f9e70197cc5374",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:c().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new i(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"6518aa80a07c58e19076a102cc9e319cc3c9ee39"},a("div",{key:"73444a9bf6008cbb1e6e66945ceca8ee23b996b1",class:"row gy-3"},a("div",{key:"b13b7db17bcf0e35a2fec5089bb5a282323587cb",class:"col-12"},a("h2",{key:"289f212f765d91b9565e2c2024b0adedece833c2",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"7c4bb450be8746e3024b807ea8dc9f368cbb746c",class:"col-12"},a("form-control-text",{key:"b4938d9d1b0869af38d4d74eb61b8f5dda1761e2",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"88ce56f5e30a5dae990fcf3ee0816a3636dfe4f9",class:"col-12"},a("form-control-file-v2",{key:"4890efb2a4c67ec668c12caa53ce0978f6870925",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:c().nullable(),service_date:c().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new i(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"cfa8c6c92bb2790dbaea1939e6acc7539fd848d7"},a("div",{key:"63d38a0c614f932ef018791fb1388b3dc49c7e5c",class:"row gy-3"},a("div",{key:"6140c07a8c354d9339509a00141fbc7a1de146f4",class:"col-12"},a("h2",{key:"40c755fe0938930e0283c391df12c417850eecb4",class:"h5",part:d},"Product & Service Details")),a("div",{key:"b213783cf90bcc17522ab0367e530a48a2474270",class:"col-12"},a("form-control-text",{key:"b7977ccef55a4f616f1d7cd20cedad5af5187741",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"462085df8eedee334fbfa38d752803493515b39f",class:"col-12"},a("form-control-date",{key:"dca6d8369385607b2fa43882d864e42d4c0fec4c",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"74aeb86e75d1496f88f7286cab4cf8fcbd737f60",class:"col-12"},a("form-control-file-v2",{key:"6872fb5a4a54ace55578dd0ba789ca7409799645",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.service_documentation}))))}},x=t({refund_policy_disclosure:c().nullable(),refund_refusal_explanation:c().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new i(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i;return a("div",{key:"d9234b27998495091ed3a8f6a68e8bd0ca273351"},a("div",{key:"8456144a474b1cf7bfbcfd0bac0e24837376a0fd",class:"row gy-3"},a("div",{key:"f13612f184a140a4bd9b5ee18a31b0faad3da535",class:"col-12"},a("h2",{key:"dc5959ec45379faafa8dc973fcb652729c65a4ae",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"bcf9f262aa58d5a92d13477035bf8fea788c8738",class:"col-12"},a("form-control-textarea",{key:"6f8676d9a2427b7a3d6cd5a1ba6533f9c21b986f",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"9d5707337a5955d63eaca24b885bbdbfbf3f84d8",class:"col-12"},a("form-control-textarea",{key:"4e7f13b79b895ddee0890519176b54ccaa092fa4",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"c02521ff9575fd1d0f430c6b5171457c5205a12f",class:"col-12"},a("form-control-file-v2",{key:"d5223c87347af2a02cb0748be32fffe29ac18137",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.refund_policy})),a("div",{key:"341f0fa04c29e33533cc8ec16b4364367124ce53",class:"col-12"},a("form-control-file-v2",{key:"280dd38b7b4e5a29b6dd7f5fbc765f0e3b9cd765",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.receipt}))))}},O=t({shipping_carrier:c().nullable(),shipping_tracking_number:c().nullable(),shipping_date:c().nullable(),shipping_address:c().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new i(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"6b71aa457f7e3ac9fd050deea342c6ca14c1d62f"},a("div",{key:"c6a309a59de4b6cf6f5ca1e3bfee3da1cdca543c",class:"row gy-3"},a("div",{key:"1668c86989cec124c7d11d54b9dd6edf46c182d0",class:"col-12"},a("h2",{key:"e911f21be4aa8a369d427ae80989d8223693e3ba",class:"h5",part:d},"Shipping Details")),a("div",{key:"025beda9984cb47518eccb04971470a46ad3d73b",class:"col-12"},a("form-control-text",{key:"ea8db703b0d94e5c2d8148cfaa97e6eb2a824e06",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"764cddd9b2b8156ab97d598fed23459f074006de",class:"col-12"},a("form-control-text",{key:"4ce85b6b5c4ca79c2edaafbe3169bf049153cbfa",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"8e18b6159156b7d21dba344e2c1a22418b139e3e",class:"col-12"},a("form-control-date",{key:"d3a8ef184475150d07fea4f82e65800c5c259b47",label:"Date Shipped",name:"shipping_date",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"ff23ee968b2b6f64eefd3453fcdb788034e166e0",class:"col-12"},a("form-control-textarea",{key:"75bad71ceae6bab8de6d47175fda3bd27491bde0",label:"Shipping Address",name:"shipping_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"c774e01b09f930e3656e4b194b386234a692fbbe",class:"col-12"},a("form-control-file-v2",{key:"928f2195a67e1aac483ea70ff97c3e65e8dcfbe9",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as a}from"./p-DwYM91AU.js";import{I as i}from"./p-Ce_F4E0f.js";import{b as d,X as o,a as r,c as l,l as c}from"./p-sA8HBfkI.js";import{F as n}from"./p-CZ3F1ZAT.js";import"./p-CZfYo5-1.js";import{C as h}from"./p-B5rtFhtR.js";import{n as f}from"./p-BnjCmwMr.js";import{b,c as u}from"./p-DfKxeSrC.js";const m=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=i(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{var t;const s=e.target,a=s.getAttribute("name"),i=(null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue)||s.value;this.formControlInput.emit({name:a,value:i})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?d:this.disabled?o:this.isFocused?r:l}render(){return s(a,{key:"19208aa7aae72ea0492dcb2d46651bb80b6ab133"},s("div",{key:"93aea8b9cede9bec9c4f5959dd3cb22065bd684f",class:"form-group d-flex flex-column"},s("div",{key:"8782f39a557f2f1fb14accea192d5677256c5752",class:"d-flex align-items-start gap-2"},s("label",{key:"0abdc2776f59ddb560e404b7ce05200cec8d1082",part:c,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"649166a60116190c3e06039825e1a87d1b01b100",helpText:this.helpText})),s("input",{key:"862ea2874c2f1f33c12b5e8afcb49e903731e3d9",ref:e=>this.textInput=e,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:"text",disabled:this.disabled}),s(n,{key:"01ecae80e5d67d45a2c954ededea51d1db41aafc",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},v=class{constructor(t){e(this,t),this.country=h.USA}render(){var e,t,i,d,o,r,l,c,n,m;const v=u[this.country],p=b[this.country];return s(a,{key:"dde5469230a6067ab343e77b1e11e25d815caa5a"},s("div",{key:"a28ca49da90e4981e363ccc69fa59e930097cad2",class:"row gy-3"},s("div",{key:"dc6e201854c758cbbd493dd23c38a40e072cfaaf",class:"col-12"},s("form-control-text",{key:"a2e43eb37e7df69c89484f74adf7f297183818d7",name:"line1",label:"Street Address",inputHandler:this.inputHandler,defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,helpText:"No PO Boxes."})),s("div",{key:"e59a0af86c1146e1c5ac2b86f0e531bab76467cc",class:"col-12"},s("form-control-text",{key:"8ba59e74e6be2bc5980ff2c08126c9df77460ab2",name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null===(i=this.defaultValues)||void 0===i?void 0:i.line2,errorText:null===(d=this.errors)||void 0===d?void 0:d.line2})),s("div",{key:"671a3098a6295c6702b670506a8a17190a4cf90a",class:"col-12"},s("form-control-text",{key:"cb1c90bd567e1ecb82a9be4c540eab7ca2bcfb99",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null===(o=this.defaultValues)||void 0===o?void 0:o.city,errorText:null===(r=this.errors)||void 0===r?void 0:r.city})),s("div",{key:"554e28a4a0cdc81076f0342b31ccb1cad3c122f7",class:"col-12"},s("form-control-select",{key:"9fb1e73cf440173d9a4a94f23eca5dbf77310e76",name:"state",label:v.stateLabel,options:p.stateOptions,inputHandler:this.inputHandler,defaultValue:null===(l=this.defaultValues)||void 0===l?void 0:l.state,errorText:null===(c=this.errors)||void 0===c?void 0:c.state})),s("div",{key:"fbde65bfada699a7bcab4bb642b39cae3dc123b8",class:"col-12"},s("form-control-text",{key:"9218151756e93820985c88721bb549904e0f7212",name:"postal_code",label:v.postalLabel,inputHandler:this.inputHandler,defaultValue:null===(n=this.defaultValues)||void 0===n?void 0:n.postal_code,errorText:null===(m=this.errors)||void 0===m?void 0:m.postal_code,maxLength:this.country===h.USA?5:7,keyDownHandler:this.country===h.USA?f:void 0}))))}},p=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){return s(a,{key:"86c91933676745470d6b28cf6843624d092adc57"},s("justifi-form-address-fields",{key:"7cbee24003b6b0446fb1203c9863151b0d2f4f15",country:this.country,errors:this.errors,defaultValues:this.defaultValues,inputHandler:this.inputHandler}))}static get watchers(){return{address:["handleAddressChange"]}}};export{m as form_control_number_masked,v as justifi_form_address_fields,p as justifi_identity_address_form}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as s,a as i}from"./p-Cjcsf8ku.js";import{h as r}from"./p-BrRsgB8S.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as o,J as c}from"./p-11wdbrqX.js";import{g as p,a as h}from"./p-D2muobcE.js";import{P as d}from"./p-DGGjRqDa.js";import{T as f,l,a as u,b as m,c as y,d as b,e as _,f as g,g as j,h as k,i as T,j as w,k as v}from"./p-BMJe4lzg.js";import{S as D}from"./p-BP2sTIQV.js";import{T as C}from"./p-CZfYo5-1.js";import{a as R}from"./p-B09GVew-.js";import{V as S,W as B}from"./p-sA8HBfkI.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-BzT9OxlN.js";import"./p-yyedWKWX.js";import"./p-CgiDds_u.js";const x={created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:S,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:S,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:S,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},F={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},I={created_at:(e,a)=>t("td",{part:B(a)},t("div",{class:"fw-bold"},R(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},R(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:B(a)},F[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:B(a)},e.id),amount:(e,a)=>t("td",{part:B(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:B(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:B(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:B(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:B(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:B(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:B(a)},e.source_id),source_type:(e,a)=>t("td",{part:B(a)},e.source_type)},q=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:C.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:C.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:C.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,x,I),o(),this.analytics=new c(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:i,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,i);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:s.ERROR}):n({balanceTransactions:c.data.map((t=>new r(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:s.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(i.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(D,{key:"8a307277a1953bea93e7b15d2774700f07319c87"},t(l,{key:"1097f6a329292851cfcdd16240fa5f161f8aa7e4"},t(u,{key:"9ae196b35c90391de0d9a31f79c732e6de991b08"},t(m,{key:"a7eaab567c42bb2676b91259363b9c4bee2683df"},t(y,{key:"461752dafb18db32ef0367d90cb1482980e92187"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"5c0ce55bd2ad81de73866c869818820568233422"},t(_,{key:"8a54d3632e2193576a2e5037c9d7b8a614fcd5b6",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"6fab4a7cce6678a30992be71c702fab2259c2b49",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"8ab1c46ecbd0d2ed98dacf9edcd690054a90c081",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"8ff1f32400ae7127af54dc72d7f004f9f47b189d"},t(w,{key:"f61fb96596cfd7fb2b9c8df9abe7b93ca911f92c"},t(v,{key:"609114cbd75f787012c1625e0b197fd5820d054e",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"54b78b6480f2c7ee718ae9379a62e0961f8b8170",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{q as justifi_payment_transactions_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as r}from"./p-DGGjRqDa.js";import{m as e}from"./p-DATDsXcA.js";import{E as o}from"./p-DUmUUj9r.js";import{C as p,a}from"./p-Cjcsf8ku.js";import{c as h,J as m}from"./p-11wdbrqX.js";import"./p-yyedWKWX.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-BrRsgB8S.js";import"./p-BH0Xfn-F.js";import"./p-DkoufM1t.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-sA8HBfkI.js";import"./p-BzT9OxlN.js";const n=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.recordClickEvent=s(this,"record-click-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){h(),this.analytics=new m(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=e({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as p}from"./p-11wdbrqX.js";import{P as a}from"./p-DY_3dcgR.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{e as n}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as d}from"./p-C9VmfRis.js";import{S as j}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-D6bKoyRc.js";import"./p-BzT9OxlN.js";import"./p-yyedWKWX.js";import"./p-B09GVew-.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-C2Senazf.js";import"./p-U3nU15el.js";import"./p-sA8HBfkI.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"767b8a3f2407435d86766c1ea947f406246a001d"},i("payouts-list-core",{key:"4e579cf8e2049033bc554319178b42511b164573",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{l as justifi_payouts_list}
@@ -1 +0,0 @@
1
- import{r as e,h as a,H as t}from"./p-DwYM91AU.js";import{az as s,J as i,l,X as d,ah as c}from"./p-sA8HBfkI.js";import{b as o,r,s as n,c as b}from"./p-CPpUGsw5.js";import{C as f,I as u,P as h}from"./p-CVaOFfrI.js";import{e as m,d as v}from"./p-B5rtFhtR.js";import{c as p}from"./p-DfKxeSrC.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:s},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},k=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,s,l,d,c,b,u,h,m,v,p,y,k,j;const x=this.formController.getInitialValues().additional_questions;return a(t,{key:"e3e354a7cf470f658e0f95d37186b1f45771b673"},a("fieldset",{key:"7fb001177a4f907d513eb5955063d446234ede0c"},a("legend",{key:"ee6b045a438be9f56345daad752e105640f1ca3d",part:i},"Additional Questions"),a("div",{key:"ed114675357f3b70c34a3eb941fdb30e6219cdc9",class:"row gy-3"},a("div",{key:"b85c27c827cf5e5d0d556c343315e5eec736f538",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"4576f67fa74ba7c2ca9730468ddc52b055a3c496",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===s?void 0:s.business_revenue,defaultValue:null==x?void 0:x.business_revenue,maskOptions:f.WHOLE})),a("div",{key:"0614c60cc7daaf890ccb4888d41b0260a26f9a0e",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"2c435c1553714d75542e0e3bcf1d723f26b37da8",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(d=null===(l=this.errors)||void 0===l?void 0:l.additional_questions)||void 0===d?void 0:d.business_payment_volume,defaultValue:null==x?void 0:x.business_payment_volume,maskOptions:f.WHOLE})),a("div",{key:"8d4a19eb0b6b5707f4a423543d86ae50f6492efc",class:"col-12"},a("form-control-select",{key:"2e49f907bae85cd4901e4aa4413284596fbed365",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(b=null===(c=this.errors)||void 0===c?void 0:c.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:o,defaultValue:null==x?void 0:x.business_when_service_received})),a("div",{key:"11bc4e0bbe2122b977cf8bc29ac0601ef941881c",class:"col-12"},a("form-control-select",{key:"c511b728971250dc3272c1ef9ff96131a9ac6a2e",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:r,defaultValue:null==x?void 0:x.business_recurring_payments})),a("div",{key:"5a40dfe41a9fca815cdf0eb7455b41615d1e6c76",class:"col-12"},a("form-control-text",{key:"d8aaf0f6d7d44b1b15ec76af198a0117493f08c6",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==x?void 0:x.business_recurring_payments_percentage})),a("div",{key:"b211bb865a60baf1ea00c81f76f000ff2a31d7bd",class:"col-12"},a("form-control-select",{key:"4b693e7425e690a59e2c70646cca2b886b8a8796",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(y=null===(p=this.errors)||void 0===p?void 0:p.additional_questions)||void 0===y?void 0:y.business_seasonal,options:n,defaultValue:null==x?void 0:x.business_seasonal})),a("div",{key:"e85b7fceb9cdc808afaf3559609b7519c9630266",class:"col-12"},a("form-control-text",{key:"ae4a6518c7499826f30376f1c902f694244059c7",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(j=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===j?void 0:j.business_other_payment_details,defaultValue:null==x?void 0:x.business_other_payment_details})))))}},j=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.isEditingTaxId=!1,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new m(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){var e,s;const o=this.formController.getInitialValues();return a(t,{key:"0dba6443b063d02368f93f3a336a8051364b5fca"},a("fieldset",{key:"42eabe1f20623241291a8bc374c14b0727fae5cd"},a("legend",{key:"b74d116fa26b843eee56201c3997ecf916453a23",part:i},"General Info"),a("div",{key:"8370be848754f5730d1f5bffbfb51875cec01218",class:"row gy-3"},a("div",{key:"b891b5ce1820755b44a4d4d14240cd6f6f705114",class:"col-12"},a("form-control-text",{key:"712f62f8feb4c34eb90048f29158c03cf71b38db",name:"legal_name",label:"Legal Name",defaultValue:o.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"52cb8a48648bb036b04fba034dc27a4b286bf7ce",class:"col-12"},a("form-control-text",{key:"655edd4ae78b47fea221308ce9e582eb731454a7",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:o.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"0cd13bcea3e7e1ef90e5d071ea40690f7a8ea022",class:"col-12 col-md-8"},a("form-control-select",{key:"00a2173bda66d059f9ef7534b3535a4f36dbbbc1",name:"classification",label:"Business Classification",options:b,defaultValue:o.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"4c157888deded84baa24ffdd5c5d74e90590c5f8",class:"col-12 col-md-4"},a("form-control-date",{key:"7af97d93cf2a9f7ff988621d53e528a8930932ed",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:o.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"b5d0493b01ad9a0853bea95b76220c939cd43828",class:"col-12 col-md-6"},a("form-control-text",{key:"5df583e04316c0afeaef771177dff20f6d266362",name:"industry",label:"Industry",defaultValue:o.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"0bd63d995778469190a97a21190e3da742a468fa",class:"col-12 col-md-6"},!(null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4)||this.isEditingTaxId?a("form-control-number-masked",{name:"tax_id",label:p[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":o.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:u[this.country],helpText:p[this.country].taxIdHelpText}):a("div",null,a("label",{class:"form-label",part:l},p[this.country].taxIdLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:d,value:`****${null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:c,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:""}))}},"Change")))),a("div",{key:"3decd3a593098a1c36e4baf1aeb846603b4a6769",class:"col-12"},a("form-control-text",{key:"e3cb697846ad086ca6f4998d302574bb4de4c4a6",name:"website_url",label:"Website URL",defaultValue:o.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"69c357ad3d2b5464d0c333c8fdc82353044b7301",class:"col-12 col-md-6"},a("form-control-text",{key:"49857dc20c817d8c600dbeae9c8191452ec1898f",name:"email",label:"Email Address",defaultValue:o.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"1c9279a56b389fcd71ffeaad66df8a067a035334",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"7c329ae3c7dcff34d88bce2a64d9ccaa09384055",name:"phone",label:"Phone Number",defaultValue:o.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:h.US})))))}},x=class{constructor(a){e(this,a),this.errors={},this.representative={},this.isEditingIdentification=!1,this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=v(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){var e;return(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)?p[this.country].idNumberLabelOptional:p[this.country].idNumberLabel}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){var e,s;const o=this.formController.getInitialValues().representative;return a(t,{key:"2d8a5324bfea8bd297b5db5f1e5aaf5d9aa51cb4"},a("fieldset",{key:"c25884a7aaa0ffb19316002e8ce9e158a1f0b8e9"},a("legend",{key:"af36d94625e4b82c8418079b60cade953ac53e8e",part:i},"Representative"),a("div",{key:"c3ad5ca5e1c636db05fa3994c443975ecc363e62",class:"row gy-3"},a("div",{key:"8b27315feb79cf08d69c5a108426705cb6445c71",class:"col-12 col-md-8"},a("form-control-text",{key:"f6ffb2619c6537f99bed5a35602d3d7d68f821ad",name:"name",label:"Full Name",defaultValue:null==o?void 0:o.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"cde914c872fcfbe0395f358b570d9cefbf14872e",class:"col-12 col-md-4"},a("form-control-text",{key:"c70330625ed26d8d5e8d00af7df55571ef4ff32a",name:"title",label:"Title",defaultValue:null==o?void 0:o.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"64bba44c0facd07c8648fba1ce31385b33f94513",class:"col-12 col-md-6"},a("form-control-text",{key:"33c7c4a365f6d7ce43e6b98b9ca3646f2263abd1",name:"email",label:"Email Address",defaultValue:null==o?void 0:o.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"5b96d76754918f37fc4f226a5c6656529b77b63f",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"c7cf814cf84a0c69e547c0b60f643b7fb78490af",name:"phone",label:"Phone Number",defaultValue:null==o?void 0:o.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:h.US})),a("div",{key:"e5c486242e9fb47c81a28831a9a648bee28e95d5",class:"col-12 col-md-4"},a("form-control-date",{key:"519cc94edb63b5f465d0ada9fe905e68aca54e1e",name:"dob_full",label:"Birth Date",defaultValue:null==o?void 0:o.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"b971e1320a57061d9d1eae7adb28eda19ce855a4",class:"col-12 col-md-8"},!(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?a("form-control-number-masked",{name:"identification_number",label:this.identificationNumberLabel,defaultValue:this.isEditingIdentification?"":null==o?void 0:o.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:u[this.country],helpText:p[this.country].identityHelpText}):a("div",null,a("label",{class:"form-label",part:l},this.identificationNumberLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:d,value:`****${null===(s=this.representative)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:c,onClick:()=>{this.isEditingIdentification=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{ssn_last4:null,identification_number:""})}))}},"Change")))),a("div",{key:"92b0c2109f98ac67a32ad57ca91c4f663d3de307",class:"col-12"},a("justifi-identity-address-form",{key:"187ac4670413b762f4f78dcde5a33ae2a73f203f",errors:this.errors.address,defaultValues:null==o?void 0:o.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},_=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e;const s=this.formController.getInitialValues().legal_address;return a(t,{key:"020c1a41ff7fa0881464463322b54754e7664957"},a("fieldset",{key:"cb1ae50abc99f8915cead7ef850de52f62bab304"},a("legend",{key:"74d2bba4a9557ff2ac5b9b34d0947e9a076ddb84",part:i},"Business Legal Address"),a("justifi-form-address-fields",{key:"86d9fc1d344ace729cdc75b1a9239b74865f306b",country:this.country,errors:null===(e=this.errors)||void 0===e?void 0:e.legal_address,defaultValues:s,inputHandler:this.inputHandler})))}};export{y as form_alert,k as justifi_additional_questions,j as justifi_business_core_info,x as justifi_business_representative,_ as justifi_legal_address_form}
@@ -1 +0,0 @@
1
- import{h as s,F as t,r as i,c as e}from"./p-DwYM91AU.js";import{E as r}from"./p-DUmUUj9r.js";import{S as l}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-CsgUIrv8.js";import"./p-sA8HBfkI.js";const n=()=>{const i=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(t,null,s(i,null),s(i,null),s(i,null),s(i,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){i(this,s),this.errorEvent=e(this,"error-event"),this.renderState=a.LOADING}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}render(){return s(l,null,this.renderState===a.LOADING?s(n,null):this.renderState===a.ERROR?r(this.errorMessage):s("justifi-details",{"error-message":this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as c}from"./p-D2muobcE.js";import{c as p,J as n}from"./p-11wdbrqX.js";import{C as h}from"./p-VRubcA-q.js";import{m,S as u}from"./p-C9VmfRis.js";import{S as d}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-CBbwdoSa.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-DkoufM1t.js";import"./p-BzT9OxlN.js";import"./p-yyedWKWX.js";import"./p-U3nU15el.js";import"./p-sA8HBfkI.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){p(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:p,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:c(u.error),code:a(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);p({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"0e9e50e18983dad43cfab19f2271678d3f5e6abd"},i("checkouts-list-core",{key:"6f128cc756477ff64638625d9a9ff9a5b4533948",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_checkouts_list}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-BrRsgB8S.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as o,a as h,b as c,c as n,d as p,e as b,f as d,g as u,h as m,i as f,j as g,k as y,l as j}from"./p-BMJe4lzg.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-D6bKoyRc.js";import{o as S,g as v}from"./p-BOqOio4U.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-DkoufM1t.js";import"./p-sA8HBfkI.js";import"./p-CgiDds_u.js";import"./p-C2Senazf.js";import"./p-U3nU15el.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new o(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),S("set",(()=>{this.pagingParams={}})),S("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,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 payoutParams(){const t=v();return Object.assign(Object.assign({},t),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(j,{key:"6a34e51911f4d507268a59e15a34f9c5d935989e"},e(h,{key:"3936b7e479f3d7a2f8fadbc7db2a36124141044c"},e(c,{key:"c537d591e4c03a7c5f5afa4bde930eb67093809e"},e(n,{key:"e3b2ea0a122d22893e657ebb13c198f6d1c7b47b"},this.payoutsTable.columnData.map((t=>t)))),e(p,{key:"3491e95b3c95e010635949ba07c5602eb7ae7d6c"},e(b,{key:"87bf5cfb79b9546f0b70c3f681671c8baccf1253",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(d,{key:"587ab70585ce504cb63d27652707fa1d28ec5ec1",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(u,{key:"26cb66316044265b486390ae1d05a253f90911e1",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"5120d2473b31550907e1bdc0b4fff3084c8d3aed"},e(g,{key:"81a989720c8eb9439a959c7100956f33487cbeee"},e(y,{key:"b3357b46b1f11e75b4c73c6de6d5c121b1c6710b",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"73d8bedbb95826a43746b9ab08322c28e40a7f5d",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{w as payouts_list_core}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{E as r}from"./p-DUmUUj9r.js";import{B as o}from"./p-Dlrq1iZf.js";import{m as p}from"./p-sCHf--Vc.js";import{C as e,a as m}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-11wdbrqX.js";import"./p-sA8HBfkI.js";import"./p-yyedWKWX.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-BrRsgB8S.js";import"./p-BH0Xfn-F.js";import"./p-DkoufM1t.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-BzT9OxlN.js";const a=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import{D as i}from"./p-Bg2SZArf.js";import{D as r,a as h}from"./p-BH0Xfn-F.js";const o=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event"),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===i.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===i.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==h.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.isLoading=!1}})}render(){return e("div",{key:"6374c478bc8907019b48e1a53b0ecb2e171ab2e4"},this.showDisputeResponseForm?e("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):e("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{o as justifi_dispute_management_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as a,H as e}from"./p-DwYM91AU.js";import{b as i,X as o,a as r,c as h,l as c,Y as n}from"./p-sA8HBfkI.js";import{F as f}from"./p-CK_XkZku.js";import{F as l}from"./p-CZ3F1ZAT.js";import"./p-CZfYo5-1.js";import{f as d}from"./p-B09GVew-.js";import"./p-HXpYMWUU.js";const p=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>d(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,a=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(a),this.inputHandler(s,a),this.formControlInput.emit({name:s,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return a(e,{key:"26420a8cfbf1b2e121a62971060603aa83cf3e70"},a("div",{key:"59c4042f4b6c7c0116af7b2cf3194924be87d8b5",class:"form-group d-flex flex-column"},a("label",{key:"37454ea79c867986b12aa1b0acb63041e10c47d9",part:c,class:"form-label",htmlFor:this.name},this.label),a(f,{key:"005a9bafecbcf6de1629f56562a6fb2588749ef5",name:this.name,helpText:this.helpText}),a("div",{key:"d1a12b4c4e444b788e8a96a23c1ca12c3b02f90e",class:"input-group"},a("span",{key:"e4100991c98e073d559a4378340288829bca8e63",class:"input-group-text",part:n},"$"),a("input",{key:"b14b182e5df0eb3cf7a5fd4abd7eda4969e9413c",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),a(l,{key:"4fd052b178da46d734bdbd88f063dd1ed021d47e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as a,H as i}from"./p-DwYM91AU.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-CVaOFfrI.js";import{a1 as h,l as o,Y as c,b as n,X as l,a as f}from"./p-sA8HBfkI.js";import{F as d}from"./p-CK_XkZku.js";import{F as p}from"./p-CZ3F1ZAT.js";import"./p-CZfYo5-1.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=n),this.disabled&&(t=l),this.isFocused&&(t=f),t}render(){return a(i,{key:"5dc9ad5ec4f9af9bb4afec0d5265a35c52167721"},a("div",{key:"03efd5093d0176772bbcb070b8e580c1c027ed0e",class:"form-group d-flex flex-column"},a("label",{key:"153721fcb4f29fca302512ecc29b8bc30e5f6aa3",part:o,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"16250c5429d1047febcdd056b55a38a09441fcbd",class:"input-group"},a("span",{key:"12d29ec8820f21bfa2ba7ae25217cb9bf3944cb8",class:"input-group-text",part:c},"$"),a("input",{key:"9eb4547dba64f8979b30e8d212b7e0576c3b4491",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(d,{key:"c6601c7cc606c915bf3c01535bd907d4990ea0ca",helpText:this.helpText,name:this.name}),a(p,{key:"89634f2156d5aae538e700f16554451120ec8a6d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-DwYM91AU.js";import{f as t,p as s,c as r}from"./p-BUsqF4-J.js";import{w as l,x as d,y as i,z as o,A as p}from"./p-sA8HBfkI.js";import{S as b}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import"./p-tGDdRx0W.js";import{c,a as f}from"./p-B09GVew-.js";import"./p-Cjcsf8ku.js";import{T as n,b as m}from"./p-BrRsgB8S.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-BYsgavgS.js";import"./p-HXpYMWUU.js";import"./p-DkoufM1t.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=c(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(b,{key:"70418a386030b340813ba6b4015cec977c7ed542"},a("table-filters-menu",{key:"7ba680b0cc5cccc8fd8de210e8e9bed4b99b8790",params:e,clearParams:r,part:l},a("div",{key:"2c4da0d02234051d3b48724d359f5c74c913bbf7",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"ad35b10dba39d2acf44eb078cf616d73815a258c",class:"p-2"},a("form-control-select",{key:"9674d6da3301cd66562effa5aa062b004db4715c",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status||"",disabled:!!this.orderStatus,part:d})),a("div",{key:"f94a308a3af71a8982ce120f2a3a532431473dcb",class:"p-2"},a("form-control-select",{key:"295de18dd0af6229fff627cb3236dfdb1635b693",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type||"",disabled:!!this.orderType,part:i})),a("div",{key:"eb9b7a1fe7454722b38c9bb989b4f702bf7ae8af",class:"p-2"},a("form-control-date",{key:"9d616f29de5b6dfb32abba8249d21986ba7ba4e8",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:f(this.createdAfter,{showInputDateTime:!0})||f(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"f1e6fbb2147d0ec7e446dcef704c2f347ed21efa",class:"p-2"},a("form-control-date",{key:"c49dc4cff66936c2a943771658f57200c825a168",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:f(this.createdBefore,{showInputDateTime:!0})||f(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{c as s,a as e}from"./p-DiJD6Iqx.js";import{m as i,d as a,i as n,b as t,a as r,p as o,e as _,w as u,c,t as l,o as m,f as b,g as d,r as p}from"./p-D032AB34.js";import{C as h}from"./p-B5rtFhtR.js";import{c as f}from"./p-DfKxeSrC.js";const v=e=>{const i=s({legal_name:c.required("Enter legal name"),website_url:u.required("Enter business website url"),email:_.required("Enter business email"),phone:o.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:n.required("Enter a business industry"),date_of_incorporation:a.required("Enter date of incorporation")}),m=s({legal_name:c.required("Enter legal name"),website_url:u.nullable(),email:_.nullable(),phone:o.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:n.nullable(),tax_id:l.nullable(),date_of_incorporation:a.nullable()});return e?m:i},w=a=>v(a).concat(s({classification:e().required("Select business classification"),tax_id:i(h.USA).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${f.USA.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),E=a=>v(a).concat(s({classification:e().required("Select business classification"),tax_id:i(h.CAN).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${f.CAN.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),x=e=>{const i=s({business_revenue:p.required("Enter business revenue"),business_payment_volume:d.required("Enter business payment volume"),business_when_service_received:b.required("Select when service is received"),business_other_payment_details:m.nullable()}),a=s({business_revenue:p.nullable(),business_payment_volume:d.nullable(),business_when_service_received:b.nullable(),business_other_payment_details:m.nullable()});return e?a:i};export{x as a,w as b,E as c}
@@ -1 +0,0 @@
1
- const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`link text ${a}`,p=`button ${e}`,c=`button-primary ${p}`,m=`button-secondary ${p}`,u=`button-link ${p}`,f="button-loading",b=`label ${e}`,g=`input ${e} ${t}`,h=`input-group ${g}`,k=`input-invalid ${g}`,y=`input-disabled ${g}`,x=`input-focused ${g}`,v=`input-invalid-and-focused ${g}`,w="input-radio",j=`input-radio-focused ${w}`,q=`input-radio-checked ${w}`,z=`input-radio-checked-focused ${w}`,A=`input-radio-invalid ${w}`,B="input-checkbox",C=`input-checkbox-invalid ${B}`,D=`input-checkbox-focused ${B}`,E=`input-checkbox-checked ${B}`,F=`input-checkbox-checked-focused ${B}`,G=`input-adornment ${e}`,H=`alert-danger alert ${e}`,I=`tooltip ${e}`,J=`tooltip-icon ${e}`,K=`tooltip-inner ${e}`,L=`card ${e} ${t}`,M=`table ${e} ${t}`,N=`table-row ${e} ${t}`,O=`table-cell ${e} ${t}`,P="table-head",Q=`table-head-row ${e} ${t}`,R=`table-head-cell ${O}`,S="table-foot",T=`table-foot-row ${e} ${t}`,U=`table-foot-cell ${O}`,V=`table-cell-even ${O}`,W=`table-cell-odd ${O}`,X=a=>a%2?V:W,Y=`table-empty ${e} ${t}`,Z=`table-error ${e} ${t}`,_=`pagination-button ${p}`,aa=`pagination-button-disabled button-disabled ${p}`,ta=`pagination-button-text ${e}`,ea=`pagination-button-icon ${e}`,sa=`pagination-button-icon-next ${ea}`,ia=`pagination-button-icon-previous ${ea}`,ra="loading-spinner",la=`badge ${a}`,na=`${la} badge-primary`,oa=`${la} badge-secondary`,$a=`${la} badge-success`,da=`${la} badge-danger`,pa=`${la} badge-warning`,ca=`${la} badge-info`,ma=`${la} badge-light`,ua=`${la} badge-dark`,fa=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${c}`,ga=`radio-list-item ${e}`,ha="skeleton",ka="image",ya="billing-form",xa="checkout-summary",va="filter-menu",wa=`${va} payments-list-filter-menu`,ja="payments-list-filter-param",qa=`${ja} payment-id-payments-list-filter-param`,za=`${ja} terminal-id-payments-list-filter-param`,Aa=`${ja} payment-status-payments-list-filter-param`,Ba=`${ja} created-after-payments-list-filter-param`,Ca=`${ja} created-before-payments-list-filter-param`,Da=`${va} payouts-list-filter-menu`,Ea="payouts-list-filter-param",Fa=`${Ea} created-after-payouts-list-filter-param`,Ga=`${Ea} created-before-payouts-list-filter-param`,Ha=`${va} checkouts-list-filter-menu`,Ia="checkouts-list-filter-param",Ja=`${Ia} checkout-status-checkouts-list-filter-param`,Ka=`${Ia} payment-mode-checkouts-list-filter-param`,La=`${Ia} checkout-id-checkouts-list-filter-param`,Ma=`${Ia} created-after-checkouts-list-filter-param`,Na=`${Ia} created-before-checkouts-list-filter-param`,Oa=`${va} terminals-list-filter-menu`,Pa="terminals-list-filter-param",Qa=`${Pa} terminal-id-terminals-list-filter-param`,Ra=`${Pa} terminal-order-id-terminals-list-filter-param`,Sa=`${Pa} terminal-status-terminals-list-filter-param`,Ta=`${va} terminal-orders-list-filter-menu`,Ua="terminal-orders-list-filter-param",Va=`${Ua} order-status-terminal-orders-list-filter-param`,Wa=`${Ua} order-type-terminal-orders-list-filter-param`,Xa=`${Ua} created-after-terminal-orders-list-filter-param`,Ya=`${Ua} created-before-terminal-orders-list-filter-param`;export{u as $,Ya as A,Oa as B,Qa as C,Ra as D,Sa as E,ha as F,e as G,s as H,r as I,l as J,d as K,ua as L,ma as M,ca as N,pa as O,da as P,$a as Q,oa as R,na as S,la as T,ra as U,R as V,X as W,y as X,G as Y,n as Z,ka as _,x as a,L as a0,h as a1,C as a2,F as a3,D as a4,E as a5,B as a6,A as a7,z as a8,q as a9,I as aA,K as aB,J as aC,j as aa,w as ab,_ as ac,aa as ad,ia as ae,ta as af,sa as ag,m as ah,c as ai,f as aj,ba as ak,fa as al,o as am,ya as an,$ as ao,M as ap,P as aq,Q as ar,N as as,S as at,T as au,U as av,Y as aw,Z as ax,O as ay,H as az,k as b,g as c,xa as d,Ha as e,La as f,Ma as g,Na as h,v as i,wa as j,qa as k,b as l,Aa as m,Ba as n,Ca as o,Ka as p,Da as q,Fa as r,Ja as s,za as t,Ga as u,ga as v,Ta as w,Va as x,Wa as y,Xa as z}
@@ -1,17 +0,0 @@
1
- const { FlatCompat } = require('@eslint/eslintrc');
2
- const compat = new FlatCompat();
3
-
4
- module.exports = [
5
- ...compat.extends('plugin:mdx/recommended'),
6
- {
7
- rules: {
8
- 'mdx/no-unused-expressions': 'off',
9
- 'mdx/no-jsx-html-comments': 'off',
10
- },
11
- settings: {
12
- 'mdx/remark': {
13
- plugins: ['remark-frontmatter'],
14
- },
15
- },
16
- },
17
- ];
@@ -1,17 +0,0 @@
1
- ---
2
- id: changelog/index
3
- title: Changelog
4
- description: Release history for @justifi/webcomponents and related tooling.
5
- ---
6
-
7
- We keep the authoritative changelog in GitHub so every commit that ships to
8
- npm stays auditable.
9
-
10
- - [View the latest releases](https://github.com/justifi-tech/web-component-library/releases)
11
- - [Browse the `packages/webcomponents/CHANGELOG.md` file](https://github.com/justifi-tech/web-component-library/blob/main/packages/webcomponents/CHANGELOG.md)
12
- - [Install the newest version from npm](https://www.npmjs.com/package/@justifi/webcomponents)
13
-
14
- > Looking for upgrade guidance? Each release entry documents breaking changes,
15
- > deprecations, and migration notes so you can copy the relevant snippets into
16
- > your internal runbooks.
17
-
@@ -1,143 +0,0 @@
1
- ---
2
- id: entities/businessdetails/index
3
- title: Business Details
4
- sidebar_label: BusinessDetails
5
- description: Collect and review business profile information with inline validation and KYC-friendly formatting.
6
- sidebar_position: 10
7
- ---
8
-
9
- import {
10
- PropsTable,
11
- PartsTable,
12
- getWebcomponentsVersion,
13
- } from '@justifi/webcomponents/docs/helpers';
14
-
15
- ## Overview
16
-
17
- Component to render detailed information about a business. You will need to first create a business via [Business API](https://docs.justifi.tech/api-spec#tag/Business) to get the business-id required for this component.
18
-
19
- ## Usage
20
-
21
- <pre><code className="language-html">{`<!DOCTYPE html>
22
- <html dir="ltr" lang="en">
23
-
24
- <head>
25
- <meta charset="utf-8" />
26
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
27
- <title>justifi-business-details</title>
28
-
29
- <script
30
- type="module"
31
- src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.esm.js"
32
- ></script>
33
-
34
- <script
35
- nomodule
36
- src="https://cdn.jsdelivr.net/npm/@justifi/webcomponents@${getWebcomponentsVersion()}/dist/webcomponents/webcomponents.js"
37
- ></script>
38
-
39
- <style>
40
- ::part(font-family) {
41
- font-family: georgia;
42
- }
43
-
44
- ::part(color) {
45
- color: darkslategray;
46
- }
47
-
48
- ::part(background-color) {
49
- background-color: transparent;
50
- }
51
- </style>
52
-
53
- </head>
54
-
55
- <body>
56
- <justifi-business-details business-id="biz_123" auth-token="authToken" />
57
- </body>
58
-
59
- <script>
60
- (function () {
61
- const businessDetails = document.querySelector('justifi-business-details');
62
-
63
- businessDetails.addEventListener('error-event', (event) => {
64
- // here is where you would handle the error
65
- console.error('error-event', event.detail);
66
- });
67
- })();
68
- </script>
69
-
70
- </html>`}</code></pre>
71
-
72
- ## Props, Events & Methods
73
-
74
- <div
75
- dangerouslySetInnerHTML={{
76
- __html: PropsTable([
77
- {
78
- name: 'account-id',
79
- type: 'string',
80
- required: true,
81
- description:
82
- 'Owning platform account; used for authorization and data scoping.',
83
- },
84
- {
85
- name: 'auth-token',
86
- type: 'string',
87
- required: true,
88
- description: 'Short-lived token with `write:onboarding` scope.',
89
- },
90
- {
91
- name: 'business-id',
92
- type: 'string',
93
- required: true,
94
- description:
95
- 'Existing business to hydrate; omit for brand-new entities.',
96
- },
97
- {
98
- name: 'locale',
99
- type: 'string',
100
- defaultValue: 'en-US',
101
- description:
102
- 'Controls localization of labels, address formatting, and validation hints.',
103
- },
104
- {
105
- name: 'readonly',
106
- type: 'boolean',
107
- defaultValue: 'false',
108
- description: 'Displays the form as read-only for audit surfaces.',
109
- },
110
- ]),
111
- }}
112
- />
113
-
114
- ### Events
115
-
116
- - `submitted`: Fires when all sections validate and emit an updated business payload.
117
- - `error-event`: Emits when API requests fail or validation errors occur; payload includes field-level hints.
118
-
119
- ### Public methods
120
-
121
- 1. `submit()` – Programmatically trigger validation and submission.
122
- 2. `reset()` – Clear the form back to the most recently loaded business payload.
123
-
124
- ## Theming & Layout
125
-
126
- <div
127
- dangerouslySetInnerHTML={{
128
- __html: PartsTable([
129
- {
130
- name: 'font-family',
131
- description: 'Controls the font family for the component.',
132
- },
133
- {
134
- name: 'color',
135
- description: 'Controls the text color.',
136
- },
137
- {
138
- name: 'background-color',
139
- description: 'Controls the background color.',
140
- },
141
- ]),
142
- }}
143
- />