@justifi/webcomponents 6.15.0-rc.2 → 6.15.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 (241) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-COhunq0p.js → Analytics-BjZHa0wt.js} +4 -4
  3. package/dist/cjs/{Api-Do6SaltY.js → Api-us3AxMRC.js} +1 -1
  4. package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
  5. package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
  6. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +13 -13
  7. package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
  8. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  9. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
  10. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  11. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-XiCLzxWM.js} +3 -3
  13. package/dist/cjs/{business.service-72YETCdB.js → business.service-_Sl3vWmu.js} +3 -3
  14. package/dist/cjs/card-form.cjs.entry.js +4 -4
  15. package/dist/cjs/{check-pkg-version-BxGoSXGD.js → check-pkg-version-CjJab8fX.js} +1 -1
  16. package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
  17. package/dist/cjs/{checkout.service-CPsXfx0Z.js → checkout.service-B_qymeqJ.js} +3 -3
  18. package/dist/cjs/{country-config-C1bWmF8P.js → country-config-DQQujh5h.js} +1 -1
  19. package/dist/cjs/dispute-notification_2.cjs.entry.js +8 -8
  20. package/dist/cjs/{event-types-UHzCC7Ga.js → event-types-DmY59QXs.js} +3 -3
  21. package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
  22. package/dist/cjs/form-alert_3.cjs.entry.js +1 -1
  23. package/dist/cjs/form-control-number_2.cjs.entry.js +4 -4
  24. package/dist/cjs/{get-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
  25. package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
  26. package/dist/cjs/{get-subaccounts-Bp7DOmM_.js → get-subaccounts-BMY2bOFj.js} +4 -4
  27. package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
  28. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +17 -11
  29. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
  30. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
  31. package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
  32. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  33. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
  34. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  38. package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
  39. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +33 -20
  40. package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
  41. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  43. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
  44. package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  46. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
  47. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  48. package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
  50. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  52. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
  54. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
  56. package/dist/cjs/{package-G3Vs7Jx5.js → package-30T__1wH.js} +1 -1
  57. package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
  58. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
  59. package/dist/cjs/{payment.service-CVwTrHEL.js → payment.service-DRXVT-uB.js} +3 -3
  60. package/dist/cjs/{payout.service-CL3VR0hN.js → payout.service-CuQ-mXKB.js} +3 -3
  61. package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
  62. package/dist/cjs/{plaid.service-Cukg5wuY.js → plaid.service-B58nzlUE.js} +3 -3
  63. package/dist/cjs/{schema-validations-DehT309E.js → schema-validations-sjRvL4KO.js} +5 -4
  64. package/dist/cjs/{terminal.service-C0KG7BqL.js → terminal.service-CmtSEgTc.js} +3 -3
  65. package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
  66. package/dist/collection/api/Business.js +2 -0
  67. package/dist/collection/api/Checkout.js +1 -1
  68. package/dist/collection/components/business-forms/schemas/schema-helpers.js +2 -1
  69. package/dist/collection/components/business-forms/utils/helpers.js +3 -1
  70. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -2
  71. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +3 -3
  72. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +7 -1
  73. package/dist/docs.json +2 -2
  74. package/dist/esm/{Analytics-3WmRTICF.js → Analytics-BtMYbHD0.js} +4 -4
  75. package/dist/esm/{Api-83B3f28Q.js → Api-nVK-rgbk.js} +1 -1
  76. package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
  77. package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
  78. package/dist/esm/additional-questions-form-step_15.entry.js +13 -13
  79. package/dist/esm/additional-questions_4.entry.js +3 -3
  80. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  81. package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
  82. package/dist/esm/bank-account-form.entry.js +4 -4
  83. package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
  84. package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BP61Unwf.js} +3 -3
  85. package/dist/esm/{business.service-CTqiKKy5.js → business.service-Cq7H5w1T.js} +3 -3
  86. package/dist/esm/card-form.entry.js +4 -4
  87. package/dist/esm/{check-pkg-version-CmFl6VLH.js → check-pkg-version-BW9zgceK.js} +1 -1
  88. package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
  89. package/dist/esm/{checkout.service-wjFjBxIB.js → checkout.service-JA7oTq5d.js} +3 -3
  90. package/dist/esm/{country-config-CJwnhkdq.js → country-config-F5YwgHgR.js} +1 -1
  91. package/dist/esm/dispute-notification_2.entry.js +8 -8
  92. package/dist/esm/{event-types-cqQHLwCy.js → event-types-Dsf8IwD6.js} +3 -3
  93. package/dist/esm/form-address-fields_3.entry.js +2 -2
  94. package/dist/esm/form-alert_3.entry.js +1 -1
  95. package/dist/esm/form-control-number_2.entry.js +4 -4
  96. package/dist/esm/{get-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
  97. package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
  98. package/dist/esm/{get-subaccounts-ClGG-LRZ.js → get-subaccounts-B-S2TGRa.js} +4 -4
  99. package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
  100. package/dist/esm/justifi-apple-pay_12.entry.js +17 -11
  101. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
  102. package/dist/esm/justifi-bank-account-form.entry.js +6 -6
  103. package/dist/esm/justifi-business-details.entry.js +9 -9
  104. package/dist/esm/justifi-business-form.entry.js +13 -13
  105. package/dist/esm/justifi-card-form.entry.js +6 -6
  106. package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
  107. package/dist/esm/justifi-checkout.entry.js +6 -6
  108. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
  109. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  110. package/dist/esm/justifi-dispute-management.entry.js +8 -8
  111. package/dist/esm/justifi-gross-payment-chart.entry.js +33 -20
  112. package/dist/esm/justifi-order-terminals.entry.js +10 -10
  113. package/dist/esm/justifi-payment-details.entry.js +9 -9
  114. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  115. package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
  116. package/dist/esm/justifi-payments-list.entry.js +8 -8
  117. package/dist/esm/justifi-payout-details.entry.js +9 -9
  118. package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
  119. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  120. package/dist/esm/justifi-payouts-list.entry.js +10 -10
  121. package/dist/esm/justifi-qr-terminal.entry.js +9 -9
  122. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  123. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
  124. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  125. package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
  126. package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
  127. package/dist/esm/justifi-terminals-list.entry.js +9 -9
  128. package/dist/esm/{package-CAVi_ne1.js → package-BC9n8nB2.js} +1 -1
  129. package/dist/esm/{payment-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
  130. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
  131. package/dist/esm/{payment.service-D7uv5vym.js → payment.service-B42sKlQE.js} +3 -3
  132. package/dist/esm/{payout.service-BoSyqft1.js → payout.service-BIoAgNJJ.js} +3 -3
  133. package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
  134. package/dist/esm/{plaid.service-DufQkxDk.js → plaid.service-C6Ltk2ef.js} +3 -3
  135. package/dist/esm/{schema-validations-8dbMCACI.js → schema-validations-De7Qe0VU.js} +5 -4
  136. package/dist/esm/{terminal.service-BM2aebB6.js → terminal.service-DV3qIwBy.js} +3 -3
  137. package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
  138. package/dist/module/Business.js +5 -1
  139. package/dist/module/Plaid.js +1 -1
  140. package/dist/module/justifi-apple-pay2.js +7 -1
  141. package/dist/module/justifi-checkouts-list-filters.js +4 -2
  142. package/dist/module/justifi-checkouts-list.js +2 -2
  143. package/dist/module/justifi-gross-payment-chart.js +26 -13
  144. package/dist/module/package.js +1 -1
  145. package/dist/module/schema-validations.js +2 -1
  146. package/dist/types/api/Business.d.ts +2 -0
  147. package/dist/types/api/Checkout.d.ts +7 -7
  148. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +1 -1
  149. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -0
  150. package/dist/types/components.d.ts +1 -1
  151. package/dist/webcomponents/p-065b854f.entry.js +1 -0
  152. package/dist/webcomponents/{p-b98ea26a.entry.js → p-082f912c.entry.js} +1 -1
  153. package/dist/webcomponents/{p-5c89dcdf.entry.js → p-0cd689f4.entry.js} +1 -1
  154. package/dist/webcomponents/{p-6eb65d23.entry.js → p-0e9351c4.entry.js} +1 -1
  155. package/dist/webcomponents/p-0f7e3515.entry.js +20 -0
  156. package/dist/webcomponents/{p-f3682c72.entry.js → p-13814028.entry.js} +1 -1
  157. package/dist/webcomponents/{p-bf3866b3.entry.js → p-16261d8a.entry.js} +1 -1
  158. package/dist/webcomponents/p-19cabdaf.entry.js +1 -0
  159. package/dist/webcomponents/{p-cb1cc88e.entry.js → p-1cfa634a.entry.js} +1 -1
  160. package/dist/webcomponents/p-2ef913b8.entry.js +1 -0
  161. package/dist/webcomponents/{p-25f70d5f.entry.js → p-3a1f8c5b.entry.js} +1 -1
  162. package/dist/webcomponents/{p-0aa96018.entry.js → p-429046e1.entry.js} +1 -1
  163. package/dist/webcomponents/{p-4cad48c1.entry.js → p-44ff4f2c.entry.js} +1 -1
  164. package/dist/webcomponents/{p-68e88747.entry.js → p-4740601b.entry.js} +1 -1
  165. package/dist/webcomponents/{p-50c2b8f0.entry.js → p-59b95eae.entry.js} +1 -1
  166. package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
  167. package/dist/webcomponents/p-6c7fca1a.entry.js +1 -0
  168. package/dist/webcomponents/{p-5dcb1713.entry.js → p-735d397e.entry.js} +1 -1
  169. package/dist/webcomponents/p-8432cb42.entry.js +1 -0
  170. package/dist/webcomponents/{p-f5358a80.entry.js → p-88a44a02.entry.js} +1 -1
  171. package/dist/webcomponents/{p-f9f0cb1f.entry.js → p-89f0c2aa.entry.js} +1 -1
  172. package/dist/webcomponents/p-9b43b90d.entry.js +1 -0
  173. package/dist/webcomponents/p-9db15fac.entry.js +1 -0
  174. package/dist/webcomponents/{p-b23dfa13.entry.js → p-9eb00966.entry.js} +1 -1
  175. package/dist/webcomponents/p-BAvoKtN2.js +1 -0
  176. package/dist/webcomponents/p-BC9n8nB2.js +1 -0
  177. package/dist/webcomponents/p-BDtSw_d-.js +1 -0
  178. package/dist/webcomponents/{p-CIpBEUtx.js → p-B_2zgnvM.js} +1 -1
  179. package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
  180. package/dist/webcomponents/{p-nbKvRcwU.js → p-BjjKkMO1.js} +1 -1
  181. package/dist/webcomponents/p-BmaQUnqv.js +1 -0
  182. package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
  183. package/dist/webcomponents/p-C60AkJ6a.js +1 -0
  184. package/dist/webcomponents/{p-vIQBTQmc.js → p-C6Jq8YDT.js} +1 -1
  185. package/dist/webcomponents/p-C9p1gWAC.js +1 -0
  186. package/dist/webcomponents/p-CTtGaVYs.js +1 -0
  187. package/dist/webcomponents/p-CgOgijHy.js +1 -0
  188. package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
  189. package/dist/webcomponents/p-D694H6co.js +1 -0
  190. package/dist/webcomponents/p-D7fNBSlC.js +1 -0
  191. package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
  192. package/dist/webcomponents/p-DC2djVls.js +1 -0
  193. package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
  194. package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
  195. package/dist/webcomponents/{p-BEL8sLz6.js → p-_MjmE9YT.js} +1 -1
  196. package/dist/webcomponents/{p-c3818a5a.entry.js → p-a10beb26.entry.js} +1 -1
  197. package/dist/webcomponents/{p-7002286e.entry.js → p-a71cc8e2.entry.js} +1 -1
  198. package/dist/webcomponents/{p-ced6f6f1.entry.js → p-a7c594d1.entry.js} +1 -1
  199. package/dist/webcomponents/{p-6931a1f2.entry.js → p-a8d25057.entry.js} +1 -1
  200. package/dist/webcomponents/{p-ee7fe3a8.entry.js → p-b9ba7c95.entry.js} +1 -1
  201. package/dist/webcomponents/{p-5842d4e8.entry.js → p-c385f10d.entry.js} +1 -1
  202. package/dist/webcomponents/p-c55fdbbf.entry.js +1 -0
  203. package/dist/webcomponents/{p-eb31024f.entry.js → p-cec7164e.entry.js} +1 -1
  204. package/dist/webcomponents/p-d3544e86.entry.js +1 -0
  205. package/dist/webcomponents/{p-9e9a2546.entry.js → p-de047614.entry.js} +1 -1
  206. package/dist/webcomponents/{p-c5424fda.entry.js → p-f2b3c7d5.entry.js} +1 -1
  207. package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
  208. package/dist/webcomponents/{p-6c94218c.entry.js → p-f40fa614.entry.js} +1 -1
  209. package/dist/webcomponents/{p-5d7b3d71.entry.js → p-f5cb6a26.entry.js} +1 -1
  210. package/dist/webcomponents/{p-fdd087d4.entry.js → p-f9f310dc.entry.js} +1 -1
  211. package/dist/webcomponents/p-iA-Amt2z.js +1 -0
  212. package/dist/webcomponents/p-pueOrhXO.js +1 -0
  213. package/dist/webcomponents/{p-CJEetAx7.js → p-rFpPIJgu.js} +1 -1
  214. package/dist/webcomponents/{p-CawcnSoV.js → p-riZDHN5-.js} +1 -1
  215. package/dist/webcomponents/webcomponents.esm.js +1 -1
  216. package/package.json +15 -17
  217. package/dist/webcomponents/p-27igUlku.js +0 -1
  218. package/dist/webcomponents/p-3642e189.entry.js +0 -1
  219. package/dist/webcomponents/p-5f8c30b6.entry.js +0 -1
  220. package/dist/webcomponents/p-74575a99.entry.js +0 -1
  221. package/dist/webcomponents/p-7c405573.entry.js +0 -1
  222. package/dist/webcomponents/p-825a7ee6.entry.js +0 -1
  223. package/dist/webcomponents/p-909a9828.entry.js +0 -20
  224. package/dist/webcomponents/p-955c06d3.entry.js +0 -1
  225. package/dist/webcomponents/p-BAKuMxC9.js +0 -1
  226. package/dist/webcomponents/p-BSxXlu9H.js +0 -1
  227. package/dist/webcomponents/p-CAVi_ne1.js +0 -1
  228. package/dist/webcomponents/p-CXsRwohv.js +0 -1
  229. package/dist/webcomponents/p-CbyGKcz_.js +0 -1
  230. package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
  231. package/dist/webcomponents/p-CyOXIqHo.js +0 -1
  232. package/dist/webcomponents/p-D6uhYbLo.js +0 -1
  233. package/dist/webcomponents/p-DN7VhlTn.js +0 -1
  234. package/dist/webcomponents/p-DNuxxP2B.js +0 -1
  235. package/dist/webcomponents/p-D_84NsmN.js +0 -1
  236. package/dist/webcomponents/p-DaDqgDrb.js +0 -1
  237. package/dist/webcomponents/p-Do9dxNjh.js +0 -1
  238. package/dist/webcomponents/p-PdwJswAy.js +0 -1
  239. package/dist/webcomponents/p-ca13117d.entry.js +0 -1
  240. package/dist/webcomponents/p-d59676ea.entry.js +0 -1
  241. package/dist/webcomponents/p-d98bc829.entry.js +0 -1
@@ -2,21 +2,21 @@ import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js'
2
2
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
3
3
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
4
4
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion } from './check-pkg-version-CmFl6VLH.js';
5
+ import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
6
6
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
7
7
  import { a as convertToLocal } from './utils-D8J8OvxY.js';
8
8
  import './config-state-BKOsYBXZ.js';
9
- import { f as TerminalOrderType, p as TerminalOrder, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-BP3xNxQF.js';
9
+ import { f as TerminalOrderType, p as TerminalOrder, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
10
10
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
11
- import './Business-DaDqgDrb.js';
11
+ import './Business-CTtGaVYs.js';
12
12
  import { B as BadgeVariant, a as Badge } from './badge-B7QMpafx.js';
13
13
  import './dinero-HXpYMWUU.js';
14
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
15
- import { A as Api } from './Api-83B3f28Q.js';
16
- import { J as JustifiAnalytics } from './Analytics-3WmRTICF.js';
14
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
15
+ import { A as Api } from './Api-nVK-rgbk.js';
16
+ import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
17
17
  import { o as onQueryParamsChange, g as getRequestParams } from './terminal-orders-list-params-state-DfRLZrOO.js';
18
18
  import './spinner-EZmqiSfd.js';
19
- import './package-CAVi_ne1.js';
19
+ import './package-BC9n8nB2.js';
20
20
  import './index-3wWWWrhn.js';
21
21
 
22
22
  const MapTerminalOrderStatusToBadge = (status) => {
@@ -6,9 +6,9 @@ import { f as filterMenu, a as filterParam } from './parts-Bu7gdOaV.js';
6
6
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
7
7
  import './event-types-CZfYo5-1.js';
8
8
  import './config-state-BKOsYBXZ.js';
9
- import { g as ITerminalStatus } from './Plaid-BP3xNxQF.js';
9
+ import { g as ITerminalStatus } from './Plaid-CRcTLeaz.js';
10
10
  import './Pagination-CLHwhyvu.js';
11
- import './Business-DaDqgDrb.js';
11
+ import './Business-CTtGaVYs.js';
12
12
  import './_commonjsHelpers-BFTU3MAI.js';
13
13
  import './dinero-HXpYMWUU.js';
14
14
  import './index-3wWWWrhn.js';
@@ -1,14 +1,14 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-CV0Pyo1O.js';
2
- import { n as Terminal, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-BP3xNxQF.js';
3
- import { J as JustifiAnalytics } from './Analytics-3WmRTICF.js';
4
- import { c as checkPkgVersion } from './check-pkg-version-CmFl6VLH.js';
5
- import { T as TerminalService } from './terminal.service-BM2aebB6.js';
2
+ import { n as Terminal, C as ComponentErrorSeverity, b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
3
+ import { J as JustifiAnalytics } from './Analytics-BtMYbHD0.js';
4
+ import { c as checkPkgVersion } from './check-pkg-version-BW9zgceK.js';
5
+ import { T as TerminalService } from './terminal.service-DV3qIwBy.js';
6
6
  import './config-state-BKOsYBXZ.js';
7
7
  import './dinero-HXpYMWUU.js';
8
8
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
9
- import './Business-DaDqgDrb.js';
10
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
11
- import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-ClGG-LRZ.js';
9
+ import './Business-CTtGaVYs.js';
10
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
11
+ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-B-S2TGRa.js';
12
12
  import { S as StyledHost } from './styled-host-RvPhw8Gu.js';
13
13
  import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table-CD17nv9n.js';
14
14
  import { T as TableClickActions } from './event-types-CZfYo5-1.js';
@@ -16,8 +16,8 @@ import { B as BadgeVariant, a as Badge } from './badge-B7QMpafx.js';
16
16
  import { a6 as tableHeadCell, a7 as getAlternateTableCellPart } from './parts-Bu7gdOaV.js';
17
17
  import { j as capitalFirstLetter } from './utils-D8J8OvxY.js';
18
18
  import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state-DfRLZrOO.js';
19
- import './package-CAVi_ne1.js';
20
- import './Api-83B3f28Q.js';
19
+ import './package-BC9n8nB2.js';
20
+ import './Api-nVK-rgbk.js';
21
21
  import './index-3wWWWrhn.js';
22
22
  import './spinner-EZmqiSfd.js';
23
23
 
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.15.0-rc.2";
2
+ const version = "6.15.0";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -1,5 +1,5 @@
1
- import { C as ComponentErrorSeverity } from './Plaid-BP3xNxQF.js';
2
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
1
+ import { C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
2
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
3
3
 
4
4
  // Business / Entity API Actions
5
5
  const makeGetBusiness = ({ authToken, businessId, service }) => async ({ onSuccess, onError, final = () => { } }) => {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-CV0Pyo1O.js';
2
- import { C as CountryCode } from './Business-DaDqgDrb.js';
2
+ import { C as CountryCode } from './Business-CTtGaVYs.js';
3
3
  import { B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
4
4
  import { B as Button } from './button-CBzHAOFW.js';
5
5
  import './event-types-CZfYo5-1.js';
@@ -1,7 +1,7 @@
1
- import { A as Api } from './Api-83B3f28Q.js';
2
- import './Plaid-BP3xNxQF.js';
1
+ import { A as Api } from './Api-nVK-rgbk.js';
2
+ import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
- import './Business-DaDqgDrb.js';
4
+ import './Business-CTtGaVYs.js';
5
5
 
6
6
  const api = Api();
7
7
  class PaymentService {
@@ -1,7 +1,7 @@
1
- import { A as Api } from './Api-83B3f28Q.js';
2
- import './Plaid-BP3xNxQF.js';
1
+ import { A as Api } from './Api-nVK-rgbk.js';
2
+ import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
- import './Business-DaDqgDrb.js';
4
+ import './Business-CTtGaVYs.js';
5
5
 
6
6
  const api = Api();
7
7
  class PayoutService {
@@ -1,5 +1,5 @@
1
- import { C as ComponentErrorSeverity } from './Plaid-BP3xNxQF.js';
2
- import { g as getErrorCode, a as getErrorMessage } from './utils-YUOJKtjO.js';
1
+ import { C as ComponentErrorSeverity } from './Plaid-CRcTLeaz.js';
2
+ import { g as getErrorCode, a as getErrorMessage } from './utils-DaPywmTI.js';
3
3
  import { h } from './index-CV0Pyo1O.js';
4
4
  import { B as BadgeVariant, a as Badge } from './badge-B7QMpafx.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { A as Api } from './Api-83B3f28Q.js';
2
- import './Plaid-BP3xNxQF.js';
1
+ import { A as Api } from './Api-nVK-rgbk.js';
2
+ import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
- import './Business-DaDqgDrb.js';
4
+ import './Business-CTtGaVYs.js';
5
5
 
6
6
  const api = Api();
7
7
  class PlaidService {
@@ -1,7 +1,7 @@
1
1
  import { a as create$6 } from './index.esm-KCSohgHx.js';
2
- import { P as ProvinceOptions, a as countryValidation } from './country-config-CJwnhkdq.js';
3
- import { S as StateOptions, C as CountryCode } from './Business-DaDqgDrb.js';
4
- import { a as businessServiceReceivedOptions, c as bankAccountTypeOptions } from './business-form-options-BxVQL9ar.js';
2
+ import { P as ProvinceOptions, a as countryValidation } from './country-config-F5YwgHgR.js';
3
+ import { S as StateOptions, C as CountryCode } from './Business-CTtGaVYs.js';
4
+ import { a as businessServiceReceivedOptions, c as bankAccountTypeOptions } from './business-form-options-DLRkVtee.js';
5
5
 
6
6
  /**
7
7
  * US states/territories + Canadian provinces/territories for checkout billing only.
@@ -32,7 +32,8 @@ const validateRoutingNumber = (routingNumber) => {
32
32
  const phoneRegex = /^\d{10}$/;
33
33
  const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/;
34
34
  const numbersOnlyRegex = /^\d+$/;
35
- const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
35
+ // 9XX area allowed so ITINs pass
36
+ const ssnRegex = /^(?!000|666)\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
36
37
  const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
37
38
 
38
39
  // Common Validations
@@ -1,7 +1,7 @@
1
- import { A as Api } from './Api-83B3f28Q.js';
2
- import './Plaid-BP3xNxQF.js';
1
+ import { A as Api } from './Api-nVK-rgbk.js';
2
+ import './Plaid-CRcTLeaz.js';
3
3
  import './Pagination-CLHwhyvu.js';
4
- import './Business-DaDqgDrb.js';
4
+ import './Business-CTtGaVYs.js';
5
5
 
6
6
  const api = Api();
7
7
  class TerminalService {
@@ -1,4 +1,4 @@
1
- import { b as ComponentErrorCodes } from './Plaid-BP3xNxQF.js';
1
+ import { b as ComponentErrorCodes } from './Plaid-CRcTLeaz.js';
2
2
 
3
3
  // Errors on [capital]/config/locales/en.yml
4
4
  // Add more errors as needed
@@ -264,7 +264,9 @@ function deconstructDate(formInput) {
264
264
  return { dob_year, dob_month, dob_day };
265
265
  }
266
266
  function checkProvisioningStatus(business) {
267
- return business.associated_accounts.length > 0;
267
+ var _a, _b;
268
+ // Succeeded provisioning records; an associated account alone doesn't mean payments were provisioned.
269
+ return (_b = (_a = business.provisioned) === null || _a === void 0 ? void 0 : _a.includes('payments')) !== null && _b !== void 0 ? _b : false;
268
270
  }
269
271
 
270
272
  class Owner {
@@ -455,10 +457,12 @@ class CoreBusinessInfo {
455
457
  }
456
458
  class Business {
457
459
  constructor(business) {
460
+ var _a;
458
461
  this.additional_questions = business.additional_questions
459
462
  ? new AdditionalQuestions(business.additional_questions)
460
463
  : null;
461
464
  this.associated_accounts = business.associated_accounts;
465
+ this.provisioned = (_a = business.provisioned) !== null && _a !== void 0 ? _a : [];
462
466
  this.classification = business.classification;
463
467
  this.bank_accounts = business.bank_accounts;
464
468
  this.created_at = business.created_at;
@@ -79,7 +79,7 @@ class Checkout {
79
79
  }
80
80
  get payment_mode() {
81
81
  var _a, _b, _c, _d, _e, _f;
82
- let paymentMode;
82
+ let paymentMode = null;
83
83
  if (!this.completions || this.completions.length === 0) {
84
84
  return ICheckoutPaymentMode.unknown;
85
85
  }
@@ -539,7 +539,7 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
539
539
  this.error = null;
540
540
  this.applePayStarted.emit();
541
541
  const paymentRequest = {
542
- countryCode: this.countryCode,
542
+ countryCode: this.countryCodeForCurrency(checkoutStore.paymentCurrency),
543
543
  currencyCode: checkoutStore.paymentCurrency,
544
544
  merchantCapabilities: [
545
545
  ApplePayMerchantCapability.SUPPORTS_3DS,
@@ -603,6 +603,12 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
603
603
  });
604
604
  }
605
605
  }
606
+ countryCodeForCurrency(currency) {
607
+ if (currency.toLowerCase() == "cad") {
608
+ return "CA";
609
+ }
610
+ return "US";
611
+ }
606
612
  loadApplePaySDK() {
607
613
  if (this.sdkLoaded)
608
614
  return;
@@ -66,12 +66,14 @@ const JustifiCheckoutsListFilters$1 = /*@__PURE__*/ proxyCustomElement(class Jus
66
66
  { label: 'E-commerce', value: ICheckoutPaymentModeParam.ecom },
67
67
  { label: 'BNPL', value: ICheckoutPaymentModeParam.bnpl },
68
68
  { label: 'Apple Pay', value: ICheckoutPaymentModeParam.apple_pay },
69
+ { label: 'Paypal', value: ICheckoutPaymentModeParam.paypal },
70
+ { label: 'Venmo', value: ICheckoutPaymentModeParam.venmo }
69
71
  ];
70
72
  }
71
73
  render() {
72
74
  const filterMenuParams = Object.assign({}, filterParams);
73
- return (h(StyledHost, { key: '175f4d80e539b956be529d9e0e7bd94dd00aef32' }, h("table-filters-menu", { key: '4d8acfb715b038948bce514d501b567be0e3d15d', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '062bc3404f5985a84bf716976b617f9816012d0c', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '77d933a6d6b78350295b8169aa252157188625fa', class: "p-2" }, h("form-control-text", { key: 'd5193421fd54a05069d2c93b2d9702fe614a5b12', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || filterParams.checkout_id, disabled: !!this.checkoutId, part: filterParam })), h("div", { key: '964eb355ce3c7d089d832aac9909d81d12a13001', class: "p-2" }, h("form-control-text", { key: '5942e0937e04b6957efed9eabc770f28665669f6', name: "successful_payment_id", label: "Successful Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.successfulPaymentId || filterParams.successful_payment_id, disabled: !!this.successfulPaymentId, part: filterParam })), h("div", { key: '35a093a384d2c386cbfc117714409ee3e262bc72', class: "p-2" }, h("form-control-select", { key: '7bdbb5d2f9e3a1b82ff9f5245767992308d8ba7d', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: filterParam })), h("div", { key: '59de4b040ac72aa2f26ea52c729125de23c561cd', class: "p-2" }, h("form-control-select", { key: 'c6f202c97e0dce53b11da79369659de1f01aa4e7', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: filterParam })), h("div", { key: '63094ad30d30ede904b82b40b4223b466258b43b', class: "p-2" }, h("form-control-date", { key: 'dc8a121917086233970feff405edfab4a5a84794', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
74
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: 'fa9eefce1d398a0be634a03a72ce98f28ecac696', class: "p-2" }, h("form-control-date", { key: '9b07c3693396a1bf47d996fa83d1902188cf78cb', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
75
+ return (h(StyledHost, { key: 'eca6b148bbea71d2ae0169aa67251ab87cadc1df' }, h("table-filters-menu", { key: '87af760346bd028aca6fb5f29ad9d16d1344e0e5', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '63a139d5d7f213bd0b7496f8076b2c95a36860a3', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'ae268b747aa817dee8e8c762132008d59ed6cb6f', class: "p-2" }, h("form-control-text", { key: 'a8a0139e9a8671c0a74f7bb5cb7d40cc5c76f9e8', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || filterParams.checkout_id, disabled: !!this.checkoutId, part: filterParam })), h("div", { key: '5fbd8588d9f64254182cf08689dda0c705755e03', class: "p-2" }, h("form-control-text", { key: '6d70a400b4936fdf3d35c00a3b95303bc3e79688', name: "successful_payment_id", label: "Successful Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.successfulPaymentId || filterParams.successful_payment_id, disabled: !!this.successfulPaymentId, part: filterParam })), h("div", { key: '96a3b1bf5eaa46dcda3f01de50d991a14cb6f455', class: "p-2" }, h("form-control-select", { key: '06572e5d0528cfc0e36c6d95210ec6bc6db119ab', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: filterParam })), h("div", { key: '81cb0976145496cbb991b2b20d8acaee24238f65', class: "p-2" }, h("form-control-select", { key: '15db898c3fac34c2ac0262d17c07ea811ddbebd7', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: filterParam })), h("div", { key: 'cbae593e372d8fcb648fff5503ac6495e75c5f2e', class: "p-2" }, h("form-control-date", { key: '06f605f92582dbf1ea654a4c14ea0089932e9aea', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
76
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '278400d92ded9bff800e4b2142434c046d1be397', class: "p-2" }, h("form-control-date", { key: '53a98e350078d690df0985627ac1a6f0e39f74ad', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
75
77
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam }))))));
76
78
  }
77
79
  }, [257, "justifi-checkouts-list-filters", {
@@ -269,8 +269,8 @@ const JustifiCheckoutsList$1 = /*@__PURE__*/ proxyCustomElement(class JustifiChe
269
269
  return !this.showEmptyState && !this.showErrorState && !this.loading;
270
270
  }
271
271
  render() {
272
- return (h(StyledHost, { key: 'f022fc9244c2c8d6e43136ef67d584b7e02d88c0' }, h(TableWrapper, { key: '4426bfe67f6847fc4e7afac5bc6f49003eab7bdc' }, h(TableComponent, { key: 'd0c5683a6d86166853a184902c0492d7d692053d' }, h(TableHead, { key: '414525dcdce777fb9b96da4577f9df9dbc5209e5' }, h(TableHeadRow, { key: '059f355e53d1610e9a98caefc2e843042b82a401' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: 'a084de3e1cd2463d94e189d5d3241a19a885e43d' }, h(TableLoadingState, { key: '3efa17a9737fcac772f9d97880b4a990a97a7e99', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '636f2bf2b881e3ae93fd2ae5b78f4951eb2aa55e', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: 'd17071cdf4f1295f6aa53efb566fa470f40ef8cd', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData &&
273
- this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'dc301ba7b3039400a3dbb9761ca8d7894e619e7d' }, h(TableFootRow, { key: '18936a6e7bbc6c0ed07181e22beb9488ef5d3fcd' }, h(TableFootCell, { key: '56749d191e514a9ef47d505efe831d808abf59db', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '7cd65843172cb881640de5e3815ec1e85984b9be', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
272
+ return (h(StyledHost, { key: 'a7b1654b627bab83958b7247b27c296ee1164cfc' }, h(TableWrapper, { key: 'e3dddb238409f778e52ad036b7cd2ec41279f3dc' }, h(TableComponent, { key: 'd0960d893904207989f88685bcc80bc6c1979b47' }, h(TableHead, { key: 'dc11347964df3a6c5d4adce407e668fd0a7683cf' }, h(TableHeadRow, { key: '5c2ee6078f1ff84b273ce843b24d47161097155e' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '6c88b83f5369accef71b05713fa7b1fd43b01862' }, h(TableLoadingState, { key: 'f463c22c1f6cc7e80a698b0ae751f8ab7fb43cc5', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a9414a60b8c91f87537da7853bfb32264c2c966b', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '41ebd0d98fe7591a0cc93e1fd37f0a2027d249fb', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData &&
273
+ this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: 'e41929553535de5f86ce9b84f5264bb1c3a43796' }, h(TableFootRow, { key: 'c4cc91e37335f5ed9b9819364978d3eeecd6f879' }, h(TableFootCell, { key: '7f0fcab1ec2c31c9f82de6b8d524f9a8166c229b', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: '0949bb91fa20cb78dfb1b7a01c91db713cb92c00', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
274
274
  }
275
275
  static get watchers() { return {
276
276
  "accountId": ["authPropChanged"],
@@ -597,9 +597,9 @@ class Color {
597
597
  }
598
598
 
599
599
  /*!
600
- * Chart.js v4.5.1
600
+ * Chart.js v4.6.1
601
601
  * https://www.chartjs.org
602
- * (c) 2025 Chart.js Contributors
602
+ * (c) 2026 Chart.js Contributors
603
603
  * Released under the MIT License
604
604
  */
605
605
 
@@ -2558,10 +2558,12 @@ function getMaximumSize(canvas, bbWidth, bbHeight, aspectRatio) {
2558
2558
  canvas.style.height = `${chart.height}px`;
2559
2559
  canvas.style.width = `${chart.width}px`;
2560
2560
  }
2561
- if (chart.currentDevicePixelRatio !== pixelRatio || canvas.height !== deviceHeight || canvas.width !== deviceWidth) {
2561
+ const canvasHeight = Math.floor(deviceHeight);
2562
+ const canvasWidth = Math.floor(deviceWidth);
2563
+ if (chart.currentDevicePixelRatio !== pixelRatio || canvas.height !== canvasHeight || canvas.width !== canvasWidth) {
2562
2564
  chart.currentDevicePixelRatio = pixelRatio;
2563
- canvas.height = deviceHeight;
2564
- canvas.width = deviceWidth;
2565
+ canvas.height = canvasHeight;
2566
+ canvas.width = canvasWidth;
2565
2567
  chart.ctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);
2566
2568
  return true;
2567
2569
  }
@@ -2694,9 +2696,9 @@ function getDatasetClipArea(chart, meta) {
2694
2696
  }
2695
2697
 
2696
2698
  /*!
2697
- * Chart.js v4.5.1
2699
+ * Chart.js v4.6.1
2698
2700
  * https://www.chartjs.org
2699
- * (c) 2025 Chart.js Contributors
2701
+ * (c) 2026 Chart.js Contributors
2700
2702
  * Released under the MIT License
2701
2703
  */
2702
2704
 
@@ -3250,7 +3252,7 @@ function clearStacks(meta, items) {
3250
3252
  for (const parsed of items){
3251
3253
  const stacks = parsed._stacks;
3252
3254
  if (!stacks || stacks[axis] === undefined || stacks[axis][datasetIndex] === undefined) {
3253
- return;
3255
+ continue;
3254
3256
  }
3255
3257
  delete stacks[axis][datasetIndex];
3256
3258
  if (stacks[axis]._visualValues !== undefined && stacks[axis]._visualValues[datasetIndex] !== undefined) {
@@ -4415,11 +4417,12 @@ class DoughnutController extends DatasetController {
4415
4417
  circumference: 360,
4416
4418
  radius: '100%',
4417
4419
  spacing: 0,
4420
+ spacingMode: 'angular',
4418
4421
  indexAxis: 'r'
4419
4422
  };
4420
4423
  static descriptors = {
4421
- _scriptable: (name)=>name !== 'spacing',
4422
- _indexable: (name)=>name !== 'spacing' && !name.startsWith('borderDash') && !name.startsWith('hoverBorderDash')
4424
+ _scriptable: (name)=>name !== 'spacing' && name !== 'spacingMode',
4425
+ _indexable: (name)=>name !== 'spacing' && name !== 'spacingMode' && !name.startsWith('borderDash') && !name.startsWith('hoverBorderDash')
4423
4426
  };
4424
4427
  static overrides = {
4425
4428
  aspectRatio: 1,
@@ -4680,7 +4683,9 @@ class PolarAreaController extends DatasetController {
4680
4683
  }
4681
4684
  },
4682
4685
  indexAxis: 'r',
4683
- startAngle: 0
4686
+ startAngle: 0,
4687
+ spacing: 0,
4688
+ spacingMode: 'proportional'
4684
4689
  };
4685
4690
  static overrides = {
4686
4691
  aspectRatio: 1,
@@ -4823,6 +4828,12 @@ class PolarAreaController extends DatasetController {
4823
4828
  endAngle,
4824
4829
  options: this.resolveDataElementOptions(i, arc.active ? 'active' : mode)
4825
4830
  };
4831
+ if (properties.options.spacing === 0) {
4832
+ properties.options.spacing = this.options.spacing;
4833
+ }
4834
+ if (properties.options.spacingMode === 'angular') {
4835
+ properties.options.spacingMode = this.options.spacingMode;
4836
+ }
4826
4837
  this.updateElement(arc, i, properties, mode);
4827
4838
  }
4828
4839
  }
@@ -7038,7 +7049,9 @@ class Scale extends Element {
7038
7049
  translation: [
7039
7050
  titleX,
7040
7051
  titleY
7041
- ]
7052
+ ],
7053
+ strokeColor: title.strokeColor,
7054
+ strokeWidth: title.strokeWidth
7042
7055
  });
7043
7056
  }
7044
7057
  draw(chartArea) {
@@ -7747,7 +7760,7 @@ function needContext(proxy, names) {
7747
7760
  return false;
7748
7761
  }
7749
7762
 
7750
- var version = "4.5.1";
7763
+ var version = "4.6.1";
7751
7764
 
7752
7765
  const KNOWN_POSITIONS = [
7753
7766
  'top',
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.15.0-rc.2";
2
+ const version = "6.15.0";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -32,7 +32,8 @@ const validateRoutingNumber = (routingNumber) => {
32
32
  const phoneRegex = /^\d{10}$/;
33
33
  const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/;
34
34
  const numbersOnlyRegex = /^\d+$/;
35
- const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
35
+ // 9XX area allowed so ITINs pass
36
+ const ssnRegex = /^(?!000|666)\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
36
37
  const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
37
38
 
38
39
  // Common Validations
@@ -141,6 +141,7 @@ export interface IBusiness {
141
141
  phone: string;
142
142
  platform_account_id: string;
143
143
  product_categories: ProductCategories;
144
+ provisioned?: string[];
144
145
  representative?: Identity | null;
145
146
  tax_id: string;
146
147
  tax_id_last4: string;
@@ -178,6 +179,7 @@ export declare class Business implements IBusiness {
178
179
  product_categories: ProductCategories;
179
180
  country_of_establishment?: CountryCode;
180
181
  bank_account_verification?: boolean;
182
+ provisioned: string[];
181
183
  constructor(business: IBusiness);
182
184
  get payload(): {
183
185
  tax_id_last4: string;
@@ -57,9 +57,9 @@ export interface ICheckout {
57
57
  credit_card_payments: boolean;
58
58
  insurance_payments?: boolean;
59
59
  bank_account_verification?: boolean;
60
- apple_payments?: boolean;
61
- google_payments?: boolean;
62
- paypal_payments?: boolean;
60
+ apple_payments: boolean;
61
+ google_payments: boolean;
62
+ paypal_payments: boolean;
63
63
  };
64
64
  bnpl?: IBnpl;
65
65
  paypal?: {
@@ -94,9 +94,9 @@ export declare class Checkout implements ICheckout {
94
94
  credit_card_payments: boolean;
95
95
  insurance_payments?: boolean;
96
96
  bank_account_verification?: boolean;
97
- apple_payments?: boolean;
98
- google_payments?: boolean;
99
- paypal_payments?: boolean;
97
+ apple_payments: boolean;
98
+ google_payments: boolean;
99
+ paypal_payments: boolean;
100
100
  };
101
101
  bnpl?: IBnpl;
102
102
  paypal?: {
@@ -115,7 +115,7 @@ export declare class Checkout implements ICheckout {
115
115
  completions?: ICompletion[];
116
116
  sub_account_name?: string;
117
117
  constructor(data: ICheckout);
118
- get payment_mode(): ICheckoutPaymentMode;
118
+ get payment_mode(): ICheckoutPaymentMode | null;
119
119
  formattedPaymentAmount(amount: number): string;
120
120
  }
121
121
  export declare enum ICheckoutPaymentMode {
@@ -6,7 +6,7 @@ import { ComponentClickEvent, ComponentErrorEvent } from '../../api/ComponentEve
6
6
  export declare class JustifiCheckoutsList {
7
7
  accountId: string;
8
8
  authToken: string;
9
- columns?: string;
9
+ columns: string;
10
10
  subAccountId?: string;
11
11
  checkouts: Checkout[];
12
12
  checkoutsTable: Table<Checkout>;
@@ -38,6 +38,7 @@ export declare class JustifiApplePay {
38
38
  readonly PAYMENT_FAILED: "PAYMENT_FAILED";
39
39
  };
40
40
  componentWillLoad(): void;
41
+ private countryCodeForCurrency;
41
42
  private loadApplePaySDK;
42
43
  private initializeApplePay;
43
44
  private handleApplePayClick;
@@ -682,7 +682,7 @@ export namespace Components {
682
682
  /**
683
683
  * @default defaultColumnsKeys
684
684
  */
685
- "columns"?: string;
685
+ "columns": string;
686
686
  "subAccountId"?: string;
687
687
  }
688
688
  interface JustifiCheckoutsListFilters {
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{j as s,C as i,b as r}from"./p-Dqxyi-uK.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{J as o}from"./p-BjjKkMO1.js";import{c}from"./p-_MjmE9YT.js";import{g as p,a as h}from"./p-BhpaUYtS.js";import{P as d}from"./p-BmaQUnqv.js";import{T as f,a as l,b as u,c as m,d as b,e as y,f as _,g,h as j,i as T,j as k,k as w,l as v}from"./p-DZr0wLGh.js";import{S as C}from"./p-05AWudQe.js";import{T as D}from"./p-CZfYo5-1.js";import{a as P}from"./p-Ds_P-dB8.js";import{a6 as F,a7 as R}from"./p-Bu7gdOaV.js";import"./p-DgTOxu8x.js";import"./p-BC9n8nB2.js";import"./p-C6Jq8YDT.js";import"./p-MPer3Rw7.js";const S={created_at:()=>t("th",{part:F,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:F,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:F,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:F,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:F,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:F,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:F,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},x={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},B={created_at:(e,a)=>t("td",{part:R(a)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:R(a)},x[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:R(a)},e.id),amount:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:R(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:R(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:R(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:R(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:R(a)},e.source_id),source_type:(e,a)=>t("td",{part:R(a)},e.source_type)},q=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,S,B),c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:r,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,r);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((t=>new s(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"f8b0f3a58ef7f88c0ac42fc58955b28ad97922e4"},t(l,{key:"2dc653b63611cbdfa388b386cec9b3adf751bd12"},t(u,{key:"a0bd64c01870ccd4bb921d5d90c7453650131f16"},t(m,{key:"b92ce24dab41cbaf1d8ecb1df43739d2548fe73f"},t(b,{key:"5f983b93b2b9b6661cae2cf74802519175aae8cc"},this.transactionsTable.columnData.map((t=>t)))),t(y,{key:"d9a51ecfc54c16a4859f9d66fb783f3876fc3428"},t(_,{key:"232f1b59ddeb9f949901678a67c652cc3aedfdf7",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"bd9a853887da939c651c234cd4f0e3ab35d610d1",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"da157eb9d18d89353f6aebb085bb4becb15ac89f",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"41ffc1c9d3591dad7973f862b78b488e089af863"},t(w,{key:"17780690e1b44eb6ba13128d3ecfee73c6be06a7"},t(v,{key:"312b9a0b9649ffd9033ec1333b2d9d8eb666d185",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"4ef805672cf530850ecdf13e26eefc8015f80fa3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{q as justifi_payment_transactions_list}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s}from"./p-CV0Pyo1O.js";import{c as a,F as i}from"./p-D9sqTVmd.js";import{z as l,A as r,h as d,l as o,j as n,v as c,B as h}from"./p-Do9dxNjh.js";import{ak as f}from"./p-Bu7gdOaV.js";import{c as b,o as m}from"./p-Fpaf7CLD.js";import{P as u}from"./p-DEx8fQeW.js";import{H as p}from"./p-BAB1lPu0.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-CawcnSoV.js";import"./p-DaDqgDrb.js";import"./p-OReJ-ZQb.js";import"./p-DgTOxu8x.js";const _=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.nullable()}));const e=b.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=m("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"29a619477cbe3328493800d9b09222d62530b134",part:f,class:"mt-4"},t("form",{key:"920052e4002aefd865fdb35e78ba258ae9770d96"},t("fieldset",{key:"3bd18742ea98d106ba79f676a46339752f6dbda5"},this.legend&&t("legend",{key:"35f730b0aae032ae0230483997a1d28e3067db79"},this.legend),t("div",{key:"5a09966204b82a09f808f9f86487f819709f8791",class:"row gy-3"},t("div",{key:"1f29732dbd3bdc494ea7e4b9f3abffa895d497d7",class:"col-12"},t("form-control-text",{key:"30db36cacf66be485663bbc943b129b1e4bf707a",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler}))))))}},v=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return this.paymentMethodType===u.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===u.NEW_BANK_ACCOUNT&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return t(s,null,t(this.showSimpleBankAccountBillingForm?"bank-account-billing-form-simple":this.showSimpleCardBillingForm?"card-billing-form-simple":"billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},g=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.required("Enter street address"),address_line2:o.nullable(),address_city:d.required("Enter city"),address_state:r.required("Select state or province"),address_postal_code:l.required("Enter postal code")}));const e=b.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}componentDidLoad(){this.unsubscribeFromStore=m("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t("div",{part:f,class:"mt-4"},t(p,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State / Province",options:h,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}},y=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.nullable(),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.required("Enter postal code")}));const e=b.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=m("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"c2fa07fce39ab1b47c99539b312fdf84e782f4dc",part:f},t("form",{key:"3bd9fdcd20ca3c014472c5ea2438214ece25abc5"},t("fieldset",{key:"c06cc32d36e56acfcc0a0925d8c9d45040654a63"},this.legend&&t("legend",{key:"ec087f9940930a9efa8c6b5e92767032ba9b8b5e"},this.legend),t("div",{key:"003ecc05fde14a1f1a6727f73f78ddbb81678680",class:"row gy-3"},t("div",{key:"2de4de749a16b5fd478284a0eda93122ff67f0af",class:"col-12"},t("form-control-text",{key:"26c2b72da72e11a3d1561ace457259521bb5d74d",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}};export{_ as bank_account_billing_form_simple,v as billing_form,g as billing_form_full,y as card_billing_form_simple}
1
+ import{r as e,h as t,H as s}from"./p-CV0Pyo1O.js";import{c as a,F as i}from"./p-D9sqTVmd.js";import{z as l,A as r,h as d,l as o,j as n,v as c,B as h}from"./p-BAvoKtN2.js";import{ak as f}from"./p-Bu7gdOaV.js";import{c as m,o as b}from"./p-Fpaf7CLD.js";import{P as u}from"./p-DEx8fQeW.js";import{H as p}from"./p-BAB1lPu0.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-riZDHN5-.js";import"./p-CTtGaVYs.js";import"./p-CtlBL-X6.js";import"./p-DgTOxu8x.js";const _=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.nullable()}));const e=m.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=b("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"29a619477cbe3328493800d9b09222d62530b134",part:f,class:"mt-4"},t("form",{key:"920052e4002aefd865fdb35e78ba258ae9770d96"},t("fieldset",{key:"3bd18742ea98d106ba79f676a46339752f6dbda5"},this.legend&&t("legend",{key:"35f730b0aae032ae0230483997a1d28e3067db79"},this.legend),t("div",{key:"5a09966204b82a09f808f9f86487f819709f8791",class:"row gy-3"},t("div",{key:"1f29732dbd3bdc494ea7e4b9f3abffa895d497d7",class:"col-12"},t("form-control-text",{key:"30db36cacf66be485663bbc943b129b1e4bf707a",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler}))))))}},v=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return this.paymentMethodType===u.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===u.NEW_BANK_ACCOUNT&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return t(s,null,t(this.showSimpleBankAccountBillingForm?"bank-account-billing-form-simple":this.showSimpleCardBillingForm?"card-billing-form-simple":"billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},y=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.required("Enter street address"),address_line2:o.nullable(),address_city:d.required("Enter city"),address_state:r.required("Select state or province"),address_postal_code:l.required("Enter postal code")}));const e=m.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}componentDidLoad(){this.unsubscribeFromStore=b("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t("div",{part:f,class:"mt-4"},t(p,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State / Province",options:h,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}},g=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.nullable(),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.required("Enter postal code")}));const e=m.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=b("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"c2fa07fce39ab1b47c99539b312fdf84e782f4dc",part:f},t("form",{key:"3bd9fdcd20ca3c014472c5ea2438214ece25abc5"},t("fieldset",{key:"c06cc32d36e56acfcc0a0925d8c9d45040654a63"},this.legend&&t("legend",{key:"ec087f9940930a9efa8c6b5e92767032ba9b8b5e"},this.legend),t("div",{key:"003ecc05fde14a1f1a6727f73f78ddbb81678680",class:"row gy-3"},t("div",{key:"2de4de749a16b5fd478284a0eda93122ff67f0af",class:"col-12"},t("form-control-text",{key:"26c2b72da72e11a3d1561ace457259521bb5d74d",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}};export{_ as bank_account_billing_form_simple,v as billing_form,y as billing_form_full,g as card_billing_form_simple}
@@ -1 +1 @@
1
- import{h as s,F as e,r as i,c as t}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Bh6Q8AqQ.js";import{B as r}from"./p-CJEetAx7.js";import{m as o}from"./p-CyOXIqHo.js";import{C as n,b as l}from"./p-D6uhYbLo.js";import{J as d}from"./p-nbKvRcwU.js";import{c as h}from"./p-BEL8sLz6.js";import{S as c}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as p}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";import"./p-vIQBTQmc.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-CAVi_ne1.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-CLq3Og7o.js";const u=()=>{const i=()=>s("div",{class:"mt-5"},s(p,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null)),s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null))));return s(e,null,s(i,null),s(i,null),s(i,null),s(i,null))},m=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new d(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:l.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:i})},final:()=>{this.loading=!1}})}render(){return s(c,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}
1
+ import{h as s,F as e,r as t,c as i}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Bh6Q8AqQ.js";import{B as r}from"./p-rFpPIJgu.js";import{m as o}from"./p-BDtSw_d-.js";import{C as n,b as l}from"./p-Dqxyi-uK.js";import{J as d}from"./p-BjjKkMO1.js";import{c as h}from"./p-_MjmE9YT.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as c}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";import"./p-C6Jq8YDT.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-BC9n8nB2.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import"./p-BhpaUYtS.js";const u=()=>{const t=()=>s("div",{class:"mt-5"},s(c,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(c,null),s(c,null),s(c,null)),s("div",{class:"col-12 col-md-6"},s(c,null),s(c,null),s(c,null))));return s(e,null,s(t,null),s(t,null),s(t,null),s(t,null))},m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new d(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:l.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:t})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:t})},final:()=>{this.loading=!1}})}render(){return s(p,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}