@justifi/webcomponents 5.7.1 → 5.7.2

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 (296) hide show
  1. package/dist/cjs/{Api-C8nf_gS9.js → Api-Dp4CW5K6.js} +1 -1
  2. package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
  3. package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-TZnRz3-3.js} +1 -1
  4. package/dist/cjs/{Document-CL5Zc72Q.js → Document-Qt0qiXeh.js} +1 -1
  5. package/dist/cjs/{Refund-CYxocU06.js → Refund-BDFOEJv_.js} +1 -1
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +12 -13
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +26 -15
  9. package/dist/cjs/{business-additional-questions-schema-DR8vt11M.js → business-additional-questions-schema-JlysTRE3.js} +1 -1
  10. package/dist/cjs/business-details-core.cjs.entry.js +1 -2
  11. package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-BYaCsboD.js → business-identity-schema-BksYFWls.js} +1 -1
  13. package/dist/cjs/{business.service-C2rg_zSw.js → business.service-DMIMZpx4.js} +5 -5
  14. package/dist/cjs/{check-pkg-version-BqC8BOhm.js → check-pkg-version-hqYwYpQq.js} +6 -6
  15. package/dist/cjs/{checkout.service-CyvIIMeq.js → checkout.service-DKH8NODe.js} +5 -5
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -6
  17. package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-Cj2iSB_P.js} +1 -1
  18. package/dist/cjs/{dispute.service-CKPR1vFS.js → dispute.service-8j6tLV4i.js} +5 -5
  19. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  21. package/dist/cjs/{get-business-DHg5rpse.js → get-business-BJrtsomz.js} +1 -1
  22. package/dist/cjs/{get-payment-details-C9HqIv-M.js → get-payment-details-MM1u5jMc.js} +5 -5
  23. package/dist/cjs/{get-subaccounts-BNpIanJ9.js → get-subaccounts-CkjWYxIU.js} +6 -6
  24. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  25. package/dist/cjs/iframe-input.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -9
  27. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
  28. package/dist/cjs/justifi-business-details.cjs.entry.js +17 -12
  29. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  30. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  31. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -9
  32. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
  33. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  34. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  36. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -9
  37. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
  38. package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
  39. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  40. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  41. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
  43. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  46. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
  47. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -11
  49. package/dist/cjs/justifi-refund-payment.cjs.entry.js +10 -10
  50. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
  52. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  53. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  55. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  56. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -11
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-Biee4Hdo.js → package-BCOEGxFC.js} +1 -1
  59. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment.service-C996aLGw.js → payment.service-CCxGhTwZ.js} +5 -5
  61. package/dist/cjs/payments-list-core.cjs.entry.js +6 -6
  62. package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BR97ybd6.js} +1 -1
  63. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  64. package/dist/cjs/{payout.service-BwKgEbDo.js → payout.service-CtphIhUK.js} +5 -5
  65. package/dist/cjs/payouts-list-core.cjs.entry.js +6 -6
  66. package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-DMcQiC1g.js} +1 -1
  67. package/dist/cjs/{schema-validations-Bhz09M42.js → schema-validations-BUor-ySb.js} +6 -7
  68. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +6 -6
  69. package/dist/cjs/{terminal-orders-table-CxY1ykZ7.js → terminal-orders-table-D-CLcZws.js} +5 -5
  70. package/dist/cjs/{terminal.service-D7dxg9ZQ.js → terminal.service-Dv_WJkue.js} +5 -5
  71. package/dist/cjs/terminals-list-core.cjs.entry.js +6 -6
  72. package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-BEJ6sF7w.js} +1 -1
  73. package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
  74. package/dist/cjs/webcomponents.cjs.js +1 -1
  75. package/dist/collection/api/Business.js +3 -1
  76. package/dist/collection/collection-manifest.json +1 -1
  77. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
  78. package/dist/collection/components/business-details/business-details-core.js +1 -2
  79. package/dist/collection/components/business-details/business-details.js +10 -3
  80. package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
  81. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
  82. package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
  83. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  84. package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
  85. package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
  86. package/dist/collection/components/checkout/new-payment-method.js +17 -6
  87. package/dist/collection/components/checkout/payment-method-options.js +4 -5
  88. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +4 -5
  89. package/dist/collection/ui-components/details/details.js +2 -2
  90. package/dist/collection/utils/utils.js +3 -0
  91. package/dist/docs.json +84 -77
  92. package/dist/esm/{Api-KYhsw8Nv.js → Api-cgKcLG0y.js} +1 -1
  93. package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
  94. package/dist/esm/{Checkout-Dfpql997.js → Checkout-B9LrTq63.js} +1 -1
  95. package/dist/esm/{Document-cNXrKmGy.js → Document-DvWsQBM6.js} +1 -1
  96. package/dist/esm/{Refund-2YJqP9qX.js → Refund-zZewCvey.js} +1 -1
  97. package/dist/esm/additional-questions-details_5.entry.js +12 -13
  98. package/dist/esm/bank-account-document-form-inputs_4.entry.js +6 -6
  99. package/dist/esm/bank-account-form_9.entry.js +26 -15
  100. package/dist/esm/{business-additional-questions-schema-GpN_koGK.js → business-additional-questions-schema-CBUm3D7O.js} +1 -1
  101. package/dist/esm/business-details-core.entry.js +1 -2
  102. package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
  103. package/dist/esm/{business-identity-schema-BjuQ6ajL.js → business-identity-schema-CntGz8jo.js} +1 -1
  104. package/dist/esm/{business.service-ClD_YDeT.js → business.service-BWivPbyO.js} +5 -5
  105. package/dist/esm/{check-pkg-version-DxnKX9GQ.js → check-pkg-version-BykGn7tx.js} +6 -6
  106. package/dist/esm/{checkout.service-DfzkmIe4.js → checkout.service-Bh-Q24Cr.js} +5 -5
  107. package/dist/esm/checkouts-list-core.entry.js +6 -6
  108. package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-DcVkD83l.js} +1 -1
  109. package/dist/esm/{dispute.service-BTOWqnmk.js → dispute.service-1AYcALSg.js} +5 -5
  110. package/dist/esm/form-alert_5.entry.js +2 -2
  111. package/dist/esm/form-control-monetary.entry.js +1 -1
  112. package/dist/esm/{get-business-CIKToQur.js → get-business-GEPTefIj.js} +1 -1
  113. package/dist/esm/{get-payment-details-D-prcfRc.js → get-payment-details-DXhXxFPr.js} +5 -5
  114. package/dist/esm/{get-subaccounts-B0uEyOp_.js → get-subaccounts-CtHj1UM6.js} +6 -6
  115. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  116. package/dist/esm/iframe-input.entry.js +1 -1
  117. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +9 -9
  118. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +9 -9
  119. package/dist/esm/justifi-business-details.entry.js +18 -13
  120. package/dist/esm/justifi-business-form.entry.js +13 -13
  121. package/dist/esm/justifi-checkout-core.entry.js +2 -2
  122. package/dist/esm/justifi-checkout.entry.js +9 -9
  123. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
  124. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  125. package/dist/esm/justifi-details.entry.js +2 -2
  126. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  127. package/dist/esm/justifi-dispute-notification_3.entry.js +9 -9
  128. package/dist/esm/justifi-gross-payment-chart.entry.js +8 -8
  129. package/dist/esm/justifi-order-terminals.entry.js +11 -11
  130. package/dist/esm/justifi-owner-form_3.entry.js +10 -10
  131. package/dist/esm/justifi-payment-details.entry.js +10 -10
  132. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  133. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -9
  134. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  135. package/dist/esm/justifi-payments-list.entry.js +10 -10
  136. package/dist/esm/justifi-payout-details.entry.js +9 -9
  137. package/dist/esm/justifi-payout-transactions-list.entry.js +9 -9
  138. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  139. package/dist/esm/justifi-payouts-list.entry.js +11 -11
  140. package/dist/esm/justifi-refund-payment.entry.js +10 -10
  141. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  142. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
  143. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  144. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  145. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  146. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  147. package/dist/esm/justifi-tokenize-payment-method.entry.js +10 -11
  148. package/dist/esm/loader.js +1 -1
  149. package/dist/esm/{package-DPiTQ9dr.js → package-BjMTOtI1.js} +1 -1
  150. package/dist/esm/payment-details-core.entry.js +1 -1
  151. package/dist/esm/{payment.service-CgwLo1_s.js → payment.service-2afJc31y.js} +5 -5
  152. package/dist/esm/payments-list-core.entry.js +6 -6
  153. package/dist/esm/{payments-table-BBf5fV74.js → payments-table-B8316Kqz.js} +1 -1
  154. package/dist/esm/payout-details-core.entry.js +1 -1
  155. package/dist/esm/{payout.service-DYFCNfLa.js → payout.service-Bd8Tc7-Q.js} +5 -5
  156. package/dist/esm/payouts-list-core.entry.js +6 -6
  157. package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-Ip10eH4Q.js} +1 -1
  158. package/dist/esm/{schema-validations-D9YNVLiI.js → schema-validations-C7D5tPzq.js} +6 -7
  159. package/dist/esm/terminal-orders-list-core.entry.js +6 -6
  160. package/dist/esm/{terminal-orders-table-BopP465z.js → terminal-orders-table-CCJT7oq4.js} +5 -5
  161. package/dist/esm/{terminal.service-f-whs_d4.js → terminal.service-8kwGru35.js} +5 -5
  162. package/dist/esm/terminals-list-core.entry.js +6 -6
  163. package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-cMkKUVff.js} +1 -1
  164. package/dist/esm/{utils-BWcTxbSg.js → utils-DB5fh6Iv.js} +3 -0
  165. package/dist/esm/webcomponents.js +1 -1
  166. package/dist/module/Business.js +3 -1
  167. package/dist/module/additional-questions-details2.js +3 -4
  168. package/dist/module/billing-form.js +4 -3
  169. package/dist/module/business-details-core2.js +11 -7
  170. package/dist/module/business-terms-conditions-form-step.js +2 -2
  171. package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
  172. package/dist/module/core-info-details.js +6 -0
  173. package/dist/module/core-info-details2.js +34 -0
  174. package/dist/module/details.js +2 -2
  175. package/dist/module/justifi-business-details.js +20 -9
  176. package/dist/module/justifi-tokenize-payment-method.js +2 -3
  177. package/dist/module/legal-address-details2.js +3 -3
  178. package/dist/module/new-payment-method.js +15 -4
  179. package/dist/module/package.js +1 -1
  180. package/dist/module/payment-method-options.js +2 -3
  181. package/dist/module/representative-details2.js +3 -3
  182. package/dist/module/schema-validations.js +4 -5
  183. package/dist/module/utils2.js +3 -0
  184. package/dist/types/components/business-details/business-details.d.ts +1 -0
  185. package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
  186. package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
  187. package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
  188. package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
  189. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  190. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
  191. package/dist/types/components.d.ts +21 -21
  192. package/dist/types/utils/utils.d.ts +1 -1
  193. package/dist/webcomponents/{p-40541e0c.entry.js → p-10d41e17.entry.js} +1 -1
  194. package/dist/webcomponents/{p-b2192f8b.entry.js → p-1678e9e3.entry.js} +1 -1
  195. package/dist/webcomponents/p-16d29d0b.entry.js +1 -0
  196. package/dist/webcomponents/p-292da2d4.entry.js +1 -0
  197. package/dist/webcomponents/p-2c7ae3ac.entry.js +1 -0
  198. package/dist/webcomponents/{p-44d8c2b1.entry.js → p-2c8d7aa9.entry.js} +1 -1
  199. package/dist/webcomponents/p-33b23638.entry.js +1 -0
  200. package/dist/webcomponents/{p-4749e0d0.entry.js → p-40f7e3af.entry.js} +1 -1
  201. package/dist/webcomponents/p-4680f931.entry.js +1 -0
  202. package/dist/webcomponents/{p-d1331dbb.entry.js → p-4a070b7a.entry.js} +1 -1
  203. package/dist/webcomponents/{p-916ea4fc.entry.js → p-4b51a896.entry.js} +1 -1
  204. package/dist/webcomponents/p-4f8b9b99.entry.js +1 -0
  205. package/dist/webcomponents/p-57c89023.entry.js +1 -0
  206. package/dist/webcomponents/{p-1a85f26f.entry.js → p-57fc593a.entry.js} +1 -1
  207. package/dist/webcomponents/p-5d81f36e.entry.js +1 -0
  208. package/dist/webcomponents/{p-43d6bbed.entry.js → p-5df5aa41.entry.js} +1 -1
  209. package/dist/webcomponents/{p-d9c70010.entry.js → p-70c498d4.entry.js} +1 -1
  210. package/dist/webcomponents/{p-947239a6.entry.js → p-722c5e42.entry.js} +1 -1
  211. package/dist/webcomponents/{p-d2dc6f22.entry.js → p-758ce5e5.entry.js} +4 -4
  212. package/dist/webcomponents/{p-f389c2aa.entry.js → p-77896e7b.entry.js} +1 -1
  213. package/dist/webcomponents/p-77ac321c.entry.js +1 -0
  214. package/dist/webcomponents/p-7d3cf734.entry.js +1 -0
  215. package/dist/webcomponents/{p-3abc8eab.entry.js → p-8183c2d1.entry.js} +1 -1
  216. package/dist/webcomponents/{p-f8b205f7.entry.js → p-8ad67f87.entry.js} +1 -1
  217. package/dist/webcomponents/{p-9105f700.entry.js → p-8c107267.entry.js} +1 -1
  218. package/dist/webcomponents/p-93df56e1.entry.js +1 -0
  219. package/dist/webcomponents/{p-BiPRf6d2.js → p-BR7flk4G.js} +1 -1
  220. package/dist/webcomponents/p-BjMTOtI1.js +1 -0
  221. package/dist/webcomponents/{p-BzPi8Ea_.js → p-Bk4gk-f7.js} +1 -1
  222. package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
  223. package/dist/webcomponents/{p-CpTwq2jw.js → p-BnE7qgLh.js} +1 -1
  224. package/dist/webcomponents/{p-d-_oUZor.js → p-C1sOJl-_.js} +1 -1
  225. package/dist/webcomponents/p-COcul8pX.js +1 -0
  226. package/dist/webcomponents/{p-CffckWWF.js → p-CaGOSFHG.js} +1 -1
  227. package/dist/webcomponents/p-Cm_0sqXz.js +1 -0
  228. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  229. package/dist/webcomponents/p-Cx60eQXT.js +1 -0
  230. package/dist/webcomponents/{p-OSmuQKbK.js → p-D2ZiLcDE.js} +1 -1
  231. package/dist/webcomponents/{p-vb3fTJEZ.js → p-DClC2nMO.js} +1 -1
  232. package/dist/webcomponents/p-DR89sFne.js +1 -0
  233. package/dist/webcomponents/{p-ByRPlUBS.js → p-DnB1x5JE.js} +1 -1
  234. package/dist/webcomponents/p-DvhDilDP.js +1 -0
  235. package/dist/webcomponents/{p-BjB_yKBJ.js → p-DzFysjCc.js} +1 -1
  236. package/dist/webcomponents/{p-DvHZ2jYI.js → p-HBDBB6lL.js} +1 -1
  237. package/dist/webcomponents/p-_pH3Hg4P.js +1 -0
  238. package/dist/webcomponents/{p-a4dd3835.entry.js → p-a0662195.entry.js} +1 -1
  239. package/dist/webcomponents/{p-82515f70.entry.js → p-a136ff22.entry.js} +1 -1
  240. package/dist/webcomponents/{p-2b8ac00a.entry.js → p-a33cfcfe.entry.js} +1 -1
  241. package/dist/webcomponents/{p-83154291.entry.js → p-a6722f44.entry.js} +1 -1
  242. package/dist/webcomponents/{p-24792e8e.entry.js → p-a8119fda.entry.js} +1 -1
  243. package/dist/webcomponents/{p-799000c1.entry.js → p-a94952f6.entry.js} +1 -1
  244. package/dist/webcomponents/p-abdae97a.entry.js +1 -0
  245. package/dist/webcomponents/p-af09b6ee.entry.js +1 -0
  246. package/dist/webcomponents/p-b0d3aab7.entry.js +1 -0
  247. package/dist/webcomponents/p-b1586aa2.entry.js +1 -0
  248. package/dist/webcomponents/{p-0deb6a38.entry.js → p-c01544c3.entry.js} +1 -1
  249. package/dist/webcomponents/{p-25ea4450.entry.js → p-c3c7be24.entry.js} +1 -1
  250. package/dist/webcomponents/{p-cab175e9.entry.js → p-c5628e09.entry.js} +1 -1
  251. package/dist/webcomponents/{p-af2c38f7.entry.js → p-c5b6b76f.entry.js} +1 -1
  252. package/dist/webcomponents/{p-ad85bd0d.entry.js → p-c6490254.entry.js} +1 -1
  253. package/dist/webcomponents/{p-C0UUR9CN.js → p-clwP6zk3.js} +1 -1
  254. package/dist/webcomponents/{p-3babed12.entry.js → p-d8b8b17c.entry.js} +1 -1
  255. package/dist/webcomponents/{p-54281359.entry.js → p-e2bfdba5.entry.js} +1 -1
  256. package/dist/webcomponents/p-e73fe424.entry.js +1 -0
  257. package/dist/webcomponents/{p-CCGhF18e.js → p-eHhqPyVW.js} +1 -1
  258. package/dist/webcomponents/{p-4ee0cd96.entry.js → p-f23d4fdb.entry.js} +1 -1
  259. package/dist/webcomponents/{p-4194214c.entry.js → p-ffd197c2.entry.js} +1 -1
  260. package/dist/webcomponents/p-gZGxqQgQ.js +1 -0
  261. package/dist/webcomponents/p-l3uWWMRW.js +1 -0
  262. package/dist/webcomponents/{p-ZE1NEnP3.js → p-r__elyG4.js} +1 -1
  263. package/dist/webcomponents/{p-82kiZkHt.js → p-uSM1EMk-.js} +1 -1
  264. package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
  265. package/dist/webcomponents/webcomponents.esm.js +1 -1
  266. package/package.json +1 -1
  267. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
  268. package/dist/module/generic-info-details.js +0 -6
  269. package/dist/module/generic-info-details2.js +0 -34
  270. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
  271. package/dist/webcomponents/p-0ab2f675.entry.js +0 -1
  272. package/dist/webcomponents/p-0b57ecc3.entry.js +0 -1
  273. package/dist/webcomponents/p-16adfe77.entry.js +0 -1
  274. package/dist/webcomponents/p-1b22572d.entry.js +0 -1
  275. package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
  276. package/dist/webcomponents/p-2adda453.entry.js +0 -1
  277. package/dist/webcomponents/p-2dbc4b19.entry.js +0 -1
  278. package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
  279. package/dist/webcomponents/p-84d27581.entry.js +0 -1
  280. package/dist/webcomponents/p-935fa555.entry.js +0 -1
  281. package/dist/webcomponents/p-BM5lviat.js +0 -1
  282. package/dist/webcomponents/p-BWJ7zamv.js +0 -1
  283. package/dist/webcomponents/p-BmWpHZ-Z.js +0 -1
  284. package/dist/webcomponents/p-D5Sh88BE.js +0 -1
  285. package/dist/webcomponents/p-DNt_pMGt.js +0 -1
  286. package/dist/webcomponents/p-DPiTQ9dr.js +0 -1
  287. package/dist/webcomponents/p-DZfxGQ1I.js +0 -1
  288. package/dist/webcomponents/p-DuBhW0xA.js +0 -1
  289. package/dist/webcomponents/p-M61ygz6l.js +0 -1
  290. package/dist/webcomponents/p-a46730eb.entry.js +0 -1
  291. package/dist/webcomponents/p-afa54e39.entry.js +0 -1
  292. package/dist/webcomponents/p-dd05cce1.entry.js +0 -1
  293. package/dist/webcomponents/p-e00aeb33.entry.js +0 -1
  294. package/dist/webcomponents/p-e1c5ee0a.entry.js +0 -1
  295. package/dist/webcomponents/p-ea8dd3e7.entry.js +0 -1
  296. package/dist/webcomponents/p-o_73WSki.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-D6FDxSyt.js';
