@justifi/webcomponents 6.7.2 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (788) hide show
  1. package/dist/cjs/{Api-QUTWjGTy.js → Api-CVbEWBG6.js} +1 -1
  2. package/dist/cjs/{Business-DWHy_-z9.js → Business-CB8EVrhD.js} +6 -0
  3. package/dist/cjs/{GooglePay-BwiJ_80p.js → Plaid-DxPvVu0H.js} +54 -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_9.cjs.entry.js +532 -0
  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-Cnh6AXQU.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-B3CbEmdc.js} +1 -1
  11. package/dist/cjs/{business-identity-schema-D_OO0Suf.js → business-identity-schema-0jg2Thn9.js} +6 -2
  12. package/dist/cjs/{business.service-q93NsTG_.js → business.service-zGEitIbP.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-DKH70uPq.js} +12 -11
  16. package/dist/cjs/{checkout.service-CwelwhrT.js → checkout.service-DT13pWxH.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-ETD-7Wb7.js} +1 -1
  22. package/dist/cjs/custom-popper_2.cjs.entry.js +52 -21
  23. package/dist/cjs/{dispute.service-q5ha39uN.js → dispute.service-GDUl1Wjs.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-CP0ALW9n.js} +1 -1
  38. package/dist/cjs/{get-payment-details-DidIAK2i.js → get-payment-details-IA5Toi7Z.js} +4 -4
  39. package/dist/cjs/{get-subaccounts-BE_wcfM7.js → get-subaccounts-DNMZjAyT.js} +5 -5
  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-gV1LyFy3.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 +34 -34
  49. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +101 -67
  50. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  51. package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +247 -317
  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 +22 -22
  56. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +17 -17
  57. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
  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 +20 -20
  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 +17 -17
  69. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
  70. package/dist/cjs/justifi-payments-list.cjs.entry.js +17 -17
  71. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -13
  72. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +17 -17
  73. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
  74. package/dist/cjs/justifi-payouts-list.cjs.entry.js +18 -18
  75. package/dist/cjs/justifi-refund-payment.cjs.entry.js +20 -20
  76. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -4
  77. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +17 -17
  78. package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
  79. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +18 -18
  80. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
  81. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +14 -14
  82. package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
  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-B4vs5j7c.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 +21 -21
  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-QODfB293.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-k7GBuYzk.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/plaid-icon-DTpONc_Q.js +46 -0
  103. package/dist/cjs/{schema-validations-Bf2mk2xU.js → schema-validations-BakyfJpE.js} +19 -3
  104. package/dist/cjs/{skeleton-B8dzxFFr.js → skeleton-BGGMhPJj.js} +2 -2
  105. package/dist/cjs/{spinner-jHyLNCGO.js → spinner-CV2CNXOQ.js} +2 -2
  106. package/dist/cjs/{styled-host-D5g7INLE.js → styled-host-DAi5SuFa.js} +1 -1
  107. package/dist/cjs/{table-CrtpRwGN.js → table-eTN_pRIP.js} +3 -3
  108. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
  109. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +14 -14
  110. package/dist/cjs/{terminal-orders-list-params-state-DfZySwaC.js → terminal-orders-list-params-state-vGJZ6Oe2.js} +1 -1
  111. package/dist/cjs/{terminal-orders-table-DT53anT3.js → terminal-orders-table-C6j6Mx_r.js} +8 -8
  112. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +4 -4
  113. package/dist/cjs/{terminal.service-CFt55QNO.js → terminal.service-A90K3XNq.js} +3 -3
  114. package/dist/cjs/terminals-list-core.cjs.entry.js +14 -14
  115. package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +22 -0
  116. package/dist/cjs/{terminals-table-DahpSz98.js → terminals-table-DZz8k4tP.js} +3 -3
  117. package/dist/cjs/{utils-CMiA4X7s.js → utils-T6hRmGuY.js} +2 -2
  118. package/dist/cjs/webcomponents.cjs.js +30 -3
  119. package/dist/collection/api/Analytics.js +8 -7
  120. package/dist/collection/api/Business.js +3 -0
  121. package/dist/collection/api/Identity.js +3 -0
  122. package/dist/collection/api/Plaid.js +50 -0
  123. package/dist/collection/api/index.js +1 -0
  124. package/dist/collection/api/services/plaid.service.js +13 -0
  125. package/dist/collection/collection-manifest.json +1 -0
  126. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  127. package/dist/collection/components/business-details/business-details-core.js +2 -2
  128. package/dist/collection/components/business-details/business-details.js +2 -2
  129. package/dist/collection/components/business-details/core-info-details/core-info-details.js +1 -1
  130. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -1
  131. package/dist/collection/components/business-details/owner-details/owner-details.js +1 -1
  132. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  133. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  134. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +4 -4
  135. package/dist/collection/components/business-forms/business-form/business-form.js +2 -2
  136. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +4 -4
  137. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +3 -3
  138. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +5 -5
  139. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +6 -6
  140. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -7
  141. package/dist/collection/components/business-forms/owner-form/owner-form.js +4 -4
  142. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +4 -4
  143. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +4 -4
  144. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +5 -5
  145. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +5 -5
  146. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +2 -2
  147. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +23 -8
  148. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +3 -3
  149. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +35 -7
  150. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +6 -6
  151. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
  152. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +4 -4
  153. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +19 -11
  154. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
  155. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +20 -8
  156. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +7 -7
  157. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
  158. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -3
  159. package/dist/collection/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.js +433 -0
  160. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -3
  161. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +2 -0
  162. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +5 -1
  163. package/dist/collection/components/business-forms/schemas/schema-validations.js +15 -0
  164. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  165. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  166. package/dist/collection/components/checkout/checkout.js +23 -4
  167. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  168. package/dist/collection/components/checkout/saved-payment-method.js +3 -3
  169. package/dist/collection/components/checkouts-list/checkouts-list-core.js +4 -4
  170. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  171. package/dist/collection/components/checkouts-list/checkouts-list.js +3 -3
  172. package/dist/collection/components/dispute-management/dispute-management-core.js +4 -4
  173. package/dist/collection/components/dispute-management/dispute-management.js +3 -3
  174. package/dist/collection/components/dispute-management/dispute-notification.js +5 -5
  175. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +2 -2
  176. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +2 -2
  177. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +2 -2
  178. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  179. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -4
  180. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +2 -2
  181. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +2 -2
  182. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +2 -2
  183. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +2 -2
  184. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +2 -2
  185. package/dist/collection/components/filters/table-filters-menu.js +3 -3
  186. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
  187. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -2
  188. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +7 -7
  189. package/dist/collection/components/modular-checkout/modular-checkout.js +3 -3
  190. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
  191. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  192. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  193. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  194. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  195. package/dist/collection/components/modular-checkout/sub-components/google-pay.js +2 -2
  196. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +6 -6
  197. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +4 -51
  198. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  199. package/dist/collection/components/order-terminals/order-terminals.js +4 -4
  200. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +5 -5
  201. package/dist/collection/components/payment-details/payment-details-core.js +9 -9
  202. package/dist/collection/components/payment-details/payment-details.js +2 -2
  203. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +3 -3
  204. package/dist/collection/components/payments-list/payments-list-core.js +3 -3
  205. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  206. package/dist/collection/components/payments-list/payments-list.js +3 -3
  207. package/dist/collection/components/payout-details/payout-details-core.js +5 -5
  208. package/dist/collection/components/payout-details/payout-details.js +2 -2
  209. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +3 -3
  210. package/dist/collection/components/payouts-list/payouts-list-core.js +5 -5
  211. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  212. package/dist/collection/components/payouts-list/payouts-list.js +3 -3
  213. package/dist/collection/components/refund-payment/refund-payment.js +3 -3
  214. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -3
  215. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  216. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +3 -3
  217. package/dist/collection/components/terminals-list/terminals-list-core.js +4 -4
  218. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  219. package/dist/collection/components/terminals-list/terminals-list.js +3 -3
  220. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
  221. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  222. package/dist/collection/ui-components/custom-popper/custom-popper.js +51 -17
  223. package/dist/collection/ui-components/details/details.js +2 -2
  224. package/dist/collection/ui-components/form/form-control-checkbox.js +16 -10
  225. package/dist/collection/ui-components/form/form-control-date.js +5 -5
  226. package/dist/collection/ui-components/form/form-control-file-v2.js +16 -8
  227. package/dist/collection/ui-components/form/form-control-file.js +16 -10
  228. package/dist/collection/ui-components/form/form-control-monetary.js +5 -5
  229. package/dist/collection/ui-components/form/form-control-number-masked.js +14 -10
  230. package/dist/collection/ui-components/form/form-control-number.js +10 -8
  231. package/dist/collection/ui-components/form/form-control-radio.js +18 -12
  232. package/dist/collection/ui-components/form/form-control-select.js +6 -6
  233. package/dist/collection/ui-components/form/form-control-text.js +5 -5
  234. package/dist/collection/ui-components/form/form-control-textarea.js +19 -11
  235. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -2
  236. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +2 -2
  237. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
  238. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  239. package/dist/collection/ui-components/form/iframe-input.js +6 -6
  240. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  241. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
  242. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  243. package/dist/docs.json +714 -273
  244. package/dist/esm/{Api-Dln8a6No.js → Api-ohkSjyhl.js} +1 -1
  245. package/dist/esm/{Business-B5rtFhtR.js → Business-GgW1g7FQ.js} +6 -0
  246. package/dist/esm/{GooglePay-NNHE-OLJ.js → Plaid-CBrksnBN.js} +53 -2
  247. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  248. package/dist/esm/{badge-DtrH25ss.js → badge-BW9VFFkp.js} +2 -2
  249. package/dist/esm/bank-account-document-form-inputs_9.entry.js +522 -0
  250. package/dist/esm/bank-account-form.entry.js +7 -7
  251. package/dist/esm/{business-additional-questions-schema-woG5-pgK.js → business-additional-questions-schema-CQ8CuEfQ.js} +5 -3
  252. package/dist/esm/business-details-core.entry.js +7 -7
  253. package/dist/esm/{business-form-options-D6s5H4RI.js → business-form-options-DamBLV7N.js} +1 -1
  254. package/dist/esm/{business-identity-schema-B7VTDF4j.js → business-identity-schema-BTyJz7M9.js} +7 -3
  255. package/dist/esm/{business.service-BrUSam2T.js → business.service-BWm7Kqs4.js} +3 -3
  256. package/dist/esm/{button-Bpf3VX8Q.js → button-DMeChykB.js} +2 -2
  257. package/dist/esm/card-form.entry.js +7 -7
  258. package/dist/esm/{check-pkg-version-c_8fDHCB.js → check-pkg-version-CioeuqLV.js} +12 -11
  259. package/dist/esm/{checkout.service-Bxt1qPaY.js → checkout.service-D4Mljqjr.js} +3 -3
  260. package/dist/esm/checkouts-list-core.entry.js +14 -14
  261. package/dist/esm/{checkouts-list-params-state-gllzDQAb.js → checkouts-list-params-state-CiGfmyWW.js} +1 -1
  262. package/dist/esm/{checkouts-table-CB4GdlcZ.js → checkouts-table-B9YTe5fJ.js} +3 -3
  263. package/dist/esm/{config-state-C2NXATwF.js → config-state-kKn89dp1.js} +1 -1
  264. package/dist/esm/{country-config-BQ4D46Lb.js → country-config-D-9YmU94.js} +1 -1
  265. package/dist/esm/custom-popper_2.entry.js +52 -21
  266. package/dist/esm/{dispute.service-DYRYxxaT.js → dispute.service-ZpqfPDC0.js} +3 -3
  267. package/dist/esm/form-alert_5.entry.js +11 -11
  268. package/dist/esm/form-control-checkbox.entry.js +11 -8
  269. package/dist/esm/form-control-date.entry.js +7 -7
  270. package/dist/esm/{form-control-error-text-BZYykCDp.js → form-control-error-text-CTQxgr7_.js} +2 -2
  271. package/dist/esm/form-control-file-v2_2.entry.js +17 -10
  272. package/dist/esm/{form-control-help-text-D-p66Yxr.js → form-control-help-text-B-aaeX6n.js} +2 -2
  273. package/dist/esm/form-control-help-text.entry.js +1 -1
  274. package/dist/esm/form-control-monetary-provisioning.entry.js +12 -8
  275. package/dist/esm/form-control-monetary.entry.js +8 -8
  276. package/dist/esm/form-control-number-masked_3.entry.js +13 -11
  277. package/dist/esm/{owner-form-core_2.entry.js → form-control-number_3.entry.js} +71 -19
  278. package/dist/esm/form-control-radio.entry.js +9 -6
  279. package/dist/esm/form-control-select_2.entry.js +11 -11
  280. package/dist/esm/{get-business-Xt7B5dSo.js → get-business-BMB2IxN_.js} +1 -1
  281. package/dist/esm/{get-payment-details-BJ1PLhJZ.js → get-payment-details-B71Qi6mF.js} +3 -3
  282. package/dist/esm/{get-subaccounts-CzGHjlUF.js → get-subaccounts-DXJdRbWg.js} +4 -4
  283. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  284. package/dist/esm/{header-1-WwkF5F9y.js → header-1-DFMANSXo.js} +2 -2
  285. package/dist/esm/{header-3-C5jS39cE.js → header-3-Ck64YtdM.js} +2 -2
  286. package/dist/esm/hidden-input_2.entry.js +10 -10
  287. package/dist/esm/index-CV0Pyo1O.js +4434 -0
  288. package/dist/esm/{index-B-fWxE5e.js → index-cDVGjRkU.js} +90 -21
  289. package/dist/esm/{input-handlers-D3y0TzH9.js → input-handlers-CzWCJ849.js} +1 -1
  290. package/dist/esm/{insurance-state-C11WKZU6.js → insurance-state-DQ3xzFpR.js} +3 -3
  291. package/dist/esm/internal-tokenize-payment-method_7.entry.js +23 -23
  292. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +89 -55
  293. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  294. package/dist/esm/justifi-apple-pay_8.entry.js +35 -105
  295. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +10 -10
  296. package/dist/esm/justifi-business-details.entry.js +13 -13
  297. package/dist/esm/justifi-business-form.entry.js +22 -22
  298. package/dist/esm/justifi-checkout.entry.js +15 -15
  299. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -10
  300. package/dist/esm/justifi-checkouts-list.entry.js +16 -16
  301. package/dist/esm/justifi-config-provider.entry.js +3 -3
  302. package/dist/esm/justifi-details.entry.js +4 -4
  303. package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
  304. package/dist/esm/justifi-dispute-management.entry.js +11 -11
  305. package/dist/esm/justifi-dispute-notification_3.entry.js +25 -25
  306. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
  307. package/dist/esm/justifi-order-terminals.entry.js +17 -17
  308. package/dist/esm/justifi-payment-details.entry.js +14 -14
  309. package/dist/esm/justifi-payment-provisioning-core.entry.js +23 -11
  310. package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
  311. package/dist/esm/justifi-payment-transactions-list.entry.js +16 -16
  312. package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
  313. package/dist/esm/justifi-payments-list.entry.js +16 -16
  314. package/dist/esm/justifi-payout-details.entry.js +12 -12
  315. package/dist/esm/justifi-payout-transactions-list.entry.js +16 -16
  316. package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
  317. package/dist/esm/justifi-payouts-list.entry.js +17 -17
  318. package/dist/esm/justifi-refund-payment.entry.js +16 -16
  319. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  320. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -14
  321. package/dist/esm/justifi-skeleton.entry.js +5 -5
  322. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
  323. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
  324. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
  325. package/dist/esm/justifi-terminals-list.entry.js +16 -16
  326. package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
  327. package/dist/esm/loader.js +3 -3
  328. package/dist/esm/{package-BzT9OxlN.js → package-CekpA_KC.js} +1 -1
  329. package/dist/esm/pagination-menu.entry.js +2 -2
  330. package/dist/esm/{parts-sA8HBfkI.js → parts-DrquDBSk.js} +1 -1
  331. package/dist/esm/payment-details-core.entry.js +20 -20
  332. package/dist/esm/payment-method-option.entry.js +4 -4
  333. package/dist/esm/payment-provisioning-loading-DU0pNyqx.js +10 -0
  334. package/dist/esm/{payment.service-BoGemgMw.js → payment.service-C2lFq1yV.js} +3 -3
  335. package/dist/esm/payments-list-core.entry.js +15 -15
  336. package/dist/esm/{payments-list-params-state-gllzDQAb.js → payments-list-params-state-CiGfmyWW.js} +1 -1
  337. package/dist/esm/{payments-status-CADg1cD0.js → payments-status-Bn-MvMcF.js} +2 -2
  338. package/dist/esm/{payments-table-C6zHWwGO.js → payments-table-CF3_zGnh.js} +3 -3
  339. package/dist/esm/payout-details-core.entry.js +13 -13
  340. package/dist/esm/{payout.service-BSG50wqN.js → payout.service-ChupMPKT.js} +3 -3
  341. package/dist/esm/payouts-list-core.entry.js +15 -15
  342. package/dist/esm/{payouts-list-params-state-gllzDQAb.js → payouts-list-params-state-CiGfmyWW.js} +1 -1
  343. package/dist/esm/{payouts-status-4VDQvaYV.js → payouts-status-ehZrz-Xx.js} +2 -2
  344. package/dist/esm/{payouts-table-BU5XbzB9.js → payouts-table-CGZJfsje.js} +3 -3
  345. package/dist/esm/plaid-icon-wJLd-2NX.js +43 -0
  346. package/dist/esm/{schema-validations-iamDi5JD.js → schema-validations-CfHWzMvr.js} +19 -4
  347. package/dist/esm/{skeleton-Dtt56Fl3.js → skeleton-D9UXuoik.js} +2 -2
  348. package/dist/esm/{spinner-DikooWuI.js → spinner-ACMfJh3a.js} +2 -2
  349. package/dist/esm/{styled-host-DhOcKWqZ.js → styled-host-D6byRazK.js} +1 -1
  350. package/dist/esm/{table-1hqe6s5m.js → table-BbMG2jg9.js} +3 -3
  351. package/dist/esm/table-filters-menu.entry.js +4 -4
  352. package/dist/esm/terminal-orders-list-core.entry.js +14 -14
  353. package/dist/esm/{terminal-orders-list-params-state-gllzDQAb.js → terminal-orders-list-params-state-CiGfmyWW.js} +1 -1
  354. package/dist/esm/{terminal-orders-table-BsVBelxB.js → terminal-orders-table-B4_RAxxx.js} +6 -6
  355. package/dist/esm/terminal-quantity-selector.entry.js +4 -4
  356. package/dist/esm/{terminal.service-YKfi6Mr9.js → terminal.service-DqibXFHt.js} +3 -3
  357. package/dist/esm/terminals-list-core.entry.js +14 -14
  358. package/dist/esm/terminals-list-params-state-CiGfmyWW.js +16 -0
  359. package/dist/esm/{terminals-table-CXJTn-0I.js → terminals-table-B-7FR4ug.js} +3 -3
  360. package/dist/esm/{utils-CgFsPVsv.js → utils-DhCv62Pi.js} +2 -2
  361. package/dist/esm/webcomponents.js +31 -4
  362. package/dist/module/Analytics.js +9 -8
  363. package/dist/module/Business.js +6 -0
  364. package/dist/module/{Refund.js → Plaid.js} +51 -1
  365. package/dist/module/additional-questions.js +1 -1
  366. package/dist/module/additional-statement.js +2 -2
  367. package/dist/module/bank-account-billing-form-simple.js +1 -1
  368. package/dist/module/bank-account-document-inputs.js +2 -2
  369. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  370. package/dist/module/bank-account-form-inputs2.js +1 -1
  371. package/dist/module/bank-account-form.js +2 -2
  372. package/dist/module/bank-account-read-only-value2.js +1 -1
  373. package/dist/module/bank-account.js +2 -2
  374. package/dist/module/business-additional-questions-form-step.js +3 -3
  375. package/dist/module/business-additional-questions-schema.js +3 -1
  376. package/dist/module/business-address-schema.js +1 -1
  377. package/dist/module/business-bank-account-form-step.js +47 -26
  378. package/dist/module/business-core-info-form-step.js +1 -1
  379. package/dist/module/business-core-info.js +2 -2
  380. package/dist/module/business-details-core2.js +1 -1
  381. package/dist/module/business-identity-schema.js +5 -1
  382. package/dist/module/business-owners-form-step.js +42 -8
  383. package/dist/module/business-representative-form-inputs.js +2 -2
  384. package/dist/module/business-representative-form-step.js +1 -1
  385. package/dist/module/business-representative.js +2 -2
  386. package/dist/module/business-terms-conditions-form-step.js +2 -2
  387. package/dist/module/business.service.js +1 -1
  388. package/dist/module/button.js +1 -1
  389. package/dist/module/cancellation-policy.js +2 -2
  390. package/dist/module/card-billing-form-simple.js +1 -1
  391. package/dist/module/card-form.js +2 -2
  392. package/dist/module/card-form2.js +2 -2
  393. package/dist/module/checkout.service.js +1 -1
  394. package/dist/module/checkout.store.js +1 -1
  395. package/dist/module/checkouts-list-core2.js +3 -3
  396. package/dist/module/custom-popper2.js +50 -17
  397. package/dist/module/customer-details.js +2 -2
  398. package/dist/module/details.js +1 -1
  399. package/dist/module/dispute-management-core.js +2 -2
  400. package/dist/module/dispute-notification.js +3 -3
  401. package/dist/module/dispute-response-actions.js +1 -1
  402. package/dist/module/dispute-response-core.js +2 -2
  403. package/dist/module/dispute-response.js +2 -2
  404. package/dist/module/duplicate-charge.js +2 -2
  405. package/dist/module/electronic-evidence.js +2 -2
  406. package/dist/module/form-address-fields.js +1 -1
  407. package/dist/module/form-control-checkbox2.js +5 -2
  408. package/dist/module/form-control-date2.js +2 -2
  409. package/dist/module/form-control-file-v22.js +4 -1
  410. package/dist/module/form-control-file2.js +5 -2
  411. package/dist/module/form-control-monetary-provisioning2.js +6 -2
  412. package/dist/module/form-control-monetary2.js +2 -2
  413. package/dist/module/form-control-number-masked2.js +4 -2
  414. package/dist/module/form-control-number.js +1 -84
  415. package/dist/module/form-control-number2.js +87 -0
  416. package/dist/module/form-control-radio2.js +5 -2
  417. package/dist/module/form-control-select2.js +2 -2
  418. package/dist/module/form-control-text2.js +2 -2
  419. package/dist/module/form-control-textarea2.js +6 -2
  420. package/dist/module/get-business.js +1 -1
  421. package/dist/module/get-payment-details.js +1 -1
  422. package/dist/module/get-payout-csv.js +1 -1
  423. package/dist/module/get-subaccounts.js +1 -1
  424. package/dist/module/google-pay.js +3 -3
  425. package/dist/module/gross-payment-chart-core2.js +1 -1
  426. package/dist/module/hidden-input2.js +1 -1
  427. package/dist/module/identity-address-form.js +1 -1
  428. package/dist/module/iframe-input2.js +3 -3
  429. package/dist/module/index2.js +90 -21
  430. package/dist/module/internal-tokenize-payment-method2.js +2 -2
  431. package/dist/module/justifi-business-details.js +1 -1
  432. package/dist/module/justifi-business-form.js +1 -1
  433. package/dist/module/justifi-button2.js +1 -1
  434. package/dist/module/justifi-checkout.js +3 -3
  435. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  436. package/dist/module/justifi-checkouts-list.js +2 -2
  437. package/dist/module/justifi-dispute-management.js +2 -2
  438. package/dist/module/justifi-gross-payment-chart.js +1 -1
  439. package/dist/module/justifi-header2.js +1 -1
  440. package/dist/module/justifi-order-terminals.js +3 -3
  441. package/dist/module/justifi-payment-details.js +1 -1
  442. package/dist/module/justifi-payment-provisioning.js +74 -62
  443. package/dist/module/justifi-payment-transactions-list.js +3 -3
  444. package/dist/module/justifi-payments-list-filters.js +3 -3
  445. package/dist/module/justifi-payments-list.js +2 -2
  446. package/dist/module/justifi-payout-details.js +1 -1
  447. package/dist/module/justifi-payout-transactions-list.js +3 -3
  448. package/dist/module/justifi-payouts-list-filters.js +3 -3
  449. package/dist/module/justifi-payouts-list.js +2 -2
  450. package/dist/module/justifi-refund-payment.js +1 -1
  451. package/dist/module/justifi-saved-payment-method.js +1 -1
  452. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  453. package/dist/module/justifi-skeleton.js +1 -1
  454. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  455. package/dist/module/justifi-terminal-orders-list.js +2 -2
  456. package/dist/module/justifi-terminals-list-filters.js +3 -3
  457. package/dist/module/justifi-terminals-list.js +2 -2
  458. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  459. package/dist/module/legal-address-form-step.js +1 -1
  460. package/dist/module/legal-address-form.js +1 -1
  461. package/dist/module/modular-checkout.js +3 -3
  462. package/dist/module/owner-form-core2.js +11 -5
  463. package/dist/module/owner-form-inputs2.js +13 -7
  464. package/dist/module/owner-form.js +11 -5
  465. package/dist/module/package.js +1 -1
  466. package/dist/module/parts.js +1 -1
  467. package/dist/module/payment-details-core2.js +9 -9
  468. package/dist/module/payment-method-option.js +1 -1
  469. package/dist/module/payment-provisioning-actions.js +1 -1
  470. package/dist/module/payment-provisioning-core.js +86 -62
  471. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  472. package/dist/module/payment-provisioning-form-steps.js +67 -55
  473. package/dist/module/payment.service.js +1 -1
  474. package/dist/module/payments-list-core2.js +3 -3
  475. package/dist/module/payout-details-core2.js +3 -3
  476. package/dist/module/payout.service.js +1 -1
  477. package/dist/module/payouts-list-core2.js +3 -3
  478. package/dist/module/plaid-icon.js +3 -0
  479. package/dist/module/plaid-payment-method.js +3 -53
  480. package/dist/module/plaid-verification.d.ts +11 -0
  481. package/dist/module/plaid-verification.js +6 -0
  482. package/dist/module/plaid-verification2.js +358 -0
  483. package/dist/module/plaid.service.js +14 -1
  484. package/dist/module/product-or-service.js +2 -2
  485. package/dist/module/refund-policy.js +2 -2
  486. package/dist/module/save-new-payment-method.js +1 -1
  487. package/dist/module/schema-validations.js +16 -1
  488. package/dist/module/shipping-details.js +2 -2
  489. package/dist/module/summary.js +1 -1
  490. package/dist/module/table-filters-menu2.js +2 -2
  491. package/dist/module/table.js +1 -1
  492. package/dist/module/terminal-orders-list-core2.js +3 -3
  493. package/dist/module/terminal-quantity-selector2.js +2 -2
  494. package/dist/module/terminal.service.js +1 -1
  495. package/dist/module/terminals-list-core2.js +3 -3
  496. package/dist/module/utils4.js +1 -1
  497. package/dist/types/api/Analytics.d.ts +1 -0
  498. package/dist/types/api/BankAccount.d.ts +1 -0
  499. package/dist/types/api/Business.d.ts +6 -0
  500. package/dist/types/api/Identity.d.ts +4 -0
  501. package/dist/types/api/Plaid.d.ts +54 -0
  502. package/dist/types/api/index.d.ts +1 -0
  503. package/dist/types/api/services/plaid.service.d.ts +8 -0
  504. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  505. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +1 -0
  506. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  507. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +4 -0
  508. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +3 -3
  509. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -0
  510. package/dist/types/components/business-forms/payment-provisioning/plaid-verification/plaid-verification.d.ts +36 -0
  511. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +2 -0
  512. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +12 -0
  513. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +10 -0
  514. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
  515. package/dist/types/components/checkout/checkout.d.ts +19 -0
  516. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +3 -0
  517. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +1 -25
  518. package/dist/types/components.d.ts +416 -239
  519. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +4 -0
  520. package/dist/types/ui-components/form/form-control-checkbox.d.ts +2 -2
  521. package/dist/types/ui-components/form/form-control-file-v2.d.ts +2 -2
  522. package/dist/types/ui-components/form/form-control-file.d.ts +2 -2
  523. package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -2
  524. package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
  525. package/dist/types/ui-components/form/form-control-radio.d.ts +3 -3
  526. package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -2
  527. package/dist/webcomponents/{p-Dit3fZpU.js → p--cI8fPJx.js} +1 -1
  528. package/dist/webcomponents/p-02f360c5.entry.js +1 -0
  529. package/dist/webcomponents/{p-36a0af30.entry.js → p-0467df5d.entry.js} +1 -1
  530. package/dist/webcomponents/p-073ca03f.entry.js +1 -0
  531. package/dist/webcomponents/p-0eb97b54.entry.js +1 -0
  532. package/dist/webcomponents/p-0f6fa1c0.entry.js +1 -0
  533. package/dist/webcomponents/p-0fcb7ebb.entry.js +1 -0
  534. package/dist/webcomponents/p-110bec2e.entry.js +1 -0
  535. package/dist/webcomponents/{p-d0c4b0ea.entry.js → p-172b0c96.entry.js} +1 -1
  536. package/dist/webcomponents/{p-725319f3.entry.js → p-1ec3d1e7.entry.js} +1 -1
  537. package/dist/webcomponents/p-20cab5fe.entry.js +1 -0
  538. package/dist/webcomponents/p-238ba771.entry.js +1 -0
  539. package/dist/webcomponents/p-2454c140.entry.js +1 -0
  540. package/dist/webcomponents/p-25666afe.entry.js +1 -0
  541. package/dist/webcomponents/p-26430bfe.entry.js +1 -0
  542. package/dist/webcomponents/p-265a7cb3.entry.js +1 -0
  543. package/dist/webcomponents/p-2e7143b8.entry.js +1 -0
  544. package/dist/webcomponents/p-32fac30b.entry.js +1 -0
  545. package/dist/webcomponents/p-33ab9174.entry.js +1 -0
  546. package/dist/webcomponents/p-393c9065.entry.js +1 -0
  547. package/dist/webcomponents/p-3a254390.entry.js +1 -0
  548. package/dist/webcomponents/p-493e73a9.entry.js +1 -0
  549. package/dist/webcomponents/p-4a802f82.entry.js +1 -0
  550. package/dist/webcomponents/p-4b928d2e.entry.js +1 -0
  551. package/dist/webcomponents/p-4d3e4e56.entry.js +1 -0
  552. package/dist/webcomponents/p-50cc771a.entry.js +1 -0
  553. package/dist/webcomponents/p-55e63bdd.entry.js +1 -0
  554. package/dist/webcomponents/p-5ae3401d.entry.js +1 -0
  555. package/dist/webcomponents/p-65f4681c.entry.js +1 -0
  556. package/dist/webcomponents/p-7068c2ad.entry.js +1 -0
  557. package/dist/webcomponents/p-785e8ef7.entry.js +1 -0
  558. package/dist/webcomponents/{p-897b794b.entry.js → p-7b4e9ae8.entry.js} +2 -2
  559. package/dist/webcomponents/{p-1a327b0e.entry.js → p-7fdfc2c8.entry.js} +1 -1
  560. package/dist/webcomponents/p-81bbd944.entry.js +1 -0
  561. package/dist/webcomponents/p-8ac883e4.entry.js +1 -0
  562. package/dist/webcomponents/p-8e6f2dc8.entry.js +1 -0
  563. package/dist/webcomponents/p-8ed4f485.entry.js +1 -0
  564. package/dist/webcomponents/p-922ddfb4.entry.js +1 -0
  565. package/dist/webcomponents/p-9643fe36.entry.js +1 -0
  566. package/dist/webcomponents/{p-20af8597.entry.js → p-99065f37.entry.js} +1 -1
  567. package/dist/webcomponents/p-9ce5fcb6.entry.js +1 -0
  568. package/dist/webcomponents/p-9d844936.entry.js +1 -0
  569. package/dist/webcomponents/p-AMVhBsGv.js +1 -0
  570. package/dist/webcomponents/{p-DfKxeSrC.js → p-B1AMrMly.js} +1 -1
  571. package/dist/webcomponents/p-B8CPGGs6.js +1 -0
  572. package/dist/webcomponents/p-BPTtWj7E.js +1 -0
  573. package/dist/webcomponents/p-BRPbLfCN.js +1 -0
  574. package/dist/webcomponents/p-BZ4YUsyP.js +1 -0
  575. package/dist/webcomponents/{p-CPpUGsw5.js → p-BZbvHgMz.js} +1 -1
  576. package/dist/webcomponents/{p-CV8xqdt6.js → p-Bhk8tHxs.js} +1 -1
  577. package/dist/webcomponents/{p-B4xdk4mG.js → p-Bj9n56jK.js} +1 -1
  578. package/dist/webcomponents/p-BqL4QuAa.js +1 -0
  579. package/dist/webcomponents/{p-BP2sTIQV.js → p-BqNNwq6C.js} +1 -1
  580. package/dist/webcomponents/p-By-Mu1IX.js +1 -0
  581. package/dist/webcomponents/p-C0dMwnDO.js +1 -0
  582. package/dist/webcomponents/p-C3E-JbVM.js +1 -0
  583. package/dist/webcomponents/p-C3RQHKL5.js +1 -0
  584. package/dist/webcomponents/{p-BMJe4lzg.js → p-CAZzU98o.js} +1 -1
  585. package/dist/webcomponents/p-CGKWIBVk.js +1 -0
  586. package/dist/webcomponents/{p-DUmUUj9r.js → p-COcg4_A3.js} +1 -1
  587. package/dist/webcomponents/{p-C2Senazf.js → p-CQ36pja3.js} +1 -1
  588. package/dist/webcomponents/p-CV0Pyo1O.js +2 -0
  589. package/dist/webcomponents/{p-Dlrq1iZf.js → p-CWyW004b.js} +1 -1
  590. package/dist/webcomponents/p-CekpA_KC.js +1 -0
  591. package/dist/webcomponents/p-CkYB1zGe.js +1 -0
  592. package/dist/webcomponents/p-CpGEMRkH.js +1 -0
  593. package/dist/webcomponents/{p-CBbwdoSa.js → p-CruQSM5j.js} +1 -1
  594. package/dist/webcomponents/p-D-07jgNC.js +1 -0
  595. package/dist/webcomponents/p-D4EBPNuU.js +1 -0
  596. package/dist/webcomponents/p-D8GTwl9v.js +1 -0
  597. package/dist/webcomponents/{p-C77ElQ41.js → p-DCwnBXF7.js} +1 -1
  598. package/dist/webcomponents/p-DKemQxaE.js +1 -0
  599. package/dist/webcomponents/p-DOnVHzNq.js +1 -0
  600. package/dist/webcomponents/{p-tGDdRx0W.js → p-DVJaoI_m.js} +1 -1
  601. package/dist/webcomponents/p-DaZF_q9T.js +1 -0
  602. package/dist/webcomponents/p-Dm07nLGs.js +1 -0
  603. package/dist/webcomponents/p-DrquDBSk.js +1 -0
  604. package/dist/webcomponents/p-Dw63wyhO.js +1 -0
  605. package/dist/webcomponents/p-GgW1g7FQ.js +1 -0
  606. package/dist/webcomponents/{p-D6bKoyRc.js → p-JO-3z7ao.js} +1 -1
  607. package/dist/webcomponents/p-MVBgKFOv.js +1 -0
  608. package/dist/webcomponents/p-Y-EhaLdV.js +1 -0
  609. package/dist/webcomponents/{p-W9WWoLzT.js → p-YYXsr-bI.js} +1 -1
  610. package/dist/webcomponents/p-a20bddd2.entry.js +1 -0
  611. package/dist/webcomponents/p-a3510078.entry.js +1 -0
  612. package/dist/webcomponents/p-a4834220.entry.js +1 -0
  613. package/dist/webcomponents/p-a9ecaf0f.entry.js +1 -0
  614. package/dist/webcomponents/p-aa02e3d7.entry.js +1 -0
  615. package/dist/webcomponents/p-adbe280f.entry.js +1 -0
  616. package/dist/webcomponents/p-af11ac6a.entry.js +1 -0
  617. package/dist/webcomponents/p-bbffb17f.entry.js +1 -0
  618. package/dist/webcomponents/p-c0829d61.entry.js +1 -0
  619. package/dist/webcomponents/p-c2db5db6.entry.js +1 -0
  620. package/dist/webcomponents/{p-f37f3e94.entry.js → p-c7c79332.entry.js} +1 -1
  621. package/dist/webcomponents/p-c90f7ed6.entry.js +1 -0
  622. package/dist/webcomponents/p-ca8d78af.entry.js +1 -0
  623. package/dist/webcomponents/p-d4535236.entry.js +1 -0
  624. package/dist/webcomponents/p-d5827cb2.entry.js +1 -0
  625. package/dist/webcomponents/p-d7fa8461.entry.js +1 -0
  626. package/dist/webcomponents/p-dff12534.entry.js +1 -0
  627. package/dist/webcomponents/p-e54cdb00.entry.js +1 -0
  628. package/dist/webcomponents/p-e926be0d.entry.js +1 -0
  629. package/dist/webcomponents/p-ed9db5b2.entry.js +1 -0
  630. package/dist/webcomponents/p-f1e012f6.entry.js +1 -0
  631. package/dist/webcomponents/p-f1f0f100.entry.js +1 -0
  632. package/dist/webcomponents/p-f5b7c322.entry.js +1 -0
  633. package/dist/webcomponents/p-f9475bb0.entry.js +1 -0
  634. package/dist/webcomponents/p-ff1cff1d.entry.js +1 -0
  635. package/dist/webcomponents/{p-sCHf--Vc.js → p-g0kDRH6Z.js} +1 -1
  636. package/dist/webcomponents/p-m_Ly-YPk.js +1 -0
  637. package/dist/webcomponents/p-sPEyLX4E.js +1 -0
  638. package/dist/webcomponents/p-wSi5d4-j.js +1 -0
  639. package/dist/webcomponents/p-wqq-X93m.js +1 -0
  640. package/dist/webcomponents/{p-yyedWKWX.js → p-y8av3w9x.js} +1 -1
  641. package/dist/webcomponents/p-ygekUw3Q.js +1 -0
  642. package/dist/webcomponents/p-ztF3Y786.js +1 -0
  643. package/dist/webcomponents/webcomponents.esm.js +1 -1
  644. package/package.json +9 -12
  645. package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +0 -207
  646. package/dist/cjs/form-control-number.cjs.entry.js +0 -58
  647. package/dist/cjs/index-BhI7cJcE.js +0 -1891
  648. package/dist/cjs/terminals-list-params-state-DfZySwaC.js +0 -22
  649. package/dist/esm/bank-account-document-form-inputs_8.entry.js +0 -198
  650. package/dist/esm/form-control-number.entry.js +0 -56
  651. package/dist/esm/index-DwYM91AU.js +0 -1879
  652. package/dist/esm/terminals-list-params-state-gllzDQAb.js +0 -16
  653. package/dist/webcomponents/p-016b3e4c.entry.js +0 -1
  654. package/dist/webcomponents/p-035a4adc.entry.js +0 -1
  655. package/dist/webcomponents/p-06cae9e2.entry.js +0 -1
  656. package/dist/webcomponents/p-06f81525.entry.js +0 -1
  657. package/dist/webcomponents/p-0935600b.entry.js +0 -1
  658. package/dist/webcomponents/p-0ab9a3ae.entry.js +0 -1
  659. package/dist/webcomponents/p-0b7c4ed5.entry.js +0 -1
  660. package/dist/webcomponents/p-0bb616fc.entry.js +0 -1
  661. package/dist/webcomponents/p-11wdbrqX.js +0 -1
  662. package/dist/webcomponents/p-138ada4a.entry.js +0 -1
  663. package/dist/webcomponents/p-148d3327.entry.js +0 -1
  664. package/dist/webcomponents/p-1575ca68.entry.js +0 -1
  665. package/dist/webcomponents/p-1e761d96.entry.js +0 -1
  666. package/dist/webcomponents/p-20e85114.entry.js +0 -1
  667. package/dist/webcomponents/p-2cb9edad.entry.js +0 -1
  668. package/dist/webcomponents/p-2d4a2d26.entry.js +0 -1
  669. package/dist/webcomponents/p-368b37ad.entry.js +0 -1
  670. package/dist/webcomponents/p-3a3935a3.entry.js +0 -1
  671. package/dist/webcomponents/p-3f14d0c4.entry.js +0 -1
  672. package/dist/webcomponents/p-4d2589b2.entry.js +0 -1
  673. package/dist/webcomponents/p-511e80a4.entry.js +0 -1
  674. package/dist/webcomponents/p-5996879d.entry.js +0 -1
  675. package/dist/webcomponents/p-5a748e49.entry.js +0 -1
  676. package/dist/webcomponents/p-5c6727ae.entry.js +0 -1
  677. package/dist/webcomponents/p-622af881.entry.js +0 -1
  678. package/dist/webcomponents/p-6454626a.entry.js +0 -1
  679. package/dist/webcomponents/p-64ebff16.entry.js +0 -1
  680. package/dist/webcomponents/p-66713269.entry.js +0 -1
  681. package/dist/webcomponents/p-679b36b5.entry.js +0 -1
  682. package/dist/webcomponents/p-71577fa1.entry.js +0 -1
  683. package/dist/webcomponents/p-77754a65.entry.js +0 -1
  684. package/dist/webcomponents/p-7ec4838f.entry.js +0 -1
  685. package/dist/webcomponents/p-88a8741b.entry.js +0 -1
  686. package/dist/webcomponents/p-899b981b.entry.js +0 -1
  687. package/dist/webcomponents/p-8c4b502d.entry.js +0 -1
  688. package/dist/webcomponents/p-8df30672.entry.js +0 -1
  689. package/dist/webcomponents/p-911b3d63.entry.js +0 -1
  690. package/dist/webcomponents/p-97b8bf5c.entry.js +0 -1
  691. package/dist/webcomponents/p-9b74a642.entry.js +0 -1
  692. package/dist/webcomponents/p-9b8aee30.entry.js +0 -1
  693. package/dist/webcomponents/p-9e94c9ef.entry.js +0 -1
  694. package/dist/webcomponents/p-B5rtFhtR.js +0 -1
  695. package/dist/webcomponents/p-BOqOio4U.js +0 -1
  696. package/dist/webcomponents/p-BUsqF4-J.js +0 -1
  697. package/dist/webcomponents/p-BYsgavgS.js +0 -1
  698. package/dist/webcomponents/p-BhqSAzpT.js +0 -1
  699. package/dist/webcomponents/p-BrRsgB8S.js +0 -1
  700. package/dist/webcomponents/p-BzT9OxlN.js +0 -1
  701. package/dist/webcomponents/p-C9VmfRis.js +0 -1
  702. package/dist/webcomponents/p-CCxsFwC4.js +0 -1
  703. package/dist/webcomponents/p-CK_XkZku.js +0 -1
  704. package/dist/webcomponents/p-CQGIjIgZ.js +0 -1
  705. package/dist/webcomponents/p-CZ3F1ZAT.js +0 -1
  706. package/dist/webcomponents/p-CgiDds_u.js +0 -1
  707. package/dist/webcomponents/p-CsgUIrv8.js +0 -1
  708. package/dist/webcomponents/p-D032AB34.js +0 -1
  709. package/dist/webcomponents/p-DATDsXcA.js +0 -1
  710. package/dist/webcomponents/p-DGGjRqDa.js +0 -1
  711. package/dist/webcomponents/p-DKGn-ILd.js +0 -1
  712. package/dist/webcomponents/p-DOcRWTul.js +0 -1
  713. package/dist/webcomponents/p-DY_3dcgR.js +0 -1
  714. package/dist/webcomponents/p-DdJYXOQX.js +0 -1
  715. package/dist/webcomponents/p-DmdEjScI.js +0 -1
  716. package/dist/webcomponents/p-DwYM91AU.js +0 -2
  717. package/dist/webcomponents/p-RTAZ4tdd.js +0 -1
  718. package/dist/webcomponents/p-Ty7R7tsw.js +0 -1
  719. package/dist/webcomponents/p-U3nU15el.js +0 -1
  720. package/dist/webcomponents/p-Uqevvbqm.js +0 -1
  721. package/dist/webcomponents/p-VRubcA-q.js +0 -1
  722. package/dist/webcomponents/p-a0b4c42b.entry.js +0 -1
  723. package/dist/webcomponents/p-af7c219d.entry.js +0 -1
  724. package/dist/webcomponents/p-b0f0d53c.entry.js +0 -1
  725. package/dist/webcomponents/p-b752c5bc.entry.js +0 -1
  726. package/dist/webcomponents/p-bbff6196.entry.js +0 -1
  727. package/dist/webcomponents/p-c0c36187.entry.js +0 -1
  728. package/dist/webcomponents/p-c920dc54.entry.js +0 -1
  729. package/dist/webcomponents/p-cdf1e61c.entry.js +0 -1
  730. package/dist/webcomponents/p-d077569e.entry.js +0 -1
  731. package/dist/webcomponents/p-d7b1b7b5.entry.js +0 -1
  732. package/dist/webcomponents/p-dc6c9c79.entry.js +0 -1
  733. package/dist/webcomponents/p-e4335938.entry.js +0 -1
  734. package/dist/webcomponents/p-e805b011.entry.js +0 -1
  735. package/dist/webcomponents/p-ecbc83bf.entry.js +0 -1
  736. package/dist/webcomponents/p-f30c939f.entry.js +0 -1
  737. package/dist/webcomponents/p-f56d7b4c.entry.js +0 -1
  738. package/dist/webcomponents/p-f99403d8.entry.js +0 -1
  739. package/dist/webcomponents/p-fb644da6.entry.js +0 -1
  740. package/dist/webcomponents/p-fc4b27ec.entry.js +0 -1
  741. package/dist/webcomponents/p-fe43449c.entry.js +0 -1
  742. package/dist/webcomponents/p-giyZ3C4E.js +0 -1
  743. package/dist/webcomponents/p-sA8HBfkI.js +0 -1
  744. package/docs/.eslintrc.cjs +0 -17
  745. package/docs/changelog/index.mdx +0 -17
  746. package/docs/entities/businessdetails/index.mdx +0 -143
  747. package/docs/entities/businessform/index.mdx +0 -241
  748. package/docs/entities/index.mdx +0 -19
  749. package/docs/entities/payment-provisioning/index.mdx +0 -128
  750. package/docs/frameworks/angular/index.mdx +0 -112
  751. package/docs/frameworks/index.mdx +0 -18
  752. package/docs/frameworks/react/index.mdx +0 -125
  753. package/docs/frameworks/vue/index.mdx +0 -102
  754. package/docs/helpers/PartsTable.js +0 -50
  755. package/docs/helpers/PropsTable.js +0 -56
  756. package/docs/helpers/index.ts +0 -3
  757. package/docs/helpers/version.js +0 -32
  758. package/docs/introduction/index.mdx +0 -125
  759. package/docs/merchant-tools/checkouts-list/index.mdx +0 -97
  760. package/docs/merchant-tools/gross-payments-chart/index.mdx +0 -83
  761. package/docs/merchant-tools/index.mdx +0 -25
  762. package/docs/merchant-tools/order-terminals/index.mdx +0 -84
  763. package/docs/merchant-tools/payment-details/index.mdx +0 -132
  764. package/docs/merchant-tools/payment-transactions-list/index.mdx +0 -85
  765. package/docs/merchant-tools/payments-list/index.mdx +0 -109
  766. package/docs/merchant-tools/payout-details/index.mdx +0 -84
  767. package/docs/merchant-tools/payout-transactions-list/index.mdx +0 -84
  768. package/docs/merchant-tools/payouts-list/index.mdx +0 -92
  769. package/docs/merchant-tools/terminal-orders-list/index.mdx +0 -85
  770. package/docs/merchant-tools/terminals-list/index.mdx +0 -93
  771. package/docs/modular-checkout/complete-examples/index.mdx +0 -20
  772. package/docs/modular-checkout/index.mdx +0 -20
  773. package/docs/modular-checkout/introduction/index.mdx +0 -102
  774. package/docs/modular-checkout/sub-components/apple-pay.mdx +0 -106
  775. package/docs/modular-checkout/sub-components/bank-account-form.mdx +0 -167
  776. package/docs/modular-checkout/sub-components/card-form.mdx +0 -178
  777. package/docs/modular-checkout/sub-components/index.mdx +0 -23
  778. package/docs/modular-checkout/sub-components/payment-method-options.mdx +0 -87
  779. package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +0 -158
  780. package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +0 -183
  781. package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +0 -221
  782. package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +0 -183
  783. package/docs/modular-checkout/sub-components/summary.mdx +0 -111
  784. package/docs/payment-facilitation/dispute-management/index.mdx +0 -99
  785. package/docs/payment-facilitation/index.mdx +0 -21
  786. package/docs/payment-facilitation/refund-payment/index.mdx +0 -241
  787. package/docs/payment-facilitation/tokenize-payment-method/index.mdx +0 -350
  788. package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +0 -150
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as i}from"./p-CV0Pyo1O.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-CWyW004b.js";import{a as m,c as p,b}from"./p-BRPbLfCN.js";import{F as f,c as v,a as y,b as g,d as w}from"./p-DiJD6Iqx.js";import{A as _,C as k,e as j,R as C,f as T}from"./p-GgW1g7FQ.js";import{C as x,P as O}from"./p-CVaOFfrI.js";import{D as S,ag as I,V as L,S as A,aA as D}from"./p-DrquDBSk.js";import{P as B}from"./p-DOnVHzNq.js";import{b as E,c as P}from"./p-BZbvHgMz.js";import{a as H,B as V}from"./p-XYgDHrVL.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{E as F,p as q,q as W}from"./p-C0dMwnDO.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{A as M,B as z,v as Y,C as R,D as U,E as N,F as G}from"./p-ygekUw3Q.js";import{B as Q}from"./p-BqL4QuAa.js";import"./p-CZfYo5-1.js";import{c as X}from"./p-B1AMrMly.js";import{d as J,e as Z}from"./p-Y-EhaLdV.js";import{A as $}from"./p-y8av3w9x.js";import"./p-D2muobcE.js";import"./p-BFTU3MAI.js";import"./p-DaZF_q9T.js";import"./p-D8GTwl9v.js";import"./p-B09GVew-.js";import"./p-DkoufM1t.js";class K{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 ss=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),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 _(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:H.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 _(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 _(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new f(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 s,t,i,r,n;const o=this.formController.getInitialValues();return this.isLoading?e(B,null):e("form",null,e("fieldset",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Additional Questions"),e("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),e("hr",{class:"mt-2"}),e("div",{class:"row gy-3"},e("div",{class:"col-12 col-md-6"},e("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==o?void 0:o.business_revenue,maskOptions:x.WHOLE})),e("div",{class:"col-12 col-md-6"},e("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(t=this.errors)||void 0===t?void 0:t.business_payment_volume,defaultValue:null==o?void 0:o.business_payment_volume,maskOptions:x.WHOLE})),e("div",{class:"col-12"},e("form-control-text",{name:"business_average_transaction_amount",label:"What is your average transaction size?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_average_transaction_amount,defaultValue:null==o?void 0:o.business_average_transaction_amount})),e("div",{class:"col-12"},e("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===(r=this.errors)||void 0===r?void 0:r.business_when_service_received,options:E,defaultValue:null==o?void 0:o.business_when_service_received})),e("div",{class:"col-12"},e("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===(n=this.errors)||void 0===n?void 0:n.business_other_payment_details,defaultValue:null==o?void 0:o.business_other_payment_details})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],additional_questions:["recurringPaymentsWatcher"]}}},ts=(s,t)=>s.some((s=>s.document_type===t)),es=s=>s?{bank_name:U.nullable(),nickname:R.nullable(),account_owner_name:Y.nullable(),account_type:z.nullable(),account_number:M.nullable()}:{bank_name:U.required("Enter bank name"),nickname:R.required("Enter nickname"),account_owner_name:Y.required("Enter account owner name"),account_type:z.required("Select account type"),account_number:M.required("Enter account number")},is=(s,t)=>{if(t)return{voided_check:g().nullable(),bank_statement:g().nullable()};const e=ts(s,F.voidedCheck),i=ts(s,F.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()})}},rs={[k.USA]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},es(t)),(s=>s?{routing_number:G.nullable()}:{routing_number:G.required("Enter routing number")})(t)),is(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s),[k.CAN]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},es(t)),(s=>{const t=y().length(3,"Institution number must be 3 digits").matches(N,"Enter valid institution number"),e=y().length(5,"Transit number must be 5 digits").matches(N,"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)),is(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s)},ns=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new q,this.isLoading=!1,this.isAddingNewBankAccount=!0,this.bankAccountVerification=!1,this.platformAccountId=null,this.getSchema=()=>(0,rs[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new f(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 K(t[t.length-1]),this.isAddingNewBankAccount=!1}else this.bankAccount=new K({}),this.bankAccount.business_id=this.businessId;this.existingDocuments=s.data.documents,this.bankAccountVerification=!0===s.data.settings.bank_account_verification,this.platformAccountId=s.data.platform_account_id},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 q,this.initializeFormController()},this.handleCancel=()=>{this.isAddingNewBankAccount=!1,this.documentData=new q,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 f(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 K(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:H.bankAccount}),this.isLoading=!1,t(e)}})}))}async refreshBankAccountData(){return new Promise((s=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{const{data:t}=s,{bank_accounts:e,documents:i,settings:r,platform_account_id:n}=t;e.length>0&&(this.bankAccount=new K(e[e.length-1])),this.existingDocuments=i,this.bankAccountVerification=!0===r.bank_account_verification,this.platformAccountId=n,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 s=this.formController.getInitialValues(),t=this.bankAccountVerification&&this.platformAccountId;return this.isLoading?e(B,null):e("form",null,e("fieldset",{class:"mb-4"},e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Bank Account Info"),e("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."})),e("hr",{class:"mt-2"}),t&&e("div",{class:"mt-3"},e("plaid-verification",{authToken:this.authToken,accountId:this.platformAccountId,businessId:this.businessId,onPlaidVerificationSuccess:()=>{this.isAddingNewBankAccount=!1,this.refreshBankAccountData()}})),e(this.country===k.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.showReadOnlyView}),this.showReadOnlyView&&e("div",{class:"mt-3"},e(Q,{variant:"secondary",type:"button",onClick:this.handleChangeBankAccount,disabled:this.isLoading,part:I},"Change Bank Account")),(!this.existingBankAccount||this.isAddingNewBankAccount)&&e("div",{class:"mt-3 d-flex gap-2"},this.isAddingNewBankAccount&&e(Q,{variant:"secondary",type:"button",onClick:this.handleCancel,disabled:this.isLoading,part:I},"Cancel"),e(Q,{variant:"primary",type:"button",onClick:this.handleSaveBankAccount,disabled:this.isLoading,isLoading:this.isLoading},"Save Bank Account"))),e("fieldset",{class:"mt-4"},e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Document Uploads"),e("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."})),e("hr",{class:"mt-2"}),e("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),e("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],isLoading:["watchHandler"]}}},os=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),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:H.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===k.CAN?p(this.allowOptionalFields):b(this.allowOptionalFields);this.formController=new f(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 s,t;const i=this.formController.getInitialValues();return this.isLoading?e(B,null):e("form",null,e("fieldset",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Business Information")),e("hr",{class:"mt-2"}),e("div",{class:"row gy-3"},e("div",{class:"col-12"},e("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)."})),e("div",{class:"col-12"},e("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)"})),e("div",{class:"col-12 col-md-8"},e("form-control-select",{name:"classification",label:"Business Classification",options:P,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),e("div",{class:"col-12 col-md-4"},e("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})),e("div",{class:"col-12 col-md-6"},e("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),e("div",{class:"col-12 col-md-6"},!(null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4)||this.isEditingTaxId?e("form-control-number-masked",{name:"tax_id",label:X[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:X[this.country].taxIdHelpText}):e("div",null,e("label",{class:"form-label",part:L},X[this.country].taxIdLabel),e("div",{class:"input-group mb-3"},e("input",{type:"text",class:"form-control",part:A,value:`****${null===(t=this.coreInfo)||void 0===t?void 0:t.tax_id_last4}`,disabled:!0}),e("button",{class:"btn btn-secondary",type:"button",part:I,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),e("div",{class:"col-12"},e("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."})),e("div",{class:"col-12 col-md-6"},e("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),e("div",{class:"col-12 col-md-6"},e("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"]}}},as=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.representativeIsOwner=null,this.matchRef=(s,t)=>{if(null===s)return;const e=this.ownersPayload.findIndex((s=>s.id===t));-1!==e&&(this.refs.length!==this.ownersPayload.length&&this.manageRefs(),this.refs[e]=s)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.representative=new C(s.data.representative||{}),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:H.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=s=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],s&&this.clickEvent.emit({name:V.addOwnerForm})},this.removeOwnerForm=s=>{this.ownersPayload=this.ownersPayload.filter((t=>t.id!==s)),this.newFormOpen&&(this.newFormOpen=!1)},this.handleRepresentativeIsOwnerChange=s=>{this.representativeIsOwner=s,this.representativeIsOwner&&(this.ownersPayload=this.ownersPayload.filter((s=>""!==s.id)),this.patchBusiness({payload:{owners:[{id:this.representative.id},...this.ownersPayload]},onSuccess:()=>{this.getData(),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(){if(this.isLoading)return e(i,null,e(B,null));const s=this.ownersPayload.some((s=>s.id===this.representative.id)),t=null===this.representativeIsOwner&&!s;return e(i,null,e("div",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Owners"),e("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."})),e("hr",{class:"mt-2"}),t&&e("div",{class:"alert alert-warning mb-3",part:D},e("div",{class:"card-body"},e("div",{class:"d-flex align-items-center mb-3"},e("strong",null,"Is the representative of this business also an owner?")),e("div",{class:"d-flex gap-2"},e(Q,{variant:"primary",onClick:()=>this.handleRepresentativeIsOwnerChange(!0)},"Yes"),e(Q,{variant:"secondary",onClick:()=>this.handleRepresentativeIsOwnerChange(!1)},"No")))),e("div",{class:"row gy-3"},this.ownersPayload.map((s=>e("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),e("div",{class:"d-flex justify-content-start"},e("div",{class:"gap-2"},e(Q,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner")))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],ownersPayload:["ownersWatcher"]}}},hs=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),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:H.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 f(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?e(B,null):e("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"]}}},cs=class{constructor(e){s(this,e),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.formCompleted=t(this,"formCompleted",7),this.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=$(),this.formController=new f((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:H.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:H.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 e("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return e("form",{key:"33336d0a66d63ce39951822fd570a9a0689e714d"},e("fieldset",{key:"fcfdb59eef671cb408ed99e2dad20d6be706688a"},e("legend",{key:"f0cf7f0ac15c90cf36ee25d4bf986c0e781a2e92",part:S},"Terms and Conditions"),e("hr",{key:"d5c820e7d6523f931040a994bd103d69fd644c45"}),e("div",{key:"681b584de14afe121f5dc69ee0bad1cab51ba0d1"},e("p",{key:"7c597bf891a108d303739126b806ded5220f56ab"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),e("br",{key:"52854c5a07611180be40df21a5f60d7d9d4c4cb7"}),e("div",{key:"7448b3f6138b996edac137b961367725e3b40556",class:"row-gy-3"},e("div",{key:"c732deb4e1e3a2d04dd4e09914543a7f594af108",class:"col-12"},e("form-control-checkbox",{key:"fca18e4843aef20d13790029b114b2ecaeb6ffa2",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})))))}},ds=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.formLoading=t(this,"formLoading",7),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:H.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 f((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 s;const t=null===(s=this.formController)||void 0===s?void 0:s.getInitialValues();return this.isLoading?e(B,null):e("form",null,e("fieldset",null,e("div",{class:"d-flex align-items-center gap-2"},e("legend",{class:"mb-0",part:S},"Legal Address of your Business"),e("form-control-tooltip",{helpText:"No PO Boxes."})),e("hr",{class:"mt-2"}),e("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:t,inputHandler:this.inputHandler})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},ls=class{constructor(t){s(this,t)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return e("div",{key:"53ba6c809e1968712b333f4bcf2798dbca186ddb",class:"d-flex gap-2"},e(Q,{key:"b45c60083ccf6589cae0c63ce6b66c18da340dc7",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),e(Q,{key:"27372798da0276de44d1563a4688486e7cc91d64",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,V.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),e(Q,{key:"8bc14ca8fe951caf276f8ed03e502486e11acbe2",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,V.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},us=class{constructor(t){s(this,t),this.allowOptionalFields=!1,this.country=k.USA,this.componentStepMapping={0:()=>e("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>e("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>e("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>e("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>e("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>e("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:()=>e("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 e("div",{key:"ff7c9e688009383fdbe18c9824fa578d2338900c",class:"col-12 mb-4"},this.currentStepComponent)}};export{ss as justifi_additional_questions_form_step,ns as justifi_business_bank_account_form_step,os as justifi_business_core_info_form_step,as as justifi_business_owners_form_step,hs as justifi_business_representative_form_step,cs as justifi_business_terms_conditions_form_step,ds as justifi_legal_address_form_step,ls as justifi_payment_provisioning_form_buttons,us as justifi_payment_provisioning_form_steps}
@@ -0,0 +1 @@
1
+ import{h as i,r as s,c as t}from"./p-CV0Pyo1O.js";import{ao as e,am as r,ah as o,B as l}from"./p-DrquDBSk.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as a,J as n}from"./p-C3RQHKL5.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-CWyW004b.js";import{B as v}from"./p-GgW1g7FQ.js";import{m as p}from"./p-g0kDRH6Z.js";import{S as m}from"./p-DaZF_q9T.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{k as f,j as w,b}from"./p-C0dMwnDO.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g,a as y}from"./p-D2muobcE.js";import{T as x}from"./p-CkYB1zGe.js";import{k as j}from"./p-B09GVew-.js";import"./p-CekpA_KC.js";import"./p-y8av3w9x.js";import"./p-D8GTwl9v.js";import"./p-DkoufM1t.js";const k=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),C=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(k,null)),S=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),B=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submit-event",7),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 i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,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:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,a;try{const n=await t.fetchTerminalModels(i,s);if(n.error)return r({error:y(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((i=>new f(i))))||[],orderLimit:null===(d=n.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=g(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new x})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:y(d.error),code:g(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=g(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new x});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(C,null),this.loading.terminals&&i("div",{class:"mt-5"},i(S,null),i(S,null),i(S,null)))}renderBusinessDetails(){var s,t,o,l,d,a,n,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(a=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===a?void 0:a.email),i("div",null,j(null===(h=null===(n=this.business)||void 0===n?void 0:n.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("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 i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("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 i(d,{key:"c4180b5ccbfe357a9167accfcae70270df9d248a"},i("div",{key:"2bab46cd089b8af8abb61948051eb652f57f7811",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{B as justifi_order_terminals}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-C3RQHKL5.js";import{D as a}from"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as c}from"./p--cI8fPJx.js";import"./p-CekpA_KC.js";import"./p-y8av3w9x.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-C0dMwnDO.js";import"./p-DkoufM1t.js";import"./p-CLHwhyvu.js";import"./p-GgW1g7FQ.js";const m=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),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:e})=>async({onSuccess:r,onError:o})=>{var p;try{const c=await e.fetchDispute(t,s);if(c.error)return o({error:h(c.error),code:n(null===(p=c.error)||void 0===p?void 0:p.code),severity:i.ERROR});{const t=Object.assign({},c.page_info);r({dispute:new a(c.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:i.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:i.ERROR}))}render(){return e("justifi-dispute-management-core",{key:"6e884955ea019144de872582a62bcecf05efa7b4",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-CV0Pyo1O.js";import{f as t,p as s,c as r}from"./p-AMVhBsGv.js";import{k as o,l as c,m as p}from"./p-DrquDBSk.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as i,a as f}from"./p-B09GVew-.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const l=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=i(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(d,{key:"4058d69f87431a4060160bc14912998ea14670dc"},a("table-filters-menu",{key:"406371a2c3c552e6973da18b0e59a022a7c1ac99",params:e,clearParams:r,part:o},a("div",{key:"3d77e00351223fc512062193a19ab874a3c8799e",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"8be6000e3aa3de82e73ebb0133131c2f836def64",class:"p-2"},a("form-control-date",{key:"e6c5c50c8a5890573159c6de1955f33762f183b8",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:f(this.createdAfter,{showInputDate:!0})||f(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:c})),a("div",{key:"14c666a50387a2f58ea7a4871ef846eadf044e3a",class:"p-2"},a("form-control-date",{key:"ee56b0ca27c7d8f8562b23862d5aaebb3d4b3188",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:f(this.createdBefore,{showInputDate:!0})||f(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:p})))))}};export{l as justifi_payouts_list_filters}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as o,H as i}from"./p-CV0Pyo1O.js";import{C as s}from"./p-ZpPDShvP.js";import{r as a}from"./p-DrquDBSk.js";import"./p-HXpYMWUU.js";const r=class{constructor(o){t(this,o),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,r;return o(i,{key:"c69143079680d44157ee7df3b344de8a841ac51d",class:"payment-method"},o("div",{key:"16bb3b07ed7fa23efde64b92302b5f7f51958fc4",class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick},o("form-control-radio",{key:"aa4b30d36088b1c1c71710e05c3746c03254629b",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${s[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(r=this.paymentMethodOption)||void 0===r?void 0:r.acct_last_four}`})))}};export{r as justifi_saved_payment_method}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{T as a,a as i,b as r,c as h,d as o,e as c,f as n,g as p,h as d,i as f,j as m,k as b,l as j}from"./p-CAZzU98o.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C0dMwnDO.js";import{p as g}from"./p-CLHwhyvu.js";import"./p-GgW1g7FQ.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-Bj9n56jK.js";import{o as k,g as C}from"./p-BPTtWj7E.js";import"./p-DrquDBSk.js";import"./p-ztF3Y786.js";import"./p-D8GTwl9v.js";import"./p-B09GVew-.js";import"./p-DkoufM1t.js";import"./p-BZ4YUsyP.js";const O=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.terminalOrders=[],this.loading=!0,this.paging=g,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new a(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"16b8cbed46d81e200397d090b65857f10f3f01bf"},e(i,{key:"00377e36fd7d3e3af13484b7dbf906c57bc9e714"},e(r,{key:"57a312c426869647d363e96b91ac08dca661108a"},e(h,{key:"4edcccaee3ec5952e12d223929fedd72beff7bf9"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"c4869d497817b42bceab3bd59ce44ff40c63d9ea"},e(c,{key:"50c04fad28ef405bc2c7c3912df16aedcce12e8a",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"0f61a1c0a2ad76624e33e49576a40a63a4d40e4c",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"3f1b86578fe953bb72073e8e152b082a966e087a",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"7b9f3e41ba45e782a69c26454c8d1d5dec4e72bc"},e(m,{key:"e5466b4cea1f8a493dbcd00299d34ca2731de491"},e(b,{key:"3e46926f681efba70db6f0eddac1c6ecf92b996e",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"e250421fcf3c13bd8293faab52c75c7dc06aad1e",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
@@ -0,0 +1 @@
1
+ import{h as s,F as t,r as i,c as e}from"./p-CV0Pyo1O.js";import{E as r}from"./p-COcg4_A3.js";import{S as l}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-DaZF_q9T.js";import"./p-DrquDBSk.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",7),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",{errorMessage:this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
@@ -0,0 +1 @@
1
+ import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-y8av3w9x.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as a}from"./p-C0dMwnDO.js";import"./p-CLHwhyvu.js";import"./p-GgW1g7FQ.js";import"./p-BH0Xfn-F.js";import{g as n,a as c}from"./p-D2muobcE.js";import{c as l,J as h}from"./p-C3RQHKL5.js";import{p as d,f as p,r as u,j as v}from"./p-B09GVew-.js";import{v as m,i as y,a as f,H as j}from"./p-B8CPGGs6.js";import{B as _,X as g}from"./p-DrquDBSk.js";import{S as w}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-DaZF_q9T.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-DkoufM1t.js";import"./p-CekpA_KC.js";import"./p-HXpYMWUU.js";const k=e();class b{async fetchQuote(s,t){return k.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return k.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(C,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(C,{width:"70%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"40%"})),s("div",{class:"col-12"},s(C,{width:"100%"})),s("div",{class:"col-12"},s(C,{width:"80%"}))),q=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",_),s=>v(s,"p","part",_)])}componentWillLoad(){l(),this.analytics=new h(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||a.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new b};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var a;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:c(l.error),code:n(null===(a=l.error)||void 0===a?void 0:a.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=n(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:a})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return a({error:c(h.error),code:n(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=n(null==s?void 0:s.code);return a({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||a.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return f[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return a&&!1===a.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(w,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),s("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{q as justifi_season_interruption_insurance}
@@ -0,0 +1 @@
1
+ import{r as s,c as i,h as t}from"./p-CV0Pyo1O.js";import{c as o,J as e}from"./p-C3RQHKL5.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-CWyW004b.js";import{A as m}from"./p-y8av3w9x.js";import"./p-C0dMwnDO.js";import"./p-CLHwhyvu.js";import"./p-GgW1g7FQ.js";import"./p-BH0Xfn-F.js";import"./p-CekpA_KC.js";import"./p-D2muobcE.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-DkoufM1t.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"7fbd1a8602e9c90582ef4da712d91cf838d8ebe2",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}