@justifi/webcomponents 6.5.0-rc.2 → 6.5.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 (546) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{GooglePay-D3zN44IX.js → Refund-Blquw3jZ.js} +2 -415
  3. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +7 -8
  4. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  5. package/dist/cjs/{business.service-88yKWtbE.js → business.service-DrBmfEbR.js} +1 -1
  6. package/dist/cjs/card-form.cjs.entry.js +2 -2
  7. package/dist/cjs/{check-pkg-version-RW_N0V76.js → check-pkg-version-D06Nzj0h.js} +2 -2
  8. package/dist/cjs/{checkout.service-Cj1RxduX.js → checkout.service-BEU6CI0t.js} +1 -1
  9. package/dist/cjs/checkout.store-BA6h-dp2.js +107 -0
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
  11. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  12. package/dist/cjs/{dispute.service-AXzLxuOs.js → dispute.service-c0CZxPpe.js} +1 -1
  13. package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
  14. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +4 -4
  20. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
  23. package/dist/cjs/{get-payment-details-DVBTf7h5.js → get-payment-details-D8UQRtX1.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-DuYNs7Ny.js → get-subaccounts-fKcKqvrx.js} +2 -2
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  27. package/dist/cjs/{index-CajjbB9t.js → index-C2ITzalN.js} +0 -1
  28. package/dist/cjs/index.cjs.js +1 -1
  29. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +24 -23
  30. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -6
  31. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +11 -12
  32. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  33. package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_7.cjs.entry.js} +253 -903
  34. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +2 -2
  35. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -5
  36. package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
  37. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  38. package/dist/cjs/justifi-checkout.cjs.entry.js +15 -14
  39. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -8
  41. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  43. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -6
  44. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +8 -9
  45. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
  46. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
  47. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +6 -7
  48. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -6
  49. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  50. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
  51. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -7
  52. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -7
  54. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -6
  55. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -7
  56. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -8
  58. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -10
  59. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -7
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -12
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -7
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -8
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -8
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-DCSehIuE.js → package-gCv25hzn.js} +1 -1
  69. package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
  70. package/dist/cjs/payment-details-core.cjs.entry.js +10 -11
  71. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  72. package/dist/cjs/{payment.service-7Ayen6ud.js → payment.service-DXbR13Kq.js} +1 -1
  73. package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
  74. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  75. package/dist/cjs/{payout.service-6PsVtHcu.js → payout.service-D0U6kzXJ.js} +1 -1
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -3
  77. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  78. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
  79. package/dist/cjs/{terminal-orders-table-BQXO4z_E.js → terminal-orders-table-BByfBAEK.js} +3 -3
  80. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  81. package/dist/cjs/{terminal.service-DgE2p1j0.js → terminal.service-BqXeiERV.js} +1 -1
  82. package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
  83. package/dist/cjs/webcomponents.cjs.js +1 -1
  84. package/dist/collection/api/Checkout.js +2 -0
  85. package/dist/collection/api/index.js +0 -2
  86. package/dist/collection/collection-manifest.json +1 -2
  87. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -7
  88. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  89. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -8
  90. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -7
  91. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  92. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  93. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -8
  94. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  95. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  96. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  97. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  98. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
  104. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  105. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  107. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  111. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  112. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  113. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  114. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  115. package/dist/collection/components/checkout/checkout.js +2 -2
  116. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  117. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  118. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  119. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -2
  120. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  121. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
  124. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  134. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  135. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  136. package/dist/collection/components/modular-checkout/ModularCheckout.js +0 -1
  137. package/dist/collection/components/modular-checkout/modular-checkout.js +9 -46
  138. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  139. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  140. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  141. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  142. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  143. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  144. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  145. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  146. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  147. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  148. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  149. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  150. package/dist/collection/components/payments-list/payments-list.js +1 -1
  151. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  152. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  153. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  154. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  155. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  156. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  157. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  158. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  159. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  160. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  161. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  162. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +4 -3
  163. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -5
  164. package/dist/collection/store/checkout.store.js +0 -4
  165. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  166. package/dist/collection/ui-components/details/details.js +1 -1
  167. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  168. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  169. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  170. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  171. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  178. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  179. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  180. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  181. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  182. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  183. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  184. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  185. package/dist/docs.json +124 -569
  186. package/dist/esm/{GooglePay-ChLgDgG7.js → Refund-BugCdfRo.js} +3 -405
  187. package/dist/esm/bank-account-document-form-inputs_6.entry.js +7 -8
  188. package/dist/esm/bank-account-form.entry.js +2 -2
  189. package/dist/esm/{business.service-C0JaOBMs.js → business.service-pWcc3kfX.js} +1 -1
  190. package/dist/esm/card-form.entry.js +2 -2
  191. package/dist/esm/{check-pkg-version-D0GWFnyL.js → check-pkg-version-AQP98jzk.js} +2 -2
  192. package/dist/esm/{checkout.service-gxuAcx_d.js → checkout.service-B4xSV2-X.js} +1 -1
  193. package/dist/esm/checkout.store-CaS_htQd.js +101 -0
  194. package/dist/esm/checkouts-list-core.entry.js +2 -3
  195. package/dist/esm/custom-popper.entry.js +2 -2
  196. package/dist/esm/{dispute.service-DmYLDaWO.js → dispute.service-3Kbbh1J9.js} +1 -1
  197. package/dist/esm/form-alert_5.entry.js +6 -6
  198. package/dist/esm/form-control-checkbox.entry.js +2 -2
  199. package/dist/esm/form-control-date.entry.js +2 -2
  200. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  201. package/dist/esm/form-control-monetary-provisioning.entry.js +2 -2
  202. package/dist/esm/form-control-monetary.entry.js +2 -2
  203. package/dist/esm/form-control-number-masked_3.entry.js +4 -4
  204. package/dist/esm/form-control-number.entry.js +2 -2
  205. package/dist/esm/form-control-radio.entry.js +2 -2
  206. package/dist/esm/form-control-select_3.entry.js +4 -4
  207. package/dist/esm/{get-payment-details-CJ6fHbft.js → get-payment-details-CakzKvOr.js} +1 -1
  208. package/dist/esm/{get-subaccounts-3zYjlgWb.js → get-subaccounts-Cw1Adtmo.js} +1 -1
  209. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  210. package/dist/esm/hidden-input_2.entry.js +5 -5
  211. package/dist/esm/{index-DkoufM1t.js → index-DCIW8z1f.js} +0 -1
  212. package/dist/esm/index.js +1 -1
  213. package/dist/esm/internal-tokenize-payment-method_7.entry.js +13 -12
  214. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +1 -2
  215. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +11 -12
  216. package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
  217. package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_7.entry.js} +137 -786
  218. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +2 -2
  219. package/dist/esm/justifi-business-details.entry.js +4 -5
  220. package/dist/esm/justifi-business-form.entry.js +4 -5
  221. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  222. package/dist/esm/justifi-checkout.entry.js +8 -7
  223. package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
  224. package/dist/esm/justifi-checkouts-list.entry.js +6 -7
  225. package/dist/esm/justifi-details.entry.js +1 -1
  226. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  227. package/dist/esm/justifi-dispute-management.entry.js +5 -6
  228. package/dist/esm/justifi-dispute-notification_3.entry.js +8 -9
  229. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
  230. package/dist/esm/justifi-order-terminals.entry.js +6 -7
  231. package/dist/esm/justifi-owner-form_3.entry.js +6 -7
  232. package/dist/esm/justifi-payment-details.entry.js +5 -6
  233. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  234. package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
  235. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -6
  236. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  237. package/dist/esm/justifi-payments-list.entry.js +5 -6
  238. package/dist/esm/justifi-payout-details.entry.js +4 -5
  239. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -6
  240. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  241. package/dist/esm/justifi-payouts-list.entry.js +6 -7
  242. package/dist/esm/justifi-refund-payment.entry.js +5 -6
  243. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  244. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
  245. package/dist/esm/justifi-skeleton.entry.js +1 -1
  246. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -4
  247. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -6
  248. package/dist/esm/justifi-terminals-list-filters.entry.js +2 -3
  249. package/dist/esm/justifi-terminals-list.entry.js +6 -7
  250. package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/esm/{package-DbqKgrF-.js → package-DQf0KCJj.js} +1 -1
  253. package/dist/esm/pagination-menu.entry.js +3 -3
  254. package/dist/esm/payment-details-core.entry.js +9 -10
  255. package/dist/esm/payment-method-option.entry.js +1 -1
  256. package/dist/esm/{payment.service-CtzbcN40.js → payment.service-nExZY_sU.js} +1 -1
  257. package/dist/esm/payments-list-core.entry.js +2 -3
  258. package/dist/esm/payout-details-core.entry.js +3 -3
  259. package/dist/esm/{payout.service-BSepoyj1.js → payout.service-B9-JQqU6.js} +1 -1
  260. package/dist/esm/payouts-list-core.entry.js +2 -3
  261. package/dist/esm/table-filters-menu.entry.js +1 -1
  262. package/dist/esm/terminal-orders-list-core.entry.js +3 -4
  263. package/dist/esm/{terminal-orders-table-BDQyyZp2.js → terminal-orders-table-DsrpmD9F.js} +1 -1
  264. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  265. package/dist/esm/{terminal.service-DFPVyp0k.js → terminal.service-DvFiKAKV.js} +1 -1
  266. package/dist/esm/terminals-list-core.entry.js +2 -3
  267. package/dist/esm/webcomponents.js +1 -1
  268. package/dist/module/Analytics.js +0 -2
  269. package/dist/module/ModularCheckout.js +0 -1
  270. package/dist/module/Refund.js +2 -0
  271. package/dist/module/additional-questions.js +2 -2
  272. package/dist/module/additional-statement.js +1 -1
  273. package/dist/module/apple-pay.js +120 -1
  274. package/dist/module/bank-account-billing-form-simple.js +1 -1
  275. package/dist/module/bank-account-document-inputs.js +1 -3
  276. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  277. package/dist/module/bank-account-form-inputs2.js +1 -1
  278. package/dist/module/bank-account-form.js +2 -2
  279. package/dist/module/bank-account-read-only-value2.js +1 -1
  280. package/dist/module/bank-account.js +2 -2
  281. package/dist/module/business-additional-questions-form-step.js +1 -1
  282. package/dist/module/business-bank-account-form-step-core.js +0 -2
  283. package/dist/module/business-bank-account-form-step.js +1 -3
  284. package/dist/module/business-core-info-form-step.js +1 -1
  285. package/dist/module/business-core-info.js +2 -2
  286. package/dist/module/business-owners-form-step.js +1 -1
  287. package/dist/module/business-representative-form-inputs.js +2 -2
  288. package/dist/module/business-representative-form-step.js +1 -1
  289. package/dist/module/business-representative.js +3 -3
  290. package/dist/module/business-terms-conditions-form-step.js +1 -3
  291. package/dist/module/business.service.js +0 -2
  292. package/dist/module/cancellation-policy.js +1 -1
  293. package/dist/module/card-billing-form-simple.js +1 -1
  294. package/dist/module/card-form.js +2 -2
  295. package/dist/module/card-form2.js +2 -2
  296. package/dist/module/checkout.service.js +0 -2
  297. package/dist/module/checkout.store.js +0 -4
  298. package/dist/module/checkouts-list-core2.js +1 -3
  299. package/dist/module/custom-popper2.js +2 -2
  300. package/dist/module/customer-details.js +1 -1
  301. package/dist/module/details.js +1 -1
  302. package/dist/module/dispute-management-core.js +1 -1
  303. package/dist/module/dispute-notification.js +2 -2
  304. package/dist/module/dispute-response-actions.js +0 -2
  305. package/dist/module/dispute-response-core.js +1 -1
  306. package/dist/module/dispute-response.js +1 -1
  307. package/dist/module/duplicate-charge.js +1 -1
  308. package/dist/module/electronic-evidence.js +1 -1
  309. package/dist/module/form-address-fields.js +1 -1
  310. package/dist/module/form-control-checkbox2.js +2 -2
  311. package/dist/module/form-control-date2.js +2 -2
  312. package/dist/module/form-control-file-v22.js +1 -1
  313. package/dist/module/form-control-file2.js +2 -2
  314. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  315. package/dist/module/form-control-monetary2.js +2 -2
  316. package/dist/module/form-control-number-masked2.js +2 -2
  317. package/dist/module/form-control-number.js +2 -2
  318. package/dist/module/form-control-radio2.js +2 -2
  319. package/dist/module/form-control-select2.js +2 -2
  320. package/dist/module/form-control-text2.js +2 -2
  321. package/dist/module/form-control-textarea2.js +2 -2
  322. package/dist/module/get-payment-details.js +0 -2
  323. package/dist/module/get-subaccounts.js +0 -2
  324. package/dist/module/gross-payment-chart-core2.js +1 -1
  325. package/dist/module/hidden-input2.js +1 -1
  326. package/dist/module/identity-address-form.js +1 -1
  327. package/dist/module/iframe-input2.js +3 -3
  328. package/dist/module/internal-tokenize-payment-method2.js +1 -3
  329. package/dist/module/justifi-business-form.js +0 -2
  330. package/dist/module/justifi-button2.js +1 -1
  331. package/dist/module/justifi-checkout.js +40 -46
  332. package/dist/module/justifi-checkouts-list-filters.js +2 -3
  333. package/dist/module/justifi-checkouts-list.js +1 -3
  334. package/dist/module/justifi-dispute-management.js +1 -1
  335. package/dist/module/justifi-gross-payment-chart.js +0 -2
  336. package/dist/module/justifi-header2.js +1 -1
  337. package/dist/module/justifi-order-terminals.js +1 -3
  338. package/dist/module/justifi-payment-provisioning.js +1 -3
  339. package/dist/module/justifi-payment-transactions-list.js +1 -3
  340. package/dist/module/justifi-payments-list-filters.js +2 -2
  341. package/dist/module/justifi-payments-list.js +1 -3
  342. package/dist/module/justifi-payout-details.js +0 -2
  343. package/dist/module/justifi-payout-transactions-list.js +1 -3
  344. package/dist/module/justifi-payouts-list-filters.js +2 -2
  345. package/dist/module/justifi-payouts-list.js +1 -3
  346. package/dist/module/justifi-radio-list-item2.js +1 -1
  347. package/dist/module/justifi-refund-payment.js +0 -2
  348. package/dist/module/justifi-saved-payment-method.js +1 -1
  349. package/dist/module/justifi-season-interruption-insurance.js +0 -2
  350. package/dist/module/justifi-skeleton.js +1 -1
  351. package/dist/module/justifi-terminal-orders-list-filters.js +2 -4
  352. package/dist/module/justifi-terminal-orders-list.js +1 -3
  353. package/dist/module/justifi-terminals-list-filters.js +1 -3
  354. package/dist/module/justifi-terminals-list.js +1 -3
  355. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  356. package/dist/module/legal-address-form-step.js +1 -1
  357. package/dist/module/legal-address-form.js +2 -2
  358. package/dist/module/modular-checkout.js +6 -46
  359. package/dist/module/owner-form-core2.js +1 -1
  360. package/dist/module/owner-form-inputs2.js +3 -3
  361. package/dist/module/owner-form.js +1 -1
  362. package/dist/module/package.js +1 -1
  363. package/dist/module/pagination-menu2.js +3 -3
  364. package/dist/module/payment-details-core2.js +8 -10
  365. package/dist/module/payment-method-option.js +1 -1
  366. package/dist/module/payment-provisioning-core.js +1 -1
  367. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  368. package/dist/module/payment-provisioning-form-steps.js +1 -1
  369. package/dist/module/payment.service.js +0 -2
  370. package/dist/module/payments-list-core2.js +1 -3
  371. package/dist/module/payout-details-core2.js +3 -3
  372. package/dist/module/payout.service.js +0 -2
  373. package/dist/module/payouts-list-core2.js +1 -3
  374. package/dist/module/plaid.service.js +0 -2
  375. package/dist/module/product-or-service.js +1 -1
  376. package/dist/module/refund-policy.js +1 -1
  377. package/dist/module/save-new-payment-method.js +1 -1
  378. package/dist/module/shipping-details.js +1 -1
  379. package/dist/module/summary.js +1 -1
  380. package/dist/module/table-filters-menu2.js +1 -1
  381. package/dist/module/terminal-orders-list-core2.js +1 -3
  382. package/dist/module/terminal-quantity-selector2.js +1 -1
  383. package/dist/module/terminal.service.js +0 -2
  384. package/dist/module/terminals-list-core2.js +1 -3
  385. package/dist/types/api/Checkout.d.ts +3 -3
  386. package/dist/types/api/index.d.ts +0 -2
  387. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
  388. package/dist/types/components/checkout/checkout.d.ts +0 -1
  389. package/dist/types/components/modular-checkout/ModularCheckout.d.ts +1 -2
  390. package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -5
  391. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
  392. package/dist/types/components.d.ts +22 -160
  393. package/dist/types/store/checkout.store.d.ts +0 -1
  394. package/dist/webcomponents/index.esm.js +1 -1
  395. package/dist/webcomponents/{p-a22d1078.entry.js → p-0082f428.entry.js} +1 -1
  396. package/dist/webcomponents/{p-19dabeab.entry.js → p-1193a1ac.entry.js} +1 -1
  397. package/dist/webcomponents/p-159d8ae7.entry.js +1 -0
  398. package/dist/webcomponents/{p-86111a0a.entry.js → p-1edec396.entry.js} +1 -1
  399. package/dist/webcomponents/p-20a8b0c0.entry.js +1 -0
  400. package/dist/webcomponents/p-22f74666.entry.js +1 -0
  401. package/dist/webcomponents/p-25b382b8.entry.js +1 -0
  402. package/dist/webcomponents/{p-e6507b93.entry.js → p-2769f945.entry.js} +1 -1
  403. package/dist/webcomponents/p-30f61f44.entry.js +1 -0
  404. package/dist/webcomponents/p-3437ce38.entry.js +1 -0
  405. package/dist/webcomponents/p-34aa9298.entry.js +1 -0
  406. package/dist/webcomponents/p-36720116.entry.js +1 -0
  407. package/dist/webcomponents/p-39706e38.entry.js +1 -0
  408. package/dist/webcomponents/p-3c38cec5.entry.js +1 -0
  409. package/dist/webcomponents/p-42d756b8.entry.js +1 -0
  410. package/dist/webcomponents/p-44a94dac.entry.js +1 -0
  411. package/dist/webcomponents/p-45936490.entry.js +1 -0
  412. package/dist/webcomponents/p-4761e0aa.entry.js +1 -0
  413. package/dist/webcomponents/p-4baabba0.entry.js +1 -0
  414. package/dist/webcomponents/p-4dcbc0af.entry.js +1 -0
  415. package/dist/webcomponents/{p-f2650bfc.entry.js → p-4e23116c.entry.js} +1 -1
  416. package/dist/webcomponents/p-54ff9b59.entry.js +1 -0
  417. package/dist/webcomponents/{p-3bacf834.entry.js → p-58ae4f9e.entry.js} +1 -1
  418. package/dist/webcomponents/p-5c8c88c6.entry.js +1 -0
  419. package/dist/webcomponents/p-66688508.entry.js +1 -0
  420. package/dist/webcomponents/p-7218c312.entry.js +1 -0
  421. package/dist/webcomponents/p-77b76007.entry.js +1 -0
  422. package/dist/webcomponents/p-77bd4fb0.entry.js +1 -0
  423. package/dist/webcomponents/p-79d77eb9.entry.js +1 -0
  424. package/dist/webcomponents/p-7ee0bae1.entry.js +1 -0
  425. package/dist/webcomponents/{p-270bf699.entry.js → p-800660f2.entry.js} +1 -1
  426. package/dist/webcomponents/p-80f5b2c8.entry.js +1 -0
  427. package/dist/webcomponents/p-84e2bd93.entry.js +1 -0
  428. package/dist/webcomponents/{p-aaed4997.entry.js → p-8681f258.entry.js} +1 -1
  429. package/dist/webcomponents/p-89518b26.entry.js +1 -0
  430. package/dist/webcomponents/p-8b944d09.entry.js +1 -0
  431. package/dist/webcomponents/p-942c8949.entry.js +1 -0
  432. package/dist/webcomponents/p-98b8028e.entry.js +1 -0
  433. package/dist/webcomponents/p-9e1f4231.entry.js +1 -0
  434. package/dist/webcomponents/{p-fe862786.entry.js → p-9f70ce93.entry.js} +1 -1
  435. package/dist/webcomponents/{p-B-9GGR7s.js → p-B4ZUYyNh.js} +1 -1
  436. package/dist/webcomponents/{p-DjhbNep7.js → p-BCPutgAi.js} +1 -1
  437. package/dist/webcomponents/{p-Ds2u5A8P.js → p-BojLBYsY.js} +1 -1
  438. package/dist/webcomponents/p-BpaE8q5f.js +1 -0
  439. package/dist/webcomponents/{p-ByJiG6HY.js → p-C8QOezo8.js} +1 -1
  440. package/dist/webcomponents/{p-E0ZPuuI7.js → p-CFevTCAJ.js} +1 -1
  441. package/dist/webcomponents/p-CPtsjcdm.js +1 -0
  442. package/dist/webcomponents/p-Ch9cTPyq.js +1 -0
  443. package/dist/webcomponents/p-DCIW8z1f.js +1 -0
  444. package/dist/webcomponents/p-DQf0KCJj.js +1 -0
  445. package/dist/webcomponents/p-DU8dqq9U.js +1 -0
  446. package/dist/webcomponents/{p-7SgMy3r5.js → p-D_IJC4HG.js} +1 -1
  447. package/dist/webcomponents/{p-C6kJ3uRN.js → p-LeyS3YJV.js} +1 -1
  448. package/dist/webcomponents/{p-DELUWNSY.js → p-MQxr_LMC.js} +1 -1
  449. package/dist/webcomponents/p-a4540205.entry.js +1 -0
  450. package/dist/webcomponents/p-a655b996.entry.js +1 -0
  451. package/dist/webcomponents/p-ad5e488a.entry.js +1 -0
  452. package/dist/webcomponents/{p-03c8c754.entry.js → p-aec9185f.entry.js} +1 -1
  453. package/dist/webcomponents/p-af236d05.entry.js +1 -0
  454. package/dist/webcomponents/{p-4e71de94.entry.js → p-af48a6bb.entry.js} +1 -1
  455. package/dist/webcomponents/p-af4e501d.entry.js +1 -0
  456. package/dist/webcomponents/p-b0e80802.entry.js +1 -0
  457. package/dist/webcomponents/p-b4d8a3f6.entry.js +1 -0
  458. package/dist/webcomponents/p-bf8cf72d.entry.js +1 -0
  459. package/dist/webcomponents/p-c3b71a1f.entry.js +1 -0
  460. package/dist/webcomponents/p-d2d69454.entry.js +1 -0
  461. package/dist/webcomponents/p-da26e869.entry.js +1 -0
  462. package/dist/webcomponents/p-daa534f1.entry.js +1 -0
  463. package/dist/webcomponents/p-dc0d3484.entry.js +1 -0
  464. package/dist/webcomponents/{p-48d1bc83.entry.js → p-e2e6c201.entry.js} +1 -1
  465. package/dist/webcomponents/p-e91af879.entry.js +1 -0
  466. package/dist/webcomponents/p-eb56ba9b.entry.js +1 -0
  467. package/dist/webcomponents/p-ed006dd6.entry.js +1 -0
  468. package/dist/webcomponents/{p-e7e5fee9.entry.js → p-ed55d333.entry.js} +1 -1
  469. package/dist/webcomponents/p-edcb84bf.entry.js +1 -0
  470. package/dist/webcomponents/p-efb2a58a.entry.js +1 -0
  471. package/dist/webcomponents/{p-bbc42ab9.entry.js → p-f6ea74db.entry.js} +1 -1
  472. package/dist/webcomponents/p-f91b79fb.entry.js +1 -0
  473. package/dist/webcomponents/p-fab28b02.entry.js +1 -0
  474. package/dist/webcomponents/webcomponents.esm.js +1 -1
  475. package/package.json +13 -13
  476. package/dist/collection/api/GooglePay.js +0 -181
  477. package/dist/collection/api/services/google-pay.service.js +0 -240
  478. package/dist/collection/components/modular-checkout/sub-components/google-pay-skeleton.js +0 -10
  479. package/dist/collection/components/modular-checkout/sub-components/google-pay.js +0 -609
  480. package/dist/collection/ui-components/google-pay-button.js +0 -255
  481. package/dist/module/ApplePay.js +0 -121
  482. package/dist/module/GooglePay.js +0 -184
  483. package/dist/module/google-pay.js +0 -785
  484. package/dist/module/justifi-google-pay.d.ts +0 -11
  485. package/dist/module/justifi-google-pay.js +0 -6
  486. package/dist/types/api/GooglePay.d.ts +0 -271
  487. package/dist/types/api/services/google-pay.service.d.ts +0 -60
  488. package/dist/types/components/modular-checkout/sub-components/google-pay-skeleton.d.ts +0 -6
  489. package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +0 -59
  490. package/dist/types/ui-components/google-pay-button.d.ts +0 -18
  491. package/dist/webcomponents/p-0772719b.entry.js +0 -1
  492. package/dist/webcomponents/p-10df10cb.entry.js +0 -1
  493. package/dist/webcomponents/p-1120699e.entry.js +0 -1
  494. package/dist/webcomponents/p-136b29e3.entry.js +0 -1
  495. package/dist/webcomponents/p-19f44a6d.entry.js +0 -1
  496. package/dist/webcomponents/p-1a9311e3.entry.js +0 -1
  497. package/dist/webcomponents/p-1afcfafd.entry.js +0 -1
  498. package/dist/webcomponents/p-1ceb7363.entry.js +0 -1
  499. package/dist/webcomponents/p-1f196690.entry.js +0 -1
  500. package/dist/webcomponents/p-2da4e6ca.entry.js +0 -1
  501. package/dist/webcomponents/p-2eb123a3.entry.js +0 -1
  502. package/dist/webcomponents/p-36ad1db9.entry.js +0 -1
  503. package/dist/webcomponents/p-38626adf.entry.js +0 -1
  504. package/dist/webcomponents/p-3868f396.entry.js +0 -1
  505. package/dist/webcomponents/p-3ac5ab7e.entry.js +0 -1
  506. package/dist/webcomponents/p-3ad906c1.entry.js +0 -1
  507. package/dist/webcomponents/p-3ae12b98.entry.js +0 -1
  508. package/dist/webcomponents/p-4f102cfd.entry.js +0 -1
  509. package/dist/webcomponents/p-4f82561b.entry.js +0 -1
  510. package/dist/webcomponents/p-51ae205c.entry.js +0 -1
  511. package/dist/webcomponents/p-583a1f08.entry.js +0 -1
  512. package/dist/webcomponents/p-59fb033b.entry.js +0 -1
  513. package/dist/webcomponents/p-5ba28ff0.entry.js +0 -1
  514. package/dist/webcomponents/p-6794a435.entry.js +0 -1
  515. package/dist/webcomponents/p-797be4be.entry.js +0 -1
  516. package/dist/webcomponents/p-81c1ebd3.entry.js +0 -1
  517. package/dist/webcomponents/p-8b6b7e20.entry.js +0 -1
  518. package/dist/webcomponents/p-8fcd277c.entry.js +0 -1
  519. package/dist/webcomponents/p-90744983.entry.js +0 -1
  520. package/dist/webcomponents/p-914b590d.entry.js +0 -1
  521. package/dist/webcomponents/p-Boe55CYS.js +0 -1
  522. package/dist/webcomponents/p-BusXmwDe.js +0 -1
  523. package/dist/webcomponents/p-CQsNLuzi.js +0 -1
  524. package/dist/webcomponents/p-DbqKgrF-.js +0 -1
  525. package/dist/webcomponents/p-DkoufM1t.js +0 -1
  526. package/dist/webcomponents/p-a020c889.entry.js +0 -1
  527. package/dist/webcomponents/p-a6e816f6.entry.js +0 -1
  528. package/dist/webcomponents/p-ad9307c1.entry.js +0 -1
  529. package/dist/webcomponents/p-b36d9885.entry.js +0 -1
  530. package/dist/webcomponents/p-b46223fa.entry.js +0 -1
  531. package/dist/webcomponents/p-ba76226e.entry.js +0 -1
  532. package/dist/webcomponents/p-bc510a8a.entry.js +0 -1
  533. package/dist/webcomponents/p-be3caaf8.entry.js +0 -1
  534. package/dist/webcomponents/p-c11f5079.entry.js +0 -1
  535. package/dist/webcomponents/p-c41191e7.entry.js +0 -1
  536. package/dist/webcomponents/p-c621e7af.entry.js +0 -1
  537. package/dist/webcomponents/p-d13edf9f.entry.js +0 -1
  538. package/dist/webcomponents/p-d4503c9a.entry.js +0 -1
  539. package/dist/webcomponents/p-d913cb6b.entry.js +0 -1
  540. package/dist/webcomponents/p-e016bb2e.entry.js +0 -1
  541. package/dist/webcomponents/p-f42c68b0.entry.js +0 -1
  542. package/dist/webcomponents/p-f4cb581f.entry.js +0 -1
  543. package/dist/webcomponents/p-f528da70.entry.js +0 -1
  544. package/dist/webcomponents/p-f632894a.entry.js +0 -1
  545. package/dist/webcomponents/p-f66de935.entry.js +0 -1
  546. package/dist/webcomponents/p-fc9d0344.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as i}from"./p-DwYM91AU.js";import{c as e,F as r}from"./p-DiJD6Iqx.js";import{b as o,a,c as h}from"./p-dgG_o6wN.js";import{i as p,a as n,b as l,c as m}from"./p-D1WQG4I7.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import{C as j,B as u,b as f}from"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-C6kJ3uRN.js";import{B as g}from"./p-Bqlcv3ZV.js";import{S as w}from"./p-BP2sTIQV.js";import{H as C}from"./p-zNSPsvs3.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-c7MCfTgE.js";import{B}from"./p-XYgDHrVL.js";import{m as S,b as x}from"./p-5aA7gjr5.js";import{B as D}from"./p-DjhbNep7.js";import"./p-BFTU3MAI.js";import"./p-avgjSJ1d.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DkoufM1t.js";import"./p-DbqKgrF-.js";import"./p-C8yN3uBj.js";import"./p-wtuY7MT2.js";import"./p-D2muobcE.js";const k=e(Object.assign(Object.assign({},o().fields),{legal_address:n(),additional_questions:a(),representative:p("representative")}));e(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const O=k,q=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),I=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(q,null),s(q,null),s(q,null)),Y=class{constructor(s){t(this,s),this.submitEvent=i(this,"submit-event"),this.clickEvent=i(this,"click-event"),this.errorEvent=i(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.country=j.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const t=new u(s);this.country=t.country_of_establishment,this.formController.setInitialValues(Object.assign({},t))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),t=this.formController.getInitialValues(),i=new u(Object.assign(Object.assign({},t),s)).payload;this.patchBusiness({payload:i,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new r(O),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=S({authToken:this.authToken,businessId:this.businessId,service:new D}),this.patchBusiness=x({authToken:this.authToken,businessId:this.businessId,service:new D}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:t,message:s.message,severity:i})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(w,null,this.isLoading?s(I,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(C,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(g,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{Y as justifi_business_form}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-Boe55CYS.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as u,i as b,j as m,k as f,l as g}from"./p-BTzt8N0l.js";import{T as j}from"./p-CZfYo5-1.js";import{c as k,a as y}from"./p-CkN7DFFn.js";import{o as l,g as C}from"./p-DKGn-ILd.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DkoufM1t.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-DOLBAxYf.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,k,y),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"ea74cbb0bce1e96b597344ee226eebc5dc369b1b"},e(r,{key:"37ca3a5b8c1d53604edb487d1e31f0d829a0a4a8"},e(h,{key:"d61415d71f636ce288036867c70e22fa459e1cf6"},e(o,{key:"75db78b57011fc3d14eea8ecd353ea117b4d951e"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"71631afc11d6a096f71275bd6231a1e5f0a66e72"},e(n,{key:"ea6c8eb8f602d1924b278c374ad02d218758e65c",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"f581dad5d925bcd85aea7b9292d719050eea5431",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"f6ecafe13119e285ab27396bade1992b31663e52",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"846c7a9976a4738f64d0a067bb8e48840e04b3ab"},e(m,{key:"ce2c52b71c891a3621c54bfd3e9c75088d685818"},e(f,{key:"ea253462403bb909e8423776027bbdadf41ab746",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"4d6d2f7a5559d2f20f86c8fc138a402e7b985503",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as checkouts_list_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-Boe55CYS.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as f,i as m,j as b,k as u,l as g}from"./p-BTzt8N0l.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-DkOiS6Zr.js";import{o as k,g as S}from"./p-Uqevvbqm.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DkoufM1t.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-DOLBAxYf.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=S();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"c5141c3ebcbbb8598116b9977305043ca1f63324"},e(r,{key:"fc4c3d9e1b0429bb96e9ce944f22a31ba8fdbc53"},e(h,{key:"a97290876f8eacb6a0645efbf95ffe10be4e49d9"},e(o,{key:"4870bbd9fc764d37631143369e8c2c2d5d3b4049"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"cd872991d6a0df1ef19b5a591eb6ced2406eee84"},e(n,{key:"ae2b94dccfd300db6fdcb4641fa6428b3a933c22",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"ae90c4c8d3fadd40464f2c753c08cb54fe2e804c",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"3884e116fd694639542d2afed7fbc3b8a5866e1d",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"20631ff15eca22634c3282e51aaaf075dfdd953c"},e(b,{key:"67d32304559fb9fa5a48a5b02d251c6363b7d5ba"},e(u,{key:"b755e8711195a00762ffe96d5ef2563e96b87969",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"3cb9c0e66098065669b644cac3ac5aa26228be9f",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as s,H as a,g as i}from"./p-DwYM91AU.js";import{F as r}from"./p-BuCKkdLM.js";import{i as o,b as l,a as h,U as d,c,l as n}from"./p-wtuY7MT2.js";const f=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return s(a,{key:"2471eb40bed06640e17dd9cfadfe427c4178d923",exportparts:"label,input,input-invalid"},s("div",{key:"0463e18df33326affe7a829711d7b7c615048c2c",class:"form-group d-flex flex-column"},s("div",{key:"f74bc11fc71a94edc1abfdfe19c361b4fb06fd8d",class:"d-flex align-items-start gap-2"},s("label",{key:"f2e7975411fe2e328554d2b90e1d730864db6f22",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"fd4aec54d0d69b1528083f564db69705e4ec1c96",helpText:this.helpText})),s("input",{key:"1eb925311b0cd7257d17565726e32a00766a3b9a",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),s(r,{key:"4e0897e145758bdbf8b2a707ed6b7c0ddaaf9cc7",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?d:c}render(){return s(a,{key:"7d4f4ae4d68bb1bd8367eaeb35004c812cc7a486"},s("div",{key:"f313b9fd13190c4bb2c9806ef81cef2b7c9fd888",class:"form-group d-flex flex-column"},s("label",{key:"57d3e7f77c4a92c7e37a49a30981848586189c67",part:n,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"2a8f08aed29a0931d8ec6c00794b3d3a328040f4",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),s("form-control-help-text",{key:"2a2bf6e0bee0cd60f7fae84dc30684e816527b4d",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"4d4fc8fc5450eb711dad88e2d8ca0d318b6dfd0c",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_file_v2,b as form_control_textarea}
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-DwYM91AU.js";import{S as e}from"./p-BP2sTIQV.js";import{S as r}from"./p-c7MCfTgE.js";import"./p-wtuY7MT2.js";const i=class{constructor(t){s(this,t)}render(){return t(e,{key:"0dbb20245a88851e3cf9fc853029b22847f1cdfe"},t(r,{key:"7778f32d71f1b7d46b0f8eab39bb7d98a215ebb3",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{i as justifi_skeleton}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{I as t,a as s}from"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{f as l,p,c as o}from"./p-DKGn-ILd.js";import{e as r,s as c,p as i}from"./p-wtuY7MT2.js";import{S as d}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DkoufM1t.js";const m=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{l[e]=a}}componentWillLoad(){Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode}).forEach((([e,a])=>{a&&(p[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:t.created},{label:"Completed",value:t.completed},{label:"Attempted",value:t.attempted},{label:"Expired",value:t.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:s.ecom},{label:"BNPL",value:s.bnpl}]}render(){const e=Object.assign({},l);return a(d,{key:"2881989953d04aeac0f7bc36cc7b31bdf24867f1"},a("table-filters-menu",{key:"9ed9a0e2993f7efdaf639a539f051abd2314f227",params:e,clearParams:o,part:r},a("div",{key:"9c45b2b3ed9c94cff0db9c5a06d229368d86e75f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"0524f57a17a0dd933ad73253ea25ac8d4d42839d",class:"p-2"},a("form-control-select",{key:"bec5c36e728ceb57945634cc548cc0c1b3691f2c",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||l.status||"",disabled:!!this.checkoutStatus,part:c})),a("div",{key:"a75ef9a2776b882d6bd859a419d5b82434a4e47b",class:"p-2"},a("form-control-select",{key:"e152b5a6a79abdd9ef2732c1c0a8510f06d2435a",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||l.payment_mode||"",disabled:!!this.paymentMode,part:i})))))}};export{m as justifi_checkouts_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-C6kJ3uRN.js";import{D as a}from"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as u}from"./p-7SgMy3r5.js";import"./p-DbqKgrF-.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-Boe55CYS.js";import"./p-DkoufM1t.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";const c=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:i})=>async({onSuccess:e,onError:o})=>{var p;try{const u=await i.fetchDispute(t,s);if(u.error)return o({error:h(u.error),code:n(null===(p=u.error)||void 0===p?void 0:p.code),severity:r.ERROR});{const t=Object.assign({},u.page_info);e({dispute:new a(u.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new u}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"8c800827aaa9d549a734ea05698763685e160a98",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{c as justifi_dispute_management}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as a,c as l,g as s}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as o}from"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{a as n}from"./p-CPpUGsw5.js";import"./p-XYgDHrVL.js";import{n as c}from"./p-BnjCmwMr.js";import{D as i,Z as r,G as d,ap as u,S as h,ay as b,c as m,l as f,b as p,U as v,a as y}from"./p-wtuY7MT2.js";import{s as k,e as x,o as _}from"./p-BS7OgSQe.js";import{S as T}from"./p-c7MCfTgE.js";import"./p-CZfYo5-1.js";import{F as g}from"./p-BuCKkdLM.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";const w=class{constructor(t){e(this,t)}render(){return t("div",{key:"4daf6eadf7e1213c3534bd845c917af0b1ec1fec",class:"row gy-3"},t("div",{key:"9d7235d40a0884960948eaac7dc990e947bf5165",class:"col-12"},t("form-control-file",{key:"e0e3704079e20c86dacec668d27ca23ef981aa2f",name:"voided_check",label:"Voided Check",documentType:o.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"5c4c20191c6c54170896a9c0f893a7fe06ff6a70",class:"col-12"},t("form-control-file",{key:"6d4ac9d3a47952644bab5afe4b23332a56c04035",name:"bank_statement",label:"Bank Statement",documentType:o.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},H=class{constructor(t){e(this,t)}render(){var e,a,l,s,o,i;return t("div",{key:"951373cbaf604ec2f34364fd93ac9ccf666a4e58",class:"row gy-3"},t("div",{key:"a2fbc555aeb3b9bed12f032385ea9889482e6caf",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"c05c9e185293799ee94cbd8bec3976d115469b00",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"b3cc026a1c2079ddcd744d7557742ac98073f03c",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(l=this.defaultValue)||void 0===l?void 0:l.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"f3649a91a8af13374eb55f06ecc81e6e06bd4b01",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:n,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"34eb7df603e1d7d9bb616c51057dd5da9a2e3e3f",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"64897a96be65ddd311267e5ea1571993ab61787d",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Routing Number",value:(null===(i=this.defaultValue)||void 0===i?void 0:i.routing_number)||""}):t("form-control-text",{name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},N=class{constructor(t){e(this,t)}render(){var e,a,l,s,o,i,r;return t("div",{key:"80b2030f1c1840df293a5ec600fe16836b502647",class:"row gy-3"},t("div",{key:"5a28a5b515856da7808fc49cf0f775f8c4c71daa",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"62761912ccf0ee5ba1e5c13cbb08cde9687d05bd",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"04472a07096890a51d2e2db463f7040a389fd4e1",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(l=this.defaultValue)||void 0===l?void 0:l.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"c2caa8ddb2b1038efb49e3361eab760108a34308",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:n,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"2446720991bd2512f6bb8a779e47e526100dacb3",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Transit Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.transit_number)||""}):t("form-control-text",{name:"transit_number",label:"Transit Number",defaultValue:this.defaultValue.transit_number,maxLength:5,errorText:this.errors.transit_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"5 digits"})),t("div",{key:"98cda3809e604cc3e863f2d01698e217694b2550",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Institution Number",value:(null===(i=this.defaultValue)||void 0===i?void 0:i.institution_number)||""}):t("form-control-text",{name:"institution_number",label:"Institution Number",defaultValue:this.defaultValue.institution_number,maxLength:3,errorText:this.errors.institution_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"3 digits"})),t("div",{key:"de285afb20fe922e3a8dd66727222e2f49567aae",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:c,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},j=class{constructor(t){e(this,t)}render(){return t("div",{key:"0d44d4aa265a5fd36ca30f1db072eb834f8bdf1b"},t("label",{key:"892e6dbdbff5d484df4dfb522f3db8968f46d7d4",class:"form-label",part:i},this.label),t("div",{key:"cd617e2302834ad67ebccd64e24d535b2cc19da8",part:i},this.value||""))}},D=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(T,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:r},t("div",{class:"card-body"},t("h5",{class:"card-title",part:d},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:u},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:h,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:h,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:h,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:h,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:b},e.file_name),t("td",{part:b},e.file_type),t("td",{part:b},k(e.document_type)),t("td",{part:b},`${x(e.created_at)} - ${_(e.created_at)}`))))))))),t("hr",null)):null}},A=class{constructor(t){e(this,t),this.formControlInput=l(this,"formControlInput"),this.formControlBlur=l(this,"formControlBlur"),this.fileSelected=l(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=m;return this.errorText&&(e=p),this.disabled&&(e=v),this.isFocused&&(e=y),e}render(){return t(a,{key:"fdb25496e92f4a0ac8d59dc21a1ee0b4364dfb0b"},t("div",{key:"dfbb750595eafcaef0d02dffa740c58b0459d99a",class:"form-group d-flex flex-column"},t("div",{key:"78b3a1c682ad87d317f7e7407fbd73392a20b5c2",class:"d-flex align-items-start gap-2"},t("label",{key:"1f0a3ee1e9252c5ea446636d6602102bb7b6215c",part:f,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"7cf6117ae465514d3cbeb1ed2186f6b9d708c14e",helpText:this.helpText})),t("input",{key:"44a29d1872127ae6b588553cceed75144dd80381",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(g,{key:"50be6125a92cc147aa1b7be3b6777835d7a8d0c3",errorText:this.errorText,name:this.name})))}get el(){return s(this)}};export{w as bank_account_document_form_inputs,H as bank_account_form_inputs,N as bank_account_form_inputs_canada,j as bank_account_read_only_value,D as business_documents_on_file,A as form_control_file}
@@ -1 +0,0 @@
1
- import{r,c as s,h as t}from"./p-DwYM91AU.js";import{S as i}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-C6kJ3uRN.js";import{d as a}from"./p-E0ZPuuI7.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{j as c}from"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as u}from"./p-C8yN3uBj.js";import"./p-DbqKgrF-.js";import"./p-wtuY7MT2.js";import"./p-BS7OgSQe.js";import"./p-DOLBAxYf.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";const l=u();class d{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const f=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:a})=>{var p,u;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return o({error:h(a.error),code:m(null===(u=a.error)||void 0===u?void 0:u.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);e({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"80b94e88e1513441181fcb561ac2ccc8f15f081e"},t("terminal-orders-list-core",{key:"265b0bfcd7be64feac679690f1a3bf8b0fbbf760",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{f as justifi_terminal_orders_list}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-C6kJ3uRN.js";import{C as e,a as p}from"./p-Cjcsf8ku.js";import{m as n,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-DjhbNep7.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-DbqKgrF-.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.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"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:p.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"41e96a931c082212f43bdd84dd5c948fac1eddfc",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}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as i}from"./p-DwYM91AU.js";import{I as a}from"./p-Ce_F4E0f.js";import{b as d,U as o,a as r,c as l,l as c}from"./p-wtuY7MT2.js";import{F as n}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";import{C as h}from"./p-B5rtFhtR.js";import{n as f}from"./p-BnjCmwMr.js";import{b,c as u}from"./p-DfKxeSrC.js";const m=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{var t;const s=e.target,i=s.getAttribute("name"),a=(null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue)||s.value;this.formControlInput.emit({name:i,value:a})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?d:this.disabled?o:this.isFocused?r:l}render(){return s(i,{key:"589d87bd8c266abca5f90b98a4c283bbbf7395e0"},s("div",{key:"b81beb01581f1ba626e62fbd977e50ee0ce1e511",class:"form-group d-flex flex-column"},s("div",{key:"6d19e6935f4b161a803b5c977b031f47590bd9cc",class:"d-flex align-items-start gap-2"},s("label",{key:"f083814b699a6b319d487e4d604c944c25e33604",part:c,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"50dc464aa682be09049620371eda508deb4e622a",helpText:this.helpText})),s("input",{key:"bfddf6e15747db29189374015178c167a491e4ec",ref:e=>this.textInput=e,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),s(n,{key:"3f89d9f453eb3267606abc1ac4138eee97b18d22",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},v=class{constructor(t){e(this,t),this.country=h.USA}render(){var e,t,a,d,o,r,l,c,n,m;const v=u[this.country],p=b[this.country];return s(i,{key:"429dd1250553f6d25f9db6d6c1379af0290718c6"},s("div",{key:"91b9d7199bea1620c7614efd25c0421d3f85c19d",class:"row gy-3"},s("div",{key:"13dd91b17d387ef9c8bc97b44a273f0984758a3a",class:"col-12"},s("form-control-text",{key:"52ecc715696aed27a6f4329971e90e90ebb971fa",name:"line1",label:"Street Address",inputHandler:this.inputHandler,defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,helpText:"No PO Boxes."})),s("div",{key:"64bc39361d02b10c75dfc8389915ce192b9f7606",class:"col-12"},s("form-control-text",{key:"a835f2f9706664dd195daa5436fe49aea2c54968",name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null===(a=this.defaultValues)||void 0===a?void 0:a.line2,errorText:null===(d=this.errors)||void 0===d?void 0:d.line2})),s("div",{key:"ef9b02103d0d1469da092d8965d021b049e54cb5",class:"col-12"},s("form-control-text",{key:"9263360f47c6e833a904aab2e8b30d4a35d50e75",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null===(o=this.defaultValues)||void 0===o?void 0:o.city,errorText:null===(r=this.errors)||void 0===r?void 0:r.city})),s("div",{key:"4609534e39659ed47350e68a64fee58616320da4",class:"col-12"},s("form-control-select",{key:"a7f94fa5ea2642cae82729951198771fd1f31380",name:"state",label:v.stateLabel,options:p.stateOptions,inputHandler:this.inputHandler,defaultValue:null===(l=this.defaultValues)||void 0===l?void 0:l.state,errorText:null===(c=this.errors)||void 0===c?void 0:c.state})),s("div",{key:"eadf0a6e2e2cfbe8e476ba8abb25eab4b2b005fb",class:"col-12"},s("form-control-text",{key:"2708d2a47c8afccc470203775d494683f133174b",name:"postal_code",label:v.postalLabel,inputHandler:this.inputHandler,defaultValue:null===(n=this.defaultValues)||void 0===n?void 0:n.postal_code,errorText:null===(m=this.errors)||void 0===m?void 0:m.postal_code,maxLength:this.country===h.USA?5:7,keyDownHandler:this.country===h.USA?f:void 0}))))}},p=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){return s(i,{key:"c9b75fa8c884fb755cd26be4433022f278794e4e"},s("justifi-form-address-fields",{key:"2f9cfa3fc695de214d9203c680e6cb115d714b82",country:this.country,errors:this.errors,defaultValues:this.defaultValues,inputHandler:this.inputHandler}))}static get watchers(){return{address:["handleAddressChange"]}}};export{m as form_control_number_masked,v as justifi_form_address_fields,p as justifi_identity_address_form}
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-DwYM91AU.js";import{c as s,F as a}from"./p-DiJD6Iqx.js";import{A as i,B as r,k as l,l as d,n as c,y as o}from"./p-avgjSJ1d.js";import{an as n}from"./p-wtuY7MT2.js";import{S as f}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{H as h}from"./p-C-2kW6Al.js";import{S as b}from"./p-B5rtFhtR.js";import"./p-BFTU3MAI.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";const m=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.required("Enter full name"),address_line1:c.nullable(),address_line2:d.nullable(),address_city:l.nullable(),address_state:r.nullable(),address_postal_code:i.nullable()}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t(f,{key:"d400254cf09337b9de93c35834cdc5c221f7650f"},t("div",{key:"95b9467484986e2180946f6a28f6a44365cca2e3",part:n,class:"mt-4"},t("form",{key:"70c740c7294f20b7c4f9c14c52da4b186953c774"},t("fieldset",{key:"3d0f150b16ce75a514ab046581277bdfd9fffa0f"},this.legend&&t("legend",{key:"e5d5fafd3acd3884fd6525a048fa212c858bd44b"},this.legend),t("div",{key:"f3127d57b9c84e132da888449bbfe6ed645439db",class:"row gy-3"},t("div",{key:"8ca035dd9a8b33ba4ce53cc5b619cbf5b4fb9bb5",class:"col-12"},t("form-control-text",{key:"0ad088a77638747b5373657d35d0d1ac663adec0",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})))))))}},u=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.required("Enter full name"),address_line1:c.required("Enter street address"),address_line2:d.nullable(),address_city:l.required("Enter city"),address_state:r.required("Select state"),address_postal_code:i.required("Enter postal code")})),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t(f,null,t("div",{part:n,class:"mt-4"},t(h,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State",options:b,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7})))))))}},p=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.nullable(),address_line1:c.nullable(),address_line2:d.nullable(),address_city:l.nullable(),address_state:r.nullable(),address_postal_code:i.required("Enter postal code")}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t(f,{key:"534ce9eacab4eb4f4a93416ba7423747b2dd974c"},t("div",{key:"8058c1f316e0cb2bcd2baa9c79618e888462630e",part:n},t("form",{key:"236f6382743dea81738528ba25e37e37fc77e55e"},t("fieldset",{key:"904f933f1af5a5efe63220bcdd7bcc8ec424d847"},this.legend&&t("legend",{key:"67f7d157ab1b89284eede05a36d28c9a675391d3"},this.legend),t("div",{key:"8c94dfb8cfbebd72c04a5ec77176c7af76c50c29",class:"row gy-3"},t("div",{key:"605198729376fb9e4dafddc6bc2533dbf59928f8",class:"col-12"},t("form-control-text",{key:"ab779bc85376e842c7a886cfff03b664f1da9efd",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7})))))))}};export{m as justifi_bank_account_billing_form_simple,u as justifi_billing_form_full,p as justifi_card_billing_form_simple}
@@ -1 +0,0 @@
1
- import{h as t,r as s,c as e}from"./p-DwYM91AU.js";import{a as i,c as r,b as o}from"./p-dgG_o6wN.js";import{F as n,c as a,a as h,b as l}from"./p-DiJD6Iqx.js";import{A as c,C as d,e as u,R as m,f as p}from"./p-B5rtFhtR.js";import{C as f,P as b}from"./p-CVaOFfrI.js";import{G as v,l as y,U as g,_}from"./p-wtuY7MT2.js";import{S as w}from"./p-c7MCfTgE.js";import"./p-CZfYo5-1.js";import{b as j,r as x,s as O,c as k}from"./p-CPpUGsw5.js";import{a as S,B as C}from"./p-XYgDHrVL.js";import{E as T,m as D,n as E}from"./p-Boe55CYS.js";import{C as L,D as H,y as B,E as P,F as V,G as A,H as W}from"./p-avgjSJ1d.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as I,a as F}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{c as U}from"./p-DfKxeSrC.js";import{B as q}from"./p-Bqlcv3ZV.js";import{d as Y,e as G}from"./p-D1WQG4I7.js";import"./p-BFTU3MAI.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";class M{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.institution_number=t.institution_number,this.transit_number=t.transit_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const R=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"25%"})),t("div",{class:"col-12"},t(w,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(w,{width:"50%"}),t(w,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(w,{width:"65%"}),t(w,{width:"35%"}))),N=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(w,{width:"40%",height:"40px"})),t(R,null),t(R,null),t(R,null)),X=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new c(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new c(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new n(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const h=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==h?void 0:h.business_revenue,maskOptions:f.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==h?void 0:h.business_payment_volume,maskOptions:f.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:j,defaultValue:null==h?void 0:h.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:x,defaultValue:null==h?void 0:h.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==h?void 0:h.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:O,defaultValue:null==h?void 0:h.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==h?void 0:h.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},J=(t,s)=>t.some((t=>t.document_type===s)),Q=t=>t?{bank_name:V.nullable(),nickname:P.nullable(),account_owner_name:B.nullable(),account_type:H.nullable(),account_number:L.nullable()}:{bank_name:V.required("Enter bank name"),nickname:P.required("Enter nickname"),account_owner_name:B.required("Enter account owner name"),account_type:H.required("Select account type"),account_number:L.required("Enter account number")},Z=(t,s)=>{if(s)return{voided_check:l().nullable(),bank_statement:l().nullable()};const e=J(t,T.voidedCheck),i=J(t,T.bankStatement),r=e||i,o="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:l().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(o),otherwise:t=>t.notRequired()}),bank_statement:l().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(o),otherwise:t=>t.notRequired()})}},K={[d.USA]:(t,s=[])=>((t,s)=>{const e=Object.assign(Object.assign(Object.assign({},Q(s)),(t=>t?{routing_number:W.nullable()}:{routing_number:W.required("Enter routing number")})(s)),Z(t,s));return a().shape(e,[["voided_check","bank_statement"]])})(s,t),[d.CAN]:(t,s=[])=>((t,s)=>{const e=Object.assign(Object.assign(Object.assign({},Q(s)),(t=>{const s=h().length(3,"Institution number must be 3 digits").matches(A,"Enter valid institution number"),e=h().length(5,"Transit number must be 5 digits").matches(A,"Enter valid transit number");return t?{institution_number:s.nullable(),transit_number:e.nullable()}:{institution_number:s.required("Enter institution number"),transit_number:e.required("Enter transit number")}})(s)),Z(t,s));return a().shape(e,[["voided_check","bank_statement"]])})(s,t)},$=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new D,this.isLoading=!1,this.getSchema=()=>(0,K[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new n(this.getSchema()),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new E({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new M(t.data.bank_accounts[0]):(this.bankAccount=new M({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:F.POST_ERROR,message:s.error.message,severity:I.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:F.POST_ERROR,message:t.error.message,severity:I.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new n(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){const t=this.formController.values.getValue();return new M(t).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:F.POST_ERROR,severity:I.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:S.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t(this.country===d.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},z=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new u(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t(),this.isEditingTaxId=!1},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new u(this.formController.values.getValue()).payload}componentWillLoad(){const t=this.country===d.CAN?r(this.allowOptionalFields):o(this.allowOptionalFields);this.formController=new n(t),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e;const i=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue: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)."})),t("div",{class:"col-12"},t("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)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:k,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},!(null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4)||this.isEditingTaxId?t("form-control-number-masked",{name:"tax_id",label:U[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:U[this.country].taxIdHelpText}):t("div",null,t("label",{class:"form-label",part:y},U[this.country].taxIdLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:g,value:`****${null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:_,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),t("div",{class:"col-12"},t("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."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})))))}},tt=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:C.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(N,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(q,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},st=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new m(t.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new m(this.formController.values.getValue()).payload}}componentWillLoad(){this.formController=new n((0,Y[this.country])("representative",this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(N,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}},et=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{const s=new p((t.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},s),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new p(this.formController.values.getValue()).payload}}componentWillLoad(){this.formController=new n((0,G[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:s,inputHandler:this.inputHandler})))}};export{X as justifi_additional_questions_form_step_core,$ as justifi_business_bank_account_form_step_core,z as justifi_business_core_info_form_step_core,tt as justifi_business_owners_form_step_core,st as justifi_business_representative_form_step_core,et as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as o}from"./p-CQsNLuzi.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as p}from"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-BNqo3kt0.js";import{c as m,J as c}from"./p-C6kJ3uRN.js";import{m as u}from"./p-DYGIC0QH.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";import"./p-DkoufM1t.js";import"./p-wtuY7MT2.js";import"./p-DbqKgrF-.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=u({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payout_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as r}from"./p-DwYM91AU.js";import{A as o}from"./p-C8yN3uBj.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-Boe55CYS.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as p}from"./p-D2muobcE.js";import{E as n}from"./p-BNqo3kt0.js";import{c as h,J as c}from"./p-C6kJ3uRN.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-DkoufM1t.js";import"./p-wtuY7MT2.js";import"./p-DbqKgrF-.js";const m=o();class u{async fetchGrossVolumeChartData(t,s){return m.get({endpoint:`account/${t}/reports/gross_volume`,authToken:s})}}const d=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:t,authToken:s,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(t,s);h.error?e({error:p(h.error),code:a(null===(n=h.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(h.data)}catch(t){const s=a(null==t?void 0:t.code);e({error:p(t),code:s,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}