2
2
  import { c as DetailItem, D as DetailSectionTitle } from './utils-BpP_VJGf.js';
3
- import { l as isEmptyObject, s as snakeCaseToHumanReadable, m as formatMediumDate } from './utils-BWcTxbSg.js';
3
+ import { l as isEmptyObject, s as snakeCaseToHumanReadable, m as formatMediumDate } from './utils-DB5fh6Iv.js';
4
4
  import './parts-BrLVc_85.js';
5
5
  import './_commonjsHelpers-BFTU3MAI.js';
6
6
 
@@ -9,22 +9,21 @@ const AdditionalQuestionsDetails = class {
9
9
  registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- var _a, _b;
13
- if (isEmptyObject(this.additionalQuestions))
12
+ if (!this.additionalQuestions || isEmptyObject(this.additionalQuestions))
14
13
  return null;
15
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: (_a = this.additionalQuestions.business_revenue) === null || _a === void 0 ? void 0 : _a.toString() }), h(DetailItem, { title: "Business Payment Volume", value: (_b = this.additionalQuestions.business_payment_volume) === null || _b === void 0 ? void 0 : _b.toString() }))))));
14
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Additional Questions" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Business Revenue", value: this.additionalQuestions.business_revenue }), h(DetailItem, { title: "Business Payment Volume", value: this.additionalQuestions.business_payment_volume }))))));
16
15
  }
