@justifi/webcomponents 6.14.0 → 6.14.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 (175) hide show
  1. package/dist/cjs/{Analytics-DmEOV4ZP.js → Analytics-DJPMbMbv.js} +2 -2
  2. package/dist/cjs/{Api-BO8Dq_Q9.js → Api-CWefpIil.js} +3 -0
  3. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +5 -4
  4. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  5. package/dist/cjs/{business.service-CPATYPjf.js → business.service-Btc3igIf.js} +1 -1
  6. package/dist/cjs/card-form.cjs.entry.js +2 -2
  7. package/dist/cjs/{check-pkg-version-njtEIZ2o.js → check-pkg-version-DlSI1kl_.js} +1 -1
  8. package/dist/cjs/{checkout.service-DUHQ2mz6.js → checkout.service-aE0MUgi0.js} +1 -1
  9. package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
  10. package/dist/cjs/{event-types-fW6pQOxu.js → event-types-B6Jtb7DE.js} +1 -1
  11. package/dist/cjs/{get-subaccounts-BEqUiA8S.js → get-subaccounts-3wzjJVTw.js} +1 -1
  12. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +7 -7
  14. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  16. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  18. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  19. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
  20. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  21. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  22. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
  23. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  24. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
  25. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -7
  26. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
  27. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
  29. package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
  30. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -6
  31. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
  32. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
  34. package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
  35. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
  36. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +1 -1
  37. package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
  39. package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -6
  40. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  41. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  42. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  43. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +5 -5
  45. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
  46. package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -7
  47. package/dist/cjs/{package-Daxlktpq.js → package-C7751f89.js} +1 -1
  48. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  49. package/dist/cjs/{payment.service-D7Rfb-HB.js → payment.service-DmMFMfcK.js} +1 -1
  50. package/dist/cjs/{payout.service-Dt-LIFvA.js → payout.service-BfNHx5R6.js} +1 -1
  51. package/dist/cjs/{plaid.service-D9rC_F9z.js → plaid.service-CEvUGRzG.js} +1 -1
  52. package/dist/cjs/{styled-host-Ch0-dxF-.js → styled-host-CW1WUnUq.js} +1 -1
  53. package/dist/cjs/{terminal.service-DnmqW9Dl.js → terminal.service-gw27l_WB.js} +1 -1
  54. package/dist/collection/api/Api.js +3 -0
  55. package/dist/docs.json +1 -1
  56. package/dist/esm/{Analytics-BvkNuLsG.js → Analytics--JHkQ3i7.js} +2 -2
  57. package/dist/esm/{Api-CwaiizF1.js → Api-DO3CyWlf.js} +3 -0
  58. package/dist/esm/additional-questions-form-step_15.entry.js +5 -4
  59. package/dist/esm/bank-account-form.entry.js +2 -2
  60. package/dist/esm/{business.service-BJ3lvMNr.js → business.service-DaDBcMxj.js} +1 -1
  61. package/dist/esm/card-form.entry.js +2 -2
  62. package/dist/esm/{check-pkg-version-BKgBR8SA.js → check-pkg-version-DVn7t48L.js} +1 -1
  63. package/dist/esm/{checkout.service-DMbW2pn3.js → checkout.service-CF6UhsmG.js} +1 -1
  64. package/dist/esm/dispute-notification_2.entry.js +5 -5
  65. package/dist/esm/{event-types-D37YHLaN.js → event-types-D2B6cJBU.js} +1 -1
  66. package/dist/esm/{get-subaccounts-RtGqjq7u.js → get-subaccounts-BlEszlFD.js} +1 -1
  67. package/dist/esm/hidden-input_2.entry.js +1 -1
  68. package/dist/esm/justifi-apple-pay_11.entry.js +7 -7
  69. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  70. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  71. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  72. package/dist/esm/justifi-billing-form.entry.js +1 -1
  73. package/dist/esm/justifi-business-details.entry.js +6 -6
  74. package/dist/esm/justifi-business-form.entry.js +6 -6
  75. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  76. package/dist/esm/justifi-card-form.entry.js +5 -5
  77. package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
  78. package/dist/esm/justifi-checkout.entry.js +5 -5
  79. package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
  80. package/dist/esm/justifi-checkouts-list.entry.js +7 -7
  81. package/dist/esm/justifi-dispute-management.entry.js +6 -6
  82. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  83. package/dist/esm/justifi-order-terminals.entry.js +7 -7
  84. package/dist/esm/justifi-payment-details.entry.js +6 -6
  85. package/dist/esm/justifi-payment-provisioning.entry.js +6 -6
  86. package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
  87. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  88. package/dist/esm/justifi-payments-list.entry.js +6 -6
  89. package/dist/esm/justifi-payout-details.entry.js +6 -6
  90. package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
  91. package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
  92. package/dist/esm/justifi-payouts-list.entry.js +7 -7
  93. package/dist/esm/justifi-qr-terminal.entry.js +5 -5
  94. package/dist/esm/justifi-refund-payment.entry.js +6 -6
  95. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  96. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  97. package/dist/esm/justifi-skeleton.entry.js +1 -1
  98. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
  99. package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
  100. package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
  101. package/dist/esm/justifi-terminals-list.entry.js +7 -7
  102. package/dist/esm/{package-e1RQXZH0.js → package-7CozhRqW.js} +1 -1
  103. package/dist/esm/payment-method-option.entry.js +1 -1
  104. package/dist/esm/{payment.service-CPnigqmB.js → payment.service-HjulQqVe.js} +1 -1
  105. package/dist/esm/{payout.service-CYPLRYg5.js → payout.service-DJoSdAyh.js} +1 -1
  106. package/dist/esm/{plaid.service-CvfKh_3f.js → plaid.service-DtWlggP3.js} +1 -1
  107. package/dist/esm/{styled-host-D84RBv1W.js → styled-host-RvPhw8Gu.js} +1 -1
  108. package/dist/esm/{terminal.service-r2jKgzEJ.js → terminal.service-BWH0XNZn.js} +1 -1
  109. package/dist/module/Api.js +3 -0
  110. package/dist/module/package.js +1 -1
  111. package/dist/module/styled-host.js +1 -1
  112. package/dist/webcomponents/{p-18cc2bf5.entry.js → p-02423342.entry.js} +1 -1
  113. package/dist/webcomponents/p-043899e7.entry.js +1 -0
  114. package/dist/webcomponents/{p-DzEdYT8R.js → p-05AWudQe.js} +1 -1
  115. package/dist/webcomponents/{p-375b08af.entry.js → p-0608134b.entry.js} +1 -1
  116. package/dist/webcomponents/{p-6de77339.entry.js → p-064a88df.entry.js} +1 -1
  117. package/dist/webcomponents/{p-f3c40c22.entry.js → p-0c1cc1e9.entry.js} +1 -1
  118. package/dist/webcomponents/p-1a77125d.entry.js +1 -0
  119. package/dist/webcomponents/{p-e1382f38.entry.js → p-1cff91b7.entry.js} +1 -1
  120. package/dist/webcomponents/{p-8df414f7.entry.js → p-265ccfc0.entry.js} +1 -1
  121. package/dist/webcomponents/{p-21322c24.entry.js → p-3b9e8ee7.entry.js} +1 -1
  122. package/dist/webcomponents/{p-19c00496.entry.js → p-44ffdbec.entry.js} +1 -1
  123. package/dist/webcomponents/{p-4791c6d7.entry.js → p-49f279c3.entry.js} +1 -1
  124. package/dist/webcomponents/{p-055640f9.entry.js → p-4f54d1b2.entry.js} +1 -1
  125. package/dist/webcomponents/{p-1d6c0821.entry.js → p-58e8d646.entry.js} +1 -1
  126. package/dist/webcomponents/{p-6bf9e936.entry.js → p-5f4809af.entry.js} +1 -1
  127. package/dist/webcomponents/{p-7a98cece.entry.js → p-6187efab.entry.js} +1 -1
  128. package/dist/webcomponents/{p-b948d3a6.entry.js → p-63ba7b99.entry.js} +1 -1
  129. package/dist/webcomponents/{p-83814e5f.entry.js → p-780f9fbb.entry.js} +1 -1
  130. package/dist/webcomponents/{p-3a5ae10f.entry.js → p-79fa938e.entry.js} +1 -1
  131. package/dist/webcomponents/p-7CozhRqW.js +1 -0
  132. package/dist/webcomponents/p-7b1e0e37.entry.js +1 -0
  133. package/dist/webcomponents/{p-abf111d8.entry.js → p-7c55a751.entry.js} +1 -1
  134. package/dist/webcomponents/{p-3be58396.entry.js → p-84030b4a.entry.js} +1 -1
  135. package/dist/webcomponents/p-8cba3a46.entry.js +1 -0
  136. package/dist/webcomponents/{p-17389fce.entry.js → p-8f457cf7.entry.js} +1 -1
  137. package/dist/webcomponents/p-8fabef40.entry.js +1 -0
  138. package/dist/webcomponents/{p-a1528ee7.entry.js → p-9cc293aa.entry.js} +1 -1
  139. package/dist/webcomponents/p-BId9Ohhv.js +1 -0
  140. package/dist/webcomponents/{p-Bx1A5sQR.js → p-BSPLko2T.js} +1 -1
  141. package/dist/webcomponents/{p-DMGq2Rrg.js → p-BUbPLCU2.js} +1 -1
  142. package/dist/webcomponents/{p-aBD3IP5P.js → p-CIhCDKOZ.js} +1 -1
  143. package/dist/webcomponents/{p-D0g0Cxab.js → p-CQ4GuDeP.js} +1 -1
  144. package/dist/webcomponents/{p-DM45Ihwj.js → p-D8ToCTET.js} +1 -1
  145. package/dist/webcomponents/{p-CkrzNsk5.js → p-DD7TDYNC.js} +1 -1
  146. package/dist/webcomponents/{p-CPEn7kso.js → p-DFvpZcc6.js} +1 -1
  147. package/dist/webcomponents/{p-CDKbfqXv.js → p-IJ7Rw9vH.js} +1 -1
  148. package/dist/webcomponents/{p-DNIKPf_U.js → p-SBHhoQBp.js} +1 -1
  149. package/dist/webcomponents/{p-ef114d91.entry.js → p-a4eaaaec.entry.js} +1 -1
  150. package/dist/webcomponents/{p-62776c8d.entry.js → p-ac580701.entry.js} +1 -1
  151. package/dist/webcomponents/{p-665fe466.entry.js → p-b2a0088d.entry.js} +1 -1
  152. package/dist/webcomponents/p-cf36e096.entry.js +1 -0
  153. package/dist/webcomponents/{p-938e84c3.entry.js → p-d2e843b3.entry.js} +1 -1
  154. package/dist/webcomponents/{p-817fa1de.entry.js → p-d69f2bbe.entry.js} +1 -1
  155. package/dist/webcomponents/{p-218b729b.entry.js → p-d9f6bbda.entry.js} +1 -1
  156. package/dist/webcomponents/{p-762b1b7b.entry.js → p-da21ae43.entry.js} +1 -1
  157. package/dist/webcomponents/{p-62604f23.entry.js → p-dc0cc4aa.entry.js} +1 -1
  158. package/dist/webcomponents/{p-5b768aa4.entry.js → p-e01767e7.entry.js} +4 -4
  159. package/dist/webcomponents/p-e77ebab9.entry.js +1 -0
  160. package/dist/webcomponents/{p-6f0bca42.entry.js → p-e7cfee5a.entry.js} +1 -1
  161. package/dist/webcomponents/{p-c60c4bed.entry.js → p-ec6978cb.entry.js} +1 -1
  162. package/dist/webcomponents/{p-3475c0b7.entry.js → p-f1a57993.entry.js} +1 -1
  163. package/dist/webcomponents/{p-2f6da927.entry.js → p-f7af1bab.entry.js} +1 -1
  164. package/dist/webcomponents/{p-Cc6TzfDZ.js → p-qnckrGFg.js} +1 -1
  165. package/dist/webcomponents/webcomponents.esm.js +1 -1
  166. package/package.json +3 -2
  167. package/dist/webcomponents/p-01b2a5f7.entry.js +0 -1
  168. package/dist/webcomponents/p-30bf760c.entry.js +0 -1
  169. package/dist/webcomponents/p-6c3e9ebd.entry.js +0 -1
  170. package/dist/webcomponents/p-7cc0051d.entry.js +0 -1
  171. package/dist/webcomponents/p-9acbe294.entry.js +0 -1
  172. package/dist/webcomponents/p-B2CETB_i.js +0 -1
  173. package/dist/webcomponents/p-e1RQXZH0.js +0 -1
  174. package/dist/webcomponents/p-e30b2e92.entry.js +0 -1
  175. package/dist/webcomponents/p-ecff1cb5.entry.js +0 -1
