@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
@@ -14,12 +14,12 @@ const DateInput = /*@__PURE__*/ proxyCustomElement(class DateInput extends HTMLE
14
14
  this.inputHandler(name, target.value);
15
15
  this.formControlInput.emit({ name, value: target.value });
16
16
  };
17
- this.label = undefined;
18
17
  this.name = undefined;
18
+ this.label = undefined;
19
+ this.inputHandler = undefined;
20
+ this.defaultValue = undefined;
19
21
  this.helpText = undefined;
20
22
  this.errorText = undefined;
21
- this.defaultValue = undefined;
22
- this.inputHandler = undefined;
23
23
  this.disabled = undefined;
24
24
  }
25
25
  handleDefaultValueChange(newValue) {
@@ -32,18 +32,18 @@ const DateInput = /*@__PURE__*/ proxyCustomElement(class DateInput extends HTMLE
32
32
  this.dateInput.value = value;
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: 'fa61a426a5a070d951fa425ae42a59add69a9d96', exportparts: "label,input,input-invalid" }, h("label", { key: 'e7679e6a66277a130414b59421b01d1f8e328cf2', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'b3fb4afd3181fec3eef3dfb851ab8965cb7bbfe7', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'dbc9ac76d75521a7d1ee5cc34393471521ffa1c2', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0f9731278250bde69dd7dee9a7b44e339d919774', errorText: this.errorText, name: this.name })));
35
+ return (h(Host, { key: 'dfbfc1ea5d7139a1c1d30c7bd84b33a9c22604cf', exportparts: "label,input,input-invalid" }, h("label", { key: '99a01781ecd1421fa439ad08f77d3f750a55eaee', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'd8db68d8a62e0f982c3aa7d4bd3a5cf7c2681db3', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '1ee2ccdc1e409c5427e39efe2929b830960edce9', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '1db50cca364b4d059dac37243cf83bb4b11459cd', errorText: this.errorText, name: this.name })));
36
36
  }
37
37
  static get watchers() { return {
38
38
  "defaultValue": ["handleDefaultValueChange"]
39
39
  }; }
40
40
  }, [0, "form-control-date", {
41
- "label": [1],
42
41
  "name": [1],
42
+ "label": [1],
43
+ "inputHandler": [16],
44
+ "defaultValue": [1, "default-value"],
43
45
  "helpText": [1, "help-text"],
44
46
  "errorText": [1, "error-text"],
45
- "defaultValue": [1, "default-value"],
46
- "inputHandler": [8, "input-handler"],
47
47
  "disabled": [4]
48
48
  }, undefined, {
49
49
  "defaultValue": ["handleDefaultValueChange"]
@@ -17,13 +17,13 @@ const SelectInput = /*@__PURE__*/ proxyCustomElement(class SelectInput extends H
17
17
  this.updateInput = (newValue) => {
18
18
  this.selectElement.value = newValue;
19
19
  };
20
- this.label = undefined;
21
20
  this.name = undefined;
21
+ this.label = undefined;
22
+ this.options = undefined;
23
+ this.inputHandler = undefined;
24
+ this.defaultValue = undefined;
22
25
  this.helpText = undefined;
23
26
  this.errorText = undefined;
24
- this.defaultValue = undefined;
25
- this.inputHandler = undefined;
26
- this.options = undefined;
27
27
  this.disabled = undefined;
28
28
  }
29
29
  handleDefaultValueChange(newValue) {
@@ -34,19 +34,19 @@ const SelectInput = /*@__PURE__*/ proxyCustomElement(class SelectInput extends H
34
34
  }
35
35
  render() {
36
36
  var _a;
37
- return (h(Host, { key: '99449e3724103b12af7f2a4573831961074a484a', exportparts: "label,input,input-invalid" }, h("div", { key: 'd73e89d43da9968b687afece24794d9472fec6b5', class: "form-group d-flex flex-column" }, h("label", { key: '6964c55858fc3cf96a137e1061c7f66831105348', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("select", { key: '5b1a09a607ad9638915f5e70f2164f6010020438', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '62d862921d463c98e56888293c878624f7311548', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0b1c4d4752965fb058208c72c7f1c3872d1e0561', errorText: this.errorText, name: this.name }))));
37
+ return (h(Host, { key: 'e62a08c8ba656cc7e82c0f8f7facccc086fbafe7', exportparts: "label,input,input-invalid" }, h("div", { key: 'f9a4c428311f32f2585ca9259ba31909187b809d', class: "form-group d-flex flex-column" }, h("label", { key: '006a3bd7ae2874bf3fa24e2c053808e51b652d9a', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("select", { key: 'f0ac14e8b74c939b4928b9ce800118f660c90613', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '3a60ff2a2af7668013baf2767d97095379b2d37e', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '8c4049d16408f305b8bf1e8a49c91db56991a840', errorText: this.errorText, name: this.name }))));
38
38
  }
39
39
  static get watchers() { return {
40
40
  "defaultValue": ["handleDefaultValueChange"]
41
41
  }; }
42
42
  }, [0, "form-control-select", {
43
- "label": [1],
44
43
  "name": [8],
44
+ "label": [1],
45
+ "options": [16],
46
+ "inputHandler": [16],
47
+ "defaultValue": [1, "default-value"],
45
48
  "helpText": [1, "help-text"],
46
49
  "errorText": [1, "error-text"],
47
- "defaultValue": [1, "default-value"],
48
- "inputHandler": [16],
49
- "options": [16],
50
50
  "disabled": [4]
51
51
  }, undefined, {
52
52
  "defaultValue": ["handleDefaultValueChange"]
@@ -20,13 +20,13 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class TextInput extends HTMLE
20
20
  inputElement.value = newValue || '';
21
21
  }
22
22
  };
23
- this.label = undefined;
24
23
  this.name = undefined;
24
+ this.label = undefined;
25
+ this.inputHandler = undefined;
26
+ this.defaultValue = undefined;
25
27
  this.helpText = undefined;
26
28
  this.errorText = undefined;
27
- this.defaultValue = undefined;
28
29
  this.maxLength = undefined;
29
- this.inputHandler = undefined;
30
30
  this.keyDownHandler = undefined;
31
31
  this.disabled = undefined;
32
32
  }
@@ -37,20 +37,20 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class TextInput extends HTMLE
37
37
  this.updateInput(this.defaultValue);
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '1194532f81831734543bad80860da14f8a5ad856', exportparts: "label,input,input-invalid" }, h("div", { key: '296538cf90b62f8041e21620aa06b4074f68b71a', class: "form-group d-flex flex-column" }, h("label", { key: '7c009ce96124e58f9657dba2565ef298225f10f7', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '4b33cb700aecf4d0a359366ba2e0d248c602d904', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '7a279d72bb262fcb044b5b0cc31703878ce9f444', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '00bea288a99f626806697a98b6dca3f3298dc0b3', errorText: this.errorText, name: this.name }))));
40
+ return (h(Host, { key: 'fddfb4134747c8d8caf6594f5450e57fa4c2dc3e', exportparts: "label,input,input-invalid" }, h("div", { key: 'bbd0174fb56d911992907e0a2c453b9d1412b636', class: "form-group d-flex flex-column" }, h("label", { key: 'f5d9d3d6c4694d08d86963df37adbd1b334593b3', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("input", { key: 'ae49e4c86782fd0901c1a0e8530981cf1b0b7c65', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h("form-control-help-text", { key: '1e1bbc8d39e5caeca559515f72eb17ca9b3ab0b1', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '44c121cb0eb69840440e696e784c7a73689a42f2', errorText: this.errorText, name: this.name }))));
41
41
  }
42
42
  get el() { return this; }
43
43
  static get watchers() { return {
44
44
  "defaultValue": ["handleDefaultValueChange"]
45
45
  }; }
46
46
  }, [0, "form-control-text", {
47
- "label": [1],
48
47
  "name": [8],
48
+ "label": [1],
49
+ "inputHandler": [16],
50
+ "defaultValue": [1, "default-value"],
49
51
  "helpText": [1, "help-text"],
50
52
  "errorText": [1, "error-text"],
51
- "defaultValue": [1, "default-value"],
52
53
  "maxLength": [2, "max-length"],
53
- "inputHandler": [16],
54
54
  "keyDownHandler": [16],
55
55
  "disabled": [4]
56
56
  }, undefined, {
@@ -2,22 +2,23 @@ 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
  import { a as ComponentErrorSeverity } from './ComponentError.js';
6
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
7
8
 
8
9
  class PayoutService {
9
10
  async fetchPayouts(accountId, authToken, params) {
10
- const api = Api({ authToken, apiOrigin: "" });
11
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
11
12
  const endpoint = `account/${accountId}/payouts`;
12
13
  return api.get(endpoint, params);
13
14
  }
14
15
  async fetchPayout(payoutId, authToken) {
15
- const api = Api({ authToken, apiOrigin: "" });
16
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
16
17
  const endpoint = `payouts/${payoutId}`;
17
18
  return api.get(endpoint);
18
19
  }
19
20
  async fetchCSV(payoutId, authToken) {
20
- const api = Api({ authToken, apiOrigin: "" });
21
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
21
22
  const endpoint = `reports/payouts/${payoutId}`;
22
23
  return api.get(endpoint);
23
24
  }
@@ -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 { J as JustifiAnalytics } from './Analytics.js';
3
4
  import { d as defineCustomElement$2 } from './payment-method-form.js';
4
5
 
@@ -11,7 +12,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
11
12
  this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
12
13
  this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
13
14
  this.validationMode = undefined;
14
- this.iframeOrigin = "";
15
+ this.iframeOrigin = config.iframeOrigin;
15
16
  this.internalStyleOverrides = undefined;
16
17
  }
17
18
  readyHandler(event) {
@@ -63,7 +64,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
63
64
  return this.childRef.resize();
64
65
  }
65
66
  render() {
66
- return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
67
+ return (h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
67
68
  if (el) {
68
69
  this.childRef = el;
69
70
  }
@@ -5,6 +5,7 @@ import { a as Business } from './Business.js';
5
5
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
6
6
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
7
7
  import { J as JustifiAnalytics } from './Analytics.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version.js';
8
9
  import { d as defineCustomElement$7 } from './additional-questions-details2.js';
9
10
  import { d as defineCustomElement$6 } from './business-details-core2.js';
10
11
  import { d as defineCustomElement$5 } from './generic-info-details2.js';
@@ -51,6 +52,7 @@ const BusinessDetails = /*@__PURE__*/ proxyCustomElement(class BusinessDetails e
51
52
  this.getBusiness = undefined;
52
53
  }
53
54
  componentWillLoad() {
55
+ checkPkgVersion();
54
56
  this.analytics = new JustifiAnalytics(this);
55
57
  this.initializeGetBusiness();
56
58
  }
@@ -8,11 +8,12 @@ import { A as Api } from './Api.js';
8
8
  import './Pagination.js';
9
9
  import './Payment.js';
10
10
  import './Payout.js';
11
- import { a as parseBusiness } from './payload-parsers.js';
11
+ import { c as config } from './config.js';
12
12
  import { a as BusinessFormServerErrors, b as BusinessFormClickActions } from './business-form-types.js';
13
13
  import { a as Business } from './Business.js';
14
14
  import { J as JustifiAnalytics } from './Analytics.js';
15
15
  import { S as StyledHost } from './styled-host.js';
16
+ import { c as checkPkgVersion } from './check-pkg-version.js';
16
17
  import { d as defineCustomElement$e } from './form-alert2.js';
17
18
  import { d as defineCustomElement$d } from './form-control-date2.js';
18
19
  import { d as defineCustomElement$c } from './form-control-error-text2.js';
@@ -49,8 +50,8 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
49
50
  try {
50
51
  const values = this.formController.values.getValue();
51
52
  const initialValues = this.formController.getInitialValues();
52
- const payload = parseBusiness(values, initialValues);
53
- const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
53
+ const payload = new Business(Object.assign(Object.assign({}, initialValues), values)).payload;
54
+ const response = await this.api.patch(this.businessEndpoint, payload);
54
55
  this.handleReponse(response);
55
56
  }
56
57
  catch (error) {
@@ -86,6 +87,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
86
87
  this.errorMessage = undefined;
87
88
  }
88
89
  componentWillLoad() {
90
+ checkPkgVersion();
89
91
  this.analytics = new JustifiAnalytics(this);
90
92
  const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
91
93
  const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
@@ -94,7 +96,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
94
96
  if (!this.businessId)
95
97
  console.error(missingBusinessIdMessage);
96
98
  this.formController = new FormController(businessFormSchema);
97
- this.api = Api({ authToken: this.authToken, apiOrigin: "" });
99
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
98
100
  this.fetchData();
99
101
  }
100
102
  disconnectedCallback() {
@@ -122,7 +124,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
122
124
  this.instantiateBusiness(response.data);
123
125
  }
124
126
  render() {
125
- return (h(StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
127
+ return (h(StyledHost, { key: '2f28b3e44c64d6ea1ac0d8584946927f6c9c3d05', exportparts: "label,input,input-invalid" }, h("form", { key: '5e57787b7dcd649c3523dc49d0a6946138643c7c', onSubmit: this.validateAndSubmit }, h("div", { key: '0ee6212aa6157ade79ab9b2ff5eb700549a8a916', class: "row gap-3" }, h("h1", { key: '84824314dd924cdab149c2b62b7e01b07dbf5d28' }, this.title), h("form-alert", { key: 'dca6d7ef6bcddd3090f44e5ccf9199bbd441dc87', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'a022912c284d63afbf9ce698b145d964d720b110', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'be264b806255b790a166b8a3349d78845c6c8225', formController: this.formController })), h("div", { key: 'b3a52da227a71f941941f66b758f718cdc3b7800', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '258dc5ebabc0e2dfaa8de28534238ef80a4f951d', formController: this.formController })), h("div", { key: '9dd5d30daf37d90a689333640cd1630000ee5e25', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'aa1cdf3a39170fcefbd07afcce193ed36430dc5b', formController: this.formController })), h("div", { key: 'a8cd6655a6408bef11c9ad442ecae7a0b5e3c50d', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '33db8cd22d22b694917332941b89b7535bd19201', formController: this.formController })), h("div", { key: '99d46400c8d46e5a3ca6747e5bae70bf5652a367', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '8b858727a11d5ec5f855c446f34da3c1d6253563', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
126
128
  }
127
129
  static get style() { return JustifiBusinessFormStyle0; }
128
130
  }, [1, "justifi-business-form", {
@@ -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 { J as JustifiAnalytics } from './Analytics.js';
3
4
  import { d as defineCustomElement$2 } from './payment-method-form.js';
4
5
 
@@ -11,7 +12,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
11
12
  this.cardFormTokenized = createEvent(this, "cardFormTokenize", 7);
12
13
  this.cardFormValidated = createEvent(this, "cardFormValidate", 7);
13
14
  this.validationMode = undefined;
14
- this.iframeOrigin = "";
15
+ this.iframeOrigin = config.iframeOrigin;
15
16
  this.singleLine = false;
16
17
  this.internalStyleOverrides = undefined;
17
18
  }
@@ -64,7 +65,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
64
65
  return this.childRef.resize();
65
66
  }
66
67
  render() {
67
- return (h("justifi-payment-method-form", { key: 'cc0ad5d8a262ff5c8422d247caed469a8dea3488', ref: el => {
68
+ return (h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
68
69
  if (el) {
69
70
  this.childRef = el;
70
71
  }
@@ -5,7 +5,9 @@ import { A as Api } from './Api.js';
5
5
  import './Pagination.js';
6
6
  import './Payment.js';
7
7
  import './Payout.js';
8
+ import { c as config } from './config.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$d } from './form-control-error-text2.js';
10
12
  import { d as defineCustomElement$c } from './form-control-help-text2.js';
11
13
  import { d as defineCustomElement$b } from './form-control-select2.js';
@@ -76,7 +78,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
76
78
  class CheckoutService {
77
79
  async fetchCheckout(authToken, checkoutId) {
78
80
  const endpoint = `checkouts/${checkoutId}`;
79
- return Api({ authToken, apiOrigin: "" }).get(endpoint);
81
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
80
82
  }
81
83
  async complete(authToken, checkoutId, payment) {
82
84
  const endpoint = `checkouts/${checkoutId}/complete`;
@@ -86,7 +88,7 @@ class CheckoutService {
86
88
  if (payment.payment_token) {
87
89
  payload.payment_token = payment.payment_token;
88
90
  }
89
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
91
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
90
92
  }
91
93
  }
92
94
 
@@ -108,6 +110,7 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
108
110
  this.errorMessage = '';
109
111
  }
110
112
  componentWillLoad() {
113
+ checkPkgVersion();
111
114
  this.analytics = new JustifiAnalytics(this);
112
115
  this.initializeGetCheckout();
113
116
  }
@@ -142,11 +145,11 @@ const Checkout = /*@__PURE__*/ proxyCustomElement(class Checkout extends HTMLEle
142
145
  this.checkoutCoreRef.fillBillingForm(fields);
143
146
  }
144
147
  render() {
145
- return (h("justifi-checkout-core", { key: 'd2f6bfed1be767edcf4ba21cddc503ff5efbec1a', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
148
+ return (h("justifi-checkout-core", { key: 'ea50f0df79dae86294ccfdf2ec523f0fb81433e4', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
146
149
  if (el) {
147
150
  this.checkoutCoreRef = el;
148
151
  }
149
- } }, h("div", { key: '45ac1bea74ca8ef7999211b51fe7791225d61f00', slot: "insurance" }, h("slot", { key: '13e051844cc7cb4aed98076ccd64954b2dd68228', name: "insurance" }))));
152
+ } }, h("div", { key: '301247cf7c916ba1c6c5464e3c2f0226d0f6f041', slot: "insurance" }, h("slot", { key: 'a75ff85e5a6d954e7c0d3c24abac518a2765f889', name: "insurance" }))));
150
153
  }
151
154
  static get watchers() { return {
152
155
  "authToken": ["propChanged"],
@@ -1,14 +1,16 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { A as Api } from './Api.js';
3
4
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
4
5
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
5
6
  import { E as ErrorState } from './utils.js';
6
7
  import { J as JustifiAnalytics } from './Analytics.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version.js';
7
9
  import { d as defineCustomElement$2 } from './gross-payment-chart-core2.js';
8
10
 
9
11
  class ReportsService {
10
12
  async fetchGrossVolumeChartData(accountId, authToken) {
11
- const api = Api({ authToken: authToken, apiOrigin: "" });
13
+ const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
12
14
  const endpoint = `account/${accountId}/reports/gross_volume`;
13
15
  return api.get(endpoint);
14
16
  }
@@ -58,6 +60,7 @@ const GrossPaymentChart = /*@__PURE__*/ proxyCustomElement(class GrossPaymentCha
58
60
  this.errorMessage = null;
59
61
  }
60
62
  componentWillLoad() {
63
+ checkPkgVersion();
61
64
  this.analytics = new JustifiAnalytics(this);
62
65
  this.initializeGetGrossPayment();
63
66
  }
@@ -7,6 +7,7 @@ import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './Compone
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
8
8
  import { E as ErrorState } from './utils.js';
9
9
  import { J as JustifiAnalytics } from './Analytics.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version.js';
10
11
  import { d as defineCustomElement$3 } from './details.js';
11
12
  import { d as defineCustomElement$2 } from './payment-details-core2.js';
12
13
 
@@ -54,6 +55,7 @@ const PaymentDetails = /*@__PURE__*/ proxyCustomElement(class PaymentDetails ext
54
55
  this.errorMessage = null;
55
56
  }
56
57
  componentWillLoad() {
58
+ checkPkgVersion();
57
59
  this.analytics = new JustifiAnalytics(this);
58
60
  this.initializeGetPaymentDetails();
59
61
  }
@@ -3,11 +3,13 @@ import './Pagination.js';
3
3
  import { P as PaymentMethodTypes } from './Payment.js';
4
4
  import './Payout.js';
5
5
  import { l as loadFontsOnParent } from './utils2.js';
6
+ import { c as config } from './config.js';
6
7
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
7
8
  import { g as getErrorMessage } from './utils3.js';
8
9
  import { J as JustifiAnalytics } from './Analytics.js';
9
10
  import { B as Button } from './button.js';
10
11
  import { S as StyledHost } from './styled-host.js';
12
+ import { c as checkPkgVersion } from './check-pkg-version.js';
11
13
  import { d as defineCustomElement$8 } from './form-control-error-text2.js';
12
14
  import { d as defineCustomElement$7 } from './form-control-help-text2.js';
13
15
  import { d as defineCustomElement$6 } from './form-control-select2.js';
@@ -38,6 +40,7 @@ const PaymentForm = /*@__PURE__*/ proxyCustomElement(class PaymentForm extends H
38
40
  this.selectedPaymentMethodType = PaymentMethodTypes.card;
39
41
  }
40
42
  componentWillLoad() {
43
+ checkPkgVersion();
41
44
  this.analytics = new JustifiAnalytics(this);
42
45
  if (!this.validateProps()) {
43
46
  this.errorEvent.emit({
@@ -124,15 +127,15 @@ const PaymentForm = /*@__PURE__*/ proxyCustomElement(class PaymentForm extends H
124
127
  }
125
128
  }
126
129
  render() {
127
- return (h(StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: "", ref: el => {
130
+ return (h(StyledHost, { key: 'f7d035a9ed8b16016493aa07a85a6b4d6d83b5f5' }, h("form", { key: 'fb9354b439332ef4ee67e915f27b60b9b744e6e2', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '303fbccf9beb30c1d822f0ac148128dfba9d158f', class: "col-12" }, h("justifi-payment-method-selector", { key: 'f71353d3f90ab50461a57ce3738ea853ca4d1cc3', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'd9024a406dcde487ff2bb7d34385da0a1be8aef5', class: "col-12" }, h("justifi-payment-method-form", { key: '010488c96f1b6b5af049b89151cea9ce61f263bb', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
128
131
  if (el) {
129
132
  this.paymentMethodFormRef = el;
130
133
  }
131
- } })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
134
+ } })), h("div", { key: 'c8b41e9d6bc0d21db4bc1efa12852480ed4a0bbd', class: "col-12" }, h("justifi-billing-form", { key: '2226122296e6b9da8359b90fe563b6c4342c72f3', legend: "Billing Info", ref: el => {
132
135
  if (el) {
133
136
  this.billingFormRef = el;
134
137
  }
135
- } })), h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, h(Button, { key: 'c280836cf6445a7132ff9202a09b6fdac8e29f77', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
138
+ } })), h("slot", { key: '5aa12164db0d1ac4570db49b7a1bc527d974a8ab', name: 'insurance' }), h("div", { key: '5b0ad786dcf96a4c83696b1e3d1cd09345313807', class: "col-12" }, h(Button, { key: 'b3a55eaf9403d33a0e0769ca2c6c42b086f4da9a', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
136
139
  }
137
140
  static get style() { return JustifiPaymentFormStyle0; }
138
141
  }, [1, "justifi-payment-form", {
@@ -3,7 +3,9 @@ import { J as JustifiAnalytics } from './Analytics.js';
3
3
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
4
4
  import { m as makeGetBusiness, e as makePostProvisioning } from './payment-provisioning-actions.js';
5
5
  import { B as BusinessService } from './business.service.js';
6
+ import { c as config } from './config.js';
6
7
  import { A as Api } from './Api.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version.js';
7
9
  import { d as defineCustomElement$y } from './form-control-checkbox2.js';
8
10
  import { d as defineCustomElement$x } from './form-control-date2.js';
9
11
  import { d as defineCustomElement$w } from './form-control-error-text2.js';
@@ -45,7 +47,7 @@ class ProvisionService {
45
47
  business_id: businessId,
46
48
  product_category: product,
47
49
  };
48
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
50
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
49
51
  }
50
52
  }
51
53
 
@@ -65,6 +67,7 @@ const PaymentProvisioning = /*@__PURE__*/ proxyCustomElement(class PaymentProvis
65
67
  this.initializeApi();
66
68
  }
67
69
  componentWillLoad() {
70
+ checkPkgVersion();
68
71
  this.analytics = new JustifiAnalytics(this);
69
72
  this.initializeApi();
70
73
  }
@@ -94,7 +97,7 @@ const PaymentProvisioning = /*@__PURE__*/ proxyCustomElement(class PaymentProvis
94
97
  }
95
98
  }
96
99
  render() {
97
- return (h("justifi-payment-provisioning-core", { key: 'a93ee23fabf4bdeb381e924bfdf684ddd183075a', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
100
+ return (h("justifi-payment-provisioning-core", { key: '82b3601d3349a92bed1aa93e2a847039d7493c04', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
98
101
  }
99
102
  static get watchers() { return {
100
103
  "authToken": ["propChanged"],
@@ -7,11 +7,17 @@ import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './Compone
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
8
8
  import { E as ErrorState } from './utils.js';
9
9
  import { J as JustifiAnalytics } from './Analytics.js';
10
- import { d as defineCustomElement$6 } from './form-control-date2.js';
11
- import { d as defineCustomElement$5 } from './form-control-error-text2.js';
12
- import { d as defineCustomElement$4 } from './form-control-help-text2.js';
13
- import { d as defineCustomElement$3 } from './pagination-menu2.js';
14
- import { d as defineCustomElement$2 } from './payments-list-core2.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version.js';
11
+ import { d as defineCustomElement$b } from './custom-popper2.js';
12
+ import { d as defineCustomElement$a } from './form-control-date2.js';
13
+ import { d as defineCustomElement$9 } from './form-control-error-text2.js';
14
+ import { d as defineCustomElement$8 } from './form-control-help-text2.js';
15
+ import { d as defineCustomElement$7 } from './form-control-select2.js';
16
+ import { d as defineCustomElement$6 } from './form-control-text2.js';
17
+ import { d as defineCustomElement$5 } from './pagination-menu2.js';
18
+ import { d as defineCustomElement$4 } from './payments-list-core2.js';
19
+ import { d as defineCustomElement$3 } from './payments-list-filters2.js';
20
+ import { d as defineCustomElement$2 } from './table-filters-menu2.js';
15
21
 
16
22
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
17
23
  var _a, _b;
@@ -58,6 +64,7 @@ const PaymentsList = /*@__PURE__*/ proxyCustomElement(class PaymentsList extends
58
64
  this.errorMessage = null;
59
65
  }
60
66
  componentWillLoad() {
67
+ checkPkgVersion();
61
68
  this.analytics = new JustifiAnalytics(this);
62
69
  this.initializeGetPayments();
63
70
  }
@@ -107,34 +114,59 @@ function defineCustomElement$1() {
107
114
  if (typeof customElements === "undefined") {
108
115
  return;
109
116
  }
110
- const components = ["justifi-payments-list", "form-control-date", "form-control-error-text", "form-control-help-text", "pagination-menu", "payments-list-core"];
117
+ const components = ["justifi-payments-list", "custom-popper", "form-control-date", "form-control-error-text", "form-control-help-text", "form-control-select", "form-control-text", "pagination-menu", "payments-list-core", "payments-list-filters", "table-filters-menu"];
111
118
  components.forEach(tagName => { switch (tagName) {
112
119
  case "justifi-payments-list":
113
120
  if (!customElements.get(tagName)) {
114
121
  customElements.define(tagName, PaymentsList);
115
122
  }
116
123
  break;
124
+ case "custom-popper":
125
+ if (!customElements.get(tagName)) {
126
+ defineCustomElement$b();
127
+ }
128
+ break;
117
129
  case "form-control-date":
118
130
  if (!customElements.get(tagName)) {
119
- defineCustomElement$6();
131
+ defineCustomElement$a();
120
132
  }
121
133
  break;
122
134
  case "form-control-error-text":
123
135
  if (!customElements.get(tagName)) {
124
- defineCustomElement$5();
136
+ defineCustomElement$9();
125
137
  }
126
138
  break;
127
139
  case "form-control-help-text":
128
140
  if (!customElements.get(tagName)) {
129
- defineCustomElement$4();
141
+ defineCustomElement$8();
142
+ }
143
+ break;
144
+ case "form-control-select":
145
+ if (!customElements.get(tagName)) {
146
+ defineCustomElement$7();
147
+ }
148
+ break;
149
+ case "form-control-text":
150
+ if (!customElements.get(tagName)) {
151
+ defineCustomElement$6();
130
152
  }
131
153
  break;
132
154
  case "pagination-menu":
133
155
  if (!customElements.get(tagName)) {
134
- defineCustomElement$3();
156
+ defineCustomElement$5();
135
157
  }
136
158
  break;
137
159
  case "payments-list-core":
160
+ if (!customElements.get(tagName)) {
161
+ defineCustomElement$4();
162
+ }
163
+ break;
164
+ case "payments-list-filters":
165
+ if (!customElements.get(tagName)) {
166
+ defineCustomElement$3();
167
+ }
168
+ break;
169
+ case "table-filters-menu":
138
170
  if (!customElements.get(tagName)) {
139
171
  defineCustomElement$2();
140
172
  }
@@ -7,6 +7,7 @@ import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './Compone
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
8
8
  import { E as ErrorState } from './utils.js';
9
9
  import { J as JustifiAnalytics } from './Analytics.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version.js';
10
11
  import { d as defineCustomElement$3 } from './details.js';
11
12
  import { d as defineCustomElement$2 } from './payout-details-core2.js';
12
13
 
@@ -56,6 +57,7 @@ const PayoutDetails = /*@__PURE__*/ proxyCustomElement(class PayoutDetails exten
56
57
  this.errorMessage = null;
57
58
  }
58
59
  componentWillLoad() {
60
+ checkPkgVersion();
59
61
  this.analytics = new JustifiAnalytics(this);
60
62
  this.initializeServices();
61
63
  }
@@ -8,6 +8,7 @@ import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './Compone
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
9
9
  import { E as ErrorState } from './utils.js';
10
10
  import { J as JustifiAnalytics } from './Analytics.js';
11
+ import { c as checkPkgVersion } from './check-pkg-version.js';
11
12
  import { d as defineCustomElement$6 } from './form-control-date2.js';
12
13
  import { d as defineCustomElement$5 } from './form-control-error-text2.js';
13
14
  import { d as defineCustomElement$4 } from './form-control-help-text2.js';
@@ -61,6 +62,7 @@ const PayoutsList = /*@__PURE__*/ proxyCustomElement(class PayoutsList extends H
61
62
  this.errorMessage = null;
62
63
  }
63
64
  componentWillLoad() {
65
+ checkPkgVersion();
64
66
  this.analytics = new JustifiAnalytics(this);
65
67
  this.initializeServices();
66
68
  }
@@ -4,6 +4,7 @@ import { A as Api } from './Api.js';
4
4
  import './Pagination.js';
5
5
  import './Payment.js';
6
6
  import './Payout.js';
7
+ import { c as config } from './config.js';
7
8
  import { C as CURRENCY_MASK } from './form-input-masks.js';
8
9
  import { S as StyledHost } from './styled-host.js';
9
10
  import { d as defineCustomElement$5 } from './form-control-error-text2.js';
@@ -95,11 +96,11 @@ const RefundForm = /*@__PURE__*/ proxyCustomElement(class RefundForm extends HTM
95
96
  if (!this.authToken) {
96
97
  console.warn('Warning: Missing auth-token.');
97
98
  }
98
- this.api = Api({ authToken: this.authToken, apiOrigin: "" });
99
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
99
100
  }
100
101
  render() {
101
102
  var _a;
102
- return (h(StyledHost, { key: '8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939' }, h("h1", { key: 'be589740535ee8a5ab6d4af7151d7ae026f08002' }, "Refund"), this.refundInfoText && (h("div", { key: 'b1d40507dec53bac422f99a3d62678c78c0c2038', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: 'cc76014eef0d826bec5ec09355dc5fc747fd2070', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '68220114781378f6507651414c87532171bebb31', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '075545e9837316fe160760e0dba9a5104654dd2b', class: "form-group" }, h("form-control-monetary", { key: 'c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '92093284e763466be5138ea6d788145d5d47bd87', class: "form-group" }, h("form-control-text", { key: 'ddf9e221d43d84ad7436261c5755e673224aa82e', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '58abbbabce09d82da4032ef0e08e6cfac1433153', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '3e703ef633e0d45ba70425dc6d58bcd2d590ce1b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
103
+ return (h(StyledHost, { key: '317b405be6fae390e20b7bf8586aced9fdf5e246' }, h("h1", { key: 'e27cd7c30b74eae1be005dfd17cc4a33411024d1' }, "Refund"), this.refundInfoText && (h("div", { key: '00298ad8bd4a0c5e56d78e94f2b9da8b3ad065df', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: 'e32db4b03e42a6e8180b10e99a7a7de94e753850', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'd63e3a790338bd5c3ac9f304aaa01b65928bd34e', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: 'a5cb24ef9f8214e37398d4c2eb790f0c5ffb5a18', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'c8e24f30f8db93bef5e6b56d9eea5208aa768f94', class: "form-group" }, h("form-control-monetary", { key: 'a52701bc026714e8e0851eeff6c8458385f2f5da', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: 'e2ff04104c47d2852da925de074b1667dcc684f4', class: "form-group" }, h("form-control-text", { key: '8567d4f6082642919e2a132511af6eb9f393cd65', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '6634bfd2156b45f189c4c4b630983712bbc5baa4', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '1a0c80e5ee42673d09f9d7f9a36acc2f4ea52f8b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
103
104
  }
104
105
  static get style() { return JustifiRefundFormStyle0; }
105
106
  }, [1, "justifi-refund-form", {