17
16
  };
18
17
 
19
- const GenericInfoDetails = class {
18
+ const CoreInfoDetails = class {
20
19
  constructor(hostRef) {
21
20
  registerInstance(this, hostRef);
22
21
  }
23
22
  render() {
24
- var _a, _b, _c, _d, _e, _f, _g, _h;
25
- if (!this.business)
23
+ if (!this.business) {
26
24
  return null;
27
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.classification) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
25
+ }
26
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Core Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: this.business.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: this.business.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable(this.business.classification) }), h(DetailItem, { title: "Industry", value: this.business.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: this.business.tax_id }), h(DetailItem, { title: "Website URL", value: this.business.website_url }), h(DetailItem, { title: "Email Address", value: this.business.email }), h(DetailItem, { title: "Phone Number", value: this.business.phone }))))));
28
27
  }
29
28
  };
30
29
 
@@ -34,9 +33,9 @@ const LegalAddressDetails = class {
34
33
  }
35
34
  render() {
36
35
  var _a, _b, _c, _d, _e, _f, _g;
37
- if (isEmptyObject(this.legalAddress))
36
+ if (!this.legalAddress || isEmptyObject(this.legalAddress))
38
37
  return null;
39
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
38
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Business Legal Address Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Country", value: (_a = this.legalAddress) === null || _a === void 0 ? void 0 : _a.country }), h(DetailItem, { title: "Legal Address", value: (_b = this.legalAddress) === null || _b === void 0 ? void 0 : _b.line1 }), h(DetailItem, { title: "Address Line 2", value: (_c = this.legalAddress) === null || _c === void 0 ? void 0 : _c.line2 })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "City", value: (_d = this.legalAddress) === null || _d === void 0 ? void 0 : _d.city }), h(DetailItem, { title: "State", value: (_e = this.legalAddress) === null || _e === void 0 ? void 0 : _e.state }), h(DetailItem, { title: "Postal Code", value: (_g = (_f = this.legalAddress) === null || _f === void 0 ? void 0 : _f.postal_code) === null || _g === void 0 ? void 0 : _g.toString() }))))));
40
39
  }
