@justifi/webcomponents 4.19.3-rc-2 → 4.20.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 (383) hide show
  1. package/dist/cjs/{Analytics-adc90fc6.js → Analytics-03981aad.js} +4 -3
  2. package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
  3. package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
  6. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  7. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
  8. package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
  9. package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
  10. package/dist/cjs/check-pkg-version-89d6d146.js +24 -0
  11. package/dist/cjs/config-05767cba.js +15 -0
  12. package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
  13. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  14. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
  15. package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
  16. package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
  17. package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
  18. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  19. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
  20. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
  21. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
  22. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -5
  23. package/dist/cjs/justifi-business-form.cjs.entry.js +17 -14
  24. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
  25. package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
  26. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -7
  27. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  28. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -4
  29. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
  30. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
  31. package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -4
  32. package/dist/cjs/justifi-payment-form.cjs.entry.js +11 -8
  33. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  35. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -6
  36. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -4
  37. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -4
  38. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -4
  39. package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
  40. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
  41. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -6
  42. package/dist/cjs/loader.cjs.js +1 -1
  43. package/dist/cjs/{package-22d30c5d.js → package-7fdd14b9.js} +4 -2
  44. package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
  45. package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
  46. package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
  47. package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
  48. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  49. package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
  50. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
  51. package/dist/cjs/styled-host-9e0b67b3.js +14 -0
  52. package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
  53. package/dist/cjs/utils-f8a6962c.js +25 -0
  54. package/dist/cjs/webcomponents.cjs.js +1 -1
  55. package/dist/collection/api/Api.js +3 -3
  56. package/dist/collection/api/Business.js +66 -7
  57. package/dist/collection/api/Identity.js +39 -3
  58. package/dist/collection/api/services/analytics.service.js +2 -1
  59. package/dist/collection/api/services/business.service.js +6 -5
  60. package/dist/collection/api/services/checkout.service.js +3 -2
  61. package/dist/collection/api/services/insurance.service.js +3 -2
  62. package/dist/collection/api/services/payment.service.js +3 -2
  63. package/dist/collection/api/services/payout.service.js +4 -3
  64. package/dist/collection/api/services/provision.service.js +2 -1
  65. package/dist/collection/api/services/reports.service.js +2 -1
  66. package/dist/collection/collection-manifest.json +4 -1
  67. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  68. package/dist/collection/components/business-details/business-details.js +2 -0
  69. package/dist/collection/components/business-forms/business-form/business-form.js +7 -5
  70. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
  71. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
  72. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
  73. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
  74. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
  75. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
  76. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
  77. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
  78. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
  79. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
  80. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  81. package/dist/collection/components/card-form/card-form.js +4 -3
  82. package/dist/collection/components/checkout/checkout-core.js +4 -4
  83. package/dist/collection/components/checkout/checkout.js +4 -2
  84. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  85. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  86. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  87. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  88. package/dist/collection/components/form/form-control-date.js +26 -28
  89. package/dist/collection/components/form/form-control-select.js +45 -45
  90. package/dist/collection/components/form/form-control-text.js +34 -34
  91. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
  92. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
  93. package/dist/collection/components/payment-details/payment-details.js +2 -0
  94. package/dist/collection/components/payment-form/payment-form.js +6 -3
  95. package/dist/collection/components/payments-list/payments-list-core.js +14 -9
  96. package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
  97. package/dist/collection/components/payments-list/payments-list.js +2 -0
  98. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  99. package/dist/collection/components/payout-details/payout-details.js +2 -0
  100. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
  101. package/dist/collection/components/payouts-list/payouts-list.js +2 -0
  102. package/dist/collection/components/refund-form/refund-form.js +3 -2
  103. package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
  104. package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
  105. package/dist/collection/ui-components/filters/utils.js +20 -0
  106. package/dist/collection/utils/check-pkg-version.js +19 -0
  107. package/dist/config.js +11 -0
  108. package/dist/docs.json +531 -27
  109. package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-3103f8e9.js} +4 -3
  110. package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
  111. package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
  112. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  113. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
  114. package/dist/esm/business-details-core.entry.js +1 -1
  115. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
  116. package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
  117. package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
  118. package/dist/esm/check-pkg-version-44e6ad15.js +22 -0
  119. package/dist/esm/config-27764a9d.js +13 -0
  120. package/dist/esm/custom-popper.entry.js +1890 -0
  121. package/dist/esm/form-alert_5.entry.js +2 -2
  122. package/dist/esm/form-control-checkbox_9.entry.js +21 -21
  123. package/dist/esm/form-control-date_3.entry.js +4 -4
  124. package/dist/esm/form-control-error-text_4.entry.js +9 -9
  125. package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
  126. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  127. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
  128. package/dist/esm/justifi-bank-account-form.entry.js +6 -5
  129. package/dist/esm/justifi-billing-form_2.entry.js +4 -4
  130. package/dist/esm/justifi-business-details.entry.js +8 -5
  131. package/dist/esm/justifi-business-form.entry.js +16 -13
  132. package/dist/esm/justifi-card-form.entry.js +6 -5
  133. package/dist/esm/justifi-checkout-core.entry.js +5 -5
  134. package/dist/esm/justifi-checkout.entry.js +10 -7
  135. package/dist/esm/justifi-details.entry.js +1 -1
  136. package/dist/esm/justifi-gross-payment-chart.entry.js +7 -4
  137. package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
  138. package/dist/esm/justifi-owner-form_3.entry.js +11 -10
  139. package/dist/esm/justifi-payment-details.entry.js +7 -4
  140. package/dist/esm/justifi-payment-form.entry.js +11 -8
  141. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  142. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  143. package/dist/esm/justifi-payment-provisioning.entry.js +9 -6
  144. package/dist/esm/justifi-payments-list.entry.js +7 -4
  145. package/dist/esm/justifi-payout-details.entry.js +7 -4
  146. package/dist/esm/justifi-payouts-list.entry.js +7 -4
  147. package/dist/esm/justifi-refund-form.entry.js +5 -4
  148. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +2 -2
  149. package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -6
  150. package/dist/esm/loader.js +1 -1
  151. package/dist/{webcomponents/p-2e8f4937.js → esm/package-0e3cc41e.js} +4 -2
  152. package/dist/esm/payment-details-core.entry.js +2 -2
  153. package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
  154. package/dist/esm/payments-list-core.entry.js +16 -11
  155. package/dist/esm/payments-list-filters_2.entry.js +17261 -0
  156. package/dist/esm/payout-details-core.entry.js +3 -3
  157. package/dist/esm/payouts-list-core.entry.js +4 -4
  158. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
  159. package/dist/esm/styled-host-3171ae1f.js +12 -0
  160. package/dist/esm/utils-3a4d8f3a.js +22 -0
  161. package/dist/{webcomponents/p-83125497.js → esm/utils-e66d8bca.js} +1 -16
  162. package/dist/esm/webcomponents.js +1 -1
  163. package/dist/module/Analytics.js +2 -1
  164. package/dist/module/Api.js +3 -3
  165. package/dist/module/Business.js +104 -9
  166. package/dist/module/business-additional-questions-form-step-core.js +3 -3
  167. package/dist/module/business-bank-account-form-step.js +4 -3
  168. package/dist/module/business-core-info-form-step-core.js +3 -5
  169. package/dist/module/business-document-upload-form-step.js +4 -3
  170. package/dist/module/business-document-upload-input-group.js +1 -1
  171. package/dist/module/business-documents-on-file.js +1 -1
  172. package/dist/module/business-form-options.js +1 -1
  173. package/dist/module/business-owners-form-step-core.js +3 -3
  174. package/dist/module/business-representative-form-step-core.js +3 -4
  175. package/dist/module/business-terms-conditions-form-step.js +4 -3
  176. package/dist/module/business.service.js +6 -5
  177. package/dist/module/check-pkg-version.js +22 -0
  178. package/dist/module/checkout-core.js +3 -3
  179. package/dist/module/config.js +13 -0
  180. package/dist/module/custom-popper.d.ts +11 -0
  181. package/dist/module/custom-popper.js +6 -0
  182. package/dist/module/custom-popper2.js +1912 -0
  183. package/dist/module/form-control-date2.js +7 -7
  184. package/dist/module/form-control-select2.js +9 -9
  185. package/dist/module/form-control-text2.js +7 -7
  186. package/dist/module/get-payout-csv.js +4 -3
  187. package/dist/module/justifi-bank-account-form.js +3 -2
  188. package/dist/module/justifi-business-details.js +2 -0
  189. package/dist/module/justifi-business-form.js +7 -5
  190. package/dist/module/justifi-card-form.js +3 -2
  191. package/dist/module/justifi-checkout.js +7 -4
  192. package/dist/module/justifi-gross-payment-chart.js +4 -1
  193. package/dist/module/justifi-payment-details.js +2 -0
  194. package/dist/module/justifi-payment-form.js +6 -3
  195. package/dist/module/justifi-payment-provisioning.js +5 -2
  196. package/dist/module/justifi-payments-list.js +42 -10
  197. package/dist/module/justifi-payout-details.js +2 -0
  198. package/dist/module/justifi-payouts-list.js +2 -0
  199. package/dist/module/justifi-refund-form.js +3 -2
  200. package/dist/module/justifi-season-interruption-insurance.js +6 -3
  201. package/dist/module/legal-address-form-step-core.js +3 -4
  202. package/dist/module/new-payment-method.js +3 -5
  203. package/dist/module/owner-form-core2.js +4 -5
  204. package/dist/module/package.js +4 -2
  205. package/dist/module/payment-details-core2.js +1 -1
  206. package/dist/module/payment-method-options.js +3 -2
  207. package/dist/module/payment.service.js +3 -2
  208. package/dist/module/payments-list-core2.js +52 -18
  209. package/dist/module/payments-list-filters.d.ts +11 -0
  210. package/dist/module/payments-list-filters.js +6 -0
  211. package/dist/module/payments-list-filters2.js +17294 -0
  212. package/dist/module/payout-details-core2.js +2 -2
  213. package/dist/module/payouts-list-core2.js +3 -3
  214. package/dist/module/saved-payment-method.js +4 -3
  215. package/dist/module/sezzle-payment-method.js +3 -2
  216. package/dist/module/styled-host.js +1 -1
  217. package/dist/module/table-filters-menu.d.ts +11 -0
  218. package/dist/module/table-filters-menu.js +6 -0
  219. package/dist/module/table-filters-menu2.js +80 -0
  220. package/dist/module/utils2.js +1 -16
  221. package/dist/types/api/Business.d.ts +87 -1
  222. package/dist/types/api/Identity.d.ts +45 -1
  223. package/dist/types/api/Payment.d.ts +8 -0
  224. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
  225. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
  226. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
  227. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
  228. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
  229. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  230. package/dist/types/components/form/form-control-date.d.ts +4 -4
  231. package/dist/types/components/form/form-control-select.d.ts +6 -6
  232. package/dist/types/components/form/form-control-text.d.ts +4 -4
  233. package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
  234. package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
  235. package/dist/types/components.d.ts +89 -10
  236. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  237. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
  238. package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
  239. package/dist/types/ui-components/filters/utils.d.ts +2 -0
  240. package/dist/types/utils/check-pkg-version.d.ts +1 -0
  241. package/dist/webcomponents/index.esm.js +0 -1
  242. package/dist/webcomponents/p-056e75be.entry.js +1 -0
  243. package/dist/webcomponents/p-05718341.entry.js +1 -0
  244. package/dist/webcomponents/p-08b0fb31.js +1 -41
  245. package/dist/webcomponents/p-0de026dd.entry.js +1 -0
  246. package/dist/webcomponents/p-0e84986e.entry.js +10 -0
  247. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  248. package/dist/webcomponents/p-14c91ffd.js +1 -20
  249. package/dist/webcomponents/p-1612894d.js +1 -0
  250. package/dist/webcomponents/p-1815a43b.js +1 -0
  251. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  252. package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
  253. package/dist/webcomponents/p-1ff8810b.js +1 -29
  254. package/dist/webcomponents/p-20dafb46.entry.js +1 -0
  255. package/dist/webcomponents/p-2338affa.js +1 -213
  256. package/dist/webcomponents/p-277aee05.js +1 -0
  257. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  258. package/dist/webcomponents/p-2c51d29f.js +1 -0
  259. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  260. package/dist/webcomponents/p-3a1f19f3.entry.js +1 -0
  261. package/dist/webcomponents/p-3c7fac29.entry.js +1 -0
  262. package/dist/webcomponents/p-401d6607.js +1 -0
  263. package/dist/webcomponents/p-428e9b64.entry.js +1 -0
  264. package/dist/webcomponents/p-430f81c6.entry.js +1 -0
  265. package/dist/webcomponents/p-437f9114.js +1 -0
  266. package/dist/webcomponents/p-44055818.js +1 -0
  267. package/dist/webcomponents/p-4628cc9b.entry.js +1 -0
  268. package/dist/webcomponents/p-4cc9df76.entry.js +1 -0
  269. package/dist/webcomponents/p-5022f21c.js +1 -0
  270. package/dist/webcomponents/p-525db3e8.js +1 -22
  271. package/dist/webcomponents/p-55182a59.js +1 -0
  272. package/dist/webcomponents/p-5540a47c.entry.js +1 -0
  273. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  274. package/dist/webcomponents/p-570a0f02.entry.js +1 -0
  275. package/dist/webcomponents/p-5968ff8a.js +1 -178
  276. package/dist/webcomponents/p-59cf5391.entry.js +1 -0
  277. package/dist/webcomponents/p-5a62fca2.js +1 -0
  278. package/dist/webcomponents/p-5e2c9ec8.js +1 -0
  279. package/dist/webcomponents/p-5e7c60d8.js +1 -0
  280. package/dist/webcomponents/p-6078a370.js +1 -244
  281. package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
  282. package/dist/webcomponents/p-7bdffc78.entry.js +1 -0
  283. package/dist/webcomponents/p-7d3be485.js +1 -0
  284. package/dist/webcomponents/p-7d85af5c.js +1 -16
  285. package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
  286. package/dist/webcomponents/p-7fe67d7f.entry.js +1 -0
  287. package/dist/webcomponents/p-7ff329b1.js +1 -0
  288. package/dist/webcomponents/p-804c0f1f.entry.js +1 -0
  289. package/dist/webcomponents/p-8115b2f4.js +1 -28
  290. package/dist/webcomponents/p-8281f09a.js +1 -0
  291. package/dist/webcomponents/p-8921a478.entry.js +1 -0
  292. package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
  293. package/dist/webcomponents/p-8c83b73e.entry.js +1 -0
  294. package/dist/webcomponents/p-8d03a7bd.entry.js +1 -0
  295. package/dist/webcomponents/p-8df7bde8.js +1 -27
  296. package/dist/webcomponents/p-938bf2b4.entry.js +1 -0
  297. package/dist/webcomponents/p-9b154d98.entry.js +1 -0
  298. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  299. package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
  300. package/dist/webcomponents/p-aedb421f.entry.js +1 -0
  301. package/dist/webcomponents/p-b14da2fd.entry.js +1 -0
  302. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  303. package/dist/webcomponents/p-bdc91c61.entry.js +1 -0
  304. package/dist/webcomponents/p-c64ce69d.entry.js +1 -0
  305. package/dist/webcomponents/p-d76002d5.entry.js +1 -0
  306. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  307. package/dist/webcomponents/p-d89bad72.js +1 -39
  308. package/dist/webcomponents/p-da1d174d.entry.js +1 -0
  309. package/dist/webcomponents/p-dbc1d7b3.entry.js +1 -0
  310. package/dist/webcomponents/p-dce846bf.js +1 -27
  311. package/dist/webcomponents/p-df21aaad.js +1 -120
  312. package/dist/webcomponents/p-e1255160.js +1 -3
  313. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  314. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  315. package/dist/webcomponents/p-e333620e.js +1 -34
  316. package/dist/webcomponents/p-e3f4a2a6.js +1 -0
  317. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  318. package/dist/webcomponents/p-eea79a55.entry.js +1 -0
  319. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  320. package/dist/webcomponents/p-f6a2dc78.entry.js +1 -0
  321. package/dist/webcomponents/p-fad19d75.js +2 -1638
  322. package/dist/webcomponents/webcomponents.css +4 -362
  323. package/dist/webcomponents/webcomponents.esm.js +1 -20
  324. package/package.json +4 -2
  325. package/dist/cjs/styled-host-cc053016.js +0 -14
  326. package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
  327. package/dist/esm/Analytics-a8eb7344.js +0 -77
  328. package/dist/esm/package-ccb774a9.js +0 -79
  329. package/dist/esm/styled-host-ab9da520.js +0 -12
  330. package/dist/esm/utils-3c1dd2fa.js +0 -4027
  331. package/dist/module/payload-parsers.js +0 -43
  332. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
  333. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  334. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  335. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  336. package/dist/webcomponents/p-0e1bc91e.js +0 -28
  337. package/dist/webcomponents/p-10875f3d.entry.js +0 -97
  338. package/dist/webcomponents/p-157acba8.entry.js +0 -98
  339. package/dist/webcomponents/p-18fa0479.entry.js +0 -131
  340. package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
  341. package/dist/webcomponents/p-24dc023a.entry.js +0 -791
  342. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  343. package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
  344. package/dist/webcomponents/p-29c0b182.js +0 -114
  345. package/dist/webcomponents/p-3395e896.entry.js +0 -74
  346. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  347. package/dist/webcomponents/p-47d79529.js +0 -18
  348. package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
  349. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  350. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  351. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  352. package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
  353. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  354. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  355. package/dist/webcomponents/p-75fd6367.entry.js +0 -149
  356. package/dist/webcomponents/p-79646550.entry.js +0 -61
  357. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  358. package/dist/webcomponents/p-85fc69e5.js +0 -90
  359. package/dist/webcomponents/p-89887332.js +0 -301
  360. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  361. package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
  362. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  363. package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
  364. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  365. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  366. package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
  367. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  368. package/dist/webcomponents/p-af244664.js +0 -126
  369. package/dist/webcomponents/p-b4b8b531.js +0 -44
  370. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  371. package/dist/webcomponents/p-ba4bae6f.js +0 -12
  372. package/dist/webcomponents/p-ba5fae28.js +0 -90
  373. package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
  374. package/dist/webcomponents/p-cc39384f.entry.js +0 -99
  375. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  376. package/dist/webcomponents/p-dad3e069.entry.js +0 -298
  377. package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
  378. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  379. package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
  380. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  381. package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
  382. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  383. package/dist/{globals.d.ts → types/global.d.ts} +1 -1
