@justifi/webcomponents 6.13.6 → 6.13.7
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.
- package/dist/cjs/{Analytics-C6KBHEIP.js → Analytics-DnstliVw.js} +3 -3
- package/dist/cjs/{Api-D9vOcUw4.js → Api-BO8Dq_Q9.js} +1 -1
- package/dist/cjs/{Plaid-CPESyiiV.js → Plaid-CbaU5Arm.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +36 -11
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/{business-identity-schema-Da3PJrGG.js → business-identity-schema-hpDJFnB4.js} +3 -3
- package/dist/cjs/{business.service-BIHpEqmf.js → business.service-CPATYPjf.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +3 -3
- package/dist/cjs/{check-pkg-version-B9EoYyZR.js → check-pkg-version-D9334YnB.js} +1 -1
- package/dist/cjs/{checkout-actions-D1untOUp.js → checkout-actions-Cm38ZPqN.js} +2 -2
- package/dist/cjs/{checkout.service-Bc6RAR8j.js → checkout.service-DUHQ2mz6.js} +2 -2
- package/dist/cjs/dispute-notification_2.cjs.entry.js +8 -8
- package/dist/cjs/{event-types-VgI-nT8p.js → event-types-fW6pQOxu.js} +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/{get-business-DaaeRffw.js → get-business-B3Jf5X7U.js} +2 -2
- package/dist/cjs/{get-payment-details-_rinKLxh.js → get-payment-details-Q9lHwr8Y.js} +2 -2
- package/dist/cjs/{get-subaccounts-srp4S2Um.js → get-subaccounts-BEqUiA8S.js} +3 -3
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +11 -10
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-form.cjs.entry.js +11 -11
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-YyJzVqrh.js → package-CUVhHNoD.js} +1 -1
- package/dist/cjs/{payment-provisioning-actions-P8cbgnKy.js → payment-provisioning-actions-DeURi9ZW.js} +2 -2
- package/dist/cjs/{payment.service-8Q-EEtXL.js → payment.service-D7Rfb-HB.js} +2 -2
- package/dist/cjs/{payout.service-B6j2g-G5.js → payout.service-Dt-LIFvA.js} +2 -2
- package/dist/cjs/{payouts-status-C2KFg1AD.js → payouts-status-BKO9VMJ_.js} +2 -2
- package/dist/cjs/{plaid.service-C2LRgrP6.js → plaid.service-D9rC_F9z.js} +2 -2
- package/dist/cjs/{schema-validations-Cs0mSKR7.js → schema-validations-DehT309E.js} +5 -3
- package/dist/cjs/{terminal.service-9hEtgijd.js → terminal.service-DnmqW9Dl.js} +2 -2
- package/dist/cjs/{utils-BsnepLy6.js → utils-8zgGi717.js} +1 -1
- package/dist/cjs/{utils-CYONRFR6.js → utils-DB4XHlAU.js} +0 -126
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/services/apple-pay.service.js +1 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +46 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +19 -1
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +3 -3
- package/dist/collection/components/business-forms/schemas/schema-validations.js +4 -3
- package/dist/collection/components/filters/utils.js +2 -2
- package/dist/docs.json +57 -1
- package/dist/esm/{Analytics-C76Y5Pqf.js → Analytics-BlTw8DMC.js} +3 -3
- package/dist/esm/{Api-BulOmiMS.js → Api-CwaiizF1.js} +1 -1
- package/dist/esm/{Plaid-DxSkT8pY.js → Plaid-D389VmvK.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/additional-questions-form-step_15.entry.js +36 -11
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +1 -1
- package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +3 -3
- package/dist/esm/{business-identity-schema-C1ot9Zas.js → business-identity-schema-CXfLi-Wi.js} +3 -3
- package/dist/esm/{business.service-BpvtCKI5.js → business.service-BJ3lvMNr.js} +2 -2
- package/dist/esm/card-form.entry.js +3 -3
- package/dist/esm/{check-pkg-version-D5BxTNyL.js → check-pkg-version-DTxsw7UI.js} +1 -1
- package/dist/esm/{checkout-actions-BI6q0_Z3.js → checkout-actions-Bmn6v-SS.js} +2 -2
- package/dist/esm/{checkout.service-BMPq9LoG.js → checkout.service-DMbW2pn3.js} +2 -2
- package/dist/esm/dispute-notification_2.entry.js +8 -8
- package/dist/esm/{event-types-oyUZYVGh.js → event-types-D37YHLaN.js} +2 -2
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/{get-business-C8F558a1.js → get-business-CDr7VlTq.js} +2 -2
- package/dist/esm/{get-payment-details-bvPnSweh.js → get-payment-details-CpM_upcS.js} +2 -2
- package/dist/esm/{get-subaccounts-iBTEai_H.js → get-subaccounts-RtGqjq7u.js} +3 -3
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +11 -10
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-business-details.entry.js +9 -9
- package/dist/esm/justifi-business-form.entry.js +11 -11
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +9 -9
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +9 -9
- package/dist/esm/justifi-refund-payment.entry.js +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CqcLgdsl.js → package-Dwe9A9Fk.js} +1 -1
- package/dist/esm/{payment-provisioning-actions-ByGe6983.js → payment-provisioning-actions-BJYx_JgF.js} +2 -2
- package/dist/esm/{payment.service-C1TD_hjt.js → payment.service-CPnigqmB.js} +2 -2
- package/dist/esm/{payout.service-yVnD7HWZ.js → payout.service-CYPLRYg5.js} +2 -2
- package/dist/esm/{payouts-status-DoPgKv-W.js → payouts-status-BnB9006T.js} +2 -2
- package/dist/esm/{plaid.service-EkVIaTGX.js → plaid.service-CvfKh_3f.js} +2 -2
- package/dist/esm/{schema-validations-CHxw3FkH.js → schema-validations-DJilm-Nh.js} +5 -4
- package/dist/esm/{terminal.service-J_P8Jg9n.js → terminal.service-r2jKgzEJ.js} +2 -2
- package/dist/esm/{utils-CVYvs2hZ.js → utils-BdBZQD1G.js} +1 -1
- package/dist/esm/{utils-C25uIOK0.js → utils-D8J8OvxY.js} +0 -126
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-identity-schema.js +3 -3
- package/dist/module/business-owners-form-step2.js +19 -1
- package/dist/module/justifi-apple-pay2.js +1 -0
- package/dist/module/owner-form2.js +10 -1
- package/dist/module/package.js +1 -1
- package/dist/module/schema-validations.js +5 -4
- package/dist/module/utils2.js +0 -126
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/webcomponents/p-01b2a5f7.entry.js +1 -0
- package/dist/webcomponents/{p-faf1f866.entry.js → p-0a1a87fc.entry.js} +1 -1
- package/dist/webcomponents/{p-adaa2209.entry.js → p-0b01e411.entry.js} +1 -1
- package/dist/webcomponents/{p-ad5d5499.entry.js → p-0b394a01.entry.js} +1 -1
- package/dist/webcomponents/{p-bfc1de20.entry.js → p-0e440060.entry.js} +1 -1
- package/dist/webcomponents/{p-fdd3d98f.entry.js → p-146be0a4.entry.js} +1 -1
- package/dist/webcomponents/{p-ca6c583d.entry.js → p-1d6c0821.entry.js} +1 -1
- package/dist/webcomponents/p-240b7c93.entry.js +1 -0
- package/dist/webcomponents/{p-ff45084a.entry.js → p-265501d4.entry.js} +1 -1
- package/dist/webcomponents/{p-83254a1a.entry.js → p-37daa694.entry.js} +1 -1
- package/dist/webcomponents/{p-57c3c401.entry.js → p-38b3078b.entry.js} +1 -1
- package/dist/webcomponents/{p-33fffbdf.entry.js → p-403290aa.entry.js} +1 -1
- package/dist/webcomponents/p-4d48d2dc.entry.js +1 -0
- package/dist/webcomponents/{p-e72b8f09.entry.js → p-4e8cd7f2.entry.js} +1 -1
- package/dist/webcomponents/{p-14484c68.entry.js → p-4f48afc8.entry.js} +1 -1
- package/dist/webcomponents/{p-55ce04c0.entry.js → p-515a7a8d.entry.js} +1 -1
- package/dist/webcomponents/{p-46a06ce6.entry.js → p-528eef2d.entry.js} +1 -1
- package/dist/webcomponents/p-54fb057f.entry.js +1 -0
- package/dist/webcomponents/{p-bfbc9216.entry.js → p-62604f23.entry.js} +1 -1
- package/dist/webcomponents/{p-2419eb43.entry.js → p-65c3288f.entry.js} +1 -1
- package/dist/webcomponents/p-68d936ba.entry.js +1 -0
- package/dist/webcomponents/{p-9e3b6251.entry.js → p-69fc3436.entry.js} +1 -1
- package/dist/webcomponents/{p-8a5c6408.entry.js → p-6f0bca42.entry.js} +1 -1
- package/dist/webcomponents/{p-5a4689bd.entry.js → p-75b5d6ac.entry.js} +1 -1
- package/dist/webcomponents/{p-5cb45a65.entry.js → p-75f59ef5.entry.js} +1 -1
- package/dist/webcomponents/p-7d469a3c.entry.js +1 -0
- package/dist/webcomponents/{p-bdc6da23.entry.js → p-863a7764.entry.js} +1 -1
- package/dist/webcomponents/{p-cfc738f8.entry.js → p-97d05b62.entry.js} +1 -1
- package/dist/webcomponents/{p-DaIKrQry.js → p-AyLerOda.js} +1 -1
- package/dist/webcomponents/{p-C2jRLMNW.js → p-B2CETB_i.js} +1 -1
- package/dist/webcomponents/{p-Bw3Rgnjn.js → p-B5RnJXKG.js} +1 -1
- package/dist/webcomponents/{p-BTR2yqCl.js → p-B9fbqJSf.js} +1 -1
- package/dist/webcomponents/p-BwPS3971.js +1 -0
- package/dist/webcomponents/{p-Dmh8AYjR.js → p-Bx1A5sQR.js} +1 -1
- package/dist/webcomponents/p-CDKbfqXv.js +1 -0
- package/dist/webcomponents/p-CPEn7kso.js +1 -0
- package/dist/webcomponents/p-CXIRxyAr.js +1 -0
- package/dist/webcomponents/p-CXZRiaUw.js +1 -0
- package/dist/webcomponents/{p-s8KSaX8d.js → p-Cc6TzfDZ.js} +1 -1
- package/dist/webcomponents/p-DHB_XJ12.js +1 -0
- package/dist/webcomponents/p-DM45Ihwj.js +1 -0
- package/dist/webcomponents/p-DMB1dln7.js +1 -0
- package/dist/webcomponents/{p-yMEjFl0B.js → p-DMGq2Rrg.js} +1 -1
- package/dist/webcomponents/{p-DNto4mrB.js → p-DNIKPf_U.js} +1 -1
- package/dist/webcomponents/p-Dsm1jN-a.js +1 -0
- package/dist/webcomponents/p-Dwe9A9Fk.js +1 -0
- package/dist/webcomponents/{p-Bo7v8x6H.js → p-HtdZEF57.js} +1 -1
- package/dist/webcomponents/{p-6d73237f.entry.js → p-a1528ee7.entry.js} +1 -1
- package/dist/webcomponents/{p-3fb4a9c7.entry.js → p-a44c5178.entry.js} +4 -4
- package/dist/webcomponents/{p-B6-Sesdh.js → p-aBD3IP5P.js} +1 -1
- package/dist/webcomponents/p-b4219b06.entry.js +1 -0
- package/dist/webcomponents/{p-305c5db1.entry.js → p-b89ae2e8.entry.js} +1 -1
- package/dist/webcomponents/{p-4a669c10.entry.js → p-bbc21966.entry.js} +1 -1
- package/dist/webcomponents/{p-502ed9bb.entry.js → p-d2bb9c6c.entry.js} +1 -1
- package/dist/webcomponents/{p-2cecf4e2.entry.js → p-e1382f38.entry.js} +1 -1
- package/dist/webcomponents/{p-3df35e49.entry.js → p-e1e91bbb.entry.js} +1 -1
- package/dist/webcomponents/p-e254c3e3.entry.js +1 -0
- package/dist/webcomponents/{p-1e94a753.entry.js → p-fc1ba772.entry.js} +1 -1
- package/dist/webcomponents/p-rpFC83GL.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +6 -6
- package/dist/webcomponents/p-1385ed16.entry.js +0 -1
- package/dist/webcomponents/p-18e540ec.entry.js +0 -1
- package/dist/webcomponents/p-4cfcddb3.entry.js +0 -1
- package/dist/webcomponents/p-B6ZYciEI.js +0 -1
- package/dist/webcomponents/p-BCnC9O4C.js +0 -1
- package/dist/webcomponents/p-BPPXYD43.js +0 -1
- package/dist/webcomponents/p-BxpXvXn-.js +0 -1
- package/dist/webcomponents/p-C5sUN5fp.js +0 -1
- package/dist/webcomponents/p-Cb8cfh-k.js +0 -1
- package/dist/webcomponents/p-CiOBQ9Sm.js +0 -1
- package/dist/webcomponents/p-CqcLgdsl.js +0 -1
- package/dist/webcomponents/p-DAR2ZYdT.js +0 -1
- package/dist/webcomponents/p-DK_bjvk1.js +0 -1
- package/dist/webcomponents/p-J3gLpnRr.js +0 -1
- package/dist/webcomponents/p-a1372cbd.entry.js +0 -1
- package/dist/webcomponents/p-b8431ae0.entry.js +0 -1
- package/dist/webcomponents/p-c5b3a2cb.entry.js +0 -1
- package/dist/webcomponents/p-cb30c74e.entry.js +0 -1
- package/dist/webcomponents/p-f8b8b58a.entry.js +0 -1
- /package/dist/webcomponents/{p-BXrbGZ_R.js → p-Ds_P-dB8.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,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-DaIKrQry.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{J as o}from"./p-Bw3Rgnjn.js";import{c}from"./p-Bo7v8x6H.js";import{g as p,a as h}from"./p-Cb8cfh-k.js";import{P as d}from"./p-J3gLpnRr.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 v}from"./p-BICxxa69.js";import{S as C}from"./p-DzEdYT8R.js";import{T as R}from"./p-CZfYo5-1.js";import{a as D}from"./p-BXrbGZ_R.js";import{a6 as x,a7 as F}from"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-CqcLgdsl.js";import"./p-C2jRLMNW.js";import"./p-CqiVXthx.js";const P={created_at:()=>t("th",{part:x,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:x,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:x,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:x,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:x,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:x,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:x,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:(e,a)=>t("td",{part:F(a)},t("div",{class:"fw-bold"},D(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},D(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:F(a)},I[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:F(a)},e.id),amount:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:F(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:F(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:F(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:F(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:F(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:F(a)},e.source_id),source_type:(e,a)=>t("td",{part:F(a)},e.source_type)},q=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:R.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:R.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:R.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,P,S),c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:r,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,r);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((t=>new s(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"24e7a4313ab91f179fd27b6596f012487de06815"},t(l,{key:"1f9a7a56a940e41dd865bc6f3a8681ce86d60d58"},t(u,{key:"a26ce09ae4df84698be1ea37cb735e38c0a0402e"},t(m,{key:"07f8655efd483e1d9240e65b17dc13583028f376"},t(y,{key:"0b62a7700715dbaffbedc0538432d075a3158499"},this.transactionsTable.columnData.map((t=>t)))),t(b,{key:"adf75fa50ddfb5257875b2779fc6c157812d4c19"},t(_,{key:"bc77de512b3e5fd1e6c4b8cf908b46027a3bc33f",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"413d46e184399cba3993f37efd64cb0d0a10d905",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"9deaa794dc848ed7c85cbadc3b4cfe7c9fb1176f",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"16ca0811bf42dc9419f8b77086e8e7e2cf6d0085"},t(w,{key:"e11be42549832c35078acf47b7c165fe1e50ea98"},t(v,{key:"205d649068b84200b88adc1be9cfe192abfe13be",colSpan:this.transactionsTable.columnData.length},t("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{q as justifi_payment_transactions_list}
|
|
File without changes
|