41
40
  };
42
41
 
@@ -64,10 +63,10 @@ const JustifiRepresentativeDetails = class {
64
63
  }
65
64
  render() {
66
65
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
67
- if (isEmptyObject(this.representative))
66
+ if (!this.representative || isEmptyObject(this.representative))
68
67
  return null;
69
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
68
+ return (h("div", null, h(DetailSectionTitle, { sectionTitle: "Representative Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Name", value: (_a = this.representative) === null || _a === void 0 ? void 0 : _a.name }), h(DetailItem, { title: "ID", value: (_b = this.representative) === null || _b === void 0 ? void 0 : _b.id }), h(DetailItem, { title: "Address", value: (_d = (_c = this.representative) === null || _c === void 0 ? void 0 : _c.address) === null || _d === void 0 ? void 0 : _d.line1 }), h(DetailItem, { title: "Created At", value: ((_e = this.representative) === null || _e === void 0 ? void 0 : _e.created_at) && formatMediumDate((_f = this.representative) === null || _f === void 0 ? void 0 : _f.created_at) })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Title", value: (_g = this.representative) === null || _g === void 0 ? void 0 : _g.title }), h(DetailItem, { title: "Is Owner?", value: (_h = this.representative) === null || _h === void 0 ? void 0 : _h.is_owner.toString() }), h(DetailItem, { title: "Date Of Birth", value: this.representative && formatMediumDate(new Date(Number((_j = this.representative) === null || _j === void 0 ? void 0 : _j.dob_year), Number((_k = this.representative) === null || _k === void 0 ? void 0 : _k.dob_month) - 1, Number((_l = this.representative) === null || _l === void 0 ? void 0 : _l.dob_day))) }), h(DetailItem, { title: "Email", value: (_m = this.representative) === null || _m === void 0 ? void 0 : _m.email }), h(DetailItem, { title: "Phone", value: (_o = this.representative) === null || _o === void 0 ? void 0 : _o.phone }), h(DetailItem, { title: "Updated At", value: this.representative && formatMediumDate((_p = this.representative) === null || _p === void 0 ? void 0 : _p.updated_at) }))))));
70
69
  }
71
70
  };
72
71
 
73
- export { AdditionalQuestionsDetails as additional_questions_details, GenericInfoDetails as generic_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details, JustifiRepresentativeDetails as representative_details };
72
+ export { AdditionalQuestionsDetails as additional_questions_details, CoreInfoDetails as core_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details, JustifiRepresentativeDetails as representative_details };
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-D6FDxSyt.js';
2
2
  import './config-state-CkKrqnpZ.js';
3
- import { s as snakeCaseToHumanReadable, d as formatDate, i as formatTimeSeconds } from './utils-BWcTxbSg.js';
3
+ import { s as snakeCaseToHumanReadable, d as formatDate, i as formatTimeSeconds } from './utils-DB5fh6Iv.js';
4
4
  import './ComponentError-SdntD1xf.js';
5
- import './Checkout-Dfpql997.js';
5
+ import './Checkout-B9LrTq63.js';
6
6
  import './Pagination-CLHwhyvu.js';
7
- import { E as EntityDocumentType } from './Document-cNXrKmGy.js';
8
- import './Refund-2YJqP9qX.js';
9
- import './Business-D6XNzizo.js';
7
+ import { E as EntityDocumentType } from './Document-DvWsQBM6.js';
8
+ import './Refund-zZewCvey.js';
9
+ import './Business-BCoP0TAV.js';
10
10
  import './Dispute-BH0Xfn-F.js';
11
- import { c as bankAccountTypeOptions } from './business-form-options-Bn05PRR4.js';
11
+ import { c as bankAccountTypeOptions } from './business-form-options-CgssATyg.js';
12
12
  import './event-types-XYgDHrVL.js';
13
13
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
14
14
  import { X as card, D as heading2, ai as table, P as tableHeadCell, aj as tableCell, c as input, l as label, b as inputInvalid, R as inputDisabled, a as inputFocused } from './parts-BrLVc_85.js';
@@ -4,17 +4,17 @@ import { w as waitForConfig, c as configState } from './config-state-CkKrqnpZ.js
4
4
  import { a as iframeInputStylesSet } from './iframe-input-styles-state-ibYqbF--.js';
5
5
  import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, au as billingForm, av as radioListItem } from './parts-BrLVc_85.js';
6
6
  import { c as create$3, F as FormController } from './index.esm-BCNUj0Dx.js';
7
- import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-D9YNVLiI.js';
7
+ import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-C7D5tPzq.js';
8
8
  import { H as Header3 } from './header-3-DAg8Vh4B.js';
9
9
  import './event-types-CZfYo5-1.js';
10
10
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
11
11
  import { S as StateOptions } from './state-options-BX8GieXu.js';
