@justifi/webcomponents 6.12.1-rc.5 → 6.12.2

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 (646) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-D4AupIs5.js → Analytics-C1Wd9OW4.js} +3 -3
  3. package/dist/cjs/{Plaid-DAigb4JE.js → Plaid-BlSGeGpn.js} +0 -4
  4. package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +12 -12
  5. package/dist/cjs/additional-questions_5.cjs.entry.js +6 -6
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +3 -3
  7. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  8. package/dist/cjs/bank-account-read-only-value.cjs.entry.js +1 -1
  9. package/dist/cjs/{business.service-CdT38fur.js → business.service-BheJs82v.js} +1 -1
  10. package/dist/cjs/card-form.cjs.entry.js +4 -4
  11. package/dist/cjs/{check-pkg-version-Cl1JxnNX.js → check-pkg-version-DMXmPDqZ.js} +1 -1
  12. package/dist/cjs/{checkout.service-BXK8cZfN.js → checkout.service-DZKdHQQq.js} +1 -1
  13. package/dist/cjs/{checkout.store-zTfjieKa.js → checkout.store-CztwuCnG.js} +2 -0
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -2
  15. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  16. package/dist/cjs/{dispute.service-CeBgrOjr.js → dispute.service-BbtwY673.js} +1 -1
  17. package/dist/cjs/form-address-fields_3.cjs.entry.js +4 -4
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  21. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  24. package/dist/cjs/form-control-number_3.cjs.entry.js +5 -5
  25. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  27. package/dist/cjs/{get-business-Cu7Avp2x.js → get-business-CKC1P4Qs.js} +2 -2
  28. package/dist/cjs/{get-payment-details-qWCANtqS.js → get-payment-details-DL5FmIyF.js} +2 -2
  29. package/dist/cjs/{get-subaccounts-D6z1oD7x.js → get-subaccounts-CVK4O7th.js} +2 -2
  30. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  31. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  32. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  34. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +117 -53
  35. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  36. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  37. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-business-details.cjs.entry.js +58 -22
  40. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -7
  41. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  43. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -12
  44. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
  45. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
  46. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  47. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  48. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  50. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-payment-details.cjs.entry.js +69 -30
  52. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -8
  53. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  54. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payments-list.cjs.entry.js +132 -18
  56. package/dist/cjs/justifi-payout-details.cjs.entry.js +74 -18
  57. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  58. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-payouts-list.cjs.entry.js +169 -21
  60. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -7
  61. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
  63. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  64. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  65. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
  66. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
  67. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
  68. package/dist/cjs/justifi-terminals-list.cjs.entry.js +183 -20
  69. package/dist/cjs/loader.cjs.js +1 -1
  70. package/dist/cjs/{package-BRuzzVG1.js → package-CRaVpb0w.js} +1 -1
  71. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  72. package/dist/cjs/{payment-provisioning-actions-COLn1qHN.js → payment-provisioning-actions-BO7dzIm1.js} +2 -2
  73. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +2 -2
  74. package/dist/cjs/{payment.service-CiOWHJtd.js → payment.service-sZKlg2Jq.js} +1 -1
  75. package/dist/cjs/{payout.service-U7tm4CKf.js → payout.service-BcQVsMCS.js} +1 -1
  76. package/dist/cjs/{payouts-status-DXZ5fl4v.js → payouts-status-CwgOMz-S.js} +21 -0
  77. package/dist/cjs/{plaid.service-DFL4b6_i.js → plaid.service-BcgO2VXC.js} +1 -1
  78. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  79. package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
  82. package/dist/cjs/{terminal-orders-table-D28SoPYI.js → terminal-orders-table-Cz6qvzVE.js} +1 -1
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  84. package/dist/cjs/{terminal.service-Cl7Vp33V.js → terminal.service-CjMMWSh3.js} +1 -1
  85. package/dist/cjs/{utils-CIjcxKu1.js → utils-DbTucCTO.js} +1 -1
  86. package/dist/cjs/webcomponents.cjs.js +1 -1
  87. package/dist/collection/api/Analytics.js +1 -1
  88. package/dist/collection/api/ApplePay.js +0 -4
  89. package/dist/collection/api/services/apple-pay.service.js +1 -6
  90. package/dist/collection/collection-manifest.json +0 -6
  91. package/dist/collection/components/business-details/justifi-business-details.js +56 -17
  92. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  93. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  94. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -2
  95. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  96. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  97. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  98. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
  99. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
  104. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
  105. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  107. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +3 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  111. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  112. package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
  113. package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
  114. package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
  115. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  116. package/dist/collection/components/checkout/justifi-checkout.js +4 -8
  117. package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
  118. package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
  119. package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
  120. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  121. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  122. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/justifi-additional-statement.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
  134. package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
  135. package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
  136. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  137. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  138. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +31 -1
  139. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +34 -15
  140. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  141. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  142. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  143. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  144. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  145. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  146. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +20 -1
  147. package/dist/collection/components/modular-checkout/sub-components/justifi-plaid-payment-method.js +27 -14
  148. package/dist/collection/components/modular-checkout/sub-components/justifi-saved-payment-methods.js +7 -5
  149. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  150. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  151. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  152. package/dist/collection/components/payment-details/justifi-payment-details.js +59 -17
  153. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  154. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  155. package/dist/collection/components/payments-list/justifi-payments-list.js +114 -5
  156. package/dist/collection/components/payout-details/justifi-payout-details.js +86 -8
  157. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  158. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  159. package/dist/collection/components/payouts-list/justifi-payouts-list.js +166 -7
  160. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  161. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +1 -1
  162. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  163. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  164. package/dist/collection/components/terminals-list/justifi-terminals-list.js +153 -7
  165. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  166. package/dist/collection/store/checkout.store.js +2 -0
  167. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  168. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  169. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  170. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  171. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  179. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  180. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  181. package/dist/collection/ui-components/internal-button.js +1 -1
  182. package/dist/collection/ui-components/radio-list-item.js +1 -1
  183. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  184. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  185. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  186. package/dist/docs.json +256 -995
  187. package/dist/esm/{Analytics-BCoK2BKE.js → Analytics-qafLCOEU.js} +4 -4
  188. package/dist/esm/{Api-BrYhtpEh.js → Api-DMd8hTI-.js} +1 -1
  189. package/dist/esm/{Plaid-BMnuSHeX.js → Plaid-BuKEVgbB.js} +2 -6
  190. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  191. package/dist/esm/additional-questions-form-step_14.entry.js +18 -18
  192. package/dist/esm/additional-questions_5.entry.js +7 -7
  193. package/dist/esm/{badge-B_DdhQ3Q.js → badge-B6dp1XGV.js} +1 -1
  194. package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
  195. package/dist/esm/bank-account-form.entry.js +7 -7
  196. package/dist/esm/bank-account-read-only-value.entry.js +2 -2
  197. package/dist/esm/{business.service-D47BEQPH.js → business.service-BPbZ5fxQ.js} +2 -2
  198. package/dist/esm/{button-B-Agn8yQ.js → button-DRdaAudE.js} +1 -1
  199. package/dist/esm/card-form.entry.js +7 -7
  200. package/dist/esm/{check-pkg-version-C1z6CAOx.js → check-pkg-version-BJtCbzf9.js} +1 -1
  201. package/dist/esm/{checkout.service-BDZroRf0.js → checkout.service-CJMfFKyS.js} +2 -2
  202. package/dist/esm/{checkout.store-C1TdhFf6.js → checkout.store-DFnkcDZ8.js} +2 -0
  203. package/dist/esm/checkouts-list-core.entry.js +8 -8
  204. package/dist/esm/{checkouts-table-BXm9GGFI.js → checkouts-table-C8sPHeTm.js} +3 -3
  205. package/dist/esm/custom-popper_2.entry.js +3 -3
  206. package/dist/esm/{dispute.service-CuBGEFgB.js → dispute.service-vlYGy0nR.js} +2 -2
  207. package/dist/esm/form-address-fields_3.entry.js +6 -6
  208. package/dist/esm/form-control-checkbox.entry.js +5 -5
  209. package/dist/esm/form-control-date.entry.js +4 -4
  210. package/dist/esm/{form-control-error-text-DMKhr8QA.js → form-control-error-text-DVedKyhp.js} +1 -1
  211. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  212. package/dist/esm/form-control-file.entry.js +4 -4
  213. package/dist/esm/{form-control-help-text-CsdCuw5-.js → form-control-help-text-D-349cNw.js} +1 -1
  214. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  215. package/dist/esm/form-control-monetary.entry.js +6 -6
  216. package/dist/esm/form-control-number_3.entry.js +9 -9
  217. package/dist/esm/form-control-radio.entry.js +3 -3
  218. package/dist/esm/form-control-select_2.entry.js +6 -6
  219. package/dist/esm/{get-business-BsjvgFCj.js → get-business-DpFRs5dE.js} +2 -2
  220. package/dist/esm/{get-payment-details-Br1249qD.js → get-payment-details-DjBou5Fu.js} +2 -2
  221. package/dist/esm/{get-subaccounts-zrWoI4Bh.js → get-subaccounts-CgDWE_5o.js} +3 -3
  222. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  223. package/dist/esm/{header-1-bRxxOyI-.js → header-1-Bl7MHW0w.js} +1 -1
  224. package/dist/esm/{header-3-E533c0A3.js → header-3-C7JJVnMG.js} +1 -1
  225. package/dist/esm/hidden-input_2.entry.js +7 -7
  226. package/dist/esm/{insurance-state-obAKb1XR.js → insurance-state-qTdpe84i.js} +1 -1
  227. package/dist/esm/internal-button.entry.js +3 -3
  228. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  229. package/dist/esm/justifi-apple-pay_11.entry.js +124 -60
  230. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -7
  231. package/dist/esm/justifi-bank-account-form.entry.js +7 -7
  232. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  233. package/dist/esm/justifi-billing-form.entry.js +1 -1
  234. package/dist/esm/justifi-business-details.entry.js +63 -27
  235. package/dist/esm/justifi-business-form.entry.js +13 -13
  236. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  237. package/dist/esm/justifi-card-form.entry.js +7 -7
  238. package/dist/esm/justifi-checkout.entry.js +12 -15
  239. package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
  240. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  241. package/dist/esm/justifi-details.entry.js +2 -2
  242. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  243. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  244. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
  245. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  246. package/dist/esm/justifi-order-terminals.entry.js +13 -13
  247. package/dist/esm/justifi-payment-details.entry.js +71 -32
  248. package/dist/esm/justifi-payment-provisioning.entry.js +16 -14
  249. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  250. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  251. package/dist/esm/justifi-payments-list.entry.js +134 -20
  252. package/dist/esm/justifi-payout-details.entry.js +76 -20
  253. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  254. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
  255. package/dist/esm/justifi-payouts-list.entry.js +170 -22
  256. package/dist/esm/justifi-refund-payment.entry.js +12 -12
  257. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  258. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  259. package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -11
  260. package/dist/esm/justifi-skeleton.entry.js +3 -3
  261. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -6
  262. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  263. package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
  264. package/dist/esm/justifi-terminals-list.entry.js +184 -21
  265. package/dist/esm/loader.js +1 -1
  266. package/dist/esm/{package-DbJ8_F44.js → package-BCgsLInF.js} +1 -1
  267. package/dist/esm/pagination-menu.entry.js +1 -1
  268. package/dist/esm/{parts-D50Rx76J.js → parts-DnrawQn3.js} +1 -1
  269. package/dist/esm/payment-method-option.entry.js +2 -2
  270. package/dist/esm/{payment-provisioning-actions-B6LHK2Ka.js → payment-provisioning-actions-Dr0YIShV.js} +2 -2
  271. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +4 -4
  272. package/dist/esm/{payment-provisioning-loading-BAoIyEOj.js → payment-provisioning-loading-DI2wDkhm.js} +1 -1
  273. package/dist/esm/{payment.service-C6ebnLOw.js → payment.service-Ckbb7gXA.js} +2 -2
  274. package/dist/esm/{payments-status-7P7L51CK.js → payments-status-BIDoGw-m.js} +1 -1
  275. package/dist/esm/{payout.service-B6KqlDyg.js → payout.service-BgFKxEoL.js} +2 -2
  276. package/dist/esm/{payouts-status-CGZRMu-q.js → payouts-status-1T2NZBoE.js} +22 -2
  277. package/dist/esm/{plaid.service-BS8Zt6ui.js → plaid.service-BLguQHs_.js} +2 -2
  278. package/dist/esm/radio-list-item.entry.js +2 -2
  279. package/dist/esm/save-new-payment-method.entry.js +2 -2
  280. package/dist/esm/{skeleton-DV6yJalo.js → skeleton-CXGFVqDf.js} +1 -1
  281. package/dist/esm/{spinner--fEgBBOG.js → spinner-kSw6PcwU.js} +1 -1
  282. package/dist/esm/{table-Deugl8h5.js → table-CcyuIutB.js} +2 -2
  283. package/dist/esm/table-filters-menu.entry.js +3 -3
  284. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  285. package/dist/esm/{terminal-orders-table-BKbTybx0.js → terminal-orders-table-C7KOcRpq.js} +4 -4
  286. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  287. package/dist/esm/{terminal.service-0AO0m5oh.js → terminal.service-0oISl5j-.js} +2 -2
  288. package/dist/esm/{utils-De6tr4ug.js → utils-BTtxWI2r.js} +1 -1
  289. package/dist/esm/{utils-DJOBwFeP.js → utils-BxYS3WDw.js} +1 -1
  290. package/dist/esm/{utils-DtiRLISl.js → utils-DcfpJGDZ.js} +1 -1
  291. package/dist/esm/webcomponents.js +1 -1
  292. package/dist/module/Analytics.js +1 -1
  293. package/dist/module/ApplePay.js +0 -4
  294. package/dist/module/Plaid.js +2 -2
  295. package/dist/module/additional-questions2.js +1 -1
  296. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  297. package/dist/module/bank-account-document-form-inputs2.js +1 -1
  298. package/dist/module/bank-account-form-inputs-canada2.js +1 -1
  299. package/dist/module/bank-account-form-inputs2.js +1 -1
  300. package/dist/module/bank-account-form2.js +2 -2
  301. package/dist/module/bank-account-read-only-value2.js +1 -1
  302. package/dist/module/business-bank-account-form-step2.js +1 -1
  303. package/dist/module/business-core-info2.js +2 -2
  304. package/dist/module/business-representative-form-inputs2.js +2 -2
  305. package/dist/module/business-representative2.js +2 -2
  306. package/dist/module/business-terms-conditions-form-step2.js +1 -1
  307. package/dist/module/card-billing-form-simple2.js +1 -1
  308. package/dist/module/card-form2.js +2 -2
  309. package/dist/module/checkout.store.js +2 -0
  310. package/dist/module/checkouts-list-core2.js +1 -1
  311. package/dist/module/custom-popper2.js +2 -2
  312. package/dist/module/dispute-management-core.js +1 -1
  313. package/dist/module/dispute-response-core.js +1 -1
  314. package/dist/module/form-address-fields2.js +1 -1
  315. package/dist/module/form-control-checkbox2.js +2 -2
  316. package/dist/module/form-control-date2.js +2 -2
  317. package/dist/module/form-control-file-v22.js +1 -1
  318. package/dist/module/form-control-file2.js +2 -2
  319. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  320. package/dist/module/form-control-monetary2.js +3 -3
  321. package/dist/module/form-control-number-masked2.js +2 -2
  322. package/dist/module/form-control-number2.js +2 -2
  323. package/dist/module/form-control-radio2.js +2 -2
  324. package/dist/module/form-control-select2.js +2 -2
  325. package/dist/module/form-control-text2.js +2 -2
  326. package/dist/module/form-control-textarea2.js +2 -2
  327. package/dist/module/gross-payment-chart-core2.js +2 -2
  328. package/dist/module/hidden-input2.js +1 -1
  329. package/dist/module/identity-address-form2.js +1 -1
  330. package/dist/module/iframe-input2.js +3 -3
  331. package/dist/module/internal-button2.js +1 -1
  332. package/dist/module/justifi-additional-statement2.js +1 -1
  333. package/dist/module/justifi-apple-pay2.js +35 -21
  334. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  335. package/dist/module/justifi-bank-account-form.js +1 -1
  336. package/dist/module/justifi-billing-form-full.js +1 -1
  337. package/dist/module/justifi-billing-form.js +1 -1
  338. package/dist/module/justifi-business-details.js +64 -27
  339. package/dist/module/justifi-button2.js +1 -1
  340. package/dist/module/justifi-cancellation-policy2.js +1 -1
  341. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  342. package/dist/module/justifi-card-form.js +1 -1
  343. package/dist/module/justifi-checkout-summary2.js +2 -2
  344. package/dist/module/justifi-checkout.js +4 -8
  345. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  346. package/dist/module/justifi-checkouts-list.js +2 -2
  347. package/dist/module/justifi-customer-details2.js +1 -1
  348. package/dist/module/justifi-dispute-management.js +1 -1
  349. package/dist/module/justifi-dispute-notification2.js +3 -3
  350. package/dist/module/justifi-dispute-response2.js +1 -1
  351. package/dist/module/justifi-duplicate-charge2.js +1 -1
  352. package/dist/module/justifi-electronic-evidence2.js +1 -1
  353. package/dist/module/justifi-google-pay2.js +6 -1
  354. package/dist/module/justifi-header2.js +1 -1
  355. package/dist/module/justifi-modular-checkout2.js +31 -1
  356. package/dist/module/justifi-order-terminals.js +2 -2
  357. package/dist/module/justifi-payment-details.js +71 -29
  358. package/dist/module/justifi-payment-provisioning.js +4 -2
  359. package/dist/module/justifi-payment-transactions-list.js +2 -2
  360. package/dist/module/justifi-payments-list-filters.js +2 -2
  361. package/dist/module/justifi-payments-list.js +137 -18
  362. package/dist/module/justifi-payout-details.js +76 -21
  363. package/dist/module/justifi-payout-transactions-list.js +2 -2
  364. package/dist/module/justifi-payouts-list-filters.js +3 -3
  365. package/dist/module/justifi-payouts-list.js +174 -20
  366. package/dist/module/justifi-plaid-payment-method2.js +27 -14
  367. package/dist/module/justifi-product-or-service2.js +1 -1
  368. package/dist/module/justifi-refund-payment.js +1 -1
  369. package/dist/module/justifi-refund-policy2.js +1 -1
  370. package/dist/module/justifi-save-new-payment-method.js +1 -1
  371. package/dist/module/justifi-saved-payment-method.js +1 -1
  372. package/dist/module/justifi-saved-payment-methods2.js +7 -5
  373. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  374. package/dist/module/justifi-sezzle-payment-method2.js +1 -1
  375. package/dist/module/justifi-shipping-details2.js +1 -1
  376. package/dist/module/justifi-skeleton.js +1 -1
  377. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  378. package/dist/module/justifi-terminal-orders-list.js +2 -2
  379. package/dist/module/justifi-terminals-list-filters.js +2 -2
  380. package/dist/module/justifi-terminals-list.js +190 -20
  381. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  382. package/dist/module/legal-address-form2.js +1 -1
  383. package/dist/module/owner-details2.js +1 -1
  384. package/dist/module/owner-form-core2.js +1 -1
  385. package/dist/module/owner-form-inputs2.js +2 -2
  386. package/dist/module/owner-form2.js +1 -1
  387. package/dist/module/package.js +1 -1
  388. package/dist/module/payment-method-option.js +1 -1
  389. package/dist/module/payment-provisioning-form-buttons2.js +1 -1
  390. package/dist/module/payment-provisioning-form-steps2.js +1 -1
  391. package/dist/module/payouts-status.js +21 -1
  392. package/dist/module/radio-list-item2.js +1 -1
  393. package/dist/module/representative-details2.js +1 -1
  394. package/dist/module/save-new-payment-method2.js +1 -1
  395. package/dist/module/table-filters-menu2.js +1 -1
  396. package/dist/module/terminal-orders-list-core2.js +2 -2
  397. package/dist/module/terminal-quantity-selector2.js +1 -1
  398. package/dist/module/utils2.js +1 -1
  399. package/dist/types/api/ApplePay.d.ts +0 -7
  400. package/dist/types/components/business-details/justifi-business-details.d.ts +7 -2
  401. package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +1 -1
  402. package/dist/types/components/checkout/justifi-checkout.d.ts +0 -1
  403. package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +2 -0
  404. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +3 -0
  405. package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +1 -0
  406. package/dist/types/components/modular-checkout/sub-components/justifi-plaid-payment-method.d.ts +2 -2
  407. package/dist/types/components/payment-details/justifi-payment-details.d.ts +7 -4
  408. package/dist/types/components/payments-list/justifi-payments-list.d.ts +19 -2
  409. package/dist/types/components/payout-details/justifi-payout-details.d.ts +10 -2
  410. package/dist/types/components/payouts-list/justifi-payouts-list.d.ts +25 -2
  411. package/dist/types/components/terminals-list/justifi-terminals-list.d.ts +24 -2
  412. package/dist/types/components.d.ts +10 -216
  413. package/dist/types/store/checkout.store.d.ts +2 -0
  414. package/dist/webcomponents/{p-C2h_HoOZ.js → p--e0ff06z.js} +1 -1
  415. package/dist/webcomponents/p-032b4553.entry.js +1 -0
  416. package/dist/webcomponents/p-042daaf8.entry.js +1 -0
  417. package/dist/webcomponents/{p-272cc70e.entry.js → p-0638f0bd.entry.js} +1 -1
  418. package/dist/webcomponents/p-06ecd4cb.entry.js +1 -0
  419. package/dist/webcomponents/{p-8d215ad8.entry.js → p-09d2efad.entry.js} +1 -1
  420. package/dist/webcomponents/p-0b3f4f22.entry.js +1 -0
  421. package/dist/webcomponents/{p-c499a613.entry.js → p-10be75b8.entry.js} +1 -1
  422. package/dist/webcomponents/p-164f95ec.entry.js +1 -0
  423. package/dist/webcomponents/p-174eb877.entry.js +1 -0
  424. package/dist/webcomponents/p-1e0be7b0.entry.js +1 -0
  425. package/dist/webcomponents/{p-de4c796a.entry.js → p-1e877e0a.entry.js} +1 -1
  426. package/dist/webcomponents/{p-5d2bcf39.entry.js → p-2425a375.entry.js} +1 -1
  427. package/dist/webcomponents/p-24935254.entry.js +1 -0
  428. package/dist/webcomponents/{p-938e4dc8.entry.js → p-256c5509.entry.js} +1 -1
  429. package/dist/webcomponents/p-2LVpxCS_.js +1 -0
  430. package/dist/webcomponents/{p-89bf64ef.entry.js → p-354fb3c4.entry.js} +1 -1
  431. package/dist/webcomponents/p-39cc6928.entry.js +1 -0
  432. package/dist/webcomponents/{p-257597f1.entry.js → p-3c046adc.entry.js} +1 -1
  433. package/dist/webcomponents/p-4226eb4a.entry.js +1 -0
  434. package/dist/webcomponents/p-474ee3f8.entry.js +1 -0
  435. package/dist/webcomponents/p-485b77ba.entry.js +1 -0
  436. package/dist/webcomponents/p-52908814.entry.js +1 -0
  437. package/dist/webcomponents/{p-b7ac15d8.entry.js → p-581808f0.entry.js} +1 -1
  438. package/dist/webcomponents/p-587886f1.entry.js +1 -0
  439. package/dist/webcomponents/p-5ef355ce.entry.js +1 -0
  440. package/dist/webcomponents/p-6917aa3c.entry.js +1 -0
  441. package/dist/webcomponents/{p-d072a65f.entry.js → p-6d81822f.entry.js} +1 -1
  442. package/dist/webcomponents/{p-3e74bd93.entry.js → p-6ecb3ef9.entry.js} +1 -1
  443. package/dist/webcomponents/p-79713014.entry.js +1 -0
  444. package/dist/webcomponents/p-798f4708.entry.js +1 -0
  445. package/dist/webcomponents/p-7f0f72c6.entry.js +1 -0
  446. package/dist/webcomponents/p-7f814609.entry.js +1 -0
  447. package/dist/webcomponents/p-80652cf8.entry.js +1 -0
  448. package/dist/webcomponents/{p-b322d2f3.entry.js → p-8253ef9f.entry.js} +1 -1
  449. package/dist/webcomponents/p-82fe02e4.entry.js +1 -0
  450. package/dist/webcomponents/p-83147f23.entry.js +1 -0
  451. package/dist/webcomponents/p-870fac9e.entry.js +1 -0
  452. package/dist/webcomponents/p-8c2427ed.entry.js +1 -0
  453. package/dist/webcomponents/p-92de00d7.entry.js +1 -0
  454. package/dist/webcomponents/p-956eca2e.entry.js +1 -0
  455. package/dist/webcomponents/p-9581d6a1.entry.js +1 -0
  456. package/dist/webcomponents/{p-7791b55e.entry.js → p-9db1444f.entry.js} +1 -1
  457. package/dist/webcomponents/p-9f74d7ea.entry.js +1 -0
  458. package/dist/webcomponents/{p-DV_3k3u_.js → p-B--N37zY.js} +1 -1
  459. package/dist/webcomponents/p-B5vVjDc_.js +1 -0
  460. package/dist/webcomponents/p-BArmtmkq.js +1 -0
  461. package/dist/webcomponents/p-BCgsLInF.js +1 -0
  462. package/dist/webcomponents/{p-D4DAh8XF.js → p-BJ7GFTiW.js} +1 -1
  463. package/dist/webcomponents/{p-CTwm3w6I.js → p-BRnBHsdq.js} +1 -1
  464. package/dist/webcomponents/{p-C7SCfFA7.js → p-BnaR7f2G.js} +1 -1
  465. package/dist/webcomponents/p-BsQy297i.js +1 -0
  466. package/dist/webcomponents/p-CDf5H0TB.js +1 -0
  467. package/dist/webcomponents/{p-eNNtSIbE.js → p-CR_-qIuN.js} +1 -1
  468. package/dist/webcomponents/{p-CprMk6Bv.js → p-CUI41_5y.js} +1 -1
  469. package/dist/webcomponents/p-CX36GHQP.js +1 -0
  470. package/dist/webcomponents/{p-CEnTtUmd.js → p-CYQvLgSs.js} +1 -1
  471. package/dist/webcomponents/p-Cej-1bD6.js +1 -0
  472. package/dist/webcomponents/p-Cf6HoQKl.js +1 -0
  473. package/dist/webcomponents/{p-s8zhbjC5.js → p-CsdYMTrc.js} +1 -1
  474. package/dist/webcomponents/{p-CzdAS9Jo.js → p-D1D2eC05.js} +1 -1
  475. package/dist/webcomponents/p-D4OlsyTo.js +1 -0
  476. package/dist/webcomponents/{p-CbM9cuX_.js → p-DPmnGTmg.js} +1 -1
  477. package/dist/webcomponents/p-DWevPe7C.js +1 -0
  478. package/dist/webcomponents/{p-Bo0dEB2o.js → p-Dbg501Lu.js} +1 -1
  479. package/dist/webcomponents/p-DcBvJu0k.js +1 -0
  480. package/dist/webcomponents/p-DkdzUTnl.js +1 -0
  481. package/dist/webcomponents/{p-D50Rx76J.js → p-DnrawQn3.js} +1 -1
  482. package/dist/webcomponents/p-GJyHX3us.js +1 -0
  483. package/dist/webcomponents/p-MDZuGvsl.js +1 -0
  484. package/dist/webcomponents/p-XrKLre8M.js +1 -0
  485. package/dist/webcomponents/p-a7a1b168.entry.js +1 -0
  486. package/dist/webcomponents/{p-c683cb34.entry.js → p-a80d958d.entry.js} +1 -1
  487. package/dist/webcomponents/p-b06910b0.entry.js +1 -0
  488. package/dist/webcomponents/p-b2447726.entry.js +1 -0
  489. package/dist/webcomponents/{p-d34f497c.entry.js → p-b483e71b.entry.js} +1 -1
  490. package/dist/webcomponents/{p-431ad048.entry.js → p-bc2af6b4.entry.js} +1 -1
  491. package/dist/webcomponents/p-befe01ef.entry.js +1 -0
  492. package/dist/webcomponents/p-bfe2583d.entry.js +1 -0
  493. package/dist/webcomponents/{p-CwdQ1VdH.js → p-bn_huKYG.js} +1 -1
  494. package/dist/webcomponents/p-c4767c7b.entry.js +1 -0
  495. package/dist/webcomponents/p-c73631f0.entry.js +1 -0
  496. package/dist/webcomponents/p-c8f7ebf6.entry.js +1 -0
  497. package/dist/webcomponents/p-d253a573.entry.js +1 -0
  498. package/dist/webcomponents/p-d7633e10.entry.js +1 -0
  499. package/dist/webcomponents/p-d878df6c.entry.js +1 -0
  500. package/dist/webcomponents/p-da882bd1.entry.js +1 -0
  501. package/dist/webcomponents/{p-2595b409.entry.js → p-dd1cfb9e.entry.js} +1 -1
  502. package/dist/webcomponents/{p-bbcaa5cc.entry.js → p-ddf699e6.entry.js} +4 -4
  503. package/dist/webcomponents/p-de836ec9.entry.js +1 -0
  504. package/dist/webcomponents/{p-1c54dc53.entry.js → p-e6e56dbb.entry.js} +1 -1
  505. package/dist/webcomponents/p-ea30cf08.entry.js +1 -0
  506. package/dist/webcomponents/p-edf5a854.entry.js +1 -0
  507. package/dist/webcomponents/p-f24563ab.entry.js +1 -0
  508. package/dist/webcomponents/p-f4aeda71.entry.js +1 -0
  509. package/dist/webcomponents/p-faa090a5.entry.js +1 -0
  510. package/dist/webcomponents/p-fc7ba195.entry.js +1 -0
  511. package/dist/webcomponents/{p-MvySE12i.js → p-hhdRync5.js} +1 -1
  512. package/dist/webcomponents/p-niGr4RT2.js +1 -0
  513. package/dist/webcomponents/{p-Da4efjxw.js → p-pL4dNfsl.js} +1 -1
  514. package/dist/webcomponents/p-qcQTYcr3.js +1 -0
  515. package/dist/webcomponents/p-uCg79W3M.js +1 -0
  516. package/dist/webcomponents/{p-CjuaXEuI.js → p-x9fFFf7F.js} +1 -1
  517. package/dist/webcomponents/webcomponents.esm.js +1 -1
  518. package/package.json +14 -14
  519. package/dist/cjs/business-details-core.cjs.entry.js +0 -61
  520. package/dist/cjs/get-payout-csv-DDrtCacG.js +0 -24
  521. package/dist/cjs/payment-details-core.cjs.entry.js +0 -83
  522. package/dist/cjs/payments-list-core.cjs.entry.js +0 -112
  523. package/dist/cjs/payments-table-CUxpxNnc.js +0 -50
  524. package/dist/cjs/payout-details-core.cjs.entry.js +0 -89
  525. package/dist/cjs/payouts-list-core.cjs.entry.js +0 -162
  526. package/dist/cjs/payouts-table-Dex2W8r1.js +0 -34
  527. package/dist/cjs/terminals-list-core.cjs.entry.js +0 -146
  528. package/dist/cjs/terminals-table-DmnAuog5.js +0 -64
  529. package/dist/collection/components/business-details/business-details-core.js +0 -105
  530. package/dist/collection/components/payment-details/payment-details-core.js +0 -127
  531. package/dist/collection/components/payments-list/payments-list-core.js +0 -202
  532. package/dist/collection/components/payout-details/payout-details-core.js +0 -199
  533. package/dist/collection/components/payouts-list/payouts-list-core.js +0 -298
  534. package/dist/collection/components/terminals-list/terminals-list-core.js +0 -262
  535. package/dist/esm/business-details-core.entry.js +0 -59
  536. package/dist/esm/get-payout-csv-Dhezo7Ty.js +0 -22
  537. package/dist/esm/payment-details-core.entry.js +0 -81
  538. package/dist/esm/payments-list-core.entry.js +0 -110
  539. package/dist/esm/payments-table-n1VrIKIR.js +0 -46
  540. package/dist/esm/payout-details-core.entry.js +0 -87
  541. package/dist/esm/payouts-list-core.entry.js +0 -160
  542. package/dist/esm/payouts-table-CbzI90ci.js +0 -30
  543. package/dist/esm/terminals-list-core.entry.js +0 -144
  544. package/dist/esm/terminals-table-Bja7MP5H.js +0 -60
  545. package/dist/module/business-details-core.d.ts +0 -11
  546. package/dist/module/business-details-core.js +0 -6
  547. package/dist/module/business-details-core2.js +0 -117
  548. package/dist/module/get-payout-csv.js +0 -22
  549. package/dist/module/payment-details-core.d.ts +0 -11
  550. package/dist/module/payment-details-core.js +0 -6
  551. package/dist/module/payment-details-core2.js +0 -109
  552. package/dist/module/payments-list-core.d.ts +0 -11
  553. package/dist/module/payments-list-core.js +0 -6
  554. package/dist/module/payments-list-core2.js +0 -184
  555. package/dist/module/payout-details-core.d.ts +0 -11
  556. package/dist/module/payout-details-core.js +0 -6
  557. package/dist/module/payout-details-core2.js +0 -118
  558. package/dist/module/payouts-list-core.d.ts +0 -11
  559. package/dist/module/payouts-list-core.js +0 -6
  560. package/dist/module/payouts-list-core2.js +0 -221
  561. package/dist/module/terminals-list-core.d.ts +0 -11
  562. package/dist/module/terminals-list-core.js +0 -6
  563. package/dist/module/terminals-list-core2.js +0 -236
  564. package/dist/types/components/business-details/business-details-core.d.ts +0 -19
  565. package/dist/types/components/payment-details/payment-details-core.d.ts +0 -16
  566. package/dist/types/components/payments-list/payments-list-core.d.ts +0 -28
  567. package/dist/types/components/payout-details/payout-details-core.d.ts +0 -20
  568. package/dist/types/components/payouts-list/payouts-list-core.d.ts +0 -36
  569. package/dist/types/components/terminals-list/terminals-list-core.d.ts +0 -34
  570. package/dist/webcomponents/p-0b95dd8f.entry.js +0 -1
  571. package/dist/webcomponents/p-0f961323.entry.js +0 -1
  572. package/dist/webcomponents/p-15dfb893.entry.js +0 -1
  573. package/dist/webcomponents/p-15f43759.entry.js +0 -1
  574. package/dist/webcomponents/p-1628613b.entry.js +0 -1
  575. package/dist/webcomponents/p-180a3b65.entry.js +0 -1
  576. package/dist/webcomponents/p-18fc10ca.entry.js +0 -1
  577. package/dist/webcomponents/p-1b610299.entry.js +0 -1
  578. package/dist/webcomponents/p-1b92fb9a.entry.js +0 -1
  579. package/dist/webcomponents/p-1srXnUJh.js +0 -1
  580. package/dist/webcomponents/p-22798967.entry.js +0 -1
  581. package/dist/webcomponents/p-26c419f3.entry.js +0 -1
  582. package/dist/webcomponents/p-2d680f77.entry.js +0 -1
  583. package/dist/webcomponents/p-30f61950.entry.js +0 -1
  584. package/dist/webcomponents/p-38281490.entry.js +0 -1
  585. package/dist/webcomponents/p-39bb134c.entry.js +0 -1
  586. package/dist/webcomponents/p-3a4e27f6.entry.js +0 -1
  587. package/dist/webcomponents/p-3c50f7aa.entry.js +0 -1
  588. package/dist/webcomponents/p-4db2e291.entry.js +0 -1
  589. package/dist/webcomponents/p-4df1d08d.entry.js +0 -1
  590. package/dist/webcomponents/p-548c411f.entry.js +0 -1
  591. package/dist/webcomponents/p-55e7e239.entry.js +0 -1
  592. package/dist/webcomponents/p-563097f0.entry.js +0 -1
  593. package/dist/webcomponents/p-605636be.entry.js +0 -1
  594. package/dist/webcomponents/p-6e5ec134.entry.js +0 -1
  595. package/dist/webcomponents/p-6efbbec1.entry.js +0 -1
  596. package/dist/webcomponents/p-71de86bf.entry.js +0 -1
  597. package/dist/webcomponents/p-7225bc77.entry.js +0 -1
  598. package/dist/webcomponents/p-7c244e99.entry.js +0 -1
  599. package/dist/webcomponents/p-84168bf0.entry.js +0 -1
  600. package/dist/webcomponents/p-84879c92.entry.js +0 -1
  601. package/dist/webcomponents/p-8d5138d8.entry.js +0 -1
  602. package/dist/webcomponents/p-8e9407a1.entry.js +0 -1
  603. package/dist/webcomponents/p-92e64f49.entry.js +0 -1
  604. package/dist/webcomponents/p-9805bc39.entry.js +0 -1
  605. package/dist/webcomponents/p-B--wlcf0.js +0 -1
  606. package/dist/webcomponents/p-BJtvT9BX.js +0 -1
  607. package/dist/webcomponents/p-BrO0HEFJ.js +0 -1
  608. package/dist/webcomponents/p-C-QiUcEa.js +0 -1
  609. package/dist/webcomponents/p-C6IaNDXe.js +0 -1
  610. package/dist/webcomponents/p-C95_YBmG.js +0 -1
  611. package/dist/webcomponents/p-CSW_ZzE9.js +0 -1
  612. package/dist/webcomponents/p-CV3lgp6D.js +0 -1
  613. package/dist/webcomponents/p-D5MdA21U.js +0 -1
  614. package/dist/webcomponents/p-D68EHdgA.js +0 -1
  615. package/dist/webcomponents/p-DB_pqjwH.js +0 -1
  616. package/dist/webcomponents/p-DU2RAZiD.js +0 -1
  617. package/dist/webcomponents/p-DbJ8_F44.js +0 -1
  618. package/dist/webcomponents/p-Df9FVwA7.js +0 -1
  619. package/dist/webcomponents/p-DgPbJiLD.js +0 -1
  620. package/dist/webcomponents/p-DmBX8khF.js +0 -1
  621. package/dist/webcomponents/p-DsYFjVQa.js +0 -1
  622. package/dist/webcomponents/p-EBsfAkrP.js +0 -1
  623. package/dist/webcomponents/p-N60pPiy5.js +0 -1
  624. package/dist/webcomponents/p-_fynNk40.js +0 -1
  625. package/dist/webcomponents/p-ad785edd.entry.js +0 -1
  626. package/dist/webcomponents/p-b1a947c8.entry.js +0 -1
  627. package/dist/webcomponents/p-b1c179d7.entry.js +0 -1
  628. package/dist/webcomponents/p-b822ab7e.entry.js +0 -1
  629. package/dist/webcomponents/p-bd3f7117.entry.js +0 -1
  630. package/dist/webcomponents/p-c29859d9.entry.js +0 -1
  631. package/dist/webcomponents/p-c30dd92c.entry.js +0 -1
  632. package/dist/webcomponents/p-c4c9f37b.entry.js +0 -1
  633. package/dist/webcomponents/p-cfd944e6.entry.js +0 -1
  634. package/dist/webcomponents/p-dc99d6b0.entry.js +0 -1
  635. package/dist/webcomponents/p-dd704b1a.entry.js +0 -1
  636. package/dist/webcomponents/p-e29f42c6.entry.js +0 -1
  637. package/dist/webcomponents/p-e322fcca.entry.js +0 -1
  638. package/dist/webcomponents/p-e360d88f.entry.js +0 -1
  639. package/dist/webcomponents/p-eadbb4dc.entry.js +0 -1
  640. package/dist/webcomponents/p-ef30afd5.entry.js +0 -1
  641. package/dist/webcomponents/p-eff6a50d.entry.js +0 -1
  642. package/dist/webcomponents/p-f266373d.entry.js +0 -1
  643. package/dist/webcomponents/p-fb04fa5a.entry.js +0 -1
  644. package/dist/webcomponents/p-feb19fa5.entry.js +0 -1
  645. package/dist/webcomponents/p-k4rghbOK.js +0 -1
  646. package/dist/webcomponents/p-xSaSp1Jy.js +0 -1
