@justifi/webcomponents 6.0.1 → 6.1.0-rc.1

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 (469) hide show
  1. package/dist/cjs/{Api-DdNOMYxI.js → Api-CwTLkFY4.js} +1 -1
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  3. package/dist/cjs/{badge-Cp5ap9Ge.js → badge-BmOSt4gS.js} +1 -1
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
  5. package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
  6. package/dist/cjs/{business-additional-questions-schema-b8P-0T0O.js → business-additional-questions-schema-DNbSH3E-.js} +2 -2
  7. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  8. package/dist/cjs/{business-identity-schema-aFUle0C9.js → business-identity-schema-CclzWSOn.js} +2 -2
  9. package/dist/cjs/{business.service-CjsXJOgZ.js → business.service-Dkhqyggm.js} +1 -1
  10. package/dist/cjs/{button-BMKiDxGa.js → button-7c2RN2yp.js} +1 -1
  11. package/dist/cjs/card-form.cjs.entry.js +6 -6
  12. package/dist/cjs/{check-pkg-version-C5MyAXgo.js → check-pkg-version-BURRKC_7.js} +2 -2
  13. package/dist/cjs/{checkout.service-o7fi8Z05.js → checkout.service-LwZVVgP5.js} +1 -1
  14. package/dist/cjs/{checkout.store-DrFb05Vr.js → checkout.store-C3f3E24L.js} +1 -1
  15. package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -9
  16. package/dist/cjs/{checkouts-list-params-state-CKeoLpqm.js → checkouts-list-params-state-C4c8UZtP.js} +1 -1
  17. package/dist/cjs/{checkouts-table-Ckpk4UMS.js → checkouts-table-BQUhZZd_.js} +2 -2
  18. package/dist/cjs/{config-state-BXCZx6K8.js → config-state-B_gyIchD.js} +1 -1
  19. package/dist/cjs/custom-popper_2.cjs.entry.js +1 -1
  20. package/dist/cjs/{dispute.service-BANG6pry.js → dispute.service-927Gzb0N.js} +1 -1
  21. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  23. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  24. package/dist/cjs/{form-control-error-text-CA6tsCwq.js → form-control-error-text-DD0dHGu8.js} +1 -1
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
  26. package/dist/cjs/{form-control-help-text-sYroVd4u.js → form-control-help-text-2QwKi78M.js} +1 -1
  27. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  28. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +5 -5
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  30. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
  31. package/dist/cjs/form-control-number.cjs.entry.js +3 -3
  32. package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
  33. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  34. package/dist/cjs/{get-payment-details-CqsEtJTg.js → get-payment-details-BSxp1HX0.js} +1 -1
  35. package/dist/cjs/{get-subaccounts-BfiiwPTB.js → get-subaccounts-B31f95PR.js} +2 -2
  36. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  37. package/dist/cjs/{header-1-IQ1fI7he.js → header-1-DMsp0XM7.js} +1 -1
  38. package/dist/cjs/{header-3-CACJFFMS.js → header-3-BSvFq_IF.js} +1 -1
  39. package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
  40. package/dist/cjs/{index-BGUnWLse.js → index-D1Ba20gi.js} +1 -1
  41. package/dist/cjs/{index-8Prcj64P.js → index-Dyzl8Hn6.js} +13 -2
  42. package/dist/cjs/{index.esm-ByC0D4sJ.js → index.esm-BleZSAc0.js} +17 -18
  43. package/dist/cjs/{insurance-state-De4RWYBC.js → insurance-state-uWOl6jJN.js} +2 -2
  44. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -9
  45. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +16 -16
  46. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +2 -2
  47. package/dist/cjs/justifi-apple-pay.cjs.entry.js +15 -11
  48. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +17 -17
  49. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  50. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -15
  51. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +17 -25
  53. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  56. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-details.cjs.entry.js +3 -3
  58. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  59. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  60. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -10
  61. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
  62. package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
  63. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
  64. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  65. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  66. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
  67. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
  68. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  69. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
  70. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
  71. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
  72. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  73. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  74. package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
  75. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  76. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
  77. package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
  78. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  79. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  80. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
  81. package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
  82. package/dist/cjs/loader.cjs.js +2 -2
  83. package/dist/cjs/{package-D1CuLdpw.js → package-Cq0M4ut-.js} +1 -1
  84. package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
  85. package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
  86. package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
  87. package/dist/cjs/{payment.service-Bk5f4yNM.js → payment.service-DUq-W7tS.js} +1 -1
  88. package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
  89. package/dist/cjs/{payments-list-params-state-CKeoLpqm.js → payments-list-params-state-C4c8UZtP.js} +1 -1
  90. package/dist/cjs/{payments-status-B0mynjDF.js → payments-status-3iIQkoov.js} +2 -2
  91. package/dist/cjs/{payments-table-Dt_B6-wz.js → payments-table-BSHUQhM-.js} +2 -2
  92. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  93. package/dist/cjs/{payout.service-DYm731Kq.js → payout.service-DoKMr8Xw.js} +1 -1
  94. package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
  95. package/dist/cjs/{payouts-list-params-state-CKeoLpqm.js → payouts-list-params-state-C4c8UZtP.js} +1 -1
  96. package/dist/cjs/{payouts-status-MC0n0N1x.js → payouts-status-DoQbxIms.js} +2 -2
  97. package/dist/cjs/{payouts-table-CjJEGkLL.js → payouts-table-BD_Fhz_j.js} +2 -2
  98. package/dist/cjs/{schema-validations-Bj7eYNO8.js → schema-validations-jek_iZ9W.js} +1 -1
  99. package/dist/cjs/{skeleton-CMESEszj.js → skeleton-CuIMC98G.js} +1 -1
  100. package/dist/cjs/{spinner-BePlCbOD.js → spinner-CMZXdrPe.js} +1 -1
  101. package/dist/cjs/{styled-host-CvM9RrsT.js → styled-host-2KXbjOFw.js} +1 -1
  102. package/dist/cjs/{table-1JBgqBkL.js → table-DlQCUVag.js} +2 -2
  103. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  104. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -8
  105. package/dist/cjs/{terminal-orders-list-params-state-CKeoLpqm.js → terminal-orders-list-params-state-C4c8UZtP.js} +1 -1
  106. package/dist/cjs/{terminal-orders-table-DuvYC2f1.js → terminal-orders-table-t6XxNy_K.js} +3 -3
  107. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  108. package/dist/cjs/{terminal.service-B4FQ6roy.js → terminal.service-Iyje71vN.js} +1 -1
  109. package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
  110. package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +22 -0
  111. package/dist/cjs/{terminals-table--d49kyCn.js → terminals-table-BTdKRiBN.js} +2 -2
  112. package/dist/cjs/{utils-BNjLFSUk.js → utils-FFP5ZHyE.js} +1 -1
  113. package/dist/cjs/webcomponents.cjs.js +3 -3
  114. package/dist/collection/api/services/apple-pay.service.js +1 -1
  115. package/dist/collection/collection-manifest.json +2 -2
  116. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -6
  117. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  118. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +6 -6
  119. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -6
  120. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  121. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  122. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +6 -6
  123. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  133. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  134. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  135. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  136. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  137. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  138. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  139. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  140. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  141. package/dist/collection/components/checkout/checkout.js +2 -2
  142. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  143. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  145. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  146. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  147. package/dist/collection/components/modular-checkout/modular-checkout.js +7 -16
  148. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +8 -4
  149. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  150. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  151. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +2 -3
  152. package/dist/collection/ui-components/details/details.js +1 -1
  153. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  154. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  155. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  156. package/dist/docs.json +19 -98
  157. package/dist/esm/{Api-CO0DBcUT.js → Api-D4tj-h4P.js} +1 -1
  158. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  159. package/dist/esm/{badge-CRAuWlVu.js → badge-ChwzCNAF.js} +1 -1
  160. package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
  161. package/dist/esm/bank-account-form.entry.js +6 -6
  162. package/dist/esm/{business-additional-questions-schema-9FAJSx_D.js → business-additional-questions-schema-C6NRHWEL.js} +2 -2
  163. package/dist/esm/business-details-core.entry.js +4 -4
  164. package/dist/esm/{business-identity-schema-CDJzknbg.js → business-identity-schema-D8n5dyLX.js} +2 -2
  165. package/dist/esm/{business.service-D2tRoPny.js → business.service-CsbtEDNi.js} +1 -1
  166. package/dist/esm/{button-B2XlI-Uy.js → button-SAIS_5os.js} +1 -1
  167. package/dist/esm/card-form.entry.js +6 -6
  168. package/dist/esm/{check-pkg-version-C_FhqYkP.js → check-pkg-version-Cd_i8U0d.js} +2 -2
  169. package/dist/esm/{checkout.service-BPYdgahN.js → checkout.service-BCkQ9pOA.js} +1 -1
  170. package/dist/esm/{checkout.store-DPOk5eUh.js → checkout.store-DBvS7cVB.js} +1 -1
  171. package/dist/esm/checkouts-list-core.entry.js +9 -9
  172. package/dist/esm/{checkouts-list-params-state-DmevqV6O.js → checkouts-list-params-state-C2_GlMKR.js} +1 -1
  173. package/dist/esm/{checkouts-table-DoHp51it.js → checkouts-table-CItEo0DU.js} +2 -2
  174. package/dist/esm/{config-state-Wdyw1F-s.js → config-state-Blo0ywwc.js} +1 -1
  175. package/dist/esm/custom-popper_2.entry.js +1 -1
  176. package/dist/esm/{dispute.service-Ct6DFjKt.js → dispute.service-CyLtJREK.js} +1 -1
  177. package/dist/esm/form-alert_5.entry.js +5 -5
  178. package/dist/esm/form-control-checkbox.entry.js +5 -5
  179. package/dist/esm/form-control-date.entry.js +2 -2
  180. package/dist/esm/{form-control-error-text-Bn_rq8AC.js → form-control-error-text-IXJJ4JpV.js} +1 -1
  181. package/dist/esm/form-control-file-v2_2.entry.js +2 -2
  182. package/dist/esm/{form-control-help-text-CuFo8IR5.js → form-control-help-text-CuhIsM3v.js} +1 -1
  183. package/dist/esm/form-control-help-text.entry.js +1 -1
  184. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  185. package/dist/esm/form-control-monetary.entry.js +3 -3
  186. package/dist/esm/form-control-number-masked_2.entry.js +3 -3
  187. package/dist/esm/form-control-number.entry.js +3 -3
  188. package/dist/esm/form-control-radio.entry.js +1 -1
  189. package/dist/esm/form-control-select_2.entry.js +2 -2
  190. package/dist/esm/{get-payment-details-BGQmxhRw.js → get-payment-details-BuT0QNOo.js} +1 -1
  191. package/dist/esm/{get-subaccounts-CYgVR2mk.js → get-subaccounts-VjY6-x_9.js} +2 -2
  192. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  193. package/dist/esm/{header-1-DWse7nuo.js → header-1-zXsamUS3.js} +1 -1
  194. package/dist/esm/{header-3-CSgiRXQA.js → header-3-DVtaUAlf.js} +1 -1
  195. package/dist/esm/hidden-input_2.entry.js +4 -4
  196. package/dist/esm/{index-DSUeaNWH.js → index-ZfXl6Xrm.js} +1 -1
  197. package/dist/esm/{index-CHdklybh.js → index-qipqIMyC.js} +13 -2
  198. package/dist/esm/{index.esm-IWS0494Y.js → index.esm-cYgKOXtz.js} +17 -18
  199. package/dist/esm/{insurance-state-DD0YD6c0.js → insurance-state-Dh9f36Qh.js} +2 -2
  200. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +9 -9
  201. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +16 -16
  202. package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
  203. package/dist/esm/justifi-apple-pay.entry.js +15 -11
  204. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +17 -17
  205. package/dist/esm/justifi-business-details.entry.js +8 -8
  206. package/dist/esm/justifi-business-form.entry.js +15 -15
  207. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  208. package/dist/esm/justifi-checkout-summary_7.entry.js +17 -25
  209. package/dist/esm/justifi-checkout.entry.js +10 -10
  210. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  211. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  212. package/dist/esm/justifi-config-provider.entry.js +3 -3
  213. package/dist/esm/justifi-details.entry.js +3 -3
  214. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  215. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  216. package/dist/esm/justifi-dispute-notification_3.entry.js +10 -10
  217. package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
  218. package/dist/esm/justifi-order-terminals.entry.js +10 -10
  219. package/dist/esm/justifi-owner-form_3.entry.js +12 -12
  220. package/dist/esm/justifi-payment-details.entry.js +9 -9
  221. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  222. package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
  223. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
  224. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  225. package/dist/esm/justifi-payments-list.entry.js +11 -11
  226. package/dist/esm/justifi-payout-details.entry.js +8 -8
  227. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
  228. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  229. package/dist/esm/justifi-payouts-list.entry.js +12 -12
  230. package/dist/esm/justifi-refund-payment.entry.js +12 -12
  231. package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
  232. package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -10
  233. package/dist/esm/justifi-skeleton.entry.js +3 -3
  234. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  235. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  236. package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
  237. package/dist/esm/justifi-terminals-list.entry.js +11 -11
  238. package/dist/esm/loader.js +3 -3
  239. package/dist/esm/{package-DgKuxw6L.js → package-BBO3I4s6.js} +1 -1
  240. package/dist/esm/pagination-menu.entry.js +4 -4
  241. package/dist/esm/payment-details-core.entry.js +6 -6
  242. package/dist/esm/payment-method-option.entry.js +2 -2
  243. package/dist/esm/{payment.service-D3ze0Zdq.js → payment.service-QJEmd6Nl.js} +1 -1
  244. package/dist/esm/payments-list-core.entry.js +9 -9
  245. package/dist/esm/{payments-list-params-state-DmevqV6O.js → payments-list-params-state-C2_GlMKR.js} +1 -1
  246. package/dist/esm/{payments-status-DTmQyPO9.js → payments-status-DDafc8Yr.js} +2 -2
  247. package/dist/esm/{payments-table-CavY9USC.js → payments-table-De3Jb6rY.js} +2 -2
  248. package/dist/esm/payout-details-core.entry.js +7 -7
  249. package/dist/esm/{payout.service-WXSktQvI.js → payout.service-XxyEr0rj.js} +1 -1
  250. package/dist/esm/payouts-list-core.entry.js +9 -9
  251. package/dist/esm/{payouts-list-params-state-DmevqV6O.js → payouts-list-params-state-C2_GlMKR.js} +1 -1
  252. package/dist/esm/{payouts-status-DTXrGUWw.js → payouts-status-u1eSRz3Q.js} +2 -2
  253. package/dist/esm/{payouts-table-3_J-SXvD.js → payouts-table-BO-MCzXj.js} +2 -2
  254. package/dist/esm/{schema-validations-B9dmY7ME.js → schema-validations-DcR1ujuX.js} +1 -1
  255. package/dist/esm/{skeleton-rMJsZa0a.js → skeleton-DtpkgjZ6.js} +1 -1
  256. package/dist/esm/{spinner-8n0qh4tK.js → spinner-CIXUVK4F.js} +1 -1
  257. package/dist/esm/{styled-host-DQq-l92c.js → styled-host-CbizlfAU.js} +1 -1
  258. package/dist/esm/{table-BUJMzXYe.js → table-DcRHK_sm.js} +2 -2
  259. package/dist/esm/table-filters-menu.entry.js +2 -2
  260. package/dist/esm/terminal-orders-list-core.entry.js +8 -8
  261. package/dist/esm/{terminal-orders-list-params-state-DmevqV6O.js → terminal-orders-list-params-state-C2_GlMKR.js} +1 -1
  262. package/dist/esm/{terminal-orders-table-gBU8rU8X.js → terminal-orders-table-9nsnrAq8.js} +3 -3
  263. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  264. package/dist/esm/{terminal.service-DihXdEs3.js → terminal.service-D2oETGnk.js} +1 -1
  265. package/dist/esm/terminals-list-core.entry.js +8 -8
  266. package/dist/esm/terminals-list-params-state-C2_GlMKR.js +16 -0
  267. package/dist/esm/{terminals-table-64XluocE.js → terminals-table-C6NO2m-t.js} +2 -2
  268. package/dist/esm/{utils-BvJW0VpC.js → utils-_ckvHjSW.js} +1 -1
  269. package/dist/esm/webcomponents.js +4 -4
  270. package/dist/module/additional-questions.js +2 -2
  271. package/dist/module/bank-account-billing-form-simple.js +1 -1
  272. package/dist/module/bank-account-document-inputs.js +1 -1
  273. package/dist/module/bank-account-form-inputs2.js +1 -1
  274. package/dist/module/bank-account-form.js +2 -2
  275. package/dist/module/business-additional-questions-form-step.js +1 -1
  276. package/dist/module/business-bank-account-form-step.js +1 -1
  277. package/dist/module/business-core-info-form-step.js +1 -1
  278. package/dist/module/business-core-info.js +1 -1
  279. package/dist/module/business-owners-form-step.js +1 -1
  280. package/dist/module/business-representative-form-inputs.js +1 -1
  281. package/dist/module/business-representative-form-step.js +1 -1
  282. package/dist/module/business-representative.js +2 -2
  283. package/dist/module/business-terms-conditions-form-step.js +1 -1
  284. package/dist/module/card-billing-form-simple.js +1 -1
  285. package/dist/module/card-form.js +2 -2
  286. package/dist/module/checkouts-list-core2.js +1 -1
  287. package/dist/module/details.js +1 -1
  288. package/dist/module/form-control-checkbox2.js +2 -2
  289. package/dist/module/form-control-monetary-provisioning2.js +2 -2
  290. package/dist/module/form.js +17 -18
  291. package/dist/module/identity-address-form.js +1 -1
  292. package/dist/module/justifi-apple-pay.js +8 -4
  293. package/dist/module/justifi-checkout.js +2 -2
  294. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  295. package/dist/module/justifi-checkouts-list.js +1 -1
  296. package/dist/module/justifi-payment-provisioning.js +1 -1
  297. package/dist/module/justifi-radio-list-item2.js +1 -1
  298. package/dist/module/justifi-saved-payment-method.js +1 -1
  299. package/dist/module/legal-address-form-step.js +1 -1
  300. package/dist/module/legal-address-form.js +2 -2
  301. package/dist/module/modular-checkout.js +5 -13
  302. package/dist/module/owner-form-core2.js +1 -1
  303. package/dist/module/owner-form-inputs2.js +2 -2
  304. package/dist/module/owner-form.js +1 -1
  305. package/dist/module/package.js +1 -1
  306. package/dist/module/pagination-menu2.js +3 -3
  307. package/dist/module/payment-provisioning-core.js +1 -1
  308. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  309. package/dist/module/payment-provisioning-form-steps.js +1 -1
  310. package/dist/module/save-new-payment-method.js +1 -1
  311. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  312. package/dist/types/components.d.ts +8 -10
  313. package/dist/types/stencil-public-runtime.d.ts +4 -6
  314. package/dist/webcomponents/{p-e01fe757.entry.js → p-0801324e.entry.js} +1 -1
  315. package/dist/webcomponents/{p-9c110f7a.entry.js → p-10278c48.entry.js} +1 -1
  316. package/dist/webcomponents/{p-671c059b.entry.js → p-108209c5.entry.js} +1 -1
  317. package/dist/webcomponents/p-176aa079.entry.js +1 -0
  318. package/dist/webcomponents/p-18353682.entry.js +1 -0
  319. package/dist/webcomponents/p-19ccbeee.entry.js +1 -0
  320. package/dist/webcomponents/p-1b3b6956.entry.js +1 -0
  321. package/dist/webcomponents/{p-4c7622ed.entry.js → p-1b7926f6.entry.js} +1 -1
  322. package/dist/webcomponents/{p-b1a310d3.entry.js → p-1bc8da98.entry.js} +1 -1
  323. package/dist/webcomponents/p-1c433962.entry.js +1 -0
  324. package/dist/webcomponents/{p-fc7b56c7.entry.js → p-1df96001.entry.js} +1 -1
  325. package/dist/webcomponents/p-1e080811.entry.js +1 -0
  326. package/dist/webcomponents/p-1e87c8ed.entry.js +1 -0
  327. package/dist/webcomponents/{p-a84ca6ce.entry.js → p-1efc0d88.entry.js} +1 -1
  328. package/dist/webcomponents/p-1f971a0f.entry.js +1 -0
  329. package/dist/webcomponents/{p-fa53a04f.entry.js → p-2246aa69.entry.js} +1 -1
  330. package/dist/webcomponents/{p-0c25d57b.entry.js → p-246ef4ff.entry.js} +1 -1
  331. package/dist/webcomponents/{p-1d917338.entry.js → p-2687e615.entry.js} +1 -1
  332. package/dist/webcomponents/{p-0e85331b.entry.js → p-27fc3ef0.entry.js} +4 -4
  333. package/dist/webcomponents/{p-1a5f53f4.entry.js → p-30147031.entry.js} +1 -1
  334. package/dist/webcomponents/{p-c7291c13.entry.js → p-3546a5aa.entry.js} +1 -1
  335. package/dist/webcomponents/{p-1835e531.entry.js → p-3621a429.entry.js} +1 -1
  336. package/dist/webcomponents/{p-d817d7e4.entry.js → p-3d37045d.entry.js} +1 -1
  337. package/dist/webcomponents/p-406ba650.entry.js +1 -0
  338. package/dist/webcomponents/{p-c85cc2ca.entry.js → p-44d1341c.entry.js} +1 -1
  339. package/dist/webcomponents/p-4d5c71c4.entry.js +1 -0
  340. package/dist/webcomponents/{p-80feb885.entry.js → p-4ea83bfd.entry.js} +1 -1
  341. package/dist/webcomponents/{p-8b42eee7.entry.js → p-558f7967.entry.js} +1 -1
  342. package/dist/webcomponents/{p-7576e449.entry.js → p-5c477f08.entry.js} +1 -1
  343. package/dist/webcomponents/{p-8d507cf3.entry.js → p-613cf570.entry.js} +1 -1
  344. package/dist/webcomponents/p-68329f16.entry.js +1 -0
  345. package/dist/webcomponents/p-6fe79f16.entry.js +1 -0
  346. package/dist/webcomponents/p-7131211a.entry.js +1 -0
  347. package/dist/webcomponents/{p-318a95e7.entry.js → p-7aeb20d2.entry.js} +1 -1
  348. package/dist/webcomponents/{p-528300cf.entry.js → p-7c5cd118.entry.js} +1 -1
  349. package/dist/webcomponents/{p-06413c6f.entry.js → p-80b1c65b.entry.js} +1 -1
  350. package/dist/webcomponents/{p-4de4598e.entry.js → p-84043580.entry.js} +1 -1
  351. package/dist/webcomponents/p-8975bf93.entry.js +1 -0
  352. package/dist/webcomponents/{p-5f4b95f4.entry.js → p-906fdf0c.entry.js} +1 -1
  353. package/dist/webcomponents/{p-1a41c6ee.entry.js → p-90e43440.entry.js} +1 -1
  354. package/dist/webcomponents/{p-cf78e63a.entry.js → p-914e168d.entry.js} +1 -1
  355. package/dist/webcomponents/p-91c1e2ac.entry.js +1 -0
  356. package/dist/webcomponents/{p-664c9b1b.entry.js → p-95348ff6.entry.js} +1 -1
  357. package/dist/webcomponents/p-9f04cac4.entry.js +1 -0
  358. package/dist/webcomponents/p-B4idKqyn.js +1 -0
  359. package/dist/webcomponents/p-BBO3I4s6.js +1 -0
  360. package/dist/webcomponents/{p-mxgDrK6T.js → p-BIPdn2VU.js} +1 -1
  361. package/dist/webcomponents/{p-Dph3Ao9s.js → p-BUa0YOaw.js} +1 -1
  362. package/dist/webcomponents/p-BY2p6Sxk.js +1 -0
  363. package/dist/webcomponents/{p-UmoEDufy.js → p-BZ7C9duj.js} +1 -1
  364. package/dist/webcomponents/{p-c3Fl3YIP.js → p-BdLLGV9t.js} +1 -1
  365. package/dist/webcomponents/p-BguBT6Hn.js +1 -0
  366. package/dist/webcomponents/{p-BuWHmUFx.js → p-Bp_QFeog.js} +1 -1
  367. package/dist/webcomponents/p-Bvp7uul3.js +1 -0
  368. package/dist/webcomponents/{p-BGRyC6Jk.js → p-C1xGBPma.js} +1 -1
  369. package/dist/webcomponents/p-C3n7-tlg.js +1 -0
  370. package/dist/webcomponents/{p-CXEvc-gI.js → p-CLQx9p9q.js} +1 -1
  371. package/dist/webcomponents/{p-CZjKnrRR.js → p-CPVN4dXS.js} +1 -1
  372. package/dist/webcomponents/p-CQeex56P.js +1 -0
  373. package/dist/webcomponents/{p-DiJD6Iqx.js → p-CR9D6mKt.js} +1 -1
  374. package/dist/webcomponents/p-CU4XQ3fO.js +1 -0
  375. package/dist/webcomponents/{p-PSJOKMWp.js → p-CYBR4K2p.js} +1 -1
  376. package/dist/webcomponents/{p-hzzlBrP2.js → p-C_3N7nqh.js} +1 -1
  377. package/dist/webcomponents/{p-BY5BgAd3.js → p-CaxjN6Uo.js} +1 -1
  378. package/dist/webcomponents/{p-CIN-y_rT.js → p-CpKvg1ok.js} +1 -1
  379. package/dist/webcomponents/{p-BVHUyJdS.js → p-CrQgyTRz.js} +1 -1
  380. package/dist/webcomponents/{p-BSa0NCli.js → p-CxzFvTgf.js} +1 -1
  381. package/dist/webcomponents/{p-DFNk_DP8.js → p-CzPUMw00.js} +1 -1
  382. package/dist/webcomponents/{p-D8uar3Ri.js → p-D--yCspA.js} +1 -1
  383. package/dist/webcomponents/{p-DbpL6AJS.js → p-D-JYHdJ7.js} +1 -1
  384. package/dist/webcomponents/{p-BB-9jeDZ.js → p-D6XirF21.js} +1 -1
  385. package/dist/webcomponents/{p-BDGiGASo.js → p-DCMrHeJI.js} +1 -1
  386. package/dist/webcomponents/{p-C9iide2W.js → p-DSP8qjHL.js} +1 -1
  387. package/dist/webcomponents/p-DbX0g1WF.js +1 -0
  388. package/dist/webcomponents/{p-f0Mcy7rH.js → p-De8UloOS.js} +1 -1
  389. package/dist/webcomponents/{p-DwBh6VCY.js → p-DsAwPf2y.js} +1 -1
  390. package/dist/webcomponents/p-DvZcI6pC.js +1 -0
  391. package/dist/webcomponents/p-DyDHaG6n.js +1 -0
  392. package/dist/webcomponents/{p-DWMITBje.js → p-DyOgQlh2.js} +1 -1
  393. package/dist/webcomponents/p-IG_KR8zP.js +1 -0
  394. package/dist/webcomponents/{p-cSt1EbTB.js → p-O-hoT2Oo.js} +1 -1
  395. package/dist/webcomponents/{p-tYuXMkCd.js → p-PgEzcvI6.js} +1 -1
  396. package/dist/webcomponents/p-Xv8DuU3Y.js +1 -0
  397. package/dist/webcomponents/{p-459053e8.entry.js → p-a0a0e200.entry.js} +1 -1
  398. package/dist/webcomponents/p-a57c1400.entry.js +1 -0
  399. package/dist/webcomponents/{p-2ca59580.entry.js → p-a71a5e64.entry.js} +1 -1
  400. package/dist/webcomponents/{p-3bb7b07f.entry.js → p-a90b8b93.entry.js} +1 -1
  401. package/dist/webcomponents/p-acb0f3ae.entry.js +1 -0
  402. package/dist/webcomponents/{p-d1fd3163.entry.js → p-b0a36936.entry.js} +1 -1
  403. package/dist/webcomponents/p-ba5b1c54.entry.js +1 -0
  404. package/dist/webcomponents/{p-4d60eadc.entry.js → p-c16c0cbc.entry.js} +1 -1
  405. package/dist/webcomponents/p-c9fef3e4.entry.js +1 -0
  406. package/dist/webcomponents/p-df7f36aa.entry.js +1 -0
  407. package/dist/webcomponents/p-e035a92e.entry.js +1 -0
  408. package/dist/webcomponents/{p-ae5bda0f.entry.js → p-e037cdd1.entry.js} +1 -1
  409. package/dist/webcomponents/{p-27f20ccf.entry.js → p-e2a38ad0.entry.js} +1 -1
  410. package/dist/webcomponents/p-e628a0c8.entry.js +1 -0
  411. package/dist/webcomponents/{p-dccdcac8.entry.js → p-e6516014.entry.js} +1 -1
  412. package/dist/webcomponents/{p-3013484d.entry.js → p-e6e96be2.entry.js} +1 -1
  413. package/dist/webcomponents/{p-357c355e.entry.js → p-e79338f9.entry.js} +1 -1
  414. package/dist/webcomponents/{p-92e9f862.entry.js → p-e97dee15.entry.js} +1 -1
  415. package/dist/webcomponents/p-eafd179b.entry.js +1 -0
  416. package/dist/webcomponents/{p-25344f42.entry.js → p-f5c3f489.entry.js} +1 -1
  417. package/dist/webcomponents/{p-6b355861.entry.js → p-f739a98d.entry.js} +1 -1
  418. package/dist/webcomponents/p-f8c22c77.entry.js +1 -0
  419. package/dist/webcomponents/p-fUtq2xDs.js +1 -0
  420. package/dist/webcomponents/{p-acff2899.entry.js → p-fa14b671.entry.js} +1 -1
  421. package/dist/webcomponents/{p-152436e2.entry.js → p-ffe01f1b.entry.js} +1 -1
  422. package/dist/webcomponents/{p-DrXVtFfH.js → p-oGKW57R8.js} +1 -1
  423. package/dist/webcomponents/p-qipqIMyC.js +2 -0
  424. package/dist/webcomponents/{p-CkX-nM5d.js → p-xY5RkFuA.js} +1 -1
  425. package/dist/webcomponents/webcomponents.esm.js +1 -1
  426. package/package.json +13 -13
  427. package/LICENSE +0 -21
  428. package/dist/cjs/terminals-list-params-state-CKeoLpqm.js +0 -22
  429. package/dist/esm/terminals-list-params-state-DmevqV6O.js +0 -16
  430. package/dist/webcomponents/p-15e47d22.entry.js +0 -1
  431. package/dist/webcomponents/p-1a198ab4.entry.js +0 -1
  432. package/dist/webcomponents/p-35f834e3.entry.js +0 -1
  433. package/dist/webcomponents/p-38Vv0Nju.js +0 -1
  434. package/dist/webcomponents/p-3b01c9c4.entry.js +0 -1
  435. package/dist/webcomponents/p-48c4f90a.entry.js +0 -1
  436. package/dist/webcomponents/p-5170419e.entry.js +0 -1
  437. package/dist/webcomponents/p-61980e9a.entry.js +0 -1
  438. package/dist/webcomponents/p-67c9b5a1.entry.js +0 -1
  439. package/dist/webcomponents/p-78c17caf.entry.js +0 -1
  440. package/dist/webcomponents/p-85a1f152.entry.js +0 -1
  441. package/dist/webcomponents/p-85d82d77.entry.js +0 -1
  442. package/dist/webcomponents/p-870cee9b.entry.js +0 -1
  443. package/dist/webcomponents/p-8b414739.entry.js +0 -1
  444. package/dist/webcomponents/p-9fec7ff1.entry.js +0 -1
  445. package/dist/webcomponents/p-BC2AKcRD.js +0 -1
  446. package/dist/webcomponents/p-BffoVWib.js +0 -1
  447. package/dist/webcomponents/p-CHdklybh.js +0 -2
  448. package/dist/webcomponents/p-CVm_PxHa.js +0 -1
  449. package/dist/webcomponents/p-CZ27xhGU.js +0 -1
  450. package/dist/webcomponents/p-DFEjrRhP.js +0 -1
  451. package/dist/webcomponents/p-DcDYb1RC.js +0 -1
  452. package/dist/webcomponents/p-DgKuxw6L.js +0 -1
  453. package/dist/webcomponents/p-DhUrfS4M.js +0 -1
  454. package/dist/webcomponents/p-Dk0xo1G9.js +0 -1
  455. package/dist/webcomponents/p-DrRpEAef.js +0 -1
  456. package/dist/webcomponents/p-DsL9brW-.js +0 -1
  457. package/dist/webcomponents/p-WJLXezN2.js +0 -1
  458. package/dist/webcomponents/p-a1665817.entry.js +0 -1
  459. package/dist/webcomponents/p-ab041aeb.entry.js +0 -1
  460. package/dist/webcomponents/p-ab0e20cd.entry.js +0 -1
  461. package/dist/webcomponents/p-b40aa9da.entry.js +0 -1
  462. package/dist/webcomponents/p-bc5698fe.entry.js +0 -1
  463. package/dist/webcomponents/p-c53099b1.entry.js +0 -1
  464. package/dist/webcomponents/p-c96feb00.entry.js +0 -1
  465. package/dist/webcomponents/p-ed401083.entry.js +0 -1
  466. package/dist/webcomponents/p-f66c183e.entry.js +0 -1
  467. package/dist/webcomponents/p-f912f0bf.entry.js +0 -1
  468. package/dist/webcomponents/p-fa1da976.entry.js +0 -1
  469. package/dist/webcomponents/p-oIQjnSZa.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-CHdklybh.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as h,a as o,b as c,c as n,d as p,e as d,f,g as b,h as u,i as m,j as y,k as g,l as j}from"./p-UmoEDufy.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-DbpL6AJS.js";import{o as v,g as S}from"./p-DrRpEAef.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-CkX-nM5d.js";import"./p-DhUrfS4M.js";import"./p-D8uar3Ri.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new h(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),v("set",(()=>{this.pagingParams={}})),v("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=S();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"503793db2fd72d3854bfa1eba2051bc822000a1a"},e(o,{key:"1db195f7f1206bef7236ccd814c464c61b12f3d3"},e(c,{key:"a61137a34fddf3f854102ec7a2964f127d7555f9"},e(n,{key:"3d3c330e5758ccb4aa14bb7b5ae993d8d2c1718e"},this.payoutsTable.columnData.map((t=>t)))),e(p,{key:"a483803ea8dd9db844f36f9f8c7a89e81d7322b4"},e(d,{key:"10bee5e971e10b0313b9b411c292f8f65bf1cf82",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"c8ec9f17a98baa81b4b1830eb8d0bfad45cc8ee1",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"94cd786053173ce22f797b0da263488cab9b5139",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"533bb1571ae70a03f60d13d5742296f425512919"},e(y,{key:"15924c92e5c9f2202066ebfa02aebc2c52fccee3"},e(g,{key:"48bd284c90d4ac044b5fd5f323c90fab5e9fdb5d",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"cfc4bc6b077267ced59bf8b2519ee0354e676560",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{w as payouts_list_core}
1
+ import{r as t,c as s,h as e}from"./p-qipqIMyC.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as o,a as h,b as c,c as p,d as n,e as d,f,g as b,h as u,i as m,j as y,k as g,l as j}from"./p-BZ7C9duj.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-D-JYHdJ7.js";import{o as v,g as w}from"./p-IG_KR8zP.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-xY5RkFuA.js";import"./p-fUtq2xDs.js";import"./p-D--yCspA.js";const _=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new o(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),v("set",(()=>{this.pagingParams={}})),v("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=w();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"503793db2fd72d3854bfa1eba2051bc822000a1a"},e(h,{key:"1db195f7f1206bef7236ccd814c464c61b12f3d3"},e(c,{key:"a61137a34fddf3f854102ec7a2964f127d7555f9"},e(p,{key:"3d3c330e5758ccb4aa14bb7b5ae993d8d2c1718e"},this.payoutsTable.columnData.map((t=>t)))),e(n,{key:"a483803ea8dd9db844f36f9f8c7a89e81d7322b4"},e(d,{key:"10bee5e971e10b0313b9b411c292f8f65bf1cf82",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"c8ec9f17a98baa81b4b1830eb8d0bfad45cc8ee1",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"94cd786053173ce22f797b0da263488cab9b5139",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"533bb1571ae70a03f60d13d5742296f425512919"},e(y,{key:"15924c92e5c9f2202066ebfa02aebc2c52fccee3"},e(g,{key:"48bd284c90d4ac044b5fd5f323c90fab5e9fdb5d",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"cfc4bc6b077267ced59bf8b2519ee0354e676560",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{_ as payouts_list_core}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-CHdklybh.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-38Vv0Nju.js";import{f as l,g as c,t as r,h as f,j as b,k as p}from"./p-RvUQ__Pq.js";import{S as o}from"./p-CXEvc-gI.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-BHf9IqGw.js";import"./p-BFTU3MAI.js";import"./p-DwBh6VCY.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(o,{key:"ef06ca5d0df145fd2c7f82fb164a4098b1654e7c"},a("table-filters-menu",{key:"32739ded26b3a11092e5237d363b5b280c859f0c",params:e,clearParams:i,part:l},a("div",{key:"2e123d80c45a92944811b9124e13f6cfc2e11cc0",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"d9e5facfe21e0896a4f0542a12592f11c54c0bc8",class:"p-2"},a("form-control-text",{key:"084cec1084b8be08a5520891479aa4b4ab168ab7",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:c})),a("div",{key:"c86027af0c49931a34e31e185cfc3c0d1093caf9",class:"p-2"},a("form-control-text",{key:"694b5ddd5f90af1d73320cb6e29ce2e3aafce0b8",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:r})),a("div",{key:"4d2e5e1a0e76a58be68255e08a2a4f09dbbbc481",class:"p-2"},a("form-control-select",{key:"d4fa79604b6f9a390a63601001bc2ba8f8af425a",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"54cc9fb98d5c0f6d96abb592d5e22c037634089c",class:"p-2"},a("form-control-date",{key:"95001198266f09607e34d0c1fa5c1d0693b67b0a",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"3510ccb63020969b2777c65ed82cfab9027dccd8",class:"p-2"},a("form-control-date",{key:"428a3195efb976842c186aa0b4ec76ebfb1b7836",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_payments_list_filters}
1
+ import{r as e,h as a}from"./p-qipqIMyC.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as d}from"./p-DbX0g1WF.js";import{f as l,g as c,t as r,h as f,j as p,k as b}from"./p-RvUQ__Pq.js";import{S as o}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-BHf9IqGw.js";import"./p-BFTU3MAI.js";import"./p-DsAwPf2y.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(i[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(o,{key:"ef06ca5d0df145fd2c7f82fb164a4098b1654e7c"},a("table-filters-menu",{key:"32739ded26b3a11092e5237d363b5b280c859f0c",params:e,clearParams:d,part:l},a("div",{key:"2e123d80c45a92944811b9124e13f6cfc2e11cc0",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"d9e5facfe21e0896a4f0542a12592f11c54c0bc8",class:"p-2"},a("form-control-text",{key:"084cec1084b8be08a5520891479aa4b4ab168ab7",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:c})),a("div",{key:"c86027af0c49931a34e31e185cfc3c0d1093caf9",class:"p-2"},a("form-control-text",{key:"694b5ddd5f90af1d73320cb6e29ce2e3aafce0b8",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:r})),a("div",{key:"4d2e5e1a0e76a58be68255e08a2a4f09dbbbc481",class:"p-2"},a("form-control-select",{key:"d4fa79604b6f9a390a63601001bc2ba8f8af425a",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"54cc9fb98d5c0f6d96abb592d5e22c037634089c",class:"p-2"},a("form-control-date",{key:"95001198266f09607e34d0c1fa5c1d0693b67b0a",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"3510ccb63020969b2777c65ed82cfab9027dccd8",class:"p-2"},a("form-control-date",{key:"428a3195efb976842c186aa0b4ec76ebfb1b7836",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{u as justifi_payments_list_filters}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s}from"./p-CHdklybh.js";import{f as i}from"./p-BHf9IqGw.js";import{z as a,ai as r}from"./p-RvUQ__Pq.js";import{B as d}from"./p-BB-9jeDZ.js";import{S as c}from"./p-CXEvc-gI.js";import{S as o}from"./p-CVm_PxHa.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-DWMITBje.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-cSt1EbTB.js";import"./p-HXpYMWUU.js";import"./p-Dph3Ao9s.js";import"./p-BuWHmUFx.js";import"./p-DwBh6VCY.js";import"./p-c4Mh3ZZ_.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DgKuxw6L.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"0f1028825a7a96a06e7219518ffed54bc0db1b2b"},this.isLoading&&s("div",{key:"f4b704182a5a7085827854634d38c56423cc2e1b",style:{marginBottom:"8px"}},s(o,{key:"b2062d8b683ab110c26fc30f1600c4500f668d87",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"b5d2afe1fdd2e5ee0ec60048a48778bcfa6c78d3",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"1e87c8936b3f2e26e680786927c5a4609aca0b83",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"49090493e3921353b7a830397795496bb234d112",part:a},s("h1",{key:"fd7b56a7cfeaa6820bf2cc121575314d075b5a83",class:"h4",part:r},"This payment is disputed"),s("p",{key:"72ba296695928baca8f7c5c3b1f858c596efedb2"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"cce733ff1bbca7a9530a442035cbae2995e018e7",class:"h5"},"Dispute details"),s("div",{key:"28b7f081e345112d99c52d05f205734995617253",class:"d-table gap-2"},s("div",{key:"d9476d8d0adfa3c6eccad229e94cd3824a720c7d",class:"d-table-row gap-2"},s("span",{key:"4d9e0714eee778c326ee1d70a32f79d90d3d4b09",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"b227edcf9b4b65b790d8aa98021d2662a12855bc",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"b1b1cdaac5482f565a6f26af71c0b526b8c19f4e",class:"d-table-row gap-2"},s("span",{key:"0a479a9de96cce6e42bec90a17affe2c93ced44f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"5d5020dda571f4465e2a358880ad5f20bc6171ea",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"a5f42c3fcbb5d14f8479d0a576d31a50f8fc6441",class:"d-table-row gap-2"},s("span",{key:"280fca5a101eb0e823eb9ccc13c746ac7ed62069",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"4dfc0b9a295ffc804b708d3590358256009e5376",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"654e7baccd08628bc90d050bad108011b49f9972",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"d0817cdb23bf33086c6ce5122f4ed5388027d96c",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"5446bef44a0ca747692d59fd5490409d00a9e285",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"17fbc5902badc4230c5485b326f480180c844768"},s("h1",{key:"fefa0234306588d9e7f56733872bf8c9793f51dd",class:"h4"},"This payment is disputed and under review"),s("p",{key:"eaad72aa8d9f65ca296379a2800180878ec8a7e5"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"ec1b0d728a7518f913c2a69976fa1f5fc8f76c74"},s("h1",{key:"9d42fad15fbeee507e2f364c3a35f143ff7599e2",class:"h4"},"This payment was disputed"),s("p",{key:"3b728a5544fe17a6c58c12f7e8eef290022945b6"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"6d1813508a657265546fbef00bd1e8f46ffaf740"},s("h1",{key:"de981fc2e06e860f47146647975965a903a39b55",class:"h4"},"This payment was disputed"),s("p",{key:"4e57ab86518bd678a3a5402b712d40d573b3a970"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"dbdfd59a21c7e8ea4dfdaecb91f885f82540a27c"},s("justifi-dispute-response-core",{key:"3cff38e5995f0033c45c54fa195ffeebc27e189e","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"20d075178a9d88cd73be32e52f8df6d3d360f8d7",class:"row gy-3"},s("div",{key:"6c1bc735f1a15709c596b5bea7cc3ce50e9a73f5",class:"col-12"},s("h1",{key:"27a0804924937ee7a8d01265bd0da2d9dd31d301",class:"h4",part:r},"Counter dispute")),s("div",{key:"b60822e91425c5c4af003169f47fd725daf9fb0f",class:"col-12"},this.currentStepComponent),s("div",{key:"d1be3f6be53de37836275067070cf4b5a2eb3e4a",class:"col-12"},s("div",{key:"48c8725d8de8b658e59ccfa851a6af6638e19ca5",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
1
+ import{r as e,c as t,h as s}from"./p-qipqIMyC.js";import{f as i}from"./p-BHf9IqGw.js";import{z as a,ai as r}from"./p-RvUQ__Pq.js";import{B as d}from"./p-D6XirF21.js";import{S as c}from"./p-CLQx9p9q.js";import{S as o}from"./p-Xv8DuU3Y.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-DyOgQlh2.js";import{D as u}from"./p-Bg2SZArf.js";import{c as y,J as b}from"./p-O-hoT2Oo.js";import"./p-HXpYMWUU.js";import"./p-BUa0YOaw.js";import"./p-Bp_QFeog.js";import"./p-DsAwPf2y.js";import"./p-c4Mh3ZZ_.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BBO3I4s6.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(c,{key:"0f1028825a7a96a06e7219518ffed54bc0db1b2b"},this.isLoading&&s("div",{key:"f4b704182a5a7085827854634d38c56423cc2e1b",style:{marginBottom:"8px"}},s(o,{key:"b2062d8b683ab110c26fc30f1600c4500f668d87",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"b5d2afe1fdd2e5ee0ec60048a48778bcfa6c78d3",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"1e87c8936b3f2e26e680786927c5a4609aca0b83",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"49090493e3921353b7a830397795496bb234d112",part:a},s("h1",{key:"fd7b56a7cfeaa6820bf2cc121575314d075b5a83",class:"h4",part:r},"This payment is disputed"),s("p",{key:"72ba296695928baca8f7c5c3b1f858c596efedb2"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"cce733ff1bbca7a9530a442035cbae2995e018e7",class:"h5"},"Dispute details"),s("div",{key:"28b7f081e345112d99c52d05f205734995617253",class:"d-table gap-2"},s("div",{key:"d9476d8d0adfa3c6eccad229e94cd3824a720c7d",class:"d-table-row gap-2"},s("span",{key:"4d9e0714eee778c326ee1d70a32f79d90d3d4b09",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"b227edcf9b4b65b790d8aa98021d2662a12855bc",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"b1b1cdaac5482f565a6f26af71c0b526b8c19f4e",class:"d-table-row gap-2"},s("span",{key:"0a479a9de96cce6e42bec90a17affe2c93ced44f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"5d5020dda571f4465e2a358880ad5f20bc6171ea",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"a5f42c3fcbb5d14f8479d0a576d31a50f8fc6441",class:"d-table-row gap-2"},s("span",{key:"280fca5a101eb0e823eb9ccc13c746ac7ed62069",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"4dfc0b9a295ffc804b708d3590358256009e5376",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"654e7baccd08628bc90d050bad108011b49f9972",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"d0817cdb23bf33086c6ce5122f4ed5388027d96c",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"5446bef44a0ca747692d59fd5490409d00a9e285",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"17fbc5902badc4230c5485b326f480180c844768"},s("h1",{key:"fefa0234306588d9e7f56733872bf8c9793f51dd",class:"h4"},"This payment is disputed and under review"),s("p",{key:"eaad72aa8d9f65ca296379a2800180878ec8a7e5"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"ec1b0d728a7518f913c2a69976fa1f5fc8f76c74"},s("h1",{key:"9d42fad15fbeee507e2f364c3a35f143ff7599e2",class:"h4"},"This payment was disputed"),s("p",{key:"3b728a5544fe17a6c58c12f7e8eef290022945b6"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"6d1813508a657265546fbef00bd1e8f46ffaf740"},s("h1",{key:"de981fc2e06e860f47146647975965a903a39b55",class:"h4"},"This payment was disputed"),s("p",{key:"4e57ab86518bd678a3a5402b712d40d573b3a970"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){y(),this.analytics=new b(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"dbdfd59a21c7e8ea4dfdaecb91f885f82540a27c"},s("justifi-dispute-response-core",{key:"3cff38e5995f0033c45c54fa195ffeebc27e189e","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"20d075178a9d88cd73be32e52f8df6d3d360f8d7",class:"row gy-3"},s("div",{key:"6c1bc735f1a15709c596b5bea7cc3ce50e9a73f5",class:"col-12"},s("h1",{key:"27a0804924937ee7a8d01265bd0da2d9dd31d301",class:"h4",part:r},"Counter dispute")),s("div",{key:"b60822e91425c5c4af003169f47fd725daf9fb0f",class:"col-12"},this.currentStepComponent),s("div",{key:"d1be3f6be53de37836275067070cf4b5a2eb3e4a",class:"col-12"},s("div",{key:"48c8725d8de8b658e59ccfa851a6af6638e19ca5",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}