@justifi/webcomponents 6.4.0 → 6.4.1

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 (334) hide show
  1. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +2 -2
  2. package/dist/cjs/{check-pkg-version-BO_NdUB_.js → check-pkg-version-BVyea38i.js} +1 -1
  3. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  4. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  5. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  6. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
  7. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  8. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  9. package/dist/cjs/form-control-select_3.cjs.entry.js +2 -2
  10. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  11. package/dist/cjs/{justifi-bank-account-billing-form-simple_9.cjs.entry.js → internal-tokenize-payment-method_7.cjs.entry.js} +254 -138
  12. package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_7.cjs.entry.js} +3 -258
  13. package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +147 -0
  14. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
  17. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  24. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  26. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  27. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  30. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  32. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +15 -0
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/cjs/{package-CvqCkafe.js → package-keJMf4WX.js} +1 -1
  37. package/dist/cjs/webcomponents.cjs.js +1 -1
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/checkout/checkout.js +2 -2
  40. package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +626 -0
  41. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +2 -422
  42. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  43. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  44. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  45. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  46. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  47. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  48. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  49. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  50. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  51. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  52. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  53. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  54. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  55. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  56. package/dist/docs.json +538 -223
  57. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  58. package/dist/esm/{badge-BkjjtNUQ.js → badge-Bgosx-DC.js} +1 -1
  59. package/dist/esm/bank-account-document-form-inputs_6.entry.js +5 -5
  60. package/dist/esm/bank-account-form.entry.js +2 -2
  61. package/dist/esm/{business-additional-questions-schema-hZ6O6Bs0.js → business-additional-questions-schema-QFJEOHF5.js} +1 -1
  62. package/dist/esm/business-details-core.entry.js +3 -3
  63. package/dist/esm/{business-identity-schema-DJvIo0oa.js → business-identity-schema-DB_Hhjld.js} +1 -1
  64. package/dist/esm/{button-DHljyr0K.js → button-DBmjN7Ra.js} +1 -1
  65. package/dist/esm/card-form.entry.js +2 -2
  66. package/dist/esm/{check-pkg-version-B6jUXpX3.js → check-pkg-version-BZb5Z6DW.js} +1 -1
  67. package/dist/esm/checkouts-list-core.entry.js +5 -5
  68. package/dist/esm/{checkouts-table-Dn1sFyZs.js → checkouts-table-lgbZpF1o.js} +2 -2
  69. package/dist/esm/custom-popper.entry.js +2 -2
  70. package/dist/esm/form-alert_5.entry.js +1 -1
  71. package/dist/esm/form-control-checkbox.entry.js +3 -3
  72. package/dist/esm/form-control-date.entry.js +2 -2
  73. package/dist/esm/{form-control-error-text-Cje0veu2.js → form-control-error-text-B5LSdUXI.js} +1 -1
  74. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  75. package/dist/esm/{form-control-help-text-ClJnecm3.js → form-control-help-text-BK9RNOf-.js} +1 -1
  76. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  77. package/dist/esm/form-control-monetary.entry.js +5 -5
  78. package/dist/esm/form-control-number-masked_3.entry.js +4 -4
  79. package/dist/esm/form-control-number.entry.js +5 -5
  80. package/dist/esm/form-control-radio.entry.js +3 -3
  81. package/dist/esm/form-control-select_3.entry.js +4 -4
  82. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  83. package/dist/esm/{header-1-uiFiNrVs.js → header-1-CPF3S2CC.js} +1 -1
  84. package/dist/esm/{header-3-BVYYTpLc.js → header-3-Cah707hu.js} +1 -1
  85. package/dist/esm/hidden-input_2.entry.js +7 -7
  86. package/dist/esm/{insurance-state-iJs0LRg_.js → insurance-state-DRe0g_wf.js} +1 -1
  87. package/dist/esm/internal-tokenize-payment-method_7.entry.js +460 -0
  88. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
  89. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +2 -2
  90. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  91. package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_7.entry.js} +9 -263
  92. package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +143 -0
  93. package/dist/esm/justifi-business-details.entry.js +4 -4
  94. package/dist/esm/justifi-business-form.entry.js +9 -9
  95. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  96. package/dist/esm/justifi-checkout.entry.js +5 -5
  97. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  98. package/dist/esm/justifi-checkouts-list.entry.js +5 -5
  99. package/dist/esm/justifi-details.entry.js +2 -2
  100. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  101. package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
  102. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  103. package/dist/esm/justifi-order-terminals.entry.js +4 -4
  104. package/dist/esm/justifi-owner-form_3.entry.js +4 -4
  105. package/dist/esm/justifi-payment-details.entry.js +4 -4
  106. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  107. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  108. package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
  109. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  110. package/dist/esm/justifi-payments-list.entry.js +6 -6
  111. package/dist/esm/justifi-payout-details.entry.js +4 -4
  112. package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
  113. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  114. package/dist/esm/justifi-payouts-list.entry.js +6 -6
  115. package/dist/esm/justifi-refund-payment.entry.js +5 -5
  116. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  117. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  118. package/dist/esm/justifi-skeleton.entry.js +3 -3
  119. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  120. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  121. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  122. package/dist/esm/justifi-terminals-list.entry.js +5 -5
  123. package/dist/esm/justifi-tokenize-payment-method.entry.js +13 -0
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/{package-BeukOaOq.js → package-C19Xk7z3.js} +1 -1
  126. package/dist/esm/pagination-menu.entry.js +1 -1
  127. package/dist/esm/{parts-Dj_zevuD.js → parts-wtuY7MT2.js} +1 -1
  128. package/dist/esm/payment-details-core.entry.js +5 -5
  129. package/dist/esm/payment-method-option.entry.js +1 -1
  130. package/dist/esm/payments-list-core.entry.js +6 -6
  131. package/dist/esm/{payments-status-DK2me5T2.js → payments-status-Dypl6WFL.js} +1 -1
  132. package/dist/esm/{payments-table-DxRdl7-E.js → payments-table-CK9BRZEz.js} +2 -2
  133. package/dist/esm/payout-details-core.entry.js +6 -6
  134. package/dist/esm/payouts-list-core.entry.js +6 -6
  135. package/dist/esm/{payouts-status-BfEM6F8q.js → payouts-status-hTCBgpLW.js} +1 -1
  136. package/dist/esm/{payouts-table-C2binjIW.js → payouts-table-Dd8IDBBX.js} +2 -2
  137. package/dist/esm/{schema-validations-C0qp3ZJ5.js → schema-validations-B5sfox_4.js} +1 -1
  138. package/dist/esm/{skeleton-DdynMBnt.js → skeleton-BmRZRW5K.js} +1 -1
  139. package/dist/esm/{spinner-BRMSkfVc.js → spinner-tU4D9iak.js} +1 -1
  140. package/dist/esm/{table-DYlsfkCm.js → table-Cjq1A6mO.js} +2 -2
  141. package/dist/esm/table-filters-menu.entry.js +2 -2
  142. package/dist/esm/terminal-orders-list-core.entry.js +5 -5
  143. package/dist/esm/{terminal-orders-table-zf0ASRCr.js → terminal-orders-table-CMWBIr9y.js} +2 -2
  144. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  145. package/dist/esm/terminals-list-core.entry.js +5 -5
  146. package/dist/esm/{terminals-table-DNUTk3gi.js → terminals-table-D9okETJr.js} +2 -2
  147. package/dist/esm/{utils-DUz-H1tG.js → utils-BX7Rjm1M.js} +1 -1
  148. package/dist/esm/webcomponents.js +1 -1
  149. package/dist/module/Refund.js +1 -1
  150. package/dist/module/additional-statement.js +1 -1
  151. package/dist/module/billing-form-schema.js +1 -1
  152. package/dist/module/business-additional-questions-form-step.js +1 -1
  153. package/dist/module/business-additional-questions-schema.js +1 -1
  154. package/dist/module/business-address-schema.js +1 -1
  155. package/dist/module/business-bank-account-form-step-core.js +1 -1
  156. package/dist/module/business-bank-account-form-step.js +1 -1
  157. package/dist/module/business-core-info-form-step.js +1 -1
  158. package/dist/module/business-owners-form-step.js +1 -1
  159. package/dist/module/business-representative-form-step.js +1 -1
  160. package/dist/module/business-terms-conditions-form-step.js +1 -1
  161. package/dist/module/button.js +1 -1
  162. package/dist/module/cancellation-policy.js +1 -1
  163. package/dist/module/custom-popper2.js +2 -2
  164. package/dist/module/customer-details.js +1 -1
  165. package/dist/module/dispute-response-actions.js +1 -1
  166. package/dist/module/dispute-response.js +1 -1
  167. package/dist/module/duplicate-charge.js +1 -1
  168. package/dist/module/electronic-evidence.js +1 -1
  169. package/dist/module/form-control-file-v22.js +1 -1
  170. package/dist/module/form-control-file2.js +2 -2
  171. package/dist/module/form-control-monetary2.js +2 -2
  172. package/dist/module/form-control-number-masked2.js +2 -2
  173. package/dist/module/form-control-number.js +2 -2
  174. package/dist/module/form-control-radio2.js +2 -2
  175. package/dist/module/form-control-text2.js +2 -2
  176. package/dist/module/form-control-textarea2.js +2 -2
  177. package/dist/module/get-business.js +1 -1
  178. package/dist/module/get-payment-details.js +1 -1
  179. package/dist/module/get-payout-csv.js +1 -1
  180. package/dist/module/get-subaccounts.js +1 -1
  181. package/dist/module/hidden-input2.js +1 -1
  182. package/dist/module/iframe-input2.js +3 -3
  183. package/dist/module/internal-tokenize-payment-method.d.ts +11 -0
  184. package/dist/module/internal-tokenize-payment-method.js +6 -0
  185. package/dist/module/{tokenize-payment-method.js → internal-tokenize-payment-method2.js} +8 -8
  186. package/dist/module/justifi-business-details.js +1 -1
  187. package/dist/module/justifi-business-form.js +1 -1
  188. package/dist/module/justifi-button2.js +1 -1
  189. package/dist/module/justifi-checkout.js +37 -37
  190. package/dist/module/justifi-checkouts-list.js +1 -1
  191. package/dist/module/justifi-dispute-management.js +1 -1
  192. package/dist/module/justifi-gross-payment-chart.js +1 -1
  193. package/dist/module/justifi-header2.js +1 -1
  194. package/dist/module/justifi-order-terminals.js +2 -2
  195. package/dist/module/justifi-payment-details.js +1 -1
  196. package/dist/module/justifi-payment-provisioning.js +1 -1
  197. package/dist/module/justifi-payment-transactions-list.js +1 -1
  198. package/dist/module/justifi-payments-list.js +1 -1
  199. package/dist/module/justifi-payout-details.js +1 -1
  200. package/dist/module/justifi-payout-transactions-list.js +1 -1
  201. package/dist/module/justifi-payouts-list.js +1 -1
  202. package/dist/module/justifi-refund-payment.js +1 -1
  203. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  204. package/dist/module/justifi-skeleton.js +1 -1
  205. package/dist/module/justifi-terminal-orders-list.js +1 -1
  206. package/dist/module/justifi-terminals-list.js +1 -1
  207. package/dist/module/justifi-tokenize-payment-method.js +154 -1
  208. package/dist/module/legal-address-form-step.js +1 -1
  209. package/dist/module/modular-checkout.js +1 -1
  210. package/dist/module/package.js +1 -1
  211. package/dist/module/parts.js +1 -1
  212. package/dist/module/payment-provisioning-actions.js +1 -1
  213. package/dist/module/payment-provisioning-core.js +1 -1
  214. package/dist/module/payouts-list-core2.js +1 -1
  215. package/dist/module/plaid-payment-method.js +1 -1
  216. package/dist/module/product-or-service.js +1 -1
  217. package/dist/module/refund-policy.js +1 -1
  218. package/dist/module/schema-validations.js +1 -1
  219. package/dist/module/shipping-details.js +1 -1
  220. package/dist/module/utils4.js +1 -1
  221. package/dist/types/components/checkout/checkout.d.ts +1 -1
  222. package/dist/types/components/tokenize-payment-method/internal-tokenize-payment-method.d.ts +60 -0
  223. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -47
  224. package/dist/types/components.d.ts +93 -54
  225. package/dist/webcomponents/{p-98508ff0.entry.js → p-00e0a745.entry.js} +1 -1
  226. package/dist/webcomponents/{p-e050b917.entry.js → p-087a81ff.entry.js} +1 -1
  227. package/dist/webcomponents/{p-56d9a8f1.entry.js → p-0ce046fd.entry.js} +1 -1
  228. package/dist/webcomponents/{p-62cdb2b1.entry.js → p-1193a1ac.entry.js} +1 -1
  229. package/dist/webcomponents/{p-e34a6e5f.entry.js → p-14d2f6c6.entry.js} +1 -1
  230. package/dist/webcomponents/{p-20ccd0a4.entry.js → p-1eae32ac.entry.js} +1 -1
  231. package/dist/webcomponents/{p-198a6ae3.entry.js → p-1edec396.entry.js} +1 -1
  232. package/dist/webcomponents/{p-065eafc5.entry.js → p-20a8b0c0.entry.js} +1 -1
  233. package/dist/webcomponents/{p-3cb3a241.entry.js → p-22f74666.entry.js} +1 -1
  234. package/dist/webcomponents/p-2769f945.entry.js +1 -0
  235. package/dist/webcomponents/{p-89f1448c.entry.js → p-2cd5733e.entry.js} +1 -1
  236. package/dist/webcomponents/p-30f61f44.entry.js +1 -0
  237. package/dist/webcomponents/{p-85bbadaf.entry.js → p-37a55eaf.entry.js} +1 -1
  238. package/dist/webcomponents/p-3c38cec5.entry.js +1 -0
  239. package/dist/webcomponents/p-40d3a480.entry.js +1 -0
  240. package/dist/webcomponents/{p-82b13550.entry.js → p-45936490.entry.js} +1 -1
  241. package/dist/webcomponents/{p-abf2073d.entry.js → p-4761e0aa.entry.js} +1 -1
  242. package/dist/webcomponents/{p-91f22211.entry.js → p-4c3eea2b.entry.js} +1 -1
  243. package/dist/webcomponents/{p-27acf7cc.entry.js → p-4dcbc0af.entry.js} +1 -1
  244. package/dist/webcomponents/{p-46d7ca2f.entry.js → p-4e23116c.entry.js} +4 -4
  245. package/dist/webcomponents/{p-2976c54e.entry.js → p-5464b902.entry.js} +1 -1
  246. package/dist/webcomponents/{p-32af1830.entry.js → p-54facfdc.entry.js} +1 -1
  247. package/dist/webcomponents/{p-0bd7b871.entry.js → p-56a8e07d.entry.js} +1 -1
  248. package/dist/webcomponents/{p-52cb10a7.entry.js → p-58ae4f9e.entry.js} +1 -1
  249. package/dist/webcomponents/{p-220420bb.entry.js → p-5d1fb433.entry.js} +1 -1
  250. package/dist/webcomponents/p-5f81a3d6.entry.js +1 -0
  251. package/dist/webcomponents/{p-9d6ceb95.entry.js → p-696a5c8e.entry.js} +1 -1
  252. package/dist/webcomponents/p-6b6003d2.entry.js +1 -0
  253. package/dist/webcomponents/{p-590290a2.entry.js → p-716ddc27.entry.js} +1 -1
  254. package/dist/webcomponents/{p-9633fbb8.entry.js → p-7218c312.entry.js} +1 -1
  255. package/dist/webcomponents/{p-83cd698c.entry.js → p-75c65531.entry.js} +1 -1
  256. package/dist/webcomponents/{p-d217f6ea.entry.js → p-800660f2.entry.js} +1 -1
  257. package/dist/webcomponents/p-84e2bd93.entry.js +1 -0
  258. package/dist/webcomponents/{p-6677f09f.entry.js → p-8681f258.entry.js} +1 -1
  259. package/dist/webcomponents/{p-5c847406.entry.js → p-87a2a830.entry.js} +1 -1
  260. package/dist/webcomponents/{p-e788ecc9.entry.js → p-89518b26.entry.js} +1 -1
  261. package/dist/webcomponents/{p-89ff96ef.entry.js → p-95593721.entry.js} +1 -1
  262. package/dist/webcomponents/{p-e29bdbc2.entry.js → p-9d914297.entry.js} +1 -1
  263. package/dist/webcomponents/{p-5eb2698f.entry.js → p-9f70ce93.entry.js} +1 -1
  264. package/dist/webcomponents/p-B-0a8Xqm.js +1 -0
  265. package/dist/webcomponents/{p-D2DVDmwd.js → p-BNqo3kt0.js} +1 -1
  266. package/dist/webcomponents/{p-B-7rLJIB.js → p-BTzt8N0l.js} +1 -1
  267. package/dist/webcomponents/{p-C9Ho60F2.js → p-BitGlMSc.js} +1 -1
  268. package/dist/webcomponents/p-Bli6WznP.js +1 -0
  269. package/dist/webcomponents/{p-DkOvNRJs.js → p-Bqlcv3ZV.js} +1 -1
  270. package/dist/webcomponents/p-BuCKkdLM.js +1 -0
  271. package/dist/webcomponents/{p-BB3MQDQq.js → p-BydKIJVC.js} +1 -1
  272. package/dist/webcomponents/p-C-2kW6Al.js +1 -0
  273. package/dist/webcomponents/p-C19Xk7z3.js +1 -0
  274. package/dist/webcomponents/{p-D8HCCl2t.js → p-CkN7DFFn.js} +1 -1
  275. package/dist/webcomponents/{p-O4_LrrnE.js → p-D1WQG4I7.js} +1 -1
  276. package/dist/webcomponents/{p-Cu1FEdFr.js → p-DOLBAxYf.js} +1 -1
  277. package/dist/webcomponents/{p-CeO5d98O.js → p-DV4RaYYL.js} +1 -1
  278. package/dist/webcomponents/{p-fDGfMEwy.js → p-DkOiS6Zr.js} +1 -1
  279. package/dist/webcomponents/{p-BVWZSqCK.js → p-KPmnq8xf.js} +1 -1
  280. package/dist/webcomponents/{p-28c28c0b.entry.js → p-a655b996.entry.js} +1 -1
  281. package/dist/webcomponents/{p-9fb66685.entry.js → p-a6e37d4a.entry.js} +1 -1
  282. package/dist/webcomponents/{p-256a95eb.entry.js → p-a8f7cf9b.entry.js} +1 -1
  283. package/dist/webcomponents/{p-8993c961.entry.js → p-ae7a027b.entry.js} +1 -1
  284. package/dist/webcomponents/{p-1414e80b.entry.js → p-aec9185f.entry.js} +1 -1
  285. package/dist/webcomponents/{p-DopgIZQg.js → p-avgjSJ1d.js} +1 -1
  286. package/dist/webcomponents/{p-06a0e2e2.entry.js → p-b07470fa.entry.js} +1 -1
  287. package/dist/webcomponents/{p-d287dea1.entry.js → p-b2f969a6.entry.js} +1 -1
  288. package/dist/webcomponents/p-b4d8a3f6.entry.js +1 -0
  289. package/dist/webcomponents/{p-q6C7btl0.js → p-bolTb61p.js} +1 -1
  290. package/dist/webcomponents/{p-58a68ad6.entry.js → p-c0198eef.entry.js} +1 -1
  291. package/dist/webcomponents/{p-2a53a095.entry.js → p-c1831747.entry.js} +1 -1
  292. package/dist/webcomponents/{p-aee79310.entry.js → p-c31fe838.entry.js} +1 -1
  293. package/dist/webcomponents/p-c3b71a1f.entry.js +1 -0
  294. package/dist/webcomponents/{p-4e90834e.entry.js → p-c7279bc6.entry.js} +1 -1
  295. package/dist/webcomponents/p-c7MCfTgE.js +1 -0
  296. package/dist/webcomponents/{p-e06327aa.entry.js → p-c8f40375.entry.js} +1 -1
  297. package/dist/webcomponents/{p-589e4fcb.entry.js → p-d182f489.entry.js} +1 -1
  298. package/dist/webcomponents/{p-728158a8.entry.js → p-d4b8274f.entry.js} +1 -1
  299. package/dist/webcomponents/{p-0214a9f4.entry.js → p-d86b8ce7.entry.js} +1 -1
  300. package/dist/webcomponents/p-dc0d3484.entry.js +1 -0
  301. package/dist/webcomponents/{p-c6edc4c9.entry.js → p-dfe68bf0.entry.js} +1 -1
  302. package/dist/webcomponents/{p-Bo278yZD.js → p-dgG_o6wN.js} +1 -1
  303. package/dist/webcomponents/{p-f02ab3fd.entry.js → p-e2e6c201.entry.js} +1 -1
  304. package/dist/webcomponents/{p-238859ef.entry.js → p-eb56ba9b.entry.js} +1 -1
  305. package/dist/webcomponents/{p-0d928de1.entry.js → p-ed55d333.entry.js} +1 -1
  306. package/dist/webcomponents/p-edcb84bf.entry.js +1 -0
  307. package/dist/webcomponents/{p-9db64da8.entry.js → p-f1af630f.entry.js} +1 -1
  308. package/dist/webcomponents/{p-6023553c.entry.js → p-f5fb1af2.entry.js} +1 -1
  309. package/dist/webcomponents/{p-79cb28bd.entry.js → p-fab28b02.entry.js} +1 -1
  310. package/dist/webcomponents/p-fda2d53b.entry.js +1 -0
  311. package/dist/webcomponents/{p-DsR5Dt9w.js → p-jTVpG8Gt.js} +1 -1
  312. package/dist/webcomponents/{p-DwLZbA7D.js → p-nrZ9yHcl.js} +1 -1
  313. package/dist/webcomponents/{p-Dj_zevuD.js → p-wtuY7MT2.js} +1 -1
  314. package/dist/webcomponents/p-zNSPsvs3.js +1 -0
  315. package/dist/webcomponents/webcomponents.esm.js +1 -1
  316. package/package.json +1 -1
  317. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +0 -342
  318. package/dist/webcomponents/p-2859a8e3.entry.js +0 -1
  319. package/dist/webcomponents/p-336b08de.entry.js +0 -1
  320. package/dist/webcomponents/p-36259848.entry.js +0 -1
  321. package/dist/webcomponents/p-6b563428.entry.js +0 -1
  322. package/dist/webcomponents/p-77884032.entry.js +0 -1
  323. package/dist/webcomponents/p-8dab7768.entry.js +0 -1
  324. package/dist/webcomponents/p-BeukOaOq.js +0 -1
  325. package/dist/webcomponents/p-C2gAiiwJ.js +0 -1
  326. package/dist/webcomponents/p-C7m-gAAM.js +0 -1
  327. package/dist/webcomponents/p-CO8ZJ0jB.js +0 -1
  328. package/dist/webcomponents/p-CgbXzEbz.js +0 -1
  329. package/dist/webcomponents/p-JvWiY69B.js +0 -1
  330. package/dist/webcomponents/p-VhOlg78I.js +0 -1
  331. package/dist/webcomponents/p-a49ca7d8.entry.js +0 -1
  332. package/dist/webcomponents/p-cdf94860.entry.js +0 -1
  333. package/dist/webcomponents/p-d8fc3996.entry.js +0 -1
  334. package/dist/webcomponents/p-de7f1479.entry.js +0 -1
