@justifi/webcomponents 4.9.0 → 4.10.0-rc.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 (334) hide show
  1. package/dist/cjs/{Business-64dffab7.js → Business-79361c8a.js} +1 -0
  2. package/dist/cjs/Identity-b6364aee.js +27 -0
  3. package/dist/cjs/{SubAccount-f8144025.js → SubAccount-b3902202.js} +1 -1
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  5. package/dist/cjs/business-additional-questions-schema-cbac27f2.js +26 -0
  6. package/dist/cjs/business-details-core.cjs.entry.js +2 -2
  7. package/dist/cjs/business-form-select-options-7ccd8dca.js +85 -0
  8. package/dist/cjs/business-form-types-3cdd5447.js +19 -0
  9. package/dist/cjs/form-control-datepart_3.cjs.entry.js +32 -46
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  11. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-number_3.cjs.entry.js} +44 -1
  12. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  13. package/dist/cjs/{index-07ddbad2.js → index-69b9386b.js} +57 -0
  14. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +505 -0
  15. package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_4.cjs.entry.js} +12 -42
  16. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +5 -13
  18. package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +35 -0
  19. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
  20. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +36 -90
  21. package/dist/cjs/justifi-business-form.cjs.entry.js +16 -15
  22. package/dist/cjs/justifi-business-list.cjs.entry.js +3 -3
  23. package/dist/cjs/justifi-business-owners.cjs.entry.js +1 -1
  24. package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
  25. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  26. package/dist/cjs/justifi-checkout.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  29. package/dist/cjs/justifi-new-payment-method_3.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-owner-form.cjs.entry.js +160 -0
  31. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  33. package/dist/cjs/justifi-payment-form.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  37. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  38. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
  39. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +4 -4
  41. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +3 -3
  42. package/dist/cjs/justifi-table_2.cjs.entry.js +1 -1
  43. package/dist/cjs/loader.cjs.js +2 -2
  44. package/dist/cjs/payload-parsers-25ed3936.js +98 -0
  45. package/dist/cjs/payment-details-core.cjs.entry.js +3 -3
  46. package/dist/cjs/payments-list-core.cjs.entry.js +2 -2
  47. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  48. package/dist/cjs/payouts-list-core.cjs.entry.js +2 -2
  49. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +3 -3
  50. package/dist/cjs/subaccount-bank-details.cjs.entry.js +2 -2
  51. package/dist/cjs/subaccount-terms-details.cjs.entry.js +2 -2
  52. package/dist/cjs/{utils-5c3e442d.js → utils-23e70ef2.js} +1 -1
  53. package/dist/cjs/{utils-84208d99.js → utils-6f62f7a1.js} +18 -0
  54. package/dist/cjs/utils-df5167a8.js +13 -0
  55. package/dist/cjs/webcomponents.cjs.js +2 -2
  56. package/dist/collection/api/Identity.js +43 -0
  57. package/dist/collection/collection-manifest.json +15 -8
  58. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  59. package/dist/collection/components/business-details/owner-details/owner-details.js +2 -2
  60. package/dist/collection/components/business-details/representative-details/representative-details.js +2 -2
  61. package/dist/collection/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.js +1 -1
  62. package/dist/collection/components/business-forms/business-form/business-address/business-address-form.css +2536 -0
  63. package/dist/collection/components/{business-form → business-forms/business-form}/business-address/business-address-form.js +4 -4
  64. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.css +2493 -0
  65. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +77 -0
  66. package/dist/collection/components/{business-form → business-forms/business-form}/business-form.js +32 -24
  67. package/dist/collection/components/business-forms/business-form/business-owners/business-owners.css +7779 -0
  68. package/dist/collection/components/{business-form → business-forms/business-form}/business-owners/business-owners.js +2 -2
  69. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.css +2493 -0
  70. package/dist/collection/components/{business-form → business-forms/business-form}/business-representative/business-representative.js +3 -3
  71. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.css +2493 -0
  72. package/dist/collection/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.js +1 -1
  73. package/dist/collection/components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.js +218 -0
  74. package/dist/collection/components/business-forms/business-form-stepped/additional-questions/test/business-additional-questions-form-step.spec.js +97 -0
  75. package/dist/collection/components/business-forms/business-form-stepped/business-address/business-address-form-step.js +97 -0
  76. package/dist/collection/components/business-forms/business-form-stepped/business-address/test/business-address-form-step.spec.js +97 -0
  77. package/dist/collection/components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.js +239 -0
  78. package/dist/collection/components/business-forms/business-form-stepped/business-core-info/test/business-core-info-form-step.spec.js +97 -0
  79. package/dist/collection/components/{business-form → business-forms/business-form-stepped}/business-form-stepped.css +105 -0
  80. package/dist/collection/components/business-forms/business-form-stepped/business-form-stepped.js +199 -0
  81. package/dist/collection/components/business-forms/business-form-stepped/business-owners/business-owners-form-step.js +284 -0
  82. package/dist/collection/components/business-forms/business-form-stepped/business-owners/test/business-owners-form-step.spec.js +97 -0
  83. package/dist/collection/components/business-forms/business-form-stepped/business-representative/business-representative-form-step.js +230 -0
  84. package/dist/collection/components/business-forms/business-form-stepped/business-representative/test/business-representative-form-step.spec.js +97 -0
  85. package/dist/collection/components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.js +232 -0
  86. package/dist/collection/components/business-forms/business-form-stepped/test/business-form-stepped.spec.js +61 -0
  87. package/dist/collection/components/business-forms/owner-form/owner-form.css +7779 -0
  88. package/dist/collection/components/business-forms/owner-form/owner-form.js +367 -0
  89. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +7 -0
  90. package/dist/collection/components/business-forms/schemas/business-address-schema.js +15 -0
  91. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +13 -0
  92. package/dist/collection/components/business-forms/schemas/business-form-schema.js +6 -0
  93. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +35 -0
  94. package/dist/collection/components/business-forms/schemas/business-owners-schema.js +16 -0
  95. package/dist/collection/components/business-forms/utils/business-form-select-options.js +80 -0
  96. package/dist/collection/components/business-forms/utils/business-form-types.js +17 -0
  97. package/dist/collection/components/business-forms/utils/payload-parsers.js +37 -0
  98. package/dist/collection/components/form/utils.js +1 -0
  99. package/dist/collection/utils/utils.js +16 -0
  100. package/dist/docs.json +1690 -300
  101. package/dist/esm/{Business-9921d35f.js → Business-1df362e0.js} +1 -1
  102. package/dist/esm/Identity-774788c0.js +25 -0
  103. package/dist/esm/{SubAccount-76f6d565.js → SubAccount-f4ae9809.js} +1 -1
  104. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  105. package/dist/esm/business-additional-questions-schema-2cb80f70.js +23 -0
  106. package/dist/esm/business-details-core.entry.js +2 -2
  107. package/dist/esm/business-form-select-options-6b9293fe.js +82 -0
  108. package/dist/esm/business-form-types-de9f38cd.js +19 -0
  109. package/dist/esm/form-control-datepart_3.entry.js +32 -46
  110. package/dist/esm/form-control-monetary.entry.js +1 -1
  111. package/dist/esm/{form-control-select_2.entry.js → form-control-number_3.entry.js} +44 -2
  112. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  113. package/dist/esm/{index-fb5ca346.js → index-df86d9a2.js} +57 -0
  114. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +497 -0
  115. package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_4.entry.js} +12 -41
  116. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  117. package/dist/esm/justifi-billing-form_4.entry.js +4 -12
  118. package/dist/esm/justifi-business-address-form-step.entry.js +31 -0
  119. package/dist/esm/justifi-business-details.entry.js +3 -3
  120. package/dist/esm/justifi-business-form-stepped.entry.js +36 -90
  121. package/dist/esm/justifi-business-form.entry.js +15 -14
  122. package/dist/esm/justifi-business-list.entry.js +3 -3
  123. package/dist/esm/justifi-business-owners.entry.js +1 -1
  124. package/dist/esm/justifi-card-form.entry.js +1 -1
  125. package/dist/esm/justifi-checkout-core.entry.js +2 -2
  126. package/dist/esm/justifi-checkout.entry.js +1 -1
  127. package/dist/esm/justifi-details.entry.js +2 -2
  128. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  129. package/dist/esm/justifi-new-payment-method_3.entry.js +1 -1
  130. package/dist/esm/justifi-owner-form.entry.js +156 -0
  131. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
  132. package/dist/esm/justifi-payment-details.entry.js +2 -2
  133. package/dist/esm/justifi-payment-form.entry.js +2 -2
  134. package/dist/esm/justifi-payment-method-selector.entry.js +1 -1
  135. package/dist/esm/justifi-payments-list.entry.js +2 -2
  136. package/dist/esm/justifi-payout-details.entry.js +2 -2
  137. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  138. package/dist/esm/justifi-proceeds-list.entry.js +2 -2
  139. package/dist/esm/justifi-refund-form.entry.js +1 -1
  140. package/dist/esm/justifi-subaccount-details.entry.js +4 -4
  141. package/dist/esm/justifi-subaccounts-list.entry.js +3 -3
  142. package/dist/esm/justifi-table_2.entry.js +1 -1
  143. package/dist/esm/loader.js +3 -3
  144. package/dist/esm/payload-parsers-1dd7474f.js +90 -0
  145. package/dist/esm/payment-details-core.entry.js +3 -3
  146. package/dist/esm/payments-list-core.entry.js +2 -2
  147. package/dist/esm/payout-details-core.entry.js +3 -3
  148. package/dist/esm/payouts-list-core.entry.js +2 -2
  149. package/dist/esm/subaccount-account-details_4.entry.js +3 -3
  150. package/dist/esm/subaccount-bank-details.entry.js +2 -2
  151. package/dist/esm/subaccount-terms-details.entry.js +2 -2
  152. package/dist/esm/{utils-5193fcd7.js → utils-243abdb4.js} +17 -1
  153. package/dist/esm/utils-2828201a.js +10 -0
  154. package/dist/esm/{utils-a3e96d9f.js → utils-d01c5f3a.js} +1 -1
  155. package/dist/esm/webcomponents.js +3 -3
  156. package/dist/module/Business.js +1 -1
  157. package/dist/module/SubAccount.js +1 -1
  158. package/dist/module/billing-form.js +1 -1
  159. package/dist/module/business-additional-questions-form-step.js +120 -0
  160. package/dist/module/business-additional-questions-schema.js +10 -0
  161. package/dist/module/business-address-form.js +3 -3
  162. package/dist/module/business-address-schema.js +18 -0
  163. package/dist/module/business-core-info-form-step.js +141 -0
  164. package/dist/module/business-core-info-schema.js +16 -0
  165. package/dist/module/business-core-info.js +69 -0
  166. package/dist/module/business-form-select-options.js +82 -0
  167. package/dist/module/business-form-types.js +19 -0
  168. package/dist/module/business-identity-schema.js +38 -0
  169. package/dist/{webcomponents/p-3bae0ed3.entry.js → module/business-owners-form-step.js} +213 -1
  170. package/dist/module/business-representative-form-step.js +157 -0
  171. package/dist/module/business-representative.js +1 -1
  172. package/dist/module/checkout-core.js +1 -1
  173. package/dist/module/justifi-additional-questions-form-step.d.ts +11 -0
  174. package/dist/module/justifi-additional-questions-form-step.js +6 -0
  175. package/dist/module/justifi-business-address-form-step.d.ts +11 -0
  176. package/dist/module/justifi-business-address-form-step.js +75 -0
  177. package/dist/module/justifi-business-core-info-form-step.d.ts +11 -0
  178. package/dist/module/justifi-business-core-info-form-step.js +6 -0
  179. package/dist/module/justifi-business-core-info.d.ts +11 -0
  180. package/dist/module/justifi-business-core-info.js +6 -0
  181. package/dist/module/justifi-business-form-stepped.js +72 -113
  182. package/dist/module/justifi-business-form.js +19 -14
  183. package/dist/module/justifi-business-list.js +1 -1
  184. package/dist/module/justifi-business-owners-form-step.d.ts +11 -0
  185. package/dist/module/justifi-business-owners-form-step.js +6 -0
  186. package/dist/module/justifi-business-representative-form-step.d.ts +11 -0
  187. package/dist/module/justifi-business-representative-form-step.js +6 -0
  188. package/dist/module/justifi-legal-address-form-step.d.ts +11 -0
  189. package/dist/module/justifi-legal-address-form-step.js +6 -0
  190. package/dist/module/justifi-owner-form.d.ts +11 -0
  191. package/dist/module/justifi-owner-form.js +6 -0
  192. package/dist/module/justifi-payment-balance-transactions.js +1 -1
  193. package/dist/module/justifi-proceeds-list.js +1 -1
  194. package/dist/module/justifi-subaccount-details.js +1 -1
  195. package/dist/module/justifi-subaccounts-list.js +1 -1
  196. package/dist/module/legal-address-form-step.js +136 -0
  197. package/dist/module/owner-form.js +244 -0
  198. package/dist/module/payload-parsers.js +39 -0
  199. package/dist/module/payment-details-core2.js +1 -1
  200. package/dist/module/payment-method-form.js +2 -9
  201. package/dist/module/payments-list-core2.js +1 -1
  202. package/dist/module/payout-details-core2.js +1 -1
  203. package/dist/module/payouts-list-core2.js +1 -1
  204. package/dist/module/subaccount-merchant-details2.js +1 -1
  205. package/dist/module/utils2.js +17 -1
  206. package/dist/module/utils4.js +10 -0
  207. package/dist/types/api/Business.d.ts +1 -18
  208. package/dist/types/api/Identity.d.ts +60 -0
  209. package/dist/types/components/billing-form/billing-form-schema.d.ts +0 -1
  210. package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
  211. package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
  212. package/dist/types/components/{business-form → business-forms/business-form}/additional-questions/additional-questions.d.ts +1 -1
  213. package/dist/types/components/{business-form → business-forms/business-form}/business-address/business-address-form.d.ts +1 -1
  214. package/dist/types/components/{business-form/business-generic-info/business-generic-info.d.ts → business-forms/business-form/business-core-info/business-core-info.d.ts} +5 -5
  215. package/dist/types/components/{business-form → business-forms/business-form}/business-form.d.ts +5 -10
  216. package/dist/types/components/{business-form → business-forms/business-form}/business-owners/business-owners.d.ts +1 -1
  217. package/dist/types/components/{business-form → business-forms/business-form}/business-representative/business-representative.d.ts +1 -1
  218. package/dist/types/components/{business-form → business-forms/business-form}/legal-address-form/legal-address-form.d.ts +2 -2
  219. package/dist/types/components/business-forms/business-form-stepped/additional-questions/business-additional-questions-form-step.d.ts +30 -0
  220. package/dist/types/components/business-forms/business-form-stepped/business-address/business-address-form-step.d.ts +9 -0
  221. package/dist/types/components/business-forms/business-form-stepped/business-core-info/business-core-info-form-step.d.ts +36 -0
  222. package/dist/types/components/business-forms/business-form-stepped/business-form-stepped.d.ts +45 -0
  223. package/dist/types/components/business-forms/business-form-stepped/business-owners/business-owners-form-step.d.ts +36 -0
  224. package/dist/types/components/business-forms/business-form-stepped/business-representative/business-representative-form-step.d.ts +26 -0
  225. package/dist/types/components/business-forms/business-form-stepped/legal-address-form/legal-address-form-step.d.ts +31 -0
  226. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +36 -0
  227. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +11 -0
  228. package/dist/types/components/{business-form/business-address/business-address-form-schema.d.ts → business-forms/schemas/business-address-schema.d.ts} +11 -8
  229. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +19 -0
  230. package/dist/types/components/{business-form → business-forms/schemas}/business-form-schema.d.ts +2 -26
  231. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +59 -0
  232. package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +33 -0
  233. package/dist/types/components/business-forms/utils/business-form-select-options.d.ts +11 -0
  234. package/dist/types/components/business-forms/utils/business-form-types.d.ts +39 -0
  235. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +4 -0
  236. package/dist/types/components/form/form.d.ts +1 -1
  237. package/dist/types/components/form/utils.d.ts +1 -0
  238. package/dist/types/components.d.ts +409 -59
  239. package/dist/types/utils/utils.d.ts +2 -0
  240. package/dist/webcomponents/p-0399f02b.entry.js +1 -0
  241. package/dist/webcomponents/{p-4edd9721.js → p-04a98c63.js} +1 -1
  242. package/dist/webcomponents/p-06888c2e.entry.js +1 -0
  243. package/dist/webcomponents/{p-adc96df1.entry.js → p-07b326d0.entry.js} +1 -1
  244. package/dist/webcomponents/p-0811bc77.entry.js +1 -0
  245. package/dist/webcomponents/p-17d72f4a.js +1 -0
  246. package/dist/webcomponents/{p-babd292f.entry.js → p-17f64853.entry.js} +1 -1
  247. package/dist/webcomponents/{p-97c42345.entry.js → p-1bfadb9f.entry.js} +1 -1
  248. package/dist/webcomponents/p-22085999.entry.js +1 -0
  249. package/dist/webcomponents/{p-531844f6.entry.js → p-252835df.entry.js} +1 -1
  250. package/dist/webcomponents/{p-34f9fe6b.js → p-28b38699.js} +1 -1
  251. package/dist/webcomponents/{p-baafa7f5.js → p-34352d04.js} +1 -1
  252. package/dist/webcomponents/{p-79f99d62.entry.js → p-374c44e6.entry.js} +1 -1
  253. package/dist/webcomponents/{p-1bac1674.entry.js → p-4697ccfa.entry.js} +1 -1
  254. package/dist/webcomponents/p-4781cd06.js +1 -0
  255. package/dist/webcomponents/{p-dc05b5c5.entry.js → p-4d50d08a.entry.js} +1 -1
  256. package/dist/webcomponents/p-4d806131.entry.js +1 -0
  257. package/dist/webcomponents/{p-09b94d22.entry.js → p-4df6174c.entry.js} +1 -1
  258. package/dist/webcomponents/p-4e0b3206.entry.js +1 -0
  259. package/dist/webcomponents/p-583dd5a2.entry.js +1 -0
  260. package/dist/webcomponents/{p-c032b216.entry.js → p-5be4e217.entry.js} +1 -1
  261. package/dist/webcomponents/{p-018b71f5.entry.js → p-5da4fbe7.entry.js} +1 -1
  262. package/dist/webcomponents/{p-796cf44f.entry.js → p-6103c20d.entry.js} +1 -1
  263. package/dist/webcomponents/{p-bb037696.js → p-65510838.js} +1 -1
  264. package/dist/webcomponents/p-688bb5da.js +2 -0
  265. package/dist/webcomponents/{p-92a55427.entry.js → p-6b51cf97.entry.js} +1 -1
  266. package/dist/webcomponents/{p-72d1ad98.entry.js → p-7654c70d.entry.js} +1 -1
  267. package/dist/webcomponents/{p-f64a85cf.entry.js → p-847441ce.entry.js} +1 -1
  268. package/dist/webcomponents/p-861ba3fc.entry.js +1 -0
  269. package/dist/webcomponents/p-9207ccb2.entry.js +1 -0
  270. package/dist/webcomponents/p-975ab96e.js +1 -0
  271. package/dist/webcomponents/p-9ce8d98c.entry.js +1 -0
  272. package/dist/webcomponents/p-9e4b81ad.entry.js +1 -0
  273. package/dist/webcomponents/p-a141c531.js +1 -0
  274. package/dist/webcomponents/{p-e536a4c1.entry.js → p-a2dbe90f.entry.js} +1 -1
  275. package/dist/webcomponents/{p-591e29bf.entry.js → p-a46174e0.entry.js} +1 -1
  276. package/dist/webcomponents/{p-c8d51336.entry.js → p-a98eea84.entry.js} +1 -1
  277. package/dist/webcomponents/{p-bb7f6095.entry.js → p-b1bc23af.entry.js} +1 -1
  278. package/dist/webcomponents/{p-ec358d69.entry.js → p-b27c9b0d.entry.js} +1 -1
  279. package/dist/webcomponents/{p-7cd06ada.entry.js → p-b68f1dd9.entry.js} +1 -1
  280. package/dist/webcomponents/p-b8f22856.js +1 -0
  281. package/dist/webcomponents/{p-1cbdca15.entry.js → p-c8d62072.entry.js} +1 -1
  282. package/dist/webcomponents/{p-c2c3d5d1.entry.js → p-da34bba7.entry.js} +1 -1
  283. package/dist/webcomponents/{p-3134ab82.entry.js → p-e3748ea4.entry.js} +1 -1
  284. package/dist/webcomponents/{p-99a8b7d0.entry.js → p-e924f2e1.entry.js} +1 -1
  285. package/dist/webcomponents/{p-9c310f5c.entry.js → p-ebf7c70f.entry.js} +1 -1
  286. package/dist/webcomponents/{p-41031759.entry.js → p-eef5ed19.entry.js} +1 -1
  287. package/dist/webcomponents/{p-8f895ec3.entry.js → p-efc7025c.entry.js} +1 -1
  288. package/dist/webcomponents/p-f3453ca2.js +1 -0
  289. package/dist/webcomponents/{p-f55ac955.entry.js → p-f3ca6fda.entry.js} +1 -1
  290. package/dist/webcomponents/{p-9a63eec9.entry.js → p-fb49ef28.entry.js} +1 -1
  291. package/dist/webcomponents/{p-9e3771b7.entry.js → p-fe2af0cf.entry.js} +1 -1
  292. package/dist/webcomponents/{p-41490d96.entry.js → p-fe8a94c1.entry.js} +1 -1
  293. package/dist/webcomponents/webcomponents.esm.js +1 -1
  294. package/package.json +1 -1
  295. package/dist/cjs/BusinessFormEventTypes-62990815.js +0 -42
  296. package/dist/cjs/business-form-schema-37e5381d.js +0 -148
  297. package/dist/collection/components/business-form/BusinessFormEventTypes.js +0 -6
  298. package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -13
  299. package/dist/collection/components/business-form/business-form-schema.js +0 -159
  300. package/dist/collection/components/business-form/business-form-stepped.js +0 -260
  301. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -77
  302. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
  303. package/dist/collection/components/business-form/helpers.js +0 -23
  304. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -10
  305. package/dist/esm/BusinessFormEventTypes-182e20be.js +0 -39
  306. package/dist/esm/business-form-schema-f8f554d1.js +0 -144
  307. package/dist/module/BusinessFormEventTypes.js +0 -39
  308. package/dist/module/business-generic-info.js +0 -210
  309. package/dist/module/justifi-business-generic-info.d.ts +0 -11
  310. package/dist/module/justifi-business-generic-info.js +0 -6
  311. package/dist/types/components/business-form/BusinessFormEventTypes.d.ts +0 -5
  312. package/dist/types/components/business-form/business-form-stepped.d.ts +0 -48
  313. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +0 -17
  314. package/dist/types/components/business-form/helpers.d.ts +0 -1
  315. package/dist/types/components/business-form/legal-address-form/legal-address-form-schema.d.ts +0 -17
  316. package/dist/webcomponents/p-1b04d091.entry.js +0 -1
  317. package/dist/webcomponents/p-44b88365.entry.js +0 -1
  318. package/dist/webcomponents/p-4ed3a9f5.entry.js +0 -1
  319. package/dist/webcomponents/p-51b0bf2a.entry.js +0 -1
  320. package/dist/webcomponents/p-5d5d7550.entry.js +0 -1
  321. package/dist/webcomponents/p-5ea274b8.js +0 -1
  322. package/dist/webcomponents/p-5f785ede.entry.js +0 -1
  323. package/dist/webcomponents/p-6d05174c.js +0 -2
  324. package/dist/webcomponents/p-a81229a5.entry.js +0 -1
  325. package/dist/webcomponents/p-b8a8b551.js +0 -1
  326. /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.e2e.js +0 -0
  327. /package/dist/collection/components/{business-form → business-forms/business-form}/business-address/test/business-address.spec.js +0 -0
  328. /package/dist/collection/components/{business-form → business-forms/business-form}/business-form.css +0 -0
  329. /package/dist/collection/components/{business-form → business-forms/business-form}/test/business-form.spec.js +0 -0
  330. /package/dist/collection/components/{business-form/business-address/business-address-form.css → business-forms/business-form-stepped/business-address/business-address-form-step.css} +0 -0
  331. /package/dist/collection/components/{business-form/business-generic-info/business-generic-info.css → business-forms/business-form-stepped/business-core-info/business-core-info-form-step.css} +0 -0
  332. /package/dist/collection/components/{business-form/business-owners/business-owners.css → business-forms/business-form-stepped/business-owners/business-owners-form-step.css} +0 -0
  333. /package/dist/collection/components/{business-form/business-representative/business-representative.css → business-forms/business-form-stepped/business-representative/business-representative-form-step.css} +0 -0
  334. /package/dist/collection/components/{business-form/legal-address-form/legal-address-form.css → business-forms/business-form-stepped/legal-address-form/legal-address-form-step.css} +0 -0