12
- import { c as PaymentMethodTypes } from './Document-cNXrKmGy.js';
13
- import { n as snakeToCamel, f as formatCurrency } from './utils-BWcTxbSg.js';
12
+ import { c as PaymentMethodTypes } from './Document-DvWsQBM6.js';
13
+ import { n as snakeToCamel, f as formatCurrency } from './utils-DB5fh6Iv.js';
14
14
  import './index-Cc3u0uDC.js';
15
15
  import './_commonjsHelpers-BFTU3MAI.js';
16
- import './business-form-options-Bn05PRR4.js';
17
- import './Business-D6XNzizo.js';
16
+ import './business-form-options-CgssATyg.js';
17
+ import './Business-BCoP0TAV.js';
18
18
  import './helpers-Mu7LQT-w.js';
19
19
  import './Dispute-BH0Xfn-F.js';
20
20
 
@@ -262,13 +262,14 @@ const BillingForm = class {
262
262
  this.formController.setInitialValues(fields);
263
263
  }
264
264
  async validate() {
265
- let isValid = await this.formController.validate();
266
- return { isValid: isValid };
265
+ const isValid = await this.formController.validate();
266
+ const errors = this.formController.errors.getValue();
267
+ return { isValid, errors };
267
268
  }
268
269
  render() {
269
270
  const billingFormDefaultValue = this.formController.getInitialValues();
270
271
  const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
271
- return (h(Host, { key: '0df4ecdee8c32874325b83dd79586c7449ce6d93' }, h("div", { key: '6d5b45f278a7c69a76fe0895036ab37b810d0262', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: 'bc8f57f42134859e28dd523500ef874101198076', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '908b8265b028caaa01314bc56bdbfe550b632b94' }, h("fieldset", { key: 'af3e34fca100b0e0c3f13ef3af3a88009859e277' }, this.legend && h("legend", { key: '15cfcc98681d4386afad33d68910f7732e88b9a9' }, this.legend), h("div", { key: 'de372fbe06a6da1f512170a6f79f27c96499d790', class: "row gy-3" }, h("div", { key: 'bb4aab9d17a7bed7cb09e4306158f5e0ff248b8f', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'f8e086504b6f3fac0e4bd2a0c0dee5e2f2c3328a', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9a5105e1183a61c55639c8153a65169fb65998c5', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '4802e1462b0b1f433c77f817b733611332b18711', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '3edf7b2390c2fa7d0cadd75f9102a63f88a3685b', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'bec348d7030fa44e5a627ebc3f67ed9689a4a5b9', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '066d141b9529aae210fc2585bd2fd386e5b82120', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '602587fcca0666d7070e5cd0316ed1c541953337', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '125aeec26f292763abefe1c3a1a3070a2a8b4c7c', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'fb8d46d217d452809ee199ef8640e93714a91e85', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: 'b622a69cb724ed15d2fe0fb2a9039635bc96a12e', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: 'a094770db85d5a65524909b5c4ec532fca167a95', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
272
+ return (h(Host, { key: 'df86239c476aadde3af18742bbf643d61825c051' }, h("div", { key: '186f3ef6c2295223da888b7645a0af7aa8df4535', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '72284e3fcea18cbdfe879989fb7f1b007e2a37df', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", { key: '9479d696a0486e63edfad4bd0dbe374a21cb7b8c' }, h("fieldset", { key: 'b780abf09a714f2e9588670ad149c3ca999cbc87' }, this.legend && h("legend", { key: 'f102dc51722fe2f050c951e7b56117c9577f3b83' }, this.legend), h("div", { key: '00d6c7e35d768f3357cc17836c916e2bf24e3a7e', class: "row gy-3" }, h("div", { key: 'cb2b29aa769c97ccab246dc74e463d389497edbd', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '3cb8ca5e3ecd0817f8e16aafbb5d3ca5ee7824ed', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '781338b1c79fd815d2ab2dbc15e7b56b534a2278', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '682a37c6b417fbc0edf76b89122b5bf618603360', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '50d657891e492c8568bf179d752b9aadf10f2387', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: 'ce1f04bfc3307af7a025390bcbcce6a6b3da6fab', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: 'ddb45c1cbdc6aa5d27c6a0c4b6f29366ed0e8eba', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-text", { key: '410efdbcd5381bdf61d9c752f292f794d8e12670', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: 'a65811acc25443a07cdb1401231ce1e703096fd4', class: "col-12", hidden: this.isPostalOnlyMode }, h("form-control-select", { key: 'bed28d564c9e5a2ebfc10b6ab47e43e2b17bd6e6', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '8aca307d318e87b17e09122fa91e817c0a59c8d5', class: "col-12", hidden: this.hideAllBillingFields }, h("form-control-text", { key: '4dd06dc9ae01fc2953780e52f9e9c918a38a7bbd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
272
273
  }
273
274
  };
274
275
 
@@ -297,9 +298,18 @@ const NewPaymentMethod = class {
297
298
  if (!this.paymentMethodFormRef || !this.billingFormRef)
298
299
  return;
299
300
  try {
300
- const isValid = await this.validate();
301
+ const { isValid, errors } = await this.validate();
301
302
  if (!isValid || !insuranceValidation.isValid) {
302
- return { validationError: true };
303
+ // get propety value from first property in errors object
304
+ const message = `${Object.values(errors)[0] || 'Validation error'}`;
305
+ return {
306
+ validationError: true,
307
+ error: {
308
+ code: 'validation_error',
309
+ message,
310
+ decline_code: undefined
311
+ }
312
+ };
303
313
  }
304
314
  const tokenizeResponse = await this.tokenize();
305
315
  if (tokenizeResponse.error) {
@@ -320,7 +330,9 @@ const NewPaymentMethod = class {
320
330
  async validate() {
321
331
  const billingFormValidation = await this.billingFormRef.validate();
322
332
  const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
323
- return billingFormValidation.isValid && paymentMethodFormValidation.isValid;
333
+ const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
334
+ const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
335
+ return { isValid, errors };
324
336
  }
325
337
  async tokenize() {
326
338
  try {
@@ -350,7 +362,7 @@ const NewPaymentMethod = class {
350
362
  }
351
363
  render() {
352
364
  var _a, _b;
353
- return (h(Host, { key: 'b80791923e2276322ebe0ce3b25b2073beac188d', class: "payment-method" }, h("div", { key: '47dc555bc135d4562958cf371ca3c8b80ee7236d', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'e485347f39fa4b7d46d64e231931d6bdf541687c', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
365
+ return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
354
366
  }
355
367
  };
356
368
 
@@ -420,12 +432,11 @@ const PaymentMethodOptions = class {
420
432
  }
421
433
  async validate() {
422
434
  const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
423
- const isValid = await newPaymentMethodElement.validate();
424
- return { isValid: isValid };
435
+ return newPaymentMethodElement.validate();
425
436
  }
426
437
  render() {
427
438
  var _a;
428
- return (h(Host, { key: '506450161ed363330132c2bfa99a6a7729e94778' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
439
+ return (h(Host, { key: 'c61e82c72aaa25e87ded723799a1eb0961c05444' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
429
440
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
430
441
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
431
442
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -1,5 +1,5 @@
1
1
  import { c as create$3 } from './index.esm-BCNUj0Dx.js';
2
- import { d as dateOfIncorporationValidation, t as taxIdValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, o as otherPaymentDetailsValidation, s as seasonalBusinessValidation, r as recurringPaymentsPercentageValidation, f as recurringPaymentsValidation, g as whenServiceReceivedValidation, h as paymentVolumeValidation, j as revenueValidation } from './schema-validations-D9YNVLiI.js';
2
+ import { d as dateOfIncorporationValidation, t as taxIdValidation, i as industryValidation, b as businessClassificationValidation, a as doingBusinessAsValidation, p as phoneValidation, e as emailValidation, w as websiteUrlValidation, c as businessNameValidation, o as otherPaymentDetailsValidation, s as seasonalBusinessValidation, r as recurringPaymentsPercentageValidation, f as recurringPaymentsValidation, g as whenServiceReceivedValidation, h as paymentVolumeValidation, j as revenueValidation } from './schema-validations-C7D5tPzq.js';
3
3
 
4
4
  const businessCoreInfoSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -36,7 +36,6 @@ const BusinessDetailsCore = class {
36
36
  registerInstance(this, hostRef);
37
37
  this.errorEvent = createEvent(this, "error-event");
38
38
  this.renderState = RENDER_STATES.LOADING;
39
- this.errorMessage = 'An error ocurred.';
40
39
  }
41
40
  async componentWillLoad() {
42
41
  if (this.getBusiness) {
@@ -68,7 +67,7 @@ const BusinessDetailsCore = class {
68
67
  if (this.renderState === RENDER_STATES.ERROR) {
69
68
  return h(StyledHost, null, ErrorState(this.errorMessage));
70
69
  }
71
- return (h(StyledHost, null, h("generic-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })));
70
+ return (h(StyledHost, null, h("justifi-details", { "error-message": this.errorMessage }, h("div", { slot: 'detail-sections' }, h("core-info-details", { business: this.business }), h("legal-address-details", { legalAddress: this.business.legal_address }), h("representative-details", { representative: this.business.representative }), h("owner-details", { owners: this.business.owners }), h("additional-questions-details", { additionalQuestions: this.business.additional_questions })))));
72
71
  }
73
72
  };
74
73
 
@@ -1,4 +1,4 @@
1
- import { a as BusinessClassification } from './Business-D6XNzizo.js';
1
+ import { a as BusinessClassification } from './Business-BCoP0TAV.js';
2
2
 
3
3
  const businessClassificationOptions = [
4
4
  {
@@ -1,5 +1,5 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm-BCNUj0Dx.js';
2
- import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, u as ssnValidation, v as dobValidation, p as phoneValidation, e as emailValidation, x as identityTitleValidation, y as identityNameValidation } from './schema-validations-D9YNVLiI.js';
2
+ import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, u as ssnValidation, v as dobValidation, p as phoneValidation, e as emailValidation, x as identityTitleValidation, y as identityNameValidation } from './schema-validations-C7D5tPzq.js';
3
3
 
4
4
  const addressSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -1,10 +1,10 @@
1
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { A as Api } from './Api-cgKcLG0y.js';
2
2
  import './ComponentError-SdntD1xf.js';
3
- import './Checkout-Dfpql997.js';
3
+ import './Checkout-B9LrTq63.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Document-cNXrKmGy.js';
6
- import './Refund-2YJqP9qX.js';
7
- import './Business-D6XNzizo.js';
5
+ import './Document-DvWsQBM6.js';
6
+ import './Refund-zZewCvey.js';
7
+ import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
 
10
10
  const api = Api();
@@ -1,11 +1,11 @@
1
- import { p as packageJson } from './package-DPiTQ9dr.js';
2
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { p as packageJson } from './package-BjMTOtI1.js';
2
+ import { A as Api } from './Api-cgKcLG0y.js';
3
3
  import './ComponentError-SdntD1xf.js';
4
- import './Checkout-Dfpql997.js';
4
+ import './Checkout-B9LrTq63.js';
5
5
  import './Pagination-CLHwhyvu.js';
6
- import './Document-cNXrKmGy.js';
7
- import './Refund-2YJqP9qX.js';
8
- import './Business-D6XNzizo.js';
6
+ import './Document-DvWsQBM6.js';
7
+ import './Refund-zZewCvey.js';
8
+ import './Business-BCoP0TAV.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
 
11
11
  const api = Api();
@@ -1,10 +1,10 @@
1
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { A as Api } from './Api-cgKcLG0y.js';
2
2
  import './ComponentError-SdntD1xf.js';
3
- import './Checkout-Dfpql997.js';
3
+ import './Checkout-B9LrTq63.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Document-cNXrKmGy.js';
6
- import './Refund-2YJqP9qX.js';
7
- import './Business-D6XNzizo.js';
5
+ import './Document-DvWsQBM6.js';
6
+ import './Refund-zZewCvey.js';
7
+ import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
 
10
10
  const api = Api();
@@ -1,16 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-D6FDxSyt.js';
2
2
  import './config-state-CkKrqnpZ.js';
3
- import './utils-BWcTxbSg.js';
3
+ import './utils-DB5fh6Iv.js';
4
4
  import './ComponentError-SdntD1xf.js';
5
- import './Checkout-Dfpql997.js';
5
+ import './Checkout-B9LrTq63.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
- import './Document-cNXrKmGy.js';
8
- import './Refund-2YJqP9qX.js';
9
- import './Business-D6XNzizo.js';
7
+ import './Document-DvWsQBM6.js';
8
+ import './Refund-zZewCvey.js';
9
+ import './Business-BCoP0TAV.js';
10
10
  import './Dispute-BH0Xfn-F.js';
11
11
  import { T as Table, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell, l as TableWrapper } from './table-p4dOlFPi.js';
12
12
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
13
- import { c as checkoutTableColumns, a as checkoutTableCells } from './checkouts-table-DKd0QLys.js';
13
+ import { c as checkoutTableColumns, a as checkoutTableCells } from './checkouts-table-DcVkD83l.js';
14
14
  import { o as onQueryParamsChange, g as getRequestParams } from './checkouts-list-params-state-Bn7pL-8x.js';
15
15
  import './index-Cc3u0uDC.js';
16
16
  import './_commonjsHelpers-BFTU3MAI.js';
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-D6FDxSyt.js';
2
- import { b as formatTime, d as formatDate } from './utils-BWcTxbSg.js';
2
+ import { b as formatTime, d as formatDate } from './utils-DB5fh6Iv.js';
3
3
  import { B as BadgeVariant, a as Badge } from './badge-Du9GTXoB.js';
4
4
  import { P as tableHeadCell, Q as getAlternateTableCellPart } from './parts-BrLVc_85.js';
5
5
 
@@ -1,10 +1,10 @@
1
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { A as Api } from './Api-cgKcLG0y.js';
2
2
  import './ComponentError-SdntD1xf.js';
3
- import './Checkout-Dfpql997.js';
3
+ import './Checkout-B9LrTq63.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Document-cNXrKmGy.js';
6
- import './Refund-2YJqP9qX.js';
7
- import './Business-D6XNzizo.js';
5
+ import './Document-DvWsQBM6.js';
6
+ import './Refund-zZewCvey.js';
7
+ import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
 
10
10
  const api = Api();
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-D6FDxSyt.js';
2
2
  import { al as alertDanger, D as heading2 } from './parts-BrLVc_85.js';
3
- import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-Bn05PRR4.js';
3
+ import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-CgssATyg.js';
4
4
  import { C as CURRENCY_MASK, T as TAX_ID_MASKS, P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-B-iV5cYd.js';
5
- import { C as CoreBusinessInfo } from './Business-D6XNzizo.js';
5
+ import { C as CoreBusinessInfo } from './Business-BCoP0TAV.js';
6
6
  import { d as deconstructDate } from './helpers-Mu7LQT-w.js';
7
7
  import { S as StateOptions } from './state-options-BX8GieXu.js';
8
8
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
@@ -3,7 +3,7 @@ import { b as inputInvalid, R as inputDisabled, a as inputFocused, c as input, l
3
3
  import { F as FormControlHelpText } from './form-control-help-text-2DawN8-N.js';
4
4
  import { F as FormControlErrorText } from './form-control-error-text-tGFxd6kW.js';
5
5
  import './event-types-CZfYo5-1.js';
6
- import { f as formatCurrency } from './utils-BWcTxbSg.js';
6
+ import { f as formatCurrency } from './utils-DB5fh6Iv.js';
7
7
  import './_commonjsHelpers-BFTU3MAI.js';
8
8
 
9
9
  const MonetaryInput = class {
@@ -1,4 +1,4 @@
1
- import { B as Business } from './Business-D6XNzizo.js';
1
+ import { B as Business } from './Business-BCoP0TAV.js';
2
2
  import { C as ComponentErrorSeverity } from './ComponentError-SdntD1xf.js';
3
3
  import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
4
4
 
@@ -1,11 +1,11 @@
1
1
  import './config-state-CkKrqnpZ.js';
2
- import './utils-BWcTxbSg.js';
2
+ import './utils-DB5fh6Iv.js';
3
3
  import { C as ComponentErrorSeverity } from './ComponentError-SdntD1xf.js';
4
- import './Checkout-Dfpql997.js';
4
+ import './Checkout-B9LrTq63.js';
5
5
  import './Pagination-CLHwhyvu.js';
6
- import { P as Payment } from './Document-cNXrKmGy.js';
7
- import './Refund-2YJqP9qX.js';
8
- import './Business-D6XNzizo.js';
6
+ import { P as Payment } from './Document-DvWsQBM6.js';
7
+ import './Refund-zZewCvey.js';
8
+ import './Business-BCoP0TAV.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
11
11
 
@@ -1,13 +1,13 @@
1
- import { A as Api } from './Api-KYhsw8Nv.js';
1
+ import { A as Api } from './Api-cgKcLG0y.js';
2
2
  import { C as ComponentErrorSeverity } from './ComponentError-SdntD1xf.js';
3
- import './Checkout-Dfpql997.js';
3
+ import './Checkout-B9LrTq63.js';
4
4
  import './Pagination-CLHwhyvu.js';
5
- import './Document-cNXrKmGy.js';
6
- import { S as SubAccount } from './Refund-2YJqP9qX.js';
7
- import './Business-D6XNzizo.js';
5
+ import './Document-DvWsQBM6.js';
6
+ import { S as SubAccount } from './Refund-zZewCvey.js';
7
+ import './Business-BCoP0TAV.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import './config-state-CkKrqnpZ.js';
10
- import './utils-BWcTxbSg.js';
10
+ import './utils-DB5fh6Iv.js';
11
11
  import { g as getErrorCode, a as getErrorMessage } from './utils-Dccsn9BY.js';
12
12
 
13
13
  const api = Api();
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-D6FDxSyt.js';
2
- import { f as formatCurrency, k as formatDisplayDate } from './utils-BWcTxbSg.js';
2
+ import { f as formatCurrency, k as formatDisplayDate } from './utils-DB5fh6Iv.js';
3
3
  import { E as ErrorState } from './utils-BpP_VJGf.js';
4
4
  import { S as Spinner } from './spinner-onCBxbdo.js';
5
5
  import './_commonjsHelpers-BFTU3MAI.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-D6FDxSyt.js';
2
2
  import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
3
3
  import { F as FormControlErrorText } from './form-control-error-text-tGFxd6kW.js';
4
- import { p as packageJson } from './package-DPiTQ9dr.js';
4
+ import { p as packageJson } from './package-BjMTOtI1.js';
5
5
  import { i as iframeInputStyles } from './iframe-input-styles-state-ibYqbF--.js';
6
6
  import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-BrLVc_85.js';
7
7
  import './index-Cc3u0uDC.js';
@@ -1,25 +1,25 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-D6FDxSyt.js';
2
- import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-GpN_koGK.js';
2
+ import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './business-additional-questions-schema-CBUm3D7O.js';
3
3
  import { F as FormController, c as create$3 } from './index.esm-BCNUj0Dx.js';
4
- import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, c as Address } from './Business-D6XNzizo.js';
4
+ import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, c as Address } from './Business-BCoP0TAV.js';
5
5
  import { C as CURRENCY_MASK, P as PHONE_MASKS } from './form-input-masks-B-iV5cYd.js';
6
6
  import { D as heading2 } from './parts-BrLVc_85.js';
7
7
  import { S as Skeleton } from './skeleton-Dlpibtr0.js';
8
8
  import './event-types-CZfYo5-1.js';
9
- import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-Bn05PRR4.js';
9
+ import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './business-form-options-CgssATyg.js';
10
10
  import { a as BusinessFormStep, B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
11
- import { z as bankStatementValidation, A as voidedCheckValidation, B as routingNumberValidation, C as accountNumberValidation, D as accountTypeValidation, y as identityNameValidation, E as nicknameValidation, F as bankNameValidation } from './schema-validations-D9YNVLiI.js';
11
+ import { z as bankStatementValidation, A as voidedCheckValidation, B as routingNumberValidation, C as accountNumberValidation, D as accountTypeValidation, y as identityNameValidation, E as nicknameValidation, F as bankNameValidation } from './schema-validations-C7D5tPzq.js';
12
12
  import './config-state-CkKrqnpZ.js';
13
- import './utils-BWcTxbSg.js';
13
+ import './utils-DB5fh6Iv.js';
14
14
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
15
- import './Checkout-Dfpql997.js';
15
+ import './Checkout-B9LrTq63.js';
16
16
  import './Pagination-CLHwhyvu.js';
17
- import { a as EntityDocumentStorage, b as EntityDocument } from './Document-cNXrKmGy.js';
18
- import './Refund-2YJqP9qX.js';
17
+ import { a as EntityDocumentStorage, b as EntityDocument } from './Document-DvWsQBM6.js';
18
+ import './Refund-zZewCvey.js';
19
19
  import './Dispute-BH0Xfn-F.js';
20
20
  import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
21
21
  import { B as Button } from './button-CjH5C0pG.js';
22
- import { i as identitySchema, a as addressSchema } from './business-identity-schema-BjuQ6ajL.js';
22
+ import { i as identitySchema, a as addressSchema } from './business-identity-schema-CntGz8jo.js';
23
23
  import { S as StateOptions } from './state-options-BX8GieXu.js';
24
24
  import './_commonjsHelpers-BFTU3MAI.js';
25
25
  import './helpers-Mu7LQT-w.js';
@@ -1,17 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-D6FDxSyt.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
3
3
  import { m as makeGetBusiness, b as makePatchBusiness, f as makePostBankAccount, g as makePostDocumentRecord } from './payment-provisioning-actions-BIfyW239.js';
4
- import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service-ClD_YDeT.js';
4
+ import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service-BWivPbyO.js';
5
5
  import './config-state-CkKrqnpZ.js';
6
- import './utils-BWcTxbSg.js';
7
- import './Checkout-Dfpql997.js';
6
+ import './utils-DB5fh6Iv.js';
7
+ import './Checkout-B9LrTq63.js';
8
8
  import './Pagination-CLHwhyvu.js';
9
- import './Document-cNXrKmGy.js';
10
- import './Refund-2YJqP9qX.js';
11
- import './Business-D6XNzizo.js';
9
+ import './Document-DvWsQBM6.js';
10
+ import './Refund-zZewCvey.js';
11
+ import './Business-BCoP0TAV.js';
12
12
  import './Dispute-BH0Xfn-F.js';
13
13
  import { c as create$3, d as create$7, F as FormController } from './index.esm-BCNUj0Dx.js';
14
- import { A as Api } from './Api-KYhsw8Nv.js';
14
+ import { A as Api } from './Api-cgKcLG0y.js';
15
15
  import { D as heading2 } from './parts-BrLVc_85.js';
16
16
  import { a as BusinessFormStep, B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
17
17
  import { B as Button } from './button-CjH5C0pG.js';
@@ -287,7 +287,7 @@ const BusinessTermsConditionsFormStep = class {
287
287
  this.formLoading.emit(true);
288
288
  try {
289
289
  const payload = this.termsPayload;
290
- const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload });
290
+ const response = await this.api.post({ endpoint: this.termsConditionsEndpoint, body: payload, authToken: this.authToken });
291
291
  this.handleResponse(response, onSuccess);
292
292
  }
293
293
  catch (error) {
@@ -365,7 +365,7 @@ const BusinessTermsConditionsFormStep = class {
365
365
  return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
366
366
  }
367
367
  render() {
368
- return (h("form", { key: '6bba766ba11512058470225103aa2afff318ab99' }, h("fieldset", { key: '318755ea4fc772e61ac9f8318ccf95494f71bf73' }, h("legend", { key: 'e5a268e9be8ed0a69eb8eed23ffc742228218685', part: heading2 }, "Terms and Conditions"), h("hr", { key: '100eed0ad0c8e7a5c652640c337d899be6f2131a' }), h("div", { key: '08a878a7fe9cd7b8ccb2217932d5d3a3b53bb0c9' }, h("p", { key: 'a5b3ddc655c511187327028229a893f7ea06c7ca' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '5c021ef8a8bce686a615a7478a4312f842eb4248' }), h("div", { key: '6b3172972459d33e70e6bf4b8c2c9d93a843b7f4', class: "row-gy-3" }, h("div", { key: '1e99c4eab265b0b0f370a02ddf76b15d27db961c', class: "col-12" }, h("form-control-checkbox", { key: '4c974e3fd58f34000fa70d38d3da312f9bd1fe0d', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
368
+ return (h("form", { key: 'c1ca0ecd364a999e7525e9ac3da82e874a8784e8' }, h("fieldset", { key: 'a77178a38044c458d8dbd31a7e1aeb3f1a34c968' }, h("legend", { key: '7e933517fca8d54095466715bf1f0485625be74f', part: heading2 }, "Terms and Conditions"), h("hr", { key: '1c1da0b7378c51ad2be5efc0e51dedd3ed178c8f' }), h("div", { key: 'bc37aa5162dddc8ade4316b5f24deb1d4a4b6f86' }, h("p", { key: 'aef3d0c9186845e3f44b8e1906c405647f489b53' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: '2a6a480916cc0c4bf35d96c96c3f0250e87149cb' }), h("div", { key: '2e3bed3a57bcb026152fcdc82debab0e667f8148', class: "row-gy-3" }, h("div", { key: '3243c1819e4e61921421467271b2a4d2a89e73d4', class: "col-12" }, h("form-control-checkbox", { key: '20b9b72809148ef390a6da7d9f5bc216436d34a5', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
369
369
  }
370
370
  };
371
371
 
@@ -1,30 +1,35 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-D6FDxSyt.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-D6FDxSyt.js';
2
2
  import { E as ErrorState } from './utils-BpP_VJGf.js';
3
- import { B as BusinessService } from './business.service-ClD_YDeT.js';
4
- import { m as makeGetBusiness } from './get-business-CIKToQur.js';
3
+ import { B as BusinessService } from './business.service-BWivPbyO.js';
4
+ import { m as makeGetBusiness } from './get-business-GEPTefIj.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-SdntD1xf.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DxnKX9GQ.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-BykGn7tx.js';
7
7
  import './parts-BrLVc_85.js';
8
- import './Api-KYhsw8Nv.js';
8
+ import './Api-cgKcLG0y.js';
9
9
  import './config-state-CkKrqnpZ.js';
10
10
  import './index-Cc3u0uDC.js';
11
- import './utils-BWcTxbSg.js';
11
+ import './utils-DB5fh6Iv.js';
12
12
  import './_commonjsHelpers-BFTU3MAI.js';
13
- import './Checkout-Dfpql997.js';
13
+ import './Checkout-B9LrTq63.js';
14
14
  import './Pagination-CLHwhyvu.js';
15
- import './Document-cNXrKmGy.js';
15
+ import './Document-DvWsQBM6.js';
16
16
  import './Dispute-BH0Xfn-F.js';
17
- import './Refund-2YJqP9qX.js';
18
- import './Business-D6XNzizo.js';
17
+ import './Refund-zZewCvey.js';
18
+ import './Business-BCoP0TAV.js';
19
19
  import './helpers-Mu7LQT-w.js';
20
20
  import './state-options-BX8GieXu.js';
21
21
  import './utils-Dccsn9BY.js';
22
- import './package-DPiTQ9dr.js';
22
+ import './package-BjMTOtI1.js';
23
23
 
24
24
  const BusinessDetails = class {
25
25
  constructor(hostRef) {
26
26
  registerInstance(this, hostRef);
27
27
  this.errorEvent = createEvent(this, "error-event");
28
+ this.errorMessage = null;
29
+ this.handleErrorEvent = event => {
30
+ this.errorMessage = event.detail.message;
31
+ this.errorEvent.emit(event.detail);
32
+ };
28
33
  }
29
34
  componentWillLoad() {
30
35
  checkPkgVersion();
@@ -54,9 +59,9 @@ const BusinessDetails = class {
54
59
  }
55
60
  render() {
56
61
  if (this.errorMessage) {
57
- return h(Host, null, ErrorState(this.errorMessage));
62
+ return ErrorState(this.errorMessage);
58
63
  }
59
- return (h(Host, null, h("business-details-core", { getBusiness: this.getBusiness })));
64
+ return (h("business-details-core", { getBusiness: this.getBusiness, "onError-event": this.handleErrorEvent }));
60
65
  }
61
66
  };
62
67