@@ -3,19 +3,21 @@ import { A as Api } from './Api.js';
3
3
  import './Pagination.js';
4
4
  import './Payment.js';
5
5
  import './Payout.js';
6
+ import { c as config } from './config.js';
6
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
7
8
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
8
9
  import { J as JustifiAnalytics } from './Analytics.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version.js';
9
11
  import { d as defineCustomElement$2 } from './season-interruption-insurance-core.js';
10
12
 
11
13
  class InsuranceService {
12
14
  async fetchQuote(authToken, payload) {
13
15
  const endpoint = 'insurance/quotes';
14
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
16
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
15
17
  }
16
18
  async toggleCoverage(authToken, quoteId, payload) {
17
19
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
18
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
20
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
19
21
  }
20
22
  }
21
23
 
@@ -101,6 +103,7 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
101
103
  return this.seasonInterruptionCoreRef.validate();
102
104
  }
103
105
  componentWillLoad() {
106
+ checkPkgVersion();
104
107
  this.analytics = new JustifiAnalytics(this);
105
108
  this.initializeServiceMethods();
106
109
  }
@@ -126,7 +129,7 @@ const SeasonInterruptionInsurance = /*@__PURE__*/ proxyCustomElement(class Seaso
126
129
  });
127
130
  }
128
131
  render() {
129
- return (h("justifi-season-interruption-insurance-core", { key: '256d45d39c5d297abb7f955229b0e0e9fbc9504a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
132
+ return (h("justifi-season-interruption-insurance-core", { key: '0ef99882f70c9886e8a5b49da5fe89dd4421067a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
130
133
  }
131
134
  }, [1, "justifi-season-interruption-insurance", {
132
135
  "authToken": [1, "auth-token"],
@@ -3,7 +3,6 @@ import { a as addressSchema } from './business-address-schema.js';
3
3
  import { F as FormController } from './form.js';
4
4
  import { b as Address } from './Business.js';
5
5
  import { S as StateOptions } from './state-options.js';
6
- import { c as parseAddressInfo } from './payload-parsers.js';
7
6
  import { n as numberOnlyHandler } from './utils4.js';
8
7
  import { d as defineCustomElement$4 } from './form-control-error-text2.js';
9
8
  import { d as defineCustomElement$3 } from './form-control-help-text2.js';
@@ -72,8 +71,8 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
72
71
  }
73
72
  ;
74
73
  get patchPayload() {
75
- let formValues = parseAddressInfo(this.formController.values.getValue());
76
- return JSON.stringify({ legal_address: formValues });
74
+ let formValues = new Address(this.formController.values.getValue()).payload;
75
+ return { legal_address: formValues };
77
76
  }
78
77
  componentWillLoad() {
79
78
  this.getBusiness && this.getData();
@@ -87,7 +86,7 @@ const LegalAddressFormStepCore = /*@__PURE__*/ proxyCustomElement(class LegalAdd
87
86
  render() {
88
87
  var _a, _b, _c, _d, _e, _f;
89
88
  const legalAddressDefaultValue = this.formController.getInitialValues();
90
- return (h("form", { key: 'ef8d88ebced702b5a0b89eaddb22320f24e7081f' }, h("fieldset", { key: '9f70633b36559e6f8de8d67f39a19df365116bcd' }, h("legend", { key: '6b6b0e42fd0f00a28d24bf9d1e4818e54264ff96' }, "Business Legal Address"), h("hr", { key: '8b7b1a9f0f9448c4fd3b918f20e7b51337d3e5ee' }), h("div", { key: 'f45b643ec057356d9a6e04a19829c562ec521bd2', class: 'row gy-3' }, h("div", { key: 'f115c4e4163126d2d8c998c8de775821e7fc0e65', class: 'col-12' }, h("form-control-text", { key: '066a1ea25ef086dda05e32cde738e7e77dcbb322', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: 'e8432ea00cd5da5b08cc97efe8f3a9817a14b5b1', class: 'col-12' }, h("form-control-text", { key: '099ab7197940d5de8869682cbda41dc0d6ee0e1d', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: '9514757f732d6a445e48eb85d3654f79cf2320db', class: 'col-12' }, h("form-control-text", { key: '37db927ef6c735699a4954ad51d43f4666eea9a0', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'f3c82def0d67fcc0d7e4ca03e80afc166a36ffbb', class: 'col-12' }, h("form-control-select", { key: 'cbcfafe876997e0f9181cf117eeaf465ca424c68', name: 'state', label: 'State', options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: '4f32ffbe520d1fbe2406d41e7fb76a9f0f450299', class: 'col-12' }, h("form-control-text", { key: '5a2fcc4726b543e8ef6c5456e965cc479d91ce4e', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'd4bdbfa4d3999bae59b812e84394bb4c0974d6b3', class: 'col-12' }, h("form-control-select", { key: '95eec216f50d119016c7627074bf29b9a21b1cd1', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
89
+ return (h("form", { key: '5a95fe5a130deded7e160e6fe4ba1d09e6a6aabc' }, h("fieldset", { key: '2011fac5c860b7beee5eaac28e697b284067f2e6' }, h("legend", { key: 'dbe411d80d10a71bc63f18fcdb58a40b124e8eaf' }, "Business Legal Address"), h("hr", { key: '4a91dd5e67e5770778d2dd59716e1e532d644ee9' }), h("div", { key: 'cd53516a98498ab82ab347a1f7c836be262b9fdb', class: 'row gy-3' }, h("div", { key: '14cd5fee5661681ccff95eabf8cd6f2d4cff2296', class: 'col-12' }, h("form-control-text", { key: 'e4b0a5e30fc1a35e5127a76710211874fb68898b', name: 'line1', label: 'Legal Address', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.line1 })), h("div", { key: '2c35da509732e73e2abb4365d6d9e2056d7ce771', class: 'col-12' }, h("form-control-text", { key: 'c8ae2a5c75d0fe8c5ddd46d9150590b8a4f99a5e', name: 'line2', label: 'Address Line 2', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line2 })), h("div", { key: '07649ebd5a848eee63398965c30e8e30fcc88354', class: 'col-12' }, h("form-control-text", { key: 'cb25047c3458124f7d837b7948e807214f1a0a0a', name: 'city', label: 'City', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_c = this.errors) === null || _c === void 0 ? void 0 : _c.city })), h("div", { key: 'ce3ddc5f3639503dbc02668aea7139ffff376545', class: 'col-12' }, h("form-control-select", { key: '00d18b4af1f415828b40404888a6c69d0611d0cc', name: 'state', label: 'State', options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.state })), h("div", { key: '1988bd739af107d9595f6fed897f257da13ac997', class: 'col-12' }, h("form-control-text", { key: '55144c39845d4cc36704170b73458f761f311d00', name: 'postal_code', label: 'Postal Code', inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_e = this.errors) === null || _e === void 0 ? void 0 : _e.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'cccba799a75280693f461f390121b13006877f35', class: 'col-12' }, h("form-control-select", { key: 'e49b21a781280fb2e9cc9f6b88ddcc6d7408c5f8', name: 'country', label: 'Country', options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.country,
91
90
  // just for now so we skip handling country specificities
92
91
  disabled: true }))))));
93
92
  }
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { d as defineCustomElement$7 } from './form-control-error-text2.js';
3
4
  import { d as defineCustomElement$6 } from './form-control-help-text2.js';
4
5
  import { d as defineCustomElement$5 } from './form-control-select2.js';
@@ -19,7 +20,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
19
20
  this.onPaymentMethodOptionClick = () => {
20
21
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
21
22
  };
22
- this.iframeOrigin = "";
23
+ this.iframeOrigin = config.iframeOrigin;
23
24
  this.authToken = undefined;
24
25
  this.accountId = undefined;
25
26
  this.paymentMethodOption = undefined;
@@ -27,9 +28,6 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
27
28
  this.isSelected = undefined;
28
29
  this.saveNewPaymentMethodChecked = false;
29
30
  }
30
- componentWillLoad() {
31
- console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
32
- }
33
31
  handleCheckboxChanged(event) {
34
32
  this.saveNewPaymentMethodChecked = event.detail;
35
33
  }
@@ -82,7 +80,7 @@ const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod
82
80
  }
83
81
  render() {
84
82
  var _a, _b, _c, _d;
85
- return (h("div", { key: 'd597ba8b0ac2a650a14a79d002a91ef3edf604a4', class: "payment-method" }, h("div", { key: 'a287f7ffd480f17f0f1093d71b9d02fe3db39e0f', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'f53d08d048cc242414fcf6794614ad2334db81bb', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '01712a80a30df19a7b540434532cffb4cb3b61e8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
83
+ return (h("div", { key: '7b17c9f060764f959286e739a2c05a43d1363f0e', class: "payment-method" }, h("div", { key: '5f09658f3be4cf75ee6df659d02b9bb29a0af2c3', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '5187b4d23e10272df064b554130b856332b77e43', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '1814812e3246a5f9a5734cbb40af529a61e73f21', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
86
84
  }
87
85
  }, [0, "justifi-new-payment-method", {
88
86
  "iframeOrigin": [1025, "iframe-origin"],
@@ -3,7 +3,6 @@ import { F as FormController } from './form.js';
3
3
  import { O as Owner } from './Business.js';
4
4
  import { b as BusinessFormClickActions } from './business-form-types.js';
5
5
  import { i as identitySchema } from './business-identity-schema.js';
6
- import { b as parseIdentityInfo } from './payload-parsers.js';
7
6
  import { B as Button } from './button.js';
8
7
  import { d as defineCustomElement$8 } from './form-control-date2.js';
9
8
  import { d as defineCustomElement$7 } from './form-control-error-text2.js';
@@ -144,12 +143,12 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
144
143
  }
145
144
  }
146
145
  get payload() {
147
- let formValues = parseIdentityInfo(this.formController.values.getValue());
146
+ let formValues = new Owner(this.formController.values.getValue()).payload;
148
147
  if (this.ownerId) {
149
- return JSON.stringify(formValues);
148
+ return formValues;
150
149
  }
151
150
  else {
152
- return JSON.stringify(Object.assign(Object.assign({}, formValues), { business_id: this.businessId }));
151
+ return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
153
152
  }
154
153
  }
155
154
  get formTitle() {
@@ -180,7 +179,7 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
180
179
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
181
180
  }
182
181
  render() {
183
- return (h("form", { key: 'b2e2aaced859260e9d2ef59bc3f8a0763d05872c', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2a93ddb4c945be0ec081ce31d6d9eff4b302d622' }, h("legend", { key: 'ea9859e55099e3f8263024d884edfb48b3666eaa', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'f646c1ecc544c358d87e701aba8e151fcb96c54e' }), h("div", { key: '874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0', class: "row gy-3" }, h("owner-form-inputs", { key: '866dbf0002ec1ac70d7942c6011c67f8cd144960', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '15d907270ecf3d16769cedea39ba279d7ffb0748', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '84c09ef594e7fa387e64a09014de81ed713cc765', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dafd97aa7b84644c9d011224a152ad7f99ce620', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'f1f31da4d147afcd01ef96acd01d63ee9497dd6b' }))));
182
+ return (h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
184
183
  }
185
184
  static get watchers() { return {
186
185
  "isLoading": ["loadingWatcher"]
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.3-rc-2";
2
+ const version = "4.20.0";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -27,6 +27,7 @@ const scripts = {
27
27
  "test:file": "stencil test --spec --watch --"
28
28
  };
29
29
  const dependencies = {
30
+ "@popperjs/core": "^2.11.8",
30
31
  "@stencil/core": "^4.0.5",
31
32
  "@stencil/store": "^2.0.8",
32
33
  bootstrap: "^5.2.3",
@@ -35,6 +36,7 @@ const dependencies = {
35
36
  "dinero.js": "^1.9.1",
36
37
  "iframe-resizer": "^4.3.7",
37
38
  imask: "^7.6.0",
39
+ lodash: "^4.17.21",
38
40
  rxjs: "^7.8.1",
39
41
  "ts-dedent": "^2.2.0",
40
42
  uuid: "^9.0.0",
@@ -44,7 +46,7 @@ const devDependencies = {
44
46
  "@babel/preset-env": "^7.21.5",
45
47
  "@babel/preset-react": "^7.18.6",
46
48
  "@babel/preset-typescript": "^7.21.5",
47
- "@rollup/plugin-replace": "^5.0.7",
49
+ "@rollup/plugin-replace": "^6.0.1",
48
50
  "@stencil/sass": "^3.0.1",
49
51
  "@types/jest": "27.0.3",
50
52
  "@types/react": "^18.0.37",
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { M as MapPaymentStatusToBadge, a as formatCurrency, g as formatDate, k as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
2
+ import { M as MapPaymentStatusToBadge, a as formatCurrency, e as formatDate, j as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
3
3
  import { L as LoadingState, E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem, D as DetailSectionTitle, a as DetailItem, C as CodeBlock } from './utils.js';
4
4
  import { S as StyledHost } from './styled-host.js';
5
5
  import { d as defineCustomElement$1 } from './details.js';
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { P as PaymentMethodTypes } from './Payment.js';
3
4
  import { d as defineCustomElement$2, P as PaymentMethodOption } from './saved-payment-method.js';
4
5
  import { d as defineCustomElement$a } from './form-control-error-text2.js';
@@ -31,7 +32,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
31
32
  this.insuranceToggled = undefined;
32
33
  this.authToken = undefined;
33
34
  this.accountId = undefined;
34
- this.iframeOrigin = "";
35
+ this.iframeOrigin = config.iframeOrigin;
35
36
  this.savedPaymentMethods = [];
36
37
  this.paymentAmount = undefined;
37
38
  this.selectedPaymentMethodId = undefined;
@@ -77,7 +78,7 @@ const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMetho
77
78
  }
78
79
  render() {
79
80
  var _a;
80
- return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
81
+ return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
81
82
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
82
83
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
83
84
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -2,16 +2,17 @@ import { A as Api } from './Api.js';
2
2
  import './Pagination.js';
3
3
  import './Payment.js';
4
4
  import './Payout.js';
5
+ import { c as config } from './config.js';
5
6
 
6
7
  class PaymentService {
7
8
  async fetchPayments(accountId, authToken, params) {
8
- const api = Api({ authToken, apiOrigin: "" });
9
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
9
10
  const endpoint = `account/${accountId}/payments`;
10
11
  return api.get(endpoint, params);
11
12
  }
12
13
  async fetchPayment(paymentId, authToken) {
13
14
  const endpoint = `payments/${paymentId}`;
14
- return Api({ authToken, apiOrigin: "" }).get(endpoint);
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
15
16
  }
16
17
  }
17
18
 
@@ -2,13 +2,18 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { p as pagingDefaults } from './Pagination.js';
3
3
  import './Payment.js';
4
4
  import './Payout.js';
5
- import { g as formatDate, k as formatTime, a as formatCurrency, M as MapPaymentStatusToBadge } from './utils2.js';
5
+ import { e as formatDate, j as formatTime, a as formatCurrency, M as MapPaymentStatusToBadge } from './utils2.js';
6
6
  import { t as tableExportedParts, T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './exported-parts.js';
7
7
  import { S as StyledHost } from './styled-host.js';
8
- import { d as defineCustomElement$4 } from './form-control-date2.js';
9
- import { d as defineCustomElement$3 } from './form-control-error-text2.js';
10
- import { d as defineCustomElement$2 } from './form-control-help-text2.js';
11
- import { d as defineCustomElement$1 } from './pagination-menu2.js';
8
+ import { d as defineCustomElement$1, o as onFilterChange } from './table-filters-menu2.js';
9
+ import { d as defineCustomElement$9 } from './custom-popper2.js';
10
+ import { d as defineCustomElement$8 } from './form-control-date2.js';
11
+ import { d as defineCustomElement$7 } from './form-control-error-text2.js';
12
+ import { d as defineCustomElement$6 } from './form-control-help-text2.js';
13
+ import { d as defineCustomElement$5 } from './form-control-select2.js';
14
+ import { d as defineCustomElement$4 } from './form-control-text2.js';
15
+ import { d as defineCustomElement$3 } from './pagination-menu2.js';
16
+ import { d as defineCustomElement$2 } from './payments-list-filters2.js';
12
17
 
13
18
  const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore extends HTMLElement {
14
19
  constructor() {
@@ -32,15 +37,19 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
32
37
  return;
33
38
  this.rowClicked.emit(this.payments.find((payment) => payment.id === clickedPaymentID));
34
39
  };
35
- this.handleDateChange = (name, value) => {
36
- this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
40
+ this.setParamsOnChange = (name, value) => {
41
+ let newParams = { [name]: value };
42
+ this.params = onFilterChange(newParams, this.params);
43
+ };
44
+ this.clearParams = () => {
45
+ this.params = {};
37
46
  };
38
- this.getPayments = undefined;
39
47
  this.payments = [];
40
48
  this.loading = true;
41
49
  this.errorMessage = undefined;
42
50
  this.paging = pagingDefaults;
43
- this.params = undefined;
51
+ this.params = {};
52
+ this.getPayments = undefined;
44
53
  }
45
54
  updateOnPropChange() {
46
55
  this.fetchData();
@@ -89,8 +98,8 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
89
98
  {
90
99
  type: 'head',
91
100
  value: `
92
- <div class='fw-bold'>${formatDate(payment.created_at)}</div>
93
- <div class='fw-bold'>${formatTime(payment.created_at)}</div>
101
+ <div class="fw-bold">${formatDate(payment.created_at)}</div>
102
+ <div class="fw-bold">${formatTime(payment.created_at)}</div>
94
103
  `,
95
104
  },
96
105
  formatCurrency(payment.amount),
@@ -115,8 +124,8 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
115
124
  }
116
125
  render() {
117
126
  var _a, _b;
118
- return (h(StyledHost, { key: 'e4a4b64b2927a009f7ad4e9e2ebb4c020401423c', exportparts: tableExportedParts }, h("div", { key: '6ac1c84338b84972ca9b001ecd2b90134c99de6b', class: "row gy-3 mb-4" }, h("div", { key: '1d279ec66bc0755b876e29f06ac24d51baa77caa', class: "col-2" }, h("form-control-date", { key: '65b29c031021f3f782c9a4597167dc5e3a44e7da', name: "created_after", label: "Start Date", inputHandler: this.handleDateChange })), h("div", { key: 'a032497a94cc8108fda6efbb741069407e1a5afe', class: "col-2" }, h("form-control-date", { key: '5dd62ebdbf3836567a9ccb03dec850ebe675cb79', name: "created_before", label: "End Date", inputHandler: this.handleDateChange }))), h("div", { key: 'be4094afd3aec1d742d9d3245c2f6fc50cb95fa0', class: "table-wrapper" }, h("table", { key: 'ed493e35f2bddd59d1034dffe2bcd8b54a6390d6', class: "table table-hover" }, h("thead", { key: 'fae77bda1ffc35ac5414743ab51c2fe1dfbbc29e', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '5be3b1e9883d337046c386046565fb6ac3366324', class: "table-light text-nowrap", part: "table-head-row" }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, !Array.isArray(column) ? column : column[0]))))), h("tbody", { key: 'ba950a1da1ec0dffd7bc8457cdb3ce65d0f8b69b', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: '8d13d8f6b64377f560d06410c09d24293708b6a8', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'c75d61977b26ca5d4aa3711bae1ce6e571b3e3b2', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: '08e3f88116de5783f018a0c06d21d0d9cc4f5feb', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
119
- this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => {
127
+ return (h(StyledHost, { key: 'aa139e92669ea06532373a64f08a9926f9ddb4d0', exportparts: tableExportedParts }, h("payments-list-filters", { key: 'd5338eb8899dc99a9633cd892400fc4749edb4b6', params: this.params, setParamsOnChange: this.setParamsOnChange, clearParams: this.clearParams }), h("div", { key: 'dd452f6a2920ef50fb24324efdf65407f7d964f7', class: "table-wrapper" }, h("table", { key: '64d2d4304549595b80a45ee5684f7ac3cd296245', class: "table table-hover" }, h("thead", { key: '256145c2eea8ac35f1c83663cba68d85287f33fc', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '43a9d75516e80bb5cd04f2575370c863f6413528', class: "table-light text-nowrap", part: "table-head-row" }, (_a = this.columnData) === null || _a === void 0 ? void 0 : _a.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : "" }, !Array.isArray(column) ? column : column[0]))))), h("tbody", { key: 'f95b3b11a9fe046a14a78aaa9f08a5522bead677', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'f92ed5822f5f3946463b89ed746ab641cbf3b2b3', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'ddd2a229c0bb493480504ddcd855d2957b5acedd', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: '0a42c24d04d0cb23804e4a55d185cb9da4b205ab', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
128
+ this.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler, part: `table-row ${index % 2 ? "table-row-even" : "table-row-odd"}` }, data.map((dataEntry) => {
120
129
  let nestedHtml = dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type;
121
130
  if (nestedHtml) {
122
131
  return h("td", { part: "table-cell", innerHTML: dataEntry.value });
@@ -124,7 +133,7 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
124
133
  else {
125
134
  return h("td", { part: "table-cell" }, dataEntry);
126
135
  }
127
- }))))), this.paging && (h("tfoot", { key: '728f671ab03923c90e11901a0d3aac4bc30e72a7', class: "sticky-bottom" }, h("tr", { key: 'd0df9b7c857287eec9568157ecf8f547a01f2fc5', class: "table-light align-middle" }, h("td", { key: 'e0de54912240b3e812f37ea675b2eef50d9545c4', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: 'f2d7846030a5aaa0c2311cad61f4d5865440a904', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
136
+ }))))), this.paging && (h("tfoot", { key: '20f135407c3d167359b1e2dd1f12b751b31ac80e', class: "sticky-bottom" }, h("tr", { key: 'dae4f695a77846739f2cc80f1e210f0d24d4671e', class: "table-light align-middle" }, h("td", { key: '6f2ed8b9b062a008f521aad3fe7f2ac923316955', part: "pagination-bar", colSpan: (_b = this.columnData) === null || _b === void 0 ? void 0 : _b.length }, h("pagination-menu", { key: '18c83657e78378ce8b59d6216479047f7728691f', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
128
137
  }
129
138
  static get watchers() { return {
130
139
  "params": ["updateOnPropChange"],
@@ -145,29 +154,54 @@ function defineCustomElement() {
145
154
  if (typeof customElements === "undefined") {
146
155
  return;
147
156
  }
148
- const components = ["payments-list-core", "form-control-date", "form-control-error-text", "form-control-help-text", "pagination-menu"];
157
+ const components = ["payments-list-core", "custom-popper", "form-control-date", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "pagination-menu", "payments-list-filters", "table-filters-menu"];
149
158
  components.forEach(tagName => { switch (tagName) {
150
159
  case "payments-list-core":
151
160
  if (!customElements.get(tagName)) {
152
161
  customElements.define(tagName, PaymentsListCore);
153
162
  }
154
163
  break;
164
+ case "custom-popper":
165
+ if (!customElements.get(tagName)) {
166
+ defineCustomElement$9();
167
+ }
168
+ break;
155
169
  case "form-control-date":
156
170
  if (!customElements.get(tagName)) {
157
- defineCustomElement$4();
171
+ defineCustomElement$8();
158
172
  }
159
173
  break;
160
174
  case "form-control-error-text":
161
175
  if (!customElements.get(tagName)) {
162
- defineCustomElement$3();
176
+ defineCustomElement$7();
163
177
  }
164
178
  break;
165
179
  case "form-control-help-text":
166
180
  if (!customElements.get(tagName)) {
167
- defineCustomElement$2();
181
+ defineCustomElement$6();
182
+ }
183
+ break;
184
+ case "form-control-select":
185
+ if (!customElements.get(tagName)) {
186
+ defineCustomElement$5();
187
+ }
188
+ break;
189
+ case "form-control-text":
190
+ if (!customElements.get(tagName)) {
191
+ defineCustomElement$4();
168
192
  }
169
193
  break;
170
194
  case "pagination-menu":
195
+ if (!customElements.get(tagName)) {
196
+ defineCustomElement$3();
197
+ }
198
+ break;
199
+ case "payments-list-filters":
200
+ if (!customElements.get(tagName)) {
201
+ defineCustomElement$2();
202
+ }
203
+ break;
204
+ case "table-filters-menu":
171
205
  if (!customElements.get(tagName)) {
172
206
  defineCustomElement$1();
173
207
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface PaymentsListFilters extends Components.PaymentsListFilters, HTMLElement {}
4
+ export const PaymentsListFilters: {
5
+ prototype: PaymentsListFilters;
6
+ new (): PaymentsListFilters;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { P as PaymentsListFilters$1, d as defineCustomElement$1 } from './payments-list-filters2.js';
2
+
3
+ const PaymentsListFilters = PaymentsListFilters$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PaymentsListFilters, defineCustomElement };