@justifi/webcomponents 6.0.0-rc.10 → 6.0.0-rc.12

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 (284) hide show
  1. package/dist/cjs/{check-pkg-version-DiQ-d5Nl.js → check-pkg-version-BlIBYv3J.js} +1 -1
  2. package/dist/cjs/{checkout.store-BGvYPPz0.js → checkout.store-DJEc-So8.js} +3 -0
  3. package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
  4. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  5. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  6. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  7. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  8. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  9. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  10. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  11. package/dist/cjs/justifi-apple-pay.cjs.entry.js +4 -1
  12. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +9 -8
  13. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +75 -74
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  17. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-dispute-management.cjs.entry.js +3 -3
  21. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +5 -5
  22. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-order-terminals.cjs.entry.js +3 -3
  24. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  26. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +3 -3
  27. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
  29. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  30. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
  31. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  32. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
  33. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  34. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
  35. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
  37. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
  39. package/dist/cjs/loader.cjs.js +1 -1
  40. package/dist/cjs/{package-Be2aoTf8.js → package-BMpasLve.js} +1 -1
  41. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  42. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  43. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  44. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  45. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  46. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  47. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
  48. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  49. package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
  50. package/dist/cjs/webcomponents.cjs.js +1 -1
  51. package/dist/collection/api/index.js +1 -2
  52. package/dist/collection/collection-manifest.json +1 -1
  53. package/dist/collection/components/checkout/checkout.js +2 -2
  54. package/dist/collection/components/checkout/save-new-payment-method.js +26 -1
  55. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  56. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  57. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  58. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  59. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  60. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  61. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  62. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  63. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  64. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  65. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  66. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  67. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  68. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  69. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  70. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  71. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  72. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  73. package/dist/collection/components/modular-checkout/modular-checkout.js +43 -32
  74. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +3 -0
  75. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  76. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  77. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  78. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +6 -38
  79. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +6 -5
  80. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  81. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  82. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  83. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  84. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  85. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  86. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  87. package/dist/collection/components/payments-list/payments-list.js +1 -1
  88. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  89. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  90. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  91. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  92. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  93. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  94. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  95. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  96. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  97. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  98. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  99. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +21 -2
  100. package/dist/collection/store/checkout.store.js +3 -0
  101. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  102. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  103. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  104. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  105. package/dist/docs.json +55 -31
  106. package/dist/esm/{check-pkg-version-CAnDiqiu.js → check-pkg-version-C34D9a6k.js} +1 -1
  107. package/dist/esm/{checkout.store-CCdFOPCK.js → checkout.store-DNDbZO3M.js} +3 -0
  108. package/dist/esm/checkouts-list-core.entry.js +1 -1
  109. package/dist/esm/custom-popper_2.entry.js +2 -2
  110. package/dist/esm/form-control-checkbox.entry.js +2 -2
  111. package/dist/esm/form-control-date.entry.js +2 -2
  112. package/dist/esm/form-control-select_2.entry.js +2 -2
  113. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  114. package/dist/esm/hidden-input_2.entry.js +1 -1
  115. package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
  116. package/dist/esm/justifi-apple-pay.entry.js +4 -1
  117. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +9 -8
  118. package/dist/esm/justifi-business-details.entry.js +2 -2
  119. package/dist/esm/justifi-business-form.entry.js +2 -2
  120. package/dist/esm/justifi-checkout-summary_7.entry.js +75 -74
  121. package/dist/esm/justifi-checkout.entry.js +5 -5
  122. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  123. package/dist/esm/justifi-checkouts-list.entry.js +3 -3
  124. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  125. package/dist/esm/justifi-dispute-management.entry.js +3 -3
  126. package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
  127. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  128. package/dist/esm/justifi-order-terminals.entry.js +3 -3
  129. package/dist/esm/justifi-payment-details.entry.js +2 -2
  130. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  131. package/dist/esm/justifi-payment-transactions-list.entry.js +3 -3
  132. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  133. package/dist/esm/justifi-payments-list.entry.js +3 -3
  134. package/dist/esm/justifi-payout-details.entry.js +2 -2
  135. package/dist/esm/justifi-payout-transactions-list.entry.js +3 -3
  136. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  137. package/dist/esm/justifi-payouts-list.entry.js +3 -3
  138. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  139. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -3
  140. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  141. package/dist/esm/justifi-terminal-orders-list.entry.js +3 -3
  142. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  143. package/dist/esm/justifi-terminals-list.entry.js +3 -3
  144. package/dist/esm/loader.js +1 -1
  145. package/dist/esm/{package-CnWtPu8L.js → package-RVJZaRpm.js} +1 -1
  146. package/dist/esm/payment-details-core.entry.js +8 -8
  147. package/dist/esm/payment-method-option.entry.js +1 -1
  148. package/dist/esm/payments-list-core.entry.js +1 -1
  149. package/dist/esm/payout-details-core.entry.js +3 -3
  150. package/dist/esm/payouts-list-core.entry.js +1 -1
  151. package/dist/esm/table-filters-menu.entry.js +1 -1
  152. package/dist/esm/terminal-orders-list-core.entry.js +1 -1
  153. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  154. package/dist/esm/terminals-list-core.entry.js +1 -1
  155. package/dist/esm/webcomponents.js +1 -1
  156. package/dist/module/additional-statement.js +1 -1
  157. package/dist/module/bank-account.js +2 -2
  158. package/dist/module/cancellation-policy.js +1 -1
  159. package/dist/module/card-form2.js +2 -2
  160. package/dist/module/checkout.store.js +3 -0
  161. package/dist/module/checkouts-list-core2.js +1 -1
  162. package/dist/module/custom-popper2.js +2 -2
  163. package/dist/module/customer-details.js +1 -1
  164. package/dist/module/dispute-management-core.js +1 -1
  165. package/dist/module/dispute-notification.js +1 -1
  166. package/dist/module/dispute-response-core.js +1 -1
  167. package/dist/module/dispute-response.js +1 -1
  168. package/dist/module/duplicate-charge.js +1 -1
  169. package/dist/module/electronic-evidence.js +1 -1
  170. package/dist/module/form-control-checkbox2.js +2 -2
  171. package/dist/module/form-control-date2.js +2 -2
  172. package/dist/module/form-control-select2.js +2 -2
  173. package/dist/module/gross-payment-chart-core2.js +1 -1
  174. package/dist/module/justifi-apple-pay.js +3 -0
  175. package/dist/module/justifi-checkout.js +2 -2
  176. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  177. package/dist/module/justifi-checkouts-list.js +1 -1
  178. package/dist/module/justifi-dispute-management.js +1 -1
  179. package/dist/module/justifi-order-terminals.js +1 -1
  180. package/dist/module/justifi-payment-transactions-list.js +1 -1
  181. package/dist/module/justifi-payments-list-filters.js +2 -2
  182. package/dist/module/justifi-payments-list.js +1 -1
  183. package/dist/module/justifi-payout-transactions-list.js +1 -1
  184. package/dist/module/justifi-payouts-list-filters.js +2 -2
  185. package/dist/module/justifi-payouts-list.js +1 -1
  186. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  187. package/dist/module/justifi-terminal-orders-list.js +1 -1
  188. package/dist/module/justifi-terminals-list-filters.js +1 -1
  189. package/dist/module/justifi-terminals-list.js +1 -1
  190. package/dist/module/modular-checkout.js +43 -12
  191. package/dist/module/package.js +1 -1
  192. package/dist/module/payment-details-core2.js +8 -8
  193. package/dist/module/payment-method-option.js +1 -1
  194. package/dist/module/payments-list-core2.js +1 -1
  195. package/dist/module/payout-details-core2.js +3 -3
  196. package/dist/module/payouts-list-core2.js +1 -1
  197. package/dist/module/plaid-payment-method.js +9 -61
  198. package/dist/module/plaid.service.js +26 -0
  199. package/dist/module/product-or-service.js +1 -1
  200. package/dist/module/refund-policy.js +1 -1
  201. package/dist/module/save-new-payment-method.js +3 -1
  202. package/dist/module/shipping-details.js +1 -1
  203. package/dist/module/summary.js +1 -1
  204. package/dist/module/table-filters-menu2.js +1 -1
  205. package/dist/module/terminal-orders-list-core2.js +1 -1
  206. package/dist/module/terminal-quantity-selector2.js +1 -1
  207. package/dist/module/terminals-list-core2.js +1 -1
  208. package/dist/module/tokenize-payment-method.js +3 -2
  209. package/dist/types/api/index.d.ts +2 -2
  210. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -0
  211. package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -2
  212. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +0 -1
  213. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -0
  214. package/dist/types/components.d.ts +10 -8
  215. package/dist/types/index.d.ts +1 -0
  216. package/dist/types/store/checkout.store.d.ts +3 -0
  217. package/dist/webcomponents/{p-7bcfaff4.entry.js → p-0481bce2.entry.js} +1 -1
  218. package/dist/webcomponents/{p-af9c4174.entry.js → p-0ff04742.entry.js} +1 -1
  219. package/dist/webcomponents/p-107a603e.entry.js +1 -0
  220. package/dist/webcomponents/p-11e13345.entry.js +1 -0
  221. package/dist/webcomponents/{p-89ecd650.entry.js → p-12e5e7a5.entry.js} +1 -1
  222. package/dist/webcomponents/{p-f4d0cdf0.entry.js → p-21c867df.entry.js} +1 -1
  223. package/dist/webcomponents/p-27d3254b.entry.js +1 -0
  224. package/dist/webcomponents/p-2b39ab97.entry.js +1 -0
  225. package/dist/webcomponents/{p-e8a67dc7.entry.js → p-2d14f144.entry.js} +1 -1
  226. package/dist/webcomponents/p-402caa84.entry.js +1 -0
  227. package/dist/webcomponents/{p-17093105.entry.js → p-42d4ea58.entry.js} +1 -1
  228. package/dist/webcomponents/{p-9a2c044f.entry.js → p-431ba789.entry.js} +1 -1
  229. package/dist/webcomponents/{p-2fa34c82.entry.js → p-46b6142b.entry.js} +1 -1
  230. package/dist/webcomponents/p-4e1653c2.entry.js +1 -0
  231. package/dist/webcomponents/{p-9e8021a1.entry.js → p-522e7b24.entry.js} +1 -1
  232. package/dist/webcomponents/{p-1bcb3852.entry.js → p-52d1df84.entry.js} +1 -1
  233. package/dist/webcomponents/p-537aa971.entry.js +1 -0
  234. package/dist/webcomponents/{p-b7d2f2eb.entry.js → p-594e6de4.entry.js} +1 -1
  235. package/dist/webcomponents/{p-7dd74e6f.entry.js → p-5b96f73a.entry.js} +1 -1
  236. package/dist/webcomponents/p-5c4438d2.entry.js +1 -0
  237. package/dist/webcomponents/{p-1a08b47f.entry.js → p-60f67f0b.entry.js} +1 -1
  238. package/dist/webcomponents/{p-d62cd269.entry.js → p-65576256.entry.js} +1 -1
  239. package/dist/webcomponents/p-7186f4a7.entry.js +1 -0
  240. package/dist/webcomponents/{p-62d12566.entry.js → p-71f9c48a.entry.js} +1 -1
  241. package/dist/webcomponents/{p-f7c4222f.entry.js → p-72487fc4.entry.js} +1 -1
  242. package/dist/webcomponents/p-778e9fe9.entry.js +1 -0
  243. package/dist/webcomponents/{p-1eb2b847.entry.js → p-86a156dd.entry.js} +1 -1
  244. package/dist/webcomponents/{p-9fc0ea58.entry.js → p-8e3aa006.entry.js} +1 -1
  245. package/dist/webcomponents/{p-9fcff84c.entry.js → p-9c997d0b.entry.js} +1 -1
  246. package/dist/webcomponents/p-9f290cee.entry.js +1 -0
  247. package/dist/webcomponents/{p-DZYcH7jA.js → p-BDhDryfc.js} +1 -1
  248. package/dist/webcomponents/p-Cb3h46bV.js +1 -0
  249. package/dist/webcomponents/p-RVJZaRpm.js +1 -0
  250. package/dist/webcomponents/{p-a55f07af.entry.js → p-a17c9611.entry.js} +1 -1
  251. package/dist/webcomponents/{p-c599e526.entry.js → p-a6748a1d.entry.js} +1 -1
  252. package/dist/webcomponents/{p-54ca3070.entry.js → p-a7ac285c.entry.js} +1 -1
  253. package/dist/webcomponents/p-b884c549.entry.js +1 -0
  254. package/dist/webcomponents/p-bc45aa92.entry.js +1 -0
  255. package/dist/webcomponents/p-c8613a86.entry.js +1 -0
  256. package/dist/webcomponents/{p-bbc4b4cb.entry.js → p-d0b109a1.entry.js} +1 -1
  257. package/dist/webcomponents/{p-0803d130.entry.js → p-d637e889.entry.js} +1 -1
  258. package/dist/webcomponents/{p-5ad0f438.entry.js → p-e6d1ed81.entry.js} +1 -1
  259. package/dist/webcomponents/{p-50392803.entry.js → p-e7b66120.entry.js} +1 -1
  260. package/dist/webcomponents/p-e9a5c837.entry.js +1 -0
  261. package/dist/webcomponents/{p-ab6a5dc9.entry.js → p-ed901f9d.entry.js} +1 -1
  262. package/dist/webcomponents/{p-8a6718b6.entry.js → p-efda81f3.entry.js} +1 -1
  263. package/dist/webcomponents/p-f849a34e.entry.js +1 -0
  264. package/dist/webcomponents/{p-464e7a8e.entry.js → p-f8978519.entry.js} +1 -1
  265. package/dist/webcomponents/webcomponents.esm.js +1 -1
  266. package/package.json +1 -1
  267. package/dist/webcomponents/p-117b7f47.entry.js +0 -1
  268. package/dist/webcomponents/p-2f7aa249.entry.js +0 -1
  269. package/dist/webcomponents/p-336c31b3.entry.js +0 -1
  270. package/dist/webcomponents/p-3f33c940.entry.js +0 -1
  271. package/dist/webcomponents/p-442f86e8.entry.js +0 -1
  272. package/dist/webcomponents/p-6cf30a24.entry.js +0 -1
  273. package/dist/webcomponents/p-729dbd8f.entry.js +0 -1
  274. package/dist/webcomponents/p-85f20746.entry.js +0 -1
  275. package/dist/webcomponents/p-8d6b81ba.entry.js +0 -1
  276. package/dist/webcomponents/p-8f7396b1.entry.js +0 -1
  277. package/dist/webcomponents/p-98cffba9.entry.js +0 -1
  278. package/dist/webcomponents/p-CnWtPu8L.js +0 -1
  279. package/dist/webcomponents/p-DIjoBk44.js +0 -1
  280. package/dist/webcomponents/p-d9dd7d24.entry.js +0 -1
  281. package/dist/webcomponents/p-dd7352da.entry.js +0 -1
  282. package/dist/webcomponents/p-eddaca4e.entry.js +0 -1
  283. package/dist/webcomponents/p-ef32fe0e.entry.js +0 -1
  284. package/dist/webcomponents/p-f1f0b405.entry.js +0 -1
