@justifi/webcomponents 4.17.0 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-80336968.js → Analytics-ff013cbc.js} +1 -1
- package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +13 -13
- package/dist/cjs/business-details-core.cjs.entry.js +6 -9
- package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
- package/dist/cjs/business.service-f63650f5.js +32 -0
- package/dist/cjs/button-3f400a66.js +26 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +437 -172
- package/dist/cjs/form-control-date_3.cjs.entry.js +15 -9
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/get-payout-csv-f3aee6d0.js +48 -0
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{index-b4498996.js → index-fb499e95.js} +15 -3
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/{insurance-state-3f044af7.js → insurance-state-80e24caf.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +197 -482
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +14 -9
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-details.cjs.entry.js +4 -7
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +12 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-form.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +9 -8
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -65
- package/dist/cjs/justifi-payments-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -11
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +16 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +14 -9
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-7b63c02b.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/{payload-parsers-78445405.js → payload-parsers-1cbc3b57.js} +2 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +11 -14
- package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
- package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +73 -44
- package/dist/cjs/payout-details-core.cjs.entry.js +19 -8
- package/dist/cjs/payouts-list-core.cjs.entry.js +96 -59
- package/dist/cjs/skeleton-748c5dde.js +43 -0
- package/dist/cjs/styled-host-cc053016.js +14 -0
- package/dist/cjs/table-loading-state-8b406852.js +38 -0
- package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
- package/dist/cjs/{utils-0c3168ef.js → utils-c1d2e426.js} +1 -1
- package/dist/cjs/{utils-742da2e3.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -0
- package/dist/collection/api/services/payout.service.js +5 -0
- package/dist/collection/assets/download-icon.js +2 -0
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/billing-form/billing-form.css +2 -8162
- package/dist/collection/components/billing-form/billing-form.js +4 -3
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +2 -3
- package/dist/collection/components/business-details/business-details-core.js +5 -14
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +2 -3
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +2 -3
- package/dist/collection/components/business-details/owner-details/owner-details.js +2 -3
- package/dist/collection/components/business-details/representative-details/representative-details.js +2 -3
- package/dist/collection/components/business-details/shared-business-details.css +3 -0
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form.css +5 -8768
- package/dist/collection/components/business-forms/business-form/business-form.js +4 -3
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +520 -0
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +19 -8
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -12
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +5 -763
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -2
- package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
- package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
- package/dist/collection/components/business-forms/utils/payload-parsers.js +2 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.css +3 -8147
- package/dist/collection/components/checkout/checkout-core.js +7 -7
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/form-check-input.css +20 -0
- package/dist/collection/components/checkout/header.css +4 -0
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.css +1 -7088
- package/dist/collection/components/checkout/payment-method-options.js +4 -4
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +2 -2
- package/dist/collection/components/checkout/sezzle-payment-method.js +2 -2
- package/dist/collection/components/details/details.js +3 -12
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +11 -5
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +0 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +2 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +1 -573
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +6 -8183
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +6 -7
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -2
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -14
- package/dist/collection/components/payment-details/payment-details-core.js +9 -18
- package/dist/collection/components/payment-form/payment-form.css +3 -2513
- package/dist/collection/components/payment-form/payment-form.js +6 -7
- package/dist/collection/components/payment-form/payment-method-selector.css +5 -1881
- package/dist/collection/components/payment-form/payment-method-selector.js +2 -3
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +70 -48
- package/dist/collection/components/payments-list/payments-list.js +3 -0
- package/dist/collection/components/payout-details/get-payout-csv.js +19 -0
- package/dist/collection/components/payout-details/payout-details-core.js +37 -12
- package/dist/collection/components/payout-details/payout-details.js +11 -4
- package/dist/collection/components/payouts-list/payouts-list-core.js +111 -65
- package/dist/collection/components/payouts-list/payouts-list.js +14 -6
- package/dist/collection/components/refund-form/refund-form.css +1 -7737
- package/dist/collection/components/refund-form/refund-form.js +4 -3
- package/dist/collection/ui-components/button-spinner.js +2 -0
- package/dist/collection/ui-components/button.js +19 -0
- package/dist/collection/ui-components/index.js +7 -0
- package/dist/collection/ui-components/skeleton.js +39 -0
- package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
- package/dist/collection/ui-components/table-empty-state.js +8 -0
- package/dist/collection/ui-components/table-error-state.js +8 -0
- package/dist/collection/ui-components/table-loading-state.js +8 -0
- package/dist/collection/utils/utils.js +0 -21
- package/dist/docs.json +2153 -1711
- package/dist/esm/{Analytics-c52faca6.js → Analytics-33b8fa8d.js} +1 -1
- package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
- package/dist/esm/additional-questions-details_5.entry.js +13 -13
- package/dist/esm/business-details-core.entry.js +6 -9
- package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
- package/dist/esm/business.service-74bd1212.js +29 -0
- package/dist/esm/button-34e75e0f.js +24 -0
- package/dist/esm/form-alert_5.entry.js +6 -6
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +434 -173
- package/dist/esm/form-control-date_3.entry.js +15 -9
- package/dist/esm/form-control-error-text_4.entry.js +3 -3
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +2 -2
- package/dist/esm/get-payout-csv-b494abfe.js +45 -0
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{index-4bd1eae9.js → index-57431c24.js} +15 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/{insurance-state-09754ab9.js → insurance-state-8ce01e59.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +198 -483
- package/dist/esm/justifi-bank-account-form.entry.js +4 -4
- package/dist/esm/justifi-billing-form_2.entry.js +6 -5
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +4 -4
- package/dist/esm/justifi-checkout-core.entry.js +14 -9
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-details.entry.js +4 -7
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +12 -9
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +6 -6
- package/dist/esm/justifi-payment-form.entry.js +11 -11
- package/dist/esm/justifi-payment-method-form.entry.js +5 -5
- package/dist/esm/justifi-payment-method-selector.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning-core.entry.js +9 -8
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -64
- package/dist/esm/justifi-payments-list.entry.js +6 -6
- package/dist/esm/justifi-payout-details.entry.js +15 -10
- package/dist/esm/justifi-payouts-list.entry.js +15 -12
- package/dist/esm/justifi-refund-form.entry.js +5 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +14 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-8ab448a3.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/{payload-parsers-57289fc4.js → payload-parsers-acb719d1.js} +2 -0
- package/dist/esm/payment-details-core.entry.js +11 -14
- package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
- package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +73 -44
- package/dist/esm/payout-details-core.entry.js +19 -8
- package/dist/esm/payouts-list-core.entry.js +96 -59
- package/dist/esm/skeleton-145a80d4.js +41 -0
- package/dist/esm/styled-host-ab9da520.js +12 -0
- package/dist/esm/table-loading-state-356c7215.js +34 -0
- package/dist/esm/{utils-1e583166.js → utils-01413a95.js} +2 -2
- package/dist/esm/{utils-c7b3f21a.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions-details2.js +3 -4
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +6 -5
- package/dist/module/business-additional-questions-form-step-core.js +141 -0
- package/dist/module/business-additional-questions-form-step.js +55 -100
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +4 -4
- package/dist/module/business-core-info-form-step-core.js +151 -0
- package/dist/module/business-core-info-form-step.js +57 -106
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-details-core2.js +5 -8
- package/dist/module/business-document-upload-form-step.js +34 -35
- package/dist/module/business-document-upload-input-group.js +2 -2
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +5 -8
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +216 -0
- package/dist/module/business-owners-form-step.js +67 -154
- package/dist/module/business-representative-form-inputs.js +85 -0
- package/dist/module/business-representative-form-step-core.js +152 -0
- package/dist/module/business-representative-form-step.js +63 -111
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business-terms-conditions-text.js +2 -2
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +34 -35
- package/dist/module/details.js +3 -6
- package/dist/module/exported-parts.js +40 -0
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +11 -5
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/generic-info-details2.js +3 -4
- package/dist/module/get-payout-csv.js +45 -0
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/input-handlers.js +16 -0
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +5 -4
- package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step-core.js +6 -0
- package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-inputs.js +6 -0
- package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step-core.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +27 -33
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step-core.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-form.js +8 -8
- package/dist/module/justifi-payment-provisioning.js +98 -114
- package/dist/module/justifi-payments-list.js +17 -5
- package/dist/module/justifi-payout-details.js +12 -6
- package/dist/module/justifi-payouts-list.js +28 -11
- package/dist/module/justifi-refund-form.js +5 -4
- package/dist/module/justifi-season-interruption-insurance.js +7 -3
- package/dist/module/legal-address-details2.js +3 -4
- package/dist/module/legal-address-form-step-core.js +138 -0
- package/dist/module/legal-address-form-step.js +53 -98
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/owner-details2.js +3 -4
- package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
- package/dist/module/owner-form-core.js +6 -0
- package/dist/module/owner-form-core2.js +264 -0
- package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
- package/dist/module/owner-form-inputs.js +6 -0
- package/dist/module/owner-form-inputs2.js +85 -0
- package/dist/module/owner-form.js +62 -188
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -9
- package/dist/module/payload-parsers.js +2 -0
- package/dist/module/payment-details-core2.js +9 -12
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +7 -4
- package/dist/module/payment-method-selector.js +3 -4
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +104 -60
- package/dist/module/payment-provisioning-form-buttons.js +2 -2
- package/dist/module/payment-provisioning-form-steps.js +94 -52
- package/dist/module/payments-list-core2.js +85 -45
- package/dist/module/payout-details-core2.js +18 -6
- package/dist/module/payouts-list-core2.js +110 -60
- package/dist/module/representative-details2.js +3 -4
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +12 -7
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +12 -0
- package/dist/module/utils2.js +1 -31
- package/dist/module/utils3.js +23 -26
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Payment.d.ts +0 -28
- package/dist/types/api/services/business.service.d.ts +10 -0
- package/dist/types/api/services/payout.service.d.ts +2 -0
- package/dist/types/assets/download-icon.d.ts +1 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-core.d.ts +0 -1
- package/dist/types/components/form/utils.d.ts +0 -1
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +13 -2
- package/dist/types/components/payments-list/payments-list.d.ts +3 -0
- package/dist/types/components/payout-details/get-payout-csv.d.ts +7 -0
- package/dist/types/components/payout-details/payout-details-core.d.ts +2 -0
- package/dist/types/components/payout-details/payout-details.d.ts +2 -1
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +13 -3
- package/dist/types/components/payouts-list/payouts-list.d.ts +5 -1
- package/dist/types/components.d.ts +337 -482
- package/dist/types/ui-components/button-spinner.d.ts +1 -0
- package/dist/types/ui-components/button.d.ts +10 -0
- package/dist/types/ui-components/index.d.ts +7 -0
- package/dist/types/ui-components/skeleton.d.ts +13 -0
- package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
- package/dist/types/ui-components/table-empty-state.d.ts +6 -0
- package/dist/types/ui-components/table-error-state.d.ts +6 -0
- package/dist/types/ui-components/table-loading-state.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +0 -3
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-17e4246f.entry.js +1 -0
- package/dist/webcomponents/{p-6006e085.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/p-1a43e355.entry.js +19 -0
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/{p-f7b6dcc4.js → p-2338affa.js} +1 -1
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-5309e887.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-e7915927.entry.js → p-301e0493.entry.js} +1 -1
- package/dist/webcomponents/p-304dd644.entry.js +1 -0
- package/dist/webcomponents/p-30a493cd.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/p-487b72a8.entry.js +1 -0
- package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
- package/dist/webcomponents/{p-b7d9d9fa.js → p-4b4580dd.js} +1 -1
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -0
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/p-623a4479.entry.js +1 -0
- package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
- package/dist/webcomponents/{p-edb605b3.js → p-63acf322.js} +1 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -0
- package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
- package/dist/webcomponents/p-85fc69e5.js +1 -0
- package/dist/webcomponents/p-8603348a.js +1 -0
- package/dist/webcomponents/{p-a34c28af.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-a90a6703.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-95c18035.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-fcf42299.entry.js → p-99022846.entry.js} +1 -1
- package/dist/webcomponents/p-9c9c7dac.js +1 -0
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bc92235c.entry.js +1 -0
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/p-c4b87db2.entry.js +1 -0
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-c2d6a5e2.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-1c60004a.entry.js → p-d1fbeae5.entry.js} +1 -1
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -0
- package/dist/webcomponents/{p-cb68e8fa.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/{p-9936c393.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/p-e7067ef2.entry.js +1 -0
- package/dist/webcomponents/{p-84b3cead.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/p-fad19d75.js +2 -0
- package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +6 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/SubAccount-135ff8c8.js +0 -107
- package/dist/cjs/business.service-9214509a.js +0 -13
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -113
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -89
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -162
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -80
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -84
- package/dist/cjs/payout.service-eec372aa.js +0 -22
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -74
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -23
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -23
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.css +0 -7348
- package/dist/collection/components/business-details/business-details.css +0 -6446
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.css +0 -7348
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.css +0 -7348
- package/dist/collection/components/business-details/owner-details/owner-details.css +0 -7348
- package/dist/collection/components/business-details/representative-details/representative-details.css +0 -7348
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -9211
- package/dist/collection/components/business-list/business-list.css +0 -579
- package/dist/collection/components/business-list/business-list.js +0 -194
- package/dist/collection/components/business-list/business-list.stories.js +0 -68
- package/dist/collection/components/business-list/example.js +0 -12
- package/dist/collection/components/details/details.css +0 -7993
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.css +0 -0
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -153
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/payment-details/payment-details.css +0 -7993
- package/dist/collection/components/payments-list/payments-list.css +0 -579
- package/dist/collection/components/payout-details/payout-details.css +0 -7993
- package/dist/collection/components/payouts-list/payouts-list.css +0 -579
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.css +0 -579
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -214
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -583
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -70
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -48
- package/dist/collection/components/subaccount-details/subaccount-details.css +0 -7993
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -145
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -49
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -49
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -49
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.css +0 -7352
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -48
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
- package/dist/collection/components/table/table.css +0 -8092
- package/dist/collection/components/table/table.js +0 -223
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/justifi-business-list.entry.js +0 -109
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -85
- package/dist/esm/justifi-proceeds-list.entry.js +0 -158
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -76
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -79
- package/dist/esm/payout.service-28b9594f.js +0 -20
- package/dist/esm/subaccount-account-details_4.entry.js +0 -67
- package/dist/esm/subaccount-bank-details.entry.js +0 -19
- package/dist/esm/subaccount-terms-details.entry.js +0 -19
- package/dist/module/SubAccount.js +0 -105
- package/dist/module/justifi-business-list.d.ts +0 -11
- package/dist/module/justifi-business-list.js +0 -150
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -127
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -201
- package/dist/module/justifi-skeleton.js +0 -6
- package/dist/module/justifi-subaccount-details.d.ts +0 -11
- package/dist/module/justifi-subaccount-details.js +0 -136
- package/dist/module/justifi-subaccounts-list.d.ts +0 -11
- package/dist/module/justifi-subaccounts-list.js +0 -144
- package/dist/module/justifi-table.js +0 -6
- package/dist/module/payout.service.js +0 -20
- package/dist/module/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -39
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -40
- package/dist/module/subaccount-merchant-details.d.ts +0 -11
- package/dist/module/subaccount-merchant-details.js +0 -6
- package/dist/module/subaccount-merchant-details2.js +0 -38
- package/dist/module/subaccount-owners-details.d.ts +0 -11
- package/dist/module/subaccount-owners-details.js +0 -6
- package/dist/module/subaccount-owners-details2.js +0 -38
- package/dist/module/subaccount-representative-details.d.ts +0 -11
- package/dist/module/subaccount-representative-details.js +0 -6
- package/dist/module/subaccount-representative-details2.js +0 -38
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -40
- package/dist/module/table.js +0 -94
- package/dist/types/api/Proceed.d.ts +0 -60
- package/dist/types/api/SubAccount.d.ts +0 -163
- package/dist/types/components/business-list/business-list.d.ts +0 -48
- package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
- package/dist/types/components/table/table.d.ts +0 -23
- package/dist/types/components/table/utils.d.ts +0 -3
- package/dist/webcomponents/p-00de4ae0.entry.js +0 -1
- package/dist/webcomponents/p-015ba24e.entry.js +0 -1
- package/dist/webcomponents/p-023fe908.entry.js +0 -1
- package/dist/webcomponents/p-0575daac.js +0 -1
- package/dist/webcomponents/p-0a09edbb.entry.js +0 -1
- package/dist/webcomponents/p-0fc18c89.entry.js +0 -1
- package/dist/webcomponents/p-100cb35c.entry.js +0 -1
- package/dist/webcomponents/p-189dee9f.entry.js +0 -1
- package/dist/webcomponents/p-30a7bebc.entry.js +0 -19
- package/dist/webcomponents/p-378bb067.entry.js +0 -1
- package/dist/webcomponents/p-404d7c56.entry.js +0 -1
- package/dist/webcomponents/p-43326623.entry.js +0 -1
- package/dist/webcomponents/p-4c5f9260.entry.js +0 -1
- package/dist/webcomponents/p-61e486ad.entry.js +0 -1
- package/dist/webcomponents/p-64d1aeb8.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68f3a7b0.entry.js +0 -1
- package/dist/webcomponents/p-738049aa.entry.js +0 -1
- package/dist/webcomponents/p-739f1e09.entry.js +0 -1
- package/dist/webcomponents/p-7f77d91f.entry.js +0 -1
- package/dist/webcomponents/p-8805d083.entry.js +0 -1
- package/dist/webcomponents/p-95c8c313.entry.js +0 -1
- package/dist/webcomponents/p-97220d5b.entry.js +0 -1
- package/dist/webcomponents/p-98985c7d.entry.js +0 -1
- package/dist/webcomponents/p-9d03464e.entry.js +0 -1
- package/dist/webcomponents/p-a63a6fb9.js +0 -2
- package/dist/webcomponents/p-a6477232.entry.js +0 -1
- package/dist/webcomponents/p-b1a24d24.entry.js +0 -1
- package/dist/webcomponents/p-b27d2ce1.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-be049573.entry.js +0 -1
- package/dist/webcomponents/p-bfe69314.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-c69713c2.entry.js +0 -1
- package/dist/webcomponents/p-c8c08fe3.js +0 -1
- package/dist/webcomponents/p-ca39c89f.js +0 -1
- package/dist/webcomponents/p-d779f2f2.entry.js +0 -1
- package/dist/webcomponents/p-da313a7e.entry.js +0 -1
- package/dist/webcomponents/p-e04f7070.entry.js +0 -1
- package/dist/webcomponents/p-eb142b8a.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/webcomponents/p-efe744ce.entry.js +0 -1
- package/dist/webcomponents/p-f6858597.entry.js +0 -1
- package/dist/webcomponents/p-f68cf935.entry.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -2,21 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-fb499e95.js');
|
|
6
6
|
const Pagination = require('./Pagination-0da8f095.js');
|
|
7
|
-
require('./Payment-
|
|
7
|
+
require('./Payment-1a8a8ca6.js');
|
|
8
8
|
const Payout = require('./Payout-a2dd7b01.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-89d86e29.js');
|
|
10
|
+
const ComponentError = require('./ComponentError-233ac749.js');
|
|
10
11
|
const exportedParts = require('./exported-parts-b18c68c2.js');
|
|
12
|
+
const styledHost = require('./styled-host-cc053016.js');
|
|
13
|
+
const tableLoadingState = require('./table-loading-state-8b406852.js');
|
|
11
14
|
|
|
12
|
-
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-color:#212529;--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-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--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}";
|
|
13
|
-
|
|
15
|
+
const DownloadIcon = (props) => (index.h("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24' }, props),
|
|
16
|
+
index.h("path", { d: 'M12 15.5l-5-5 1.41-1.41L12 12.67l3.59-3.58L17 10.5l-5 5z' }),
|
|
17
|
+
index.h("path", { d: 'M11 4h2v9h-2z' }),
|
|
18
|
+
index.h("path", { d: 'M5 18h14v2H5z' })));
|
|
14
19
|
|
|
15
20
|
const PayoutsListCore = class {
|
|
16
21
|
constructor(hostRef) {
|
|
17
22
|
index.registerInstance(this, hostRef);
|
|
18
23
|
this.rowClicked = index.createEvent(this, "payout-row-clicked", 7);
|
|
19
24
|
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
25
|
+
this.downloadCSV = (payoutId) => {
|
|
26
|
+
this.getPayoutCSV({
|
|
27
|
+
payoutId,
|
|
28
|
+
onError: () => {
|
|
29
|
+
this.errorEvent.emit({
|
|
30
|
+
errorCode: ComponentError.ComponentErrorCodes.FETCH_ERROR,
|
|
31
|
+
message: 'Failed to download CSV',
|
|
32
|
+
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
this.handleDateChange = (name, value) => {
|
|
38
|
+
this.params = Object.assign(Object.assign({}, this.params), { [name]: value });
|
|
39
|
+
};
|
|
40
|
+
this.handleClickPrevious = (beforeCursor) => {
|
|
41
|
+
const newParams = Object.assign({}, this.params);
|
|
42
|
+
delete newParams.after_cursor;
|
|
43
|
+
this.params = Object.assign(Object.assign({}, newParams), { before_cursor: beforeCursor });
|
|
44
|
+
};
|
|
45
|
+
this.handleClickNext = (afterCursor) => {
|
|
46
|
+
const newParams = Object.assign({}, this.params);
|
|
47
|
+
delete newParams.before_cursor;
|
|
48
|
+
this.params = Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor });
|
|
49
|
+
};
|
|
20
50
|
this.mapStatusToBadge = (status) => {
|
|
21
51
|
switch (status) {
|
|
22
52
|
case Payout.PayoutStatuses.scheduled:
|
|
@@ -28,36 +58,33 @@ const PayoutsListCore = class {
|
|
|
28
58
|
case Payout.PayoutStatuses.canceled:
|
|
29
59
|
return `<span class="badge bg-danger" title='Transfer to your bank account failed'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
|
|
30
60
|
case Payout.PayoutStatuses.forwarded:
|
|
31
|
-
return `<span class="badge bg-secondary" title='
|
|
61
|
+
return `<span class="badge bg-secondary" title='The funds have been forwarded to your next successful payout'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
|
|
32
62
|
case Payout.PayoutStatuses.paid:
|
|
33
63
|
return `<span class="badge bg-success" title='Successfully deposited into your bank account'>${Payout.PayoutStatusesSafeNames[status]}</span>`;
|
|
34
64
|
}
|
|
35
65
|
};
|
|
36
|
-
this.
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this.handleClickNext = (afterCursor) => {
|
|
42
|
-
const newParams = Object.assign({}, this.params);
|
|
43
|
-
delete newParams.before_cursor;
|
|
44
|
-
this.params = (Object.assign(Object.assign({}, newParams), { after_cursor: afterCursor }));
|
|
66
|
+
this.rowClickHandler = (e) => {
|
|
67
|
+
const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
|
|
68
|
+
if (!clickedPayoutID)
|
|
69
|
+
return;
|
|
70
|
+
this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
|
|
45
71
|
};
|
|
46
72
|
this.getPayouts = undefined;
|
|
73
|
+
this.getPayoutCSV = undefined;
|
|
47
74
|
this.payouts = [];
|
|
48
75
|
this.loading = true;
|
|
49
76
|
this.errorMessage = undefined;
|
|
50
77
|
this.paging = Pagination.pagingDefaults;
|
|
51
78
|
this.params = undefined;
|
|
52
79
|
}
|
|
80
|
+
updateOnPropChange() {
|
|
81
|
+
this.fetchData();
|
|
82
|
+
}
|
|
53
83
|
componentWillLoad() {
|
|
54
84
|
if (this.getPayouts) {
|
|
55
85
|
this.fetchData();
|
|
56
86
|
}
|
|
57
87
|
}
|
|
58
|
-
updateOnPropChange() {
|
|
59
|
-
this.fetchData();
|
|
60
|
-
}
|
|
61
88
|
fetchData() {
|
|
62
89
|
this.loading = true;
|
|
63
90
|
this.getPayouts({
|
|
@@ -72,58 +99,68 @@ const PayoutsListCore = class {
|
|
|
72
99
|
this.errorEvent.emit({
|
|
73
100
|
errorCode: code,
|
|
74
101
|
message: error,
|
|
75
|
-
severity
|
|
102
|
+
severity,
|
|
76
103
|
});
|
|
77
104
|
this.loading = false;
|
|
78
105
|
},
|
|
79
106
|
});
|
|
80
107
|
}
|
|
81
|
-
|
|
108
|
+
get entityId() {
|
|
109
|
+
return this.payouts.map((payout) => payout.id);
|
|
110
|
+
}
|
|
111
|
+
get columnData() {
|
|
112
|
+
return [
|
|
113
|
+
['Paid Out On', 'The date each transaction occurred'],
|
|
114
|
+
['Type', 'The type of each transaction'],
|
|
115
|
+
['Account', 'The ID of the account associated with each payout'],
|
|
116
|
+
['Paid Out To', 'The bank account to which each payout was transferred'],
|
|
117
|
+
['Payments', 'Sum of payments in each payout'],
|
|
118
|
+
['Refunds', 'Sum of refunds in each payout'],
|
|
119
|
+
['Fees', 'Sum of fees in each payout'],
|
|
120
|
+
['Other', 'Sum of less common transactions in each payout'],
|
|
121
|
+
['Payout Amount', 'The net sum of all transactions in each payout'],
|
|
122
|
+
['Status', 'The real-time status of each payout'],
|
|
123
|
+
['Actions', ''],
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
get rowData() {
|
|
127
|
+
return this.payouts.map((payout) => [
|
|
128
|
+
{
|
|
129
|
+
type: 'head',
|
|
130
|
+
value: `
|
|
131
|
+
<div class='fw-bold'>${utils.formatDate(payout.created_at)}</div>
|
|
132
|
+
<div class='fw-bold'>${utils.formatTime(payout.created_at)}</div>
|
|
133
|
+
`,
|
|
134
|
+
},
|
|
135
|
+
payout.payout_type,
|
|
136
|
+
payout.account_id,
|
|
137
|
+
`${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
|
|
138
|
+
utils.formatCurrency(payout.payments_total),
|
|
139
|
+
utils.formatCurrency(payout.refunds_total),
|
|
140
|
+
utils.formatCurrency(payout.fees_total),
|
|
141
|
+
utils.formatCurrency(payout.other_total),
|
|
142
|
+
utils.formatCurrency(payout.amount),
|
|
143
|
+
{ type: 'inner', value: this.mapStatusToBadge(payout.status) },
|
|
144
|
+
(index.h(DownloadIcon, { title: "Export CSV", onClick: () => this.downloadCSV(payout.id), style: { height: '24px', width: '24px', cursor: 'pointer' } })),
|
|
145
|
+
]);
|
|
146
|
+
}
|
|
147
|
+
get showEmptyState() {
|
|
148
|
+
return !this.loading && !this.errorMessage && this.rowData.length < 1;
|
|
149
|
+
}
|
|
150
|
+
get showErrorState() {
|
|
151
|
+
return !this.loading && !!this.errorMessage;
|
|
152
|
+
}
|
|
153
|
+
get showRowData() {
|
|
154
|
+
return !this.showEmptyState && !this.showErrorState;
|
|
155
|
+
}
|
|
82
156
|
render() {
|
|
83
|
-
return (index.h(
|
|
84
|
-
|
|
85
|
-
if (!clickedPayoutID) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
this.rowClicked.emit(this.payouts.find((payout) => payout.id === clickedPayoutID));
|
|
89
|
-
}, columnData: [
|
|
90
|
-
['Paid Out On', 'The date each transaction occurred'],
|
|
91
|
-
['Type', 'The type of each transaction'],
|
|
92
|
-
['Account', 'The ID of the account associated with each payout'],
|
|
93
|
-
['Paid Out To', 'The bank account to which each payout was transferred'],
|
|
94
|
-
['Payments', 'Sum of payments in each payout'],
|
|
95
|
-
['Refunds', 'Sum of refunds in each payout'],
|
|
96
|
-
['Fees', 'Sum of fees in each payout'],
|
|
97
|
-
['Other', 'Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)'],
|
|
98
|
-
['Payout Amount', 'The net sum of all transactions in each payout. This is the amount you\'ll see reflected on your bank statement'],
|
|
99
|
-
['Status', 'The real-time status of each payout']
|
|
100
|
-
], entityId: this.payouts.map((payout) => payout.id), rowData: this.payouts.map((payout) => ([
|
|
101
|
-
{
|
|
102
|
-
type: 'head',
|
|
103
|
-
value: `
|
|
104
|
-
<div class='fw-bold'>${utils.formatDate(payout.created_at)}</div>
|
|
105
|
-
<div class='fw-bold'>${utils.formatTime(payout.created_at)}</div>
|
|
106
|
-
`,
|
|
107
|
-
},
|
|
108
|
-
payout.payout_type,
|
|
109
|
-
payout.account_id,
|
|
110
|
-
`${payout.bank_account.full_name} ${payout.bank_account.account_number_last4}`,
|
|
111
|
-
utils.formatCurrency(payout.payments_total),
|
|
112
|
-
utils.formatCurrency(payout.refunds_total),
|
|
113
|
-
utils.formatCurrency(payout.fees_total),
|
|
114
|
-
utils.formatCurrency(payout.other_total),
|
|
115
|
-
utils.formatCurrency(payout.amount),
|
|
116
|
-
{
|
|
117
|
-
type: 'inner',
|
|
118
|
-
value: this.mapStatusToBadge(payout.status)
|
|
119
|
-
}
|
|
120
|
-
])), loading: this.loading, "error-message": this.errorMessage, params: this.params, paging: Object.assign(Object.assign({}, this.paging), { handleClickNext: this.handleClickNext, handleClickPrevious: this.handleClickPrevious }) })));
|
|
157
|
+
return (index.h(styledHost.StyledHost, { key: '594c52003f897f4c50f79935e42a7042fb5ec168', exportedparts: exportedParts.tableExportedParts }, index.h("div", { key: 'f2b1d971e1e7bc5596459c071c3aa931ba4cb4b9', class: "row gy-3 mb-4" }, index.h("div", { key: 'd98e3ed56421493a60bd0a285079aa99ae705506', class: "col-2" }, index.h("form-control-date", { key: 'c9c899884bcc6fa6d306b95473ef0a7354e57bd5', name: "created_after", label: "Date from:", inputHandler: this.handleDateChange })), index.h("div", { key: '0059a75bf2f478b107d59bd9d7cc29de10dffe57', class: "col-2" }, index.h("form-control-date", { key: 'ef9a31ac8a8e7336386664b70289ee34677152a4', name: "created_before", label: "Date to:", inputHandler: this.handleDateChange }))), index.h("div", { key: '65da1114a66ac4cdf8d6ec012a42b2f760af5c76', class: "table-wrapper" }, index.h("table", { key: 'd68d8f61835cc4dc5dc988ff61843e6254494ace', class: "table table-hover" }, index.h("thead", { key: 'aa691db8fbfbcdad59acbdc1ef38497b552928ab', class: "table-head sticky-top", part: "table-head" }, index.h("tr", { key: 'aa9f61cbf05b9420026861cb14e6a30a6c9e347e', class: "table-light text-nowrap", part: "table-head-row" }, this.columnData.map((column) => (index.h("th", { part: "table-head-cell", scope: "col", title: Array.isArray(column) ? column[1] : '' }, Array.isArray(column) ? column[0] : column))))), index.h("tbody", { key: 'cf0127f26e8bc5b7afbbfc4a36fab4de948d1727', class: "table-body", part: "table-body" }, index.h(tableLoadingState.TableLoadingState, { key: 'd6b832786c4959176974c7a343442c8d1c50b5c2', columnSpan: this.columnData.length, isLoading: this.loading }), index.h(tableLoadingState.TableEmptyState, { key: '398a20957f76ba14e1b0677fbd6fbfbacce61fbb', isEmpty: this.showEmptyState, columnSpan: this.columnData.length }), index.h(tableLoadingState.TableErrorState, { key: 'd9f755a07a6f8cd4967eac60beff92f36322dcdd', columnSpan: this.columnData.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
158
|
+
this.rowData.map((data, index$1) => (index.h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index$1], onClick: this.rowClickHandler, part: `table-row ${index$1 % 2 ? 'table-row-even' : 'table-row-odd'}` }, data.map((dataEntry) => ((dataEntry === null || dataEntry === void 0 ? void 0 : dataEntry.type) ? (index.h("td", { part: "table-cell", innerHTML: dataEntry.value })) : (index.h("td", { part: "table-cell" }, dataEntry)))))))), this.paging && (index.h("tfoot", { key: '503fa3a3a7ffe5d52b614153b286dd0326c02091', class: "sticky-bottom" }, index.h("tr", { key: 'e3af74b96bfc1f5ac1f0f0655eaed096102d0e89', class: "table-light align-middle" }, index.h("td", { key: 'a53f9d37181ea29a9fcb6ab46b2daf7cc66509be', part: "pagination-bar", colSpan: this.columnData.length }, index.h("pagination-menu", { key: 'b0779289444747e0b18bb63e6a17cdc89bd390ca', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }), params: this.params })))))))));
|
|
121
159
|
}
|
|
122
160
|
static get watchers() { return {
|
|
123
161
|
"params": ["updateOnPropChange"],
|
|
124
162
|
"getPayouts": ["updateOnPropChange"]
|
|
125
163
|
}; }
|
|
126
164
|
};
|
|
127
|
-
PayoutsListCore.style = PayoutsListCoreStyle0;
|
|
128
165
|
|
|
129
166
|
exports.payouts_list_core = PayoutsListCore;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-fb499e95.js');
|
|
4
|
+
|
|
5
|
+
// This component relies on "src/styles/animations.css"
|
|
6
|
+
// where it is defined the pulsation animation.
|
|
7
|
+
// Because of shadow-dom, it's not possible to add it to the root.css.
|
|
8
|
+
// Don't forget to include this file in the `styleUrls`
|
|
9
|
+
// property of the web component that will render the Skeleton
|
|
10
|
+
const Skeleton = ({ component = 'div', height, width, variant = 'text', componentClassName, styles = {}, }) => {
|
|
11
|
+
const getVariantStyle = () => {
|
|
12
|
+
if (variant === 'text') {
|
|
13
|
+
return {
|
|
14
|
+
marginTop: 0,
|
|
15
|
+
marginBottom: 0,
|
|
16
|
+
height: 'auto',
|
|
17
|
+
transformOrigin: '0 55%',
|
|
18
|
+
transform: 'scale(1, 0.60)',
|
|
19
|
+
borderRadius: '4px/6.67px',
|
|
20
|
+
'::before': {
|
|
21
|
+
content: '"\\00a0"',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
else if (variant === 'circular') {
|
|
26
|
+
return {
|
|
27
|
+
borderRadius: '50%',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
else if (variant === 'rounded') {
|
|
31
|
+
return {
|
|
32
|
+
borderRadius: '4px',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return {};
|
|
36
|
+
};
|
|
37
|
+
const combinedStyle = Object.assign(Object.assign(Object.assign({}, styles), getVariantStyle()), { width,
|
|
38
|
+
height });
|
|
39
|
+
const TagType = component;
|
|
40
|
+
return (index.h(TagType, { class: componentClassName, style: combinedStyle, part: "skeleton" }));
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
exports.Skeleton = Skeleton;
|