@@ -1,41 +1,37 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var payment_service = require('./payment.service-CiOWHJtd.js');
5
- var getPaymentDetails = require('./get-payment-details-qWCANtqS.js');
6
- var utils = require('./utils-8RGQVADu.js');
7
- var Plaid = require('./Plaid-DAigb4JE.js');
8
- var Analytics = require('./Analytics-D4AupIs5.js');
9
- var checkPkgVersion = require('./check-pkg-version-Cl1JxnNX.js');
10
- require('./Api-Bukk55YZ.js');
4
+ var payment_service = require('./payment.service-sZKlg2Jq.js');
5
+ var getPaymentDetails = require('./get-payment-details-DL5FmIyF.js');
6
+ var Plaid = require('./Plaid-BlSGeGpn.js');
7
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
8
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
11
9
  require('./config-state-BIgGhhe9.js');
12
- require('./index-W-zoNiyM.js');
13
- require('./utils-BHi4j5rB.js');
14
- require('./dinero-BwNN_k7x.js');
10
+ var utils$1 = require('./utils-BHi4j5rB.js');
15
11
  require('./Pagination-Dediz133.js');
16
12
  require('./Business-oBifyXkW.js');
17
- require('./Dispute-CruQTF6_.js');
18
- require('./utils-CIjcxKu1.js');
13
+ var Dispute = require('./Dispute-CruQTF6_.js');
14
+ var paymentsStatus = require('./payments-status-Bj_bCKUP.js');
15
+ var utils = require('./utils-8RGQVADu.js');
16
+ var styledHost = require('./styled-host-DAi5SuFa.js');
17
+ require('./event-types-YOY5TKUN.js');
18
+ var skeleton = require('./skeleton-DvRCiQlA.js');
19
+ var badge = require('./badge-GBNtUypt.js');
20
+ require('./Api-Bukk55YZ.js');
21
+ require('./dinero-BwNN_k7x.js');
22
+ require('./utils-DbTucCTO.js');
23
+ require('./package-CRaVpb0w.js');
24
+ require('./index-W-zoNiyM.js');
19
25
  require('./parts-BXshb_S-.js');
