@justifi/webcomponents 4.20.1 → 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 (313) hide show
  1. package/dist/cjs/{Analytics-3c89cfb4.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-4fa0367d.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 +5 -5
  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-3a9ac89d.js → package-cb1b1015.js} +1 -1
  42. package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
  43. package/dist/cjs/{payment.service-47e2d84e.js → payment.service-6f79aad2.js} +1 -1
  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/collection-manifest.json +1 -0
  53. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  54. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  55. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +42 -2
  56. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  57. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +31 -3
  58. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +24 -1
  59. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  60. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +25 -3
  61. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  62. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  63. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +24 -1
  64. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  65. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +25 -2
  66. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
  67. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +17 -17
  68. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +24 -1
  69. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  70. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +24 -2
  71. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
  72. package/dist/collection/components/business-forms/utils/business-form-types.js +11 -0
  73. package/dist/collection/components/card-form/card-form.js +1 -1
  74. package/dist/collection/components/checkout/checkout-core.js +1 -1
  75. package/dist/collection/components/checkout/checkout.js +2 -2
  76. package/dist/collection/components/checkout/new-payment-method.js +1 -1
  77. package/dist/collection/components/checkout/payment-method-options.js +1 -1
  78. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  79. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  80. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  81. package/dist/collection/components/details/details.js +1 -1
  82. package/dist/collection/components/form/form-control-checkbox.js +1 -1
  83. package/dist/collection/components/form/form-control-date.js +80 -6
  84. package/dist/collection/components/form/form-control-file.js +1 -1
  85. package/dist/collection/components/form/form-control-monetary.js +1 -1
  86. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  87. package/dist/collection/components/form/form-control-number.js +1 -1
  88. package/dist/collection/components/form/form-control-select.js +1 -1
  89. package/dist/collection/components/form/form-control-text.js +1 -1
  90. package/dist/collection/components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +63 -0
  91. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  92. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  93. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  94. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  95. package/dist/collection/components/payment-form/payment-form.js +3 -3
  96. package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
  97. package/dist/collection/components/payments-list/payments-list-core.js +11 -11
  98. package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
  99. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  100. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
  101. package/dist/collection/components/refund-form/refund-form.js +1 -1
  102. package/dist/collection/ui-components/custom-popper/custom-popper.js +8 -4
  103. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  104. package/dist/collection/utils/utils.js +13 -10
  105. package/dist/docs.json +628 -149
  106. package/dist/esm/{Analytics-b0f6936a.js → Analytics-3dde5a98.js} +1 -1
  107. package/dist/esm/{Payment-6bf26fe2.js → Payment-30790721.js} +15 -0
  108. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  109. package/dist/esm/business-details-core.entry.js +1 -1
  110. package/dist/esm/{business-form-types-1bc5fe08.js → business-form-types-8fd61b0e.js} +12 -1
  111. package/dist/esm/{check-pkg-version-10cadb08.js → check-pkg-version-4d144b72.js} +1 -1
  112. package/dist/esm/{custom-popper.entry.js → custom-popper_5.entry.js} +119 -4
  113. package/dist/esm/form-control-checkbox_9.entry.js +51 -28
  114. package/dist/esm/form-control-date_3.entry.js +47 -8
  115. package/dist/esm/form-control-file.entry.js +1 -1
  116. package/dist/esm/{form-control-monetary.entry.js → form-control-help-text_2.entry.js} +17 -3
  117. package/dist/esm/form-control-number.entry.js +1 -1
  118. package/dist/esm/{get-payout-csv-93427146.js → get-payout-csv-d29146ee.js} +1 -1
  119. package/dist/esm/gross-payment-chart-core.entry.js +2 -2
  120. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +23 -11
  121. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  122. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  123. package/dist/esm/justifi-business-details.entry.js +3 -3
  124. package/dist/esm/justifi-business-form.entry.js +6 -6
  125. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  126. package/dist/esm/justifi-card-form.entry.js +3 -3
  127. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  128. package/dist/esm/justifi-checkout.entry.js +6 -6
  129. package/dist/esm/justifi-details.entry.js +2 -2
  130. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  131. package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
  132. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  133. package/dist/esm/justifi-payment-details.entry.js +5 -5
  134. package/dist/esm/justifi-payment-form.entry.js +9 -9
  135. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  136. package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
  137. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  138. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  139. package/dist/esm/justifi-payments-list.entry.js +5 -5
  140. package/dist/esm/justifi-payout-details.entry.js +5 -5
  141. package/dist/esm/justifi-payouts-list.entry.js +5 -5
  142. package/dist/esm/justifi-refund-form.entry.js +3 -3
  143. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  144. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  145. package/dist/esm/loader.js +1 -1
  146. package/dist/esm/{package-2ef16e2c.js → package-4ab64620.js} +1 -1
  147. package/dist/esm/payment-details-core.entry.js +9 -9
  148. package/dist/esm/{payment.service-21a3e2d3.js → payment.service-f9c3e9d7.js} +1 -1
  149. package/dist/esm/payments-list-core.entry.js +14 -14
  150. package/dist/esm/payments-list-filters_2.entry.js +2 -2
  151. package/dist/esm/payout-details-core.entry.js +3 -3
  152. package/dist/esm/payouts-list-core.entry.js +5 -5
  153. package/dist/esm/styled-host-e0ddb759.js +12 -0
  154. package/dist/esm/{utils-e66d8bca.js → utils-620f2d78.js} +13 -10
  155. package/dist/esm/webcomponents.js +1 -1
  156. package/dist/module/Payment.js +15 -0
  157. package/dist/module/additional-questions.js +22 -10
  158. package/dist/module/billing-form.js +13 -7
  159. package/dist/module/business-additional-questions-form-step-core.js +42 -11
  160. package/dist/module/business-additional-questions-form-step.js +23 -11
  161. package/dist/module/business-bank-account-form-step.js +23 -10
  162. package/dist/module/business-core-info-form-step-core.js +19 -10
  163. package/dist/module/business-core-info-form-step.js +16 -10
  164. package/dist/module/business-core-info.js +15 -9
  165. package/dist/module/business-document-upload-form-step.js +14 -5
  166. package/dist/module/business-document-upload-input-group.js +27 -21
  167. package/dist/module/business-form-types.js +12 -1
  168. package/dist/module/business-owners-form-step-core.js +20 -12
  169. package/dist/module/business-owners-form-step.js +16 -10
  170. package/dist/module/business-representative-form-inputs.js +16 -10
  171. package/dist/module/business-representative-form-step-core.js +19 -10
  172. package/dist/module/business-representative-form-step.js +16 -10
  173. package/dist/module/business-representative.js +15 -9
  174. package/dist/module/business-terms-conditions-form-step.js +4 -2
  175. package/dist/module/business-terms-conditions-text.js +1 -1
  176. package/dist/module/checkout-core.js +14 -8
  177. package/dist/module/custom-popper2.js +2 -2
  178. package/dist/module/details.js +1 -1
  179. package/dist/module/form-control-checkbox2.js +1 -1
  180. package/dist/module/form-control-date2.js +57 -10
  181. package/dist/module/form-control-file2.js +10 -4
  182. package/dist/module/form-control-monetary2.js +1 -1
  183. package/dist/module/form-control-number-masked2.js +10 -4
  184. package/dist/module/form-control-number.js +1 -1
  185. package/dist/module/form-control-select2.js +10 -4
  186. package/dist/module/form-control-text2.js +10 -4
  187. package/dist/module/form-control-tooltip.d.ts +11 -0
  188. package/dist/module/form-control-tooltip.js +6 -0
  189. package/dist/module/form-control-tooltip2.js +49 -0
  190. package/dist/module/gross-payment-chart-core2.js +1 -1
  191. package/dist/module/identity-address-form.js +14 -8
  192. package/dist/module/justifi-business-form.js +29 -17
  193. package/dist/module/justifi-card-form.js +1 -1
  194. package/dist/module/justifi-checkout.js +15 -9
  195. package/dist/module/justifi-payment-form.js +16 -10
  196. package/dist/module/justifi-payment-provisioning.js +30 -18
  197. package/dist/module/justifi-payments-list.js +7 -7
  198. package/dist/module/justifi-payouts-list.js +9 -3
  199. package/dist/module/justifi-refund-form.js +21 -9
  200. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  201. package/dist/module/legal-address-form-step-core.js +17 -8
  202. package/dist/module/legal-address-form-step.js +14 -8
  203. package/dist/module/legal-address-form.js +13 -7
  204. package/dist/module/new-payment-method.js +14 -8
  205. package/dist/module/owner-form-core2.js +16 -10
  206. package/dist/module/owner-form-inputs2.js +16 -10
  207. package/dist/module/owner-form.js +15 -9
  208. package/dist/module/package.js +1 -1
  209. package/dist/module/payment-details-core2.js +7 -7
  210. package/dist/module/payment-method-options.js +14 -8
  211. package/dist/module/payment-method-selector.js +1 -1
  212. package/dist/module/payment-provisioning-core.js +31 -19
  213. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  214. package/dist/module/payment-provisioning-form-steps.js +30 -18
  215. package/dist/module/payments-list-core2.js +18 -18
  216. package/dist/module/payments-list-filters2.js +8 -8
  217. package/dist/module/payout-details-core2.js +1 -1
  218. package/dist/module/payouts-list-core2.js +11 -5
  219. package/dist/module/save-new-payment-method.js +1 -1
  220. package/dist/module/saved-payment-method.js +1 -1
  221. package/dist/module/season-interruption-insurance-core.js +2 -2
  222. package/dist/module/sezzle-payment-method.js +1 -1
  223. package/dist/module/styled-host.js +1 -1
  224. package/dist/module/table-filters-menu2.js +1 -1
  225. package/dist/module/utils2.js +13 -10
  226. package/dist/types/api/Payment.d.ts +7 -0
  227. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +4 -1
  228. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -1
  229. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +2 -1
  230. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -1
  231. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -1
  232. package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +2 -1
  233. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -1
  234. package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +2 -1
  235. package/dist/types/components/business-forms/utils/business-form-types.d.ts +15 -0
  236. package/dist/types/components/form/form-control-date.d.ts +5 -0
  237. package/dist/types/components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +8 -0
  238. package/dist/types/components.d.ts +39 -4
  239. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +1 -1
  240. package/dist/types/utils/utils.d.ts +2 -2
  241. package/dist/webcomponents/{p-232016ba.entry.js → p-08d88fd2.entry.js} +1 -1
  242. package/dist/webcomponents/p-0c2d91a2.entry.js +1 -0
  243. package/dist/webcomponents/{p-034fc302.entry.js → p-11f01df5.entry.js} +1 -1
  244. package/dist/webcomponents/p-122c2a11.entry.js +1 -0
  245. package/dist/webcomponents/{p-1c04aacd.entry.js → p-1d29488a.entry.js} +1 -1
  246. package/dist/webcomponents/{p-1eee25f3.entry.js → p-1e178dd1.entry.js} +2 -2
  247. package/dist/webcomponents/p-1eb60948.entry.js +1 -0
  248. package/dist/webcomponents/{p-dc048c3c.entry.js → p-23f95a19.entry.js} +1 -1
  249. package/dist/webcomponents/{p-ce5fe369.entry.js → p-2874d4b2.entry.js} +1 -1
  250. package/dist/webcomponents/{p-430f81c6.entry.js → p-43dfda70.entry.js} +1 -1
  251. package/dist/webcomponents/{p-75139399.entry.js → p-55fe2cf2.entry.js} +1 -1
  252. package/dist/webcomponents/{p-d99a5f30.entry.js → p-5df26e65.entry.js} +1 -1
  253. package/dist/webcomponents/p-5e5e8a85.js +1 -0
  254. package/dist/webcomponents/{p-9add7d3e.entry.js → p-605614f2.entry.js} +1 -1
  255. package/dist/webcomponents/{p-d76002d5.entry.js → p-61514f78.entry.js} +1 -1
  256. package/dist/webcomponents/p-6962044f.entry.js +1 -0
  257. package/dist/webcomponents/{p-570a0f02.entry.js → p-6a9e908b.entry.js} +1 -1
  258. package/dist/webcomponents/p-6ba660f2.entry.js +1 -0
  259. package/dist/webcomponents/{p-35846553.js → p-6d4b585d.js} +1 -1
  260. package/dist/webcomponents/{p-538fd427.entry.js → p-6e258b5f.entry.js} +1 -1
  261. package/dist/webcomponents/p-74da98da.js +1 -0
  262. package/dist/webcomponents/{p-ad47f37c.entry.js → p-770f60f9.entry.js} +1 -1
  263. package/dist/webcomponents/{p-b91bcbfc.js → p-799ee8c3.js} +1 -1
  264. package/dist/webcomponents/p-7cb3854c.entry.js +1 -0
  265. package/dist/webcomponents/p-7fec2bcb.js +1 -0
  266. package/dist/webcomponents/{p-b14da2fd.entry.js → p-80730b71.entry.js} +1 -1
  267. package/dist/webcomponents/{p-37888614.entry.js → p-8f04747b.entry.js} +1 -1
  268. package/dist/webcomponents/{p-c64ce69d.entry.js → p-8f447993.entry.js} +1 -1
  269. package/dist/webcomponents/p-9a37eee5.entry.js +1 -0
  270. package/dist/webcomponents/{p-d9579cd6.entry.js → p-a1d037cb.entry.js} +1 -1
  271. package/dist/webcomponents/{p-056e75be.entry.js → p-a3265844.entry.js} +1 -1
  272. package/dist/webcomponents/{p-c740b6ca.entry.js → p-a680c982.entry.js} +1 -1
  273. package/dist/webcomponents/{p-e2c88817.entry.js → p-a765230f.entry.js} +1 -1
  274. package/dist/webcomponents/p-a76ece26.js +1 -0
  275. package/dist/webcomponents/p-b7b18954.entry.js +1 -0
  276. package/dist/webcomponents/{p-707bdf68.js → p-bc9ae56f.js} +1 -1
  277. package/dist/webcomponents/p-c241cc62.entry.js +1 -0
  278. package/dist/webcomponents/{p-5e2c9ec8.js → p-ca8e126f.js} +1 -1
  279. package/dist/webcomponents/{p-e31f0f3e.entry.js → p-cd74be05.entry.js} +1 -1
  280. package/dist/webcomponents/{p-57d7534f.entry.js → p-d0ffb01c.entry.js} +1 -1
  281. package/dist/webcomponents/p-da316a74.entry.js +1 -0
  282. package/dist/webcomponents/{p-fb7f7a8c.entry.js → p-db3d1d7d.entry.js} +1 -1
  283. package/dist/webcomponents/p-dee2a3f8.entry.js +1 -0
  284. package/dist/webcomponents/{p-7ff329b1.js → p-e56ade55.js} +1 -1
  285. package/dist/webcomponents/p-e927fd5c.entry.js +1 -0
  286. package/dist/webcomponents/p-f3e00572.entry.js +1 -0
  287. package/dist/webcomponents/p-f71a5975.entry.js +1 -0
  288. package/dist/webcomponents/{p-3c7fac29.entry.js → p-ffe27126.entry.js} +1 -1
  289. package/dist/webcomponents/webcomponents.esm.js +1 -1
  290. package/package.json +1 -1
  291. package/dist/cjs/form-control-error-text_4.cjs.entry.js +0 -118
  292. package/dist/cjs/styled-host-9e0b67b3.js +0 -14
  293. package/dist/esm/form-control-error-text_4.entry.js +0 -111
  294. package/dist/esm/styled-host-3171ae1f.js +0 -12
  295. package/dist/webcomponents/p-44055818.js +0 -1
  296. package/dist/webcomponents/p-59cf5391.entry.js +0 -1
  297. package/dist/webcomponents/p-60d3571e.entry.js +0 -1
  298. package/dist/webcomponents/p-6ac806ff.entry.js +0 -1
  299. package/dist/webcomponents/p-7771f64b.entry.js +0 -1
  300. package/dist/webcomponents/p-7ddfce86.entry.js +0 -1
  301. package/dist/webcomponents/p-8a7112a0.entry.js +0 -1
  302. package/dist/webcomponents/p-9b154d98.entry.js +0 -1
  303. package/dist/webcomponents/p-ab92abb1.entry.js +0 -1
  304. package/dist/webcomponents/p-aedb421f.entry.js +0 -1
  305. package/dist/webcomponents/p-bbed6107.entry.js +0 -1
  306. package/dist/webcomponents/p-bdc91c61.entry.js +0 -1
  307. package/dist/webcomponents/p-c1772671.entry.js +0 -1
  308. package/dist/webcomponents/p-d8355f91.entry.js +0 -1
  309. package/dist/webcomponents/p-d89bad72.js +0 -1
  310. package/dist/webcomponents/p-df21aaad.js +0 -1
  311. package/dist/webcomponents/p-f0866375.entry.js +0 -1
  312. package/dist/webcomponents/p-f2924369.js +0 -1
  313. package/dist/webcomponents/p-ffddac99.entry.js +0 -1