@@ -1,42 +0,0 @@
1
- 'use strict';
2
-
3
- const index = require('./index-07ddbad2.js');
4
-
5
- // These props should not be sent to the server
6
- const parseForPatching = (values, initialValues) => {
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
8
- delete values.id;
9
- delete values.documents;
10
- delete values.bank_accounts;
11
- delete values.product_categories;
12
- delete values.created_at;
13
- delete values.updated_at;
14
- (_a = values.legal_address) === null || _a === void 0 ? true : delete _a.id;
15
- (_b = values.legal_address) === null || _b === void 0 ? true : delete _b.created_at;
16
- (_c = values.legal_address) === null || _c === void 0 ? true : delete _c.updated_at;
17
- (_d = values.representative) === null || _d === void 0 ? true : delete _d.id;
18
- (_e = values.representative) === null || _e === void 0 ? true : delete _e.documents;
19
- (_f = values.representative) === null || _f === void 0 ? true : delete _f.created_at;
20
- (_g = values.representative) === null || _g === void 0 ? true : delete _g.updated_at;
21
- (_h = values.representative) === null || _h === void 0 ? true : delete _h.address.id;
22
- (_j = values.representative) === null || _j === void 0 ? true : delete _j.address.created_at;
23
- (_k = values.representative) === null || _k === void 0 ? true : delete _k.address.updated_at;
24
- (_l = values.representative) === null || _l === void 0 ? true : delete _l.business_id;
25
- ((_m = initialValues.owners) === null || _m === void 0 ? void 0 : _m.length) && delete values.owners;
26
- return values;
27
- };
28
-
29
- const FormAlert = (message) => (index.h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert' },
30
- index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" },
31
- index.h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })),
32
- index.h("div", null, message)));
33
-
34
- exports.ClickEvents = void 0;
35
- (function (ClickEvents) {
36
- ClickEvents["nextStep"] = "nextStep";
37
- ClickEvents["previousStep"] = "previousStep";
38
- ClickEvents["submit"] = "submit";
39
- })(exports.ClickEvents || (exports.ClickEvents = {}));
40
-
41
- exports.FormAlert = FormAlert;
42
- exports.parseForPatching = parseForPatching;
@@ -1,148 +0,0 @@
1
- 'use strict';
2
-
3
- const index_esm = require('./index.esm-d25bd7bf.js');
4
-
5
- const legalAddressSchema = index_esm.create$3({
6
- line1: index_esm.create$6().required('Enter street address'),
7
- line2: index_esm.create$6().nullable(),
8
- city: index_esm.create$6().required('Enter city'),
9
- state: index_esm.create$6().required('Select state'),
10
- postal_code: index_esm.create$6().required('Enter postal code'),
11
- country: index_esm.create$6().required('Select country'),
12
- });
13
-
14
- const BusinessTypeOptions = [
15
- {
16
- label: 'Choose business type',
17
- value: '',
18
- },
19
- {
20
- label: 'Individual',
21
- value: 'individual',
22
- },
23
- {
24
- label: 'For Profit',
25
- value: 'for_profit',
26
- },
27
- {
28
- label: 'Non Profit',
29
- value: 'non_profit',
30
- },
31
- {
32
- label: 'Government Entity',
33
- value: 'government_entity',
34
- },
35
- ];
36
- const BusinessStructureOptions = [
37
- {
38
- label: 'Choose business structure',
39
- value: '',
40
- },
41
- {
42
- label: 'Sole Proprietorship',
43
- value: 'sole_proprietorship',
44
- },
45
- {
46
- label: 'LLC (Single)',
47
- value: 'single_llc',
48
- },
49
- {
50
- label: 'LLC (Multiple)',
51
- value: 'multi_llc',
52
- },
53
- {
54
- label: 'Private Partnership',
55
- value: 'private_partnership',
56
- },
57
- {
58
- label: 'Private Corporation',
59
- value: 'private_corporation',
60
- },
61
- {
62
- label: 'Unincorporated Association',
63
- value: 'unincorporated_association',
64
- },
65
- {
66
- label: 'Public Partnership',
67
- value: 'public_partnership',
68
- },
69
- {
70
- label: 'Public Corporation',
71
- value: 'public_corporation',
72
- },
73
- {
74
- label: 'Incorporated',
75
- value: 'incorporated',
76
- },
77
- {
78
- label: 'Unincorporated',
79
- value: 'unincorporated',
80
- },
81
- {
82
- label: 'Government Unit',
83
- value: 'government_unit',
84
- },
85
- {
86
- label: 'Government Instrumentality',
87
- value: 'government_instrumentality',
88
- },
89
- {
90
- label: 'Tax Exempt Government Instrumentality',
91
- value: 'tax_exempt_government_instrumentality',
92
- },
93
- ];
94
- const businessGenericInfoSchema = index_esm.create$3({
95
- legal_name: index_esm.create$6().required('Enter legal name'),
96
- website_url: index_esm.create$6()
97
- .url('Enter valid website url')
98
- .required('Enter website url'),
99
- email: index_esm.create$6().email('Enter valid email').required('Enter email'),
100
- phone: index_esm.create$6().required('Enter phone number'),
101
- doing_business_as: index_esm.create$6().required('Enter doing business as'),
102
- business_type: index_esm.create$6().required('Select business type'),
103
- business_structure: index_esm.create$6().required('Select business structure'),
104
- industry: index_esm.create$6().required('Enter a business industry'),
105
- });
106
- const addressSchema = index_esm.create$3({
107
- line1: index_esm.create$6().required('Enter street address'),
108
- city: index_esm.create$6().required('Enter city'),
109
- state: index_esm.create$6().required('Select state'),
110
- postal_code: index_esm.create$6().required('Enter postal code'),
111
- });
112
- const representativeSchema = index_esm.create$3({
113
- name: index_esm.create$6().required('Enter representative name'),
114
- email: index_esm.create$6()
115
- .email('Enter valid representative email')
116
- .required('Enter representative email'),
117
- phone: index_esm.create$6().required('Enter representative phone number'),
118
- dob_day: index_esm.create$6().required('Enter representative birth day'),
119
- dob_month: index_esm.create$6().required('Enter representative birth month'),
120
- dob_year: index_esm.create$6().required('Enter representative birth year'),
121
- identification_number: index_esm.create$6(),
122
- address: addressSchema,
123
- });
124
- // const ownerSchema = object({
125
- // name: string().required('Enter owner name'),
126
- // title: string().required('Enter owner title'),
127
- // email: string()
128
- // .email('Enter valid owner email')
129
- // .required('Enter owner email'),
130
- // phone: string().required('Enter owner phone number'),
131
- // dob_day: string().required('Enter owner birth day'),
132
- // dob_month: string().required('Enter owner birth month'),
133
- // dob_year: string().required('Enter owner birth year'),
134
- // identification_number: string(),
135
- // is_owner: boolean(),
136
- // address: addressSchema,
137
- // });
138
- const additionQuestionsSchema = index_esm.create$3({
139
- business_revenue: index_esm.create$6().required('Enter business revenue'),
140
- business_payment_volume: index_esm.create$6().required('Enter business payment volume'),
141
- business_dispute_volume: index_esm.create$6().required('Enter business dispute volume'),
142
- business_receivable_volume: index_esm.create$6().required('Enter business receivable volume'),
143
- });
144
- const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessGenericInfoSchema.fields), { legal_address: legalAddressSchema, additional_questions: additionQuestionsSchema, representative: representativeSchema }));
145
-
146
- exports.BusinessStructureOptions = BusinessStructureOptions;
147
- exports.BusinessTypeOptions = BusinessTypeOptions;
148
- exports.businessFormSchema = businessFormSchema;
@@ -1,6 +0,0 @@
1
- export var ClickEvents;
2
- (function (ClickEvents) {
3
- ClickEvents["nextStep"] = "nextStep";
4
- ClickEvents["previousStep"] = "previousStep";
5
- ClickEvents["submit"] = "submit";
6
- })(ClickEvents || (ClickEvents = {}));
@@ -1,13 +0,0 @@
1
- import { object, string } from "yup";
2
- export const RegExZip = /^\d{5}/;
3
- const BusinessAddressFormSchema = object({
4
- line1: string().required('Enter street address'),
5
- line2: string().nullable(),
6
- city: string().required('Enter city'),
7
- state: string().required('Choose state'),
8
- postal_code: string()
9
- .required('Enter ZIP')
10
- .matches(RegExZip, 'Enter a valid ZIP')
11
- .min(5, 'Enter a valid ZIP')
12
- });
13
- export default BusinessAddressFormSchema;
@@ -1,159 +0,0 @@
1
- import { object, string } from "yup";
2
- import legalAddressSchema from "./legal-address-form/legal-address-form-schema";
3
- export const RegExZip = /^\d{5}/;
4
- export class Business {
5
- constructor(data) {
6
- this.legal_name = '';
7
- this.website_url = '';
8
- this.email = '';
9
- this.phone = '';
10
- this.doing_business_as = '';
11
- this.business_type = '';
12
- this.business_structure = '';
13
- this.industry = '';
14
- this.metadata = {};
15
- if (data) {
16
- this.legal_name = data.legal_name;
17
- this.website_url = data.website_url;
18
- this.email = data.email;
19
- this.phone = data.phone;
20
- this.doing_business_as = data.doing_business_as;
21
- this.business_type = data.business_type;
22
- this.business_structure = data.business_structure;
23
- this.industry = data.industry;
24
- this.metadata = data.metadata;
25
- }
26
- }
27
- }
28
- export const BusinessTypeOptions = [
29
- {
30
- label: 'Choose business type',
31
- value: '',
32
- },
33
- {
34
- label: 'Individual',
35
- value: 'individual',
36
- },
37
- {
38
- label: 'For Profit',
39
- value: 'for_profit',
40
- },
41
- {
42
- label: 'Non Profit',
43
- value: 'non_profit',
44
- },
45
- {
46
- label: 'Government Entity',
47
- value: 'government_entity',
48
- },
49
- ];
50
- export const BusinessStructureOptions = [
51
- {
52
- label: 'Choose business structure',
53
- value: '',
54
- },
55
- {
56
- label: 'Sole Proprietorship',
57
- value: 'sole_proprietorship',
58
- },
59
- {
60
- label: 'LLC (Single)',
61
- value: 'single_llc',
62
- },
63
- {
64
- label: 'LLC (Multiple)',
65
- value: 'multi_llc',
66
- },
67
- {
68
- label: 'Private Partnership',
69
- value: 'private_partnership',
70
- },
71
- {
72
- label: 'Private Corporation',
73
- value: 'private_corporation',
74
- },
75
- {
76
- label: 'Unincorporated Association',
77
- value: 'unincorporated_association',
78
- },
79
- {
80
- label: 'Public Partnership',
81
- value: 'public_partnership',
82
- },
83
- {
84
- label: 'Public Corporation',
85
- value: 'public_corporation',
86
- },
87
- {
88
- label: 'Incorporated',
89
- value: 'incorporated',
90
- },
91
- {
92
- label: 'Unincorporated',
93
- value: 'unincorporated',
94
- },
95
- {
96
- label: 'Government Unit',
97
- value: 'government_unit',
98
- },
99
- {
100
- label: 'Government Instrumentality',
101
- value: 'government_instrumentality',
102
- },
103
- {
104
- label: 'Tax Exempt Government Instrumentality',
105
- value: 'tax_exempt_government_instrumentality',
106
- },
107
- ];
108
- const businessGenericInfoSchema = object({
109
- legal_name: string().required('Enter legal name'),
110
- website_url: string()
111
- .url('Enter valid website url')
112
- .required('Enter website url'),
113
- email: string().email('Enter valid email').required('Enter email'),
114
- phone: string().required('Enter phone number'),
115
- doing_business_as: string().required('Enter doing business as'),
116
- business_type: string().required('Select business type'),
117
- business_structure: string().required('Select business structure'),
118
- industry: string().required('Enter a business industry'),
119
- });
120
- const addressSchema = object({
121
- line1: string().required('Enter street address'),
122
- city: string().required('Enter city'),
123
- state: string().required('Select state'),
124
- postal_code: string().required('Enter postal code'),
125
- });
126
- const representativeSchema = object({
127
- name: string().required('Enter representative name'),
128
- email: string()
129
- .email('Enter valid representative email')
130
- .required('Enter representative email'),
131
- phone: string().required('Enter representative phone number'),
132
- dob_day: string().required('Enter representative birth day'),
133
- dob_month: string().required('Enter representative birth month'),
134
- dob_year: string().required('Enter representative birth year'),
135
- identification_number: string(),
136
- address: addressSchema,
137
- });
138
- // const ownerSchema = object({
139
- // name: string().required('Enter owner name'),
140
- // title: string().required('Enter owner title'),
141
- // email: string()
142
- // .email('Enter valid owner email')
143
- // .required('Enter owner email'),
144
- // phone: string().required('Enter owner phone number'),
145
- // dob_day: string().required('Enter owner birth day'),
146
- // dob_month: string().required('Enter owner birth month'),
147
- // dob_year: string().required('Enter owner birth year'),
148
- // identification_number: string(),
149
- // is_owner: boolean(),
150
- // address: addressSchema,
151
- // });
152
- const additionQuestionsSchema = object({
153
- business_revenue: string().required('Enter business revenue'),
154
- business_payment_volume: string().required('Enter business payment volume'),
155
- business_dispute_volume: string().required('Enter business dispute volume'),
156
- business_receivable_volume: string().required('Enter business receivable volume'),
157
- });
158
- const businessFormSchema = object(Object.assign(Object.assign({}, businessGenericInfoSchema.fields), { legal_address: legalAddressSchema, additional_questions: additionQuestionsSchema, representative: representativeSchema }));
159
- export default businessFormSchema;
@@ -1,260 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { FormController } from "../form/form";
3
- import businessFormSchema from "./business-form-schema";
4
- import { Api } from "../../api";
5
- import { parseForPatching } from "./helpers";
6
- import { config } from "../../../config";
7
- import { FormAlert } from "../form/utils";
8
- import { ClickEvents } from "./BusinessFormEventTypes";
9
- import { Business } from "../../api/Business";
10
- /**
11
- * @exportedPart label: Label for inputs
12
- * @exportedPart input: The input fields
13
- * @exportedPart input-invalid: Invalid state for inputfs
14
- */
15
- export class BusinessFormStepped {
16
- constructor() {
17
- this.componentStepMapping = {
18
- 0: (formController) => h("justifi-business-generic-info", { formController: formController }),
19
- 1: (formController) => h("justifi-legal-address-form", { formController: formController }),
20
- 2: (formController) => h("justifi-additional-questions", { formController: formController }),
21
- 3: (formController) => h("justifi-business-representative", { formController: formController })
22
- };
23
- this.authToken = undefined;
24
- this.businessId = undefined;
25
- this.testMode = false;
26
- this.hideErrors = false;
27
- this.isLoading = false;
28
- this.currentStep = 0;
29
- this.totalSteps = 4;
30
- this.serverError = false;
31
- this.errorMessage = '';
32
- this.sendData = this.sendData.bind(this);
33
- this.fetchData = this.fetchData.bind(this);
34
- }
35
- get disabledState() {
36
- return this.isLoading;
37
- }
38
- get showErrors() {
39
- return this.serverError && !this.hideErrors;
40
- }
41
- get businessEndpoint() {
42
- return `entities/business/${this.businessId}`;
43
- }
44
- componentWillLoad() {
45
- const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
46
- const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
47
- if (!this.authToken)
48
- console.error(missingAuthTokenMessage);
49
- if (!this.businessId)
50
- console.error(missingBusinessIdMessage);
51
- this.formController = new FormController(businessFormSchema);
52
- this.api = Api(this.authToken, config.proxyApiOrigin);
53
- this.totalSteps = Object.keys(this.componentStepMapping).length - 1;
54
- this.fetchData();
55
- }
56
- handleResponse(response, onSuccess) {
57
- if (response.error) {
58
- this.serverError = true;
59
- this.errorMessage = response.error.message;
60
- }
61
- else {
62
- this.serverError = false;
63
- this.businessId = response.data.id;
64
- this.formController.setInitialValues(response.data);
65
- onSuccess();
66
- }
67
- }
68
- async sendData(onSuccess) {
69
- // Stopgap solution to prevent sending data in storybook examples.
70
- if (this.testMode) {
71
- onSuccess();
72
- return;
73
- }
74
- this.isLoading = true;
75
- try {
76
- const values = this.formController.values.getValue();
77
- const initialValues = this.formController.getInitialValues();
78
- const payload = parseForPatching(values, initialValues);
79
- const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
80
- this.handleResponse(response, onSuccess);
81
- this.submitted.emit({ data: response.data });
82
- }
83
- catch (error) {
84
- this.serverError = true;
85
- this.errorMessage = error.message;
86
- }
87
- finally {
88
- this.isLoading = false;
89
- }
90
- }
91
- async fetchData() {
92
- this.isLoading = true;
93
- try {
94
- const response = await this.api.get(this.businessEndpoint);
95
- const business = new Business(response.data);
96
- this.formController.setInitialValues(business);
97
- }
98
- catch (error) {
99
- this.serverError = true;
100
- this.errorMessage = `Error fetching data: ${error.message}`;
101
- }
102
- finally {
103
- this.isLoading = false;
104
- }
105
- }
106
- validateAndSubmit(event) {
107
- event.preventDefault();
108
- this.formController.validateAndSubmit(this.sendData);
109
- }
110
- showPreviousStepButton() {
111
- return this.currentStep > 0;
112
- }
113
- previousStepButtonOnClick() {
114
- this.clickEvent.emit({ name: ClickEvents.previousStep });
115
- this.sendData(() => this.currentStep--);
116
- }
117
- showNextStepButton() {
118
- return this.currentStep < this.totalSteps;
119
- }
120
- nextStepButtonOnClick(clickEventName) {
121
- this.clickEvent.emit({ name: clickEventName });
122
- this.sendData(() => this.currentStep++);
123
- }
124
- showSubmitButton() {
125
- return this.currentStep === this.totalSteps;
126
- }
127
- currentStepComponent() {
128
- return this.componentStepMapping[this.currentStep](this.formController);
129
- }
130
- render() {
131
- return (h(Host, { exportparts: "label,input,input-invalid" }, h("h1", null, "Business Information"), this.showErrors && FormAlert(this.errorMessage), h("form", { onSubmit: this.validateAndSubmit }, h("div", { class: "my-4" }, this.currentStepComponent()), h("div", { class: "d-flex justify-content-between align-items-center" }, h("div", { class: "d-flex align-items-center" }, "Step ", this.currentStep + 1, " of ", this.totalSteps + 1), h("div", { class: "d-flex gap-2" }, this.showPreviousStepButton() && (h("button", { type: "button", class: "btn btn-secondary", onClick: () => this.previousStepButtonOnClick(), disabled: this.isLoading }, "Previous")), this.showNextStepButton() && (h("button", { type: "button", class: "btn btn-primary", onClick: () => this.nextStepButtonOnClick(ClickEvents.nextStep), disabled: this.disabledState }, "Next")), this.showSubmitButton() && (h("button", { type: "submit", class: "btn btn-primary", onClick: () => this.nextStepButtonOnClick(ClickEvents.submit), disabled: this.disabledState }, "Submit")))))));
132
- }
133
- static get is() { return "justifi-business-form-stepped"; }
134
- static get originalStyleUrls() {
135
- return {
136
- "$": ["business-form-stepped.scss"]
137
- };
138
- }
139
- static get styleUrls() {
140
- return {
141
- "$": ["business-form-stepped.css"]
142
- };
143
- }
144
- static get properties() {
145
- return {
146
- "authToken": {
147
- "type": "string",
148
- "mutable": false,
149
- "complexType": {
150
- "original": "string",
151
- "resolved": "string",
152
- "references": {}
153
- },
154
- "required": false,
155
- "optional": false,
156
- "docs": {
157
- "tags": [],
158
- "text": ""
159
- },
160
- "attribute": "auth-token",
161
- "reflect": false
162
- },
163
- "businessId": {
164
- "type": "string",
165
- "mutable": false,
166
- "complexType": {
167
- "original": "string",
168
- "resolved": "string",
169
- "references": {}
170
- },
171
- "required": false,
172
- "optional": false,
173
- "docs": {
174
- "tags": [],
175
- "text": ""
176
- },
177
- "attribute": "business-id",
178
- "reflect": false
179
- },
180
- "testMode": {
181
- "type": "boolean",
182
- "mutable": false,
183
- "complexType": {
184
- "original": "boolean",
185
- "resolved": "boolean",
186
- "references": {}
187
- },
188
- "required": false,
189
- "optional": false,
190
- "docs": {
191
- "tags": [],
192
- "text": ""
193
- },
194
- "attribute": "test-mode",
195
- "reflect": false,
196
- "defaultValue": "false"
197
- },
198
- "hideErrors": {
199
- "type": "boolean",
200
- "mutable": false,
201
- "complexType": {
202
- "original": "boolean",
203
- "resolved": "boolean",
204
- "references": {}
205
- },
206
- "required": false,
207
- "optional": true,
208
- "docs": {
209
- "tags": [],
210
- "text": ""
211
- },
212
- "attribute": "hide-errors",
213
- "reflect": false,
214
- "defaultValue": "false"
215
- }
216
- };
217
- }
218
- static get states() {
219
- return {
220
- "isLoading": {},
221
- "currentStep": {},
222
- "totalSteps": {},
223
- "serverError": {},
224
- "errorMessage": {}
225
- };
226
- }
227
- static get events() {
228
- return [{
229
- "method": "clickEvent",
230
- "name": "clickEvent",
231
- "bubbles": true,
232
- "cancelable": true,
233
- "composed": true,
234
- "docs": {
235
- "tags": [],
236
- "text": ""
237
- },
238
- "complexType": {
239
- "original": "{ data?: any, name: string }",
240
- "resolved": "{ data?: any; name: string; }",
241
- "references": {}
242
- }
243
- }, {
244
- "method": "submitted",
245
- "name": "submitted",
246
- "bubbles": true,
247
- "cancelable": true,
248
- "composed": true,
249
- "docs": {
250
- "tags": [],
251
- "text": ""
252
- },
253
- "complexType": {
254
- "original": "{ data: any }",
255
- "resolved": "{ data: any; }",
256
- "references": {}
257
- }
258
- }];
259
- }
260
- }