20
- require('./package-BRuzzVG1.js');
26
+
27
+ const PaymentDetailsLoading = () => (index.h("div", { class: "row gap-3" }, index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "35%", height: "30px" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "70%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "40%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "40%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "100%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "80%" }))));
21
28
 
22
29
  const JustifiPaymentDetails = class {
23
30
  constructor(hostRef) {
24
31
  index.registerInstance(this, hostRef);
25
32
  this.errorEvent = index.createEvent(this, "error-event", 7);
26
33
  this.recordClickEvent = index.createEvent(this, "record-click-event", 7);
27
- this.errorMessage = null;
28
- this.paymentService = new payment_service.PaymentService();
29
- this.handleErrorEvent = event => {
30
- this.errorMessage = event.detail.message;
31
- this.errorEvent.emit(event.detail);
32
- };
33
- this.handleRecordClickEvent = (event) => {
34
- this.recordClickEvent.emit({
35
- id: event.detail.id,
36
- type: event.detail.type,
37
- });
38
- };
34
+ this.loading = true;
39
35
  }
40
36
  componentWillLoad() {
41
37
  checkPkgVersion.checkPkgVersion();
@@ -57,6 +53,7 @@ const JustifiPaymentDetails = class {
57
53
  authToken: this.authToken,
58
54
  service: new payment_service.PaymentService()
59
55
  });
56
+ this.fetchData();
60
57
  }