@@ -6,42 +6,42 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Business, IAdditionalQuestions, IAddress } from "./api/Business";
9
- import { ComponentClickEvent as ComponentClickEvent1, ComponentErrorCodes, ComponentErrorEvent as ComponentErrorEvent1, ComponentFormStepCompleteEvent as ComponentFormStepCompleteEvent1, ComponentSubmitEvent as ComponentSubmitEvent1, FileSelectEvent, IApiResponse, ICheckoutPaymentModeParam, ICheckoutStatus, ILoadedEventResponse, IRefund, ITerminalStatus, TerminalModelName, TerminalOrderStatus, TerminalOrderType } from "./api";
10
- import { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEvent, ComponentSubmitEvent, RecordClickEvent } from "./api/ComponentEvents";
9
+ import { ComponentClickEvent as ComponentClickEvent1, ComponentErrorCodes, ComponentErrorEvent as ComponentErrorEvent1, ComponentFormStepCompleteEvent as ComponentFormStepCompleteEvent1, ComponentSubmitEvent, FileSelectEvent, IApiResponse, ICheckoutPaymentModeParam, ICheckoutStatus, ILoadedEventResponse, IRefund, ITerminalStatus, TerminalModelName, TerminalOrderStatus, TerminalOrderType } from "./api";
10
+ import { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEvent, ComponentSubmitEvent as ComponentSubmitEvent1, RecordClickEvent } from "./api/ComponentEvents";
11
11
  import { Placement, PositioningStrategy } from "@popperjs/core";
