@justifi/webcomponents 4.6.3 → 4.7.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 (647) hide show
  1. package/dist/cjs/{Api-9356c444.js → Api-548eaa62.js} +3 -17
  2. package/dist/cjs/Api-548eaa62.js.map +1 -0
  3. package/dist/cjs/Pagination-cae1dcbd.js +15 -0
  4. package/dist/cjs/Pagination-cae1dcbd.js.map +1 -0
  5. package/dist/cjs/{Payout-4906a445.js → Payout-68a99ee3.js} +22 -1
  6. package/dist/cjs/Payout-68a99ee3.js.map +1 -0
  7. package/dist/cjs/SubAccount-5d77adbf.js +109 -0
  8. package/dist/cjs/SubAccount-5d77adbf.js.map +1 -0
  9. package/dist/cjs/additional-questions-details_5.cjs.entry.js +84 -0
  10. package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{business-form-schema-725ec6f5.js → business-form-schema-fe831c30.js} +2 -2
  12. package/dist/cjs/business-form-schema-fe831c30.js.map +1 -0
  13. package/dist/cjs/form-1e732a9d.js +731 -0
  14. package/dist/cjs/form-1e732a9d.js.map +1 -0
  15. package/dist/cjs/form-control-datepart_2.cjs.entry.js +44 -20
  16. package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -1
  17. package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
  18. package/dist/cjs/form-control-number_3.cjs.entry.js +17 -32
  19. package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -1
  20. package/dist/cjs/helpers-c505d861.js +28 -0
  21. package/dist/cjs/helpers-c505d861.js.map +1 -0
  22. package/dist/cjs/{index-3533152c.js → index-ce7d512e.js} +5 -1
  23. package/dist/cjs/index-ce7d512e.js.map +1 -0
  24. package/dist/cjs/{index.esm-84a0a7a8.js → index.esm-91ec051e.js} +123 -1
  25. package/dist/cjs/index.esm-91ec051e.js.map +1 -0
  26. package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_6.cjs.entry.js} +41 -16
  27. package/dist/cjs/justifi-additional-questions_6.cjs.entry.js.map +1 -0
  28. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
  29. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  30. package/dist/cjs/justifi-business-details.cjs.entry.js +76 -0
  31. package/dist/cjs/justifi-business-details.cjs.entry.js.map +1 -0
  32. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +130 -0
  33. package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +1 -0
  34. package/dist/cjs/justifi-business-form.cjs.entry.js +12 -756
  35. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -1
  36. package/dist/cjs/justifi-business-list.cjs.entry.js +36 -67
  37. package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -1
  38. package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-details.cjs.entry.js +4 -8
  40. package/dist/cjs/justifi-details.cjs.entry.js.map +1 -1
  41. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +88 -0
  42. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +1 -0
  43. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
  44. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -1
  45. package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -3
  46. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  47. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +6 -6
  48. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  49. package/dist/cjs/justifi-payments-list.cjs.entry.js +22 -17
  50. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  51. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -1
  53. package/dist/cjs/justifi-payouts-list.cjs.entry.js +23 -18
  54. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -1
  55. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +23 -18
  56. package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -1
  57. package/dist/cjs/justifi-refund-form.cjs.entry.js +104 -0
  58. package/dist/cjs/justifi-refund-form.cjs.entry.js.map +1 -0
  59. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +81 -0
  60. package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +1 -0
  61. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +104 -0
  62. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +1 -0
  63. package/dist/cjs/justifi-table_2.cjs.entry.js +80 -0
  64. package/dist/cjs/justifi-table_2.cjs.entry.js.map +1 -0
  65. package/dist/cjs/loader.cjs.js +2 -2
  66. package/dist/cjs/select-input_2.cjs.entry.js +1 -1
  67. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +72 -0
  68. package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +1 -0
  69. package/dist/cjs/subaccount-bank-details.cjs.entry.js +24 -0
  70. package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +1 -0
  71. package/dist/cjs/subaccount-terms-details.cjs.entry.js +24 -0
  72. package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +1 -0
  73. package/dist/cjs/utils-aaa6ab8b.js +37 -0
  74. package/dist/cjs/utils-aaa6ab8b.js.map +1 -0
  75. package/dist/cjs/{utils-0fd61dbd.js → utils-d9cbe26f.js} +91 -18
  76. package/dist/cjs/utils-d9cbe26f.js.map +1 -0
  77. package/dist/cjs/webcomponents.cjs.js +2 -2
  78. package/dist/collection/api/Api.js +2 -16
  79. package/dist/collection/api/Api.js.map +1 -1
  80. package/dist/collection/api/Business.js +0 -2
  81. package/dist/collection/api/Business.js.map +1 -1
  82. package/dist/collection/api/Pagination.js +8 -8
  83. package/dist/collection/api/Pagination.js.map +1 -1
  84. package/dist/collection/api/Payment.js +20 -0
  85. package/dist/collection/api/Payment.js.map +1 -1
  86. package/dist/collection/api/SubAccount.js +104 -0
  87. package/dist/collection/api/SubAccount.js.map +1 -0
  88. package/dist/collection/api/mockData/MockOnboardingData.js +118 -0
  89. package/dist/collection/api/mockData/MockOnboardingData.js.map +1 -0
  90. package/dist/collection/api/mockData/MockSubAccount.js +103 -0
  91. package/dist/collection/api/mockData/MockSubAccount.js.map +1 -0
  92. package/dist/collection/assets/info-icon.svg +5 -0
  93. package/dist/collection/collection-manifest.json +19 -1
  94. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +1 -9
  95. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  96. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +7341 -0
  97. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +57 -0
  98. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +1 -0
  99. package/dist/collection/components/business-details/business-details.css +6439 -0
  100. package/dist/collection/components/business-details/business-details.js +127 -0
  101. package/dist/collection/components/business-details/business-details.js.map +1 -0
  102. package/dist/collection/components/business-details/business-details.stories.js +23 -0
  103. package/dist/collection/components/business-details/business-details.stories.js.map +1 -0
  104. package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +7341 -0
  105. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +50 -0
  106. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +1 -0
  107. package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +7341 -0
  108. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +49 -0
  109. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +1 -0
  110. package/dist/collection/components/business-details/owner-details/owner-details.css +7341 -0
  111. package/dist/collection/components/business-details/owner-details/owner-details.js +57 -0
  112. package/dist/collection/components/business-details/owner-details/owner-details.js.map +1 -0
  113. package/dist/collection/components/business-details/representative-details/representative-details.css +7341 -0
  114. package/dist/collection/components/business-details/representative-details/representative-details.js +58 -0
  115. package/dist/collection/components/business-details/representative-details/representative-details.js.map +1 -0
  116. package/dist/collection/components/business-form/additional-questions/additional-questions.js +1 -1
  117. package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -1
  118. package/dist/collection/components/business-form/business-form-schema.js +1 -1
  119. package/dist/collection/components/business-form/business-form-schema.js.map +1 -1
  120. package/dist/collection/components/business-form/business-form-stepped.css +7929 -0
  121. package/dist/collection/components/business-form/business-form-stepped.js +194 -0
  122. package/dist/collection/components/business-form/business-form-stepped.js.map +1 -0
  123. package/dist/collection/components/business-form/business-form-stepped.stories.js +131 -0
  124. package/dist/collection/components/business-form/business-form-stepped.stories.js.map +1 -0
  125. package/dist/collection/components/business-form/business-form.js +4 -24
  126. package/dist/collection/components/business-form/business-form.js.map +1 -1
  127. package/dist/collection/components/business-form/business-form.stories.js +20 -8
  128. package/dist/collection/components/business-form/business-form.stories.js.map +1 -1
  129. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -5
  130. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -1
  131. package/dist/collection/components/business-form/business-owners/business-owners.js +4 -5
  132. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -1
  133. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -1
  134. package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
  135. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -1
  136. package/dist/collection/components/business-form/helpers.js +23 -0
  137. package/dist/collection/components/business-form/helpers.js.map +1 -0
  138. package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +1 -0
  139. package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.js +3 -21
  140. package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +1 -0
  141. package/dist/collection/components/business-list/business-list.js +70 -84
  142. package/dist/collection/components/business-list/business-list.js.map +1 -1
  143. package/dist/collection/components/business-list/business-list.stories.js +2 -2
  144. package/dist/collection/components/business-list/business-list.stories.js.map +1 -1
  145. package/dist/collection/components/card-form/card-form.stories.js +1 -9
  146. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  147. package/dist/collection/components/details/details.js +2 -21
  148. package/dist/collection/components/details/details.js.map +1 -1
  149. package/dist/collection/components/details/utils.js +7 -8
  150. package/dist/collection/components/details/utils.js.map +1 -1
  151. package/dist/collection/components/form/form-control-number-masked.js +1 -1
  152. package/dist/collection/components/form/form-control-number-masked.js.map +1 -1
  153. package/dist/collection/components/form/form.js +4 -4
  154. package/dist/collection/components/form/form.js.map +1 -1
  155. package/dist/collection/components/pagination-menu/pagination-menu.js +78 -0
  156. package/dist/collection/components/pagination-menu/pagination-menu.js.map +1 -0
  157. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
  158. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +153 -0
  159. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +1 -0
  160. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +32 -0
  161. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +1 -0
  162. package/dist/collection/components/payment-details/payment-details.js +11 -6
  163. package/dist/collection/components/payment-details/payment-details.js.map +1 -1
  164. package/dist/collection/components/payment-details/payment-details.stories.js +3 -4
  165. package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -1
  166. package/dist/collection/components/payment-form/payment-form.stories.js +2 -11
  167. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  168. package/dist/collection/components/payment-method-form/payment-method-form.js +6 -6
  169. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  170. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +14 -14
  171. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -1
  172. package/dist/collection/components/payments-list/payments-list.js +20 -13
  173. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  174. package/dist/collection/components/payments-list/payments-list.stories.js +3 -4
  175. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
  176. package/dist/collection/components/payout-details/payout-details.js +11 -3
  177. package/dist/collection/components/payout-details/payout-details.js.map +1 -1
  178. package/dist/collection/components/payout-details/payout-details.stories.js +3 -4
  179. package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -1
  180. package/dist/collection/components/payouts-list/payouts-list.js +21 -14
  181. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -1
  182. package/dist/collection/components/payouts-list/payouts-list.stories.js +3 -4
  183. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
  184. package/dist/collection/components/proceeds-list/proceeds-list.js +21 -14
  185. package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -1
  186. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +2 -2
  187. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -1
  188. package/dist/collection/components/refund-form/refund-form-schema.js +14 -0
  189. package/dist/collection/components/refund-form/refund-form-schema.js.map +1 -0
  190. package/dist/collection/components/refund-form/refund-form.css +7785 -0
  191. package/dist/collection/components/refund-form/refund-form.js +228 -0
  192. package/dist/collection/components/refund-form/refund-form.js.map +1 -0
  193. package/dist/collection/components/refund-form/refund-form.stories.js +169 -0
  194. package/dist/collection/components/refund-form/refund-form.stories.js.map +1 -0
  195. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +7345 -0
  196. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +71 -0
  197. package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +1 -0
  198. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +7345 -0
  199. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +49 -0
  200. package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +1 -0
  201. package/dist/collection/components/subaccount-details/subaccount-details.css +7983 -0
  202. package/dist/collection/components/subaccount-details/subaccount-details.js +147 -0
  203. package/dist/collection/components/subaccount-details/subaccount-details.js.map +1 -0
  204. package/dist/collection/components/subaccount-details/subaccount-details.stories.js +25 -0
  205. package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +1 -0
  206. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +7345 -0
  207. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +51 -0
  208. package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +1 -0
  209. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +7345 -0
  210. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +49 -0
  211. package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +1 -0
  212. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +7345 -0
  213. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +50 -0
  214. package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +1 -0
  215. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +7345 -0
  216. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +49 -0
  217. package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +1 -0
  218. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +22 -0
  219. package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +1 -0
  220. package/dist/collection/components/subaccounts-list/subaccounts-list.css +3 -0
  221. package/dist/collection/components/subaccounts-list/subaccounts-list.js +179 -0
  222. package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +1 -0
  223. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +69 -0
  224. package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +1 -0
  225. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +10 -0
  226. package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +1 -0
  227. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +34 -0
  228. package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +1 -0
  229. package/dist/collection/components/table/table.js +27 -12
  230. package/dist/collection/components/table/table.js.map +1 -1
  231. package/dist/collection/components/table/test/table.spec.js +2 -2
  232. package/dist/collection/components/table/test/table.spec.js.map +1 -1
  233. package/dist/collection/utils/utils.js +91 -17
  234. package/dist/collection/utils/utils.js.map +1 -1
  235. package/dist/components/Api.js +2 -16
  236. package/dist/components/Api.js.map +1 -1
  237. package/dist/components/Pagination.js +12 -0
  238. package/dist/components/Pagination.js.map +1 -0
  239. package/dist/components/Payout.js +21 -1
  240. package/dist/components/Payout.js.map +1 -1
  241. package/dist/components/SubAccount.js +107 -0
  242. package/dist/components/SubAccount.js.map +1 -0
  243. package/dist/components/additional-questions-details.d.ts +11 -0
  244. package/dist/components/additional-questions-details.js +8 -0
  245. package/dist/components/additional-questions-details.js.map +1 -0
  246. package/dist/{cjs/justifi-table.cjs.entry.js → components/additional-questions-details2.js} +30 -61
  247. package/dist/components/additional-questions-details2.js.map +1 -0
  248. package/dist/components/additional-questions.js +1 -1
  249. package/dist/components/additional-questions.js.map +1 -1
  250. package/dist/components/business-generic-info.js +2 -5
  251. package/dist/components/business-generic-info.js.map +1 -1
  252. package/dist/components/business-owners.js +4 -5
  253. package/dist/components/business-owners.js.map +1 -1
  254. package/dist/components/business-representative.js +1 -1
  255. package/dist/components/business-representative.js.map +1 -1
  256. package/dist/components/details.js +6 -33
  257. package/dist/components/details.js.map +1 -1
  258. package/dist/components/form-control-number-masked2.js +1 -1
  259. package/dist/components/form-control-number-masked2.js.map +1 -1
  260. package/dist/components/form.js +729 -0
  261. package/dist/components/form.js.map +1 -0
  262. package/dist/components/generic-info-details.d.ts +11 -0
  263. package/dist/components/generic-info-details.js +8 -0
  264. package/dist/components/generic-info-details.js.map +1 -0
  265. package/dist/components/generic-info-details2.js +38 -0
  266. package/dist/components/generic-info-details2.js.map +1 -0
  267. package/dist/components/helpers.js +26 -0
  268. package/dist/components/helpers.js.map +1 -0
  269. package/dist/components/index.esm.js +122 -1
  270. package/dist/components/index.esm.js.map +1 -1
  271. package/dist/components/justifi-business-details.d.ts +11 -0
  272. package/dist/components/justifi-business-details.js +126 -0
  273. package/dist/components/justifi-business-details.js.map +1 -0
  274. package/dist/components/justifi-business-form-stepped.d.ts +11 -0
  275. package/dist/components/justifi-business-form-stepped.js +221 -0
  276. package/dist/components/justifi-business-form-stepped.js.map +1 -0
  277. package/dist/components/justifi-business-form.js +6 -750
  278. package/dist/components/justifi-business-form.js.map +1 -1
  279. package/dist/components/justifi-business-list.js +42 -65
  280. package/dist/components/justifi-business-list.js.map +1 -1
  281. package/dist/components/justifi-payment-balance-transactions.d.ts +11 -0
  282. package/dist/components/justifi-payment-balance-transactions.js +123 -0
  283. package/dist/components/justifi-payment-balance-transactions.js.map +1 -0
  284. package/dist/components/justifi-payment-details.js +6 -6
  285. package/dist/components/justifi-payment-details.js.map +1 -1
  286. package/dist/components/justifi-payment-form.js +3 -2
  287. package/dist/components/justifi-payment-form.js.map +1 -1
  288. package/dist/components/justifi-payments-list.js +29 -16
  289. package/dist/components/justifi-payments-list.js.map +1 -1
  290. package/dist/components/justifi-payout-details.js +6 -4
  291. package/dist/components/justifi-payout-details.js.map +1 -1
  292. package/dist/components/justifi-payouts-list.js +30 -17
  293. package/dist/components/justifi-payouts-list.js.map +1 -1
  294. package/dist/components/justifi-proceeds-list.js +29 -16
  295. package/dist/components/justifi-proceeds-list.js.map +1 -1
  296. package/dist/components/justifi-refund-form.d.ts +11 -0
  297. package/dist/components/justifi-refund-form.js +139 -0
  298. package/dist/components/justifi-refund-form.js.map +1 -0
  299. package/dist/components/justifi-subaccount-details.d.ts +11 -0
  300. package/dist/components/justifi-subaccount-details.js +133 -0
  301. package/dist/components/justifi-subaccount-details.js.map +1 -0
  302. package/dist/components/justifi-subaccounts-list.d.ts +11 -0
  303. package/dist/components/justifi-subaccounts-list.js +138 -0
  304. package/dist/components/justifi-subaccounts-list.js.map +1 -0
  305. package/dist/components/legal-address-details.d.ts +11 -0
  306. package/dist/components/legal-address-details.js +8 -0
  307. package/dist/components/legal-address-details.js.map +1 -0
  308. package/dist/components/legal-address-details2.js +37 -0
  309. package/dist/components/legal-address-details2.js.map +1 -0
  310. package/dist/components/legal-address-form.js +1 -3
  311. package/dist/components/legal-address-form.js.map +1 -1
  312. package/dist/components/owner-details.d.ts +11 -0
  313. package/dist/components/owner-details.js +8 -0
  314. package/dist/components/owner-details.js.map +1 -0
  315. package/dist/components/owner-details2.js +37 -0
  316. package/dist/components/owner-details2.js.map +1 -0
  317. package/dist/components/pagination-menu.d.ts +11 -0
  318. package/dist/components/pagination-menu.js +8 -0
  319. package/dist/components/pagination-menu.js.map +1 -0
  320. package/dist/{esm/justifi-table.entry.js → components/pagination-menu2.js} +35 -55
  321. package/dist/components/pagination-menu2.js.map +1 -0
  322. package/dist/components/payment-method-form.js +5 -5
  323. package/dist/components/payment-method-form.js.map +1 -1
  324. package/dist/components/representative-details.d.ts +11 -0
  325. package/dist/components/representative-details.js +8 -0
  326. package/dist/components/representative-details.js.map +1 -0
  327. package/dist/components/representative-details2.js +38 -0
  328. package/dist/components/representative-details2.js.map +1 -0
  329. package/dist/components/subaccount-account-details.d.ts +11 -0
  330. package/dist/components/subaccount-account-details.js +8 -0
  331. package/dist/components/subaccount-account-details.js.map +1 -0
  332. package/dist/components/subaccount-account-details2.js +39 -0
  333. package/dist/components/subaccount-account-details2.js.map +1 -0
  334. package/dist/components/subaccount-bank-details.d.ts +11 -0
  335. package/dist/components/subaccount-bank-details.js +40 -0
  336. package/dist/components/subaccount-bank-details.js.map +1 -0
  337. package/dist/components/subaccount-merchant-details.d.ts +11 -0
  338. package/dist/components/subaccount-merchant-details.js +8 -0
  339. package/dist/components/subaccount-merchant-details.js.map +1 -0
  340. package/dist/components/subaccount-merchant-details2.js +38 -0
  341. package/dist/components/subaccount-merchant-details2.js.map +1 -0
  342. package/dist/components/subaccount-owners-details.d.ts +11 -0
  343. package/dist/components/subaccount-owners-details.js +8 -0
  344. package/dist/components/subaccount-owners-details.js.map +1 -0
  345. package/dist/components/subaccount-owners-details2.js +38 -0
  346. package/dist/components/subaccount-owners-details2.js.map +1 -0
  347. package/dist/components/subaccount-representative-details.d.ts +11 -0
  348. package/dist/components/subaccount-representative-details.js +8 -0
  349. package/dist/components/subaccount-representative-details.js.map +1 -0
  350. package/dist/components/subaccount-representative-details2.js +38 -0
  351. package/dist/components/subaccount-representative-details2.js.map +1 -0
  352. package/dist/components/subaccount-terms-details.d.ts +11 -0
  353. package/dist/components/subaccount-terms-details.js +40 -0
  354. package/dist/components/subaccount-terms-details.js.map +1 -0
  355. package/dist/components/table.js +12 -21
  356. package/dist/components/table.js.map +1 -1
  357. package/dist/components/utils.js +27 -3909
  358. package/dist/components/utils.js.map +1 -1
  359. package/dist/{esm/utils-ad0bbe03.js → components/utils2.js} +87 -19
  360. package/dist/{cjs/utils-0fd61dbd.js.map → components/utils2.js.map} +1 -1
  361. package/dist/esm/{Api-0ad45a02.js → Api-c65d3ed8.js} +3 -17
  362. package/dist/esm/Api-c65d3ed8.js.map +1 -0
  363. package/dist/esm/Pagination-31f770d6.js +12 -0
  364. package/dist/esm/Pagination-31f770d6.js.map +1 -0
  365. package/dist/esm/{Payout-9a1f2859.js → Payout-fcf16887.js} +22 -2
  366. package/dist/esm/Payout-fcf16887.js.map +1 -0
  367. package/dist/esm/SubAccount-cf29d050.js +107 -0
  368. package/dist/esm/SubAccount-cf29d050.js.map +1 -0
  369. package/dist/esm/additional-questions-details_5.entry.js +76 -0
  370. package/dist/esm/additional-questions-details_5.entry.js.map +1 -0
  371. package/dist/esm/{business-form-schema-5885d3d6.js → business-form-schema-30a3eadd.js} +2 -2
  372. package/dist/esm/business-form-schema-30a3eadd.js.map +1 -0
  373. package/dist/esm/form-32cf3d1e.js +729 -0
  374. package/dist/esm/form-32cf3d1e.js.map +1 -0
  375. package/dist/esm/form-control-datepart_2.entry.js +44 -20
  376. package/dist/esm/form-control-datepart_2.entry.js.map +1 -1
  377. package/dist/esm/form-control-monetary.entry.js +1 -1
  378. package/dist/esm/form-control-number_3.entry.js +17 -32
  379. package/dist/esm/form-control-number_3.entry.js.map +1 -1
  380. package/dist/esm/helpers-1d5ecdc8.js +26 -0
  381. package/dist/esm/helpers-1d5ecdc8.js.map +1 -0
  382. package/dist/esm/{index-fe877d03.js → index-b02f9a6e.js} +5 -1
  383. package/dist/esm/index-b02f9a6e.js.map +1 -0
  384. package/dist/esm/{index.esm-89fe6af9.js → index.esm-9397ffa0.js} +123 -2
  385. package/dist/esm/index.esm-9397ffa0.js.map +1 -0
  386. package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_6.entry.js} +41 -17
  387. package/dist/esm/justifi-additional-questions_6.entry.js.map +1 -0
  388. package/dist/esm/justifi-bank-account-form.entry.js +1 -1
  389. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  390. package/dist/esm/justifi-business-details.entry.js +72 -0
  391. package/dist/esm/justifi-business-details.entry.js.map +1 -0
  392. package/dist/esm/justifi-business-form-stepped.entry.js +126 -0
  393. package/dist/esm/justifi-business-form-stepped.entry.js.map +1 -0
  394. package/dist/esm/justifi-business-form.entry.js +11 -755
  395. package/dist/esm/justifi-business-form.entry.js.map +1 -1
  396. package/dist/esm/justifi-business-list.entry.js +35 -66
  397. package/dist/esm/justifi-business-list.entry.js.map +1 -1
  398. package/dist/esm/justifi-card-form.entry.js +1 -1
  399. package/dist/esm/justifi-details.entry.js +4 -8
  400. package/dist/esm/justifi-details.entry.js.map +1 -1
  401. package/dist/esm/justifi-payment-balance-transactions.entry.js +84 -0
  402. package/dist/esm/justifi-payment-balance-transactions.entry.js.map +1 -0
  403. package/dist/esm/justifi-payment-details.entry.js +8 -9
  404. package/dist/esm/justifi-payment-details.entry.js.map +1 -1
  405. package/dist/esm/justifi-payment-form.entry.js +4 -3
  406. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  407. package/dist/esm/justifi-payment-method-form.entry.js +6 -6
  408. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  409. package/dist/esm/justifi-payments-list.entry.js +21 -16
  410. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  411. package/dist/esm/justifi-payout-details.entry.js +8 -7
  412. package/dist/esm/justifi-payout-details.entry.js.map +1 -1
  413. package/dist/esm/justifi-payouts-list.entry.js +22 -17
  414. package/dist/esm/justifi-payouts-list.entry.js.map +1 -1
  415. package/dist/esm/justifi-proceeds-list.entry.js +22 -17
  416. package/dist/esm/justifi-proceeds-list.entry.js.map +1 -1
  417. package/dist/esm/justifi-refund-form.entry.js +100 -0
  418. package/dist/esm/justifi-refund-form.entry.js.map +1 -0
  419. package/dist/esm/justifi-subaccount-details.entry.js +77 -0
  420. package/dist/esm/justifi-subaccount-details.entry.js.map +1 -0
  421. package/dist/esm/justifi-subaccounts-list.entry.js +100 -0
  422. package/dist/esm/justifi-subaccounts-list.entry.js.map +1 -0
  423. package/dist/esm/justifi-table_2.entry.js +75 -0
  424. package/dist/esm/justifi-table_2.entry.js.map +1 -0
  425. package/dist/esm/loader.js +3 -3
  426. package/dist/esm/select-input_2.entry.js +1 -1
  427. package/dist/esm/subaccount-account-details_4.entry.js +65 -0
  428. package/dist/esm/subaccount-account-details_4.entry.js.map +1 -0
  429. package/dist/esm/subaccount-bank-details.entry.js +20 -0
  430. package/dist/esm/subaccount-bank-details.entry.js.map +1 -0
  431. package/dist/esm/subaccount-terms-details.entry.js +20 -0
  432. package/dist/esm/subaccount-terms-details.entry.js.map +1 -0
  433. package/dist/esm/utils-d647dd96.js +29 -0
  434. package/dist/esm/utils-d647dd96.js.map +1 -0
  435. package/dist/esm/utils-fcf19fd5.js +3979 -0
  436. package/dist/esm/utils-fcf19fd5.js.map +1 -0
  437. package/dist/esm/webcomponents.js +3 -3
  438. package/dist/types/api/Api.d.ts +4 -4
  439. package/dist/types/api/Business.d.ts +12 -4
  440. package/dist/types/api/Pagination.d.ts +12 -6
  441. package/dist/types/api/Payment.d.ts +28 -0
  442. package/dist/types/api/SubAccount.d.ts +165 -0
  443. package/dist/types/api/mockData/MockOnboardingData.d.ts +8 -0
  444. package/dist/types/api/mockData/MockSubAccount.d.ts +3 -0
  445. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -7
  446. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +13 -0
  447. package/dist/types/components/business-details/business-details.d.ts +28 -0
  448. package/dist/types/components/business-details/business-details.stories.d.ts +7 -0
  449. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +5 -0
  450. package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +5 -0
  451. package/dist/types/components/business-details/owner-details/owner-details.d.ts +13 -0
  452. package/dist/types/components/business-details/representative-details/representative-details.d.ts +13 -0
  453. package/dist/types/components/business-form/business-form-stepped.d.ts +29 -0
  454. package/dist/types/components/business-form/business-form-stepped.stories.d.ts +27 -0
  455. package/dist/types/components/business-form/business-form.d.ts +0 -1
  456. package/dist/types/components/business-form/business-form.stories.d.ts +6 -0
  457. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +5 -1
  458. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +2 -0
  459. package/dist/types/components/business-form/helpers.d.ts +1 -0
  460. package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.d.ts +1 -2
  461. package/dist/types/components/business-list/business-list.d.ts +34 -21
  462. package/dist/types/components/card-form/card-form.stories.d.ts +0 -7
  463. package/dist/types/components/details/details.d.ts +0 -3
  464. package/dist/types/components/details/utils.d.ts +5 -2
  465. package/dist/types/components/form/form.d.ts +1 -1
  466. package/dist/types/components/pagination-menu/pagination-menu.d.ts +10 -0
  467. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +17 -0
  468. package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +8 -0
  469. package/dist/types/components/payment-details/payment-details.d.ts +8 -0
  470. package/dist/types/components/payment-form/payment-form.stories.d.ts +1 -9
  471. package/dist/types/components/payments-list/payments-list.d.ts +5 -4
  472. package/dist/types/components/payout-details/payout-details.d.ts +8 -0
  473. package/dist/types/components/payouts-list/payouts-list.d.ts +5 -4
  474. package/dist/types/components/proceeds-list/proceeds-list.d.ts +5 -3
  475. package/dist/types/components/refund-form/refund-form-schema.d.ts +11 -0
  476. package/dist/types/components/refund-form/refund-form.d.ts +58 -0
  477. package/dist/types/components/refund-form/refund-form.stories.d.ts +27 -0
  478. package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +6 -0
  479. package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +5 -0
  480. package/dist/types/components/subaccount-details/subaccount-details.d.ts +16 -0
  481. package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +7 -0
  482. package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +5 -0
  483. package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +5 -0
  484. package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +5 -0
  485. package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +5 -0
  486. package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +19 -0
  487. package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +9 -0
  488. package/dist/types/components/table/table.d.ts +3 -7
  489. package/dist/types/components.d.ts +602 -7
  490. package/dist/types/utils/utils.d.ts +18 -0
  491. package/dist/webcomponents/p-014b2f3a.entry.js +2 -0
  492. package/dist/webcomponents/p-014b2f3a.entry.js.map +1 -0
  493. package/dist/webcomponents/p-05cc444a.entry.js +2 -0
  494. package/dist/webcomponents/p-05cc444a.entry.js.map +1 -0
  495. package/dist/webcomponents/p-07059336.entry.js +2 -0
  496. package/dist/webcomponents/p-07059336.entry.js.map +1 -0
  497. package/dist/webcomponents/{p-d92116e6.entry.js → p-08311783.entry.js} +2 -2
  498. package/dist/webcomponents/p-0c5afcbc.js +3 -0
  499. package/dist/webcomponents/p-0c5afcbc.js.map +1 -0
  500. package/dist/webcomponents/p-0d5d02d7.js +2 -0
  501. package/dist/webcomponents/p-0d5d02d7.js.map +1 -0
  502. package/dist/webcomponents/p-14391341.entry.js +2 -0
  503. package/dist/webcomponents/p-14391341.entry.js.map +1 -0
  504. package/dist/webcomponents/{p-2e63d309.entry.js → p-1b5bd8f8.entry.js} +2 -2
  505. package/dist/webcomponents/p-1b5bd8f8.entry.js.map +1 -0
  506. package/dist/webcomponents/{p-cd0eca25.entry.js → p-1d42e416.entry.js} +2 -2
  507. package/dist/webcomponents/p-23f600d3.entry.js +2 -0
  508. package/dist/webcomponents/p-23f600d3.entry.js.map +1 -0
  509. package/dist/webcomponents/p-26b1a61d.entry.js +2 -0
  510. package/dist/webcomponents/p-26b1a61d.entry.js.map +1 -0
  511. package/dist/webcomponents/p-2806a2d6.js +2 -0
  512. package/dist/webcomponents/p-2806a2d6.js.map +1 -0
  513. package/dist/webcomponents/{p-640bfa9f.entry.js → p-2ac4e73d.entry.js} +2 -2
  514. package/dist/webcomponents/p-2f741cd2.entry.js +2 -0
  515. package/dist/webcomponents/p-2f741cd2.entry.js.map +1 -0
  516. package/dist/webcomponents/p-37b8106d.entry.js +2 -0
  517. package/dist/webcomponents/p-37b8106d.entry.js.map +1 -0
  518. package/dist/webcomponents/p-3e0f6758.entry.js +2 -0
  519. package/dist/webcomponents/p-3e0f6758.entry.js.map +1 -0
  520. package/dist/webcomponents/p-43c04b00.entry.js +2 -0
  521. package/dist/webcomponents/p-43c04b00.entry.js.map +1 -0
  522. package/dist/webcomponents/{p-9346ae33.js → p-4d37473a.js} +2 -2
  523. package/dist/webcomponents/{p-9346ae33.js.map → p-4d37473a.js.map} +1 -1
  524. package/dist/webcomponents/p-526cb161.js +2 -0
  525. package/dist/webcomponents/p-526cb161.js.map +1 -0
  526. package/dist/webcomponents/{p-f9e127a5.js → p-59860ac8.js} +2 -2
  527. package/dist/webcomponents/p-59860ac8.js.map +1 -0
  528. package/dist/webcomponents/{p-b9096cd6.entry.js → p-5b378f8d.entry.js} +2 -2
  529. package/dist/webcomponents/p-5b378f8d.entry.js.map +1 -0
  530. package/dist/webcomponents/{p-2b6f5e35.entry.js → p-5dd71882.entry.js} +2 -2
  531. package/dist/webcomponents/p-5dd71882.entry.js.map +1 -0
  532. package/dist/webcomponents/{p-051a4f1e.entry.js → p-5f434e8b.entry.js} +2 -2
  533. package/dist/webcomponents/{p-051a4f1e.entry.js.map → p-5f434e8b.entry.js.map} +1 -1
  534. package/dist/webcomponents/{p-1beaaba3.entry.js → p-6642d95b.entry.js} +2 -2
  535. package/dist/webcomponents/p-6b5fcbff.entry.js +2 -0
  536. package/dist/webcomponents/p-6b5fcbff.entry.js.map +1 -0
  537. package/dist/webcomponents/p-756629e9.entry.js +2 -0
  538. package/dist/webcomponents/p-756629e9.entry.js.map +1 -0
  539. package/dist/webcomponents/p-76983a7e.js +2 -0
  540. package/dist/webcomponents/p-76983a7e.js.map +1 -0
  541. package/dist/webcomponents/p-7d58db66.js +2 -0
  542. package/dist/webcomponents/p-7d58db66.js.map +1 -0
  543. package/dist/webcomponents/p-8471740f.entry.js +2 -0
  544. package/dist/webcomponents/p-8471740f.entry.js.map +1 -0
  545. package/dist/webcomponents/{p-c46241ba.js → p-8f37e3ee.js} +2 -2
  546. package/dist/webcomponents/p-8f37e3ee.js.map +1 -0
  547. package/dist/webcomponents/p-92872bbe.entry.js +2 -0
  548. package/dist/webcomponents/p-92872bbe.entry.js.map +1 -0
  549. package/dist/webcomponents/p-99b3925f.entry.js +2 -0
  550. package/dist/webcomponents/{p-f6cc37a6.entry.js.map → p-99b3925f.entry.js.map} +1 -1
  551. package/dist/webcomponents/p-a1a94012.entry.js +2 -0
  552. package/dist/webcomponents/p-a1a94012.entry.js.map +1 -0
  553. package/dist/webcomponents/p-a3211bb2.js +2 -0
  554. package/dist/webcomponents/p-a3211bb2.js.map +1 -0
  555. package/dist/webcomponents/p-b157f6ae.js +2 -0
  556. package/dist/webcomponents/p-b157f6ae.js.map +1 -0
  557. package/dist/webcomponents/{p-a922b908.entry.js → p-b4f185c5.entry.js} +2 -2
  558. package/dist/webcomponents/p-c52d63b1.entry.js +2 -0
  559. package/dist/webcomponents/p-c52d63b1.entry.js.map +1 -0
  560. package/dist/webcomponents/p-c9373e73.entry.js +2 -0
  561. package/dist/webcomponents/p-c9373e73.entry.js.map +1 -0
  562. package/dist/webcomponents/p-d18c0273.entry.js +2 -0
  563. package/dist/webcomponents/p-d18c0273.entry.js.map +1 -0
  564. package/dist/webcomponents/p-e83f93cd.entry.js +2 -0
  565. package/dist/webcomponents/p-e83f93cd.entry.js.map +1 -0
  566. package/dist/webcomponents/webcomponents.esm.js +1 -1
  567. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  568. package/package.json +3 -3
  569. package/dist/cjs/Api-9356c444.js.map +0 -1
  570. package/dist/cjs/Payout-4906a445.js.map +0 -1
  571. package/dist/cjs/business-form-schema-725ec6f5.js.map +0 -1
  572. package/dist/cjs/form-control-select.cjs.entry.js +0 -47
  573. package/dist/cjs/form-control-select.cjs.entry.js.map +0 -1
  574. package/dist/cjs/index-3533152c.js.map +0 -1
  575. package/dist/cjs/index.esm-84a0a7a8.js.map +0 -1
  576. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +0 -1
  577. package/dist/cjs/justifi-table.cjs.entry.js.map +0 -1
  578. package/dist/cjs/table-utils-617126e5.js +0 -13
  579. package/dist/cjs/table-utils-617126e5.js.map +0 -1
  580. package/dist/cjs/utils-d95b09c2.js +0 -35
  581. package/dist/cjs/utils-d95b09c2.js.map +0 -1
  582. package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +0 -1
  583. package/dist/collection/components/legal-address-form/legal-address-form.js.map +0 -1
  584. package/dist/collection/components/table/table-utils.js +0 -8
  585. package/dist/collection/components/table/table-utils.js.map +0 -1
  586. package/dist/config.js +0 -6
  587. package/dist/config.js.map +0 -1
  588. package/dist/esm/Api-0ad45a02.js.map +0 -1
  589. package/dist/esm/Payout-9a1f2859.js.map +0 -1
  590. package/dist/esm/business-form-schema-5885d3d6.js.map +0 -1
  591. package/dist/esm/form-control-select.entry.js +0 -43
  592. package/dist/esm/form-control-select.entry.js.map +0 -1
  593. package/dist/esm/index-fe877d03.js.map +0 -1
  594. package/dist/esm/index.esm-89fe6af9.js.map +0 -1
  595. package/dist/esm/justifi-additional-questions_5.entry.js.map +0 -1
  596. package/dist/esm/justifi-table.entry.js.map +0 -1
  597. package/dist/esm/table-utils-6cdcaa8c.js +0 -11
  598. package/dist/esm/table-utils-6cdcaa8c.js.map +0 -1
  599. package/dist/esm/utils-1e7d6279.js +0 -28
  600. package/dist/esm/utils-1e7d6279.js.map +0 -1
  601. package/dist/esm/utils-ad0bbe03.js.map +0 -1
  602. package/dist/types/components/table/table-utils.d.ts +0 -14
  603. package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +0 -5
  604. package/dist/webcomponents/p-2284ae38.entry.js +0 -2
  605. package/dist/webcomponents/p-2284ae38.entry.js.map +0 -1
  606. package/dist/webcomponents/p-2833e25f.entry.js +0 -2
  607. package/dist/webcomponents/p-2833e25f.entry.js.map +0 -1
  608. package/dist/webcomponents/p-2b6f5e35.entry.js.map +0 -1
  609. package/dist/webcomponents/p-2e63d309.entry.js.map +0 -1
  610. package/dist/webcomponents/p-2e66512d.entry.js +0 -2
  611. package/dist/webcomponents/p-2e66512d.entry.js.map +0 -1
  612. package/dist/webcomponents/p-4dec9925.entry.js +0 -2
  613. package/dist/webcomponents/p-4dec9925.entry.js.map +0 -1
  614. package/dist/webcomponents/p-641883b2.entry.js +0 -2
  615. package/dist/webcomponents/p-641883b2.entry.js.map +0 -1
  616. package/dist/webcomponents/p-65f35b93.js +0 -2
  617. package/dist/webcomponents/p-65f35b93.js.map +0 -1
  618. package/dist/webcomponents/p-835a5be8.entry.js +0 -2
  619. package/dist/webcomponents/p-835a5be8.entry.js.map +0 -1
  620. package/dist/webcomponents/p-ab0756ff.js +0 -2
  621. package/dist/webcomponents/p-ab0756ff.js.map +0 -1
  622. package/dist/webcomponents/p-b9096cd6.entry.js.map +0 -1
  623. package/dist/webcomponents/p-c46241ba.js.map +0 -1
  624. package/dist/webcomponents/p-ccb0e1c5.js +0 -2
  625. package/dist/webcomponents/p-ccb0e1c5.js.map +0 -1
  626. package/dist/webcomponents/p-db9945b1.entry.js +0 -2
  627. package/dist/webcomponents/p-db9945b1.entry.js.map +0 -1
  628. package/dist/webcomponents/p-e1f6c8ec.entry.js +0 -2
  629. package/dist/webcomponents/p-e1f6c8ec.entry.js.map +0 -1
  630. package/dist/webcomponents/p-e6695628.js +0 -2
  631. package/dist/webcomponents/p-e6695628.js.map +0 -1
  632. package/dist/webcomponents/p-e70b2a21.js +0 -3
  633. package/dist/webcomponents/p-e70b2a21.js.map +0 -1
  634. package/dist/webcomponents/p-f6cc37a6.entry.js +0 -2
  635. package/dist/webcomponents/p-f8067330.entry.js +0 -2
  636. package/dist/webcomponents/p-f8067330.entry.js.map +0 -1
  637. package/dist/webcomponents/p-f985f5ab.entry.js +0 -2
  638. package/dist/webcomponents/p-f985f5ab.entry.js.map +0 -1
  639. package/dist/webcomponents/p-f9e127a5.js.map +0 -1
  640. /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.js +0 -0
  641. /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.css +0 -0
  642. /package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.d.ts +0 -0
  643. /package/dist/webcomponents/{p-d92116e6.entry.js.map → p-08311783.entry.js.map} +0 -0
  644. /package/dist/webcomponents/{p-cd0eca25.entry.js.map → p-1d42e416.entry.js.map} +0 -0
  645. /package/dist/webcomponents/{p-640bfa9f.entry.js.map → p-2ac4e73d.entry.js.map} +0 -0
  646. /package/dist/webcomponents/{p-1beaaba3.entry.js.map → p-6642d95b.entry.js.map} +0 -0
  647. /package/dist/webcomponents/{p-a922b908.entry.js.map → p-b4f185c5.entry.js.map} +0 -0