@@ -1 +1 @@
1
- import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{j as s,C as i,b as r}from"./p-AyLerOda.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{J as o}from"./p-D0g0Cxab.js";import{c}from"./p-CkrzNsk5.js";import{g as p,a as h}from"./p-CXZRiaUw.js";import{P as d}from"./p-DM45Ihwj.js";import{T as f,a as l,b as u,c as m,d as y,e as b,f as _,g,h as j,i as T,j as k,k as w,l as C}from"./p-BICxxa69.js";import{S as v}from"./p-DzEdYT8R.js";import{T as D}from"./p-CZfYo5-1.js";import{a as R}from"./p-Ds_P-dB8.js";import{a6 as P,a7 as x}from"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-e1RQXZH0.js";import"./p-B2CETB_i.js";import"./p-CqiVXthx.js";const F={created_at:()=>e("th",{part:P,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>e("th",{part:P,scope:"col",title:"The type of each transaction"},"Type"),id:()=>e("th",{part:P,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>e("th",{part:P,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>e("th",{part:P,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>e("th",{part:P,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>e("th",{part:P,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>e("th",{part:P,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>e("th",{part:P,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>e("th",{part:P,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>e("th",{part:P,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},I={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},S={created_at:(t,a)=>e("td",{part:x(a)},e("div",{class:"fw-bold"},R(t.created_at,{showDisplayDate:!0})),e("div",{class:"fw-bold"},R(t.created_at,{showTime:!0}))),type:(t,a)=>e("td",{part:x(a)},I[t.payment_balance_txn_type]),id:(t,a)=>e("td",{part:x(a)},t.id),amount:(t,a)=>e("td",{part:x(a),class:"text-end"},t.formattedPaymentAmount(t.amount)),balance:(t,a)=>e("td",{part:x(a),class:"text-end"},t.formattedPaymentAmount(t.balance)),currency:(t,a)=>e("td",{part:x(a)},t.currency),financial_transaction_id:(t,a)=>e("td",{part:x(a)},t.financial_transaction_id),payment_id:(t,a)=>e("td",{part:x(a)},t.payment_id),payment_balance_txn_type:(t,a)=>e("td",{part:x(a)},t.payment_balance_txn_type),source_id:(t,a)=>e("td",{part:x(a)},t.source_id),source_type:(t,a)=>e("td",{part:x(a)},t.source_type)},E=class{constructor(e){t(this,e),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=e=>{this.pagingParams={before_cursor:e},this.clickEvent.emit({name:D.previous})},this.handleClickNext=e=>{this.pagingParams={after_cursor:e},this.clickEvent.emit({name:D.next})},this.rowClickHandler=e=>{const t=e.target.closest("tr").dataset.rowEntityId;if(!t)return;const a=this.balanceTransactions.find((e=>e.id===t));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,F,S),c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeApi()}handleError(e,t,a){this.isLoading=!1,this.errorEvent.emit({errorCode:e,message:t,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:e,authToken:t,service:a})=>async({params:r,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(e,t,r);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((e=>new s(e))),pagingInfo:Object.assign({},c.page_info)})}catch(e){const t=p(null==e?void 0:e.code);o({error:h(e),code:t,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:e,pagingInfo:t})=>{this.balanceTransactions=e,this.paging=t,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e.message,this.handleError(e,t,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((e=>e.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return e(v,{key:"24e7a4313ab91f179fd27b6596f012487de06815"},e(l,{key:"1f9a7a56a940e41dd865bc6f3a8681ce86d60d58"},e(u,{key:"a26ce09ae4df84698be1ea37cb735e38c0a0402e"},e(m,{key:"07f8655efd483e1d9240e65b17dc13583028f376"},e(y,{key:"0b62a7700715dbaffbedc0538432d075a3158499"},this.transactionsTable.columnData.map((e=>e)))),e(b,{key:"adf75fa50ddfb5257875b2779fc6c157812d4c19"},e(_,{key:"bc77de512b3e5fd1e6c4b8cf908b46027a3bc33f",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),e(g,{key:"413d46e184399cba3993f37efd64cb0d0a10d905",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),e(j,{key:"9deaa794dc848ed7c85cbadc3b4cfe7c9fb1176f",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((t,a)=>e(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},t)))),this.paging&&e(k,{key:"16ca0811bf42dc9419f8b77086e8e7e2cf6d0085"},e(w,{key:"e11be42549832c35078acf47b7c165fe1e50ea98"},e(C,{key:"205d649068b84200b88adc1be9cfe192abfe13be",colSpan:this.transactionsTable.columnData.length},e("pagination-menu",{key:"2a28645220d4f18b7037e461bd93eefc3aed49a0",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{E as justifi_payment_transactions_list}
1
+ import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{j as s,C as i,b as r}from"./p-AyLerOda.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{J as o}from"./p-CQ4GuDeP.js";import{c}from"./p-DD7TDYNC.js";import{g as p,a as h}from"./p-CXZRiaUw.js";import{P as d}from"./p-D8ToCTET.js";import{T as f,a as l,b as u,c as m,d as y,e as b,f as _,g,h as T,i as j,j as w,k as C,l as k}from"./p-BICxxa69.js";import{S as v}from"./p-05AWudQe.js";import{T as D}from"./p-CZfYo5-1.js";import{a as P}from"./p-Ds_P-dB8.js";import{a6 as R,a7 as F}from"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-7CozhRqW.js";import"./p-BId9Ohhv.js";import"./p-CqiVXthx.js";const x={created_at:()=>e("th",{part:R,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>e("th",{part:R,scope:"col",title:"The type of each transaction"},"Type"),id:()=>e("th",{part:R,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>e("th",{part:R,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>e("th",{part:R,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>e("th",{part:R,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>e("th",{part:R,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>e("th",{part:R,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>e("th",{part:R,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>e("th",{part:R,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>e("th",{part:R,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},I={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},S={created_at:(t,a)=>e("td",{part:F(a)},e("div",{class:"fw-bold"},P(t.created_at,{showDisplayDate:!0})),e("div",{class:"fw-bold"},P(t.created_at,{showTime:!0}))),type:(t,a)=>e("td",{part:F(a)},I[t.payment_balance_txn_type]),id:(t,a)=>e("td",{part:F(a)},t.id),amount:(t,a)=>e("td",{part:F(a),class:"text-end"},t.formattedPaymentAmount(t.amount)),balance:(t,a)=>e("td",{part:F(a),class:"text-end"},t.formattedPaymentAmount(t.balance)),currency:(t,a)=>e("td",{part:F(a)},t.currency),financial_transaction_id:(t,a)=>e("td",{part:F(a)},t.financial_transaction_id),payment_id:(t,a)=>e("td",{part:F(a)},t.payment_id),payment_balance_txn_type:(t,a)=>e("td",{part:F(a)},t.payment_balance_txn_type),source_id:(t,a)=>e("td",{part:F(a)},t.source_id),source_type:(t,a)=>e("td",{part:F(a)},t.source_type)},O=class{constructor(e){t(this,e),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=e=>{this.pagingParams={before_cursor:e},this.clickEvent.emit({name:D.previous})},this.handleClickNext=e=>{this.pagingParams={after_cursor:e},this.clickEvent.emit({name:D.next})},this.rowClickHandler=e=>{const t=e.target.closest("tr").dataset.rowEntityId;if(!t)return;const a=this.balanceTransactions.find((e=>e.id===t));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,x,S),c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeApi()}handleError(e,t,a){this.isLoading=!1,this.errorEvent.emit({errorCode:e,message:t,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:e,authToken:t,service:a})=>async({params:r,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(e,t,r);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((e=>new s(e))),pagingInfo:Object.assign({},c.page_info)})}catch(e){const t=p(null==e?void 0:e.code);o({error:h(e),code:t,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:e,pagingInfo:t})=>{this.balanceTransactions=e,this.paging=t,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e.message,this.handleError(e,t,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((e=>e.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return e(v,{key:"24e7a4313ab91f179fd27b6596f012487de06815"},e(l,{key:"1f9a7a56a940e41dd865bc6f3a8681ce86d60d58"},e(u,{key:"a26ce09ae4df84698be1ea37cb735e38c0a0402e"},e(m,{key:"07f8655efd483e1d9240e65b17dc13583028f376"},e(y,{key:"0b62a7700715dbaffbedc0538432d075a3158499"},this.transactionsTable.columnData.map((e=>e)))),e(b,{key:"adf75fa50ddfb5257875b2779fc6c157812d4c19"},e(_,{key:"bc77de512b3e5fd1e6c4b8cf908b46027a3bc33f",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),e(g,{key:"413d46e184399cba3993f37efd64cb0d0a10d905",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),e(T,{key:"9deaa794dc848ed7c85cbadc3b4cfe7c9fb1176f",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((t,a)=>e(j,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},t)))),this.paging&&e(w,{key:"16ca0811bf42dc9419f8b77086e8e7e2cf6d0085"},e(C,{key:"e11be42549832c35078acf47b7c165fe1e50ea98"},e(k,{key:"205d649068b84200b88adc1be9cfe192abfe13be",colSpan:this.transactionsTable.columnData.length},e("pagination-menu",{key:"2a28645220d4f18b7037e461bd93eefc3aed49a0",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{O as justifi_payment_transactions_list}
@@ -0,0 +1 @@
1
+ import{r as i,h as o}from"./p-CV0Pyo1O.js";import{J as s}from"./p-CQ4GuDeP.js";import{c as r}from"./p-DD7TDYNC.js";import{w as t}from"./p-DVJaoI_m.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-7CozhRqW.js";import"./p-BId9Ohhv.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-AyLerOda.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const a=class{constructor(o){i(this,o)}async componentWillLoad(){await t(),r(),this.analytics=new s(this)}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}async getValues(){var i,o;return null!==(o=null===(i=this.bankAccountBillingFormSimpleRef)||void 0===i?void 0:i.getValues())&&void 0!==o?o:{}}async validate(){var i,o;return null!==(o=null===(i=this.bankAccountBillingFormSimpleRef)||void 0===i?void 0:i.validate())&&void 0!==o?o:{isValid:!1,errors:{}}}render(){return o(p,{key:"669227ed02e4f0791882b95ed814ea1865db80de"},o("bank-account-billing-form-simple",{key:"97cbe9637d8969023b1f7d3a6b3091a246112032",legend:this.legend,ref:i=>this.bankAccountBillingFormSimpleRef=i}))}};export{a as justifi_bank_account_billing_form_simple}