@justifi/webcomponents 4.20.0 → 4.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/dist/cjs/{Analytics-03981aad.js → Analytics-880f5152.js} +1 -1
  2. package/dist/cjs/{Payment-1a8a8ca6.js → Payment-04a842f4.js} +15 -0
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  4. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-form-types-6e1fcda3.js → business-form-types-719b7f52.js} +11 -0
  6. package/dist/cjs/{check-pkg-version-89d6d146.js → check-pkg-version-54f7dfda.js} +1 -1
  7. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_5.cjs.entry.js} +121 -2
  8. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +51 -28
  9. package/dist/cjs/form-control-date_3.cjs.entry.js +47 -8
  10. package/dist/cjs/form-control-file.cjs.entry.js +1 -1
  11. package/dist/cjs/{form-control-monetary.cjs.entry.js → form-control-help-text_2.cjs.entry.js} +16 -1
  12. package/dist/cjs/form-control-number.cjs.entry.js +1 -1
  13. package/dist/cjs/{get-payout-csv-3a3260ec.js → get-payout-csv-a82b2c1c.js} +1 -1
  14. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +23 -11
  16. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  20. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
  24. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  26. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
  27. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
  29. package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -9
  30. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  34. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -10
  35. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
  36. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -5
  37. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
  38. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  39. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/cjs/{package-7fdd14b9.js → package-cb1b1015.js} +1 -1
  42. package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
  43. package/dist/cjs/{payment.service-4b1c0a20.js → payment.service-6f79aad2.js} +6 -3
  44. package/dist/cjs/payments-list-core.cjs.entry.js +14 -14
  45. package/dist/cjs/payments-list-filters_2.cjs.entry.js +2 -2
  46. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  47. package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
  48. package/dist/cjs/styled-host-1adf46c3.js +14 -0
  49. package/dist/cjs/{utils-af1b60a9.js → utils-52fb7fa1.js} +13 -10
  50. package/dist/cjs/webcomponents.cjs.js +1 -1
  51. package/dist/collection/api/Payment.js +15 -0
  52. package/dist/collection/api/services/payment.service.js +5 -2
  53. package/dist/collection/collection-manifest.json +1 -0
  54. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  55. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  56. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +42 -2
  57. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  58. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +31 -3
  59. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +24 -1
  60. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  61. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +25 -3
  62. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  63. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  64. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +24 -1
  65. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  66. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +25 -2
  67. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
  68. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +17 -17
  69. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +24 -1
  70. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  71. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +24 -2
  72. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  73. package/dist/collection/components/business-forms/utils/business-form-types.js +11 -0
  74. package/dist/collection/components/card-form/card-form.js +1 -1
  75. package/dist/collection/components/checkout/checkout-core.js +1 -1
  76. package/dist/collection/components/checkout/checkout.js +2 -2
  77. package/dist/collection/components/checkout/new-payment-method.js +1 -1
  78. package/dist/collection/components/checkout/payment-method-options.js +1 -1
  79. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  80. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  81. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  82. package/dist/collection/components/details/details.js +1 -1
  83. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  84. package/dist/collection/components/form/form-control-date.js +80 -6
  85. package/dist/collection/components/form/form-control-file.js +1 -1
  86. package/dist/collection/components/form/form-control-monetary.js +1 -1
  87. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  88. package/dist/collection/components/form/form-control-number.js +1 -1
  89. package/dist/collection/components/form/form-control-select.js +1 -1
  90. package/dist/collection/components/form/form-control-text.js +1 -1
  91. package/dist/collection/components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +63 -0
  92. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  93. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  94. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  95. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  96. package/dist/collection/components/payment-form/payment-form.js +3 -3
  97. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  98. package/dist/collection/components/payments-list/get-payments.js +2 -2
  99. package/dist/collection/components/payments-list/payments-list-core.js +11 -11
  100. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  101. package/dist/collection/components/payments-list/payments-list.js +23 -2
  102. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  103. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
  104. package/dist/collection/components/refund-form/refund-form.js +1 -1
  105. package/dist/collection/ui-components/custom-popper/custom-popper.js +8 -4
  106. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  107. package/dist/collection/utils/utils.js +13 -10
  108. package/dist/docs.json +650 -149
  109. package/dist/esm/{Analytics-3103f8e9.js → Analytics-3dde5a98.js} +1 -1
  110. package/dist/esm/{Payment-6bf26fe2.js → Payment-30790721.js} +15 -0
  111. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  112. package/dist/esm/business-details-core.entry.js +1 -1
  113. package/dist/esm/{business-form-types-1bc5fe08.js → business-form-types-8fd61b0e.js} +12 -1
  114. package/dist/esm/{check-pkg-version-44e6ad15.js → check-pkg-version-4d144b72.js} +1 -1
  115. package/dist/esm/{custom-popper.entry.js → custom-popper_5.entry.js} +119 -4
  116. package/dist/esm/form-control-checkbox_9.entry.js +51 -28
  117. package/dist/esm/form-control-date_3.entry.js +47 -8
  118. package/dist/esm/form-control-file.entry.js +1 -1
  119. package/dist/esm/{form-control-monetary.entry.js → form-control-help-text_2.entry.js} +17 -3
  120. package/dist/esm/form-control-number.entry.js +1 -1
  121. package/dist/esm/{get-payout-csv-93427146.js → get-payout-csv-d29146ee.js} +1 -1
  122. package/dist/esm/gross-payment-chart-core.entry.js +2 -2
  123. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +23 -11
  124. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  125. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  126. package/dist/esm/justifi-business-details.entry.js +3 -3
  127. package/dist/esm/justifi-business-form.entry.js +6 -6
  128. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  129. package/dist/esm/justifi-card-form.entry.js +3 -3
  130. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  131. package/dist/esm/justifi-checkout.entry.js +6 -6
  132. package/dist/esm/justifi-details.entry.js +2 -2
  133. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  134. package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
  135. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  136. package/dist/esm/justifi-payment-details.entry.js +5 -5
  137. package/dist/esm/justifi-payment-form.entry.js +9 -9
  138. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  139. package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
  140. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  141. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  142. package/dist/esm/justifi-payments-list.entry.js +12 -10
  143. package/dist/esm/justifi-payout-details.entry.js +5 -5
  144. package/dist/esm/justifi-payouts-list.entry.js +5 -5
  145. package/dist/esm/justifi-refund-form.entry.js +3 -3
  146. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  147. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  148. package/dist/esm/loader.js +1 -1
  149. package/dist/esm/{package-0e3cc41e.js → package-4ab64620.js} +1 -1
  150. package/dist/esm/payment-details-core.entry.js +9 -9
  151. package/dist/esm/{payment.service-02c596b9.js → payment.service-f9c3e9d7.js} +6 -3
  152. package/dist/esm/payments-list-core.entry.js +14 -14
  153. package/dist/esm/payments-list-filters_2.entry.js +2 -2
  154. package/dist/esm/payout-details-core.entry.js +3 -3
  155. package/dist/esm/payouts-list-core.entry.js +5 -5
  156. package/dist/esm/styled-host-e0ddb759.js +12 -0
  157. package/dist/esm/{utils-e66d8bca.js → utils-620f2d78.js} +13 -10
  158. package/dist/esm/webcomponents.js +1 -1
  159. package/dist/module/Payment.js +15 -0
  160. package/dist/module/additional-questions.js +22 -10
  161. package/dist/module/billing-form.js +13 -7
  162. package/dist/module/business-additional-questions-form-step-core.js +42 -11
  163. package/dist/module/business-additional-questions-form-step.js +23 -11
  164. package/dist/module/business-bank-account-form-step.js +23 -10
  165. package/dist/module/business-core-info-form-step-core.js +19 -10
  166. package/dist/module/business-core-info-form-step.js +16 -10
  167. package/dist/module/business-core-info.js +15 -9
  168. package/dist/module/business-document-upload-form-step.js +14 -5
  169. package/dist/module/business-document-upload-input-group.js +27 -21
  170. package/dist/module/business-form-types.js +12 -1
  171. package/dist/module/business-owners-form-step-core.js +20 -12
  172. package/dist/module/business-owners-form-step.js +16 -10
  173. package/dist/module/business-representative-form-inputs.js +16 -10
  174. package/dist/module/business-representative-form-step-core.js +19 -10
  175. package/dist/module/business-representative-form-step.js +16 -10
  176. package/dist/module/business-representative.js +15 -9
  177. package/dist/module/business-terms-conditions-form-step.js +4 -2
  178. package/dist/module/business-terms-conditions-text.js +1 -1
  179. package/dist/module/checkout-core.js +14 -8
  180. package/dist/module/custom-popper2.js +2 -2
  181. package/dist/module/details.js +1 -1
  182. package/dist/module/form-control-checkbox2.js +1 -1
  183. package/dist/module/form-control-date2.js +57 -10
  184. package/dist/module/form-control-file2.js +10 -4
  185. package/dist/module/form-control-monetary2.js +1 -1
  186. package/dist/module/form-control-number-masked2.js +10 -4
  187. package/dist/module/form-control-number.js +1 -1
  188. package/dist/module/form-control-select2.js +10 -4
  189. package/dist/module/form-control-text2.js +10 -4
  190. package/dist/module/form-control-tooltip.d.ts +11 -0
  191. package/dist/module/form-control-tooltip.js +6 -0
  192. package/dist/module/form-control-tooltip2.js +49 -0
  193. package/dist/module/gross-payment-chart-core2.js +1 -1
  194. package/dist/module/identity-address-form.js +14 -8
  195. package/dist/module/justifi-business-form.js +29 -17
  196. package/dist/module/justifi-card-form.js +1 -1
  197. package/dist/module/justifi-checkout.js +15 -9
  198. package/dist/module/justifi-payment-form.js +16 -10
  199. package/dist/module/justifi-payment-provisioning.js +30 -18
  200. package/dist/module/justifi-payments-list.js +15 -11
  201. package/dist/module/justifi-payouts-list.js +9 -3
  202. package/dist/module/justifi-refund-form.js +21 -9
  203. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  204. package/dist/module/legal-address-form-step-core.js +17 -8
  205. package/dist/module/legal-address-form-step.js +14 -8
  206. package/dist/module/legal-address-form.js +13 -7
  207. package/dist/module/new-payment-method.js +14 -8
  208. package/dist/module/owner-form-core2.js +16 -10
  209. package/dist/module/owner-form-inputs2.js +16 -10
  210. package/dist/module/owner-form.js +15 -9
  211. package/dist/module/package.js +1 -1
  212. package/dist/module/payment-details-core2.js +7 -7
  213. package/dist/module/payment-method-options.js +14 -8
  214. package/dist/module/payment-method-selector.js +1 -1
  215. package/dist/module/payment-provisioning-core.js +31 -19
  216. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  217. package/dist/module/payment-provisioning-form-steps.js +30 -18
  218. package/dist/module/payment.service.js +5 -2
  219. package/dist/module/payments-list-core2.js +18 -18
  220. package/dist/module/payments-list-filters2.js +8 -8
  221. package/dist/module/payout-details-core2.js +1 -1
  222. package/dist/module/payouts-list-core2.js +11 -5
  223. package/dist/module/save-new-payment-method.js +1 -1
  224. package/dist/module/saved-payment-method.js +1 -1
  225. package/dist/module/season-interruption-insurance-core.js +2 -2
  226. package/dist/module/sezzle-payment-method.js +1 -1
  227. package/dist/module/styled-host.js +1 -1
  228. package/dist/module/table-filters-menu2.js +1 -1
  229. package/dist/module/utils2.js +13 -10
  230. package/dist/types/api/Payment.d.ts +8 -0
  231. package/dist/types/api/services/payment.service.d.ts +2 -2
  232. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +4 -1
  233. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -1
  234. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +2 -1
  235. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -1
  236. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -1
  237. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +2 -1
  238. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -1
  239. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +2 -1
  240. package/dist/types/components/business-forms/utils/business-form-types.d.ts +15 -0
  241. package/dist/types/components/form/form-control-date.d.ts +5 -0
  242. package/dist/types/components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +8 -0
  243. package/dist/types/components/payments-list/get-payments.d.ts +2 -1
  244. package/dist/types/components/payments-list/payments-list.d.ts +3 -2
  245. package/dist/types/components.d.ts +41 -4
  246. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +1 -1
  247. package/dist/types/utils/utils.d.ts +2 -2
  248. package/dist/webcomponents/{p-0de026dd.entry.js → p-08d88fd2.entry.js} +1 -1
  249. package/dist/webcomponents/p-0c2d91a2.entry.js +1 -0
  250. package/dist/webcomponents/p-11f01df5.entry.js +1 -0
  251. package/dist/webcomponents/p-122c2a11.entry.js +1 -0
  252. package/dist/webcomponents/{p-4628cc9b.entry.js → p-1d29488a.entry.js} +1 -1
  253. package/dist/webcomponents/{p-1eee25f3.entry.js → p-1e178dd1.entry.js} +2 -2
  254. package/dist/webcomponents/p-1eb60948.entry.js +1 -0
  255. package/dist/webcomponents/{p-05718341.entry.js → p-23f95a19.entry.js} +1 -1
  256. package/dist/webcomponents/{p-0e84986e.entry.js → p-2874d4b2.entry.js} +1 -1
  257. package/dist/webcomponents/{p-430f81c6.entry.js → p-43dfda70.entry.js} +1 -1
  258. package/dist/webcomponents/{p-804c0f1f.entry.js → p-55fe2cf2.entry.js} +1 -1
  259. package/dist/webcomponents/{p-8c83b73e.entry.js → p-5df26e65.entry.js} +1 -1
  260. package/dist/webcomponents/p-5e5e8a85.js +1 -0
  261. package/dist/webcomponents/{p-20dafb46.entry.js → p-605614f2.entry.js} +1 -1
  262. package/dist/webcomponents/{p-d76002d5.entry.js → p-61514f78.entry.js} +1 -1
  263. package/dist/webcomponents/p-6962044f.entry.js +1 -0
  264. package/dist/webcomponents/{p-570a0f02.entry.js → p-6a9e908b.entry.js} +1 -1
  265. package/dist/webcomponents/p-6ba660f2.entry.js +1 -0
  266. package/dist/webcomponents/{p-8281f09a.js → p-6d4b585d.js} +1 -1
  267. package/dist/webcomponents/p-6e258b5f.entry.js +1 -0
  268. package/dist/webcomponents/p-74da98da.js +1 -0
  269. package/dist/webcomponents/{p-ad47f37c.entry.js → p-770f60f9.entry.js} +1 -1
  270. package/dist/webcomponents/p-799ee8c3.js +1 -0
  271. package/dist/webcomponents/p-7cb3854c.entry.js +1 -0
  272. package/dist/webcomponents/p-7fec2bcb.js +1 -0
  273. package/dist/webcomponents/{p-b14da2fd.entry.js → p-80730b71.entry.js} +1 -1
  274. package/dist/webcomponents/{p-938bf2b4.entry.js → p-8f04747b.entry.js} +1 -1
  275. package/dist/webcomponents/{p-c64ce69d.entry.js → p-8f447993.entry.js} +1 -1
  276. package/dist/webcomponents/p-9a37eee5.entry.js +1 -0
  277. package/dist/webcomponents/{p-428e9b64.entry.js → p-a1d037cb.entry.js} +1 -1
  278. package/dist/webcomponents/{p-056e75be.entry.js → p-a3265844.entry.js} +1 -1
  279. package/dist/webcomponents/{p-f6a2dc78.entry.js → p-a680c982.entry.js} +1 -1
  280. package/dist/webcomponents/{p-e2c88817.entry.js → p-a765230f.entry.js} +1 -1
  281. package/dist/webcomponents/p-a76ece26.js +1 -0
  282. package/dist/webcomponents/p-b7b18954.entry.js +1 -0
  283. package/dist/webcomponents/{p-437f9114.js → p-bc9ae56f.js} +1 -1
  284. package/dist/webcomponents/p-c241cc62.entry.js +1 -0
  285. package/dist/webcomponents/{p-5e2c9ec8.js → p-ca8e126f.js} +1 -1
  286. package/dist/webcomponents/{p-e31f0f3e.entry.js → p-cd74be05.entry.js} +1 -1
  287. package/dist/webcomponents/{p-8d03a7bd.entry.js → p-d0ffb01c.entry.js} +1 -1
  288. package/dist/webcomponents/p-da316a74.entry.js +1 -0
  289. package/dist/webcomponents/{p-7bdffc78.entry.js → p-db3d1d7d.entry.js} +1 -1
  290. package/dist/webcomponents/{p-dbc1d7b3.entry.js → p-dee2a3f8.entry.js} +1 -1
  291. package/dist/webcomponents/{p-7ff329b1.js → p-e56ade55.js} +1 -1
  292. package/dist/webcomponents/p-e927fd5c.entry.js +1 -0
  293. package/dist/webcomponents/p-f3e00572.entry.js +1 -0
  294. package/dist/webcomponents/p-f71a5975.entry.js +1 -0
  295. package/dist/webcomponents/{p-3c7fac29.entry.js → p-ffe27126.entry.js} +1 -1
  296. package/dist/webcomponents/webcomponents.esm.js +1 -1
  297. package/package.json +1 -1
  298. package/dist/cjs/form-control-error-text_4.cjs.entry.js +0 -118
  299. package/dist/cjs/styled-host-9e0b67b3.js +0 -14
  300. package/dist/esm/form-control-error-text_4.entry.js +0 -111
  301. package/dist/esm/styled-host-3171ae1f.js +0 -12
  302. package/dist/webcomponents/p-1612894d.js +0 -1
  303. package/dist/webcomponents/p-3a1f19f3.entry.js +0 -1
  304. package/dist/webcomponents/p-44055818.js +0 -1
  305. package/dist/webcomponents/p-4cc9df76.entry.js +0 -1
  306. package/dist/webcomponents/p-5540a47c.entry.js +0 -1
  307. package/dist/webcomponents/p-59cf5391.entry.js +0 -1
  308. package/dist/webcomponents/p-6ac806ff.entry.js +0 -1
  309. package/dist/webcomponents/p-7ddfce86.entry.js +0 -1
  310. package/dist/webcomponents/p-7fe67d7f.entry.js +0 -1
  311. package/dist/webcomponents/p-8921a478.entry.js +0 -1
  312. package/dist/webcomponents/p-8a7112a0.entry.js +0 -1
  313. package/dist/webcomponents/p-9b154d98.entry.js +0 -1
  314. package/dist/webcomponents/p-aedb421f.entry.js +0 -1
  315. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  316. package/dist/webcomponents/p-bdc91c61.entry.js +0 -1
  317. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  318. package/dist/webcomponents/p-d89bad72.js +0 -1
  319. package/dist/webcomponents/p-df21aaad.js +0 -1
  320. package/dist/webcomponents/p-e3f4a2a6.js +0 -1
  321. package/dist/webcomponents/p-eea79a55.entry.js +0 -1
  322. package/dist/webcomponents/p-f0866375.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as l,h as i,H as t}from"./p-fad19d75.js";import{c as e,D as s}from"./p-dce846bf.js";import{i as d,s as o,e as v}from"./p-5e2c9ec8.js";const u=class{constructor(i){l(this,i),this.additionalQuestions=void 0}render(){var l,o;return d(this.additionalQuestions)?null:i(t,null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:null===(l=this.additionalQuestions.business_revenue)||void 0===l?void 0:l.toString()}),i(e,{title:"Business Payment Volume",value:null===(o=this.additionalQuestions.business_payment_volume)||void 0===o?void 0:o.toString()})))))}};u.style=".flex-1{flex:1}";const a=class{constructor(i){l(this,i),this.business=void 0}render(){var l,d,v,u,a,n,r,c;return this.business?i(t,null,i(s,{sectionTitle:"Business Generic Info Details"}),i("div",{class:"d-table gap-2 w-100"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:null===(l=this.business)||void 0===l?void 0:l.legal_name}),i(e,{title:"Doing Business As (DBA)",value:null===(d=this.business)||void 0===d?void 0:d.doing_business_as}),i(e,{title:"Business Classification",value:o(null===(v=this.business)||void 0===v?void 0:v.classification)}),i(e,{title:"Industry",value:null===(u=this.business)||void 0===u?void 0:u.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:null===(a=this.business)||void 0===a?void 0:a.tax_id}),i(e,{title:"Website URL",value:null===(n=this.business)||void 0===n?void 0:n.website_url}),i(e,{title:"Email Address",value:null===(r=this.business)||void 0===r?void 0:r.email}),i(e,{title:"Phone Number",value:null===(c=this.business)||void 0===c?void 0:c.phone}))))):null}};a.style=".flex-1{flex:1}";const n=class{constructor(i){l(this,i),this.legalAddress=void 0}render(){var l,o,v,u,a,n,r;return d(this.legalAddress)?null:i(t,null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100"},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===(o=this.legalAddress)||void 0===o?void 0:o.line1}),i(e,{title:"Address Line 2",value:null===(v=this.legalAddress)||void 0===v?void 0:v.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(u=this.legalAddress)||void 0===u?void 0:u.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(r=null===(n=this.legalAddress)||void 0===n?void 0:n.postal_code)||void 0===r?void 0:r.toString()})))))}};n.style=".flex-1{flex:1}";const r=class{constructor(i){l(this,i),this.owners=void 0}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-table gap-2 w-100"},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}};r.style=".flex-1{flex:1}";const c=class{constructor(i){l(this,i),this.representative=void 0}render(){var l,o,u,a,n,r,c,h,m,f,p,b,g,w;return d(this.representative)?null:i(t,null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100"},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===(o=this.representative)||void 0===o?void 0:o.id}),i(e,{title:"Address",value:null===(a=null===(u=this.representative)||void 0===u?void 0:u.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(n=this.representative)||void 0===n?void 0:n.created_at)&&v(null===(r=this.representative)||void 0===r?void 0:r.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(c=this.representative)||void 0===c?void 0:c.title}),i(e,{title:"Is Owner?",value:null===(h=this.representative)||void 0===h?void 0:h.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&v(new Date(Number(null===(m=this.representative)||void 0===m?void 0:m.dob_year),Number(null===(f=this.representative)||void 0===f?void 0:f.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(b=this.representative)||void 0===b?void 0:b.email}),i(e,{title:"Phone",value:null===(g=this.representative)||void 0===g?void 0:g.phone}),i(e,{title:"Updated At",value:this.representative&&v(null===(w=this.representative)||void 0===w?void 0:w.updated_at)})))))}};c.style=".flex-1{flex:1}";export{u as additional_questions_details,a as generic_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-fad19d75.js";import{c as e,D as s}from"./p-dce846bf.js";import{i as d,s as o,e as v}from"./p-ca8e126f.js";const u=class{constructor(i){l(this,i),this.additionalQuestions=void 0}render(){var l,o;return d(this.additionalQuestions)?null:i(t,null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:null===(l=this.additionalQuestions.business_revenue)||void 0===l?void 0:l.toString()}),i(e,{title:"Business Payment Volume",value:null===(o=this.additionalQuestions.business_payment_volume)||void 0===o?void 0:o.toString()})))))}};u.style=".flex-1{flex:1}";const a=class{constructor(i){l(this,i),this.business=void 0}render(){var l,d,v,u,a,n,r,c;return this.business?i(t,null,i(s,{sectionTitle:"Business Generic Info Details"}),i("div",{class:"d-table gap-2 w-100"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:null===(l=this.business)||void 0===l?void 0:l.legal_name}),i(e,{title:"Doing Business As (DBA)",value:null===(d=this.business)||void 0===d?void 0:d.doing_business_as}),i(e,{title:"Business Classification",value:o(null===(v=this.business)||void 0===v?void 0:v.classification)}),i(e,{title:"Industry",value:null===(u=this.business)||void 0===u?void 0:u.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:null===(a=this.business)||void 0===a?void 0:a.tax_id}),i(e,{title:"Website URL",value:null===(n=this.business)||void 0===n?void 0:n.website_url}),i(e,{title:"Email Address",value:null===(r=this.business)||void 0===r?void 0:r.email}),i(e,{title:"Phone Number",value:null===(c=this.business)||void 0===c?void 0:c.phone}))))):null}};a.style=".flex-1{flex:1}";const n=class{constructor(i){l(this,i),this.legalAddress=void 0}render(){var l,o,v,u,a,n,r;return d(this.legalAddress)?null:i(t,null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100"},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===(o=this.legalAddress)||void 0===o?void 0:o.line1}),i(e,{title:"Address Line 2",value:null===(v=this.legalAddress)||void 0===v?void 0:v.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(u=this.legalAddress)||void 0===u?void 0:u.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(r=null===(n=this.legalAddress)||void 0===n?void 0:n.postal_code)||void 0===r?void 0:r.toString()})))))}};n.style=".flex-1{flex:1}";const r=class{constructor(i){l(this,i),this.owners=void 0}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-table gap-2 w-100"},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}};r.style=".flex-1{flex:1}";const c=class{constructor(i){l(this,i),this.representative=void 0}render(){var l,o,u,a,n,r,c,h,m,f,p,b,g,w;return d(this.representative)?null:i(t,null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100"},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===(o=this.representative)||void 0===o?void 0:o.id}),i(e,{title:"Address",value:null===(a=null===(u=this.representative)||void 0===u?void 0:u.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(n=this.representative)||void 0===n?void 0:n.created_at)&&v(null===(r=this.representative)||void 0===r?void 0:r.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(c=this.representative)||void 0===c?void 0:c.title}),i(e,{title:"Is Owner?",value:null===(h=this.representative)||void 0===h?void 0:h.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&v(new Date(Number(null===(m=this.representative)||void 0===m?void 0:m.dob_year),Number(null===(f=this.representative)||void 0===f?void 0:f.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(b=this.representative)||void 0===b?void 0:b.email}),i(e,{title:"Phone",value:null===(g=this.representative)||void 0===g?void 0:g.phone}),i(e,{title:"Updated At",value:this.representative&&v(null===(w=this.representative)||void 0===w?void 0:w.updated_at)})))))}};c.style=".flex-1{flex:1}";export{u as additional_questions_details,a as generic_info_details,n as legal_address_details,r as owner_details,c as representative_details}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as e,H as i}from"./p-fad19d75.js";import{a,C as n}from"./p-14c91ffd.js";import{m as o,b as r}from"./p-5968ff8a.js";import{B as h}from"./p-401d6607.js";import{c as d,F as c,e as u}from"./p-2eab3c90.js";import{b as l,c as f,a as b}from"./p-a76ece26.js";import{z as p,A as m,u as v,B as y,C as g,D as k,E as _,F as w,G as j,H as T,I as C,J as S,K as O,L as x,M as I}from"./p-5022f21c.js";import{c as A}from"./p-1815a43b.js";import{A as L}from"./p-7d3be485.js";import"./p-56f6ce4c.js";import"./p-7fec2bcb.js";import"./p-e3fab0e2.js";import{c as F}from"./p-5a62fca2.js";import{n as B}from"./p-8df7bde8.js";import{B as E}from"./p-5e7c60d8.js";import{S as D}from"./p-08b0fb31.js";import{B as H}from"./p-9c9c7dac.js";import"./p-8115b2f4.js";import"./p-6078a370.js";import"./p-1ff8810b.js";const P=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-additional-questions-form-step-core",{key:"6ca8443cbe837d993be4381a9d650caaaf51f2df",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};class W{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}}const q=class{constructor(e){s(this,e),this.submitted=t(this,"submitted",7),this.stepCompleted=t(this,"form-step-completed",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.bankAccount=Object.assign({},new W(s.data.bank_accounts.length>0?s.data.bank_accounts[0]:{})),this.formController.setInitialValues(Object.assign({},this.bankAccount))}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),e=Object.assign(Object.assign({},t),{business_id:this.businessId}),i=await this.api.post(this.bankAccountEndpoint,e);this.handleResponse(i,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.bankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get bankAccountEndpoint(){return"entities/bank_accounts"}get formDisabled(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.submitted.emit({data:s,metadata:{completedStep:l.bankAccount}}),this.stepCompleted.emit({data:s,formStep:f.bankAccount})}async validateAndSubmit({onSuccess:s}){this.formDisabled?(this.stepCompleted.emit({data:null,formStep:f.bankAccount,metadata:"no data submitted"}),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.formController=new c((s=>{const t=d({bank_name:p.required("Enter bank name"),nickname:m.required("Enter nickname"),account_owner_name:v.required("Enter account owner name"),account_type:y.required("Select account type"),account_number:g.required("Enter account number"),routing_number:k.required("Enter routing number")}),e=d({bank_name:p.nullable(),nickname:m.nullable(),account_owner_name:v.nullable(),account_type:y.nullable(),account_number:g.nullable(),routing_number:k.nullable()});return s?e:t})(this.allowOptionalFields)),this.api=L({authToken:this.authToken,apiOrigin:F.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((s=>this.bankAccount=Object.assign({},s))),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){const s=this.formController.getInitialValues();return e("form",{key:"c19f52934f1fa591d71175d1a0a584c0e9d0bd92"},e("fieldset",{key:"96c326422e38efe3413b282fcc2415355108992c"},e("div",{key:"7a39297bc087e310ad28fbdd58e71b509c002132",class:"d-flex align-items-center gap-2"},e("legend",{key:"81b0cc0fc84846e04f3efb1efc0c33c181a3399d",class:"mb-0"},"Bank Account Info"),e("form-control-tooltip",{key:"f24f0605251a59c7df3a01bfb5d01302e95b45ba",helpText:"The Direct Deposit Account is the business bank account where your funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),e("hr",{key:"8386d2b17e191ca529a663ced0c430e71c3da4d6",class:"mt-2"}),e("div",{key:"d5ddcc4c0b54320a0e1f1fd381dd41e8bdb86c2f",class:"row gy-3"},e("div",{key:"29bd4e26bed9fef74ee79241d5dc6fd9a4d5954e",class:"col-12"},e("form-control-text",{key:"ac9781048b7dfb24da9565b058994ffd78053db9",name:"bank_name",label:"Bank Name",defaultValue:s.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"db9d13b0a62927b790bdcf5bc77ffa4fbadb227b",class:"col-12"},e("form-control-text",{key:"41d192f0d9df09e62aa929642ca2ae40946f951e",name:"nickname",label:"Nickname",defaultValue:s.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"2b37a20c6bb6f942ccf5b49e84a2d6d1669d9fd7",class:"col-12"},e("form-control-text",{key:"0392b8d08a48ff27af80d6fa42959b90a713de4e",name:"account_owner_name",label:"Account Owner Name",defaultValue:s.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"2a30485d70f0825e7e677b3f4b75caf4c601090e",class:"col-12"},e("form-control-select",{key:"65cb43b080e47208bf83099cfec12cc8351281c6",name:"account_type",label:"Account Type",options:A,defaultValue:s.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),e("div",{key:"ab0c65f348486814ac14ed548ecaa25610e14d58",class:"col-12"},e("form-control-text",{key:"3c08ce88f652bfe6ae64807beab30ed796cad6c3",name:"account_number",label:"Account Number",defaultValue:s.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:B,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),e("div",{key:"f5314db551f6d4482f151b49d9db685b78223f2a",class:"col-12"},e("form-control-text",{key:"1f204b3140c9fc4fe20519ebc082751c291ba816",name:"routing_number",label:"Routing Number",defaultValue:s.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:B,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))))}},V=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-core-info-form-step-core",{key:"8b034d8c728aef3683823a45083764a456d07545",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},z=class{constructor(e){s(this,e),this.submitted=t(this,"submitted",7),this.stepCompleted=t(this,"form-step-completed",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new E(s.data)),this.existingDocuments=s.data.documents,this.paymentVolume=s.data.additional_questions.business_payment_volume}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new c(((s,t,e)=>{const i=d({voided_check:_(t,e),government_id:w.nullable(),ss4:j.nullable(),other:T.nullable(),balance_sheet:C(s,t,e),bank_statement:S(s,t,e),profit_and_loss_statement:O(s,t,e)}),a=d({voided_check:_(t,e),government_id:w.nullable(),ss4:j.nullable(),other:T.nullable(),balance_sheet:C(s,t,e),bank_statement:S(s,t,e),profit_and_loss_statement:O(s,t,e)});return e?a:i})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.createDocumentRecord=async s=>{this.formLoading.emit(!0);const t=s.record_data;try{const e=await this.api.post(this.documentEndpoint,t);return this.handleDocRecordResponse(s,e)}catch(s){return this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s}),!1}},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:t.error.message,severity:n.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>s.error?(this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}),!1):(this.submitted.emit({data:s,metadata:{completedStep:l.documentUpload}}),this.stepCompleted.emit({data:s,formStep:f.documentUpload}),!0),this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new x({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.sendData=async s=>{try{const t=Object.values(this.documentData).flat();if(!t.length)return this.stepCompleted.emit({data:null,formStep:f.documentUpload,metadata:"no data submitted"}),s();const e=t.map((s=>this.createDocumentRecord(s)));if(!await Promise.all(e))return;const i=t.map((s=>this.uploadDocument(s)));if(!await Promise.all(i))return;await s()}finally{this.formLoading.emit(!1)}},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new I,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=L({authToken:this.authToken,apiOrigin:F.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?e(D,{variant:"rounded",height:"50px"}):e("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?e(D,{variant:"rounded",height:"350px"}):e("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return e("form",{key:"f240b37d159cbf3db19e4256f97ade622e88d41b"},e("fieldset",{key:"0555c8a1747336af04b470f750343d231cebb7cc"},e("div",{key:"7c46295e5997aba7f769324d52def17236babe7b",class:"d-flex align-items-center gap-2"},e("legend",{key:"2a3fe8a3031a1923df6de8752438d595d935d8f6",class:"mb-0"},"Document Uploads"),e("form-control-tooltip",{key:"6b3f02a801ff53a1c28ee30710980f5e2790ac5c",helpText:"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),e("hr",{key:"ac1f9e460920d3654f9c079e8c3fc84ccf7369b4",class:"mt-2"}),this.documentsOnFile,e("div",{key:"444b0f875d460d6bdddc9183bc5c797d3828c127",class:"d-flex flex-column"},this.formInputs)))}},M=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e(i,{key:"31bd33a08c9eb4a849db8898b3ec7e6fede7b843"},e("justifi-business-owners-form-step-core",{key:"9e4c88686e1a5ebfd81ab5f1aebd21f58c4e6be5",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},N=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-business-representative-form-step-core",{key:"934b6204cfe78ffe17b3f975de3eedb64398168d",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},R=class{constructor(e){s(this,e),this.submitted=t(this,"submitted",7),this.stepCompleted=t(this,"form-step-completed",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.termsPayload,e=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=L({authToken:this.authToken,apiOrigin:F.proxyApiOrigin}),this.formController=new c((s=>{const t=d({accepted:u().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=d({accepted:u().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:a.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.submitted.emit({data:s,metadata:{completedStep:l.termsAndConditions}}),this.stepCompleted.emit({data:s,formStep:f.termsAndConditions})}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.submitted.emit({metadata:{completedStep:l.termsAndConditions}}),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){return e("form",{key:"3f269771c368a23afd1c7b139b0fce416d18f161"},e("fieldset",{key:"a94a5bf100cb5a10b156b8cf94dc85f03cc1f6ae"},e("legend",{key:"facb4a29cebd5147fe3c35d336df04546b550d74"},"Terms and Conditions"),e("hr",{key:"3dafaab7d2d35bf9a00f87da643f6e1efaa7b147"}),e("justifi-business-terms-conditions-text",{key:"60a1370c8b0d817d79130e8607f6d663c4648c78"}),e("br",{key:"e72e81a34b31a00ebe3a0d01e24dc096df7bc2a9"}),e("div",{key:"676ed858195c1b90a9e4fdc22ba9654ff944dc93",class:"row-gy-3"},e("div",{key:"20039587eb6144a05078799f6a41feb59f43dbd2",class:"col-12"},e("form-control-checkbox",{key:"fc8eaa81e530b55f24e2ec994b97b4c181af94b2",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText})))))}},U=class{constructor(e){s(this,e),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new h}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new h})):this.errorEvent.emit({message:"Missing required props",errorCode:a.MISSING_PROPS,severity:n.ERROR})}render(){return e("justifi-legal-address-form-step-core",{key:"06ac5acac2cc9c167a86448b0e12d885d21361fb",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Y=class{constructor(t){s(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return e("div",{key:"3df3796f2bb35819373564c0002e35d14c85e360",class:"d-flex gap-2"},e(H,{key:"3f8fd4e288b2eed6776c77b44dda816e8a0580cd",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),e(H,{key:"83c7d2405d6e4f88f721a95250aa847a6999a211",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,b.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),e(H,{key:"d87bcdc9bea52b11307e31bd1d99636be05d7156",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,b.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},$=class{constructor(i){s(this,i),this.formCompleted=t(this,"formCompleted",7),this.componentStepMapping={0:()=>e("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>e("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>e("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>e("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>e("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>e("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),6:()=>e("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>e("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[7]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields,onSubmitted:()=>this.formCompleted.emit()})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return e("div",{key:"8f02aa3223e38cda70319c127f60e5d2f3c5abe5",class:"col-12 mb-4"},this.currentStepComponent)}};export{P as justifi_additional_questions_form_step,q as justifi_business_bank_account_form_step,V as justifi_business_core_info_form_step,z as justifi_business_document_upload_form_step,M as justifi_business_owners_form_step,N as justifi_business_representative_form_step,R as justifi_business_terms_conditions_form_step,U as justifi_legal_address_form_step,Y as justifi_payment_provisioning_form_buttons,$ as justifi_payment_provisioning_form_steps}
@@ -1 +1 @@
1
- import{r as s,c as e,h as i}from"./p-fad19d75.js";import{L as t,E as r}from"./p-dce846bf.js";import{S as o}from"./p-44055818.js";var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const n=class{constructor(i){s(this,i),this.errorEvent=e(this,"error-event",7),this.getBusiness=void 0,this.business=void 0,this.renderState=a.LOADING,this.errorMessage="An error ocurred."}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:e,message:s,severity:i})}})}render(){return this.renderState===a.LOADING?i(o,null,t()):this.renderState===a.ERROR?i(o,null,r(this.errorMessage)):i(o,null,i("generic-info-details",{business:this.business}),i("legal-address-details",{legalAddress:this.business.legal_address}),i("representative-details",{representative:this.business.representative}),i("owner-details",{owners:this.business.owners}),i("additional-questions-details",{additionalQuestions:this.business.additional_questions}))}};export{n as business_details_core}
1
+ import{r as s,c as e,h as i}from"./p-fad19d75.js";import{L as t,E as r}from"./p-dce846bf.js";import{S as o}from"./p-74da98da.js";var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const n=class{constructor(i){s(this,i),this.errorEvent=e(this,"error-event",7),this.getBusiness=void 0,this.business=void 0,this.renderState=a.LOADING,this.errorMessage="An error ocurred."}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:e,message:s,severity:i})}})}render(){return this.renderState===a.LOADING?i(o,null,t()):this.renderState===a.ERROR?i(o,null,r(this.errorMessage)):i(o,null,i("generic-info-details",{business:this.business}),i("legal-address-details",{legalAddress:this.business.legal_address}),i("representative-details",{representative:this.business.representative}),i("owner-details",{owners:this.business.owners}),i("additional-questions-details",{additionalQuestions:this.business.additional_questions}))}};export{n as business_details_core}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-fad19d75.js";import{u as d,a as t,b as s}from"./p-7d85af5c.js";import{P as i,S as o}from"./p-525db3e8.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const l=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.representativeDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){var e,d,t,l,r,f,c;return a("form",{key:"e60e25f358a68b95126f1b0238b754db71ffeb5e"},a("fieldset",{key:"ab9ca66102990e85694090847abda3842b4302e2"},a("div",{key:"7fd390072a5b449efb1d18538da2a5ca985b7786",class:"d-flex align-items-center gap-2"},a("legend",{key:"0fce87b8847777b8a2489684066a7f2ad28037a2",class:"mb-0"},"Representative"),a("form-control-tooltip",{key:"685ab12d13997025ff840776a7868627d71c4ddf",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"87c7bf398f56addcc816803ca4b0b8b6598f47f9",class:"mt-2"}),a("div",{key:"76f9606e68374f92810686b4ee1e65855bb724dd",class:"row gy-3"},a("div",{key:"982dfe08aba4db2ed702aaff432bea4e527ab9cb",class:"col-12 col-md-8"},a("form-control-text",{key:"4dfbde53299db25439a8be81187d7b3cb39d1026",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"9d9428eb5a8269861170dfa3ec162f0b52581101",class:"col-12 col-md-4"},a("form-control-text",{key:"af3601d4dfa0ffbe0a83f467d88c34add95b57b6",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"9f56a922a12b5a8393effde4a7e5d3e62f29a8e6",class:"col-12 col-md-6"},a("form-control-text",{key:"cc784d334f4c4612686f62a613ac7910d680dba8",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"4f63adab539a9f285985c440fcaf112ae81f7826",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a170c6b9a6d553216adc41ac7603841b949b4b83",name:"phone",label:"Phone Number",defaultValue:null===(l=this.representativeDefaultValue)||void 0===l?void 0:l.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:i.US})),a("div",{key:"85ea5c9bc2b3992d44247991fda34a5142e50faa",class:"col-12 col-md-4"},a("form-control-date",{key:"0e66f5255a6d159350ecd7d228ded18441b47d26",name:"dob_full",label:"Birth Date",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"e0dddceb3d489b9d92a19e983d2ef147c9127e68",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"0f95dd8c436a38377058bf6067d810d8bdcb7686",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"0fb3fea4773d72d787c50e18213379ca3aed5c9e",class:"col-12"},a("justifi-identity-address-form",{key:"fe9cf9cc527794376968d35cdd42bfd75e550cca",errors:this.errors.address,defaultValues:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{l as justifi_business_representative_form_inputs}
@@ -1 +1 @@
1
- const e={name:"@justifi/webcomponents",version:"4.20.0",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:file":"stencil test --spec --watch --"},dependencies:{"@popperjs/core":"^2.11.8","@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",lodash:"^4.17.21",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@rollup/plugin-replace":"^6.0.1","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
1
+ const e={name:"@justifi/webcomponents",version:"4.21.0",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:file":"stencil test --spec --watch --"},dependencies:{"@popperjs/core":"^2.11.8","@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",lodash:"^4.17.21",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@rollup/plugin-replace":"^6.0.1","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-fad19d75.js";import{P as r}from"./p-5e5e8a85.js";import"./p-56f6ce4c.js";import{P as e}from"./p-7fec2bcb.js";import"./p-e3fab0e2.js";import{C as o,a}from"./p-14c91ffd.js";import{g as n,a as p}from"./p-8115b2f4.js";import{E as c}from"./p-dce846bf.js";import{J as h}from"./p-bc9ae56f.js";import{c as d}from"./p-799ee8c3.js";import{c as m}from"./p-5a62fca2.js";import"./p-7d3be485.js";import"./p-6d4b585d.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getPayments=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=m.proxyApiOrigin}componentWillLoad(){d(),this.analytics=new h(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:i,apiOrigin:r})=>async({params:a,onSuccess:c,onError:h})=>{var d,m;try{const f=await i.fetchPayments(t,s,a,r);if(f.error)return h({error:n(f.error),code:p(null===(m=f.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},f.page_info);c({payments:(null===(d=f.data)||void 0===d?void 0:d.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return h({error:t.message||t,code:s,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new r,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):i("payments-list-core",{getPayments:this.getPayments,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payments_list}