@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
@@ -1,80 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
- import { E as ErrorState } from './p-dce846bf.js';
3
- import { B as BusinessService } from './p-0e1bc91e.js';
4
- import { B as Business } from './p-af244664.js';
5
- import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
6
- import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
7
- import { J as JustifiAnalytics } from './p-15eafa87.js';
8
- import './p-29c0b182.js';
9
- import './p-1ff8810b.js';
10
- import './p-6078a370.js';
11
- import './p-2e8f4937.js';
12
-
13
- const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
14
- var _a;
15
- try {
16
- const response = await service.fetchBusiness(id, authToken);
17
- if (!response.error) {
18
- onSuccess({ business: new Business(response.data) });
19
- }
20
- else {
21
- const responseError = getErrorMessage(response.error);
22
- const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
23
- return onError({
24
- error: responseError,
25
- code,
26
- severity: ComponentErrorSeverity.ERROR,
27
- });
28
- }
29
- }
30
- catch (error) {
31
- const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
32
- return onError({
33
- error: error.message || error,
34
- code,
35
- severity: ComponentErrorSeverity.ERROR,
36
- });
37
- }
38
- };
39
-
40
- const BusinessDetails = class {
41
- constructor(hostRef) {
42
- registerInstance(this, hostRef);
43
- this.errorEvent = createEvent(this, "error-event", 7);
44
- this.businessId = undefined;
45
- this.authToken = undefined;
46
- this.errorMessage = undefined;
47
- this.getBusiness = undefined;
48
- }
49
- componentWillLoad() {
50
- this.analytics = new JustifiAnalytics(this);
51
- this.initializeGetBusiness();
52
- }
53
- disconnectedCallback() {
54
- this.analytics.cleanup();
55
- }
56
- initializeGetBusiness() {
57
- if (!this.businessId || !this.authToken) {
58
- this.errorMessage = 'Invalid business id or auth token';
59
- this.errorEvent.emit({
60
- errorCode: ComponentErrorCodes.MISSING_PROPS,
61
- message: this.errorMessage,
62
- severity: ComponentErrorSeverity.ERROR,
63
- });
64
- return;
65
- }
66
- this.getBusiness = makeGetBusiness({
67
- id: this.businessId,
68
- authToken: this.authToken,
69
- service: new BusinessService(),
70
- });
71
- }
72
- render() {
73
- if (this.errorMessage) {
74
- return h(Host, null, ErrorState(this.errorMessage));
75
- }
76
- return (h(Host, null, h("business-details-core", { getBusiness: this.getBusiness })));
77
- }
78
- };
79
-
80
- export { BusinessDetails as justifi_business_details };
@@ -1,76 +0,0 @@
1
- import { r as registerInstance, h, c as createEvent } from './p-fad19d75.js';
2
- import { c as create$3, F as FormController } from './p-2eab3c90.js';
3
- import { i as identityNameValidation, l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation } from './p-89887332.js';
4
- import { S as StateOptions } from './p-6078a370.js';
5
- import { n as numberOnlyHandler } from './p-8df7bde8.js';
6
- import { S as StyledHost } from './p-ba4bae6f.js';
7
- import './p-ba5fae28.js';
8
- import './p-af244664.js';
9
- import './p-1ff8810b.js';
10
-
11
- const BillingFormSchema = create$3({
12
- name: identityNameValidation.required('Enter full name'),
13
- address_line1: lineOneValidation.required('Enter street address'),
14
- address_line2: lineTwoValidation.nullable(),
15
- address_city: cityValidation.required('Enter city'),
16
- address_state: stateValidation.required('Select state'),
17
- address_postal_code: postalValidation.required('Enter postal code'),
18
- });
19
-
20
- const billingFormCss = ":host{display:block}justifi-billing-form{margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}";
21
- const JustifiBillingFormStyle0 = billingFormCss;
22
-
23
- const BillingForm = class {
24
- constructor(hostRef) {
25
- registerInstance(this, hostRef);
26
- this.inputHandler = (name, value) => {
27
- this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
28
- };
29
- this.legend = undefined;
30
- this.formController = undefined;
31
- this.billingInfo = undefined;
32
- this.errors = {};
33
- }
34
- componentWillLoad() {
35
- this.formController = new FormController(BillingFormSchema);
36
- }
37
- componentDidLoad() {
38
- this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
39
- this.formController.errors.subscribe(errors => {
40
- this.errors = Object.assign({}, errors);
41
- });
42
- }
43
- async getValues() {
44
- return this.formController.values.getValue();
45
- }
46
- async fill(fields) {
47
- this.formController.setInitialValues(fields);
48
- }
49
- async validate() {
50
- let isValid = await this.formController.validate();
51
- return { isValid: isValid };
52
- }
53
- render() {
54
- const billingFormDefaultValue = this.formController.getInitialValues();
55
- return (h(StyledHost, { key: 'b08094d3c44d35cdb3c21b4bc360dbbee19d7d15', exportparts: "label,input,input-invalid" }, h("form", { key: '392538a781ffa2ac299cbc4203bab5efd10e77cc' }, h("fieldset", { key: 'f4b5a5ec9a91e9f50a3847c5eb16635c4f9d569a' }, this.legend && h("legend", { key: 'eb75e22f9df33c13e3851ece784d237b8973e2c5' }, this.legend), h("div", { key: 'd7ffdc1cfeda5568ad003a4d3bbe94765de04605', class: "row gy-3" }, h("div", { key: 'c22f9e7b2f33b5c298bb5f0a5c7bcaa709c231a0', class: "col-12" }, h("form-control-text", { key: 'd6eb4d2f4d1a2a709e0f29bf18b5d9700bd91a13', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '8494ee3c14f8923d18d8708077e030c2f141a251', class: "col-12" }, h("form-control-text", { key: '63266eb0e2b2b006a3c914a68703ee1cdf848f83', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '0a19fcf5c172d2539f23e147f39461d84dfd9d37', class: "col-12" }, h("form-control-text", { key: '0e5fae5d65d5ea195de0227d1e4f79cee7c7a0fb', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '13104554e8247cb0534c3dc9e6a16b2f44397795', class: "col-12" }, h("form-control-text", { key: '430e59713ec66ff7a6f735ca24640c27b05cbeee', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '5b81499717f67d5f499f4ebfc585056ef5bd3d56', class: "col-12" }, h("form-control-select", { key: '726c724eda5f25a92bad7e549ff7845ece7b41e1', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '5d5a6e0949c5ad93da5bc1837dadf88c2128212d', class: "col-12" }, h("form-control-text", { key: 'ebb4e77126d86011d9a1ed5d118461198b399092', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler })))))));
56
- }
57
- };
58
- BillingForm.style = JustifiBillingFormStyle0;
59
-
60
- const SaveNewPaymentMethod = class {
61
- constructor(hostRef) {
62
- registerInstance(this, hostRef);
63
- this.checkboxChanged = createEvent(this, "checkboxChanged", 7);
64
- this.isChecked = false;
65
- }
66
- handleCheckboxChange(event) {
67
- const target = event.target;
68
- this.isChecked = target.checked;
69
- this.checkboxChanged.emit(this.isChecked);
70
- }
71
- render() {
72
- return (h("div", { key: 'f22a132a518a98786c8486e08c9a65050f3c5ea0', class: "mt-4 form-check" }, h("input", { key: '6f1392f9dd29a9761f5942b0a40e05a899858ada', type: "checkbox", checked: this.isChecked, onChange: (event) => this.handleCheckboxChange(event), class: "form-check-input" }), h("label", { key: 'e6e5908ba70ece8ea19370a04104d88d17237fc7', class: "form-check-label" }, "Save new payment method")));
73
- }
74
- };
75
-
76
- export { BillingForm as justifi_billing_form, SaveNewPaymentMethod as justifi_save_new_payment_method };
@@ -1,18 +0,0 @@
1
- import { r as registerInstance, h } from './p-fad19d75.js';
2
- import { E as ErrorState } from './p-dce846bf.js';
3
- import { S as StyledHost } from './p-ba4bae6f.js';
4
-
5
- const Details = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.errorMessage = undefined;
9
- }
10
- render() {
11
- return (h(StyledHost, { key: '00b10fc4e459688ae06147ef1535f03609ec35e4', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
12
- ErrorState(this.errorMessage)
13
- :
14
- h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
15
- }
16
- };
17
-
18
- export { Details as justifi_details };
@@ -1,149 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { f as formatCurrency } from './p-83125497.js';
3
- import { C as ComponentErrorSeverity } from './p-14c91ffd.js';
4
- import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './p-2338affa.js';
5
- import { B as Button } from './p-9c9c7dac.js';
6
- import { S as StyledHost } from './p-ba4bae6f.js';
7
- import { S as Skeleton } from './p-08b0fb31.js';
8
-
9
- class Checkout {
10
- constructor(data) {
11
- Object.assign(this, data);
12
- }
13
- }
14
-
15
- const checkoutCoreCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}.jfi-checkout-core{color:var(--jfi-body-color)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(invalid-feedback){color:var(--jfi-error-message-color);font-size:var(--jfi-error-message-font-size);margin:var(--jfi-error-message-margin);line-height:normal}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow);line-height:var(--jfi-submit-button-line-height);text-transform:var(--jfi-submit-button-text-transform)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
16
- const JustifiCheckoutCoreStyle0 = checkoutCoreCss;
17
-
18
- const headerCss = ".jfi-header{color:var(--jfi-header-color);border-bottom:var(--jfi-header-border)}";
19
- const JustifiCheckoutCoreStyle1 = headerCss;
20
-
21
- const CheckoutCore = class {
22
- constructor(hostRef) {
23
- registerInstance(this, hostRef);
24
- this.submitted = createEvent(this, "submitted", 7);
25
- this.errorEvent = createEvent(this, "error-event", 7);
26
- this.loaded = createEvent(this, "loaded", 7);
27
- this.completeCheckout = async (payment) => {
28
- this.complete({
29
- payment,
30
- onSuccess: this.onSubmitted,
31
- onError: this.onError,
32
- });
33
- };
34
- this.onSubmitted = (data) => {
35
- this.submitted.emit(data);
36
- this.renderState = 'success';
37
- };
38
- this.onError = ({ error, code, severity }) => {
39
- this.serverError = error;
40
- this.errorEvent.emit({
41
- errorCode: code,
42
- message: error,
43
- severity,
44
- });
45
- this.renderState = 'error';
46
- };
47
- this.iframeOrigin = "";
48
- this.authToken = undefined;
49
- this.getCheckout = undefined;
50
- this.complete = undefined;
51
- this.checkoutId = undefined;
52
- this.disableCreditCard = undefined;
53
- this.disableBankAccount = undefined;
54
- this.disableBnpl = undefined;
55
- this.disablePaymentMethodGroup = undefined;
56
- this.hasLoadedFonts = false;
57
- this.checkout = undefined;
58
- this.serverError = undefined;
59
- this.renderState = 'loading';
60
- this.creatingNewPaymentMethod = false;
61
- this.insuranceToggled = false;
62
- }
63
- async fillBillingForm(fields) {
64
- this.paymentMethodOptionsRef.fillBillingForm(fields);
65
- }
66
- componentWillLoad() {
67
- console.log('CheckoutCore: componentWillLoad iframeOrigin', this, this.iframeOrigin);
68
- if (this.getCheckout) {
69
- this.fetchData();
70
- // Refresh the checkout data when insurance is added or removed
71
- insuranceValuesOn('set', (key) => {
72
- const value = insuranceValues[key];
73
- if (value !== undefined) {
74
- this.insuranceToggled = value;
75
- this.fetchData();
76
- }
77
- });
78
- }
79
- }
80
- fetchData() {
81
- this.renderState = 'loading';
82
- this.getCheckout({
83
- onSuccess: ({ checkout }) => {
84
- this.checkout = new Checkout(checkout);
85
- const { status } = this.checkout;
86
- this.loaded.emit({ checkout_status: status });
87
- this.renderState = 'success';
88
- },
89
- onError: ({ error, code, severity }) => {
90
- this.serverError = error;
91
- this.renderState = 'error';
92
- this.errorEvent.emit({
93
- errorCode: code,
94
- message: error,
95
- severity,
96
- });
97
- }
98
- });
99
- }
100
- ;
101
- async submit(event) {
102
- var _a;
103
- event.preventDefault();
104
- this.renderState = 'loading';
105
- const insuranceValidation = validateInsuranceValues();
106
- const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
107
- if (payload.validationError) {
108
- this.renderState = 'error';
109
- }
110
- else if (payload.error) {
111
- this.renderState = 'error';
112
- this.serverError = payload.error.message;
113
- this.onError({
114
- code: payload.error.code,
115
- error: payload.error.message,
116
- severity: ComponentErrorSeverity.ERROR,
117
- });
118
- }
119
- else if (payload.token) {
120
- this.completeCheckout({ payment_mode: 'ecom', payment_token: payload.token });
121
- }
122
- else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
123
- this.completeCheckout({ payment_mode: 'bnpl' });
124
- }
125
- else {
126
- this.renderState = 'error';
127
- }
128
- }
129
- get isLoading() {
130
- return this.renderState === 'loading';
131
- }
132
- get isError() {
133
- return this.renderState === 'error';
134
- }
135
- get paymentType() {
136
- var _a, _b, _c, _d, _e;
137
- return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { variant: "rounded", height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
138
- }
139
- get summary() {
140
- var _a, _b;
141
- return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
142
- }
143
- render() {
144
- return (h(StyledHost, { key: '991ae6970e426028ace0d1e8327119bc197639b0' }, h("div", { key: '1e57ee21429b494240e644235a2d5815ced99d43', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '70023ce10dea6ff8d5bd8e30c7d474f774682c65', class: "col-12" }, h("h2", { key: '8b09b03c1998e4d60e174fefb3d196e48d50b84a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: 'e3bbdaaaf010451a31fe9c60bdf81e89bdd142f2', class: "col-12" }, h("slot", { key: '442a01184960f42b5e1f6694798633d3e7219bf5', name: "insurance" })), h("div", { key: '716e26e3dc675e9d72a3a992b1cb212ce48ffb1a', class: "col-12 mt-4" }, h("h2", { key: '762cfc8549b20d16583d0fd8748bde8035042c00', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'f07d716a87f3e2bd44471f7e93f7af5f5d20440e', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '1156291dd748b90d64a08916ffb98c3123132175', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'a5bd142a1c72c5abb29338a2cf24c180119d4ea7', class: "col-12" }, h("div", { key: '5a94ed9d54fd3dd24cfe3e34c23ee3c4995eca6d', class: "d-flex justify-content-end" }, h(Button, { key: '7fce3940d8fe562aa7c23e38201b5d2924157288', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
145
- }
146
- };
147
- CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
148
-
149
- export { CheckoutCore as justifi_checkout_core };
@@ -1,61 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
- import { I as IMask } from './p-1ad5995e.js';
3
- import { C as CURRENCY_MASK } from './p-525db3e8.js';
4
-
5
- const MonetaryInput = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.formControlInput = createEvent(this, "formControlInput", 7);
9
- this.formControlBlur = createEvent(this, "formControlBlur", 7);
10
- this.imask = null;
11
- this.initializeIMask = () => {
12
- if (!this.textInput)
13
- return;
14
- this.imask = IMask(this.textInput, this.maskOptions);
15
- this.imask.on('accept', () => {
16
- const rawValue = this.imask.unmaskedValue;
17
- this.inputHandler(this.name, rawValue);
18
- this.formControlInput.emit({ name: this.name, value: rawValue });
19
- });
20
- this.textInput.addEventListener('blur', () => this.formControlBlur.emit());
21
- };
22
- this.handleFormControlInput = (event) => {
23
- const target = event.target;
24
- const name = target.getAttribute('name');
25
- const rawValue = this.imask.unmaskedValue;
26
- this.formControlInput.emit({ name: name, value: rawValue });
27
- };
28
- this.updateInput = (newValue) => {
29
- if (this.imask) {
30
- this.imask.value = String(newValue);
31
- }
32
- };
33
- this.label = undefined;
34
- this.name = undefined;
35
- this.helpText = undefined;
36
- this.errorText = undefined;
37
- this.defaultValue = undefined;
38
- this.inputHandler = undefined;
39
- this.maskOptions = CURRENCY_MASK.DECIMAL;
40
- this.disabled = undefined;
41
- }
42
- handleDefaultValueChange(newValue) {
43
- this.updateInput(newValue);
44
- }
45
- componentDidLoad() {
46
- this.initializeIMask();
47
- this.updateInput(this.defaultValue);
48
- }
49
- disconnectedCallback() {
50
- var _a;
51
- (_a = this.imask) === null || _a === void 0 ? void 0 : _a.destroy();
52
- }
53
- render() {
54
- return (h(Host, { key: '8797b3aa5c6a30f472d51e2b9437b6158b0566fc', exportparts: "label,input,input-group-input,input-group-text,input-invalid" }, h("div", { key: '0d3e068cf104aec3f6250f5cd6c00a9342928fe8', class: "form-group d-flex flex-column" }, h("label", { key: '0e86db7c0d981bdae74c51dd75bf5579d07b4793', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '8fc773de3995bb37e6fa00b34d8d9e2deaef4bbd', class: "input-group" }, h("span", { key: '83860eac764be9eeea31302d60525fb56af9dc1d', class: "input-group-text", part: "input-group-text" }, "$"), h("input", { key: 'b8c655c0b8eeb6ec328eeaed651773c293aa3100', ref: el => (this.textInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input input-group-input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h("form-control-help-text", { key: 'b3f142b9c67a792a96b597bdaf91fd3abe1b7ce3', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'daefe97a15bde309c397a506de6cda9a0376323b', errorText: this.errorText, name: this.name }))));
55
- }
56
- static get watchers() { return {
57
- "defaultValue": ["handleDefaultValueChange"]
58
- }; }
59
- };
60
-
61
- export { MonetaryInput as form_control_monetary };
@@ -1,162 +0,0 @@
1
- import { h, r as registerInstance, c as createEvent } from './p-fad19d75.js';
2
- import { p as pagingDefaults } from './p-56f6ce4c.js';
3
- import './p-df21aaad.js';
4
- import { a as PayoutStatuses, b as PayoutStatusesSafeNames } from './p-e3fab0e2.js';
5
- import { b as formatDate, c as formatTime, f as formatCurrency } from './p-83125497.js';
6
- import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './p-14c91ffd.js';
7
- import { t as tableExportedParts } from './p-2b6c9c4f.js';
8
- import { S as StyledHost } from './p-ba4bae6f.js';
9
- import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './p-e333620e.js';
10
-
11
- const DownloadIcon = (props) => (h("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24' }, props),
12
- h("path", { d: 'M12 15.5l-5-5 1.41-1.41L12 12.67l3.59-3.58L17 10.5l-5 5z' }),
13
- h("path", { d: 'M11 4h2v9h-2z' }),
14
- h("path", { d: 'M5 18h14v2H5z' })));
15
-
16
- const PayoutsListCore = class {
17
- constructor(hostRef) {
18
- registerInstance(this, hostRef);
19
- this.rowClicked = createEvent(this, "payout-row-clicked", 7);
20
- this.errorEvent = createEvent(this, "error-event", 7);
21
- this.downloadCSV = (payoutId) => {
22
- this.getPayoutCSV({
23
- payoutId,
24
- onError: () => {
25
- this.errorEvent.emit({
26
- errorCode: ComponentErrorCodes.FETCH_ERROR,
27
- message: 'Failed to download CSV',
28
- severity: ComponentErrorSeverity.ERROR,
29
- });
30
- },
31
- });
32
- };
33
- this.handleDateChange = (name, value) => {
34
- this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
35
- };
36
- this.handleClickPrevious = (beforeCursor) => {
37
- const newParams = Object.assign({}, this.params);
38
- delete newParams.after_cursor;
39
- this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
40
- };
41
- this.handleClickNext = (afterCursor) => {
42
- const newParams = Object.assign({}, this.params);
43
- delete newParams.before_cursor;
44
- this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
45
- };
46
- this.mapStatusToBadge = (status) => {
47
- switch (status) {
48
- case PayoutStatuses.scheduled:
49
- return `<span class="badge bg-primary" title='Batched and scheduled to be transferred'>${PayoutStatusesSafeNames[status]}</span>`;
50
- case PayoutStatuses.in_transit:
51
- return `<span class="badge bg-primary" title='Transfer to your bank account has been initiated'>${PayoutStatusesSafeNames[status]}</span>`;
52
- case PayoutStatuses.failed:
53
- return `<span class="badge bg-danger" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;
54
- case PayoutStatuses.canceled:
55
- return `<span class="badge bg-danger" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;
56
- case PayoutStatuses.forwarded:
57
- return `<span class="badge bg-secondary" title='The funds have been forwarded to your next successful payout'>${PayoutStatusesSafeNames[status]}</span>`;
58
- case PayoutStatuses.paid:
59
- return `<span class="badge bg-success" title='Successfully deposited into your bank account'>${PayoutStatusesSafeNames[status]}</span>`;
60
- }
61
- };
62
- this.rowClickHandler = (e) => {
63
- const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
64
- if (!clickedPayoutID)
65
- return;
66
- this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
67
- };
68
- this.getPayouts = undefined;
69
- this.getPayoutCSV = undefined;
70
- this.payouts = [];
71
- this.loading = true;
72
- this.errorMessage = undefined;
73
- this.paging = pagingDefaults;
74
- this.params = undefined;
75
- }
76
- updateOnPropChange() {
77
- this.fetchData();
78
- }
79
- componentWillLoad() {
80
- if (this.getPayouts) {
81
- this.fetchData();
82
- }
83
- }
84
- fetchData() {
85
- this.loading = true;
86
- this.getPayouts({
87
- params: this.params,
88
- onSuccess: ({ payouts, pagingInfo }) => {
89
- this.payouts = payouts;
90
- this.paging = pagingInfo;
91
- this.loading = false;
92
- },
93
- onError: ({ error, code, severity }) => {
94
- this.errorMessage = error;
95
- this.errorEvent.emit({
96
- errorCode: code,
97
- message: error,
98
- severity,
99
- });
100
- this.loading = false;
101
- },
102
- });
103
- }
104
- get entityId() {
105
- return this.payouts.map((payout) => payout.id);
106
- }
107
- get columnData() {
108
- return [
109
- ['Paid Out On', 'The date each transaction occurred'],
110
- ['Type', 'The type of each transaction'],
111
- ['Account', 'The ID of the account associated with each payout'],
112
- ['Paid Out To', 'The bank account to which each payout was transferred'],
113
- ['Payments', 'Sum of payments in each payout'],
114
- ['Refunds', 'Sum of refunds in each payout'],
115
- ['Fees', 'Sum of fees in each payout'],
116
- ['Other', 'Sum of less common transactions in each payout'],
117
- ['Payout Amount', 'The net sum of all transactions in each payout'],
118
- ['Status', 'The real-time status of each payout'],
119
- ['Actions', ''],
120
- ];
121
- }
122
- get rowData() {
123
- return this.payouts.map((payout) => [
124
- {
125
- type: 'head',
126
- value: `
127
- <div class='fw-bold'>${formatDate(payout.created_at)}</div>
128
- <div class='fw-bold'>${formatTime(payout.created_at)}</div>
129
- `,
130
- },
131
- payout.payout_type,
132
- payout.account_id,
133
- `${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
134
- formatCurrency(payout.payments_total),
135
- formatCurrency(payout.refunds_total),
136
- formatCurrency(payout.fees_total),
137
- formatCurrency(payout.other_total),
138
- formatCurrency(payout.amount),
139
- { type: 'inner', value: this.mapStatusToBadge(payout.status) },
140
- (h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } })),
141
- ]);
142
- }
143
- get showEmptyState() {
144
- return !this.loading && !this.errorMessage && this.rowData.length < 1;
145
- }
146
- get showErrorState() {
147
- return !this.loading && !!this.errorMessage;
148
- }
149
- get showRowData() {
150
- return !this.showEmptyState && !this.showErrorState;
151
- }
152
- render() {
153
- return (h(StyledHost, { key: '594c52003f897f4c50f79935e42a7042fb5ec168', exportedparts: tableExportedParts }, h("div", { key: 'f2b1d971e1e7bc5596459c071c3aa931ba4cb4b9', class: "row gy-3 mb-4" }, h("div", { key: 'd98e3ed56421493a60bd0a285079aa99ae705506', class: "col-2" }, h("form-control-date", { key: 'c9c899884bcc6fa6d306b95473ef0a7354e57bd5', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), h("div", { key: '0059a75bf2f478b107d59bd9d7cc29de10dffe57', class: "col-2" }, h("form-control-date", { key: 'ef9a31ac8a8e7336386664b70289ee34677152a4', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), h("div", { key: '65da1114a66ac4cdf8d6ec012a42b2f760af5c76', class: "table-wrapper" }, h("table", { key: 'd68d8f61835cc4dc5dc988ff61843e6254494ace', class: "table table-hover" }, h("thead", { key: 'aa691db8fbfbcdad59acbdc1ef38497b552928ab', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'aa9f61cbf05b9420026861cb14e6a30a6c9e347e', class: "table-light text-nowrap", part: "table-head-row" }, this.columnData.map((column) => (h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, Array.isArray(column) ? column[0] : column))))), h("tbody", { key: 'cf0127f26e8bc5b7afbbfc4a36fab4de948d1727', class: "table-body", part: "table-body" }, h(TableLoadingState, { key: 'd6b832786c4959176974c7a343442c8d1c50b5c2', columnSpan: this.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '398a20957f76ba14e1b0677fbd6fbfbacce61fbb', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), h(TableErrorState, { key: 'd9f755a07a6f8cd4967eac60beff92f36322dcdd', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
154
- 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) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (h("tfoot", { key: '503fa3a3a7ffe5d52b614153b286dd0326c02091', class: "sticky-bottom" }, h("tr", { key: 'e3af74b96bfc1f5ac1f0f0655eaed096102d0e89', class: "table-light align-middle" }, h("td", { key: 'a53f9d37181ea29a9fcb6ab46b2daf7cc66509be', part: "pagination-bar", colSpan: this.columnData.length }, h("pagination-menu", { key: 'b0779289444747e0b18bb63e6a17cdc89bd390ca', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
155
- }
156
- static get watchers() { return {
157
- "params": ["updateOnPropChange"],
158
- "getPayouts": ["updateOnPropChange"]
159
- }; }
160
- };
161
-
162
- export { PayoutsListCore as payouts_list_core };
@@ -1,90 +0,0 @@
1
- import { c as create$3, a as create$6 } from './p-2eab3c90.js';
2
- import { l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation, i as identityNameValidation, b as identityTitleValidation, e as emailValidation, d as phoneValidation, f as dobValidation, g as ssnValidation } from './p-89887332.js';
3
-
4
- const addressSchema = (allowOptionalFields) => {
5
- const schema = create$3({
6
- line1: lineOneValidation.required('Enter street address'),
7
- line2: lineTwoValidation.nullable(),
8
- city: cityValidation.required('Enter city'),
9
- state: stateValidation.required('Select state'),
10
- postal_code: postalValidation.required('Enter postal code'),
11
- country: create$6().required('Select country')
12
- });
13
- const easySchema = create$3({
14
- line1: lineOneValidation.nullable(),
15
- line2: lineTwoValidation.nullable(),
16
- city: cityValidation.nullable(),
17
- state: stateValidation.nullable(),
18
- postal_code: postalValidation.nullable(),
19
- country: create$6().required('Select country')
20
- });
21
- return allowOptionalFields ? easySchema : schema;
22
- };
23
-
24
- const identitySchema = (role, allowOptionalFields) => {
25
- const schema = create$3({
26
- name: identityNameValidation.required(`Enter ${role} name`),
27
- title: identityTitleValidation.required(`Enter ${role} title`),
28
- email: emailValidation.required(`Enter ${role} email`),
29
- phone: phoneValidation.required('Enter phone number'),
30
- dob_full: dobValidation(role).required('Enter date of birth'),
31
- ssn_last4: create$6().nullable(),
32
- identification_number: ssnValidation,
33
- address: addressSchema(allowOptionalFields),
34
- });
35
- const easySchema = create$3({
36
- name: identityNameValidation.required(`Enter ${role} name`),
37
- title: identityTitleValidation.nullable(),
38
- email: emailValidation.nullable(),
39
- phone: phoneValidation.nullable(),
40
- dob_full: dobValidation(role).nullable(),
41
- ssn_last4: create$6().nullable(),
42
- identification_number: ssnValidation.nullable(),
43
- address: addressSchema(allowOptionalFields),
44
- });
45
- return allowOptionalFields ? easySchema : schema;
46
- };
47
-
48
- // These props should not be sent to the server
49
- // This function is for the larger business form.
50
- const parseBusiness = (values, initialValues) => {
51
- var _a;
52
- parseCoreInfo(values);
53
- parseAddressInfo(values.legal_address);
54
- parseIdentityInfo(values.representative);
55
- ((_a = initialValues.owners) === null || _a === void 0 ? void 0 : _a.length) && delete values.owners;
56
- return values;
57
- };
58
- // These functions are for the stepped business form.
59
- const parseCoreInfo = (values) => {
60
- delete values.id;
61
- delete values.documents;
62
- delete values.bank_accounts;
63
- delete values.product_categories;
64
- delete values.created_at;
65
- delete values.updated_at;
66
- delete values.associated_accounts;
67
- delete values.terms_conditions_accepted;
68
- return values;
69
- };
70
- const parseAddressInfo = (values) => {
71
- delete values.id;
72
- delete values.created_at;
73
- delete values.updated_at;
74
- return values;
75
- };
76
- const parseIdentityInfo = (values) => {
77
- delete values.id;
78
- delete values.documents;
79
- delete values.created_at;
80
- delete values.updated_at;
81
- delete values.address.id;
82
- delete values.address.created_at;
83
- delete values.address.updated_at;
84
- delete values.business_id;
85
- delete values.dob_full;
86
- delete values.ssn_last4;
87
- return values;
88
- };
89
-
90
- export { addressSchema as a, parseCoreInfo as b, parseIdentityInfo as c, parseAddressInfo as d, identitySchema as i, parseBusiness as p };