12
12
  import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
13
13
  import { IPaymentMethodMetadata } from "./api/PaymentMethod";
14
- import { BillingFormFields as BillingFormFields1, FormController } from "./components";
14
+ import { BillingFormFields, FormController } from "./components";
15
+ import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
15
16
  import { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
16
17
  import { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
17
18
  import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
18
- import { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
19
+ import { BillingFormFields as BillingFormFields1 } from "./components/checkout/billing-form/billing-form-schema";
19
20
  import { CountryCode } from "./utils/country-codes";
20
21
  import { FormController as FormController1 } from "./ui-components/form/form";
21
22
  import { CheckoutChangedEventDetail, Hook, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
22
23
  import { CheckoutState } from "./store/checkout.store";
23
24
  import { Dispute, IDispute } from "./api/Dispute";
24
- import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
25
25
  import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
26
26
  import { Identity } from "./api/Identity";
27
27
  import { PaginationProps } from "./ui-components/pagination-menu/pagination-menu";
28
28
  export { Business, IAdditionalQuestions, IAddress } from "./api/Business";
29
- export { ComponentClickEvent as ComponentClickEvent1, ComponentErrorCodes, ComponentErrorEvent as ComponentErrorEvent1, ComponentFormStepCompleteEvent as ComponentFormStepCompleteEvent1, ComponentSubmitEvent as ComponentSubmitEvent1, FileSelectEvent, IApiResponse, ICheckoutPaymentModeParam, ICheckoutStatus, ILoadedEventResponse, IRefund, ITerminalStatus, TerminalModelName, TerminalOrderStatus, TerminalOrderType } from "./api";
30
- export { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEvent, ComponentSubmitEvent, RecordClickEvent } from "./api/ComponentEvents";
29
+ export { ComponentClickEvent as ComponentClickEvent1, ComponentErrorCodes, ComponentErrorEvent as ComponentErrorEvent1, ComponentFormStepCompleteEvent as ComponentFormStepCompleteEvent1, ComponentSubmitEvent, FileSelectEvent, IApiResponse, ICheckoutPaymentModeParam, ICheckoutStatus, ILoadedEventResponse, IRefund, ITerminalStatus, TerminalModelName, TerminalOrderStatus, TerminalOrderType } from "./api";
30
+ export { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEvent, ComponentSubmitEvent as ComponentSubmitEvent1, RecordClickEvent } from "./api/ComponentEvents";
31
31
  export { Placement, PositioningStrategy } from "@popperjs/core";
32
32
  export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
33
33
  export { IPaymentMethodMetadata } from "./api/PaymentMethod";
34
- export { BillingFormFields as BillingFormFields1, FormController } from "./components";
34
+ export { BillingFormFields, FormController } from "./components";
35
+ export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
35
36
  export { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
36
37
  export { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
37
38
  export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
38
- export { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
39
+ export { BillingFormFields as BillingFormFields1 } from "./components/checkout/billing-form/billing-form-schema";
39
40
  export { CountryCode } from "./utils/country-codes";
40
41
  export { FormController as FormController1 } from "./ui-components/form/form";
41
42
  export { CheckoutChangedEventDetail, Hook, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
42
43
  export { CheckoutState } from "./store/checkout.store";
43
44
  export { Dispute, IDispute } from "./api/Dispute";
44
- export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
45
45
  export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
46
46
  export { Identity } from "./api/Identity";
47
47
  export { PaginationProps } from "./ui-components/pagination-menu/pagination-menu";
@@ -271,6 +271,25 @@ export namespace Components {
271
271
  "tokenize": (clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string) => Promise<any>;
272
272
  "validate": () => Promise<any>;
273
273
  }
274
+ interface InternalTokenizePaymentMethod {
275
+ "accountId"?: string;
276
+ "authToken"?: string;
277
+ "disableBankAccount"?: boolean;
278
+ "disableCreditCard"?: boolean;
279
+ "fillBillingForm": (fields: BillingFormFields) => Promise<void>;
280
+ "hideBankAccountBillingForm"?: boolean;
281
+ "hideCardBillingForm"?: boolean;
282
+ "hideSubmitButton"?: boolean;
283
+ "paymentMethodGroupId"?: string;
284
+ "savePaymentMethodLabel"?: string;
285
+ /**
286
+ * @default 'Submit'
287
+ */
288
+ "submitButtonText"?: string;
289
+ "tokenize": () => Promise<any>;
290
+ "tokenizePaymentMethod": (event?: MouseEvent) => Promise<PaymentMethodPayload>;
291
+ "validate": () => Promise<ValidationResult>;
292
+ }
274
293
  interface JustifiAdditionalQuestions {
275
294
  "formController": FormController;
276
295
  }
@@ -340,8 +359,8 @@ export namespace Components {
340
359
  "width": string;
341
360
  }
342
361
  interface JustifiBankAccountBillingFormSimple {
343
- "fill": (fields: BillingFormFields) => Promise<void>;
344
- "getValues": () => Promise<BillingFormFields>;
362
+ "fill": (fields: BillingFormFields1) => Promise<void>;
363
+ "getValues": () => Promise<BillingFormFields1>;
345
364
  "legend"?: string;
346
365
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
347
366
  }
@@ -350,8 +369,8 @@ export namespace Components {
350
369
  "validate": () => Promise<any>;
351
370
  }
352
371
  interface JustifiBillingForm {
353
- "fill": (fields: BillingFormFields) => Promise<void>;
354
- "getValues": () => Promise<BillingFormFields>;
372
+ "fill": (fields: BillingFormFields1) => Promise<void>;
373
+ "getValues": () => Promise<BillingFormFields1>;
355
374
  "hideBankAccountBillingForm"?: boolean;
356
375
  "hideCardBillingForm"?: boolean;
357
376
  "legend"?: string;
@@ -359,8 +378,8 @@ export namespace Components {
359
378
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
360
379
  }
361
380
  interface JustifiBillingFormFull {
362
- "fill": (fields: BillingFormFields) => Promise<void>;
363
- "getValues": () => Promise<BillingFormFields>;
381
+ "fill": (fields: BillingFormFields1) => Promise<void>;
382
+ "getValues": () => Promise<BillingFormFields1>;
364
383
  "legend"?: string;
365
384
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
366
385
  }
@@ -495,8 +514,8 @@ export namespace Components {
495
514
  "validateAndSubmit": (onSuccess: (formData: any, documentList: DisputeEvidenceDocument[], formStep: DisputeResponseFormStep) => void) => Promise<void>;
496
515
  }
497
516
  interface JustifiCardBillingFormSimple {
498
- "fill": (fields: BillingFormFields) => Promise<void>;
499
- "getValues": () => Promise<BillingFormFields>;
517
+ "fill": (fields: BillingFormFields1) => Promise<void>;
518
+ "getValues": () => Promise<BillingFormFields1>;
500
519
  "legend"?: string;
501
520
  "validate": () => Promise<{ isValid: boolean; errors: any; }>;
502
521
  }
@@ -523,7 +542,7 @@ export namespace Components {
523
542
  * @default false
524
543
  */
525
544
  "disablePaymentMethodGroup"?: boolean;
526
- "fillBillingForm": (fields: BillingFormFields) => Promise<void>;
545
+ "fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
527
546
  /**
528
547
  * @default false
529
548
  */
@@ -684,7 +703,7 @@ export namespace Components {
684
703
  "checkoutId": string;
685
704
  "preCompleteHook"?: Hook<CheckoutState>;
686
705
  "setSelectedPaymentMethod": (paymentMethod: SelectedPaymentMethod) => Promise<void>;
687
- "submitCheckout": (submitCheckoutArgs?: BillingFormFields1) => Promise<void>;
706
+ "submitCheckout": (submitCheckoutArgs?: BillingFormFields) => Promise<void>;
688
707
  "validate": () => Promise<boolean>;
689
708
  }
690
709
  interface JustifiOrderTerminals {
@@ -946,7 +965,6 @@ export namespace Components {
946
965
  "authToken"?: string;
947
966
  "disableBankAccount"?: boolean;
948
967
  "disableCreditCard"?: boolean;
949
- "fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
950
968
  "hideBankAccountBillingForm"?: boolean;
951
969
  "hideCardBillingForm"?: boolean;
952
970
  "hideSubmitButton"?: boolean;
@@ -956,9 +974,6 @@ export namespace Components {
956
974
  * @default 'Submit'
957
975
  */
958
976
  "submitButtonText"?: string;
959
- "tokenize": () => Promise<any>;
960
- "tokenizePaymentMethod": (event?: MouseEvent) => Promise<PaymentMethodPayload>;
961
- "validate": () => Promise<ValidationResult>;
962
977
  }
963
978
  interface LegalAddressDetails {
964
979
  "legalAddress": IAddress;
@@ -1121,6 +1136,10 @@ export interface IframeInputCustomEvent<T> extends CustomEvent<T> {
1121
1136
  detail: T;
1122
1137
  target: HTMLIframeInputElement;
1123
1138
  }
1139
+ export interface InternalTokenizePaymentMethodCustomEvent<T> extends CustomEvent<T> {
1140
+ detail: T;
1141
+ target: HTMLInternalTokenizePaymentMethodElement;
1142
+ }
1124
1143
  export interface JustifiAdditionalQuestionsFormStepCustomEvent<T> extends CustomEvent<T> {
1125
1144
  detail: T;
1126
1145
  target: HTMLJustifiAdditionalQuestionsFormStepElement;
@@ -1297,10 +1316,6 @@ export interface JustifiTerminalsListCustomEvent<T> extends CustomEvent<T> {
1297
1316
  detail: T;
1298
1317
  target: HTMLJustifiTerminalsListElement;
1299
1318
  }
1300
- export interface JustifiTokenizePaymentMethodCustomEvent<T> extends CustomEvent<T> {
1301
- detail: T;
1302
- target: HTMLJustifiTokenizePaymentMethodElement;
1303
- }
1304
1319
  export interface OwnerFormCoreCustomEvent<T> extends CustomEvent<T> {
1305
1320
  detail: T;
1306
1321
  target: HTMLOwnerFormCoreElement;
@@ -1716,6 +1731,24 @@ declare global {
1716
1731
  prototype: HTMLIframeInputElement;
1717
1732
  new (): HTMLIframeInputElement;
1718
1733
  };
1734
+ interface HTMLInternalTokenizePaymentMethodElementEventMap {
1735
+ "error-event": ComponentErrorEvent1;
1736
+ "submit-event": ComponentSubmitEvent;
1737
+ }
1738
+ interface HTMLInternalTokenizePaymentMethodElement extends Components.InternalTokenizePaymentMethod, HTMLStencilElement {
1739
+ addEventListener<K extends keyof HTMLInternalTokenizePaymentMethodElementEventMap>(type: K, listener: (this: HTMLInternalTokenizePaymentMethodElement, ev: InternalTokenizePaymentMethodCustomEvent<HTMLInternalTokenizePaymentMethodElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1740
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1741
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1742
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1743
+ removeEventListener<K extends keyof HTMLInternalTokenizePaymentMethodElementEventMap>(type: K, listener: (this: HTMLInternalTokenizePaymentMethodElement, ev: InternalTokenizePaymentMethodCustomEvent<HTMLInternalTokenizePaymentMethodElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1744
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1745
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1746
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1747
+ }
1748
+ var HTMLInternalTokenizePaymentMethodElement: {
1749
+ prototype: HTMLInternalTokenizePaymentMethodElement;
1750
+ new (): HTMLInternalTokenizePaymentMethodElement;
1751
+ };
1719
1752
  interface HTMLJustifiAdditionalQuestionsElement extends Components.JustifiAdditionalQuestions, HTMLStencilElement {
1720
1753
  }
1721
1754
  var HTMLJustifiAdditionalQuestionsElement: {
@@ -1914,7 +1947,7 @@ declare global {
1914
1947
  new (): HTMLJustifiBusinessDetailsElement;
1915
1948
  };
1916
1949
  interface HTMLJustifiBusinessFormElementEventMap {
1917
- "submit-event": ComponentSubmitEvent;
1950
+ "submit-event": ComponentSubmitEvent1;
1918
1951
  "click-event": ComponentClickEvent;
1919
1952
  "error-event": ComponentErrorEvent;
1920
1953
  }
@@ -2064,7 +2097,7 @@ declare global {
2064
2097
  interface HTMLJustifiCheckoutElementEventMap {
2065
2098
  "error-event": ComponentErrorEvent;
2066
2099
  "loaded": ILoadedEventResponse;
2067
- "submit-event": ComponentSubmitEvent;
2100
+ "submit-event": ComponentSubmitEvent1;
2068
2101
  }
2069
2102
  interface HTMLJustifiCheckoutElement extends Components.JustifiCheckout, HTMLStencilElement {
2070
2103
  addEventListener<K extends keyof HTMLJustifiCheckoutElementEventMap>(type: K, listener: (this: HTMLJustifiCheckoutElement, ev: JustifiCheckoutCustomEvent<HTMLJustifiCheckoutElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2164,7 +2197,7 @@ declare global {
2164
2197
  interface HTMLJustifiDisputeNotificationElementEventMap {
2165
2198
  "click-event": ComponentClickEvent;
2166
2199
  "error-event": ComponentErrorEvent;
2167
- "submit-event": ComponentSubmitEvent;
2200
+ "submit-event": ComponentSubmitEvent1;
2168
2201
  }
2169
2202
  interface HTMLJustifiDisputeNotificationElement extends Components.JustifiDisputeNotification, HTMLStencilElement {
2170
2203
  addEventListener<K extends keyof HTMLJustifiDisputeNotificationElementEventMap>(type: K, listener: (this: HTMLJustifiDisputeNotificationElement, ev: JustifiDisputeNotificationCustomEvent<HTMLJustifiDisputeNotificationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2201,7 +2234,7 @@ declare global {
2201
2234
  "click-event": ComponentClickEvent;
2202
2235
  "error-event": ComponentErrorEvent;
2203
2236
  "complete-form-step-event": ComponentFormStepCompleteEvent;
2204
- "submit-event": ComponentSubmitEvent;
2237
+ "submit-event": ComponentSubmitEvent1;
2205
2238
  }
2206
2239
  interface HTMLJustifiDisputeResponseCoreElement extends Components.JustifiDisputeResponseCore, HTMLStencilElement {
2207
2240
  addEventListener<K extends keyof HTMLJustifiDisputeResponseCoreElementEventMap>(type: K, listener: (this: HTMLJustifiDisputeResponseCoreElement, ev: JustifiDisputeResponseCoreCustomEvent<HTMLJustifiDisputeResponseCoreElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2398,7 +2431,7 @@ declare global {
2398
2431
  interface HTMLJustifiPaymentProvisioningCoreElementEventMap {
2399
2432
  "click-event": ComponentClickEvent;
2400
2433
  "error-event": ComponentErrorEvent;
2401
- "submit-event": ComponentSubmitEvent;
2434
+ "submit-event": ComponentSubmitEvent1;
2402
2435
  }
2403
2436
  interface HTMLJustifiPaymentProvisioningCoreElement extends Components.JustifiPaymentProvisioningCore, HTMLStencilElement {
2404
2437
  addEventListener<K extends keyof HTMLJustifiPaymentProvisioningCoreElementEventMap>(type: K, listener: (this: HTMLJustifiPaymentProvisioningCoreElement, ev: JustifiPaymentProvisioningCoreCustomEvent<HTMLJustifiPaymentProvisioningCoreElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2569,7 +2602,7 @@ declare global {
2569
2602
  };
2570
2603
  interface HTMLJustifiRefundPaymentElementEventMap {
2571
2604
  "error-event": ComponentErrorEvent1;
2572
- "submit-event": ComponentSubmitEvent1;
2605
+ "submit-event": ComponentSubmitEvent;
2573
2606
  }
2574
2607
  interface HTMLJustifiRefundPaymentElement extends Components.JustifiRefundPayment, HTMLStencilElement {
2575
2608
  addEventListener<K extends keyof HTMLJustifiRefundPaymentElementEventMap>(type: K, listener: (this: HTMLJustifiRefundPaymentElement, ev: JustifiRefundPaymentCustomEvent<HTMLJustifiRefundPaymentElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2724,19 +2757,7 @@ declare global {
2724
2757
  prototype: HTMLJustifiTerminalsListFiltersElement;
2725
2758
  new (): HTMLJustifiTerminalsListFiltersElement;
2726
2759
  };
2727
- interface HTMLJustifiTokenizePaymentMethodElementEventMap {
2728
- "error-event": ComponentErrorEvent1;
2729
- "submit-event": ComponentSubmitEvent1;
2730
- }
2731
2760
  interface HTMLJustifiTokenizePaymentMethodElement extends Components.JustifiTokenizePaymentMethod, HTMLStencilElement {
2732
- addEventListener<K extends keyof HTMLJustifiTokenizePaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiTokenizePaymentMethodElement, ev: JustifiTokenizePaymentMethodCustomEvent<HTMLJustifiTokenizePaymentMethodElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2733
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2734
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2735
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2736
- removeEventListener<K extends keyof HTMLJustifiTokenizePaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiTokenizePaymentMethodElement, ev: JustifiTokenizePaymentMethodCustomEvent<HTMLJustifiTokenizePaymentMethodElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
2737
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2738
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2739
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2740
2761
  }
2741
2762
  var HTMLJustifiTokenizePaymentMethodElement: {
2742
2763
  prototype: HTMLJustifiTokenizePaymentMethodElement;
@@ -2959,6 +2980,7 @@ declare global {
2959
2980
  "gross-payment-chart-core": HTMLGrossPaymentChartCoreElement;
2960
2981
  "hidden-input": HTMLHiddenInputElement;
2961
2982
  "iframe-input": HTMLIframeInputElement;
2983
+ "internal-tokenize-payment-method": HTMLInternalTokenizePaymentMethodElement;
2962
2984
  "justifi-additional-questions": HTMLJustifiAdditionalQuestionsElement;
2963
2985
  "justifi-additional-questions-form-step": HTMLJustifiAdditionalQuestionsFormStepElement;
2964
2986
  "justifi-additional-questions-form-step-core": HTMLJustifiAdditionalQuestionsFormStepCoreElement;
@@ -3308,6 +3330,23 @@ declare namespace LocalJSX {
3308
3330
  "label"?: string;
3309
3331
  "onIframeLoaded"?: (event: IframeInputCustomEvent<void>) => void;
3310
3332
  }
3333
+ interface InternalTokenizePaymentMethod {
3334
+ "accountId"?: string;
3335
+ "authToken"?: string;
3336
+ "disableBankAccount"?: boolean;
3337
+ "disableCreditCard"?: boolean;
3338
+ "hideBankAccountBillingForm"?: boolean;
3339
+ "hideCardBillingForm"?: boolean;
3340
+ "hideSubmitButton"?: boolean;
3341
+ "onError-event"?: (event: InternalTokenizePaymentMethodCustomEvent<ComponentErrorEvent1>) => void;
3342
+ "onSubmit-event"?: (event: InternalTokenizePaymentMethodCustomEvent<ComponentSubmitEvent>) => void;
3343
+ "paymentMethodGroupId"?: string;
3344
+ "savePaymentMethodLabel"?: string;
3345
+ /**
3346
+ * @default 'Submit'
3347
+ */
3348
+ "submitButtonText"?: string;
3349
+ }
3311
3350
  interface JustifiAdditionalQuestions {
3312
3351
  "formController"?: FormController;
3313
3352
  }
@@ -3459,7 +3498,7 @@ declare namespace LocalJSX {
3459
3498
  "hideErrors"?: boolean;
3460
3499
  "onClick-event"?: (event: JustifiBusinessFormCustomEvent<ComponentClickEvent>) => void;
3461
3500
  "onError-event"?: (event: JustifiBusinessFormCustomEvent<ComponentErrorEvent>) => void;
3462
- "onSubmit-event"?: (event: JustifiBusinessFormCustomEvent<ComponentSubmitEvent>) => void;
3501
+ "onSubmit-event"?: (event: JustifiBusinessFormCustomEvent<ComponentSubmitEvent1>) => void;
3463
3502
  /**
3464
3503
  * @default false
3465
3504
  */
@@ -3576,7 +3615,7 @@ declare namespace LocalJSX {
3576
3615
  "hideCardBillingForm"?: boolean;
3577
3616
  "onError-event"?: (event: JustifiCheckoutCustomEvent<ComponentErrorEvent>) => void;
3578
3617
  "onLoaded"?: (event: JustifiCheckoutCustomEvent<ILoadedEventResponse>) => void;
3579
- "onSubmit-event"?: (event: JustifiCheckoutCustomEvent<ComponentSubmitEvent>) => void;
3618
+ "onSubmit-event"?: (event: JustifiCheckoutCustomEvent<ComponentSubmitEvent1>) => void;
3580
3619
  "preCompleteHook"?: Hook<CheckoutState>;
3581
3620
  }
3582
3621
  interface JustifiCheckoutSummary {
@@ -3635,7 +3674,7 @@ declare namespace LocalJSX {
3635
3674
  "isLoading"?: boolean;
3636
3675
  "onClick-event"?: (event: JustifiDisputeNotificationCustomEvent<ComponentClickEvent>) => void;
3637
3676
  "onError-event"?: (event: JustifiDisputeNotificationCustomEvent<ComponentErrorEvent>) => void;
3638
- "onSubmit-event"?: (event: JustifiDisputeNotificationCustomEvent<ComponentSubmitEvent>) => void;
3677
+ "onSubmit-event"?: (event: JustifiDisputeNotificationCustomEvent<ComponentSubmitEvent1>) => void;
3639
3678
  }
3640
3679
  interface JustifiDisputeResponse {
3641
3680
  /**
@@ -3660,7 +3699,7 @@ declare namespace LocalJSX {
3660
3699
  "onClick-event"?: (event: JustifiDisputeResponseCoreCustomEvent<ComponentClickEvent>) => void;
3661
3700
  "onComplete-form-step-event"?: (event: JustifiDisputeResponseCoreCustomEvent<ComponentFormStepCompleteEvent>) => void;
3662
3701
  "onError-event"?: (event: JustifiDisputeResponseCoreCustomEvent<ComponentErrorEvent>) => void;
3663
- "onSubmit-event"?: (event: JustifiDisputeResponseCoreCustomEvent<ComponentSubmitEvent>) => void;
3702
+ "onSubmit-event"?: (event: JustifiDisputeResponseCoreCustomEvent<ComponentSubmitEvent1>) => void;
3664
3703
  "submitDisputeResponse"?: (args: {
3665
3704
  payload: any,
3666
3705
  onSuccess: (disputeResponse: any) => void,
@@ -3798,7 +3837,7 @@ declare namespace LocalJSX {
3798
3837
  "getBusiness"?: Function;
3799
3838
  "onClick-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentClickEvent>) => void;
3800
3839
  "onError-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentErrorEvent>) => void;
3801
- "onSubmit-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentSubmitEvent>) => void;
3840
+ "onSubmit-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentSubmitEvent1>) => void;
3802
3841
  "postProvisioning"?: Function;
3803
3842
  }
3804
3843
  interface JustifiPaymentProvisioningFormButtons {
@@ -3917,7 +3956,7 @@ declare namespace LocalJSX {
3917
3956
  */
3918
3957
  "hideSubmitButton"?: boolean;
3919
3958
  "onError-event"?: (event: JustifiRefundPaymentCustomEvent<ComponentErrorEvent1>) => void;
3920
- "onSubmit-event"?: (event: JustifiRefundPaymentCustomEvent<ComponentSubmitEvent1>) => void;
3959
+ "onSubmit-event"?: (event: JustifiRefundPaymentCustomEvent<ComponentSubmitEvent>) => void;
3921
3960
  "paymentId"?: string;
3922
3961
  }
3923
3962
  interface JustifiRefundPolicy {
@@ -4012,8 +4051,6 @@ declare namespace LocalJSX {
4012
4051
  "hideBankAccountBillingForm"?: boolean;
4013
4052
  "hideCardBillingForm"?: boolean;
4014
4053
  "hideSubmitButton"?: boolean;
4015
- "onError-event"?: (event: JustifiTokenizePaymentMethodCustomEvent<ComponentErrorEvent1>) => void;
4016
- "onSubmit-event"?: (event: JustifiTokenizePaymentMethodCustomEvent<ComponentSubmitEvent1>) => void;
4017
4054
  "paymentMethodGroupId"?: string;
4018
4055
  "savePaymentMethodLabel"?: string;
4019
4056
  /**
@@ -4156,6 +4193,7 @@ declare namespace LocalJSX {
4156
4193
  "gross-payment-chart-core": GrossPaymentChartCore;
4157
4194
  "hidden-input": HiddenInput;
4158
4195
  "iframe-input": IframeInput;
4196
+ "internal-tokenize-payment-method": InternalTokenizePaymentMethod;
4159
4197
  "justifi-additional-questions": JustifiAdditionalQuestions;
4160
4198
  "justifi-additional-questions-form-step": JustifiAdditionalQuestionsFormStep;
4161
4199
  "justifi-additional-questions-form-step-core": JustifiAdditionalQuestionsFormStepCore;
@@ -4287,6 +4325,7 @@ declare module "@stencil/core" {
4287
4325
  "gross-payment-chart-core": LocalJSX.GrossPaymentChartCore & JSXBase.HTMLAttributes<HTMLGrossPaymentChartCoreElement>;
4288
4326
  "hidden-input": LocalJSX.HiddenInput & JSXBase.HTMLAttributes<HTMLHiddenInputElement>;
4289
4327
  "iframe-input": LocalJSX.IframeInput & JSXBase.HTMLAttributes<HTMLIframeInputElement>;
4328
+ "internal-tokenize-payment-method": LocalJSX.InternalTokenizePaymentMethod & JSXBase.HTMLAttributes<HTMLInternalTokenizePaymentMethodElement>;
4290
4329
  "justifi-additional-questions": LocalJSX.JustifiAdditionalQuestions & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsElement>;
4291
4330
  "justifi-additional-questions-form-step": LocalJSX.JustifiAdditionalQuestionsFormStep & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsFormStepElement>;
4292
4331
  "justifi-additional-questions-form-step-core": LocalJSX.JustifiAdditionalQuestionsFormStepCore & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsFormStepCoreElement>;
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as e}from"./p-CeO5d98O.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-wYnnDDuR.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-BeukOaOq.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.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 e(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"80baf93d680fd610755fdfb6be030178140568da",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
+ import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-DV4RaYYL.js";import{C as e,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-wYnnDDuR.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-C19Xk7z3.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.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=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"80baf93d680fd610755fdfb6be030178140568da",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 +1 @@
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-Bo278yZD.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-Dj_zevuD.js";import{S as w}from"./p-VhOlg78I.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,l as D,m as E}from"./p-CPKSE7M4.js";import{A as L,B as H,y as B,C as P,D as A,E as V,F as W}from"./p-DopgIZQg.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-DkOvNRJs.js";import{d as R,e as Y}from"./p-O4_LrrnE.js";import"./p-BFTU3MAI.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.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 G=()=>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(G,null),t(G,null),t(G,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:A.nullable(),nickname:P.nullable(),account_owner_name:B.nullable(),account_type:H.nullable(),account_number:L.nullable()}:{bank_name:A.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(V,"Enter valid institution number"),e=h().length(5,"Transit number must be 5 digits").matches(V,"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)},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.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"]}}},$=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,R[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,Y[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,z as justifi_business_bank_account_form_step_core,$ 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
+ 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,l as E,m as D}from"./p-CPKSE7M4.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";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")},K=(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()})}},Z={[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)),K(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)),K(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 E,this.isLoading=!1,this.getSchema=()=>(0,Z[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 D({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 +1 @@
1
- import{r as l,h as i,H as t}from"./p-DwYM91AU.js";import{c as e,D as s}from"./p-D2DVDmwd.js";import{m as d,s as o,n as v}from"./p-BS7OgSQe.js";import"./p-Dj_zevuD.js";import"./p-HXpYMWUU.js";const u=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||d(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},a=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:o(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,o,v,u,a,n;return!this.legalAddress||d(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(o=this.legalAddress)||void 0===o?void 0:o.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(v=this.legalAddress)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(u=this.legalAddress)||void 0===u?void 0:u.state}),i(e,{title:"Postal Code",value:null===(n=null===(a=this.legalAddress)||void 0===a?void 0:a.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,d,o,u,a;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"col-md-6"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:v(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.line2}),i(e,{title:"City",value:null===(o=null==l?void 0:l.address)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.state}),i(e,{title:"Zip",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.postal_code})))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,o,u,a,n,r,c,h,m,p,D,w,f;return!this.representative||d(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(u=null===(o=this.representative)||void 0===o?void 0:o.address)||void 0===u?void 0:u.line1}),i(e,{title:"Created At",value:(null===(a=this.representative)||void 0===a?void 0:a.created_at)&&v(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&v(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(D=this.representative)||void 0===D?void 0:D.email}),i(e,{title:"Phone",value:null===(w=this.representative)||void 0===w?void 0:w.phone}),i(e,{title:"Updated At",value:this.representative&&v(null===(f=this.representative)||void 0===f?void 0:f.updated_at)})))))}};export{u as additional_questions_details,a as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
1
+ import{r as l,h as i,H as t}from"./p-DwYM91AU.js";import{c as e,D as s}from"./p-BNqo3kt0.js";import{m as o,s as d,n as v}from"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-HXpYMWUU.js";const u=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||o(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},a=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:d(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,d,v,u,a,n;return!this.legalAddress||o(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(v=this.legalAddress)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(u=this.legalAddress)||void 0===u?void 0:u.state}),i(e,{title:"Postal Code",value:null===(n=null===(a=this.legalAddress)||void 0===a?void 0:a.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,o,d,u,a;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"col-md-6"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:v(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(o=null==l?void 0:l.address)||void 0===o?void 0:o.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.state}),i(e,{title:"Zip",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.postal_code})))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,d,u,a,n,r,c,h,m,p,w,f,g;return!this.representative||o(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(u=null===(d=this.representative)||void 0===d?void 0:d.address)||void 0===u?void 0:u.line1}),i(e,{title:"Created At",value:(null===(a=this.representative)||void 0===a?void 0:a.created_at)&&v(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&v(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(w=this.representative)||void 0===w?void 0:w.email}),i(e,{title:"Phone",value:null===(f=this.representative)||void 0===f?void 0:f.phone}),i(e,{title:"Updated At",value:this.representative&&v(null===(g=this.representative)||void 0===g?void 0:g.updated_at)})))))}};export{u as additional_questions_details,a as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e,H as a,g as i}from"./p-DwYM91AU.js";import{c as o,l as r,b as h,U as l,a as c,aj as n,ak as d,al as f}from"./p-Dj_zevuD.js";import{F as p}from"./p-JvWiY69B.js";import"./p-CZfYo5-1.js";const u=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit(s.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=h),this.disabled&&(t=l),this.isFocused&&(t=c),t}render(){var t;return e(a,{key:"21cd587a6a3f6b1c508201f688e6cf3e3456166c"},e("div",{key:"5666e007193120a6ae78d4bab4b1005c0e3f0b49",class:"form-group d-flex flex-column"},e("div",{key:"fba926c6cf060e64ecaf6d30afeb82e58eaf82bb",class:"d-flex align-items-start gap-2"},e("label",{key:"4e1f65a58657e129dbdb2fb7dfa6bfc664942527",part:r,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"51cb52bc2a167ddbe48de8686e969905a7a9f865",helpText:this.helpText})),e("select",{key:"29bd66fd51ba97138828317633c9d14267efd815",ref:t=>this.selectElement=t,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-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>e("option",{value:t.value},t.label)))),e(p,{key:"867d7ac1d9d7ec0b121135f944994565a2b18760",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},m=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?h:this.disabled?l:this.isFocused?c:o}render(){return e(a,{key:"8fa1333a0d4d7f50ce2e415f8ba24317e33e6a08"},e("div",{key:"ed36e5fa440070d759aa830056c8a6cbdcc916d4",class:"form-group d-flex flex-column"},e("div",{key:"e773415acf7f067c8c1076198be94302c547bb80",class:"d-flex align-items-start gap-2"},e("label",{key:"9a163545aed306bdc3abed71cd875804f3c4aa32",part:r,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"8d6e13cff374cb5c92ce0af3238c636238617cba",helpText:this.helpText})),e("input",{key:"3d7c95603d79f3e7919a879308f312053ce01f12",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",type:"text",disabled:this.disabled}),e(p,{key:"e79de48854230e9b8e25a48e805784a454207065",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},b=class{constructor(s){t(this,s)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?e("div",{class:"tooltip-container"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:f},e("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),e("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),e("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},e("div",{class:"tooltip bs-tooltip-top",part:n,role:"tooltip",ref:t=>this.tooltip=t},e("div",{class:"tooltip-inner",part:d},this.helpText)))):null}};export{u as form_control_select,m as form_control_text,b as form_control_tooltip}
1
+ import{r as t,c as s,h as e,H as a,g as i}from"./p-DwYM91AU.js";import{c as o,l as r,b as h,U as l,a as c,aj as n,ak as d,al as f}from"./p-wtuY7MT2.js";import{F as p}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";const u=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit(s.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=h),this.disabled&&(t=l),this.isFocused&&(t=c),t}render(){var t;return e(a,{key:"21cd587a6a3f6b1c508201f688e6cf3e3456166c"},e("div",{key:"5666e007193120a6ae78d4bab4b1005c0e3f0b49",class:"form-group d-flex flex-column"},e("div",{key:"fba926c6cf060e64ecaf6d30afeb82e58eaf82bb",class:"d-flex align-items-start gap-2"},e("label",{key:"4e1f65a58657e129dbdb2fb7dfa6bfc664942527",part:r,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"51cb52bc2a167ddbe48de8686e969905a7a9f865",helpText:this.helpText})),e("select",{key:"29bd66fd51ba97138828317633c9d14267efd815",ref:t=>this.selectElement=t,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-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>e("option",{value:t.value},t.label)))),e(p,{key:"867d7ac1d9d7ec0b121135f944994565a2b18760",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},m=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,e=s.getAttribute("name");this.inputHandler(e,s.value),this.formControlInput.emit({name:e,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?h:this.disabled?l:this.isFocused?c:o}render(){return e(a,{key:"bf68ea270c8dee6a9e572f0d2fdfc9308c8c106f"},e("div",{key:"8e315377092c55c7c1a48c5528dba67f0d4a6f1c",class:"form-group d-flex flex-column"},e("div",{key:"c507734dadd643a306a22ce2e9df63a54422a7ab",class:"d-flex align-items-start gap-2"},e("label",{key:"7e9ca4266d86bfb0e33e5951a07599a7a17c0c31",part:r,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"a3f1737b361144e9df92c706c6b5a1c4e1e2fc34",helpText:this.helpText})),e("input",{key:"657edb006b902ad815cd65e426d74a306328a0cb",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",type:"text",disabled:this.disabled}),e(p,{key:"1ebb690623549e319972fe5ea0221966a9982cac",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},b=class{constructor(s){t(this,s)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?e("div",{class:"tooltip-container"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:f},e("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),e("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),e("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},e("div",{class:"tooltip bs-tooltip-top",part:n,role:"tooltip",ref:t=>this.tooltip=t},e("div",{class:"tooltip-inner",part:d},this.helpText)))):null}};export{u as form_control_select,m as form_control_text,b as form_control_tooltip}