@@ -10,9 +10,16 @@ const DateInput = class {
10
10
  this.formControlBlur = createEvent(this, "formControlBlur", 7);
11
11
  this.handleFormControlInput = (event) => {
12
12
  const target = event.target;
13
- const name = target.getAttribute('name');
14
- this.inputHandler(name, target.value);
15
- this.formControlInput.emit({ name, value: target.value });
13
+ const localValue = target.value;
14
+ if (this.filterTimeZone) {
15
+ const utcDate = this.convertToUTC(localValue);
16
+ this.inputHandler(this.name, utcDate);
17
+ this.formControlInput.emit({ name: this.name, value: utcDate });
18
+ }
19
+ else {
20
+ this.inputHandler(this.name, localValue);
21
+ this.formControlInput.emit({ name: this.name, value: localValue });
22
+ }
16
23
  };
17
24
  this.name = undefined;
18
25
  this.label = undefined;
@@ -21,18 +28,50 @@ const DateInput = class {
21
28
  this.helpText = undefined;
22
29
  this.errorText = undefined;
23
30
  this.disabled = undefined;
31
+ this.filterTimeZone = false;
32
+ this.showTime = undefined;
24
33
  }
25
34
  handleDefaultValueChange(newValue) {
26
- this.updateInput(newValue);
35
+ if (this.filterTimeZone) {
36
+ this.updateInput(this.convertToLocal(newValue));
37
+ }
38
+ else {
39
+ this.updateInput(newValue);
40
+ }
41
+ }
42
+ get maxDate() {
43
+ if (!this.showTime) {
44
+ return new Date().toISOString().split('T')[0];
45
+ }
46
+ else {
47
+ return new Date().toISOString().slice(0, 16);
48
+ }
27
49
  }
28
50
  componentDidLoad() {
29
- this.updateInput(this.defaultValue);
51
+ if (this.filterTimeZone) {
52
+ this.updateInput(this.convertToLocal(this.defaultValue));
53
+ }
54
+ else {
55
+ this.updateInput(this.defaultValue);
56
+ }
30
57
  }
31
58
  updateInput(value) {
32
59
  this.dateInput.value = value;
33
60
  }
61
+ convertToUTC(value) {
62
+ const dateObj = new Date(value);
63
+ return new Date(dateObj.toUTCString()).toISOString();
64
+ }
65
+ convertToLocal(value) {
66
+ if (!value)
67
+ return value;
68
+ const date = new Date(value);
69
+ // Adjust the date to the local timezone
70
+ const localDate = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
71
+ return this.showTime ? localDate.toISOString().slice(0, 16) : localDate.toISOString().split('T')[0];
72
+ }
34
73
  render() {
35
- return (h(Host, { key: 'dfbfc1ea5d7139a1c1d30c7bd84b33a9c22604cf', exportparts: "label,input,input-invalid" }, h("label", { key: '99a01781ecd1421fa439ad08f77d3f750a55eaee', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'd8db68d8a62e0f982c3aa7d4bd3a5cf7c2681db3', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '1ee2ccdc1e409c5427e39efe2929b830960edce9', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '1db50cca364b4d059dac37243cf83bb4b11459cd', errorText: this.errorText, name: this.name })));
74
+ return (h(Host, { key: '2ee850cab24ab7d32cbd638299f59827b5b7e117', exportparts: "label,input,input-invalid" }, h("div", { key: 'cc898cb56cb32f86e9a9f2a8fb626c38394cf36f', class: "form-group d-flex flex-column" }, h("div", { key: 'de4f8f4da4d650eeced126625ddcad480714dc50', class: "d-flex gap-2" }, h("label", { key: '99a74827cb24033d33ce5e9b978c4ec7161590f4', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'c9b2278afb165b5fc37dea2546f41912edb21567', helpText: this.helpText })), h("input", { key: 'af22c6198cb66961a3b4acf8486fdf034d65108c', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h("form-control-error-text", { key: 'cdb69d99d1736c8ba976170bb2baf28246939cfd', errorText: this.errorText, name: this.name }))));
36
75
  }
37
76
  static get watchers() { return {
38
77
  "defaultValue": ["handleDefaultValueChange"]
@@ -94,7 +133,7 @@ const NumberInputMasked = class {
94
133
  }
95
134
  }
96
135
  render() {
97
- return (h(Host, { key: 'e0a59308376055c019233f3d4649c9a37af963d2', exportparts: "label,input,input-invalid" }, h("div", { key: '52d9440421342fed6a4f97b57586a43d517ded7d', class: "form-group d-flex flex-column" }, h("label", { key: '8302a9fa1111d3b72600304cd0b1fb2c6239d895', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '86653c7b7f4efb9609bae2ecf69bd5e396bd342b', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '71d4d44ff91d06229ccc22e70bc92e0a2050da90', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'b7d42462ae9165acbde68cf59da07eb956a91fd6', errorText: this.errorText, name: this.name }))));
136
+ return (h(Host, { key: 'ec5637a437fc6925f12ed0ff9653de16cebec6c8', exportparts: "label,input,input-invalid" }, h("div", { key: 'fa43aed393941aaa2c9aadf550e2528aca661c90', class: "form-group d-flex flex-column" }, h("div", { key: 'f97bc1662798dd0ac7a01050771f7e2d8b94d3c8', class: "d-flex align-items-start gap-2" }, h("label", { key: '75b17b73150c1c1ef3ca0489aa1dac45b86583b8', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'd1c35542ebf2c49de0abb0488dff23aad8238eaf', helpText: this.helpText })), h("input", { key: '3573366640ca5525b12cf086c92c000a25bfaf8b', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-error-text", { key: 'db11bee11d3f1f33ac03e8ed0f8687f0b9fff9cf', errorText: this.errorText, name: this.name }))));
98
137
  }
99
138
  static get watchers() { return {
100
139
  "defaultValue": ["handleDefaultValueChange"]
@@ -118,7 +157,7 @@ const IdentityAddressForm = class {
118
157
  }
119
158
  render() {
120
159
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
121
- return (h(Host, { key: 'd090676d3bb1d9de9ae947ff25d94b5985ace914', exportparts: "label,input,input-invalid" }, h("div", { key: '64ddec6db508d27b709ad551f60fe58494631fe3', class: "row gy-3" }, h("div", { key: '7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea', class: "col-12 col-md-8" }, h("form-control-text", { key: 'ea6055fb3457e28666b11b72173ad70b83a87659', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler })), h("div", { key: '5f6f456c573fb9318e58976decb67274b209fa23', class: "col-12 col-md-4" }, h("form-control-text", { key: '86fffd4641953d0445a7c24d332cda513121b65e', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: 'e06339cefebe37ae0629631fbc5101c9dbc040a6', class: "col-12" }, h("form-control-text", { key: 'd2af696b33092247b6741c8034aaf12ab51aa878', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'b655a66fb68f059fa91ae5f9f60fdebe0ae04fad', class: "col-12 col-md-6" }, h("form-control-select", { key: '50a65861a5a39daac199571c5a0273340556e476', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: '30255517e0fa1ede35d7b2525625ebc389c44525', class: "col-12 col-md-6" }, h("form-control-text", { key: 'b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '804e9aa1ca7b4ae167ae64969107ad6352559ed7', class: "col-12" }, h("form-control-select", { key: '1aa3734e10502bc8f1732f386b60135b8a7d94a6', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
160
+ return (h(Host, { key: 'd090676d3bb1d9de9ae947ff25d94b5985ace914', exportparts: "label,input,input-invalid" }, h("div", { key: '64ddec6db508d27b709ad551f60fe58494631fe3', class: "row gy-3" }, h("div", { key: '7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea', class: "col-12 col-md-8" }, h("form-control-text", { key: '0fdbbf48001fe60c5bf5e7a07d7b43186ca2f0eb', name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: this.inputHandler, helpText: "\u200B\u200BEnter your address exactly as stated on your driver's license. No PO Boxes." })), h("div", { key: '2b17a0fcd80dbea0703ac0291d5e509b0c14d9c8', class: "col-12 col-md-4" }, h("form-control-text", { key: 'ae29fceaf3af789789c86f545dab6a9d0e4c8429', name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: this.inputHandler })), h("div", { key: '55ccf8053ec8e3c1f4534c47d8d23eeac3383d13', class: "col-12" }, h("form-control-text", { key: '3a3ca85cbf0514da6828e3f5a0bf0fd4b9e983c8', name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: this.inputHandler })), h("div", { key: 'daf6e6031b8dfab6a3e0170f96cc2f0649ded7ce', class: "col-12 col-md-6" }, h("form-control-select", { key: '08791966d72817826f23c3d55ffe3cbaad0ac3bd', name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, errorText: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: this.inputHandler })), h("div", { key: 'c97882ae4c598f762ec32e9ff54b819077ba7193', class: "col-12 col-md-6" }, h("form-control-text", { key: '562ffc8ad8de252d009a284b7b61f978084034dd', name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, errorText: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler, inputHandler: this.inputHandler })), h("div", { key: '6fda38b6ab0618bd9c47ae51417f3b7e10148f53', class: "col-12" }, h("form-control-select", { key: 'df9ec4209e2c82ba05af0160cb74849c20110bae', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: (_l = this.defaultValues) === null || _l === void 0 ? void 0 : _l.country, errorText: (_m = this.errors) === null || _m === void 0 ? void 0 : _m.country,
122
161
  // just for now so we skip handling country specificities
123
162
  disabled: true })))));
124
163
  }
@@ -36,7 +36,7 @@ const FileInput = class {
36
36
  this.fileInput = this.el.querySelector('input');
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: 'ed29128c1c4c811aa030697347adb88e0143b031', exportparts: "label,input,input-invalid" }, h("div", { key: '6c924bdbbccae8e98a382a92e54c5b9c288de8d4', class: "form-group d-flex flex-column" }, h("label", { key: 'dbacccea94e39815737683495e3df83b514b79af', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'a7eef53c9fff54eace8c6960b8c62a833d30bfa3', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-help-text", { key: 'a5abacb92bdb3fb59d0a2265114e858540f2c4b7', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '6eeeef347237d363d3bc6616d58f19a7f0be7e3c', errorText: this.errorText, name: this.name }))));
39
+ return (h(Host, { key: 'e55c4e61544191f12bccce66ed922357090f6a12', exportparts: "label,input,input-invalid" }, h("div", { key: 'ec8dd08ef6d99ae26a82ff891b25ae2d3892aea1', class: "form-group d-flex flex-column" }, h("div", { key: '8430c4a605b4869e6bb4f206d5cbd1588c4e983d', class: "d-flex align-items-start gap-2" }, h("label", { key: 'e9519f7c08040964b5594961b6c26ce14bbc2681', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '67ec6c6453976e2e6442e82ab94f94a5d0d91bb2', helpText: this.helpText })), h("input", { key: 'a25d7f66085730bcb2a0f749f744f0f6bd9fa76e', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onBlur: () => this.formControlBlur.emit() }), h("form-control-error-text", { key: '96b42ba795d86098932c1aeaf4d868cfce17895d', errorText: this.errorText, name: this.name }))));
40
40
  }
41
41
  get el() { return getElement(this); }
42
42
  };
@@ -1,7 +1,21 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
1
+ import { r as registerInstance, h, c as createEvent, H as Host } from './index-57431c24.js';
2
2
  import { I as IMask } from './index-d9a73ce3.js';
3
3
  import { C as CURRENCY_MASK } from './form-input-masks-0e18300f.js';
4
4
 
5
+ const FormControlHelpText = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.helpText = undefined;
9
+ this.name = undefined;
10
+ }
11
+ render() {
12
+ if (!this.helpText) {
13
+ return null;
14
+ }
15
+ return (h("small", { class: 'form-text text-muted', id: `form-help-text-${this.name}` }, this.helpText));
16
+ }
17
+ };
18
+
5
19
  const MonetaryInput = class {
6
20
  constructor(hostRef) {
7
21
  registerInstance(this, hostRef);
@@ -51,11 +65,11 @@ const MonetaryInput = class {
51
65
  (_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
52
66
  }
53
67
  render() {
54
- return (h(Host, { key: '8797b3aa5c6a30f472d51e2b9437b6158b0566fc', exportparts: "label,input,input-group-input,input-group-text,input-invalid" }, h("div", { key: '0d3e068cf104aec3f6250f5cd6c00a9342928fe8', class: "form-group d-flex flex-column" }, h("label", { key: '0e86db7c0d981bdae74c51dd75bf5579d07b4793', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '8fc773de3995bb37e6fa00b34d8d9e2deaef4bbd', class: "input-group" }, h("span", { key: '83860eac764be9eeea31302d60525fb56af9dc1d', class: "input-group-text", part: "input-group-text" }, "$"), h("input", { key: 'b8c655c0b8eeb6ec328eeaed651773c293aa3100', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input input-group-input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: 'b3f142b9c67a792a96b597bdaf91fd3abe1b7ce3', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'daefe97a15bde309c397a506de6cda9a0376323b', errorText: this.errorText, name: this.name }))));
68
+ return (h(Host, { key: '6c95f96829b6cacc9d3fa975e1b9e81fa2011360', exportparts: "label,input,input-group-input,input-group-text,input-invalid" }, h("div", { key: 'e8343e6439d4a52d21991f9071caebb94789afdf', class: "form-group d-flex flex-column" }, h("label", { key: '5bff3a49dc18c407a8df5c96fd65720531bad45c', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '012e6cddda14b939c898df2c8422cd21f10e18fa', class: "input-group" }, h("span", { key: 'a7fa4827a93a925472271630a4667b64d1fa99c2', class: "input-group-text", part: "input-group-text" }, "$"), h("input", { key: 'd0e8c3f4e7466ab2115cbbe03bc9f81759f32c10', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input input-group-input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: '62f6cbc7dad3127d5461b8d003e9cf0a991373ff', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '465b5a31b6434b2afc40ff4cc6d29713e5840fe8', errorText: this.errorText, name: this.name }))));
55
69
  }
56
70
  static get watchers() { return {
57
71
  "defaultValue": ["handleDefaultValueChange"]
58
72
  }; }
59
73
  };
60
74
 
61
- export { MonetaryInput as form_control_monetary };
75
+ export { FormControlHelpText as form_control_help_text, MonetaryInput as form_control_monetary };
@@ -32,7 +32,7 @@ const NumberInput = class {
32
32
  this.updateInput(this.defaultValue);
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: 'dd43d75b327c05e75b453b954346c6ffcd85a2f5', exportparts: 'label,input,input-invalid' }, h("div", { key: '5215f62251bd89be493ddffe46bf0c466b42e314', class: 'form-group d-flex flex-column' }, h("label", { key: 'f0409970f8d43bcdef92b81363cc24aa1bb691a0', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '9c6a5899e64ba1a8af6af80c63b6a0895351da63', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h("form-control-help-text", { key: 'cd7b4a724427383cafc04137f6feca473695b020', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '04748d3c5b1067b0312a2b7c36369e2a21a7215f', errorText: this.errorText, name: this.name }))));
35
+ return (h(Host, { key: '5f7a94160460fd8a92d740899a7418c98b3178d0', exportparts: 'label,input,input-invalid' }, h("div", { key: 'c8386c9c72a721d53d33d3894615f7d8f127b1bf', class: 'form-group d-flex flex-column' }, h("label", { key: '754f8714d1d0e42c977dace41e79d0e7b21c7e39', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '4289872c0983d50ff89851aac2309b911e6348df', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h("form-control-help-text", { key: '0de80b8d728865b8978a7daaf54315dbf422dced', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'b0cd9a78aa4c44dc7103c5d6ceced7258b197f16', errorText: this.errorText, name: this.name }))));
36
36
  }
37
37
  get el() { return getElement(this); }
38
38
  static get watchers() { return {
@@ -1,6 +1,6 @@
1
1
  import { A as Api } from './Api-c8abc2e0.js';
2
2
  import './Pagination-afc8f96d.js';
3
- import './Payment-6bf26fe2.js';
3
+ import './Payment-30790721.js';
4
4
  import './Payout-dfe15b00.js';
5
5
  import { c as config } from './config-27764a9d.js';
6
6
  import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
2
- import { f as formatCurrency, a as formatDisplayDate } from './utils-e66d8bca.js';
2
+ import { f as formatCurrency, a as formatDisplayDate } from './utils-620f2d78.js';
3
3
  import { E as ErrorState, L as LoadingState } from './utils-01413a95.js';
4
4
 
5
5
  /*!
@@ -11041,7 +11041,7 @@ const GrossPaymentChartCore = class {
11041
11041
  }
11042
11042
  }
11043
11043
  render() {
11044
- return (h(Host, { key: '463d7e132e647e1da6dc5ad5ea54abf95a60e715' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
11044
+ return (h(Host, { key: 'aee0faee30a5c998410cdb28d52107ce2c0cb672' }, this.loading && LoadingState(), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
11045
11045
  }
11046
11046
  static get watchers() { return {
11047
11047
  "getGrossPayment": ["propChanged"],
@@ -3,12 +3,12 @@ import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './Compone
3
3
  import { m as makeGetBusiness, b as makePatchBusiness } from './payment-provisioning-actions-0635eff7.js';
4
4
  import { B as BusinessService } from './business.service-1f589b6e.js';
5
5
  import { c as create$3, F as FormController, e as create$7 } from './index.esm-fc4f5c0c.js';
6
- import { b as BusinessFormStep, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
6
+ import { b as BusinessFormStep, c as BusinessFormStepV2, a as BusinessFormClickActions } from './business-form-types-8fd61b0e.js';
7
7
  import { z as bankNameValidation, A as nicknameValidation, u as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as governmentIdValidation, G as ss4Validation, H as otherDocumentValidation, I as balanceSheetValidation, J as bankStatementValidation, K as profitAndLossStatementValidation, L as EntityDocument, M as EntityDocumentStorage } from './schema-validations-e725d701.js';
8
8
  import { c as bankAccountTypeOptions } from './business-form-options-d790973e.js';
9
9
  import { A as Api } from './Api-c8abc2e0.js';
10
10
  import './Pagination-afc8f96d.js';
11
- import './Payment-6bf26fe2.js';
11
+ import './Payment-30790721.js';
12
12
  import './Payout-dfe15b00.js';
13
13
  import { c as config } from './config-27764a9d.js';
14
14
  import { n as numberOnlyHandler } from './utils-3bb6347a.js';
@@ -60,7 +60,7 @@ const AdditionalQuestionsFormStep = class {
60
60
  }
61
61
  }
62
62
  render() {
63
- return (h("justifi-additional-questions-form-step-core", { key: 'ede8f1336c69d47c651a5b4b95ee2746aae3aa52', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
63
+ return (h("justifi-additional-questions-form-step-core", { key: '6ca8443cbe837d993be4381a9d650caaaf51f2df', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
64
64
  }
65
65
  static get watchers() { return {
66
66
  "authToken": ["propChanged"],
@@ -113,6 +113,7 @@ const BusinessBankAccountFormStep = class {
113
113
  constructor(hostRef) {
114
114
  registerInstance(this, hostRef);
115
115
  this.submitted = createEvent(this, "submitted", 7);
116
+ this.stepCompleted = createEvent(this, "form-step-completed", 7);
116
117
  this.formLoading = createEvent(this, "formLoading", 7);
117
118
  this.errorEvent = createEvent(this, "error-event", 7);
118
119
  this.fetchData = async () => {
@@ -192,10 +193,16 @@ const BusinessBankAccountFormStep = class {
192
193
  onSuccess();
193
194
  }
194
195
  this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.bankAccount } });
196
+ this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.bankAccount });
195
197
  }
196
198
  async validateAndSubmit({ onSuccess }) {
197
- this.formDisabled ? onSuccess() :
199
+ if (this.formDisabled) {
200
+ this.stepCompleted.emit({ data: null, formStep: BusinessFormStepV2.bankAccount, metadata: 'no data submitted' });
201
+ onSuccess();
202
+ }
203
+ else {
198
204
  this.formController.validateAndSubmit(() => this.sendData(onSuccess));
205
+ }
199
206
  }
200
207
  ;
201
208
  componentWillLoad() {
@@ -213,7 +220,7 @@ const BusinessBankAccountFormStep = class {
213
220
  }
214
221
  render() {
215
222
  const bankAccountDefaultValue = this.formController.getInitialValues();
216
- return (h("form", { key: 'c2bdcd5ab6301d1a39e4d774df101281c41e2002' }, h("fieldset", { key: '7f6b607be5b7bc5fcd0dc1687adaa1ad00d7d2e9' }, h("legend", { key: '91b68746c65bb68f4fbd2eef151258e6915f8e35' }, "Bank Account Info"), h("hr", { key: '5eceedbf59faef10757c9e2b04d4dc4cd6b88a9b' }), h("div", { key: 'd3185db7fceb9851ccb44c1c89f8cbe5a37c24e0', class: "row gy-3" }, h("div", { key: '625caf0e9b93c244d94c69174ffff57126d39fa1', class: "col-12" }, h("form-control-text", { key: 'ddf3206b09047dfea56df850babe6c8f92ed33ee', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'd7d498353eec8e1947ce748aa35cbee63e793817', class: "col-12" }, h("form-control-text", { key: 'a80050dcd088db0209c2e5da65b310d7fc7877f5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ea5578470e0e4d0fd5b973807475a02c7764c9c8', class: "col-12" }, h("form-control-text", { key: 'dd8c77b43ddfca61cfd5ed39ce6e142654f18d9f', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'cb3256226c5fdfa5ff2a02c456a6c384e06d16a6', class: "col-12" }, h("form-control-select", { key: 'a865f48350a0ae6b6a2a540dc2d54de72a8af074', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'aa9062a25dade06db1f175d4233f2e5bb4e7ecd7', class: "col-12" }, h("form-control-text", { key: '1a87920e4df50178625446c770e4182d918664c7', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: 'c72858a29aa1289b367c0eb89d6cc0eded23346d', class: "col-12" }, h("form-control-text", { key: 'b7fb93bcf16c01689245d5aca11142b013fe6adc', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
223
+ return (h("form", { key: 'c19f52934f1fa591d71175d1a0a584c0e9d0bd92' }, h("fieldset", { key: '96c326422e38efe3413b282fcc2415355108992c' }, h("div", { key: '7a39297bc087e310ad28fbdd58e71b509c002132', class: "d-flex align-items-center gap-2" }, h("legend", { key: '81b0cc0fc84846e04f3efb1efc0c33c181a3399d', class: "mb-0" }, "Bank Account Info"), h("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." })), h("hr", { key: '8386d2b17e191ca529a663ced0c430e71c3da4d6', class: "mt-2" }), h("div", { key: 'd5ddcc4c0b54320a0e1f1fd381dd41e8bdb86c2f', class: "row gy-3" }, h("div", { key: '29bd4e26bed9fef74ee79241d5dc6fd9a4d5954e', class: "col-12" }, h("form-control-text", { key: 'ac9781048b7dfb24da9565b058994ffd78053db9', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'db9d13b0a62927b790bdcf5bc77ffa4fbadb227b', class: "col-12" }, h("form-control-text", { key: '41d192f0d9df09e62aa929642ca2ae40946f951e', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2b37a20c6bb6f942ccf5b49e84a2d6d1669d9fd7', class: "col-12" }, h("form-control-text", { key: '0392b8d08a48ff27af80d6fa42959b90a713de4e', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2a30485d70f0825e7e677b3f4b75caf4c601090e', class: "col-12" }, h("form-control-select", { key: '65cb43b080e47208bf83099cfec12cc8351281c6', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ab0c65f348486814ac14ed548ecaa25610e14d58', class: "col-12" }, h("form-control-text", { key: '3c08ce88f652bfe6ae64807beab30ed796cad6c3', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "Please copy the account number as shown on your statement/check. Do not include spaces or dashes." })), h("div", { key: 'f5314db551f6d4482f151b49d9db685b78223f2a', class: "col-12" }, h("form-control-text", { key: '1f204b3140c9fc4fe20519ebc082751c291ba816', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled, helpText: "A valid routing number is nine digits. Please include any leading or trailing zeroes." }))))));
217
224
  }
218
225
  };
219
226
 
@@ -258,7 +265,7 @@ const BusinessCoreInfoFormStep = class {
258
265
  }
259
266
  }
260
267
  render() {
261
- return (h("justifi-business-core-info-form-step-core", { key: '4ee53046d16fd42df4e09b10c338a740c22184ef', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
268
+ return (h("justifi-business-core-info-form-step-core", { key: '8b034d8c728aef3683823a45083764a456d07545', businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
262
269
  }
263
270
  static get watchers() { return {
264
271
  "authToken": ["propChanged"],
@@ -292,6 +299,7 @@ const BusinessDocumentFormStep = class {
292
299
  constructor(hostRef) {
293
300
  registerInstance(this, hostRef);
294
301
  this.submitted = createEvent(this, "submitted", 7);
302
+ this.stepCompleted = createEvent(this, "form-step-completed", 7);
295
303
  this.formLoading = createEvent(this, "formLoading", 7);
296
304
  this.errorEvent = createEvent(this, "error-event", 7);
297
305
  this.inputHandler = (name, value) => {
@@ -381,6 +389,7 @@ const BusinessDocumentFormStep = class {
381
389
  }
382
390
  else {
383
391
  this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.documentUpload } });
392
+ this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.documentUpload });
384
393
  return true;
385
394
  }
386
395
  };
@@ -394,6 +403,7 @@ const BusinessDocumentFormStep = class {
394
403
  try {
395
404
  const docArray = Object.values(this.documentData).flat();
396
405
  if (!docArray.length) {
406
+ this.stepCompleted.emit({ data: null, formStep: BusinessFormStepV2.documentUpload, metadata: 'no data submitted' });
397
407
  return onSuccess();
398
408
  }
399
409
  const documentRecords = docArray.map(docData => this.createDocumentRecord(docData));
@@ -463,7 +473,7 @@ const BusinessDocumentFormStep = class {
463
473
  return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
464
474
  }
465
475
  render() {
466
- return (h("form", { key: '38bb9070ca04f773ec092ebb14ce8ad20f33d8cf' }, h("fieldset", { key: '9c736d11200bb9c5a37c1319f3bfb349b7a5e93f' }, h("legend", { key: '92ed2fb864e85e38532af364518c25ef4bd275a5' }, "Document Uploads"), h("p", { key: 'f5803df74a5d0bc4e544c6cc968333f2a3f77385' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '0c696d1bdb614bdacb3cbadeee66c95149efda68' }), this.documentsOnFile, h("div", { key: '7919205dfda677526d810a9fa1507ed8a55eafb8', class: "d-flex flex-column" }, this.formInputs))));
476
+ return (h("form", { key: 'f240b37d159cbf3db19e4256f97ade622e88d41b' }, h("fieldset", { key: '0555c8a1747336af04b470f750343d231cebb7cc' }, h("div", { key: '7c46295e5997aba7f769324d52def17236babe7b', class: "d-flex align-items-center gap-2" }, h("legend", { key: '2a3fe8a3031a1923df6de8752438d595d935d8f6', class: "mb-0" }, "Document Uploads"), h("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." })), h("hr", { key: 'ac1f9e460920d3654f9c079e8c3fc84ccf7369b4', class: "mt-2" }), this.documentsOnFile, h("div", { key: '444b0f875d460d6bdddc9183bc5c797d3828c127', class: "d-flex flex-column" }, this.formInputs))));
467
477
  }
468
478
  };
469
479
 
@@ -508,7 +518,7 @@ const BusinessOwnersFormStep = class {
508
518
  }
509
519
  }
510
520
  render() {
511
- return (h(Host, { key: '213a68fd3543eb912c6fed376128ba877ba75871' }, h("justifi-business-owners-form-step-core", { key: '5acee797bd35f5b60cadc5ddd50f560532dfe8b1', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
521
+ return (h(Host, { key: '31bd33a08c9eb4a849db8898b3ec7e6fede7b843' }, h("justifi-business-owners-form-step-core", { key: '9e4c88686e1a5ebfd81ab5f1aebd21f58c4e6be5', authToken: this.authToken, businessId: this.businessId, getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: (el) => this.coreComponent = el })));
512
522
  }
513
523
  static get watchers() { return {
514
524
  "authToken": ["propChanged"],
@@ -557,7 +567,7 @@ const BusinessRepresentativeFormStep = class {
557
567
  }
558
568
  }
559
569
  render() {
560
- return (h("justifi-business-representative-form-step-core", { key: '866d8cf33d53eff562dac1d36898b4c5695bf39b', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
570
+ return (h("justifi-business-representative-form-step-core", { key: '934b6204cfe78ffe17b3f975de3eedb64398168d', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
561
571
  }
562
572
  static get watchers() { return {
563
573
  "authToken": ["propChanged"],
@@ -581,6 +591,7 @@ const BusinessTermsConditionsFormStep = class {
581
591
  constructor(hostRef) {
582
592
  registerInstance(this, hostRef);
583
593
  this.submitted = createEvent(this, "submitted", 7);
594
+ this.stepCompleted = createEvent(this, "form-step-completed", 7);
584
595
  this.formLoading = createEvent(this, "formLoading", 7);
585
596
  this.errorEvent = createEvent(this, "error-event", 7);
586
597
  this.fetchData = async () => {
@@ -666,6 +677,7 @@ const BusinessTermsConditionsFormStep = class {
666
677
  onSuccess();
667
678
  }
668
679
  this.submitted.emit({ data: response, metadata: { completedStep: BusinessFormStep.termsAndConditions } });
680
+ this.stepCompleted.emit({ data: response, formStep: BusinessFormStepV2.termsAndConditions });
669
681
  }
670
682
  async validateAndSubmit({ onSuccess }) {
671
683
  if (this.acceptedTermsBefore) {
@@ -683,7 +695,7 @@ const BusinessTermsConditionsFormStep = class {
683
695
  });
684
696
  }
685
697
  render() {
686
- return (h("form", { key: 'a292e2b1b69d152009000d9e7009e5ab07698bc8' }, h("fieldset", { key: '30843e9ed0029f64abcf076512af82974dd99598' }, h("legend", { key: '6453679a074056668bdd93cb91d2d725b73fb0da' }, "Terms and Conditions"), h("hr", { key: '6a44c1128e3dceb770b16533aa61fb5e81f5dda2' }), h("justifi-business-terms-conditions-text", { key: '714c9f81c1d1f91712a276259acf4eb6734b40d4' }), h("br", { key: '5e955908e53af5ade77fca9f2a47e8a9d10e7ad8' }), h("div", { key: '7c6ca9d2634c7cc6988292ffedf86b64c3865557', class: "row-gy-3" }, h("div", { key: 'e8f01c4bdcc07e0063e3b8f5f1acbabc9b3310f7', class: "col-12" }, h("form-control-checkbox", { key: 'e09eeb02dc30a9461e958bf43685d2c58f4a608f', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
698
+ return (h("form", { key: '3f269771c368a23afd1c7b139b0fce416d18f161' }, h("fieldset", { key: 'a94a5bf100cb5a10b156b8cf94dc85f03cc1f6ae' }, h("legend", { key: 'facb4a29cebd5147fe3c35d336df04546b550d74' }, "Terms and Conditions"), h("hr", { key: '3dafaab7d2d35bf9a00f87da643f6e1efaa7b147' }), h("justifi-business-terms-conditions-text", { key: '60a1370c8b0d817d79130e8607f6d663c4648c78' }), h("br", { key: 'e72e81a34b31a00ebe3a0d01e24dc096df7bc2a9' }), h("div", { key: '676ed858195c1b90a9e4fdc22ba9654ff944dc93', class: "row-gy-3" }, h("div", { key: '20039587eb6144a05078799f6a41feb59f43dbd2', class: "col-12" }, h("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 }))))));
687
699
  }
688
700
  };
689
701
 
@@ -728,7 +740,7 @@ const LegalAddressFormStep = class {
728
740
  }
729
741
  }
730
742
  render() {
731
- return (h("justifi-legal-address-form-step-core", { key: '7455b4950e2ca1121004943ad81537c583438738', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
743
+ return (h("justifi-legal-address-form-step-core", { key: '06ac5acac2cc9c167a86448b0e12d885d21361fb', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
732
744
  }
733
745
  static get watchers() { return {
734
746
  "authToken": ["propChanged"],
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
- import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
4
- import './package-2ef16e2c.js';
3
+ import { J as JustifiAnalytics } from './Analytics-3dde5a98.js';
4
+ import './package-4ab64620.js';
5
5
  import './Api-c8abc2e0.js';
6
6
 
7
7
  const BankAccountForm = class {
@@ -3,7 +3,7 @@ import { c as create$3, F as FormController } from './index.esm-fc4f5c0c.js';
3
3
  import { u as identityNameValidation, l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation } from './schema-validations-e725d701.js';
4
4
  import { S as StateOptions } from './state-options-a356fb11.js';
5
5
  import { n as numberOnlyHandler } from './utils-3bb6347a.js';
6
- import { S as StyledHost } from './styled-host-3171ae1f.js';
6
+ import { S as StyledHost } from './styled-host-e0ddb759.js';
7
7
  import './business-form-options-d790973e.js';
8
8
  import './Business-b73d5055.js';
9
9
  import './helpers-96ea3464.js';
@@ -69,7 +69,7 @@ const SaveNewPaymentMethod = class {
69
69
  this.checkboxChanged.emit(this.isChecked);
70
70
  }
71
71
  render() {
72
- return (h("div", { key: 'f22a132a518a98786c8486e08c9a65050f3c5ea0', class: "mt-4 form-check" }, h("input", { key: '6f1392f9dd29a9761f5942b0a40e05a899858ada', type: "checkbox", checked: this.isChecked, onChange: (event) => this.handleCheckboxChange(event), class: "form-check-input" }), h("label", { key: 'e6e5908ba70ece8ea19370a04104d88d17237fc7', class: "form-check-label" }, "Save new payment method")));
72
+ return (h("div", { key: 'dc65b5d53172a7d3b26f7a09ea98b865fcc4689a', class: "mt-4 form-check" }, h("input", { key: 'e4af44c05c9f45ffe6d2eb88199983725d421d7b', type: "checkbox", checked: this.isChecked, onChange: (event) => this.handleCheckboxChange(event), class: "form-check-input" }), h("label", { key: 'ad6aa82a60e4d2c6f73cda78a819e9f1590a598b', class: "form-check-label" }, "Save new payment method")));
73
73
  }
74
74
  };
75
75
 
@@ -4,13 +4,13 @@ import { B as BusinessService } from './business.service-1f589b6e.js';
4
4
  import { B as Business } from './Business-b73d5055.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
6
6
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
7
- import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
7
+ import { J as JustifiAnalytics } from './Analytics-3dde5a98.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-4d144b72.js';
9
9
  import './config-27764a9d.js';
10
10
  import './Api-c8abc2e0.js';
11
11
  import './helpers-96ea3464.js';
12
12
  import './state-options-a356fb11.js';
13
- import './package-2ef16e2c.js';
13
+ import './package-4ab64620.js';
14
14
 
15
15
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
16
16
  var _a;
@@ -4,19 +4,19 @@ import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './b
4
4
  import { a as addressSchema, i as identitySchema } from './business-identity-schema-9e3269fb.js';
5
5
  import { A as Api } from './Api-c8abc2e0.js';
6
6
  import './Pagination-afc8f96d.js';
7
- import './Payment-6bf26fe2.js';
7
+ import './Payment-30790721.js';
8
8
  import './Payout-dfe15b00.js';
9
9
  import { c as config } from './config-27764a9d.js';
10
- import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
10
+ import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-8fd61b0e.js';
11
11
  import { B as Business } from './Business-b73d5055.js';
12
- import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
13
- import { S as StyledHost } from './styled-host-3171ae1f.js';
14
- import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
12
+ import { J as JustifiAnalytics } from './Analytics-3dde5a98.js';
13
+ import { S as StyledHost } from './styled-host-e0ddb759.js';
14
+ import { c as checkPkgVersion } from './check-pkg-version-4d144b72.js';
15
15
  import './schema-validations-e725d701.js';
16
16
  import './state-options-a356fb11.js';
17
17
  import './business-form-options-d790973e.js';
18
18
  import './helpers-96ea3464.js';
19
- import './package-2ef16e2c.js';
19
+ import './package-4ab64620.js';
20
20
 
21
21
  const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
22
22
 
@@ -19,7 +19,7 @@ const RepresentativeFormInputs = class {
19
19
  }
20
20
  render() {
21
21
  var _a, _b, _c, _d, _e, _f, _g;
22
- return (h("form", { key: '8b46b3b30681c7e7f30395a2cac575a7bd7ac998' }, h("fieldset", { key: 'e6b8f2ebca22c295fd6897c0e8862200171c2b4d' }, h("legend", { key: '8f8f52240f5ccc3f5d43507681dc970b4260bb1b' }, "Representative"), h("hr", { key: '8b07c69a514534ab731e7c01b6ee4c7a0e59e06e' }), h("div", { key: '79f44ba9dcbcf9d010aed92e332f686ca7127285', class: 'row gy-3' }, h("div", { key: '2a1aeb5ddee1dafc40e108cfb2e9ed6f4d8bc183', class: 'col-12 col-md-8' }, h("form-control-text", { key: '6e089f2d4f734da266e94b38ec1435dc3f461d5f', name: 'name', label: 'Full Name', defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c86421e524752e017180aef58e01229bf751e941', class: 'col-12 col-md-4' }, h("form-control-text", { key: 'ad8105f6d9a46397eb481666c19468376716544c', name: 'title', label: 'Title', defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '7775905e46c00337a98ab668c8453e14d27bfc4d', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e810f2395101a1e48d8d3ff66617ac82d0ec90b3', name: 'email', label: 'Email Address', defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '66a91e85d1902e32668407e684774820c02dce67', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: 'aad97ca95c5b2ec728ea00916a46ff4b84661b96', name: 'phone', label: 'Phone Number', defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '3cd56ea0ac1e472e905c8113f6335868c39882f1', class: 'col-12 col-md-4' }, h("form-control-date", { key: '2f6d505220cacc08a80029ada089370f3841d9ed', name: 'dob_full', label: 'Birth Date', defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController) })), h("div", { key: 'cf2df0af006a50d3533b798607025b4d6ee82ca0', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: '033e4264a1466d300891b2328c0bfaced7acb04d', name: 'identification_number', label: 'SSN', defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '2dc7be12d65203da4d4e0bdd995256a7bdc5bf37', class: 'col-12' }, h("justifi-identity-address-form", { key: '47916ab24bf990be3541b72bfa2dc46cccca5a31', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
22
+ return (h("form", { key: 'e60e25f358a68b95126f1b0238b754db71ffeb5e' }, h("fieldset", { key: 'ab9ca66102990e85694090847abda3842b4302e2' }, h("div", { key: '7fd390072a5b449efb1d18538da2a5ca985b7786', class: "d-flex align-items-center gap-2" }, h("legend", { key: '0fce87b8847777b8a2489684066a7f2ad28037a2', class: "mb-0" }, "Representative"), h("form-control-tooltip", { key: '685ab12d13997025ff840776a7868627d71c4ddf', helpText: "The representative for your business needs to be someone who has significant control over managing your business\u2019s finance. You will have an opportunity to add owners later in the form." })), h("hr", { key: '87c7bf398f56addcc816803ca4b0b8b6598f47f9', class: "mt-2" }), h("div", { key: '76f9606e68374f92810686b4ee1e65855bb724dd', class: "row gy-3" }, h("div", { key: '982dfe08aba4db2ed702aaff432bea4e527ab9cb', class: "col-12 col-md-8" }, h("form-control-text", { key: '4dfbde53299db25439a8be81187d7b3cb39d1026', name: "name", label: "Full Name", defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '9d9428eb5a8269861170dfa3ec162f0b52581101', class: "col-12 col-md-4" }, h("form-control-text", { key: 'af3601d4dfa0ffbe0a83f467d88c34add95b57b6', name: "title", label: "Title", defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '9f56a922a12b5a8393effde4a7e5d3e62f29a8e6', class: "col-12 col-md-6" }, h("form-control-text", { key: 'cc784d334f4c4612686f62a613ac7910d680dba8', name: "email", label: "Email Address", defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '4f63adab539a9f285985c440fcaf112ae81f7826', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'a170c6b9a6d553216adc41ac7603841b949b4b83', name: "phone", label: "Phone Number", defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '85ea5c9bc2b3992d44247991fda34a5142e50faa', class: "col-12 col-md-4" }, h("form-control-date", { key: '0e66f5255a6d159350ecd7d228ded18441b47d26', name: "dob_full", label: "Birth Date", defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'e0dddceb3d489b9d92a19e983d2ef147c9127e68', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '0f95dd8c436a38377058bf6067d810d8bdcb7686', name: "identification_number", label: "SSN", defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '0fb3fea4773d72d787c50e18213379ca3aed5c9e', class: "col-12" }, h("justifi-identity-address-form", { key: 'fe9cf9cc527794376968d35cdd42bfd75e550cca', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
23
23
  }
24
24
  };
25
25
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
- import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
4
- import './package-2ef16e2c.js';
3
+ import { J as JustifiAnalytics } from './Analytics-3dde5a98.js';
4
+ import './package-4ab64620.js';
5
5
  import './Api-c8abc2e0.js';
6
6
 
7
7
  const CardForm = class {
@@ -65,7 +65,7 @@ const CardForm = class {
65
65
  return this.childRef.resize();
66
66
  }
67
67
  render() {
68
- return (h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
68
+ return (h("justifi-payment-method-form", { key: 'e31d3c703e1a0c3778ddeb88d118ea3ef88d0adf', ref: el => {
69
69
  if (el) {
70
70
  this.childRef = el;
71
71
  }
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { f as formatCurrency } from './utils-e66d8bca.js';
2
+ import { f as formatCurrency } from './utils-620f2d78.js';
3
3
  import { c as config } from './config-27764a9d.js';
4
4
  import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
5
5
  import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state-8ce01e59.js';
6
6
  import { B as Button } from './button-34e75e0f.js';
7
- import { S as StyledHost } from './styled-host-3171ae1f.js';
7
+ import { S as StyledHost } from './styled-host-e0ddb759.js';
8
8
  import { S as Skeleton } from './skeleton-145a80d4.js';
9
9
 
10
10
  class Checkout {
@@ -141,7 +141,7 @@ const CheckoutCore = class {
141
141
  return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
142
142
  }
143
143
  render() {
144
- return (h(StyledHost, { key: 'e322f280a57bb0baab61174bca21f0a7e9afa3c1' }, h("div", { key: '4ad8cc4f6243de8ddc03fb184ac4e960a04280eb', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '7f13e26b36790558c8eb455f4d5ab3d0952b4e62', class: "col-12" }, h("h2", { key: 'c5e4b6fc30f51821537915f3ce5d4830ed3f8da9', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '164b7a2cc51d871ad4a92044d0f7240e376bd4b3', class: "col-12" }, h("slot", { key: 'a98b7c6a0bb9e4d1b102e832ee7aa43218432298', name: "insurance" })), h("div", { key: '415d3aac64b4190f54d785695c50a92ce02a76c2', class: "col-12 mt-4" }, h("h2", { key: '6d7f0df1165ec359877459a8bada855ef353c3b3', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'be8495d792cf065d2cbc7d3b46648c887951e313', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '5c9d8baffb50b0b10e9911463f307581cad7619c', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9351832b69a8e5285cae35534299b51193248719', class: "col-12" }, h("div", { key: '5b0e382836c858369caf93a287272922024ce72b', class: "d-flex justify-content-end" }, h(Button, { key: 'f76d37000f7b026e97f083e7cf817bed8f84f34f', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
144
+ return (h(StyledHost, { key: '5f0d9ae550582f13376cc242bd8654e440f83219' }, h("div", { key: '6acd2acafa61be4a59b6ebbfdd7f14aac282d1dc', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '23089c7a0e688fc44ab66dc46470f115bb430d0f', class: "col-12" }, h("h2", { key: '1888832c214484c0904135029f5f6bbdba356049', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '47cac0b14213043a8b7c15127c17b51e92e6bef3', class: "col-12" }, h("slot", { key: '3548f92bee3b6b23bd74a8578601b1f1aac05960', name: "insurance" })), h("div", { key: 'ee3a5b2a7598ded7c88a17400e01b4dd8a4048bf', class: "col-12 mt-4" }, h("h2", { key: '65d196aa405f018a2f0c6606363a6d3fc0f957d6', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: '10b7613dec7240a342d147c11431a9217fd514e5', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '29d3f1cca38f76f8cdee726cc779a0e0853124a2', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'ebfdd182534f510887a8921d89054ae329d01cfd', class: "col-12" }, h("div", { key: '1a607695a7de0ef135e9ae2ee1ac63e174e71135', class: "d-flex justify-content-end" }, h(Button, { key: 'f3e9b863354b022f872b27434e1a020d03c6979e', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
145
145
  }
146
146
  };
147
147
  CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
@@ -3,12 +3,12 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
3
3
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
4
4
  import { A as Api } from './Api-c8abc2e0.js';
5
5
  import './Pagination-afc8f96d.js';
6
- import './Payment-6bf26fe2.js';
6
+ import './Payment-30790721.js';
7
7
  import './Payout-dfe15b00.js';
8
8
  import { c as config } from './config-27764a9d.js';
9
- import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
- import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
11
- import './package-2ef16e2c.js';
9
+ import { J as JustifiAnalytics } from './Analytics-3dde5a98.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-4d144b72.js';
11
+ import './package-4ab64620.js';
12
12
 
13
13
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
14
14
  var _a;
@@ -133,11 +133,11 @@ const Checkout = class {
133
133
  this.checkoutCoreRef.fillBillingForm(fields);
134
134
  }
135
135
  render() {
136
- return (h("justifi-checkout-core", { key: 'ea50f0df79dae86294ccfdf2ec523f0fb81433e4', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
136
+ return (h("justifi-checkout-core", { key: '24400b7f50a91d2c24e372a030fde6b0a1af9e66', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
137
137
  if (el) {
138
138
  this.checkoutCoreRef = el;
139
139
  }
140
- } }, h("div", { key: '301247cf7c916ba1c6c5464e3c2f0226d0f6f041', slot: "insurance" }, h("slot", { key: 'a75ff85e5a6d954e7c0d3c24abac518a2765f889', name: "insurance" }))));
140
+ } }, h("div", { key: '0f530bd18cab94b2ab3707b22908198878d34a4a', slot: "insurance" }, h("slot", { key: '94d10781b8df51ab34df5e414e304537682d8c2c', name: "insurance" }))));
141
141
  }
142
142
  static get watchers() { return {
143
143
  "authToken": ["propChanged"],
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-57431c24.js';
2
2
  import { E as ErrorState } from './utils-01413a95.js';
3
- import { S as StyledHost } from './styled-host-3171ae1f.js';
3
+ import { S as StyledHost } from './styled-host-e0ddb759.js';
4
4
 
5
5
  const Details = class {
6
6
  constructor(hostRef) {
@@ -8,7 +8,7 @@ const Details = class {
8
8
  this.errorMessage = undefined;
9
9
  }
10
10
  render() {
11
- return (h(StyledHost, { key: '00b10fc4e459688ae06147ef1535f03609ec35e4', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
11
+ return (h(StyledHost, { key: '067f67765c63376d98b996fded17eb6418832d92', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
12
12
  ErrorState(this.errorMessage)
13
13
  :
14
14
  h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
@@ -4,9 +4,9 @@ import { A as Api } from './Api-c8abc2e0.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
5
5
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
6
6
  import { E as ErrorState } from './utils-01413a95.js';
7
- import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
8
- import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
9
- import './package-2ef16e2c.js';
7
+ import { J as JustifiAnalytics } from './Analytics-3dde5a98.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-4d144b72.js';
9
+ import './package-4ab64620.js';
10
10
 
11
11
  class ReportsService {
12
12
  async fetchGrossVolumeChartData(accountId, authToken) {