61
58
  else {
62
59
  this.errorMessage = 'Payment ID and Auth Token are required';
@@ -67,15 +64,57 @@ const JustifiPaymentDetails = class {
67
64
  });
68
65
  }
69
66
  }
70
- render() {
71
- if (this.errorMessage) {
72
- return utils.ErrorState(this.errorMessage);
67
+ updateOnPropChange() {
68
+ if (this.getPaymentDetails) {
69
+ this.fetchData();
70
+ }
71
+ }
72
+ fetchData() {
73
+ this.loading = true;
74
+ this.getPaymentDetails({
75
+ onSuccess: ({ payment }) => {
76
+ this.payment = payment;
77
+ this.errorMessage = null;
78
+ },
79
+ onError: ({ error, code, severity }) => {
80
+ this.errorMessage = error;
81
+ this.errorEvent.emit({
82
+ errorCode: code,
83
+ message: error,
84
+ severity,
85
+ });
86
+ },
87
+ final: () => {
88
+ this.loading = false;
89
+ },
90
+ });
91
+ }
92
+ get PaymentStatus() {
93
+ if (this.payment.status === Plaid.PaymentStatuses.disputed) {
94
+ const disputeWasLost = this.payment.disputes.some((dispute) => dispute.status === Dispute.DisputeStatus.lost);
95
+ if (disputeWasLost) {
96
+ return paymentsStatus.PaymentStatusBadge.DISPUTE_LOST;
97
+ }
73
98
  }
74
- return (index.h("payment-details-core", { getPaymentDetails: this.getPaymentDetails, "onError-event": this.handleErrorEvent, "onRecord-click-event": this.handleRecordClickEvent, "enable-record-click": "true" }));
99
+ return this.payment.status;
100
+ }
101
+ render() {
102
+ return (index.h(styledHost.StyledHost, { key: '6d899226b71c2f8c80bf42ba0bd3de9d069582e8' }, this.loading && index.h(PaymentDetailsLoading, { key: '8e17e3f4c880ace7b87270e768610e9ece6e761a' }), !this.loading && this.errorMessage && utils.ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
103
+ this.payment && (index.h("justifi-details", { key: '2f5ea94a1fec18581a06f171c34850fc1423ec1f', errorMessage: this.errorMessage }, index.h(utils.EntityHeadInfo, { key: '5f011ef4b84acc2c16974293079c2d7b0134f8c6', slot: "head-info", badge: (index.h("div", { class: "d-flex gap-1" }, paymentsStatus.MapPaymentStatusToBadge(this.PaymentStatus), this.payment.expedited ? (index.h(badge.Badge, { variant: badge.BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, index.h(utils.EntityHeadInfoItem, { key: '5c075c53a5c589b7bc65ab60bf2ef7d8a67a7afb', classes: "border-1 border-end", title: "Updated At", value: `${utils$1.formatDate(this.payment.updated_at)} ${utils$1.formatTime(this.payment.updated_at)}` }), index.h(utils.EntityHeadInfoItem, { key: '01786dce8a3c582fbd1f471174ecd13f95604e24', classes: "border-1 border-end", title: "Created At", value: `${utils$1.formatDate(this.payment.created_at)} ${utils$1.formatTime(this.payment.created_at)}` }), index.h(utils.EntityHeadInfoItem, { key: 'b04c5c8dfc64aba71d9cc0cd84c25bd32bdc887f', title: "ID", value: this.payment.id })), index.h("div", { key: '52bb00c09abe0745a03f264b3667584c10f58eee', slot: 'detail-sections' }, index.h(utils.DetailSectionTitle, { key: '0672c1ed0c4e7f109531e120f61256927eba48eb', sectionTitle: "Details" }), index.h("div", { key: 'd784569e100926eefb120e1a4b2d9a4d6da4238a', class: "d-flex flex-column gap-2 w-100" }, index.h(utils.DetailItem, { key: '58192f1824f4b02a206b6c442e63b86fc90ea742', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), index.h(utils.DetailItem, { key: '0b885dc6f6f7a4890666ecdb2a1cc801bbf1df31', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), index.h(utils.DetailItem, { key: 'e517d5dbd76cf451e89f803f26b0375a6fd0420b', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), index.h(utils.DetailItem, { key: 'ec3cf850c0217230794e6487861dbab0da5ad463', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), index.h(utils.DetailItem, { key: '8f0d1f4b858ff459b9d08c168ff204e87a0c715e', title: "Status", value: paymentsStatus.MapPaymentStatusToBadge(this.PaymentStatus) }), index.h(utils.DetailItem, { key: '819e1c1dbf090c664430b8e00ede6a88b9ecf5c2', title: "Payment ID", value: this.payment.id }), index.h(utils.DetailItem, { key: 'a86688bc8015db6b1034e6dd2a9819e1dbe5bb30', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), index.h(utils.DetailItem, { key: '7dbb9825135d66711e65fb1b1bb2be228d65bb57', title: "Statement Descriptor", value: this.payment.statement_descriptor }), index.h(utils.DetailItem, { key: '0455c1b7e853ba4e16197cdca3e2f0b16455362a', title: "Description", value: this.payment.description }), index.h(utils.DetailItem, { key: 'b052be4a1a349eb6a439e5c4be4424f966c55e60', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
104
+ index.h(utils.DetailSectionTitle, { key: 'dca0ae73fa7f879d6cfb3f3b20331cf48d6081e4', sectionTitle: "Payment Method" }),
105
+ index.h("div", { key: 'fd3dd48f6ad1f3565459fb3ac10115f0b32051f9', class: "d-flex flex-column gap-2 w-100" }, index.h(utils.DetailItem, { key: '8c00d775e7c4ef57689574974ee47b7c87f98b13', title: "ID", value: this.payment.payment_method.card.id }), index.h(utils.DetailItem, { key: '2d3bc94126c2a02cb32fca8d952a238fdc0960c6', title: "Payment Type", value: "Card" }), index.h(utils.DetailItem, { key: '16938c62ba1eafbf79af00c90c66c7250a81fbbb', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), index.h(utils.DetailItem, { key: '04d9f9a2a7e3ace45f4b0001cf53b069f470529a', title: "Brand", value: utils$1.snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), index.h(utils.DetailItem, { key: '559be48e5ac2083369e7984d53e85ee5fbbab008', title: "Cardholder", value: this.payment.payment_method.payersName }))
106
+ ], this.payment.payment_method.bank_account && [
107
+ index.h(utils.DetailSectionTitle, { key: '25277f2e5526747de9f45416050c6b72873e382b', sectionTitle: "Payment Method" }),
108
+ index.h("div", { key: 'e0b69c8397665a33c1f0d14bd9438b19e70b8636', class: "d-flex flex-column gap-2 w-100" }, index.h(utils.DetailItem, { key: 'ff0365efd2c8ed7a2aa7d3552504a6d9097c28b3', title: "ID", value: this.payment.payment_method.bank_account.id }), index.h(utils.DetailItem, { key: '269d136045549cd12e4519e7f4abf3b6d221da85', title: "Last 4 Numbers", value: this.payment.last_four_digits }), index.h(utils.DetailItem, { key: '31b5aaf03f5bf15267ac16b4b4a2d26f0a01e988', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), index.h(utils.DetailItem, { key: '15f9c03d3514ebb78d25955497a728c8a2c53f7e', title: "Account Owner", value: this.payment.payment_method.payersName }))
109
+ ], this.payment.metadata && [
110
+ index.h(utils.DetailSectionTitle, { key: 'dac3bf342764c2e10ac6b64eabc5ef0366446a31', sectionTitle: 'Metadata' }),
111
+ index.h("div", { key: '2fe93fb287b469a5b1f3230b5f657216815d1164', class: "d-table gap-2 w-100" }, index.h(utils.CodeBlock, { key: 'f77b6a4ebeb88b82fe8342789bd16b7b22f24db9', metadata: this.payment.metadata }))
112
+ ])))));
75
113
  }
76
114
  static get watchers() { return {
77
115
  "paymentId": ["propChanged"],
78
- "authToken": ["propChanged"]
116
+ "authToken": ["propChanged"],
117
+ "getPaymentDetails": ["updateOnPropChange"]
79
118
  }; }
80
119
  };
81
120
 
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var Analytics = require('./Analytics-D4AupIs5.js');
5
- var Plaid = require('./Plaid-DAigb4JE.js');
6
- var paymentProvisioningActions = require('./payment-provisioning-actions-COLn1qHN.js');
7
- var business_service = require('./business.service-CdT38fur.js');
4
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
5
+ var Plaid = require('./Plaid-BlSGeGpn.js');
6
+ var paymentProvisioningActions = require('./payment-provisioning-actions-BO7dzIm1.js');
7
+ var business_service = require('./business.service-BheJs82v.js');
8
8
  var Api = require('./Api-Bukk55YZ.js');
9
9
  require('./Pagination-Dediz133.js');
10
10
  var Business = require('./Business-oBifyXkW.js');
11
11
  require('./Dispute-CruQTF6_.js');
12
- var checkPkgVersion = require('./check-pkg-version-Cl1JxnNX.js');
12
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
13
13
  var utils = require('./utils-BHi4j5rB.js');
14
14
  var parts = require('./parts-BXshb_S-.js');
15
15
  var styledHost = require('./styled-host-DAi5SuFa.js');
@@ -17,8 +17,8 @@ var header1 = require('./header-1-CsBQoo1f.js');
17
17
  require('./event-types-YOY5TKUN.js');
18
18
  var eventTypes = require('./event-types-DNOUef41.js');
19
19
  var paymentProvisioningLoading = require('./payment-provisioning-loading-tM9WWmxv.js');
20
- require('./package-BRuzzVG1.js');
21
- require('./utils-CIjcxKu1.js');
20
+ require('./package-CRaVpb0w.js');
21
+ require('./utils-DbTucCTO.js');
22
22
  require('./config-state-BIgGhhe9.js');
23
23
  require('./index-W-zoNiyM.js');
24
24
  require('./dinero-BwNN_k7x.js');
@@ -110,7 +110,9 @@ const JustifiPaymentProvisioning = class {
110
110
  }
111
111
  };
112
112
  this.decrementSteps = () => {
113
- return this.currentStep--;
113
+ if (this.currentStep > 0) {
114
+ this.currentStep -= 1;
115
+ }
114
116
  };
115
117
  this.previousStepButtonOnClick = () => {
116
118
  this.clickEvent.emit({ name: eventTypes.BusinessFormClickActions.previousStep });
@@ -3,21 +3,21 @@
3
3
  var index = require('./index-p7cvUYAE.js');
4
4
  require('./config-state-BIgGhhe9.js');
5
5
  require('./dinero-BwNN_k7x.js');
6
- var Plaid = require('./Plaid-DAigb4JE.js');
6
+ var Plaid = require('./Plaid-BlSGeGpn.js');
7
7
  var Pagination = require('./Pagination-Dediz133.js');
8
8
  require('./Business-oBifyXkW.js');
9
9
  require('./Dispute-CruQTF6_.js');
10
- var Analytics = require('./Analytics-D4AupIs5.js');
11
- var checkPkgVersion = require('./check-pkg-version-Cl1JxnNX.js');
12
- var utils = require('./utils-CIjcxKu1.js');
13
- var payment_service = require('./payment.service-CiOWHJtd.js');
10
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
11
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
12
+ var utils = require('./utils-DbTucCTO.js');
13
+ var payment_service = require('./payment.service-sZKlg2Jq.js');
14
14
  var table = require('./table-DjbNv28p.js');
15
15
  var styledHost = require('./styled-host-DAi5SuFa.js');
16
16
  var eventTypes = require('./event-types-YOY5TKUN.js');
17
17
  var utils$1 = require('./utils-BHi4j5rB.js');
18
18
  var parts = require('./parts-BXshb_S-.js');
19
19
  require('./index-W-zoNiyM.js');
20
- require('./package-BRuzzVG1.js');
20
+ require('./package-CRaVpb0w.js');
21
21
  require('./Api-Bukk55YZ.js');
22
22
  require('./spinner-C6ZGOB2P.js');
23
23
 
@@ -186,7 +186,7 @@ const JustifiPaymentTransactionsList = class {
186
186
  return !this.showEmptyState && !this.showErrorState && !this.isLoading;
187
187
  }
188
188
  render() {
189
- return (index.h(styledHost.StyledHost, { key: 'e37b6e324069ec5ecac70b34058d476c661d36e3' }, index.h(table.TableWrapper, { key: 'cd7291ea2f1ce756fd90c877ad9378f0323ac8ca' }, index.h(table.TableComponent, { key: '52daba4c8aa7a918a5d126b64912d6784324a5a8' }, index.h(table.TableHead, { key: 'b73c79df19722ad10de0ce5f604dbdb7ccb7cdda' }, index.h(table.TableHeadRow, { key: '7ca076370634e96a8b356a10acea69d9e80bd482' }, this.transactionsTable.columnData.map((column) => column))), index.h(table.TableBody, { key: '52c751a3204c0df4829eaf9d60efaa64e2c9c09c' }, index.h(table.TableLoadingState, { key: 'f23c6b0f585cf2bf1a62d75c6b652941a4cad9fd', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), index.h(table.TableEmptyState, { key: '283c12b30f62396e3cf551360b7dc3a1e2079d03', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), index.h(table.TableErrorState, { key: '02501dfbb91e079b6eecc0260104f6b02a62b6d3', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index$1) => (index.h(table.TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h(table.TableFoot, { key: '2465201b12d25fbe1c8d7f23a5178b2b1aaa9896' }, index.h(table.TableFootRow, { key: '98b72bb125ba8db7d879cfd10bdeb3b2d7566951' }, index.h(table.TableFootCell, { key: '7f9c06cc8e60fa0e848db2fa9f2cfff465254a7b', colSpan: this.transactionsTable.columnData.length }, index.h("pagination-menu", { key: '14a74894ca178e16c627c7d0b8ced3ade5a7a5cb', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
189
+ return (index.h(styledHost.StyledHost, { key: 'bbe4f24aad52765c9566adf52917ecb5562ef38f' }, index.h(table.TableWrapper, { key: '6009d27d08b8940404342e4fd34ac99fd019510f' }, index.h(table.TableComponent, { key: 'eaa81f8eb813dc3f95ccf42eb44092cf7a52f61f' }, index.h(table.TableHead, { key: 'beafd55ed8304616b85ad6fe17c17dca47b7a5f1' }, index.h(table.TableHeadRow, { key: 'e6a086d41ce143c780684548fc3483eada36ab59' }, this.transactionsTable.columnData.map((column) => column))), index.h(table.TableBody, { key: '2e63ef1777fff0db965c1a2d1b3730d6236bba0c' }, index.h(table.TableLoadingState, { key: 'd84464c074bb55717c59559bda6e36c925394fcd', columnSpan: this.transactionsTable.columnKeys.length, isLoading: this.isLoading }), index.h(table.TableEmptyState, { key: 'e2d4297ea72f8310ddee6931be89b2fa51579085', isEmpty: this.showEmptyState, columnSpan: this.transactionsTable.columnKeys.length }), index.h(table.TableErrorState, { key: 'e686616f839acdadcb2802bf2ff9ca64524b9b18', columnSpan: this.transactionsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.transactionsTable.rowData.map((data, index$1) => (index.h(table.TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h(table.TableFoot, { key: 'dc3a9ec5bf2e88a2a3dbdbd174c7cb860a6b93c4' }, index.h(table.TableFootRow, { key: '8ddc32fec0a7edea53f8e34537b8999c5bb729bf' }, index.h(table.TableFootCell, { key: 'eb8de1c3e3fcb2aa4a78c838e93b1400ec750170', colSpan: this.transactionsTable.columnData.length }, index.h("pagination-menu", { key: 'aa1df15f4381600961f7d61af8141d96cc27db47', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
190
190
  }
191
191
  static get watchers() { return {
192
192
  "pagingParams": ["propChanged"],
@@ -62,8 +62,8 @@ const JustifiPaymentsListFilters = class {
62
62
  }
63
63
  render() {
64
64
  const filterMenuParams = Object.assign({}, paymentsListParamsState.filterParams);
65
- return (index.h(styledHost.StyledHost, { key: '207e63a2da8b81ab308d51a2253d68296c92cc25' }, index.h("table-filters-menu", { key: 'cbac700ee156ab458ecf0d3f247daf47f312b22f', params: filterMenuParams, clearParams: paymentsListParamsState.clearParams, part: parts.filterMenu }, index.h("div", { key: 'f30ae88dbbf58d82f9346b5446162cb7bc9eb941', class: "grid-cols-2 gap-3 p-1" }, index.h("div", { key: 'b145a12bbf125e21cd7a509af7f8f469b0b12632', class: "p-2" }, index.h("form-control-text", { key: 'ca232fee8aae5b9dde54d0d1aeb434b94bc9f051', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || paymentsListParamsState.filterParams.payment_id, disabled: !!this.paymentId, part: parts.filterParam })), index.h("div", { key: 'bdb153b7aa40dae43cf263a570a64e2bc2864ec8', class: "p-2" }, index.h("form-control-text", { key: '5c51c88a7233d06a6b3614b244d2185eb1aba840', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || paymentsListParamsState.filterParams.terminal_id, disabled: !!this.terminalId, part: parts.filterParam })), index.h("div", { key: '67039d13a6c999feeb93ae79ca1ad822869e15de', class: "p-2" }, index.h("form-control-select", { key: '18e5d4e0dab9b2127a5308e7b0f5b689e68caead', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || paymentsListParamsState.filterParams.payment_status || '', disabled: !!this.paymentStatus, part: parts.filterParam })), index.h("div", { key: 'f4af14ee692a80e7d8ccdd0a35375d70035ee542', class: "p-2" }, index.h("form-control-select", { key: 'fa9600ca81d8ad37bea6f1c665853c6faa439b75', name: "payment_mode", label: "Payment Mode", options: this.paymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || paymentsListParamsState.filterParams.payment_mode || '', disabled: !!this.paymentMode, part: parts.filterParam })), index.h("div", { key: '6daa2ccec1eedd117b5d71c3d6bf25f02aea1801', class: "p-2" }, index.h("form-control-text", { key: '27fabe15bcc2c3b9fe1694c6a637523c5676eee4', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || paymentsListParamsState.filterParams.checkout_id, disabled: !!this.checkoutId, part: parts.filterParam })), index.h("div", { key: 'edbf45a5e54a3968eb6b12ece0084cfdad166b2a', class: "p-2" }, index.h("form-control-text", { key: 'fe1c023959280bf3e8ea087d8bd1f9fb63800637', name: "account_holder", label: "Account Holder", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.accountHolder || paymentsListParamsState.filterParams.account_holder, disabled: !!this.accountHolder, part: parts.filterParam })), index.h("div", { key: '73851511ecefbca4abfae459284571c077f4aef2', class: "p-2" }, index.h("form-control-date", { key: 'c0f34a0eded3ed2b941fdb1ec6f62d73d4d3e86b', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: utils.convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
- utils.convertToLocal(paymentsListParamsState.filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: parts.filterParam })), index.h("div", { key: '98441cb89498d7e7174fac584b48d05eafd43cce', class: "p-2" }, index.h("form-control-date", { key: '56cb9cd19f1cf5534b168da26d96100608859bd7', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: utils.convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
65
+ return (index.h(styledHost.StyledHost, { key: '7239157d27cff26ea5528329bfca3723819734f7' }, index.h("table-filters-menu", { key: '2a35afad1c98d866a760f5ece5cccaed59a68afe', params: filterMenuParams, clearParams: paymentsListParamsState.clearParams, part: parts.filterMenu }, index.h("div", { key: '5e6a94571beb586b64672e6def26b0af367188af', class: "grid-cols-2 gap-3 p-1" }, index.h("div", { key: '1b5f9000a447b25ec751c4e54fb2525d70c0b949', class: "p-2" }, index.h("form-control-text", { key: 'd2bc10bc3b8ca99b41b7ed4bc93f149692aabda9', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || paymentsListParamsState.filterParams.payment_id, disabled: !!this.paymentId, part: parts.filterParam })), index.h("div", { key: '679da822c026a83e86ef0e055a26fc4963173e68', class: "p-2" }, index.h("form-control-text", { key: '12083ad10bf9c8b2f207ee3ea0a74c32a7176a11', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || paymentsListParamsState.filterParams.terminal_id, disabled: !!this.terminalId, part: parts.filterParam })), index.h("div", { key: 'dbb6570354460ec261c889e7a45eddf0c407ef22', class: "p-2" }, index.h("form-control-select", { key: '28406bc8f4273a903d26d89d431beb411a288fb5', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || paymentsListParamsState.filterParams.payment_status || '', disabled: !!this.paymentStatus, part: parts.filterParam })), index.h("div", { key: '01511cce2def1253b5be7a53defb50bdb659c7bd', class: "p-2" }, index.h("form-control-select", { key: '9cd3148c5f944825ac97dcf85f0e7780c712f3f2', name: "payment_mode", label: "Payment Mode", options: this.paymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || paymentsListParamsState.filterParams.payment_mode || '', disabled: !!this.paymentMode, part: parts.filterParam })), index.h("div", { key: 'b834569a7db874cb3426aa8d31b909fc99d9bafb', class: "p-2" }, index.h("form-control-text", { key: 'f2f4d01e739a17ca7b84a9153cdcfa9ff1f6e233', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || paymentsListParamsState.filterParams.checkout_id, disabled: !!this.checkoutId, part: parts.filterParam })), index.h("div", { key: '81e701c6a73504706b79f1f6177b9de3413d0741', class: "p-2" }, index.h("form-control-text", { key: '5b82aab4b4a3e17466c66de4454cdda6c007d1c5', name: "account_holder", label: "Account Holder", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.accountHolder || paymentsListParamsState.filterParams.account_holder, disabled: !!this.accountHolder, part: parts.filterParam })), index.h("div", { key: 'bce1fa46f53f4056e11d94c30b93ff6ee4036a4c', class: "p-2" }, index.h("form-control-date", { key: 'c13f82cdf9e2736bf45be98dc994f9e402f7bb2e', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: utils.convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
66
+ utils.convertToLocal(paymentsListParamsState.filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: parts.filterParam })), index.h("div", { key: 'd4c3db0970e19065a5cafb74491081e7897ce751', class: "p-2" }, index.h("form-control-date", { key: 'd7fa40e94c4da778ead2c4fa1dc5511783d55f3e', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: utils.convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
67
67
  utils.convertToLocal(paymentsListParamsState.filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: parts.filterParam }))))));
68
68
  }
69
69
  };
@@ -1,26 +1,28 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var payment_service = require('./payment.service-CiOWHJtd.js');
4
+ var payment_service = require('./payment.service-sZKlg2Jq.js');
5
5
  require('./config-state-BIgGhhe9.js');
6
6
  require('./dinero-BwNN_k7x.js');
7
- var Plaid = require('./Plaid-DAigb4JE.js');
8
- require('./Pagination-Dediz133.js');
7
+ var Plaid = require('./Plaid-BlSGeGpn.js');
8
+ var Pagination = require('./Pagination-Dediz133.js');
9
9
  require('./Business-oBifyXkW.js');
10
10
  require('./Dispute-CruQTF6_.js');
11
- var utils = require('./utils-CIjcxKu1.js');
12
- var Analytics = require('./Analytics-D4AupIs5.js');
13
- var checkPkgVersion = require('./check-pkg-version-Cl1JxnNX.js');
11
+ var utils = require('./utils-DbTucCTO.js');
12
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
13
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
14
14
  var styledHost = require('./styled-host-DAi5SuFa.js');
15
- require('./event-types-YOY5TKUN.js');
16
- var paymentsTable = require('./payments-table-CUxpxNnc.js');
15
+ var table = require('./table-DjbNv28p.js');
16
+ var eventTypes = require('./event-types-YOY5TKUN.js');
17
+ var paymentsStatus = require('./payments-status-Bj_bCKUP.js');
18
+ var utils$1 = require('./utils-BHi4j5rB.js');
19
+ var parts = require('./parts-BXshb_S-.js');
20
+ var paymentsListParamsState = require('./payments-list-params-state-vGJZ6Oe2.js');
17
21
  require('./Api-Bukk55YZ.js');
18
- require('./utils-BHi4j5rB.js');
19
22
  require('./index-W-zoNiyM.js');
20
- require('./package-BRuzzVG1.js');
21
- require('./payments-status-Bj_bCKUP.js');
23
+ require('./package-CRaVpb0w.js');
24
+ require('./spinner-C6ZGOB2P.js');
22
25
  require('./badge-GBNtUypt.js');
23
- require('./parts-BXshb_S-.js');
24
26
 
25
27
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError, final }) => {
26
28
  var _a, _b;
@@ -54,21 +56,86 @@ const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSucce
54
56
  }
55
57
  };
56
58
 
59
+ const mapCardBrandToDisplayName = (brand) => {
60
+ if (!brand)
61
+ return 'N/A';
62
+ const brandMap = {
63
+ 'visa': 'VISA',
64
+ 'mastercard': 'Mastercard',
65
+ 'american_express': 'American Express',
66
+ 'discover': 'Discover',
67
+ 'diners_club': 'Diners Club',
68
+ 'jcb': 'JCB',
69
+ 'china_unionpay': 'China UnionPay',
70
+ 'unknown': 'Unknown'
71
+ };
72
+ return brandMap[brand.toLowerCase()] || brand;
73
+ };
74
+ const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand';
75
+ const paymentTableColumns = {
76
+ created_at: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The date and time each payment was made" }, "Date")),
77
+ amount: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The dollar amount of each payment" }, "Amount")),
78
+ status: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The current status of each payment" }, "Status")),
79
+ payment_type: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The type of each payment" }, "Type")),
80
+ description: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The payment description, if you provided one" }, "Description")),
81
+ payers_name: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The name associated with the payment method" }, "Account Holder")),
82
+ last_four_digits: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The brand and last 4 digits of the payment method" }, "Payment Method")),
83
+ card_brand: () => (index.h("th", { part: parts.tableHeadCell, scope: "col", title: "The brand of the payment method" }, "Card Brand")),
84
+ };
85
+ const paymentTableCells = {
86
+ created_at: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, index.h("div", { class: "fw-bold" }, utils$1.convertToLocal(payment.created_at, { showDisplayDate: true })), index.h("div", { class: "fw-bold" }, utils$1.convertToLocal(payment.created_at, { showTime: true })))),
87
+ amount: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, payment.formattedPaymentAmount(payment.amount))),
88
+ status: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, paymentsStatus.MapPaymentStatusToBadge(payment.status))),
89
+ payment_type: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, payment.payment_type)),
90
+ description: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, payment.description)),
91
+ payers_name: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, payment.payers_name)),
92
+ last_four_digits: (payment, index$1) => (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, payment.last_four_digits)),
93
+ card_brand: (payment, index$1) => {
94
+ var _a, _b;
95
+ return (index.h("td", { part: parts.getAlternateTableCellPart(index$1) }, mapCardBrandToDisplayName(((_a = payment.payment_method.card) === null || _a === void 0 ? void 0 : _a.brand) || ((_b = payment.payment_method.bank_account) === null || _b === void 0 ? void 0 : _b.brand))));
96
+ },
97
+ };
98
+
57
99
  const JustifiPaymentsList = class {
58
100
  constructor(hostRef) {
59
101
  index.registerInstance(this, hostRef);
60
102
  this.errorEvent = index.createEvent(this, "error-event", 7);
103
+ this.clickEvent = index.createEvent(this, "click-event", 7);
61
104
  this.errorMessage = null;
62
- this.columns = paymentsTable.defaultColumnsKeys;
63
- this.handleErrorEvent = (event) => {
64
- this.errorMessage = event.detail.message;
65
- this.errorEvent.emit(event.detail);
105
+ this.payments = [];
106
+ this.loading = true;
107
+ this.paging = Pagination.pagingDefaults;
108
+ this.pagingParams = {};
109
+ this.columns = defaultColumnsKeys;
110
+ this.handleClickPrevious = (beforeCursor) => {
111
+ this.pagingParams = { before_cursor: beforeCursor };
112
+ this.clickEvent.emit({ name: eventTypes.TableClickActions.previous });
113
+ };
114
+ this.handleClickNext = (afterCursor) => {
115
+ this.pagingParams = { after_cursor: afterCursor };
116
+ this.clickEvent.emit({ name: eventTypes.TableClickActions.next });
117
+ };
118
+ this.rowClickHandler = (e) => {
119
+ const clickedPaymentID = e.target.closest('tr').dataset.rowEntityId;
120
+ if (!clickedPaymentID)
121
+ return;
122
+ const paymentData = this.payments.find((payment) => payment.id === clickedPaymentID);
123
+ this.clickEvent.emit({ name: eventTypes.TableClickActions.row, data: paymentData });
66
124
  };
67
125
  }
68
126
  componentWillLoad() {
69
127
  checkPkgVersion.checkPkgVersion();
70
128
  this.analytics = new Analytics.JustifiAnalytics(this);
129
+ this.paymentsTable = new table.Table(this.payments, this.columns, paymentTableColumns, paymentTableCells);
71
130
  this.initializeGetPayments();
131
+ paymentsListParamsState.onQueryParamsChange('set', () => {
132
+ this.pagingParams = {};
133
+ this.errorMessage = '';
134
+ });
135
+ paymentsListParamsState.onQueryParamsChange('reset', () => {
136
+ this.pagingParams = {};
137
+ this.errorMessage = '';
138
+ });
72
139
  }
73
140
  disconnectedCallback() {
74
141
  var _a;
@@ -78,6 +145,9 @@ const JustifiPaymentsList = class {
78
145
  propChanged() {
79
146
  this.initializeGetPayments();
80
147
  }
148
+ updateOnPropChange() {
149
+ this.fetchData();
150
+ }
81
151
  initializeGetPayments() {
82
152
  if (this.accountId && this.authToken) {
83
153
  this.getPayments = makeGetPayments({
@@ -95,12 +165,56 @@ const JustifiPaymentsList = class {
95
165
  });
96
166
  }
97
167
  }
168
+ fetchData() {
169
+ if (!this.getPayments)
170
+ return;
171
+ this.loading = true;
172
+ this.getPayments({
173
+ params: this.paymentParams,
174
+ onSuccess: ({ payments, pagingInfo }) => {
175
+ this.payments = payments;
176
+ this.paging = pagingInfo;
177
+ this.paymentsTable.collectionData = this.payments;
178
+ },
179
+ onError: ({ error, code, severity }) => {
180
+ this.errorMessage = error;
181
+ this.errorEvent.emit({
182
+ errorCode: code,
183
+ message: error,
184
+ severity,
185
+ });
186
+ },
187
+ final: () => {
188
+ this.loading = false;
189
+ }
190
+ });
191
+ }
192
+ get paymentParams() {
193
+ const requestParams = paymentsListParamsState.getRequestParams();
194
+ const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
195
+ return params;
196
+ }
197
+ get entityId() {
198
+ return this.payments.map((payment) => payment.id);
199
+ }
200
+ get showEmptyState() {
201
+ return !this.loading && !this.errorMessage && this.paymentsTable.rowData.length < 1;
202
+ }
203
+ get showErrorState() {
204
+ return !this.loading && !!this.errorMessage;
205
+ }
206
+ get showRowData() {
207
+ return !this.showEmptyState && !this.showErrorState && !this.loading;
208
+ }
98
209
  render() {
99
- return (index.h(styledHost.StyledHost, { key: '1eb44d7abbd8ad6964538435786007fcd1792b41' }, index.h("payments-list-core", { key: '6e178dfa35e107c2d0653a9fc1e0d1247ef99bb0', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
210
+ return (index.h(styledHost.StyledHost, { key: '6e1b9127bd44def13ca0e9360f3ad94e8c99860e' }, index.h(table.TableWrapper, { key: '556583538e7dd2cadd84980277da82902eba942f' }, index.h(table.TableComponent, { key: 'bc604eb09bcb019786afb272f597da99d6635872' }, index.h(table.TableHead, { key: '3e030bf889ea09510c26147d807a427d4a772d23' }, index.h(table.TableHeadRow, { key: 'c193117a1db06574c019922536a6982e4c6f09fb' }, this.paymentsTable.columnData.map((column) => column))), index.h(table.TableBody, { key: 'aa955b2adc05c02fbe7a6c693de4649e90855aba' }, index.h(table.TableLoadingState, { key: '35930a22ccdcc360e5e3f192c3fb140711508742', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), index.h(table.TableEmptyState, { key: '1582993843ac6661d2c5b62e07b1911ab940cb3c', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), index.h(table.TableErrorState, { key: '328f38cc95fb2f854865e4e05ace7e9ce8af8b69', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index$1) => (index.h(table.TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler }, data)))), this.paging && (index.h(table.TableFoot, { key: '0137371c7f1ab00f8ef3d27cebb30525eff6b659' }, index.h(table.TableFootRow, { key: '54ed0b9a13338b0bcefba282afe4f2de40e8f539' }, index.h(table.TableFootCell, { key: '6b98204f36a989fe9bd2bda65705de88098690c5', colSpan: this.paymentsTable.columnData.length }, index.h("pagination-menu", { key: 'e3fce4ab3efcc9a33d0b2617cea88026c8a459f3', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
100
211
  }
101
212
  static get watchers() { return {
102
213
  "accountId": ["propChanged"],
103
- "authToken": ["propChanged"]
214
+ "authToken": ["propChanged"],
215
+ "pagingParams": ["updateOnPropChange"],
216
+ "getPayments": ["updateOnPropChange"],
217
+ "columns": ["updateOnPropChange"]
104
218
  }; }
105
219
  };
106
220
 
@@ -1,23 +1,28 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-p7cvUYAE.js');
4
- var payout_service = require('./payout.service-U7tm4CKf.js');
4
+ var payout_service = require('./payout.service-BcQVsMCS.js');
5
5
  require('./config-state-BIgGhhe9.js');
6
6
  require('./dinero-BwNN_k7x.js');
7
- var Plaid = require('./Plaid-DAigb4JE.js');
7
+ var Plaid = require('./Plaid-BlSGeGpn.js');
8
8
  require('./Pagination-Dediz133.js');
9
9
  require('./Business-oBifyXkW.js');
10
10
  require('./Dispute-CruQTF6_.js');
11
- var utils = require('./utils-CIjcxKu1.js');
12
- var utils$1 = require('./utils-8RGQVADu.js');
13
- var Analytics = require('./Analytics-D4AupIs5.js');
14
- var getPayoutCsv = require('./get-payout-csv-DDrtCacG.js');
15
- var checkPkgVersion = require('./check-pkg-version-Cl1JxnNX.js');
11
+ var utils = require('./utils-DbTucCTO.js');
12
+ var utils$1 = require('./utils-BHi4j5rB.js');
13
+ var utils$2 = require('./utils-8RGQVADu.js');
14
+ var Analytics = require('./Analytics-C1Wd9OW4.js');
15
+ var payoutsStatus = require('./payouts-status-CwgOMz-S.js');
16
+ var checkPkgVersion = require('./check-pkg-version-DMXmPDqZ.js');
17
+ var button = require('./button-CR9Rl1-o.js');
18
+ var styledHost = require('./styled-host-DAi5SuFa.js');
19
+ require('./event-types-YOY5TKUN.js');
20
+ var skeleton = require('./skeleton-DvRCiQlA.js');
21
+ var badge = require('./badge-GBNtUypt.js');
16
22
  require('./Api-Bukk55YZ.js');
17
- require('./utils-BHi4j5rB.js');
18
23
  require('./index-W-zoNiyM.js');
19
24
  require('./parts-BXshb_S-.js');
20
- require('./package-BRuzzVG1.js');
25
+ require('./package-CRaVpb0w.js');
21
26
 
22
27
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
23
28
  var _a;
@@ -48,21 +53,43 @@ const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess,
48
53
  }
49
54
  };
50
55
 
56
+ const PayoutDetailsLoading = () => (index.h("div", { class: "row gap-3" }, index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "35%", height: "30px" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "70%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "40%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "40%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "100%" })), index.h("div", { class: "col-12" }, index.h(skeleton.Skeleton, { width: "80%" }))));
57
+
51
58
  const JustifiPayoutDetails = class {
52
59
  constructor(hostRef) {
53
60
  index.registerInstance(this, hostRef);
54
61
  this.errorEvent = index.createEvent(this, "error-event", 7);
62
+ this.recordClickEvent = index.createEvent(this, "record-click-event", 7);
55
63
  this.enableRecordClick = false;
64
+ this.loading = true;
56
65
  this.errorMessage = null;
57
- this.handleErrorEvent = (event) => {
58
- this.errorMessage = event.detail.message;
59
- this.errorEvent.emit(event.detail);
66
+ this.downloadCSV = () => {
67
+ this.getPayoutCSV({
68
+ payoutId: this.payout.id,
69
+ onError: ({ error, code, severity }) => {
70
+ this.errorMessage = error;
71
+ this.errorEvent.emit({
72
+ message: error,
73
+ errorCode: code,
74
+ severity,
75
+ });
76
+ },
77
+ });
78
+ };
79
+ this.handleRecordClick = (id) => {
80
+ this.recordClickEvent.emit({
81
+ id,
82
+ type: 'account'
83
+ });
60
84
  };
61
85
  }
62
86
  componentWillLoad() {
63
87
  checkPkgVersion.checkPkgVersion();
64
88
  this.analytics = new Analytics.JustifiAnalytics(this);
65
89
  this.initializeServices();
90
+ if (this.getPayout) {
91
+ this.fetchData();
92
+ }
66
93
  }
67
94
  disconnectedCallback() {
68
95
  var _a;
@@ -72,6 +99,9 @@ const JustifiPayoutDetails = class {
72
99
  propChanged() {
73
100
  this.initializeServices();
74
101
  }
102
+ getPayoutWatcher() {
103
+ this.fetchData();
104
+ }
75
105
  initializeServices() {
76
106
  if (this.payoutId && this.authToken) {
77
107
  this.getPayout = makeGetPayoutDetails({
@@ -79,7 +109,7 @@ const JustifiPayoutDetails = class {
79
109
  authToken: this.authToken,
80
110
  service: new payout_service.PayoutService()
81
111
  });
82
- this.getPayoutCSV = getPayoutCsv.makeGetPayoutCSV({
112
+ this.getPayoutCSV = payoutsStatus.makeGetPayoutCSV({
83
113
  authToken: this.authToken,
84
114
  service: new payout_service.PayoutService()
85
115
  });
@@ -93,15 +123,41 @@ const JustifiPayoutDetails = class {
93
123
  });
94
124
  }
95
125
  }
126
+ fetchData() {
127
+ this.loading = true;
128
+ this.getPayout({
129
+ onSuccess: (payout) => {
130
+ this.errorMessage = null;
131
+ this.payout = payout;
132
+ this.loading = false;
133
+ },
134
+ onError: ({ error, code, severity }) => {
135
+ this.errorMessage = error;
136
+ this.errorEvent.emit({
137
+ message: error,
138
+ errorCode: code,
139
+ severity,
140
+ });
141
+ this.loading = false;
142
+ },
143
+ });
144
+ }
145
+ formatMethod(deliveryMethod) {
146
+ if (deliveryMethod === "ach")
147
+ return "ACH";
148
+ return utils$1.capitalizeFirstLetter(deliveryMethod);
149
+ }
96
150
  render() {
97
- if (this.errorMessage) {
98
- return utils$1.ErrorState(this.errorMessage);
99
- }
100
- return (index.h("payout-details-core", { getPayout: this.getPayout, getPayoutCSV: this.getPayoutCSV, "onError-event": this.handleErrorEvent, enableRecordClick: this.enableRecordClick }));
151
+ var _a;
152
+ return (index.h(styledHost.StyledHost, { key: '83a5916c440ac2cc4efe216dd175c8816e23c815' }, this.loading && index.h(PayoutDetailsLoading, { key: 'd11ad391a3eaacc5dd6a9a0303d80f496955d369' }), !this.loading && this.errorMessage && utils$2.ErrorState(this.errorMessage), !this.loading && this.payout && (index.h("justifi-details", { key: 'a3be08ef5ad0882ec4a611aa597b0b69914cb560', errorMessage: this.errorMessage }, index.h(utils$2.EntityHeadInfo, { key: '4cea018e82c69b391a5dfc326d0ebb2aac43bcee', slot: "head-info", badge: (index.h("div", { class: "d-flex gap-1" }, payoutsStatus.MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), this.payout.settlement_priority === 'expedited' ? (index.h(badge.Badge, { variant: badge.BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : (index.h(badge.Badge, { variant: badge.BadgeVariant.SECONDARY, title: "Standard", text: "Standard" })))), title: this.payout.formattedPaymentAmount(this.payout.amount) }, index.h(utils$2.EntityHeadInfoItem, { key: '4f44184dcdf1313048d9a2ee5c9be928c1a2b5ef', classes: "border-1 border-end", title: "Updated At", value: `${utils$1.formatDate(this.payout.updated_at)} ${utils$1.formatTime(this.payout.updated_at)}` }), index.h(utils$2.EntityHeadInfoItem, { key: 'd6042bde890fcd4b8ff63856d53debf289ab6d2d', classes: "border-1 border-end", title: "Created At", value: `${utils$1.formatDate(this.payout.created_at)} ${utils$1.formatTime(this.payout.created_at)}` }), index.h(utils$2.EntityHeadInfoItem, { key: '2866ed7c297a0815bad29bfca699893ead3af6ca', title: "ID", value: this.payout.id }), index.h("div", { key: '1a7a105da3b0297f90c9a33fe76aa650c9c5aaa0', class: "m-4" }, index.h(button.Button, { key: '31d8cb414516d5b4244179e6e905cb0d6f4499fa', variant: "outline-secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), index.h("div", { key: '1c1c4896b3f2a0c463880c082fdb43fdd6996de3', slot: 'detail-sections' }, index.h(utils$2.DetailSectionTitle, { key: '481c8f87d29ba4583a40370415fd6f144a601462', sectionTitle: "Details" }), index.h("div", { key: '2f0f38440296dc01dee0fefab2b7f6a1bd04e4bf', class: "d-flex flex-column gap-2 w-100" }, index.h(utils$2.DetailItem, { key: 'd8fe26cee63860bc4e02ffad0e64834ea888d8e3', title: "Date paid", value: utils$1.formatDate(this.payout.deposits_at) }), index.h(utils$2.DetailItem, { key: 'd4a94c5ad5a78c41d314377316ce71db24b79db5', title: "Statement Description", value: this.payout.description }), index.h(utils$2.DetailItem, { key: 'fea138338da1c74d26dacfeaa15642962346658c', title: "Payout Method", value: this.formatMethod(this.payout.delivery_method) }), index.h(utils$2.DetailItem, { key: 'f77701ef18590ed73431614f421b9d76a9b83da6', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), index.h(utils$2.DetailItem, { key: 'af2401b0ad8b35f55283d74eae20fdf7ceea0b82', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), index.h(utils$2.DetailSectionTitle, { key: '96801f26f15e665e856262f65c0c6cea6f92bd9a', sectionTitle: "Account" }), index.h("div", { key: '54578f116a6b23c5c1dce11d450eb18be304ab65', class: "d-flex flex-column gap-2 w-100" }, index.h(utils$2.DetailItem, { key: 'fa8ab204001e4be0cf2aa71fa2f955532f1ac81c', title: "ID", value: this.payout.account_id, onClick: this.enableRecordClick ? () => this.handleRecordClick(this.payout.account_id) : undefined }), index.h(utils$2.DetailItem, { key: 'a0e1afcd7e7d86afb500cf876b7b61e74183f4c9', title: "Account Type", value: this.payout.bank_account.account_type }), index.h(utils$2.DetailItem, { key: '6b78025d11ac562f6950f07d3dc8e5c4041a236f', title: "Institution", value: this.payout.bank_account.account_type }), index.h(utils$2.DetailItem, { key: '93f4f6d947d1b621de0b1d2a24dbcf83e9c909ef', title: "Routing Number", value: this.payout.bank_account.routing_number }), index.h(utils$2.DetailItem, { key: 'cbe9a97153516dd2cbf6af4337179652d0f834ac', title: "Account Number", value: `**** ${this.payout.bank_account.account_number_last4}` })), this.payout.metadata && [
153
+ index.h(utils$2.DetailSectionTitle, { key: '706f2d164a736fb80a8c91018f61e7667eb12be6', sectionTitle: 'Metadata' }),
154
+ index.h("div", { key: '5be03b700c79d747899db7d9bee8a060c5de7894', class: "d-table gap-2 w-100" }, index.h(utils$2.CodeBlock, { key: '8dc3aa6522c59f7a5739eda61354bb1ac58ee3ac', metadata: this.payout.metadata }))
155
+ ])))));
101
156
  }
102
157
  static get watchers() { return {
103
158
  "payoutId": ["propChanged"],
104
- "authToken": ["propChanged"]
159
+ "authToken": ["propChanged"],
160
+ "getPayout": ["getPayoutWatcher"]
105
161
  }; }
106
162
  };
107
163