@@ -29,7 +29,7 @@ export class AdditionalStatement {
29
29
  }
30
30
  render() {
31
31
  var _a, _b;
32
- return (h("div", { key: '3904e1b961f9e1a0683647d306a128efcd7b9202' }, h("div", { key: '37ae13e4b7ad7bc8a18b588c4e591cde9030147e', class: "row gy-3" }, h("div", { key: '2f9b835795f21e4585638ad8be2093642f08b982', class: "col-12" }, h("h2", { key: '9ff1aeb8256ffe97c6300bd48597542519cda0a7', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: 'e4c6b9f4624b06103b6c643838a76c4a724e3168', class: "col-12" }, h("form-control-textarea", { key: 'dc9a5cb126a2d6f70cd8d59cdcfcd29f5c4e341b', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: 'ba5202a5d8df30f5f4b7217341110646bb76e082', class: "col-12" }, h("form-control-file-v2", { key: '3168fc63d6bd6013821ee335914d916bb680fe42', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
32
+ return (h("div", { key: '4d0fbca80a880577be7853efc494807d7d1e2fd9' }, h("div", { key: '6c3a82afe01b0812807a8e19dc750d4e9901876a', class: "row gy-3" }, h("div", { key: '89e7f50b0c6d67249b892caf8c6b2d78c1742309', class: "col-12" }, h("h2", { key: 'e0c4db3f5330cdd0e00897da0a54b898f0056f93', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '58d4506d4bc0470afa4de87fdcf25ce4397d4180', class: "col-12" }, h("form-control-textarea", { key: 'aee641d90803d0ff483cfe75d881e3259303d4bc', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '19377eb6382adc9cb69ec57fe7928b7d477110d8', class: "col-12" }, h("form-control-file-v2", { key: '9529de236046398904d4780fcedada3a67ce4daf', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
33
33
  }
34
34
  static get is() { return "justifi-additional-statement"; }
35
35
  static get properties() {
@@ -28,7 +28,7 @@ export class CancellationPolicy {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: '29819e51969e655219ccbdbb2e1d1b738b64f7d3' }, h("div", { key: '28279bbc8354128a5041ed6eac16d4966be1584c', class: "row gy-3" }, h("div", { key: '8b6215544f87a8c35b81a93a5f4826a35e0c0f9f', class: "col-12" }, h("h2", { key: 'b6337efb93f03ea48f2c29b1baef4929f236df2d', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: 'b7d78115378ecd0b4a4f8a43349f1b4f2527ca35', class: "col-12" }, h("form-control-textarea", { key: '6ab47f5626a945f222efceef43dc096061cb67ed', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '6aeccf798d112e79251408401c99d916a9065e94', class: "col-12" }, h("form-control-textarea", { key: '580e61e4370570c9a04496fef4b7ad9c19058336', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: 'e0deddf002b64d02bc5a5db075da11d2566dc3bb', class: "col-12" }, h("form-control-file-v2", { key: '3da55e915d4d3126456de8e95debc6d9e46dca42', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
31
+ return (h("div", { key: 'ac10b9b21d37179211d74118b06f561e95d9ea71' }, h("div", { key: '8ff525f8ed20828ed153b7dc23cb84a0277b81d4', class: "row gy-3" }, h("div", { key: '4f22ed526972a6625dc77b3ab0ab5b074277d7b2', class: "col-12" }, h("h2", { key: 'd78d54468b91edd99238bd757f871b18ec5b58ca', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '629c9660446cbba8951cd8396d9b72aea71c731b', class: "col-12" }, h("form-control-textarea", { key: '60e0b4903e4ddec6915d23617f215d5d2ea20935', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: 'aec3e4561f880b86ba6f5c7ce0298e45b837c2fd', class: "col-12" }, h("form-control-textarea", { key: 'e77d126709037cb22e6e4fcf2228652ffeb672ee', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '407c071a0f7a1e488eb2ef4d522e515138a5ed2c', class: "col-12" }, h("form-control-file-v2", { key: '15dfacd8e1de439848d12ecec9a0f5ffac259484', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
32
32
  }
33
33
  static get is() { return "justifi-cancellation-policy"; }
34
34
  static get properties() {
@@ -28,7 +28,7 @@ export class CustomerDetails {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c, _d, _e;
31
- return (h("div", { key: 'f5442efc59bb6a99a87f90feb5a4a147019af940' }, h("div", { key: 'd0f97e7ca943bfe8e4846ea84838ab08dc3658ab', class: "row gy-3" }, h("div", { key: 'da7f41d96c717f921010786f593c3776e2644738', class: "col-12" }, h("h2", { key: '0f7d56f400ec0f4250bbf7c8b2b736e084c17ab0', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: 'eca73b10ec43454be35d4ec6e09b410b7a509b46', class: "col-12" }, h("form-control-text", { key: '1b67e031f3ac24b43319b09a01a5e297095ecc84', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '967326bb10e6d2a64b2f3f0bae99432f238e361c', class: "col-12" }, h("form-control-text", { key: 'fc7d83cc51728920d9f4849dd85f4f019bb50fe4', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '4e598f3e9bf118ddf22c4c160f0171c9789cd853', class: "col-12" }, h("form-control-textarea", { key: 'fe1c2e1a4c70ef463a31e890349a5b49f979e21b', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: 'a4345bc3b39f913cc233baa21373a6d7d93d3cda', class: "col-12" }, h("form-control-file-v2", { key: '82cb1b948807d901845a23137b5d488c9edd53ae', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: 'ffc589785e6114d604c2d98d3140de5487dc8af6', class: "col-12" }, h("form-control-file-v2", { key: '5b6b64927e4b90cc6dbb302fbc0d2067b70c6f4a', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
31
+ return (h("div", { key: 'e09402d1c3ca9bb8f3a243c22bec2e9d908d661f' }, h("div", { key: '67a1038f92a9a9711ca37d353af7a06b87cbe0a8', class: "row gy-3" }, h("div", { key: '1be2249539c434bf3faf847b4202ff2f421d15a3', class: "col-12" }, h("h2", { key: '17d8bc1b31dfa77f08500ff4029f572049d9e1ce', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '3e218b39c8f5dab178cc8b23caf403e1a912694c', class: "col-12" }, h("form-control-text", { key: 'ab28a2176315c3ecd1ff984a599589a81375f4e0', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: 'e1739728748de575e39f29018cd1139d75232611', class: "col-12" }, h("form-control-text", { key: '9f2aec120b08ac793be93f9c990d81a74c9e57d2', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '9be7e4a85edfc9bc95e8ede96ebc81f4777f1cdb', class: "col-12" }, h("form-control-textarea", { key: '100e419cc2064509aaa03c76e2898fc7df85e950', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '94da95bb013738aefb17088203ee14e07f159ae0', class: "col-12" }, h("form-control-file-v2", { key: '1ab77a12a715fbb82c0bc1c9f9081e54fd3fef0e', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '88eed9387758b86332137fa64b4e3b3c5825d908', class: "col-12" }, h("form-control-file-v2", { key: '0b654ffcf253c639b07ffe03450a87550caaa75a', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
32
32
  }
33
33
  static get is() { return "justifi-customer-details"; }
34
34
  static get properties() {
@@ -156,7 +156,7 @@ export class DisputeResponseCore {
156
156
  return this.currentStep === 0;
157
157
  }
158
158
  render() {
159
- return (h("div", { key: '09b09843d54a2dbced9788d16e244b2e59a3a78f', class: "row gy-3" }, h("div", { key: '6a3fe32d65ea1a74161d9ba9984543cf950e47ea', class: "col-12" }, h("h1", { key: 'bbb6f1334fd6b120e592117ba191d90b628e620f', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '19cbc45842294e9344dbffb725f5f053bf370af7', class: "col-12" }, this.currentStepComponent), h("div", { key: 'fa875ca152ea77fc4c8363216d8ba16c7699b597', class: "col-12" }, h("div", { key: 'fa7b62fff0cbac81c19ebad919f5dd54c3679e84', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
159
+ return (h("div", { key: '20d075178a9d88cd73be32e52f8df6d3d360f8d7', class: "row gy-3" }, h("div", { key: '6c1bc735f1a15709c596b5bea7cc3ce50e9a73f5', class: "col-12" }, h("h1", { key: '27a0804924937ee7a8d01265bd0da2d9dd31d301', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'b60822e91425c5c4af003169f47fd725daf9fb0f', class: "col-12" }, this.currentStepComponent), h("div", { key: 'd1be3f6be53de37836275067070cf4b5a2eb3e4a', class: "col-12" }, h("div", { key: '48c8725d8de8b658e59ccfa851a6af6638e19ca5', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next"))))));
160
160
  }
161
161
  static get is() { return "justifi-dispute-response-core"; }
162
162
  static get properties() {
@@ -55,7 +55,7 @@ export class DisputeResponse {
55
55
  }
56
56
  }
57
57
  render() {
58
- return (h(StyledHost, { key: 'b90f636418c3e11b046d36dee9accf345756b407' }, h("justifi-dispute-response-core", { key: 'ff6e510faad54506eda24b1d8dc94b67afc18014', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
58
+ return (h(StyledHost, { key: 'dbdfd59a21c7e8ea4dfdaecb91f885f82540a27c' }, h("justifi-dispute-response-core", { key: '3cff38e5995f0033c45c54fa195ffeebc27e189e', "onError-event": this.handleErrorEvent, "dispute-id": this.disputeId, disputeResponse: this.disputeResponse, createDisputeEvidence: this.createDisputeEvidence, updateDisputeResponse: this.updateDisputeResponse, submitDisputeResponse: this.submitDisputeResponse })));
59
59
  }
60
60
  ;
61
61
  static get is() { return "justifi-dispute-response"; }
@@ -28,7 +28,7 @@ export class DuplicateCharge {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: '2b1fbb67aebf81b2cac878cfd86a71e31feb7288' }, h("div", { key: 'e05d18f73ae193c43ead170ca59e580172115c25', class: "row gy-3" }, h("div", { key: '0f0c24505bc9e14e79681e1686e61671027af940', class: "col-12" }, h("h2", { key: '0c5a6f6119c5178564ece36506e90d79cf0a2393', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: 'cb740c8a1b6ded55b53b4b402ec5ae3147b6c632', class: "col-12" }, h("form-control-text", { key: 'a89bae70a2cf7500d69d51d0e2a8b9f50dc6ed56', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '87ec40290b40beae641136a5caca878bf5b69d34', class: "col-12" }, h("form-control-textarea", { key: '3a87c44d1584949ac5ec444c28b26a043a697e90', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: 'dc4fbe2c23c992d9bf72d1932d41886d3a4bd53a', class: "col-12" }, h("form-control-file-v2", { key: 'ee9e58fff423be4009bef08109b14a4acda8e39f', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
31
+ return (h("div", { key: '2a51ce4a6859bdd9b6fc3376f08726a682a61587' }, h("div", { key: '49765fde2654e0eda955e4569d3003749d04b1a1', class: "row gy-3" }, h("div", { key: '9a04ce529407e436c5c7dc363525821116eb3271', class: "col-12" }, h("h2", { key: '6d8c1c64da56d19e3adedc08171b7096084adb0b', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '3a4be2ced9e35974864a6fb3504dff58d792e623', class: "col-12" }, h("form-control-text", { key: 'a3d86e2059a017d931619d1e53a24e60e9f95282', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '407386824a21bc40a802366ebf4c8e0cc2aef908', class: "col-12" }, h("form-control-textarea", { key: 'c4b5a5026eeffedeae11d9f6fd74ecd4e288894c', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: 'cc4a805b1c5574436a19258007cd3271831e9967', class: "col-12" }, h("form-control-file-v2", { key: '49d84e63f7acd6dd953429063fc9206373482d16', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
32
32
  }
33
33
  static get is() { return "justifi-duplicate-charge"; }
34
34
  static get properties() {
@@ -28,7 +28,7 @@ export class ElectronicEvidence {
28
28
  }
29
29
  render() {
30
30
  var _a, _b;
31
- return (h("div", { key: 'e23dbefec1d452aa3ba3cca69523eee0f5cfe923' }, h("div", { key: 'e1f11a356d05519b568b5bb65be9e8a1fc14e46f', class: "row gy-3" }, h("div", { key: 'a6208153a9a44d49e88f80d953477de8b40ed64b', class: "col-12" }, h("h2", { key: 'c80cc00343452fbf9d9ddacb6929d3a7e0a33f42', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: '1ed5c9f72596f33f41431eb62e6338f60adc9ab3', class: "col-12" }, h("form-control-text", { key: 'dfb38a1c00b8b09849840f4a071fbaa12321f7a8', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: 'd6f0a73cccf7eb2ea481836c6206ee39a0a21c6c', class: "col-12" }, h("form-control-file-v2", { key: '25dfd3efa3ec536f899fb263624bfea1b68dc397', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
31
+ return (h("div", { key: '41d5fd40ac6fc4fffddb7913b647046869882dfd' }, h("div", { key: '265d25bbd6423f6514a1bb4fab1574631113783d', class: "row gy-3" }, h("div", { key: 'e55e31fbfaa88eacd940622551e37951e54aa321', class: "col-12" }, h("h2", { key: '710bec9fdf42a7ddedbaed447ab1212bc9d6be9c', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: '81ad6d6af441041c0aa0f39c732d528e9d966b61', class: "col-12" }, h("form-control-text", { key: 'b9a3ae49cc394e28baadec0ca9904e5c25996921', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: '53c9b52e9ff3a988805c9e72dca2038ac8cb8483', class: "col-12" }, h("form-control-file-v2", { key: 'bd2bd5d7131bf7c92a7d11042211a9b7764dbbd7', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
32
32
  }
33
33
  static get is() { return "justifi-electronic-evidence"; }
34
34
  static get properties() {
@@ -28,7 +28,7 @@ export class ProductOrService {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c;
31
- return (h("div", { key: 'f1f7d30bd481b5e3b49d9aaffd6e9bc1266b3c17' }, h("div", { key: 'c41caefa4937db6b0669cd28e84b6918c719d8f0', class: "row gy-3" }, h("div", { key: 'be3b622f366017c7a8bdddfc363a0a46216de2ea', class: "col-12" }, h("h2", { key: '39374858f492c6e20e637dab0c73356fb6c6499d', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: 'c910f0b2a6c1574f2b09348e4d3b889a675bbfeb', class: "col-12" }, h("form-control-text", { key: '636616c14d388dd25c33d81220231f2e7b36ec2f', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '44da2982c48cd5da994aec38f5196205b25c4868', class: "col-12" }, h("form-control-date", { key: '6b5ff071f9e941caaadff9fbaf18501524f71fce', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: '8ae3d7fbc3826f932ee14d98a48d90cf913606af', class: "col-12" }, h("form-control-file-v2", { key: '5990ebe0df1e74fd7b1d6a6cf1dd8d08cd680a68', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
31
+ return (h("div", { key: 'c93f5bc2e64f5e2964eb033cb6c972283841876b' }, h("div", { key: '7986f459ba9cc0d7e896a418ba4bd9e51148d36f', class: "row gy-3" }, h("div", { key: 'ddf033f861a5b91961294600a5d6d7261937711c', class: "col-12" }, h("h2", { key: '2a33306859a2982fbb3457831c29a98cd3e86c4f', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '385212b08cbdcd4d610c806f1f9b5d18446a9831', class: "col-12" }, h("form-control-text", { key: '210a8c07288473e93737e93659dc91e7f813e306', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '5a52ad00db803d2ddd0afe6ee7cde4b907e1ad1a', class: "col-12" }, h("form-control-date", { key: '1bdef3f3391b4a97aa3e97aefac3e29b5520f620', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'd4fc75d0f175914e2fbb134e6449e1d45742a9f3', class: "col-12" }, h("form-control-file-v2", { key: '62e1ae0f42103f49bc5c93427b62ad90570634f8', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
32
32
  }
33
33
  static get is() { return "justifi-product-or-service"; }
34
34
  static get properties() {
@@ -28,7 +28,7 @@ export class RefundPolicy {
28
28
  }
29
29
  render() {
30
30
  var _a, _b, _c, _d;
31
- return (h("div", { key: '75d1e4a99166f8b8f112746fd5a786ed4b41b6ae' }, h("div", { key: 'c4a137ad32f0a0e5580061b1cc2443399d5baf15', class: "row gy-3" }, h("div", { key: '8b864aacd4b1334f9a5e7ffdf116345db20aac58', class: "col-12" }, h("h2", { key: 'e319c7e0d2ebedf204e6845fb977651b96f4a9b8', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '72cc1aff194c70395f8002b4af6842cd42046d80', class: "col-12" }, h("form-control-textarea", { key: '798219393da9f68198205bb877a5a3aa2ac2d1bb', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: 'bc0d341abb63327da6d97fba120c34aebabd50b3', class: "col-12" }, h("form-control-textarea", { key: '2aa931300951be7897d9ba4adeda6be5e94a00d8', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: 'c3cad588c5b40a6133920a0c43f71d7b172abdab', class: "col-12" }, h("form-control-file-v2", { key: '8f2184a0d95804a85d61de763c14b1a6fb44c566', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: '183f6286e96694e54fd31213b514349a43d0446f', class: "col-12" }, h("form-control-file-v2", { key: 'e3f97404946c8e6a813d397141d10e372df5f520', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
31
+ return (h("div", { key: 'a300941b5472ab2cfd1dd212fbab4b280c132f73' }, h("div", { key: '1f11681c815c4f0676da384884b758b1bd49f3d1', class: "row gy-3" }, h("div", { key: '56f1575a5e2c7da5d725ca224b5d64163de0fd23', class: "col-12" }, h("h2", { key: '9ccb22c016184f233d1096b66380473a8e62c269', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'e602ac3e5fe3cbd3d12910d66cc8d879295a9e4a', class: "col-12" }, h("form-control-textarea", { key: 'f6e6dae3ab7d383da16fa5308933a77cf63f11d8', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '8cdb3b28847683f5fd4594eb64522c899e5ef993', class: "col-12" }, h("form-control-textarea", { key: 'c8e4b7c760cbe8bb9cb30818b0c29f6012092649', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '95c376af4517e3ee23afd64d479a6ae051f03d72', class: "col-12" }, h("form-control-file-v2", { key: 'dc2ef0d5911dbab2d820bc46563bbb7218390501', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: 'b9d6ffb85e987f5037e414dde26e72f5219c0ea8', class: "col-12" }, h("form-control-file-v2", { key: 'c6513b7a2f9d68c2df2be8c21da0d16e03a6a885', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
32
32
  }
33
33
  static get is() { return "justifi-refund-policy"; }
34
34
  static get properties() {
@@ -29,7 +29,7 @@ export class ShippingDetails {
29
29
  }
30
30
  render() {
31
31
  var _a, _b, _c, _d, _e;
32
- return (h("div", { key: 'a0907d5f1fe8d40876f816b6d332dbb0d9afe975' }, h("div", { key: '3f22d56b30227d9ce0d22dc45c4e29bba60b5366', class: "row gy-3" }, h("div", { key: 'ec768dcf266527e981712f55cdb1921d0e6ef257', class: "col-12" }, h("h2", { key: '0b0e92ba9164941f48e1162937d7bd694683b206', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '2a5f5508c7f8b1a3a674d4bd18a2cba725ff86e7', class: "col-12" }, h("form-control-text", { key: 'deb04aa47dee3269ad8ad84b59edfdf251207520', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: 'e340cf8f480c335b7e565e7d4bf052685bc3f78f', class: "col-12" }, h("form-control-text", { key: '8e3d040776e821518c0d04ea8d0da2d0ddb75cd3', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '71dab91e7befe734db1b8f02bb3fd8d1b8180ab8', class: "col-12" }, h("form-control-date", { key: 'f257e98c81762700c7164a8cbd86764ebe4e4353', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: 'e69255a96e9292fea2269f7f0a7888e53e5a8be7', class: "col-12" }, h("form-control-textarea", { key: 'b40386270d12484982d81a85db0e95853f76ec58', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '23f2a4dabdaefef86940ae03e00a5d240d061a2f', class: "col-12" }, h("form-control-file-v2", { key: '6db6eb9ed1803d7c25f2b9dd03955be7e9c41a34', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
32
+ return (h("div", { key: '4556d3dbedce4833b63302f78f467ccf71cce02c' }, h("div", { key: '18569ca4c37bbf7b82a13db6c8ae878d0b2c12fa', class: "row gy-3" }, h("div", { key: '001f41285eda4237686861df1aaaad24836fbf7c', class: "col-12" }, h("h2", { key: '3193324c11f5ca7c81de99cd224e2f8a8d21a43d', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'e312e8aee070bee2b317dc7f6f9e616dc3cbd26e', class: "col-12" }, h("form-control-text", { key: '69a90af0a8c328b7e0eba67d39ac3f2f4ffd3439', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '5c4ca04204a7467918e2e130d6ee437a4c5db85b', class: "col-12" }, h("form-control-text", { key: '266415e75633d4d4b5062f56ec43d47e60e03aa1', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '90088259556bbfce03c87af029ea53efc4c394de', class: "col-12" }, h("form-control-date", { key: 'b5eaf92844540c4536f8296e8668ed7e826dfd1f', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '180c72ec5c37cb7bca2edbf3d158d4973c149084', class: "col-12" }, h("form-control-textarea", { key: '924cae54e30cba491dd4ce10bb514a7374a1d793', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'b7f06251c0a03bec0b6622b9d05c7c55d7d6bb13', class: "col-12" }, h("form-control-file-v2", { key: '832da84ac1f4822ac882c03d60b169a2351ffb8e', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
33
33
  }
34
34
  static get is() { return "justifi-shipping-details"; }
35
35
  static get properties() {
@@ -19,7 +19,7 @@ export class TableFiltersMenu {
19
19
  this.showClearButton = hasFilters(this.params);
20
20
  }
21
21
  render() {
22
- return (h("div", { key: 'b270a6f9e52e45e958bb02e31569d4f56135ee25', class: "d-flex gap-2" }, h("div", { key: '76d9eef0672c27ec28a95bc062f946739a2c5dc7', class: "dropdown pb-3" }, h("button", { key: '3de6afb2c92bde835ae894e7548b3e07b86fb0bf', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: 'de744460fb721b5949ca0cfcf6a751e4b6a008d0', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'c8b6d3e8e28b90fb3dedd80e71c7a8a0f30b6a8f', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '44e50fab6d4f6c7a76f90659cced1c61e94ec43d' })))), h("div", { key: 'b5ec37cc1f28005c2b87b14bd10b74e619012ce5' }, h(Button, { key: '5bae9de44fcdb6e015ac3311945bdcee1887e827', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
22
+ return (h("div", { key: 'db1619bbaa73d4102c684b2ca1b4897d1c36fa66', class: "d-flex gap-2" }, h("div", { key: '68f4538d4465aadbf20e322264e219ce7ca8078a', class: "dropdown pb-3" }, h("button", { key: 'cc1835756c1fa2a24a4bbc4ec2960caca0d24e75', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '14f88ecd195fcf3770cadd71659b00d4c117c460', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'd33a6875f30413f3a2f5b8d706cf0bf0e3d6620a', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '5923bb3684fc9f710a6686d9bf90a6d0f35a1818' })))), h("div", { key: 'eba66abc4ef60bf7603fd9459cf4040ed6105e8c' }, h(Button, { key: 'f5de28962ac56636904cee2a5e5d41204e07143c', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
23
23
  }
24
24
  static get is() { return "table-filters-menu"; }
25
25
  static get properties() {
@@ -67,7 +67,7 @@ export class GrossPaymentChartCore {
67
67
  }
68
68
  }
69
69
  render() {
70
- return (h(Host, { key: '14360f11f9b118e347ee73739f03c3631fbef1a4' }, this.loading && h(Spinner, { key: 'a5190472afdbf507c6c36c8aaae1473bffc80dcf' }), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
70
+ return (h(Host, { key: '663505aa79e84647ccc612ba671910a2cbc9e27d' }, this.loading && h(Spinner, { key: '2c0a00781ec16313786e76e2d95f4cddae5d3cb9' }), !this.errorMessage ? h("canvas", { id: "chart", ref: (elem) => this.chartRef = elem }) : ErrorState(this.errorMessage)));
71
71
  }
72
72
  static get is() { return "gross-payment-chart-core"; }
73
73
  static get properties() {
@@ -5,11 +5,12 @@ import { checkPkgVersion } from "../../utils/check-pkg-version";
5
5
  import { ComponentErrorCodes, ComponentErrorMessages, ComponentErrorSeverity, ICheckoutStatus, PaymentMethodTypes, } from "../../api";
6
6
  import { makeCheckoutComplete, makeGetCheckout, } from "../../actions/checkout/checkout-actions";
7
7
  import { CheckoutService } from "../../api/services/checkout.service";
8
+ import { PlaidService } from "../../api/services/plaid.service";
8
9
  import { insuranceValues, insuranceValuesOn, hasInsuranceValueChanged } from "../insurance/insurance-state";
9
10
  import { PAYMENT_MODE } from "./ModularCheckout";
10
11
  export class ModularCheckout {
11
12
  constructor() {
12
- this.savePaymentMethod = false;
13
+ this.plaidService = new PlaidService();
13
14
  this.handleApplePayCompleted = (event) => {
14
15
  const { success, token, paymentMethodId, error } = event.detail;
15
16
  if (success && token) {
@@ -40,9 +41,6 @@ export class ModularCheckout {
40
41
  checkoutStore.selectedPaymentMethod = undefined;
41
42
  };
42
43
  }
43
- savePaymentMethodChanged(newValue) {
44
- checkoutStore.savePaymentMethod = newValue;
45
- }
46
44
  connectedCallback() {
47
45
  this.observer = new MutationObserver(() => {
48
46
  this.queryFormRefs();
@@ -69,7 +67,6 @@ export class ModularCheckout {
69
67
  this.analytics = new JustifiAnalytics(this);
70
68
  checkPkgVersion();
71
69
  checkoutStore.authToken = this.authToken;
72
- checkoutStore.savePaymentMethod = this.savePaymentMethod;
73
70
  this.fetchCheckout();
74
71
  // Refresh the checkout data when insurance values actually change (not on initial load)
75
72
  insuranceValuesOn("set", (key) => {
@@ -131,6 +128,7 @@ export class ModularCheckout {
131
128
  updateStore(checkout) {
132
129
  var _a, _b, _c, _d, _e;
133
130
  checkoutStore.accountId = checkout.account_id;
131
+ checkoutStore.checkoutLoaded = true;
134
132
  checkoutStore.paymentMethods = checkout.payment_methods;
135
133
  checkoutStore.paymentMethodGroupId = checkout.payment_method_group_id;
136
134
  checkoutStore.paymentDescription = checkout.payment_description;
@@ -197,6 +195,7 @@ export class ModularCheckout {
197
195
  // set the selected payment method to the checkout store from outside the component
198
196
  async setSelectedPaymentMethod(paymentMethod) {
199
197
  checkoutStore.selectedPaymentMethod = paymentMethod;
198
+ checkoutStore.paymentToken = paymentMethod.id || undefined;
200
199
  }
201
200
  // getAvailablePaymentMethods removed in favor of checkout-changed event
202
201
  // if validation fails, the error will be emitted by the component
@@ -239,11 +238,13 @@ export class ModularCheckout {
239
238
  }
240
239
  }
241
240
  async submitCheckout(submitCheckoutArgs) {
241
+ var _a;
242
242
  const isValid = await this.validate();
243
243
  const isNewCard = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.card &&
244
244
  checkoutStore.selectedPaymentMethod.id === undefined;
245
245
  const isNewBankAccount = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.bankAccount &&
246
246
  checkoutStore.selectedPaymentMethod.id === undefined;
247
+ const isPlaid = checkoutStore.selectedPaymentMethod.type === PaymentMethodTypes.plaid;
247
248
  const shouldTokenize = isNewCard || isNewBankAccount;
248
249
  if (shouldTokenize) {
249
250
  const tokenizeResult = await this.tokenizePaymentMethod(submitCheckoutArgs);
@@ -256,6 +257,41 @@ export class ModularCheckout {
256
257
  return;
257
258
  }
258
259
  }
260
+ // For Plaid, perform exchange at submit time using stored public token and link token id
261
+ if (isPlaid && !checkoutStore.paymentToken) {
262
+ const publicToken = checkoutStore.plaidPublicToken;
263
+ const linkTokenId = checkoutStore.plaidLinkTokenId;
264
+ if (!publicToken) {
265
+ this.errorEvent.emit({
266
+ message: 'Missing Plaid public token. Please connect your bank.',
267
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
268
+ severity: ComponentErrorSeverity.ERROR,
269
+ });
270
+ return;
271
+ }
272
+ try {
273
+ const response = await this.plaidService.tokenizeBankAccount(checkoutStore.authToken, checkoutStore.accountId, publicToken, linkTokenId || undefined, checkoutStore.savePaymentMethod ? checkoutStore.paymentMethodGroupId : undefined);
274
+ if (response === null || response === void 0 ? void 0 : response.error) {
275
+ this.errorEvent.emit({
276
+ message: typeof response.error === 'string' ? response.error : response.error.message || 'Failed to tokenize bank account',
277
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
278
+ severity: ComponentErrorSeverity.ERROR,
279
+ });
280
+ return;
281
+ }
282
+ const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
283
+ const token = ((_a = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _a === void 0 ? void 0 : _a.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
284
+ checkoutStore.paymentToken = token;
285
+ }
286
+ catch (err) {
287
+ this.errorEvent.emit({
288
+ message: (err === null || err === void 0 ? void 0 : err.message) || 'Plaid exchange error',
289
+ errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
290
+ severity: ComponentErrorSeverity.ERROR,
291
+ });
292
+ return;
293
+ }
294
+ }
259
295
  if (!isValid) {
260
296
  this.errorEvent.emit({
261
297
  message: "Please fill in all required fields.",
@@ -270,6 +306,7 @@ export class ModularCheckout {
270
306
  errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
271
307
  severity: ComponentErrorSeverity.ERROR,
272
308
  });
309
+ return;
273
310
  }
274
311
  let payment;
275
312
  const mapTypeToPaymentMode = (type) => {
@@ -308,7 +345,7 @@ export class ModularCheckout {
308
345
  });
309
346
  }
310
347
  render() {
311
- return h(Host, { key: '4df5d1aa50fbeee7da93f8e19e45f6907b6ae2c7' });
348
+ return h(Host, { key: '08b6e2c3f58745ac7865f686bafba4e18cbab268' });
312
349
  }
313
350
  static get is() { return "justifi-modular-checkout"; }
314
351
  static get properties() {
@@ -350,26 +387,6 @@ export class ModularCheckout {
350
387
  "getter": false,
351
388
  "setter": false,
352
389
  "reflect": false
353
- },
354
- "savePaymentMethod": {
355
- "type": "boolean",
356
- "attribute": "save-payment-method",
357
- "mutable": false,
358
- "complexType": {
359
- "original": "boolean",
360
- "resolved": "boolean",
361
- "references": {}
362
- },
363
- "required": false,
364
- "optional": true,
365
- "docs": {
366
- "tags": [],
367
- "text": ""
368
- },
369
- "getter": false,
370
- "setter": false,
371
- "reflect": false,
372
- "defaultValue": "false"
373
390
  }
374
391
  };
375
392
  }
@@ -516,10 +533,4 @@ export class ModularCheckout {
516
533
  };
517
534
  }
518
535
  static get elementRef() { return "hostEl"; }
519
- static get watchers() {
520
- return [{
521
- "propName": "savePaymentMethod",
522
- "methodName": "savePaymentMethodChanged"
523
- }];
524
- }
525
536
  }
@@ -81,6 +81,9 @@ export class ApplePay {
81
81
  onChange("authToken", () => {
82
82
  this.initializeApplePay();
83
83
  });
84
+ onChange("checkoutLoaded", () => {
85
+ this.initializeApplePay();
86
+ });
84
87
  }
85
88
  watchPropsChange() {
86
89
  this.initializeApplePay();
@@ -40,10 +40,10 @@ export class BankAccountForm {
40
40
  return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
41
41
  }
42
42
  render() {
43
- return (h(StyledHost, { key: '653403782a62c5a2ea0675f9633c7197503c9ab7' }, h(BankAccountFormSkeleton, { key: '63f13c4e3c7ca588a17837faeca840302675c927', isReady: this.isReady }), h("hidden-input", { key: '7d825c7c130942e751f3ba17d195e979c406f4a6' }), h("div", { key: 'd9fec72e9526c9dadd3cae0af98d99b024320a2c', class: "container-fluid p-0", style: {
43
+ return (h(StyledHost, { key: '55cf04f40c030d67235807168a303dc2680561d2' }, h(BankAccountFormSkeleton, { key: '1b076c4d58b80c5f9b5842e1e0228657ec39f68b', isReady: this.isReady }), h("hidden-input", { key: '8b622b9693d7648a6bd33f082241910801c14e1e' }), h("div", { key: 'ce79e65bd2dba972885b5c906715e70d2817dd4c', class: "container-fluid p-0", style: {
44
44
  opacity: this.isReady ? '1' : '0',
45
45
  height: this.isReady ? 'auto' : '0',
46
- } }, h("div", { key: '22047ead687c0eb6cb724343091eac42760d93a4', class: "row mb-3" }, h("iframe-input", { key: '5f5a1300d37439b3c936dcc13e1e17cf779c9ba0', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '2898faa832be4454b81047cdc220cc418b6a6783', class: "row" }, h("iframe-input", { key: '962fc1a8504d5e84386818936b27d38ca580c410', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
46
+ } }, h("div", { key: '8cc5b4b9c742ba0958845f2e5fee3e94c6449229', class: "row mb-3" }, h("iframe-input", { key: '3c41e6d2af86ff242f3b7a3d462628ab16626fe7', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: 'd95374c4f22fe40bc0033f159d456d94ee10363f', class: "row" }, h("iframe-input", { key: '22df6eb6ad22ccb18e9e24533dd8b208afb44309', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
47
47
  }
48
48
  static get is() { return "justifi-bank-account-form"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -44,10 +44,10 @@ export class JustifiCardForm {
44
44
  return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
45
45
  }
46
46
  render() {
47
- return (h(StyledHost, { key: 'a53db7e555c2a1df6679bf9ddeada18d9e750a3d' }, h(CardFormSkeleton, { key: '70eda1f05670b09bdb6a5f9f506f5828fec0cd71', isReady: this.isReady }), h("hidden-input", { key: '648480344a5a79e79d8396cdcc402f63f40b2b18' }), h("div", { key: 'd7bcf16f905367429ddf4be468d12f603135affa', class: "container-fluid p-0", style: {
47
+ return (h(StyledHost, { key: '46acef24075db09eea0c94417e92e90a360e5850' }, h(CardFormSkeleton, { key: 'bd4f610e83d7bcbf5b597079d68bbeb2abe8c02e', isReady: this.isReady }), h("hidden-input", { key: 'b4a289f1ac7f104f5dce7848a94d22c9aa4a4b56' }), h("div", { key: 'df003c1be11c5a5262e6563d1fd4755ae60dc700', class: "container-fluid p-0", style: {
48
48
  opacity: this.isReady ? '1' : '0',
49
49
  height: this.isReady ? 'auto' : '0',
50
- } }, h("div", { key: '9860508b6a16ae4a37d96c3d259237ccd17b28f1', class: "mb-3" }, h("iframe-input", { key: 'c37ec02e0b2f8465c4118892f0b51faaf9a57cdf', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '097258a271969ef38a1d32a5aa0b20c5443de991', class: "row" }, h("div", { key: 'ad2b656c503abd6aca2eea0842a70358097c452e', class: "col-4 align-content-end" }, h("iframe-input", { key: '3e3fda000e1ea41e44a337a1efd886ce7d9503f7', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '13f33bd008ad4c6407336775d35b752c0e6eb8e5', class: "col-4 align-content-end" }, h("iframe-input", { key: '3dcf445381f39544a1421569151c76c47e790456', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'fbc26d74b4e18b7a77639d8b53720ca4e7bdd201', class: "col-4 align-content-end" }, h("iframe-input", { key: '400c65fa8efb358396e561b3ba2a5ac13c3bcbbe', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
50
+ } }, h("div", { key: '900e56045f6db140c74db42396a85153d3fae683', class: "mb-3" }, h("iframe-input", { key: '1600ae4cddd10afb5abeea9d9a4e851e76ad3de2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'ce66d35bd549b2cebca200c8c42eeddca4acd2d1', class: "row" }, h("div", { key: 'f1480606b802eff983710a37f79a9492f79b8440', class: "col-4 align-content-end" }, h("iframe-input", { key: 'd04785d62994fef3ee2d597a189d0b823e803bca', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '875e03320bb22f4f6891f01e749fef871f37cf18', class: "col-4 align-content-end" }, h("iframe-input", { key: 'ead59922d5ffeefe6e5951203b9ec157135dee3c', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'a70d098fc88770441dfb347b9124f4c4d159714d', class: "col-4 align-content-end" }, h("iframe-input", { key: 'eff54f20b8b3280b08839aaf4e77ab46c3262202', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
51
51
  }
52
52
  static get is() { return "justifi-card-form"; }
53
53
  static get encapsulation() { return "shadow"; }
@@ -3,7 +3,7 @@ import { radioListItem } from "../../../styles/parts";
3
3
  import { StyledHost } from "../../../ui-components";
4
4
  export class PaymentMethodOption {
5
5
  render() {
6
- return (h(StyledHost, { key: '8055addaf7563d5deb7d9b31794bf36e1d273a0d', class: "payment-method" }, h("div", { key: '5fb85a3e5c94eff4e397ba5b23d3fb7a34e4c312', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: 'b36c23bb6eeee3fc7325ea6d9b46aed4fc43c21c', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
6
+ return (h(StyledHost, { key: '42003535aac99ae51b47511facb02f602dff703d', class: "payment-method" }, h("div", { key: 'c1ad6051d7b2dd88d2a76cd94ed69fe3f7408c7d', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '98ea069afd3e9d09ca8599ab35f998294046463a', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
7
7
  }
8
8
  static get is() { return "payment-method-option"; }
9
9
  static get encapsulation() { return "shadow"; }
@@ -165,6 +165,9 @@ export class PlaidPaymentMethod {
165
165
  this.linkToken = response.data.link_token;
166
166
  // Try to capture link token id if present in envelope
167
167
  this.linkTokenId = (response === null || response === void 0 ? void 0 : response.id) || ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.id) || null;
168
+ if (this.linkTokenId) {
169
+ checkoutStore.plaidLinkTokenId = this.linkTokenId;
170
+ }
168
171
  }
169
172
  catch (error) {
170
173
  // Clear timeout
@@ -244,41 +247,10 @@ export class PlaidPaymentMethod {
244
247
  message: 'Bank account connected successfully',
245
248
  severity: ComponentErrorSeverity.INFO
246
249
  });
247
- // Immediately exchange the public token for a payment method token via backend
248
- this.exchangePublicTokenForPaymentMethod();
249
- };
250
- this.exchangePublicTokenForPaymentMethod = async () => {
251
- var _a;
252
- if (!this.publicToken) {
253
- console.error('[PlaidPaymentMethod] exchange: missing publicToken');
254
- return;
255
- }
256
- if (!checkoutStore.authToken || !checkoutStore.accountId) {
257
- console.error('[PlaidPaymentMethod] exchange: missing auth/account context');
258
- return;
259
- }
260
- try {
261
- const response = await this.plaidService.tokenizeBankAccount(checkoutStore.authToken, checkoutStore.accountId, this.publicToken, this.linkTokenId || undefined, checkoutStore.savePaymentMethod ? checkoutStore.paymentMethodGroupId : undefined);
262
- if (response === null || response === void 0 ? void 0 : response.error) {
263
- console.error('[PlaidPaymentMethod] exchange: backend error', response.error);
264
- return;
265
- }
266
- // Extract token from payment method response
267
- const paymentMethod = response === null || response === void 0 ? void 0 : response.data;
268
- const token = ((_a = paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.bank_account) === null || _a === void 0 ? void 0 : _a.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.token) || (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
269
- if (!token) {
270
- console.error('[PlaidPaymentMethod] exchange: no token in response');
271
- return;
272
- }
273
- // Save for downstream submit flows
274
- checkoutStore.paymentToken = token;
275
- }
276
- catch (err) {
277
- console.error('[PlaidPaymentMethod] exchange: exception', {
278
- message: (err === null || err === void 0 ? void 0 : err.message) || String(err),
279
- });
280
- }
250
+ // Store public token in checkout store; exchange will be handled on submit
251
+ checkoutStore.plaidPublicToken = publicToken;
281
252
  };
253
+ // Exchange logic moved to Modular Checkout submit flow.
282
254
  this.handlePlaidExit = (err, _metadata) => {
283
255
  this.isAuthenticating = false;
284
256
  if (err) {
@@ -491,10 +463,6 @@ export class PlaidPaymentMethod {
491
463
  // Returns a usable payment method token for checkout completion.
492
464
  // Will perform the backend exchange if the token is not yet present in the store.
493
465
  async getPaymentToken() {
494
- if (checkoutStore.paymentToken) {
495
- return checkoutStore.paymentToken;
496
- }
497
- await this.exchangePublicTokenForPaymentMethod();
498
466
  return checkoutStore.paymentToken;
499
467
  }
500
468
  async handleSelectionClick() {
@@ -107,18 +107,19 @@ describe('PlaidPaymentMethod', () => {
107
107
  expect(component.isAuthenticating).toBe(false);
108
108
  });
109
109
  });
110
- describe('Plaid exchange flow', () => {
111
- it('exchanges public token and saves payment token to store', async () => {
110
+ describe('Plaid success flow', () => {
111
+ it('stores public token in store and does not set payment token', async () => {
112
112
  // Arrange
113
- mockCheckoutStore.selectedPaymentMethod = 'plaid';
113
+ mockCheckoutStore.selectedPaymentMethod = { type: PaymentMethodTypes.plaid };
114
114
  const instance = page.rootInstance;
115
115
  // Act: simulate Plaid success
116
116
  instance.handlePlaidSuccess('public-sandbox-xyz', {});
117
117
  await page.waitForChanges();
118
- // Allow any async exchange to complete
118
+ // Allow any async handlers to complete
119
119
  await new Promise((r) => setTimeout(r, 0));
120
120
  // Assert
121
- expect(mockCheckoutStore.paymentToken).toBe('tok_pm_456');
121
+ expect(mockCheckoutStore.plaidPublicToken).toBe('public-sandbox-xyz');
122
+ expect(mockCheckoutStore.paymentToken).toBeUndefined();
122
123
  });
123
124
  });
124
125
  });
@@ -5,7 +5,7 @@ import { checkoutStore } from "../../../store/checkout.store";
5
5
  import { StyledHost } from "../../../ui-components";
6
6
  export class Summary {
7
7
  render() {
8
- return (h(StyledHost, { key: 'fccb819d66329424af42e9c53effec29a6c9784d' }, h("section", { key: '0ee7a4e0579f7f222a9db82e6b4db6bb92542d9e' }, h("div", { key: 'bdf74b2bc5db35b96ca75d50783b790bb482a76e' }, h("div", { key: '851b481bd6beb1fcaadc106d27d131f8b07d1c9a', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: '0b261bc0e2d65cf989778e02df51b3265816f7aa' }, h("span", { key: '0eee0017ddf25ae45d6b5c828071098f45e6e19d', part: text }, "Total"), "\u00A0", h("span", { key: 'd21576f14c3437f70a4b85b9dfc01107392d663a', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
8
+ return (h(StyledHost, { key: '2644d423d844136d86f7f6b1b80aa98b224146ac' }, h("section", { key: '2017758b2eb8bf6483ca4765e5f18279ff2f6de7' }, h("div", { key: '029f98c45be1e9c807eef1dbf1508e231c7215d1' }, h("div", { key: 'db1b7e220f5afd230ea1fcf5dc818f96d03f68b9', part: text }, checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.paymentDescription), h("div", { key: 'b9d401af17512a5f5ef24350f8c9e9ad1163d83e' }, h("span", { key: '5d7dcef6b946ae455cb2b8e57089f0365b8bb52b', part: text }, "Total"), "\u00A0", h("span", { key: 'cfc8fc46c2f87011de758ccce92a9f4bfbe2ba88', part: text }, formatCurrency(+(checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.totalAmount))))))));
9
9
  }
10
10
  static get is() { return "justifi-checkout-summary"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -126,7 +126,7 @@ export class OrderTerminals {
126
126
  return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : this.submitButtonText))));
127
127
  }
128
128
  render() {
129
- return (h(StyledHost, { key: '5171ddb7b807bf4084f0f831002803a4ece698f3' }, h("div", { key: '529adf4549be8b2723fca357be3f541403dfc8a3', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
129
+ return (h(StyledHost, { key: 'd30fa51dfc5de12c0c70b642a8ad43093717b6e3' }, h("div", { key: '022332e39a80c3cc276ad8e0f56e98a592f14f0a', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
130
130
  }
131
131
  static get is() { return "justifi-order-terminals"; }
132
132
  static get encapsulation() { return "shadow"; }
@@ -18,7 +18,7 @@ export class TerminalQuantitySelector {
18
18
  };
19
19
  }
20
20
  render() {
21
- return (h("div", { key: 'de2e01cebd222ad371a15df4aade26d3e118ddee', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '8e69419c2b7cd0917dd27d42edef08e2d06d79fb', class: "d-flex gap-3" }, h("div", { key: 'c9f83f6f3857e3ec38134194e8ce9d5e9c614992', class: "d-flex align-items-center" }, h("img", { key: '576be452c664824354355b8ed02777dd63d2cddb', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '0c978b052b05d5b6384a0a13411b339c0522dfd3', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: '40c72c35a8a8418c4d873dbbd6f4ca089142bc14', class: "row" }, h("div", { key: '5fd4f0be8b88e49ad6f332b39d8bf5061ed7ebc3', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '5d30721f60481bb7994578aefbe2b58055134044', helpText: this.description })), h("div", { key: 'e78454dc8e9fc81f65d01bafc4877d254db08508', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'e2f601209f58ce5b87aa546888da3077e1dc3aed', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '32f9805571ec676ebfcf664029579d50e5e500ca', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'c7ac123ecc6fcaa06a0beaa5f36ed842beba928c', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
21
+ return (h("div", { key: '603c96b88979220a6af352f61f7a9064c937bbf1', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '56b78a47f1cb6758a0c74add974d9a24cf67e853', class: "d-flex gap-3" }, h("div", { key: '285e8a83d30d21f104d5a0c768b6ca05e7b37c4d', class: "d-flex align-items-center" }, h("img", { key: 'a11fdde276b66855a509491b99e3896bd2ff4aa3', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '62d068e4c6c438cd192f3faf83b8fda9943e3eb8', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'f1a48335799e72cce713d9571ae5f313a45ab54a', class: "row" }, h("div", { key: 'd6c2fcb777e79cd6b0fc801d17b9c4c840466eee', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: 'bf00cf7b3e517d2993031d32dc429f37b28e6bf1', helpText: this.description })), h("div", { key: '6f9f3eb93344cc0805e7245af1ad4dd933f23301', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '499243fd7c9a784317d8772acee70e73eace0cb4', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '374ac100515f1a9ceeb77e64c2143405dfe759bf', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'fe56458a7873bb1b9b6e0366dca058f468252816', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
22
22
  }
23
23
  static get is() { return "terminal-quantity-selector"; }
24
24
  static get properties() {
@@ -38,16 +38,16 @@ export class PaymentDetailsCore {
38
38
  });
39
39
  }
40
40
  render() {
41
- return (h(StyledHost, { key: '5bb9e4baea06de90dba2e9469f14c52b68e65249' }, this.loading && h(PaymentDetailsLoading, { key: '5cbc91375b6d80958e66fad56e1e6d7ab2e15b76' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
42
- this.payment && (h("justifi-details", { key: '7eedb26bfa0fb1cf1656c8bbade79c8cdbdf9764', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'e7912d448ac140a8164ad7c285ab95ed779d61e4', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.payment.status), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '1cd9d26abe03b8994c84b6b1d9c06fc75c4705e8', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '4330bf0ddd130a2103ae00abb4ac787a2968e1b1', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: 'e5336b00ebc442a3d52e74e4f1f75442c06edcf9', title: "ID", value: this.payment.id })), h("div", { key: '0e07bc37f9fbb547c479167ee9e5991a59aeb54f', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '6d30461904ce2576bf3af983a6aa856c2b4fb52d', sectionTitle: "Details" }), h("div", { key: '6a1d68cfa2c03dc496768f7d29867c77aff39856', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2669711d00298e9a84582149f423bcbeabb60de2', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '3a93e845f845d0fd17409e3e44c096f3bb7563dc', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '4be864f58f7ab22e0e5079dc924d8bd02f3b7dd8', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '14956ec82cf01fdec85e76170aeade66273d6a1d', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: '06cd1d7930f6c428be0c736e918147c7aa94cd80', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '98e27c002566c3e9a093ab743951bf56501fd2a2', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '54ab8e011a08814fe3d970f0ab7a93d558b68e22', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'f9875ea8913f6d46adac4175de6dfc284cedba4f', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'ccd5a4a44663cf14b76141e91c69d799055f83e2', title: "Description", value: this.payment.description }), h(DetailItem, { key: '4136e5f730f569bcb63e87cea1022d996596f2a0', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
43
- h(DetailSectionTitle, { key: '3a7ef3be13a9a8d8573eb5766d8d4b120baca19d', sectionTitle: "Payment Method" }),
44
- h("div", { key: '695558eded8ee2cff291bed4a13d02482b619565', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '1c678964543ced0c4f1a5835fea8234322f732ae', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '5b1c9dfda2f8b499e6d0c9fae288e58a771d63d7', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '0aecf598551b5685a36dafb8cf54802cd3914482', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'd59d46bef4cecf2a1dcb73c9af696e6aabf5776b', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '56588cdf9c1535cf8aa22dd56a94608805f241aa', title: "Cardholder", value: this.payment.payment_method.payersName }))
41
+ return (h(StyledHost, { key: 'f2b186044ccc85a72cfcb8fb144ee77667e15ba6' }, this.loading && h(PaymentDetailsLoading, { key: 'edb17ed3599ad66988a15d9834e17e49408b9507' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
42
+ this.payment && (h("justifi-details", { key: '62bf6dd11a6c6b31dcece28cfc375ae1eb6f9344', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '40a3d2f1d327efe61d186f2b24126ec52bcf28bc', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.payment.status), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '83903da52e88d24f09667e1aba282377f35f8e64', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '4f87ad37c9a2b8f8a1ecd181af3b30dbf73aea57', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '52711a7db01db2fb3899fd7defac22021e339e99', title: "ID", value: this.payment.id })), h("div", { key: 'fce421c4a9803e24e05685fa50c0695584ebc5db', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '0734f86c73fa6ec4aee0d65c7ead7f0ae2f36cc2', sectionTitle: "Details" }), h("div", { key: '70df3fc23267c96de447842859ef570b3208a719', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '56a458e4e555e0c6eec08dfc5741e497a2d34686', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: 'f38251a639c1dc0f3299184525074cc312a495ee', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '24bd2a8275278305655b381ba364f7ef352507e5', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '501de65bfda2966ee0ba78d5a7ef9b7f358549f1', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'd0296e2992ba58514e658b7b32ddfc28c5c833f5', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '5b5ee68f54dab15339abcff35e8c7fd80504030b', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: 'ee1f690a6ce8f4b11376c7f92d9b7869642ba0a3', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '7857ee342d7b3af9cbd8e833c9ecc8947c74b5cd', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '38fdde533028fa041c6d22cf1727461fe8691ace', title: "Description", value: this.payment.description }), h(DetailItem, { key: 'f629e61d7e7dfbbc74ff3590abf8ce9a5cc3614d', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
43
+ h(DetailSectionTitle, { key: 'ee90457c952f0ac7217556e8566972fb43b29984', sectionTitle: "Payment Method" }),
44
+ h("div", { key: 'd6007e904c9f45d48f02ce675d75f451b09a344b', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '5fd5fae2793f2d1cb7b63e405c9b865458228e8f', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: '7e6d640a4ed7b4842d3b502901a177a49ae30637', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '6d593f6ef45f8e286c3262750bdef8f686d2dd0a', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '89301ddd84e5cefd3c6576506e590a7fb1d98749', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '8119c2e7ccf0e4c76d93a7033311a244e3b16921', title: "Cardholder", value: this.payment.payment_method.payersName }))
45
45
  ], this.payment.payment_method.bank_account && [
46
- h(DetailSectionTitle, { key: '84f146ebe0e237768df2fd8e16c2295bdb86a49a', sectionTitle: "Payment Method" }),
47
- h("div", { key: '440b505ff883eadf73ecd3ca542d0feeadb8e8a8', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2f57116a3c0a9522a18866d88e18d5856fa53b2a', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: 'c0a7c01e8c4eeece3771d29938268fd324e647c6', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '2968ea77dbc987591dd2418d544c4f21027694d6', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '38f7129625d8d6a16818dc07343eda9ba31dd19c', title: "Account Owner", value: this.payment.payment_method.payersName }))
46
+ h(DetailSectionTitle, { key: 'b410bff21158a0800cddbd46c622de479315313b', sectionTitle: "Payment Method" }),
47
+ h("div", { key: 'f5595402cdc5f3fa2a5e19e99d6e0a21f8dbf0eb', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '6f157f4c6f0c915a47f597dd20883b4f2acfd74a', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: 'c1872ab9da698076ba617bbaeb7ef6790f5ea487', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '0fe4b0af3aff5f03e660dbe9d4286fc3981e6ada', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '6920ce8ae22fed7bd3e12ec48e0197e0e6675257', title: "Account Owner", value: this.payment.payment_method.payersName }))
48
48
  ], this.payment.metadata && [
49
- h(DetailSectionTitle, { key: 'bf0d94665bae468091534cc74219ee786b8b87f6', sectionTitle: 'Metadata' }),
50
- h("div", { key: 'f92f3a4f1f2c6fa6ae6cbc32c0868f22d68b9326', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '21937177748b5322178ae75db147cc3185db78ca', metadata: this.payment.metadata }))
49
+ h(DetailSectionTitle, { key: '4d0be28ad0075d2ff0a5565c90d202f767d70607', sectionTitle: 'Metadata' }),
50
+ h("div", { key: '88a5700230f8585eec6ea505fa5f9b05fa9f21ac', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a9e61b8eef8e0c21ae4359e18e05856734661320', metadata: this.payment.metadata }))
51
51
  ])))));
52
52
  }
53
53
  static get is() { return "payment-details-core"; }