@justifi/webcomponents 4.6.4 → 4.7.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.
- package/dist/cjs/{Api-f76b337f.js → Api-548eaa62.js} +3 -17
- package/dist/cjs/Api-548eaa62.js.map +1 -0
- package/dist/cjs/Pagination-cae1dcbd.js +15 -0
- package/dist/cjs/Pagination-cae1dcbd.js.map +1 -0
- package/dist/cjs/{Payout-4906a445.js → Payout-68a99ee3.js} +22 -1
- package/dist/cjs/Payout-68a99ee3.js.map +1 -0
- package/dist/cjs/SubAccount-f47c8522.js +109 -0
- package/dist/cjs/SubAccount-f47c8522.js.map +1 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +84 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +1 -0
- package/dist/cjs/{business-form-schema-725ec6f5.js → business-form-schema-fe831c30.js} +2 -2
- package/dist/cjs/business-form-schema-fe831c30.js.map +1 -0
- package/dist/cjs/config-70f62990.js +19 -0
- package/dist/cjs/config-70f62990.js.map +1 -0
- package/dist/cjs/form-1e732a9d.js +731 -0
- package/dist/cjs/form-1e732a9d.js.map +1 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +44 -20
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number_3.cjs.entry.js +17 -32
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -1
- package/dist/cjs/helpers-c505d861.js +28 -0
- package/dist/cjs/helpers-c505d861.js.map +1 -0
- package/dist/cjs/{index-3533152c.js → index-c5ace247.js} +8 -1
- package/dist/cjs/index-c5ace247.js.map +1 -0
- package/dist/cjs/{index.esm-84a0a7a8.js → index.esm-91ec051e.js} +123 -1
- package/dist/cjs/index.esm-91ec051e.js.map +1 -0
- package/dist/cjs/{justifi-additional-questions_5.cjs.entry.js → justifi-additional-questions_6.cjs.entry.js} +41 -16
- package/dist/cjs/justifi-additional-questions_6.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +77 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +131 -0
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -756
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-list.cjs.entry.js +38 -67
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +4 -8
- package/dist/cjs/justifi-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11029 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +88 -0
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +12 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +23 -17
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +24 -18
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +24 -18
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js +105 -0
- package/dist/cjs/justifi-refund-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +82 -0
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +105 -0
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-table_2.cjs.entry.js +80 -0
- package/dist/cjs/justifi-table_2.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/select-input_2.cjs.entry.js +1 -1
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +72 -0
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +1 -0
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +24 -0
- package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +1 -0
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +24 -0
- package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +1 -0
- package/dist/cjs/{utils-0fd61dbd.js → utils-13d069be.js} +96 -18
- package/dist/cjs/utils-13d069be.js.map +1 -0
- package/dist/cjs/utils-4622829d.js +37 -0
- package/dist/cjs/utils-4622829d.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Api.js +2 -16
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Business.js +0 -2
- package/dist/collection/api/Business.js.map +1 -1
- package/dist/collection/api/GrossVolume.js +2 -0
- package/dist/collection/api/GrossVolume.js.map +1 -0
- package/dist/collection/api/Pagination.js +8 -8
- package/dist/collection/api/Pagination.js.map +1 -1
- package/dist/collection/api/Payment.js +20 -0
- package/dist/collection/api/Payment.js.map +1 -1
- package/dist/collection/api/SubAccount.js +104 -0
- package/dist/collection/api/SubAccount.js.map +1 -0
- package/dist/collection/api/mockData/MockOnboardingData.js +118 -0
- package/dist/collection/api/mockData/MockOnboardingData.js.map +1 -0
- package/dist/collection/api/mockData/MockSubAccount.js +103 -0
- package/dist/collection/api/mockData/MockSubAccount.js.map +1 -0
- package/dist/collection/api/mockData/mockGrossVolumeReport.js +126 -0
- package/dist/collection/api/mockData/mockGrossVolumeReport.js.map +1 -0
- package/dist/collection/assets/info-icon.svg +5 -0
- package/dist/collection/collection-manifest.json +20 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -9
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/billing-form/billing-form.stories.js +1 -1
- package/dist/collection/components/billing-form/billing-form.stories.js.map +1 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +7341 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +57 -0
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +1 -0
- package/dist/collection/components/business-details/business-details.css +6439 -0
- package/dist/collection/components/business-details/business-details.js +128 -0
- package/dist/collection/components/business-details/business-details.js.map +1 -0
- package/dist/collection/components/business-details/business-details.stories.js +24 -0
- package/dist/collection/components/business-details/business-details.stories.js.map +1 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +7341 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +50 -0
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +1 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +7341 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +49 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +1 -0
- package/dist/collection/components/business-details/owner-details/owner-details.css +7341 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js +57 -0
- package/dist/collection/components/business-details/owner-details/owner-details.js.map +1 -0
- package/dist/collection/components/business-details/representative-details/representative-details.css +7341 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js +58 -0
- package/dist/collection/components/business-details/representative-details/representative-details.js.map +1 -0
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -1
- package/dist/collection/components/business-form/business-form-schema.js +1 -1
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-form-stepped.css +7929 -0
- package/dist/collection/components/business-form/business-form-stepped.js +195 -0
- package/dist/collection/components/business-form/business-form-stepped.js.map +1 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js +132 -0
- package/dist/collection/components/business-form/business-form-stepped.stories.js.map +1 -0
- package/dist/collection/components/business-form/business-form.js +5 -24
- package/dist/collection/components/business-form/business-form.js.map +1 -1
- package/dist/collection/components/business-form/business-form.stories.js +21 -8
- package/dist/collection/components/business-form/business-form.stories.js.map +1 -1
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +7 -5
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -1
- package/dist/collection/components/business-form/business-owners/business-owners.js +4 -5
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -1
- package/dist/collection/components/business-form/helpers.js +23 -0
- package/dist/collection/components/business-form/helpers.js.map +1 -0
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +1 -0
- package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.js +3 -21
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +1 -0
- package/dist/collection/components/business-list/business-list.js +72 -84
- package/dist/collection/components/business-list/business-list.js.map +1 -1
- package/dist/collection/components/business-list/business-list.stories.js +3 -2
- package/dist/collection/components/business-list/business-list.stories.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +2 -9
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/details/details.js +2 -21
- package/dist/collection/components/details/details.js.map +1 -1
- package/dist/collection/components/details/utils.js +7 -8
- package/dist/collection/components/details/utils.js.map +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js.map +1 -1
- package/dist/collection/components/form/form.js +4 -4
- package/dist/collection/components/form/form.js.map +1 -1
- package/dist/collection/components/gross-payment-chart/chart-utils.js +59 -0
- package/dist/collection/components/gross-payment-chart/chart-utils.js.map +1 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +572 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +127 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js.map +1 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +22 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js.map +1 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +15 -0
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js.map +1 -0
- package/dist/collection/components/pagination-menu/pagination-menu.js +78 -0
- package/dist/collection/components/pagination-menu/pagination-menu.js.map +1 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +153 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +1 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +32 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +1 -0
- package/dist/collection/components/payment-details/payment-details.js +12 -6
- package/dist/collection/components/payment-details/payment-details.js.map +1 -1
- package/dist/collection/components/payment-details/payment-details.stories.js +4 -4
- package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +3 -11
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +7 -6
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +15 -14
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.js +21 -13
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +4 -4
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -1
- package/dist/collection/components/payout-details/payout-details.js +12 -3
- package/dist/collection/components/payout-details/payout-details.js.map +1 -1
- package/dist/collection/components/payout-details/payout-details.stories.js +4 -4
- package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.js +22 -14
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.stories.js +4 -4
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +22 -14
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -1
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +3 -2
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -1
- package/dist/collection/components/refund-form/refund-form-schema.js +14 -0
- package/dist/collection/components/refund-form/refund-form-schema.js.map +1 -0
- package/dist/collection/components/refund-form/refund-form.css +7785 -0
- package/dist/collection/components/refund-form/refund-form.js +229 -0
- package/dist/collection/components/refund-form/refund-form.js.map +1 -0
- package/dist/collection/components/refund-form/refund-form.stories.js +169 -0
- package/dist/collection/components/refund-form/refund-form.stories.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +71 -0
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-details.css +7983 -0
- package/dist/collection/components/subaccount-details/subaccount-details.js +148 -0
- package/dist/collection/components/subaccount-details/subaccount-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +26 -0
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +51 -0
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +50 -0
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +7345 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +49 -0
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +1 -0
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +22 -0
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +1 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +3 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +180 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +1 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +70 -0
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +1 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +10 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +1 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +34 -0
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +1 -0
- package/dist/collection/components/table/table.js +27 -12
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/test/table.spec.js +2 -2
- package/dist/collection/components/table/test/table.spec.js.map +1 -1
- package/dist/collection/utils/utils.js +95 -17
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +2 -16
- package/dist/components/Api.js.map +1 -1
- package/dist/components/Pagination.js +12 -0
- package/dist/components/Pagination.js.map +1 -0
- package/dist/components/Payout.js +21 -1
- package/dist/components/Payout.js.map +1 -1
- package/dist/components/SubAccount.js +107 -0
- package/dist/components/SubAccount.js.map +1 -0
- package/dist/components/additional-questions-details.d.ts +11 -0
- package/dist/components/additional-questions-details.js +8 -0
- package/dist/components/additional-questions-details.js.map +1 -0
- package/dist/{cjs/justifi-table.cjs.entry.js → components/additional-questions-details2.js} +30 -61
- package/dist/components/additional-questions-details2.js.map +1 -0
- package/dist/components/additional-questions.js +1 -1
- package/dist/components/additional-questions.js.map +1 -1
- package/dist/components/business-generic-info.js +2 -5
- package/dist/components/business-generic-info.js.map +1 -1
- package/dist/components/business-owners.js +4 -5
- package/dist/components/business-owners.js.map +1 -1
- package/dist/components/business-representative.js +1 -1
- package/dist/components/business-representative.js.map +1 -1
- package/dist/components/config.js +17 -0
- package/dist/components/config.js.map +1 -0
- package/dist/components/details.js +6 -33
- package/dist/components/details.js.map +1 -1
- package/dist/components/form-control-number-masked2.js +1 -1
- package/dist/components/form-control-number-masked2.js.map +1 -1
- package/dist/components/form.js +729 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/generic-info-details.d.ts +11 -0
- package/dist/components/generic-info-details.js +8 -0
- package/dist/components/generic-info-details.js.map +1 -0
- package/dist/components/generic-info-details2.js +38 -0
- package/dist/components/generic-info-details2.js.map +1 -0
- package/dist/components/helpers.js +26 -0
- package/dist/components/helpers.js.map +1 -0
- package/dist/components/index.esm.js +122 -1
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/justifi-business-details.d.ts +11 -0
- package/dist/components/justifi-business-details.js +127 -0
- package/dist/components/justifi-business-details.js.map +1 -0
- package/dist/components/justifi-business-form-stepped.d.ts +11 -0
- package/dist/components/justifi-business-form-stepped.js +222 -0
- package/dist/components/justifi-business-form-stepped.js.map +1 -0
- package/dist/components/justifi-business-form.js +7 -750
- package/dist/components/justifi-business-form.js.map +1 -1
- package/dist/components/justifi-business-list.js +44 -65
- package/dist/components/justifi-business-list.js.map +1 -1
- package/dist/components/justifi-gross-payment-chart.d.ts +11 -0
- package/dist/components/justifi-gross-payment-chart.js +11052 -0
- package/dist/components/justifi-gross-payment-chart.js.map +1 -0
- package/dist/components/justifi-payment-balance-transactions.d.ts +11 -0
- package/dist/components/justifi-payment-balance-transactions.js +123 -0
- package/dist/components/justifi-payment-balance-transactions.js.map +1 -0
- package/dist/components/justifi-payment-details.js +7 -6
- package/dist/components/justifi-payment-details.js.map +1 -1
- package/dist/components/justifi-payment-form.js +3 -2
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +30 -16
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payout-details.js +7 -4
- package/dist/components/justifi-payout-details.js.map +1 -1
- package/dist/components/justifi-payouts-list.js +31 -17
- package/dist/components/justifi-payouts-list.js.map +1 -1
- package/dist/components/justifi-proceeds-list.js +30 -16
- package/dist/components/justifi-proceeds-list.js.map +1 -1
- package/dist/components/justifi-refund-form.d.ts +11 -0
- package/dist/components/justifi-refund-form.js +140 -0
- package/dist/components/justifi-refund-form.js.map +1 -0
- package/dist/components/justifi-subaccount-details.d.ts +11 -0
- package/dist/components/justifi-subaccount-details.js +134 -0
- package/dist/components/justifi-subaccount-details.js.map +1 -0
- package/dist/components/justifi-subaccounts-list.d.ts +11 -0
- package/dist/components/justifi-subaccounts-list.js +139 -0
- package/dist/components/justifi-subaccounts-list.js.map +1 -0
- package/dist/components/legal-address-details.d.ts +11 -0
- package/dist/components/legal-address-details.js +8 -0
- package/dist/components/legal-address-details.js.map +1 -0
- package/dist/components/legal-address-details2.js +37 -0
- package/dist/components/legal-address-details2.js.map +1 -0
- package/dist/components/legal-address-form.js +1 -3
- package/dist/components/legal-address-form.js.map +1 -1
- package/dist/components/owner-details.d.ts +11 -0
- package/dist/components/owner-details.js +8 -0
- package/dist/components/owner-details.js.map +1 -0
- package/dist/components/owner-details2.js +37 -0
- package/dist/components/owner-details2.js.map +1 -0
- package/dist/components/pagination-menu.d.ts +11 -0
- package/dist/components/pagination-menu.js +8 -0
- package/dist/components/pagination-menu.js.map +1 -0
- package/dist/{esm/justifi-table.entry.js → components/pagination-menu2.js} +35 -55
- package/dist/components/pagination-menu2.js.map +1 -0
- package/dist/components/payment-method-form.js +11 -9
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/representative-details.d.ts +11 -0
- package/dist/components/representative-details.js +8 -0
- package/dist/components/representative-details.js.map +1 -0
- package/dist/components/representative-details2.js +38 -0
- package/dist/components/representative-details2.js.map +1 -0
- package/dist/components/subaccount-account-details.d.ts +11 -0
- package/dist/components/subaccount-account-details.js +8 -0
- package/dist/components/subaccount-account-details.js.map +1 -0
- package/dist/components/subaccount-account-details2.js +39 -0
- package/dist/components/subaccount-account-details2.js.map +1 -0
- package/dist/components/subaccount-bank-details.d.ts +11 -0
- package/dist/components/subaccount-bank-details.js +40 -0
- package/dist/components/subaccount-bank-details.js.map +1 -0
- package/dist/components/subaccount-merchant-details.d.ts +11 -0
- package/dist/components/subaccount-merchant-details.js +8 -0
- package/dist/components/subaccount-merchant-details.js.map +1 -0
- package/dist/components/subaccount-merchant-details2.js +38 -0
- package/dist/components/subaccount-merchant-details2.js.map +1 -0
- package/dist/components/subaccount-owners-details.d.ts +11 -0
- package/dist/components/subaccount-owners-details.js +8 -0
- package/dist/components/subaccount-owners-details.js.map +1 -0
- package/dist/components/subaccount-owners-details2.js +38 -0
- package/dist/components/subaccount-owners-details2.js.map +1 -0
- package/dist/components/subaccount-representative-details.d.ts +11 -0
- package/dist/components/subaccount-representative-details.js +8 -0
- package/dist/components/subaccount-representative-details.js.map +1 -0
- package/dist/components/subaccount-representative-details2.js +38 -0
- package/dist/components/subaccount-representative-details2.js.map +1 -0
- package/dist/components/subaccount-terms-details.d.ts +11 -0
- package/dist/components/subaccount-terms-details.js +40 -0
- package/dist/components/subaccount-terms-details.js.map +1 -0
- package/dist/components/table.js +12 -21
- package/dist/components/table.js.map +1 -1
- package/dist/components/utils.js +27 -3909
- package/dist/components/utils.js.map +1 -1
- package/dist/components/utils2.js +3983 -0
- package/dist/components/utils2.js.map +1 -0
- package/dist/config.js +12 -4
- package/dist/config.js.map +1 -1
- package/dist/esm/{Api-cca120a8.js → Api-c65d3ed8.js} +3 -17
- package/dist/esm/Api-c65d3ed8.js.map +1 -0
- package/dist/esm/Pagination-31f770d6.js +12 -0
- package/dist/esm/Pagination-31f770d6.js.map +1 -0
- package/dist/esm/{Payout-9a1f2859.js → Payout-fcf16887.js} +22 -2
- package/dist/esm/Payout-fcf16887.js.map +1 -0
- package/dist/esm/SubAccount-128190e9.js +107 -0
- package/dist/esm/SubAccount-128190e9.js.map +1 -0
- package/dist/esm/additional-questions-details_5.entry.js +76 -0
- package/dist/esm/additional-questions-details_5.entry.js.map +1 -0
- package/dist/esm/{business-form-schema-5885d3d6.js → business-form-schema-30a3eadd.js} +2 -2
- package/dist/esm/business-form-schema-30a3eadd.js.map +1 -0
- package/dist/esm/config-b1976dbd.js +17 -0
- package/dist/esm/config-b1976dbd.js.map +1 -0
- package/dist/esm/form-32cf3d1e.js +729 -0
- package/dist/esm/form-32cf3d1e.js.map +1 -0
- package/dist/esm/form-control-datepart_2.entry.js +44 -20
- package/dist/esm/form-control-datepart_2.entry.js.map +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number_3.entry.js +17 -32
- package/dist/esm/form-control-number_3.entry.js.map +1 -1
- package/dist/esm/helpers-1d5ecdc8.js +26 -0
- package/dist/esm/helpers-1d5ecdc8.js.map +1 -0
- package/dist/esm/{index-fe877d03.js → index-7471ed60.js} +8 -1
- package/dist/esm/index-7471ed60.js.map +1 -0
- package/dist/esm/{index.esm-89fe6af9.js → index.esm-9397ffa0.js} +123 -2
- package/dist/esm/index.esm-9397ffa0.js.map +1 -0
- package/dist/esm/{justifi-additional-questions_5.entry.js → justifi-additional-questions_6.entry.js} +41 -17
- package/dist/esm/justifi-additional-questions_6.entry.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +73 -0
- package/dist/esm/justifi-business-details.entry.js.map +1 -0
- package/dist/esm/justifi-business-form-stepped.entry.js +127 -0
- package/dist/esm/justifi-business-form-stepped.entry.js.map +1 -0
- package/dist/esm/justifi-business-form.entry.js +12 -755
- package/dist/esm/justifi-business-form.entry.js.map +1 -1
- package/dist/esm/justifi-business-list.entry.js +37 -66
- package/dist/esm/justifi-business-list.entry.js.map +1 -1
- package/dist/esm/justifi-card-form.entry.js +1 -1
- package/dist/esm/justifi-details.entry.js +4 -8
- package/dist/esm/justifi-details.entry.js.map +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +11025 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js.map +1 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js +84 -0
- package/dist/esm/justifi-payment-balance-transactions.entry.js.map +1 -0
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-details.entry.js.map +1 -1
- package/dist/esm/justifi-payment-form.entry.js +4 -3
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +12 -10
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +22 -16
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payout-details.entry.js +9 -7
- package/dist/esm/justifi-payout-details.entry.js.map +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +23 -17
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -1
- package/dist/esm/justifi-proceeds-list.entry.js +23 -17
- package/dist/esm/justifi-proceeds-list.entry.js.map +1 -1
- package/dist/esm/justifi-refund-form.entry.js +101 -0
- package/dist/esm/justifi-refund-form.entry.js.map +1 -0
- package/dist/esm/justifi-subaccount-details.entry.js +78 -0
- package/dist/esm/justifi-subaccount-details.entry.js.map +1 -0
- package/dist/esm/justifi-subaccounts-list.entry.js +101 -0
- package/dist/esm/justifi-subaccounts-list.entry.js.map +1 -0
- package/dist/esm/justifi-table_2.entry.js +75 -0
- package/dist/esm/justifi-table_2.entry.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/select-input_2.entry.js +1 -1
- package/dist/esm/subaccount-account-details_4.entry.js +65 -0
- package/dist/esm/subaccount-account-details_4.entry.js.map +1 -0
- package/dist/esm/subaccount-bank-details.entry.js +20 -0
- package/dist/esm/subaccount-bank-details.entry.js.map +1 -0
- package/dist/esm/subaccount-terms-details.entry.js +20 -0
- package/dist/esm/subaccount-terms-details.entry.js.map +1 -0
- package/dist/esm/{utils-ad0bbe03.js → utils-40b7002c.js} +91 -19
- package/dist/esm/utils-40b7002c.js.map +1 -0
- package/dist/esm/utils-6352c002.js +29 -0
- package/dist/esm/utils-6352c002.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/api/Api.d.ts +4 -4
- package/dist/types/api/Business.d.ts +12 -4
- package/dist/types/api/GrossVolume.d.ts +8 -0
- package/dist/types/api/Pagination.d.ts +12 -6
- package/dist/types/api/Payment.d.ts +28 -0
- package/dist/types/api/SubAccount.d.ts +165 -0
- package/dist/types/api/mockData/MockOnboardingData.d.ts +8 -0
- package/dist/types/api/mockData/MockSubAccount.d.ts +3 -0
- package/dist/types/api/mockData/mockGrossVolumeReport.d.ts +7 -0
- package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +0 -7
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +13 -0
- package/dist/types/components/business-details/business-details.d.ts +28 -0
- package/dist/types/components/business-details/business-details.stories.d.ts +7 -0
- package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +5 -0
- package/dist/types/components/business-details/legal-address-details/legal-address-details.d.ts +5 -0
- package/dist/types/components/business-details/owner-details/owner-details.d.ts +13 -0
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +13 -0
- package/dist/types/components/business-form/business-form-stepped.d.ts +29 -0
- package/dist/types/components/business-form/business-form-stepped.stories.d.ts +27 -0
- package/dist/types/components/business-form/business-form.d.ts +0 -1
- package/dist/types/components/business-form/business-form.stories.d.ts +6 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +5 -1
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +2 -0
- package/dist/types/components/business-form/helpers.d.ts +1 -0
- package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.d.ts +1 -2
- package/dist/types/components/business-list/business-list.d.ts +34 -21
- package/dist/types/components/card-form/card-form.stories.d.ts +0 -7
- package/dist/types/components/details/details.d.ts +0 -3
- package/dist/types/components/details/utils.d.ts +5 -2
- package/dist/types/components/form/form.d.ts +1 -1
- package/dist/types/components/gross-payment-chart/chart-utils.d.ts +45 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +20 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart.stories.d.ts +7 -0
- package/dist/types/components/pagination-menu/pagination-menu.d.ts +10 -0
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +17 -0
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +8 -0
- package/dist/types/components/payment-details/payment-details.d.ts +8 -0
- package/dist/types/components/payment-form/payment-form.stories.d.ts +1 -9
- package/dist/types/components/payments-list/payments-list.d.ts +5 -4
- package/dist/types/components/payout-details/payout-details.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +5 -4
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +5 -3
- package/dist/types/components/refund-form/refund-form-schema.d.ts +11 -0
- package/dist/types/components/refund-form/refund-form.d.ts +58 -0
- package/dist/types/components/refund-form/refund-form.stories.d.ts +27 -0
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +6 -0
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +16 -0
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +7 -0
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +5 -0
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +5 -0
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +19 -0
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +9 -0
- package/dist/types/components/table/table.d.ts +3 -7
- package/dist/types/components.d.ts +619 -7
- package/dist/types/home/runner/work/web-component-library/web-component-library/stencil-library/.stencil/config.d.ts +12 -4
- package/dist/types/utils/utils.d.ts +19 -0
- package/dist/webcomponents/p-0d5d02d7.js +2 -0
- package/dist/webcomponents/p-0d5d02d7.js.map +1 -0
- package/dist/webcomponents/p-0e9a7fa7.entry.js +2 -0
- package/dist/webcomponents/p-0e9a7fa7.entry.js.map +1 -0
- package/dist/webcomponents/p-1920e118.entry.js +2 -0
- package/dist/webcomponents/p-1920e118.entry.js.map +1 -0
- package/dist/webcomponents/p-215b4c87.entry.js +2 -0
- package/dist/webcomponents/{p-f6cc37a6.entry.js.map → p-215b4c87.entry.js.map} +1 -1
- package/dist/webcomponents/p-222d357c.entry.js +20 -0
- package/dist/webcomponents/p-222d357c.entry.js.map +1 -0
- package/dist/webcomponents/{p-d92116e6.entry.js → p-2cd29187.entry.js} +2 -2
- package/dist/webcomponents/p-301a23aa.js +2 -0
- package/dist/webcomponents/p-301a23aa.js.map +1 -0
- package/dist/webcomponents/p-355eabff.entry.js +2 -0
- package/dist/webcomponents/p-355eabff.entry.js.map +1 -0
- package/dist/webcomponents/{p-640bfa9f.entry.js → p-356cf20d.entry.js} +2 -2
- package/dist/webcomponents/p-397e0d5a.entry.js +2 -0
- package/dist/webcomponents/p-397e0d5a.entry.js.map +1 -0
- package/dist/webcomponents/p-491d5c69.entry.js +2 -0
- package/dist/webcomponents/p-491d5c69.entry.js.map +1 -0
- package/dist/webcomponents/p-526cb161.js +2 -0
- package/dist/webcomponents/p-526cb161.js.map +1 -0
- package/dist/webcomponents/{p-f9e127a5.js → p-59860ac8.js} +2 -2
- package/dist/webcomponents/p-59860ac8.js.map +1 -0
- package/dist/webcomponents/p-62872b87.entry.js +2 -0
- package/dist/webcomponents/p-62872b87.entry.js.map +1 -0
- package/dist/webcomponents/p-635a3b3e.entry.js +2 -0
- package/dist/webcomponents/p-635a3b3e.entry.js.map +1 -0
- package/dist/webcomponents/p-64184a0c.entry.js +2 -0
- package/dist/webcomponents/p-64184a0c.entry.js.map +1 -0
- package/dist/webcomponents/p-6c3236e8.entry.js +2 -0
- package/dist/webcomponents/p-6c3236e8.entry.js.map +1 -0
- package/dist/webcomponents/p-76983a7e.js +2 -0
- package/dist/webcomponents/p-76983a7e.js.map +1 -0
- package/dist/webcomponents/p-76dffeec.js +2 -0
- package/dist/webcomponents/p-76dffeec.js.map +1 -0
- package/dist/webcomponents/{p-2b6f5e35.entry.js → p-77e732b2.entry.js} +2 -2
- package/dist/webcomponents/p-77e732b2.entry.js.map +1 -0
- package/dist/webcomponents/p-798483dd.entry.js +2 -0
- package/dist/webcomponents/p-798483dd.entry.js.map +1 -0
- package/dist/webcomponents/p-7a24ab66.entry.js +2 -0
- package/dist/webcomponents/p-7a24ab66.entry.js.map +1 -0
- package/dist/webcomponents/p-7cde64a2.entry.js +2 -0
- package/dist/webcomponents/{p-9d1c7e6a.entry.js.map → p-7cde64a2.entry.js.map} +1 -1
- package/dist/webcomponents/p-7d58db66.js +2 -0
- package/dist/webcomponents/p-7d58db66.js.map +1 -0
- package/dist/webcomponents/p-8367b46c.entry.js +2 -0
- package/dist/webcomponents/p-8367b46c.entry.js.map +1 -0
- package/dist/webcomponents/{p-1beaaba3.entry.js → p-88fa33c1.entry.js} +2 -2
- package/dist/webcomponents/{p-c46241ba.js → p-8f37e3ee.js} +2 -2
- package/dist/webcomponents/p-8f37e3ee.js.map +1 -0
- package/dist/webcomponents/p-931989e6.entry.js +2 -0
- package/dist/webcomponents/p-931989e6.entry.js.map +1 -0
- package/dist/webcomponents/{p-cd0eca25.entry.js → p-96eecdff.entry.js} +2 -2
- package/dist/webcomponents/p-988191bf.js +2 -0
- package/dist/webcomponents/p-988191bf.js.map +1 -0
- package/dist/webcomponents/p-a4c78757.entry.js +2 -0
- package/dist/webcomponents/p-a4c78757.entry.js.map +1 -0
- package/dist/webcomponents/p-b08a9520.entry.js +2 -0
- package/dist/webcomponents/p-b08a9520.entry.js.map +1 -0
- package/dist/webcomponents/p-b157f6ae.js +2 -0
- package/dist/webcomponents/p-b157f6ae.js.map +1 -0
- package/dist/webcomponents/p-b45453ea.entry.js +2 -0
- package/dist/webcomponents/p-b45453ea.entry.js.map +1 -0
- package/dist/webcomponents/p-c2845c5d.entry.js +2 -0
- package/dist/webcomponents/p-c2845c5d.entry.js.map +1 -0
- package/dist/webcomponents/p-c4289027.entry.js +2 -0
- package/dist/webcomponents/p-c4289027.entry.js.map +1 -0
- package/dist/webcomponents/p-c43e9572.entry.js +2 -0
- package/dist/webcomponents/p-c43e9572.entry.js.map +1 -0
- package/dist/webcomponents/p-cbb60191.js +3 -0
- package/dist/webcomponents/p-cbb60191.js.map +1 -0
- package/dist/webcomponents/{p-26392ae3.entry.js → p-d40718da.entry.js} +2 -2
- package/dist/webcomponents/p-d40718da.entry.js.map +1 -0
- package/dist/webcomponents/{p-9346ae33.js → p-d6b5793d.js} +2 -2
- package/dist/webcomponents/p-d6b5793d.js.map +1 -0
- package/dist/webcomponents/{p-a922b908.entry.js → p-ec1890fc.entry.js} +2 -2
- package/dist/webcomponents/p-ffcbf779.entry.js +2 -0
- package/dist/webcomponents/p-ffcbf779.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +8 -7
- package/dist/cjs/Api-f76b337f.js.map +0 -1
- package/dist/cjs/Payout-4906a445.js.map +0 -1
- package/dist/cjs/business-form-schema-725ec6f5.js.map +0 -1
- package/dist/cjs/form-control-select.cjs.entry.js +0 -47
- package/dist/cjs/form-control-select.cjs.entry.js.map +0 -1
- package/dist/cjs/index-3533152c.js.map +0 -1
- package/dist/cjs/index.esm-84a0a7a8.js.map +0 -1
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-table.cjs.entry.js.map +0 -1
- package/dist/cjs/table-utils-617126e5.js +0 -13
- package/dist/cjs/table-utils-617126e5.js.map +0 -1
- package/dist/cjs/utils-0fd61dbd.js.map +0 -1
- package/dist/cjs/utils-d95b09c2.js +0 -35
- package/dist/cjs/utils-d95b09c2.js.map +0 -1
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +0 -1
- package/dist/collection/components/legal-address-form/legal-address-form.js.map +0 -1
- package/dist/collection/components/table/table-utils.js +0 -8
- package/dist/collection/components/table/table-utils.js.map +0 -1
- package/dist/esm/Api-cca120a8.js.map +0 -1
- package/dist/esm/Payout-9a1f2859.js.map +0 -1
- package/dist/esm/business-form-schema-5885d3d6.js.map +0 -1
- package/dist/esm/form-control-select.entry.js +0 -43
- package/dist/esm/form-control-select.entry.js.map +0 -1
- package/dist/esm/index-fe877d03.js.map +0 -1
- package/dist/esm/index.esm-89fe6af9.js.map +0 -1
- package/dist/esm/justifi-additional-questions_5.entry.js.map +0 -1
- package/dist/esm/justifi-table.entry.js.map +0 -1
- package/dist/esm/table-utils-6cdcaa8c.js +0 -11
- package/dist/esm/table-utils-6cdcaa8c.js.map +0 -1
- package/dist/esm/utils-1e7d6279.js +0 -28
- package/dist/esm/utils-1e7d6279.js.map +0 -1
- package/dist/esm/utils-ad0bbe03.js.map +0 -1
- package/dist/types/components/table/table-utils.d.ts +0 -14
- package/dist/webcomponents/p-26392ae3.entry.js.map +0 -1
- package/dist/webcomponents/p-2b6f5e35.entry.js.map +0 -1
- package/dist/webcomponents/p-2e66512d.entry.js +0 -2
- package/dist/webcomponents/p-2e66512d.entry.js.map +0 -1
- package/dist/webcomponents/p-523cbe04.js +0 -2
- package/dist/webcomponents/p-523cbe04.js.map +0 -1
- package/dist/webcomponents/p-641883b2.entry.js +0 -2
- package/dist/webcomponents/p-641883b2.entry.js.map +0 -1
- package/dist/webcomponents/p-69a1bec2.entry.js +0 -2
- package/dist/webcomponents/p-69a1bec2.entry.js.map +0 -1
- package/dist/webcomponents/p-6a0c8dec.entry.js +0 -2
- package/dist/webcomponents/p-6a0c8dec.entry.js.map +0 -1
- package/dist/webcomponents/p-87410719.entry.js +0 -2
- package/dist/webcomponents/p-87410719.entry.js.map +0 -1
- package/dist/webcomponents/p-881edb4d.entry.js +0 -2
- package/dist/webcomponents/p-881edb4d.entry.js.map +0 -1
- package/dist/webcomponents/p-9346ae33.js.map +0 -1
- package/dist/webcomponents/p-9d1c7e6a.entry.js +0 -2
- package/dist/webcomponents/p-ab0756ff.js +0 -2
- package/dist/webcomponents/p-ab0756ff.js.map +0 -1
- package/dist/webcomponents/p-c46241ba.js.map +0 -1
- package/dist/webcomponents/p-ccb0e1c5.js +0 -2
- package/dist/webcomponents/p-ccb0e1c5.js.map +0 -1
- package/dist/webcomponents/p-dabeb3df.entry.js +0 -2
- package/dist/webcomponents/p-dabeb3df.entry.js.map +0 -1
- package/dist/webcomponents/p-db9945b1.entry.js +0 -2
- package/dist/webcomponents/p-db9945b1.entry.js.map +0 -1
- package/dist/webcomponents/p-e1f6c8ec.entry.js +0 -2
- package/dist/webcomponents/p-e1f6c8ec.entry.js.map +0 -1
- package/dist/webcomponents/p-e41fb562.entry.js +0 -2
- package/dist/webcomponents/p-e41fb562.entry.js.map +0 -1
- package/dist/webcomponents/p-e6695628.js +0 -2
- package/dist/webcomponents/p-e6695628.js.map +0 -1
- package/dist/webcomponents/p-e70b2a21.js +0 -3
- package/dist/webcomponents/p-e70b2a21.js.map +0 -1
- package/dist/webcomponents/p-f6cc37a6.entry.js +0 -2
- package/dist/webcomponents/p-f8067330.entry.js +0 -2
- package/dist/webcomponents/p-f8067330.entry.js.map +0 -1
- package/dist/webcomponents/p-f9e127a5.js.map +0 -1
- /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.js +0 -0
- /package/dist/collection/components/{legal-address-form → business-form/legal-address-form}/legal-address-form.css +0 -0
- /package/dist/types/components/{legal-address-form → business-form/legal-address-form}/legal-address-form-schema.d.ts +0 -0
- /package/dist/webcomponents/{p-d92116e6.entry.js.map → p-2cd29187.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-640bfa9f.entry.js.map → p-356cf20d.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-1beaaba3.entry.js.map → p-88fa33c1.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-cd0eca25.entry.js.map → p-96eecdff.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-a922b908.entry.js.map → p-ec1890fc.entry.js.map} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
2
|
-
import { A as Api } from './Api-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-7471ed60.js';
|
|
2
|
+
import { A as Api } from './Api-c65d3ed8.js';
|
|
3
|
+
import { p as pagingDefaults } from './Pagination-31f770d6.js';
|
|
4
|
+
import { c as PayoutStatuses, d as PayoutStatusesSafeNames, e as Payout } from './Payout-fcf16887.js';
|
|
5
|
+
import { f as formatDate, c as formatTime, a as formatCurrency } from './utils-40b7002c.js';
|
|
6
|
+
import { c as config } from './config-b1976dbd.js';
|
|
6
7
|
|
|
7
8
|
const payoutsListCss = ":root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33, 37, 41;--bs-body-bg:#fff;--bs-body-bg-rgb:255, 255, 255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0, 0, 0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33, 37, 41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233, 236, 239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33, 37, 41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248, 249, 250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13, 110, 253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10, 88, 202;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222, 226, 230;--bs-body-bg:#212529;--bs-body-bg-rgb:33, 37, 41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255, 255, 255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222, 226, 230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52, 58, 64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222, 226, 230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43, 48, 53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110, 168, 254;--bs-link-hover-color-rgb:139, 185, 254;--bs-code-color:#e685b5;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg) }}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.clearfix::after{display:block;clear:both;content:\"\"}.text-bg-primary{color:#fff !important;background-color:RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-secondary{color:#fff !important;background-color:RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-success{color:#fff !important;background-color:RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-info{color:#000 !important;background-color:RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-warning{color:#000 !important;background-color:RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-danger{color:#fff !important;background-color:RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-light{color:#000 !important;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important}.text-bg-dark{color:#fff !important;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important}.link-primary{color:RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-primary:hover,.link-primary:focus{color:RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important}.link-secondary{color:RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important}.link-success{color:RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-success:hover,.link-success:focus{color:RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important}.link-info{color:RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-info:hover,.link-info:focus{color:RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important}.link-warning{color:RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-warning:hover,.link-warning:focus{color:RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important}.link-danger{color:RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-danger:hover,.link-danger:focus{color:RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important}.link-light{color:RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-light:hover,.link-light:focus{color:RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important}.link-dark{color:RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-dark:hover,.link-dark:focus{color:RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:0.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));text-underline-offset:0.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:0.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(0.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:\"\"}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute !important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:\"\"}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:0.25}:host{font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";font-size:1rem;font-weight:400;line-height:1.5;color:#212529}";
|
|
8
9
|
|
|
@@ -10,11 +11,6 @@ const PayoutsList = class {
|
|
|
10
11
|
constructor(hostRef) {
|
|
11
12
|
registerInstance(this, hostRef);
|
|
12
13
|
this.rowClicked = createEvent(this, "payout-row-clicked", 7);
|
|
13
|
-
this.onPageChange = (direction) => {
|
|
14
|
-
return () => {
|
|
15
|
-
this.fetchData(direction);
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
14
|
this.mapStatusToBadge = (status) => {
|
|
19
15
|
switch (status) {
|
|
20
16
|
case PayoutStatuses.scheduled:
|
|
@@ -31,12 +27,23 @@ const PayoutsList = class {
|
|
|
31
27
|
return `<span class="badge bg-success" title='Successfully deposited into your bank account'>${PayoutStatusesSafeNames[status]}</span>`;
|
|
32
28
|
}
|
|
33
29
|
};
|
|
30
|
+
this.handleClickPrevious = (beforeCursor) => {
|
|
31
|
+
const newParams = Object.assign({}, this.params);
|
|
32
|
+
delete newParams.after_cursor;
|
|
33
|
+
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
34
|
+
};
|
|
35
|
+
this.handleClickNext = (afterCursor) => {
|
|
36
|
+
const newParams = Object.assign({}, this.params);
|
|
37
|
+
delete newParams.before_cursor;
|
|
38
|
+
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
39
|
+
};
|
|
34
40
|
this.accountId = undefined;
|
|
35
41
|
this.authToken = undefined;
|
|
36
42
|
this.payouts = [];
|
|
37
43
|
this.loading = true;
|
|
38
44
|
this.errorMessage = undefined;
|
|
39
45
|
this.paging = pagingDefaults;
|
|
46
|
+
this.params = undefined;
|
|
40
47
|
}
|
|
41
48
|
updateOnPropChange() {
|
|
42
49
|
this.fetchData();
|
|
@@ -44,7 +51,7 @@ const PayoutsList = class {
|
|
|
44
51
|
connectedCallback() {
|
|
45
52
|
this.fetchData();
|
|
46
53
|
}
|
|
47
|
-
async fetchData(
|
|
54
|
+
async fetchData() {
|
|
48
55
|
var _a;
|
|
49
56
|
if (!this.accountId || !this.authToken) {
|
|
50
57
|
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
@@ -52,11 +59,9 @@ const PayoutsList = class {
|
|
|
52
59
|
return;
|
|
53
60
|
}
|
|
54
61
|
this.loading = true;
|
|
62
|
+
const api = Api(this.authToken, config.proxyApiOrigin);
|
|
55
63
|
const endpoint = `account/${this.accountId}/payouts`;
|
|
56
|
-
const response = await
|
|
57
|
-
paging: this.paging,
|
|
58
|
-
direction: direction
|
|
59
|
-
});
|
|
64
|
+
const response = await api.get(endpoint, this.params);
|
|
60
65
|
if (!response.error) {
|
|
61
66
|
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
62
67
|
const data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.map(dataItem => new Payout(dataItem));
|
|
@@ -105,11 +110,12 @@ const PayoutsList = class {
|
|
|
105
110
|
type: 'inner',
|
|
106
111
|
value: this.mapStatusToBadge(payout.status)
|
|
107
112
|
}
|
|
108
|
-
])), loading: this.loading, "error-message": this.errorMessage, paging: Object.assign(Object.assign({}, this.paging), {
|
|
113
|
+
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
109
114
|
}
|
|
110
115
|
static get watchers() { return {
|
|
111
116
|
"accountId": ["updateOnPropChange"],
|
|
112
|
-
"authToken": ["updateOnPropChange"]
|
|
117
|
+
"authToken": ["updateOnPropChange"],
|
|
118
|
+
"params": ["updateOnPropChange"]
|
|
113
119
|
}; }
|
|
114
120
|
};
|
|
115
121
|
PayoutsList.style = payoutsListCss;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"justifi-payouts-list.entry.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,+vbAA+vb;;MC8Bzwb,WAAW;;;;IAsBtB,iBAAY,GAAG,CAAC,SAAiB;MAC/B,OAAO;QACL,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;OAC3B,CAAA;KACF,CAAA;IAED,qBAAgB,GAAG,CAAC,MAAsB;MACxC,QAAQ,MAAM;QACZ,KAAK,cAAc,CAAC,SAAS;UAC3B,OAAO,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D,EACD,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,EAAE,CAAC,EACjD,OAAO,EACL,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MACtB;QACE;UACE,IAAI,EAAE,MAAM;UACZ,KAAK,EAAE;2BACE,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;2BAC7B,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;mBACrC;SACF;QACD,MAAM,CAAC,WAAW;QAClB,MAAM,CAAC,UAAU;QACjB,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,oBAAoB,EAAE;QAC9E,cAAc,CAAC,MAAM,CAAC,cAAc,CAAC;QACrC,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC;QACpC,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC;QACjC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC;QAClC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7B;UACE,IAAI,EAAE,OAAO;UACb,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5C;OACF,CACF,CAAC,EAEJ,OAAO,EAAE,IAAI,CAAC,OAAO,mBACN,IAAI,CAAC,YAAY,EAChC,MAAM,kCACD,IAAI,CAAC,MAAM,KACd,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EACjC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAEnC,CACG,EACP;GACH;;;;;;;;;;","names":[],"sources":["src/components/payouts-list/payouts-list.scss?tag=justifi-payouts-list&encapsulation=shadow","src/components/payouts-list/payouts-list.tsx"],"sourcesContent":[":host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { Api, IApiResponseCollection, Payout, PayoutStatuses, PayoutStatusesSafeNames } from '../../api';\nimport { formatCurrency, formatDate, formatTime } from '../../utils/utils';\nimport { PagingInfo, pagingDefaults } from '../table/table-utils';\n\n/**\n * @exportedPart table-head: Table head\n * @exportedPart table-head-row: Head row\n * @exportedPart table-head-cell: Individual head cell\n * @exportedPart table-body: Body of the table\n * @exportedPart table-row: Row of the table\n * @exportedPart table-cell: Individual cell of the table\n * @exportedPart loading-state-cell: Row for loading state\n * @exportedPart loading-state-spinner: Spinner element for loading state\n * @exportedPart error-state: Row for Error state\n * @exportedPart empty-state: Row for Emtpy state\n * @exportedPart pagination-bar: Pagination bar\n * @exportedPart arrow: Both paging buttons\n * @exportedPart arrow-left: Previous page button\n * @exportedPart arrow-right: Next page button\n * @exportedPart button-disabled: Disabled state for paging buttons\n * @exportedPart previous-button-text: Text for Previous button\n * @exportedPart next-button-text: Text for Next button\n*/\n@Component({\n tag: 'justifi-payouts-list',\n styleUrl: 'payouts-list.scss',\n shadow: true,\n})\n\nexport class PayoutsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() payouts: Payout[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @Event({\n eventName: 'payout-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<Payout>;\n\n @Watch('accountId')\n @Watch('authToken')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n onPageChange = (direction: string) => {\n return () => {\n this.fetchData(direction);\n }\n }\n\n mapStatusToBadge = (status: PayoutStatuses) => {\n switch (status) {\n case PayoutStatuses.scheduled:\n return `<span class=\"badge bg-primary\" title='Batched and scheduled to be transferred'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.in_transit:\n return `<span class=\"badge bg-primary\" title='Transfer to your bank account has been initiated'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.failed:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.canceled:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.forwarded:\n return `<span class=\"badge bg-secondary\" title='This payout initially failed; the funds have been forwarded to your next successful payout'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.paid:\n return `<span class=\"badge bg-success\" title='Successfully deposited into your bank account'>${PayoutStatusesSafeNames[status]}</span>`;\n }\n }\n\n async fetchData(direction?: string): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n const endpoint = `account/${this.accountId}/payouts`;\n\n const response: IApiResponseCollection<Payout[]> = await Api(this.authToken).get(endpoint, {\n paging: this.paging,\n direction: direction\n });\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n\n const data = response?.data?.map(dataItem => new Payout(dataItem));\n this.payouts = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={(e) => {\n const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;\n if (!clickedPayoutID) { return }\n this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));\n }}\n columnData={[\n ['Paid Out On', 'The date each transaction occurred'],\n ['Type', 'The type of each transaction'],\n ['Account', 'The ID of the account associated with each payout'],\n ['Paid Out To', 'The bank account to which each payout was transferred'],\n ['Payments', 'Sum of payments in each payout'],\n ['Refunds', 'Sum of refunds in each payout'],\n ['Fees', 'Sum of fees in each payout'],\n ['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],\n ['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\\'ll see reflected on your bank statement'],\n ['Status', 'The real-time status of each payout']\n ]}\n entityId={this.payouts.map((payout) => payout.id)}\n rowData={\n this.payouts.map((payout) => (\n [\n {\n type: 'head',\n value: `\n <div>${formatDate(payout.created_at)}</div>\n <div>${formatTime(payout.created_at)}</div>\n `,\n },\n payout.payout_type,\n payout.account_id,\n `${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,\n formatCurrency(payout.payments_total),\n formatCurrency(payout.refunds_total),\n formatCurrency(payout.fees_total),\n formatCurrency(payout.other_total),\n formatCurrency(payout.amount),\n {\n type: 'inner',\n value: this.mapStatusToBadge(payout.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n paging={{\n ...this.paging,\n onPrev: this.onPageChange('prev'),\n onNext: this.onPageChange('next')\n }}\n />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"justifi-payouts-list.entry.js","mappings":";;;;;;;AAAA,MAAM,cAAc,GAAG,+vbAA+vb;;MCuCzwb,WAAW;;;;IAwBtB,qBAAgB,GAAG,CAAC,MAAsB;MACxC,QAAQ,MAAM;QACZ,KAAK,cAAc,CAAC,SAAS;UAC3B,OAAO,kFAAkF,uBAAuB,CAAC,MAAM,CAAC,SAAS,CAAC;QACpI,KAAK,cAAc,CAAC,UAAU;UAC5B,OAAO,2FAA2F,uBAAuB,CAAC,MAAM,CAAC,SAAS,CAAC;QAC7I,KAAK,cAAc,CAAC,MAAM;UACxB,OAAO,8EAA8E,uBAAuB,CAAC,MAAM,CAAC,SAAS,CAAC;QAChI,KAAK,cAAc,CAAC,QAAQ;UAC1B,OAAO,8EAA8E,uBAAuB,CAAC,MAAM,CAAC,SAAS,CAAC;QAChI,KAAK,cAAc,CAAC,SAAS;UAC3B,OAAO,uIAAuI,uBAAuB,CAAC,MAAM,CAAC,SAAS,CAAC;QACzL,KAAK,cAAc,CAAC,IAAI;UACtB,OAAO,wFAAwF,uBAAuB,CAAC,MAAM,CAAC,SAAS,CAAC;OAC3I;KACF,CAAA;IAED,wBAAmB,GAAG,CAAC,YAAoB;MACzC,MAAM,SAAS,qBAA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CAAC,CAAC,MAAM,MACtB;QACE;UACE,IAAI,EAAE,MAAM;UACZ,KAAK,EAAE;2BACE,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;2BAC7B,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;mBACrC;SACF;QACD,MAAM,CAAC,WAAW;QAClB,MAAM,CAAC,UAAU;QACjB,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,oBAAoB,EAAE;QAC9E,cAAc,CAAC,MAAM,CAAC,cAAc,CAAC;QACrC,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC;QACpC,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC;QACjC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC;QAClC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7B;UACE,IAAI,EAAE,OAAO;UACb,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5C;OACF,CACF,CAAC,EAEJ,OAAO,EAAE,IAAI,CAAC,OAAO,mBACN,IAAI,CAAC,YAAY,EAChC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,kCACD,IAAI,CAAC,MAAM,KACd,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,MAE/C,CACG,EACP;GACH;;;;;;;;;;;","names":[],"sources":["src/components/payouts-list/payouts-list.scss?tag=justifi-payouts-list&encapsulation=shadow","src/components/payouts-list/payouts-list.tsx"],"sourcesContent":[":host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport {\n Api,\n IApiResponseCollection,\n PagingInfo,\n Payout,\n PayoutStatuses,\n PayoutStatusesSafeNames,\n pagingDefaults\n} from '../../api';\nimport { formatCurrency, formatDate, formatTime } from '../../utils/utils';\nimport { config } from '../../../config';\n\n\n/**\n * @exportedPart table-head: Table head\n * @exportedPart table-head-row: Head row\n * @exportedPart table-head-cell: Individual head cell\n * @exportedPart table-body: Body of the table\n * @exportedPart table-row: Row of the table\n * @exportedPart table-cell: Individual cell of the table\n * @exportedPart loading-state-cell: Row for loading state\n * @exportedPart loading-state-spinner: Spinner element for loading state\n * @exportedPart error-state: Row for Error state\n * @exportedPart empty-state: Row for Emtpy state\n * @exportedPart pagination-bar: Pagination bar\n * @exportedPart arrow: Both paging buttons\n * @exportedPart arrow-left: Previous page button\n * @exportedPart arrow-right: Next page button\n * @exportedPart button-disabled: Disabled state for paging buttons\n * @exportedPart previous-button-text: Text for Previous button\n * @exportedPart next-button-text: Text for Next button\n*/\n@Component({\n tag: 'justifi-payouts-list',\n styleUrl: 'payouts-list.scss',\n shadow: true,\n})\n\nexport class PayoutsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() payouts: Payout[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @State() params: any\n @Event({\n eventName: 'payout-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<Payout>;\n\n @Watch('accountId')\n @Watch('authToken')\n @Watch('params')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n mapStatusToBadge = (status: PayoutStatuses) => {\n switch (status) {\n case PayoutStatuses.scheduled:\n return `<span class=\"badge bg-primary\" title='Batched and scheduled to be transferred'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.in_transit:\n return `<span class=\"badge bg-primary\" title='Transfer to your bank account has been initiated'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.failed:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.canceled:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.forwarded:\n return `<span class=\"badge bg-secondary\" title='This payout initially failed; the funds have been forwarded to your next successful payout'>${PayoutStatusesSafeNames[status]}</span>`;\n case PayoutStatuses.paid:\n return `<span class=\"badge bg-success\" title='Successfully deposited into your bank account'>${PayoutStatusesSafeNames[status]}</span>`;\n }\n }\n\n handleClickPrevious = (beforeCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.after_cursor;\n this.params = ({ ...newParams, before_cursor: beforeCursor });\n };\n\n handleClickNext = (afterCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.before_cursor;\n this.params = ({ ...newParams, after_cursor: afterCursor });\n };\n\n async fetchData(): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n\n const api = Api(this.authToken, config.proxyApiOrigin);\n const endpoint = `account/${this.accountId}/payouts`;\n\n const response: IApiResponseCollection<Payout[]> = await api.get(endpoint, this.params);\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n\n const data = response?.data?.map(dataItem => new Payout(dataItem));\n this.payouts = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={(e) => {\n const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;\n if (!clickedPayoutID) { return }\n this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));\n }}\n columnData={[\n ['Paid Out On', 'The date each transaction occurred'],\n ['Type', 'The type of each transaction'],\n ['Account', 'The ID of the account associated with each payout'],\n ['Paid Out To', 'The bank account to which each payout was transferred'],\n ['Payments', 'Sum of payments in each payout'],\n ['Refunds', 'Sum of refunds in each payout'],\n ['Fees', 'Sum of fees in each payout'],\n ['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],\n ['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\\'ll see reflected on your bank statement'],\n ['Status', 'The real-time status of each payout']\n ]}\n entityId={this.payouts.map((payout) => payout.id)}\n rowData={\n this.payouts.map((payout) => (\n [\n {\n type: 'head',\n value: `\n <div>${formatDate(payout.created_at)}</div>\n <div>${formatTime(payout.created_at)}</div>\n `,\n },\n payout.payout_type,\n payout.account_id,\n `${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,\n formatCurrency(payout.payments_total),\n formatCurrency(payout.refunds_total),\n formatCurrency(payout.fees_total),\n formatCurrency(payout.other_total),\n formatCurrency(payout.amount),\n {\n type: 'inner',\n value: this.mapStatusToBadge(payout.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n params={this.params}\n paging={{\n ...this.paging,\n handleClickNext: this.handleClickNext,\n handleClickPrevious: this.handleClickPrevious\n }}\n />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
2
|
-
import { A as Api } from './Api-
|
|
3
|
-
import './
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-7471ed60.js';
|
|
2
|
+
import { A as Api } from './Api-c65d3ed8.js';
|
|
3
|
+
import { p as pagingDefaults } from './Pagination-31f770d6.js';
|
|
4
|
+
import './Payout-fcf16887.js';
|
|
5
|
+
import { f as formatDate, a as formatCurrency } from './utils-40b7002c.js';
|
|
6
|
+
import { c as config } from './config-b1976dbd.js';
|
|
6
7
|
|
|
7
8
|
var ProceedStatuses;
|
|
8
9
|
(function (ProceedStatuses) {
|
|
@@ -52,11 +53,6 @@ const ProceedsList = class {
|
|
|
52
53
|
constructor(hostRef) {
|
|
53
54
|
registerInstance(this, hostRef);
|
|
54
55
|
this.rowClicked = createEvent(this, "proceed-row-clicked", 7);
|
|
55
|
-
this.onPageChange = (direction) => {
|
|
56
|
-
return () => {
|
|
57
|
-
this.fetchData(direction);
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
56
|
this.mapStatusToBadge = (status) => {
|
|
61
57
|
switch (status) {
|
|
62
58
|
case ProceedStatuses.scheduled:
|
|
@@ -73,12 +69,23 @@ const ProceedsList = class {
|
|
|
73
69
|
return `<span class="badge bg-success" title='Successfully deposited into your bank account'>${ProceedStatusesSafeNames[status]}</span>`;
|
|
74
70
|
}
|
|
75
71
|
};
|
|
72
|
+
this.handleClickPrevious = (beforeCursor) => {
|
|
73
|
+
const newParams = Object.assign({}, this.params);
|
|
74
|
+
delete newParams.after_cursor;
|
|
75
|
+
this.params = (Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor }));
|
|
76
|
+
};
|
|
77
|
+
this.handleClickNext = (afterCursor) => {
|
|
78
|
+
const newParams = Object.assign({}, this.params);
|
|
79
|
+
delete newParams.before_cursor;
|
|
80
|
+
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
81
|
+
};
|
|
76
82
|
this.accountId = undefined;
|
|
77
83
|
this.authToken = undefined;
|
|
78
84
|
this.proceeds = [];
|
|
79
85
|
this.loading = true;
|
|
80
86
|
this.errorMessage = undefined;
|
|
81
87
|
this.paging = pagingDefaults;
|
|
88
|
+
this.params = undefined;
|
|
82
89
|
}
|
|
83
90
|
updateOnPropChange() {
|
|
84
91
|
this.fetchData();
|
|
@@ -86,7 +93,7 @@ const ProceedsList = class {
|
|
|
86
93
|
connectedCallback() {
|
|
87
94
|
this.fetchData();
|
|
88
95
|
}
|
|
89
|
-
async fetchData(
|
|
96
|
+
async fetchData() {
|
|
90
97
|
var _a;
|
|
91
98
|
if (!this.accountId || !this.authToken) {
|
|
92
99
|
this.errorMessage = "Can not fetch any data without an AccountID and an AuthToken";
|
|
@@ -95,10 +102,8 @@ const ProceedsList = class {
|
|
|
95
102
|
}
|
|
96
103
|
this.loading = true;
|
|
97
104
|
const endpoint = `account/${this.accountId}/proceeds`;
|
|
98
|
-
const response = await Api(this.authToken
|
|
99
|
-
|
|
100
|
-
direction: direction
|
|
101
|
-
});
|
|
105
|
+
const response = await Api(this.authToken, config.privateApiOrigin)
|
|
106
|
+
.get(endpoint, this.params);
|
|
102
107
|
if (!response.error) {
|
|
103
108
|
this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
|
|
104
109
|
const data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.map(dataItem => new Proceed(dataItem));
|
|
@@ -138,11 +143,12 @@ const ProceedsList = class {
|
|
|
138
143
|
type: 'inner',
|
|
139
144
|
value: this.mapStatusToBadge(proceed.status)
|
|
140
145
|
}
|
|
141
|
-
])), loading: this.loading, "error-message": this.errorMessage, paging: Object.assign(Object.assign({}, this.paging), {
|
|
146
|
+
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
142
147
|
}
|
|
143
148
|
static get watchers() { return {
|
|
144
149
|
"accountId": ["updateOnPropChange"],
|
|
145
|
-
"authToken": ["updateOnPropChange"]
|
|
150
|
+
"authToken": ["updateOnPropChange"],
|
|
151
|
+
"params": ["updateOnPropChange"]
|
|
146
152
|
}; }
|
|
147
153
|
};
|
|
148
154
|
ProceedsList.style = proceedsListCss;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"justifi-proceeds-list.entry.js","mappings":";;;;;;AAEA,IAAY,eAOX;AAPD,WAAY,eAAe;EACzB,gCAAa,CAAA;EACb,oCAAiB,CAAA;EACjB,0CAAuB,CAAA;EACvB,0CAAuB,CAAA;EACvB,4CAAyB,CAAA;EACzB,wCAAqB,CAAA;AACvB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,IAAY,wBAOX;AAPD,WAAY,wBAAwB;EAClC,yCAAa,CAAA;EACb,6CAAiB,CAAA;EACjB,mDAAuB,CAAA;EACvB,mDAAuB,CAAA;EACvB,qDAAyB,CAAA;EACzB,iDAAqB,CAAA;AACvB,CAAC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qD,CAAC;QACxE,CAAC,cAAc,EAAE,uDAAuD,CAAC;QACzE,CAAC,OAAO,EAAE,kJAAkJ,CAAC;QAC7J,CAAC,iBAAiB,EAAE,kHAAkH,CAAC;QACvI,CAAC,QAAQ,EAAE,qCAAqC,CAAC;OAClD,EACD,OAAO,EACL,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,MACxB;QACE;UACE,IAAI,EAAE,MAAM;UACZ,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC;SACvC;QACD,OAAO,CAAC,YAAY,CAAC,SAAS;QAC9B,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC;QACtC,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC;QACrC,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC;QACnC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC;QAC9B;UACE,IAAI,EAAE,OAAO;UACb,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,CAAC;SAC7C;OACF,CACF,CAAC,EAEJ,OAAO,EAAE,IAAI,CAAC,OAAO,mBACN,IAAI,CAAC,YAAY,EAChC,MAAM,kCACD,IAAI,CAAC,MAAM,KACd,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EACjC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAEnC,CACG,EACP;GACH;;;;;;;;;;","names":[],"sources":["src/api/Proceed.ts","src/components/proceeds-list/proceeds-list.scss?tag=justifi-proceeds-list&encapsulation=shadow","src/components/proceeds-list/proceeds-list.tsx"],"sourcesContent":["import { BankAccount } from \"./shared\";\n\nexport enum ProceedStatuses {\n paid = 'paid',\n failed = 'failed',\n forwarded = 'forwarded',\n scheduled = 'scheduled',\n in_transit = 'in_transit',\n canceled = 'canceled',\n}\n\nexport enum ProceedStatusesSafeNames {\n paid = 'Paid',\n failed = 'Failed',\n forwarded = 'Forwarded',\n scheduled = 'Scheduled',\n in_transit = 'In Transit',\n canceled = 'Canceled',\n}\n\nexport interface IProceed {\n id: string;\n account_id: string;\n amount: number;\n bank_account: BankAccount;\n currency: 'usd';\n delivery_method: string;\n description: string;\n deposits_at: string;\n fees_total: number;\n refunds_count: number;\n refunds_total: number;\n payments_count: number;\n payments_total: number;\n payout_type: 'ach' | 'cc';\n other_total: number;\n status: ProceedStatuses;\n metadata: any;\n created_at: string;\n updated_at: string;\n}\n\nexport class Proceed implements IProceed {\n public id: string;\n public account_id: string;\n public amount: number;\n public bank_account: BankAccount;\n public currency: 'usd';\n public delivery_method: string;\n public description: string;\n public deposits_at: string;\n public fees_total: number;\n public refunds_count: number;\n public refunds_total: number;\n public payments_count: number;\n public payments_total: number;\n public payout_type: 'ach' | 'cc';\n public other_total: number;\n public status: ProceedStatuses;\n public metadata: any;\n public created_at: string;\n public updated_at: string;\n\n constructor(payout: IProceed) {\n this.id = payout.id;\n this.account_id = payout.account_id;\n this.amount = payout.amount;\n this.bank_account = payout.bank_account;\n this.currency = payout.currency;\n this.delivery_method = payout.delivery_method || 'standard';\n this.description = payout.description;\n this.deposits_at = payout.deposits_at;\n this.fees_total = payout.fees_total;\n this.refunds_count = payout.refunds_count;\n this.refunds_total = payout.refunds_total;\n this.payments_count = payout.payments_count;\n this.payments_total = payout.payments_total;\n this.payout_type = payout.payout_type;\n this.other_total = payout.other_total;\n this.status = payout.status;\n this.metadata = payout.metadata;\n this.created_at = payout.created_at;\n this.updated_at = payout.updated_at;\n }\n}\n",":host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { Api, IApiResponseCollection } from '../../api';\nimport { formatCurrency, formatDate } from '../../utils/utils';\nimport { PagingInfo, pagingDefaults } from '../table/table-utils';\nimport { Proceed, ProceedStatuses, ProceedStatusesSafeNames } from '../../api/Proceed';\n\n/**\n * @exportedPart table-head: Table head\n * @exportedPart table-head-row: Head row\n * @exportedPart table-head-cell: Individual head cell\n * @exportedPart table-body: Body of the table\n * @exportedPart table-row: Row of the table\n * @exportedPart table-cell: Individual cell of the table\n * @exportedPart loading-state-cell: Row for loading state\n * @exportedPart loading-state-spinner: Spinner element for loading state\n * @exportedPart error-state: Row for Error state\n * @exportedPart empty-state: Row for Emtpy state\n * @exportedPart pagination-bar: Pagination bar\n * @exportedPart arrow: Both paging buttons\n * @exportedPart arrow-left: Previous page button\n * @exportedPart arrow-right: Next page button\n * @exportedPart button-disabled: Disabled state for paging buttons\n * @exportedPart previous-button-text: Text for Previous button\n * @exportedPart next-button-text: Text for Next button\n*/\n@Component({\n tag: 'justifi-proceeds-list',\n styleUrl: 'proceeds-list.scss',\n shadow: true,\n})\n\nexport class ProceedsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() proceeds: Proceed[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @Event({\n eventName: 'proceed-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<Proceed>;\n\n @Watch('accountId')\n @Watch('authToken')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n onPageChange = (direction: string) => {\n return () => {\n this.fetchData(direction);\n }\n }\n\n mapStatusToBadge = (status: ProceedStatuses) => {\n switch (status) {\n case ProceedStatuses.scheduled:\n return `<span class=\"badge bg-primary\" title='Batched and scheduled to be transferred'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.in_transit:\n return `<span class=\"badge bg-primary\" title='Transfer to your bank account has been initiated'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.failed:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.canceled:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.forwarded:\n return `<span class=\"badge bg-secondary\" title='This payout initially failed; the funds have been forwarded to your next successful batch of proceeds'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.paid:\n return `<span class=\"badge bg-success\" title='Successfully deposited into your bank account'>${ProceedStatusesSafeNames[status]}</span>`;\n }\n }\n\n async fetchData(direction?: string): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n const endpoint = `account/${this.accountId}/proceeds`;\n\n const response: IApiResponseCollection<Proceed[]> = await Api(this.authToken).get(endpoint, {\n paging: this.paging,\n direction: direction\n });\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n\n const data = response?.data?.map(dataItem => new Proceed(dataItem));\n this.proceeds = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={(e) => {\n const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;\n if (!clickedProceedID) { return }\n this.rowClicked.emit(this.proceeds.find((proceed) => proceed.id === clickedProceedID));\n }}\n entityId={this.proceeds.map((proceed) => proceed.id)}\n columnData={[\n ['Paid Out On', 'The date each batch of proceeds is transferred to your bank account'],\n ['Paid Out To', 'The bank account to which each payout is sent'],\n ['From Payments', 'The amount added related to payments in each payout'],\n ['From Refunds', 'The amount deducted related to refunds in each payout'],\n ['Other', 'The amount related to less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],\n ['Proceeds Amount', 'The net sum of all transactions in each payout. This is the amount you\\'ll see reflected on your bank statement.'],\n ['Status', 'The real-time status of each payout'],\n ]}\n rowData={\n this.proceeds.map((proceed) => (\n [\n {\n type: 'head',\n value: formatDate(proceed.deposits_at),\n },\n proceed.bank_account.full_name,\n formatCurrency(proceed.payments_total),\n formatCurrency(proceed.refunds_total),\n formatCurrency(proceed.other_total),\n formatCurrency(proceed.amount),\n {\n type: 'inner',\n value: this.mapStatusToBadge(proceed.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n paging={{\n ...this.paging,\n onPrev: this.onPageChange('prev'),\n onNext: this.onPageChange('next')\n }}\n />\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"justifi-proceeds-list.entry.js","mappings":";;;;;;;AAEA,IAAY,eAOX;AAPD,WAAY,eAAe;EACzB,gCAAa,CAAA;EACb,oCAAiB,CAAA;EACjB,0CAAuB,CAAA;EACvB,0CAAuB,CAAA;EACvB,4CAAyB,CAAA;EACzB,wCAAqB,CAAA;AACvB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,IAAY,wBAOX;AAPD,WAAY,wBAAwB;EAClC,yCAAa,CAAA;EACb,6CAAiB,CAAA;EACjB,mDAAuB,CAAA;EACvB,mDAAuB,CAAA;EACvB,qDAAyB,CAAA;EACzB,iDAAqB,CAAA;AACvB,CAAC,EAPW,wBAAwB,KAAxB,wBAAwB,QAOnC;MAwBY,OAAO;EAqBlB,YAAY,MAAgB;IAC1B,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;IACpB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5B,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACxC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAChC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,UAAU,CAAC;IAC5D,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IACtC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACpC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC1C,IAAI,CA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9B,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC;QACtC,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC;QACrC,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC;QACnC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC;QAC9B;UACE,IAAI,EAAE,OAAO;UACb,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,CAAC;SAC7C;OACF,CACF,CAAC,EAEJ,OAAO,EAAE,IAAI,CAAC,OAAO,mBACN,IAAI,CAAC,YAAY,EAChC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,MAAM,kCACD,IAAI,CAAC,MAAM,KACd,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,MAE/C,CACG,EACP;GACH;;;;;;;;;;;","names":[],"sources":["src/api/Proceed.ts","src/components/proceeds-list/proceeds-list.scss?tag=justifi-proceeds-list&encapsulation=shadow","src/components/proceeds-list/proceeds-list.tsx"],"sourcesContent":["import { BankAccount } from \"./shared\";\n\nexport enum ProceedStatuses {\n paid = 'paid',\n failed = 'failed',\n forwarded = 'forwarded',\n scheduled = 'scheduled',\n in_transit = 'in_transit',\n canceled = 'canceled',\n}\n\nexport enum ProceedStatusesSafeNames {\n paid = 'Paid',\n failed = 'Failed',\n forwarded = 'Forwarded',\n scheduled = 'Scheduled',\n in_transit = 'In Transit',\n canceled = 'Canceled',\n}\n\nexport interface IProceed {\n id: string;\n account_id: string;\n amount: number;\n bank_account: BankAccount;\n currency: 'usd';\n delivery_method: string;\n description: string;\n deposits_at: string;\n fees_total: number;\n refunds_count: number;\n refunds_total: number;\n payments_count: number;\n payments_total: number;\n payout_type: 'ach' | 'cc';\n other_total: number;\n status: ProceedStatuses;\n metadata: any;\n created_at: string;\n updated_at: string;\n}\n\nexport class Proceed implements IProceed {\n public id: string;\n public account_id: string;\n public amount: number;\n public bank_account: BankAccount;\n public currency: 'usd';\n public delivery_method: string;\n public description: string;\n public deposits_at: string;\n public fees_total: number;\n public refunds_count: number;\n public refunds_total: number;\n public payments_count: number;\n public payments_total: number;\n public payout_type: 'ach' | 'cc';\n public other_total: number;\n public status: ProceedStatuses;\n public metadata: any;\n public created_at: string;\n public updated_at: string;\n\n constructor(payout: IProceed) {\n this.id = payout.id;\n this.account_id = payout.account_id;\n this.amount = payout.amount;\n this.bank_account = payout.bank_account;\n this.currency = payout.currency;\n this.delivery_method = payout.delivery_method || 'standard';\n this.description = payout.description;\n this.deposits_at = payout.deposits_at;\n this.fees_total = payout.fees_total;\n this.refunds_count = payout.refunds_count;\n this.refunds_total = payout.refunds_total;\n this.payments_count = payout.payments_count;\n this.payments_total = payout.payments_total;\n this.payout_type = payout.payout_type;\n this.other_total = payout.other_total;\n this.status = payout.status;\n this.metadata = payout.metadata;\n this.created_at = payout.created_at;\n this.updated_at = payout.updated_at;\n }\n}\n",":host {\n @include host-base-styles;\n}\n","import { Component, Host, h, Prop, State, Watch, Event, EventEmitter } from '@stencil/core';\nimport { Api, IApiResponseCollection, PagingInfo, pagingDefaults } from '../../api';\nimport { formatCurrency, formatDate } from '../../utils/utils';\nimport { Proceed, ProceedStatuses, ProceedStatusesSafeNames } from '../../api/Proceed';\nimport { config } from '../../../config';\n\n\n/**\n * @exportedPart table-head: Table head\n * @exportedPart table-head-row: Head row\n * @exportedPart table-head-cell: Individual head cell\n * @exportedPart table-body: Body of the table\n * @exportedPart table-row: Row of the table\n * @exportedPart table-cell: Individual cell of the table\n * @exportedPart loading-state-cell: Row for loading state\n * @exportedPart loading-state-spinner: Spinner element for loading state\n * @exportedPart error-state: Row for Error state\n * @exportedPart empty-state: Row for Emtpy state\n * @exportedPart pagination-bar: Pagination bar\n * @exportedPart arrow: Both paging buttons\n * @exportedPart arrow-left: Previous page button\n * @exportedPart arrow-right: Next page button\n * @exportedPart button-disabled: Disabled state for paging buttons\n * @exportedPart previous-button-text: Text for Previous button\n * @exportedPart next-button-text: Text for Next button\n*/\n@Component({\n tag: 'justifi-proceeds-list',\n styleUrl: 'proceeds-list.scss',\n shadow: true,\n})\n\nexport class ProceedsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() proceeds: Proceed[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @State() params: any\n @Event({\n eventName: 'proceed-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<Proceed>;\n\n @Watch('accountId')\n @Watch('authToken')\n @Watch('params')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n mapStatusToBadge = (status: ProceedStatuses) => {\n switch (status) {\n case ProceedStatuses.scheduled:\n return `<span class=\"badge bg-primary\" title='Batched and scheduled to be transferred'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.in_transit:\n return `<span class=\"badge bg-primary\" title='Transfer to your bank account has been initiated'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.failed:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.canceled:\n return `<span class=\"badge bg-danger\" title='Transfer to your bank account failed'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.forwarded:\n return `<span class=\"badge bg-secondary\" title='This payout initially failed; the funds have been forwarded to your next successful batch of proceeds'>${ProceedStatusesSafeNames[status]}</span>`;\n case ProceedStatuses.paid:\n return `<span class=\"badge bg-success\" title='Successfully deposited into your bank account'>${ProceedStatusesSafeNames[status]}</span>`;\n }\n }\n\n handleClickPrevious = (beforeCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.after_cursor;\n this.params = ({ ...newParams, before_cursor: beforeCursor });\n };\n\n handleClickNext = (afterCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.before_cursor;\n this.params = ({ ...newParams, after_cursor: afterCursor });\n };\n\n async fetchData(): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n const endpoint = `account/${this.accountId}/proceeds`;\n\n const response: IApiResponseCollection<Proceed[]> = await Api(this.authToken, config.privateApiOrigin)\n .get(endpoint, this.params);\n\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n\n const data = response?.data?.map(dataItem => new Proceed(dataItem));\n this.proceeds = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={(e) => {\n const clickedProceedID = e.target.closest('tr').dataset.rowEntityId;\n if (!clickedProceedID) { return }\n this.rowClicked.emit(this.proceeds.find((proceed) => proceed.id === clickedProceedID));\n }}\n entityId={this.proceeds.map((proceed) => proceed.id)}\n columnData={[\n ['Paid Out On', 'The date each batch of proceeds is transferred to your bank account'],\n ['Paid Out To', 'The bank account to which each payout is sent'],\n ['From Payments', 'The amount added related to payments in each payout'],\n ['From Refunds', 'The amount deducted related to refunds in each payout'],\n ['Other', 'The amount related to less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],\n ['Proceeds Amount', 'The net sum of all transactions in each payout. This is the amount you\\'ll see reflected on your bank statement.'],\n ['Status', 'The real-time status of each payout'],\n ]}\n rowData={\n this.proceeds.map((proceed) => (\n [\n {\n type: 'head',\n value: formatDate(proceed.deposits_at),\n },\n proceed.bank_account.full_name,\n formatCurrency(proceed.payments_total),\n formatCurrency(proceed.refunds_total),\n formatCurrency(proceed.other_total),\n formatCurrency(proceed.amount),\n {\n type: 'inner',\n value: this.mapStatusToBadge(proceed.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n params={this.params}\n paging={{\n ...this.paging,\n handleClickNext: this.handleClickNext,\n handleClickPrevious: this.handleClickPrevious\n }}\n />\n </Host>\n );\n }\n}\n"],"version":3}
|