@@ -0,0 +1,731 @@
1
+ 'use strict';
2
+
3
+ function isFunction(value) {
4
+ return typeof value === 'function';
5
+ }
6
+
7
+ function createErrorClass(createImpl) {
8
+ const _super = (instance) => {
9
+ Error.call(instance);
10
+ instance.stack = new Error().stack;
11
+ };
12
+ const ctorFunc = createImpl(_super);
13
+ ctorFunc.prototype = Object.create(Error.prototype);
14
+ ctorFunc.prototype.constructor = ctorFunc;
15
+ return ctorFunc;
16
+ }
17
+
18
+ const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {
19
+ _super(this);
20
+ this.message = errors
21
+ ? `${errors.length} errors occurred during unsubscription:
22
+ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}`
23
+ : '';
24
+ this.name = 'UnsubscriptionError';
25
+ this.errors = errors;
26
+ });
27
+
28
+ function arrRemove(arr, item) {
29
+ if (arr) {
30
+ const index = arr.indexOf(item);
31
+ 0 <= index && arr.splice(index, 1);
32
+ }
33
+ }
34
+
35
+ class Subscription {
36
+ constructor(initialTeardown) {
37
+ this.initialTeardown = initialTeardown;
38
+ this.closed = false;
39
+ this._parentage = null;
40
+ this._finalizers = null;
41
+ }
42
+ unsubscribe() {
43
+ let errors;
44
+ if (!this.closed) {
45
+ this.closed = true;
46
+ const { _parentage } = this;
47
+ if (_parentage) {
48
+ this._parentage = null;
49
+ if (Array.isArray(_parentage)) {
50
+ for (const parent of _parentage) {
51
+ parent.remove(this);
52
+ }
53
+ }
54
+ else {
55
+ _parentage.remove(this);
56
+ }
57
+ }
58
+ const { initialTeardown: initialFinalizer } = this;
59
+ if (isFunction(initialFinalizer)) {
60
+ try {
61
+ initialFinalizer();
62
+ }
63
+ catch (e) {
64
+ errors = e instanceof UnsubscriptionError ? e.errors : [e];
65
+ }
66
+ }
67
+ const { _finalizers } = this;
68
+ if (_finalizers) {
69
+ this._finalizers = null;
70
+ for (const finalizer of _finalizers) {
71
+ try {
72
+ execFinalizer(finalizer);
73
+ }
74
+ catch (err) {
75
+ errors = errors !== null && errors !== void 0 ? errors : [];
76
+ if (err instanceof UnsubscriptionError) {
77
+ errors = [...errors, ...err.errors];
78
+ }
79
+ else {
80
+ errors.push(err);
81
+ }
82
+ }
83
+ }
84
+ }
85
+ if (errors) {
86
+ throw new UnsubscriptionError(errors);
87
+ }
88
+ }
89
+ }
90
+ add(teardown) {
91
+ var _a;
92
+ if (teardown && teardown !== this) {
93
+ if (this.closed) {
94
+ execFinalizer(teardown);
95
+ }
96
+ else {
97
+ if (teardown instanceof Subscription) {
98
+ if (teardown.closed || teardown._hasParent(this)) {
99
+ return;
100
+ }
101
+ teardown._addParent(this);
102
+ }
103
+ (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
104
+ }
105
+ }
106
+ }
107
+ _hasParent(parent) {
108
+ const { _parentage } = this;
109
+ return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));
110
+ }
111
+ _addParent(parent) {
112
+ const { _parentage } = this;
113
+ this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;
114
+ }
115
+ _removeParent(parent) {
116
+ const { _parentage } = this;
117
+ if (_parentage === parent) {
118
+ this._parentage = null;
119
+ }
120
+ else if (Array.isArray(_parentage)) {
121
+ arrRemove(_parentage, parent);
122
+ }
123
+ }
124
+ remove(teardown) {
125
+ const { _finalizers } = this;
126
+ _finalizers && arrRemove(_finalizers, teardown);
127
+ if (teardown instanceof Subscription) {
128
+ teardown._removeParent(this);
129
+ }
130
+ }
131
+ }
132
+ Subscription.EMPTY = (() => {
133
+ const empty = new Subscription();
134
+ empty.closed = true;
135
+ return empty;
136
+ })();
137
+ const EMPTY_SUBSCRIPTION = Subscription.EMPTY;
138
+ function isSubscription(value) {
139
+ return (value instanceof Subscription ||
140
+ (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
141
+ }
142
+ function execFinalizer(finalizer) {
143
+ if (isFunction(finalizer)) {
144
+ finalizer();
145
+ }
146
+ else {
147
+ finalizer.unsubscribe();
148
+ }
149
+ }
150
+
151
+ const config = {
152
+ onUnhandledError: null,
153
+ onStoppedNotification: null,
154
+ Promise: undefined,
155
+ useDeprecatedSynchronousErrorHandling: false,
156
+ useDeprecatedNextContext: false,
157
+ };
158
+
159
+ const timeoutProvider = {
160
+ setTimeout(handler, timeout, ...args) {
161
+ const { delegate } = timeoutProvider;
162
+ if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
163
+ return delegate.setTimeout(handler, timeout, ...args);
164
+ }
165
+ return setTimeout(handler, timeout, ...args);
166
+ },
167
+ clearTimeout(handle) {
168
+ const { delegate } = timeoutProvider;
169
+ return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);
170
+ },
171
+ delegate: undefined,
172
+ };
173
+
174
+ function reportUnhandledError(err) {
175
+ timeoutProvider.setTimeout(() => {
176
+ const { onUnhandledError } = config;
177
+ if (onUnhandledError) {
178
+ onUnhandledError(err);
179
+ }
180
+ else {
181
+ throw err;
182
+ }
183
+ });
184
+ }
185
+
186
+ function noop() { }
187
+
188
+ const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();
189
+ function errorNotification(error) {
190
+ return createNotification('E', undefined, error);
191
+ }
192
+ function nextNotification(value) {
193
+ return createNotification('N', value, undefined);
194
+ }
195
+ function createNotification(kind, value, error) {
196
+ return {
197
+ kind,
198
+ value,
199
+ error,
200
+ };
201
+ }
202
+
203
+ function errorContext(cb) {
204
+ {
205
+ cb();
206
+ }
207
+ }
208
+
209
+ class Subscriber extends Subscription {
210
+ constructor(destination) {
211
+ super();
212
+ this.isStopped = false;
213
+ if (destination) {
214
+ this.destination = destination;
215
+ if (isSubscription(destination)) {
216
+ destination.add(this);
217
+ }
218
+ }
219
+ else {
220
+ this.destination = EMPTY_OBSERVER;
221
+ }
222
+ }
223
+ static create(next, error, complete) {
224
+ return new SafeSubscriber(next, error, complete);
225
+ }
226
+ next(value) {
227
+ if (this.isStopped) {
228
+ handleStoppedNotification(nextNotification(value), this);
229
+ }
230
+ else {
231
+ this._next(value);
232
+ }
233
+ }
234
+ error(err) {
235
+ if (this.isStopped) {
236
+ handleStoppedNotification(errorNotification(err), this);
237
+ }
238
+ else {
239
+ this.isStopped = true;
240
+ this._error(err);
241
+ }
242
+ }
243
+ complete() {
244
+ if (this.isStopped) {
245
+ handleStoppedNotification(COMPLETE_NOTIFICATION, this);
246
+ }
247
+ else {
248
+ this.isStopped = true;
249
+ this._complete();
250
+ }
251
+ }
252
+ unsubscribe() {
253
+ if (!this.closed) {
254
+ this.isStopped = true;
255
+ super.unsubscribe();
256
+ this.destination = null;
257
+ }
258
+ }
259
+ _next(value) {
260
+ this.destination.next(value);
261
+ }
262
+ _error(err) {
263
+ try {
264
+ this.destination.error(err);
265
+ }
266
+ finally {
267
+ this.unsubscribe();
268
+ }
269
+ }
270
+ _complete() {
271
+ try {
272
+ this.destination.complete();
273
+ }
274
+ finally {
275
+ this.unsubscribe();
276
+ }
277
+ }
278
+ }
279
+ const _bind = Function.prototype.bind;
280
+ function bind(fn, thisArg) {
281
+ return _bind.call(fn, thisArg);
282
+ }
283
+ class ConsumerObserver {
284
+ constructor(partialObserver) {
285
+ this.partialObserver = partialObserver;
286
+ }
287
+ next(value) {
288
+ const { partialObserver } = this;
289
+ if (partialObserver.next) {
290
+ try {
291
+ partialObserver.next(value);
292
+ }
293
+ catch (error) {
294
+ handleUnhandledError(error);
295
+ }
296
+ }
297
+ }
298
+ error(err) {
299
+ const { partialObserver } = this;
300
+ if (partialObserver.error) {
301
+ try {
302
+ partialObserver.error(err);
303
+ }
304
+ catch (error) {
305
+ handleUnhandledError(error);
306
+ }
307
+ }
308
+ else {
309
+ handleUnhandledError(err);
310
+ }
311
+ }
312
+ complete() {
313
+ const { partialObserver } = this;
314
+ if (partialObserver.complete) {
315
+ try {
316
+ partialObserver.complete();
317
+ }
318
+ catch (error) {
319
+ handleUnhandledError(error);
320
+ }
321
+ }
322
+ }
323
+ }
324
+ class SafeSubscriber extends Subscriber {
325
+ constructor(observerOrNext, error, complete) {
326
+ super();
327
+ let partialObserver;
328
+ if (isFunction(observerOrNext) || !observerOrNext) {
329
+ partialObserver = {
330
+ next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),
331
+ error: error !== null && error !== void 0 ? error : undefined,
332
+ complete: complete !== null && complete !== void 0 ? complete : undefined,
333
+ };
334
+ }
335
+ else {
336
+ let context;
337
+ if (this && config.useDeprecatedNextContext) {
338
+ context = Object.create(observerOrNext);
339
+ context.unsubscribe = () => this.unsubscribe();
340
+ partialObserver = {
341
+ next: observerOrNext.next && bind(observerOrNext.next, context),
342
+ error: observerOrNext.error && bind(observerOrNext.error, context),
343
+ complete: observerOrNext.complete && bind(observerOrNext.complete, context),
344
+ };
345
+ }
346
+ else {
347
+ partialObserver = observerOrNext;
348
+ }
349
+ }
350
+ this.destination = new ConsumerObserver(partialObserver);
351
+ }
352
+ }
353
+ function handleUnhandledError(error) {
354
+ {
355
+ reportUnhandledError(error);
356
+ }
357
+ }
358
+ function defaultErrorHandler(err) {
359
+ throw err;
360
+ }
361
+ function handleStoppedNotification(notification, subscriber) {
362
+ const { onStoppedNotification } = config;
363
+ onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));
364
+ }
365
+ const EMPTY_OBSERVER = {
366
+ closed: true,
367
+ next: noop,
368
+ error: defaultErrorHandler,
369
+ complete: noop,
370
+ };
371
+
372
+ const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();
373
+
374
+ function identity(x) {
375
+ return x;
376
+ }
377
+
378
+ function pipeFromArray(fns) {
379
+ if (fns.length === 0) {
380
+ return identity;
381
+ }
382
+ if (fns.length === 1) {
383
+ return fns[0];
384
+ }
385
+ return function piped(input) {
386
+ return fns.reduce((prev, fn) => fn(prev), input);
387
+ };
388
+ }
389
+
390
+ class Observable {
391
+ constructor(subscribe) {
392
+ if (subscribe) {
393
+ this._subscribe = subscribe;
394
+ }
395
+ }
396
+ lift(operator) {
397
+ const observable = new Observable();
398
+ observable.source = this;
399
+ observable.operator = operator;
400
+ return observable;
401
+ }
402
+ subscribe(observerOrNext, error, complete) {
403
+ const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
404
+ errorContext(() => {
405
+ const { operator, source } = this;
406
+ subscriber.add(operator
407
+ ?
408
+ operator.call(subscriber, source)
409
+ : source
410
+ ?
411
+ this._subscribe(subscriber)
412
+ :
413
+ this._trySubscribe(subscriber));
414
+ });
415
+ return subscriber;
416
+ }
417
+ _trySubscribe(sink) {
418
+ try {
419
+ return this._subscribe(sink);
420
+ }
421
+ catch (err) {
422
+ sink.error(err);
423
+ }
424
+ }
425
+ forEach(next, promiseCtor) {
426
+ promiseCtor = getPromiseCtor(promiseCtor);
427
+ return new promiseCtor((resolve, reject) => {
428
+ const subscriber = new SafeSubscriber({
429
+ next: (value) => {
430
+ try {
431
+ next(value);
432
+ }
433
+ catch (err) {
434
+ reject(err);
435
+ subscriber.unsubscribe();
436
+ }
437
+ },
438
+ error: reject,
439
+ complete: resolve,
440
+ });
441
+ this.subscribe(subscriber);
442
+ });
443
+ }
444
+ _subscribe(subscriber) {
445
+ var _a;
446
+ return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
447
+ }
448
+ [observable]() {
449
+ return this;
450
+ }
451
+ pipe(...operations) {
452
+ return pipeFromArray(operations)(this);
453
+ }
454
+ toPromise(promiseCtor) {
455
+ promiseCtor = getPromiseCtor(promiseCtor);
456
+ return new promiseCtor((resolve, reject) => {
457
+ let value;
458
+ this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
459
+ });
460
+ }
461
+ }
462
+ Observable.create = (subscribe) => {
463
+ return new Observable(subscribe);
464
+ };
465
+ function getPromiseCtor(promiseCtor) {
466
+ var _a;
467
+ return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
468
+ }
469
+ function isObserver(value) {
470
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
471
+ }
472
+ function isSubscriber(value) {
473
+ return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
474
+ }
475
+
476
+ const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() {
477
+ _super(this);
478
+ this.name = 'ObjectUnsubscribedError';
479
+ this.message = 'object unsubscribed';
480
+ });
481
+
482
+ class Subject extends Observable {
483
+ constructor() {
484
+ super();
485
+ this.closed = false;
486
+ this.currentObservers = null;
487
+ this.observers = [];
488
+ this.isStopped = false;
489
+ this.hasError = false;
490
+ this.thrownError = null;
491
+ }
492
+ lift(operator) {
493
+ const subject = new AnonymousSubject(this, this);
494
+ subject.operator = operator;
495
+ return subject;
496
+ }
497
+ _throwIfClosed() {
498
+ if (this.closed) {
499
+ throw new ObjectUnsubscribedError();
500
+ }
501
+ }
502
+ next(value) {
503
+ errorContext(() => {
504
+ this._throwIfClosed();
505
+ if (!this.isStopped) {
506
+ if (!this.currentObservers) {
507
+ this.currentObservers = Array.from(this.observers);
508
+ }
509
+ for (const observer of this.currentObservers) {
510
+ observer.next(value);
511
+ }
512
+ }
513
+ });
514
+ }
515
+ error(err) {
516
+ errorContext(() => {
517
+ this._throwIfClosed();
518
+ if (!this.isStopped) {
519
+ this.hasError = this.isStopped = true;
520
+ this.thrownError = err;
521
+ const { observers } = this;
522
+ while (observers.length) {
523
+ observers.shift().error(err);
524
+ }
525
+ }
526
+ });
527
+ }
528
+ complete() {
529
+ errorContext(() => {
530
+ this._throwIfClosed();
531
+ if (!this.isStopped) {
532
+ this.isStopped = true;
533
+ const { observers } = this;
534
+ while (observers.length) {
535
+ observers.shift().complete();
536
+ }
537
+ }
538
+ });
539
+ }
540
+ unsubscribe() {
541
+ this.isStopped = this.closed = true;
542
+ this.observers = this.currentObservers = null;
543
+ }
544
+ get observed() {
545
+ var _a;
546
+ return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
547
+ }
548
+ _trySubscribe(subscriber) {
549
+ this._throwIfClosed();
550
+ return super._trySubscribe(subscriber);
551
+ }
552
+ _subscribe(subscriber) {
553
+ this._throwIfClosed();
554
+ this._checkFinalizedStatuses(subscriber);
555
+ return this._innerSubscribe(subscriber);
556
+ }
557
+ _innerSubscribe(subscriber) {
558
+ const { hasError, isStopped, observers } = this;
559
+ if (hasError || isStopped) {
560
+ return EMPTY_SUBSCRIPTION;
561
+ }
562
+ this.currentObservers = null;
563
+ observers.push(subscriber);
564
+ return new Subscription(() => {
565
+ this.currentObservers = null;
566
+ arrRemove(observers, subscriber);
567
+ });
568
+ }
569
+ _checkFinalizedStatuses(subscriber) {
570
+ const { hasError, thrownError, isStopped } = this;
571
+ if (hasError) {
572
+ subscriber.error(thrownError);
573
+ }
574
+ else if (isStopped) {
575
+ subscriber.complete();
576
+ }
577
+ }
578
+ asObservable() {
579
+ const observable = new Observable();
580
+ observable.source = this;
581
+ return observable;
582
+ }
583
+ }
584
+ Subject.create = (destination, source) => {
585
+ return new AnonymousSubject(destination, source);
586
+ };
587
+ class AnonymousSubject extends Subject {
588
+ constructor(destination, source) {
589
+ super();
590
+ this.destination = destination;
591
+ this.source = source;
592
+ }
593
+ next(value) {
594
+ var _a, _b;
595
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
596
+ }
597
+ error(err) {
598
+ var _a, _b;
599
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
600
+ }
601
+ complete() {
602
+ var _a, _b;
603
+ (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
604
+ }
605
+ _subscribe(subscriber) {
606
+ var _a, _b;
607
+ return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
608
+ }
609
+ }
610
+
611
+ class BehaviorSubject extends Subject {
612
+ constructor(_value) {
613
+ super();
614
+ this._value = _value;
615
+ }
616
+ get value() {
617
+ return this.getValue();
618
+ }
619
+ _subscribe(subscriber) {
620
+ const subscription = super._subscribe(subscriber);
621
+ !subscription.closed && subscriber.next(this._value);
622
+ return subscription;
623
+ }
624
+ getValue() {
625
+ const { hasError, thrownError, _value } = this;
626
+ if (hasError) {
627
+ throw thrownError;
628
+ }
629
+ this._throwIfClosed();
630
+ return _value;
631
+ }
632
+ next(value) {
633
+ super.next((this._value = value));
634
+ }
635
+ }
636
+
637
+ class FormController {
638
+ constructor(schema) {
639
+ this.values = new BehaviorSubject({});
640
+ this.errors = new BehaviorSubject({});
641
+ this._initialValues = {};
642
+ this._values = {};
643
+ this._errors = {};
644
+ this._isValid = true;
645
+ this._schema = schema;
646
+ }
647
+ processArrayError(obj, property, remainingProperties, message) {
648
+ // Extract array name and index from the property string
649
+ const [arrayName, indexStr] = property
650
+ .match(/^([a-zA-Z0-9]+)\[(\d+)\]/)
651
+ .slice(1);
652
+ const index = parseInt(indexStr, 10);
653
+ // Ensure the array exists and has an entry at the given index
654
+ obj[arrayName] = obj[arrayName] || [];
655
+ obj[arrayName][index] = obj[arrayName][index] || {};
656
+ // Recursively set the error if there are remaining properties, else set the error message
657
+ if (remainingProperties.length) {
658
+ this.setNestedError(obj[arrayName][index], remainingProperties, message);
659
+ }
660
+ else {
661
+ obj[arrayName][index] = message;
662
+ }
663
+ }
664
+ processRegularError(obj, property, remainingProperties, message) {
665
+ // Ensure the property exists
666
+ obj[property] = obj[property] || {};
667
+ // Recursively set the error if there are remaining properties, else set the error message
668
+ if (remainingProperties.length) {
669
+ this.setNestedError(obj[property], remainingProperties, message);
670
+ }
671
+ else {
672
+ obj[property] = message;
673
+ }
674
+ }
675
+ setNestedError(obj, properties, message) {
676
+ const property = properties.shift();
677
+ const isArrayError = property.includes('[');
678
+ if (isArrayError) {
679
+ this.processArrayError(obj, property, properties, message);
680
+ }
681
+ else {
682
+ this.processRegularError(obj, property, properties, message);
683
+ }
684
+ }
685
+ setError(obj, path, message) {
686
+ // Convert path to properties array
687
+ const properties = Array.isArray(path) ? path : path.split('.');
688
+ this.setNestedError(obj, properties, message);
689
+ }
690
+ async validate(context) {
691
+ this._isValid = true;
692
+ this._errors = {};
693
+ try {
694
+ await this._schema.validate(this._values, { context, abortEarly: false });
695
+ }
696
+ catch (err) {
697
+ this._isValid = false;
698
+ err.inner.forEach((item) => {
699
+ this.setError(this._errors, item.path, item.message);
700
+ });
701
+ }
702
+ this.errors.next(this._errors);
703
+ return this._isValid;
704
+ }
705
+ async validateAndSubmit(submitHandler, context) {
706
+ const isValid = await this.validate(context || {});
707
+ if (isValid) {
708
+ submitHandler();
709
+ }
710
+ }
711
+ setInitialValues(values) {
712
+ this._initialValues = values;
713
+ this._values = values;
714
+ this.values.next(this._values);
715
+ }
716
+ setValues(values) {
717
+ this._values = Object.assign(Object.assign({}, this._values), values);
718
+ this.values.next(this._values);
719
+ }
720
+ resetValues() {
721
+ this._values = this._initialValues;
722
+ this.values.next(this._values);
723
+ }
724
+ getInitialValues() {
725
+ return this._initialValues;
726
+ }
727
+ }
728
+
729
+ exports.FormController = FormController;
730
+
731
+ //# sourceMappingURL=form-1e732a9d.js.map