@justifi/webcomponents 4.18.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-d4aa8c07.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 +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- 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 +5 -5
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
- package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- 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 +69 -40
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
- 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-8c3bf659.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -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.js +2 -2
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- 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.js +2 -2
- 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 +17 -18
- 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 -1
- 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.js +1 -1
- 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/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +4 -5
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +2 -2
- 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 +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-form/payment-form.js +4 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +66 -38
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- 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 +2080 -1746
- package/dist/esm/{Analytics-29fac206.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 +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- 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 +5 -5
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
- package/dist/esm/form-control-date_3.entry.js +130 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +7 -6
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -10
- package/dist/esm/justifi-payment-method-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/payment-details-core.entry.js +10 -10
- 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 +69 -40
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/payouts-list-core.entry.js +90 -74
- 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-56719d07.js → utils-01413a95.js} +1 -1
- package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +3 -3
- 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-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 +1 -1
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +27 -32
- package/dist/module/details.js +1 -1
- 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/get-payout-csv.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- 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 +2 -2
- 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 +5 -6
- package/dist/module/justifi-payment-provisioning.js +97 -108
- package/dist/module/justifi-payments-list.js +8 -14
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +8 -13
- package/dist/module/justifi-refund-form.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +7 -2
- 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/{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 +3 -3
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +100 -62
- 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 +71 -49
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +92 -82
- 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 +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +4 -4
- 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/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 +12 -2
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
- package/dist/types/components.d.ts +309 -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-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-66758365.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-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
- package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
- package/dist/webcomponents/{p-667a5aa8.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-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
- package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
- package/dist/webcomponents/{p-092e080c.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-49b8e112.js → p-8603348a.js} +1 -1
- package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-9631b768.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-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-d5612f35.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-e1651130.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
- package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
- 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/form-control-date.cjs.entry.js +0 -43
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
- package/dist/cjs/styled-host-b8bed12a.js +0 -14
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
- package/dist/collection/components/business-list/business-list.js +0 -185
- 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/payment-balance-transactions/payment-balance-transactions.js +0 -143
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -11
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
- 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 -7
- package/dist/collection/components/table/table.js +0 -222
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/collection/utils/styled-host/styled-host.js +0 -6
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/form-control-date.entry.js +0 -39
- package/dist/esm/form-control-error-text_2.entry.js +0 -31
- package/dist/esm/form-control-number-masked_2.entry.js +0 -88
- package/dist/esm/justifi-business-list.entry.js +0 -106
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
- package/dist/esm/justifi-proceeds-list.entry.js +0 -155
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -73
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -75
- package/dist/esm/styled-host-57aae7fa.js +0 -12
- package/dist/esm/subaccount-account-details_4.entry.js +0 -51
- package/dist/esm/subaccount-bank-details.entry.js +0 -15
- package/dist/esm/subaccount-terms-details.entry.js +0 -15
- 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 -147
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -123
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -198
- 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 -133
- 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/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -34
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -35
- 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 -33
- 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 -33
- 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 -33
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -35
- package/dist/module/table.js +0 -93
- 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/types/utils/styled-host/styled-host.d.ts +0 -3
- package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
- package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
- package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
- package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
- package/dist/webcomponents/p-2306d44d.entry.js +0 -1
- package/dist/webcomponents/p-2af3672b.entry.js +0 -1
- package/dist/webcomponents/p-390157c9.entry.js +0 -1
- package/dist/webcomponents/p-412c7a22.entry.js +0 -1
- package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
- package/dist/webcomponents/p-54287db6.entry.js +0 -1
- package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
- package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
- package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68fd8283.js +0 -1
- package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
- package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
- package/dist/webcomponents/p-76180bb4.entry.js +0 -1
- package/dist/webcomponents/p-77dc159c.entry.js +0 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
- package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
- package/dist/webcomponents/p-87932e16.js +0 -1
- package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
- package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
- package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
- package/dist/webcomponents/p-d083a342.entry.js +0 -1
- package/dist/webcomponents/p-e46929a1.entry.js +0 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare class Skeleton {
|
|
2
|
-
component: string;
|
|
3
|
-
height: string | number;
|
|
4
|
-
width: string | number;
|
|
5
|
-
variant: 'circular' | 'rectangular' | 'rounded' | 'text';
|
|
6
|
-
componentClassName: string;
|
|
7
|
-
styles: {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
};
|
|
10
|
-
private getVariantStyle;
|
|
11
|
-
render(): any;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IOnboardingData, SubAccount } from '../../api/SubAccount';
|
|
2
|
-
export declare class SubaccountDetails {
|
|
3
|
-
accountId: string;
|
|
4
|
-
subaccountId: string;
|
|
5
|
-
authToken: string;
|
|
6
|
-
onboardingData: IOnboardingData;
|
|
7
|
-
subaccount: SubAccount;
|
|
8
|
-
loading: boolean;
|
|
9
|
-
errorMessage: string;
|
|
10
|
-
updateOnPropChange(): void;
|
|
11
|
-
connectedCallback(): void;
|
|
12
|
-
fetchOnboardingData(): Promise<void>;
|
|
13
|
-
fetchSubAccountData(): Promise<void>;
|
|
14
|
-
fetchData(): Promise<void>;
|
|
15
|
-
render(): any;
|
|
16
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { SubAccount } from '../../api/SubAccount';
|
|
3
|
-
import { PagingInfo } from '../../api';
|
|
4
|
-
export declare class SubaccountsList {
|
|
5
|
-
accountId: string;
|
|
6
|
-
authToken: string;
|
|
7
|
-
subaccounts: SubAccount[];
|
|
8
|
-
loading: boolean;
|
|
9
|
-
errorMessage: string;
|
|
10
|
-
paging: PagingInfo;
|
|
11
|
-
params: any;
|
|
12
|
-
rowClicked: EventEmitter<SubAccount>;
|
|
13
|
-
updateOnPropChange(): void;
|
|
14
|
-
connectedCallback(): void;
|
|
15
|
-
handleClickPrevious: (beforeCursor: string) => void;
|
|
16
|
-
handleClickNext: (afterCursor: string) => void;
|
|
17
|
-
fetchData(): Promise<void>;
|
|
18
|
-
render(): any;
|
|
19
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ExtendedPagingInfo } from '../../api/Pagination';
|
|
2
|
-
export interface TableProps {
|
|
3
|
-
loading: boolean;
|
|
4
|
-
errorMessage: string;
|
|
5
|
-
columnData: (string | string[])[];
|
|
6
|
-
rowData: any[];
|
|
7
|
-
paging: ExtendedPagingInfo;
|
|
8
|
-
params: any;
|
|
9
|
-
}
|
|
10
|
-
export declare class Table {
|
|
11
|
-
loading: TableProps['loading'];
|
|
12
|
-
errorMessage: TableProps['errorMessage'];
|
|
13
|
-
rowData: TableProps['rowData'];
|
|
14
|
-
columnData: TableProps['columnData'];
|
|
15
|
-
paging: TableProps['paging'];
|
|
16
|
-
params: TableProps['params'];
|
|
17
|
-
entityId: string[];
|
|
18
|
-
rowClickHandler: (e: any) => any;
|
|
19
|
-
get showEmptyState(): boolean;
|
|
20
|
-
get showErrorState(): boolean;
|
|
21
|
-
get showRowData(): boolean;
|
|
22
|
-
render(): any;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-fad19d75.js";import{p as s}from"./p-56f6ce4c.js";import"./p-e8706cc4.js";import{a as o,b as r}from"./p-e3fab0e2.js";import{f as i,a as c,b as n}from"./p-e8c651b8.js";import{t as d}from"./p-2b6c9c4f.js";import{a as h,C as p}from"./p-14c91ffd.js";import{S as u}from"./p-87932e16.js";const l=t=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),e("path",{d:"M12 15.5l-5-5 1.41-1.41L12 12.67l3.59-3.58L17 10.5l-5 5z"}),e("path",{d:"M11 4h2v9h-2z"}),e("path",{d:"M5 18h14v2H5z"})),f=class{constructor(e){t(this,e),this.rowClicked=a(this,"payout-row-clicked",7),this.errorEvent=a(this,"error-event",7),this.mapStatusToBadge=e=>{switch(e){case o.scheduled:return`<span class="badge bg-primary" title='Batched and scheduled to be transferred'>${r[e]}</span>`;case o.in_transit:return`<span class="badge bg-primary" title='Transfer to your bank account has been initiated'>${r[e]}</span>`;case o.failed:case o.canceled:return`<span class="badge bg-danger" title='Transfer to your bank account failed'>${r[e]}</span>`;case o.forwarded:return`<span class="badge bg-secondary" title='This payout initially failed; the funds have been forwarded to your next successful payout'>${r[e]}</span>`;case o.paid:return`<span class="badge bg-success" title='Successfully deposited into your bank account'>${r[e]}</span>`}},this.handleClickPrevious=e=>{const t=Object.assign({},this.params);delete t.after_cursor,this.params=Object.assign(Object.assign({},t),{before_cursor:e})},this.handleClickNext=e=>{const t=Object.assign({},this.params);delete t.before_cursor,this.params=Object.assign(Object.assign({},t),{after_cursor:e})},this.downloadCSV=e=>{this.getPayoutCSV({payoutId:e,onError:()=>{this.errorEvent.emit({errorCode:h.FETCH_ERROR,message:"Failed to download CSV",severity:p.ERROR})}})},this.handleDateChange=(e,t)=>{this.params=Object.assign(Object.assign({},this.params),{[e]:t})},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.payouts=[],this.loading=!0,this.errorMessage=void 0,this.paging=s,this.params=void 0}componentWillLoad(){this.getPayouts&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPayouts({params:this.params,onSuccess:({payouts:e,pagingInfo:t})=>{this.payouts=e,this.paging=t,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a}),this.loading=!1}})}render(){return e(u,{key:"469e4d0a5fcb7370d0d076e9f27cf5102235324e",exportedparts:d},e("div",{key:"883f193b2da3cdd3da3f31422def69d206ead983",class:"row gy-3 mb-4"},e("div",{key:"585684441aeded4619f9a0f03151b5e8dd2219d8",class:"col-2"},e("form-control-date",{key:"bc69d932f1d32074b3f0fdd2c9dba6f9601db891",name:"created_after",label:"Date from:",inputHandler:this.handleDateChange})),e("div",{key:"d026150a6a09ad49f549ea2b5174a1ed311987dc",class:"col-2"},e("form-control-date",{key:"2621b14359b8159270d67e53f9ad2f6464cbb467",name:"created_before",label:"Date to:",inputHandler:this.handleDateChange}))),e("justifi-table",{key:"757c9bbee39356ee23819f0e7e4d3b096bdf38f6",rowClickHandler:e=>{const t=e.target.closest("tr").dataset.rowEntityId;t&&this.rowClicked.emit(this.payouts.find((e=>e.id===t)))},columnData:[["Paid Out On","The date each transaction occurred"],["Type","The type of each transaction"],["Account","The ID of the account associated with each payout"],["Paid Out To","The bank account to which each payout was transferred"],["Payments","Sum of payments in each payout"],["Refunds","Sum of refunds in each payout"],["Fees","Sum of fees in each payout"],["Other","Sum of less common transactions in each payout (disputes, ACH returns, fee refunds, and forwarded balances due to failed payouts)"],["Payout Amount","The net sum of all transactions in each payout. This is the amount you'll see reflected on your bank statement"],["Status","The real-time status of each payout"],["Actions",""]],entityId:this.payouts.map((e=>e.id)),rowData:this.payouts.map((t=>[{type:"head",value:`\n <div class='fw-bold'>${i(t.created_at)}</div>\n <div class='fw-bold'>${c(t.created_at)}</div>\n `},t.payout_type,t.account_id,`${t.bank_account.full_name} ${t.bank_account.account_number_last4}`,n(t.payments_total),n(t.refunds_total),n(t.fees_total),n(t.other_total),n(t.amount),{type:"inner",value:this.mapStatusToBadge(t.status)},e(l,{title:"Export CSV",onClick:()=>this.downloadCSV(t.id),style:{height:"24px",width:"24px",cursor:"pointer"}})])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{params:["updateOnPropChange"],getPayouts:["updateOnPropChange"]}}};export{f as payouts_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as a,r as t,H as e}from"./p-fad19d75.js";import{E as s}from"./p-56f6ce4c.js";import{t as d}from"./p-2b6c9c4f.js";const r=class{constructor(a){t(this,a),this.loading=!0,this.errorMessage="",this.rowData=[],this.columnData=void 0,this.paging=s,this.params={},this.entityId=void 0,this.rowClickHandler=void 0}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState}render(){var t,s;return a(e,{key:"330ca720893ef70db96d4229c45a42f859567fd2",exportparts:d},a("div",{key:"6a4aa680881ca619e88a1e505e9367f598633184",class:"table-wrapper"},a("table",{key:"56129dafeccdda2e443f52d31efc7b68181988f7",class:"table table-hover"},a("thead",{key:"c3d407a15d350918df135f9e6f9f94d8ac751f65",class:"table-head sticky-top",part:"table-head"},a("tr",{key:"a1a8b3e9141ee6ecf1312b5d6d50f4b1a0488d9f",class:"table-light text-nowrap",part:"table-head-row"},null===(t=this.columnData)||void 0===t?void 0:t.map((t=>a("th",{part:"table-head-cell",scope:"col",title:Array.isArray(t)?t[1]:""},Array.isArray(t)?t[0]:t))))),a("tbody",{key:"232e450d33c1ea1088aab9a06ecb9a00d49788fd",class:"table-body",part:"table-body"},this.loading&&a("tr",null,a("td",{class:"loading-state",part:"loading-state-cell",colSpan:this.columnData.length,style:{textAlign:"center"}},a("div",{part:"loading-state-spinner",class:"spinner-border",role:"status"},a("span",{class:"visually-hidden"},"Loading...")))),this.showEmptyState&&(()=>a("tr",null,a("td",{class:"empty-state",part:"empty-state",colSpan:this.columnData.length,style:{textAlign:"center"}},"No results")))(),this.showErrorState&&(()=>a("tr",null,a("td",{class:"error-state",part:"error-state",colSpan:this.columnData.length,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",this.errorMessage)))(),this.showRowData&&this.rowData.map(((t,e)=>a("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[e],onClick:a=>this.rowClickHandler?this.rowClickHandler(a):null,part:"table-row "+(e%2?"table-row-even":"table-row-odd")},t.map((t=>(null==t?void 0:t.type)?a("td",{part:"table-cell",innerHTML:t.value}):a("td",{part:"table-cell"},t))))))),this.paging&&a("tfoot",{key:"35f0a88e934a2483df8b62b037d54c2408011c9d",class:"sticky-bottom"},a("tr",{key:"708dba5501439a728596f6985cd4f02f7cad2eb4",class:"table-light align-middle"},a("td",{key:"14ac6f8ec26a436c7c68391ab1c53ebdf9322d26",part:"pagination-bar",colSpan:null===(s=this.columnData)||void 0===s?void 0:s.length},a("pagination-menu",{key:"e52783c0e2a3b650f77a0bca0cc462b2f1942caf",paging:this.paging,params:this.params})))))))}};r.style=":host{table-layout:fixed}.table-wrapper{overflow-x:scroll}";const i=class{constructor(a){t(this,a),this.paging=s,this.params={}}render(){return a(e,{key:"e0211a01fc44ec29eec8085f31055c060f77f56f",exportparts:"page-arrow,page-button,page-button-disabled,page-button-text"},a("nav",{key:"191b1603b6cc559d3ef0cf45a37074e41513ea5a","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},a("ul",{key:"775613b2ce03a1bc6a8abf5c918d099e13ac06d2",class:"pagination m-0"},a("li",{key:"cf7fef25e80e446688f31f13236c3e71a1378aef",class:"page-item "+(this.paging.has_previous?"":" disabled")},a("a",{key:"bb671bda6ab5f6921d34c7fdf5b33a62bc076154",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:"page-button"+(this.paging.has_previous?"":" page-button-disabled")},a("span",{key:"da88de236d134f950a48d9a1d2ebf70742e80788",class:"me-1",part:"page-arrow"},"«"),a("span",{key:"9ae148f746d5d04fcaf4981b0f1aa3d7fc1b509d",part:"page-button-text"},"Previous"))),a("li",{key:"7340b9d89574c9c95b15fd50f3444aacdbb4c496",class:"page-item "+(this.paging.has_next?"":" disabled")},a("a",{key:"827e68669eeb7b83a28185312108adde796a331e",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:"page-button"+(this.paging.has_next?"":" page-button-disabled")},a("span",{key:"29ce5f0e9ae4b19d3116ac6bd883c52168c5fbb8",part:"page-button-text"},"Next"),a("span",{key:"2d58cffc46031c9db1ad7c4b061730bc083dded8",class:"ms-1",part:"page-arrow"},"»"))))))}};export{r as justifi_table,i as pagination_menu}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as e}from"./p-092e080c.js";import{C as r,a as o}from"./p-14c91ffd.js";import{g as n,a}from"./p-8115b2f4.js";import{B as c}from"./p-ed844504.js";import{c as d}from"./p-ae263544.js";import{A as h}from"./p-29c0b182.js";import"./p-667a5aa8.js";class p{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return h({authToken:s,apiOrigin:d.proxyApiOrigin}).post("entities/provisioning",JSON.stringify(e))}}const u=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=(({authToken:s,businessId:i,service:t})=>async({onSuccess:e,onError:o})=>{var c;try{const d=await t.fetchBusiness(i,s);if(d.error)return o({error:n(d.error),code:a(null===(c=d.error)||void 0===c?void 0:c.code),severity:r.ERROR});e(d)}catch(s){const i=a(null==s?void 0:s.code);return o({error:s.message||s,code:i,severity:r.ERROR})}})({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postProvisioning=(({authToken:s,businessId:i,product:t,service:e})=>async({onSuccess:o,onError:c})=>{var d;try{const h=await e.postProvisioning(s,i,t);if(h.error)return c({error:n(h.error),code:a(null===(d=h.error)||void 0===d?void 0:d.code),severity:r.ERROR});o(h)}catch(s){const i=a(null==s?void 0:s.code);return c({error:s.message||s,code:i,severity:r.ERROR})}})({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new p})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"3f20d0d8dcf04ff5e258d9465fdf53ccb68b5bc5",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{u as justifi_payment_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as r}from"./p-fad19d75.js";const s=class{constructor(r){t(this,r),this.errorText=void 0,this.name=void 0}render(){return this.errorText?r("small",{class:"form-text text-danger",id:`form-error-text-${this.name}`},this.errorText):null}},o=class{constructor(r){t(this,r),this.helpText=void 0,this.name=void 0}render(){return this.helpText?r("small",{class:"form-text text-muted",id:`form-help-text-${this.name}`},this.helpText):null}};export{s as form_control_error_text,o as form_control_help_text}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-fad19d75.js";import{A as e}from"./p-29c0b182.js";import{p as i}from"./p-56f6ce4c.js";import{P as a}from"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{f as c,a as o,s as n,b as r}from"./p-e8c651b8.js";import{c as h}from"./p-ae263544.js";import{S as p}from"./p-87932e16.js";const d=class{constructor(s){t(this,s),this.handleClickPrevious=t=>{const s=Object.assign({},this.params);delete s.after_cursor,this.params=Object.assign(Object.assign({},s),{before_cursor:t})},this.handleClickNext=t=>{const s=Object.assign({},this.params);delete s.before_cursor,this.params=Object.assign(Object.assign({},s),{after_cursor:t})},this.accountId=void 0,this.authToken=void 0,this.paymentId=void 0,this.balanceTransactions=[],this.loading=!0,this.errorMessage=void 0,this.paging=i,this.params=void 0}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){if(this.loading=!0,!this.accountId||!this.paymentId)return this.errorMessage="Missing required props: accountId or paymentId",void(this.loading=!1);const t=`account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`,s=await e({authToken:this.authToken,apiOrigin:h.proxyApiOrigin}).get(t,this.params);s.error?this.errorMessage="string"==typeof s.error?s.error:s.error.message:(this.paging=Object.assign(Object.assign({},this.paging),s.page_info),this.balanceTransactions=s.data.map((t=>new a(t)))),this.loading=!1}render(){return s(p,{key:"ec76a5bb9d5222491facd9bea6bf5f3c404bb5c4"},s("justifi-table",{key:"bfecb9c52a10750e01b2cc82dd5d558cf4e83081",columnData:[["Processed On","The date each transaction occurred"],["Type","The type of each transaction"],["ID","The unique identifier of each transaction"],["Amout","The dollar amount of each transaction"],["Balance","The running total amount of this payment that belongs to you"]],entityId:this.balanceTransactions.map((t=>t.id)),rowData:this.balanceTransactions.map((t=>[s("div",null,s("div",null,c(t.created_at)),s("div",null,o(t.created_at))),n(t.payment_balance_txn_type),t.payment_id,r(t.amount),r(t.balance)])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{params:["updateOnPropChange"]}}};export{d as justifi_payment_balance_transactions}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,H as i}from"./p-fad19d75.js";import{F as a,c as d,e as o}from"./p-2eab3c90.js";import{A as n,C as c,B as r,O as h,R as l,b as f}from"./p-af244664.js";import{A as b}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as u}from"./p-ae263544.js";import{a as m,b as y}from"./p-3fd13ca3.js";import{b as p,O as v,a as k}from"./p-6700ac49.js";import{C as g,P as _,S as w}from"./p-525db3e8.js";import{a as j,r as O,s as x,c as T,b as S}from"./p-ba5fae28.js";import{a as C,C as L}from"./p-14c91ffd.js";import{z as H,A as V,i as A,B as F,C as E,D,E as I,F as N,G as P,H as B,I as R,J as W,K as J,L as U,M as $}from"./p-89887332.js";import{n as q,L as G}from"./p-68fd8283.js";import{b as Y,c as M,i as z,d as K,a as Q}from"./p-85fc69e5.js";import{m as X}from"./p-e8c651b8.js";import{d as Z}from"./p-1ff8810b.js";import{S as ee}from"./p-6078a370.js";const te=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.additional_questions=new n(e.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),s=await this.api.patch(this.businessEndpoint,JSON.stringify({additional_questions:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.additional_questions={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.additionalQuestions}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(m(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e))),this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){var e,t,a,d,o,n,c;const r=this.formController.getInitialValues();return s(i,{key:"a6c4f79702b3ebeb087c7e0beb1353e243c26bb2",exportparts:"label,input,input-invalid"},s("form",{key:"e4f918d7b7a84b8a2332f14d79dcb8bc7c50da73"},s("fieldset",{key:"921f14f225be38b665780a5640bc38302497a5b4"},s("legend",{key:"01fa03c8134995cb23a67766febb6d4522e3d41a"},"Additional Questions"),s("hr",{key:"61131730389e979b6aa7d68ca5f58a070aa2534e"}),s("div",{key:"54b3af3d2fe06b20463fa548a60ab986f246a3d7",class:"row gy-3"},s("div",{key:"55c113e9d5f4746cc78de3f91cbf0a069d7a8e41",class:"col-12 col-md-6"},s("form-control-monetary",{key:"86a6cacf09105f5c4415a01738ba77b7eeb7622c",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_revenue,defaultValue:null==r?void 0:r.business_revenue,maskOptions:g.WHOLE})),s("div",{key:"ae68b9c006ea41e1f214226efdb4e14098d5e800",class:"col-12 col-md-6"},s("form-control-monetary",{key:"ddbff877fc74121bbf84eb7f4ee278558f35d853",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(t=this.errors)||void 0===t?void 0:t.business_payment_volume,defaultValue:null==r?void 0:r.business_payment_volume,maskOptions:g.WHOLE})),s("div",{key:"80fa2c11d3cadd1a1ab07ad79b7ff736a15a38d3",class:"col-12"},s("form-control-select",{key:"7fca901a87105b9a401309d5841279bac7a6f5cd",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_when_service_received,options:j,defaultValue:null==r?void 0:r.business_when_service_received})),s("div",{key:"a20763d9518cd84b062f81fdce325be2a8dfb40e",class:"col-12"},s("form-control-select",{key:"cfec3aab19c544b16f8a0fab7541433130c3b749",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(d=this.errors)||void 0===d?void 0:d.business_recurring_payments,options:O,defaultValue:null==r?void 0:r.business_recurring_payments})),s("div",{key:"0ef1a0473a5870428a741be696e08c881ebee524",class:"col-12"},s("form-control-text",{key:"512a4924c14b7c2da661b5ffe966d8d1497cb706",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==r?void 0:r.business_recurring_payments_percentage})),s("div",{key:"75a7b0adfde53443a53ca4e4143f1ff060291837",class:"col-12"},s("form-control-select",{key:"1474ce5f608be57a36486ad46c7a7bd68fc44fc7",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:x,defaultValue:null==r?void 0:r.business_seasonal})),s("div",{key:"7de2fd399754cc0c77e2b08b7d1a4d0082903f61",class:"col-12"},s("form-control-text",{key:"5de14ae950223e353dd6d58430a4493ffd26da4e",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(c=this.errors)||void 0===c?void 0:c.business_other_payment_details,defaultValue:null==r?void 0:r.business_other_payment_details}))))))}};class se{constructor(e){this.id=e.id,this.account_owner_name=e.account_owner_name,this.full_name=e.full_name,this.account_type=e.account_type,this.acct_last_four=e.acct_last_four,this.account_number_last4=e.account_number_last4,this.routing_number=e.routing_number,this.bank_name=e.bank_name,this.country=e.country,this.currency=e.currency,this.nickname=e.nickname,this.metadata=e.metadata,this.business_id=e.business_id,this.platform_account_id=e.platform_account_id,this.created_at=e.created_at,this.updated_at=e.updated_at}}const ie=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.bankAccount=Object.assign({},new se(e.data.bank_accounts.length>0?e.data.bank_accounts[0]:{})),this.formController.setInitialValues(Object.assign({},this.bankAccount))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=this.formController.values.getValue(),s=Object.assign(Object.assign({},t),{business_id:this.businessId}),i=await this.api.post(this.bankAccountEndpoint,JSON.stringify(s));this.handleResponse(i,e)}catch(e){this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.bankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get bankAccountEndpoint(){return"entities/bank_accounts"}get formDisabled(){var e;return!!(null===(e=this.bankAccount)||void 0===e?void 0:e.id)}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.bankAccount}})}async validateAndSubmit({onSuccess:e}){this.formDisabled?e():this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a((e=>{const t=d({bank_name:H.required("Enter bank name"),nickname:V.required("Enter nickname"),account_owner_name:A.required("Enter account owner name"),account_type:F.required("Select account type"),account_number:E.required("Enter account number"),routing_number:D.required("Enter routing number")}),s=d({bank_name:H.nullable(),nickname:V.nullable(),account_owner_name:A.nullable(),account_type:F.nullable(),account_number:E.nullable(),routing_number:D.nullable()});return e?s:t})(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.bankAccount=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){const e=this.formController.getInitialValues();return s(i,{key:"06a761a462bc8211d31021815bf0f826002ff674",exportparts:"label,input,input-invalid"},s("form",{key:"46e2a31edda4f8297fc8858ed9373dd744e5a39b"},s("fieldset",{key:"3f8ed5c4d2e801a1824110449e14d86df2f14dc4"},s("legend",{key:"f88054577ab1f30332ddd0aafad4b3a40dce8de3"},"Bank Account Info"),s("hr",{key:"0cf5f443ee658510192d60a29d81040ac0763588"}),s("div",{key:"c446362495de7cb85610f50ddec515e983aef55a",class:"row gy-3"},s("div",{key:"9bdde0ea622a0e41963dc025e887bb2b5701e160",class:"col-12"},s("form-control-text",{key:"ffbe63f3b934c4b9428e4cb6928d554ce87ff627",name:"bank_name",label:"Bank Name",defaultValue:e.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"6753f56609e0447ec0eb5b040c74bd511f6dd4de",class:"col-12"},s("form-control-text",{key:"c5903b44239826b1fd454731b2d2a406665fe62f",name:"nickname",label:"Nickname",defaultValue:e.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"1ff0746d2b60f376f664a81011f4482d380ac760",class:"col-12"},s("form-control-text",{key:"110b3d4f9e5266caf8cc0701d2e4764ec44dcf3c",name:"account_owner_name",label:"Account Owner Name",defaultValue:e.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"e045bc7620c101116e28d2307497139776ca7588",class:"col-12"},s("form-control-select",{key:"acee452f96ab59da937a5379a7ef4a2703861647",name:"account_type",label:"Account Type",options:T,defaultValue:e.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),s("div",{key:"8e576bebe699f605a411d2dbeca04d11be0181a2",class:"col-12"},s("form-control-text",{key:"0df383e2d9c5b4ba609820f473cad3098968a6e7",name:"account_number",label:"Account Number",defaultValue:e.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:q,disabled:this.formDisabled})),s("div",{key:"91dc628aaceb4b86171b45f52bd6f023d338a4db",class:"col-12"},s("form-control-text",{key:"239f3cf414fa1ca1f3de5e8fb5ba9e1c7b6c458f",name:"routing_number",label:"Routing Number",defaultValue:e.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:q,disabled:this.formDisabled}))))))}},ae=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.coreInfo=new c(e.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=Y(X(this.formController.values.getValue())),s=await this.api.patch(this.businessEndpoint,JSON.stringify(t));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.coreInfo={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.coreInfo}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(y(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){const e=this.formController.getInitialValues();return s(i,{key:"4ea42b813bdd6e5c59a62ae4ae869e86dfddd7ce",exportparts:"label,input,input-invalid"},s("form",{key:"f5ec3be342eda82dee8a51fe2ee5a6da1ee8902e"},s("fieldset",{key:"e07041577f53badc6c172a2c6dc20b1066c03f4c"},s("legend",{key:"2bcc8cc013eeee4e27c874d0bed4471515b68610"},"General Info"),s("hr",{key:"6dc6f73cf851b9244c8d797bc5cefdfda848c7bc"}),s("div",{key:"b2bfad85255ddfa76d405e45df3d668ad02a6fea",class:"row gy-3"},s("div",{key:"a9a65df07f40621513ce4881dd203e90142d7670",class:"col-12"},s("form-control-text",{key:"7fe7ac765902c7cd9ed60004dc7be687d43b2e49",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),s("div",{key:"6fe2e395e4391480f4d6dafcfc57619176efc45c",class:"col-12"},s("form-control-text",{key:"d19870345d79e4c44c3e667e2751ff6f344e1d58",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),s("div",{key:"39acda8180c70f7684aa2d73ef31bc199233c358",class:"col-12 col-md-8"},s("form-control-select",{key:"67f98ac21a69a851bb9489df198e06c8b517d45e",name:"classification",label:"Business Classification",options:S,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{key:"d54631f13e8998170de1f175d52d89d90035e688",class:"col-12 col-md-4"},s("form-control-date",{key:"8038e4f909c9bb2e5f3a8dd577f7b7f75e3d4f41",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{key:"ca43f206b14494ddaa55c625a2c408426ebcf529",class:"col-12 col-md-6"},s("form-control-text",{key:"7ccf50e04dad1a7e001c37074925f27f53ec831c",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),s("div",{key:"76136df0a434b7fce1b0307e962e4ea387a063d3",class:"col-12 col-md-6"},s("form-control-text",{key:"ddfd853ed46b3995484dff54d47af0c0d6c93b0c",name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:q,maxLength:9})),s("div",{key:"1084c4d7a261b8fc0a9ceacc16b5823f09cfb807",class:"col-12"},s("form-control-text",{key:"c9ca186a6f2cc10f43966de56e6a224103ddd1f3",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),s("div",{key:"55bc2f83a170fc1bec20c208460cc63b8f42a566",class:"col-12 col-md-6"},s("form-control-text",{key:"5c35db62f1d7d56e01a839df29b39aa55e569d5c",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"f74aadc2ea606365918f29091a6f6bb08841bf00",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"ef54ee012cbc30464bcdc7e887d5eb0523e30057",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:_.US}))))))}},de=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new r(e.data)),this.existingDocuments=e.data.documents,this.paymentVolume=e.data.additional_questions.business_payment_volume}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new a(((e,t,s)=>{const i=d({voided_check:I(t,s),government_id:N.nullable(),ss4:P.nullable(),other:B.nullable(),balance_sheet:R(e,t,s),bank_statement:W(e,t,s),profit_and_loss_statement:J(e,t,s)}),a=d({voided_check:I(t,s),government_id:N.nullable(),ss4:P.nullable(),other:B.nullable(),balance_sheet:R(e,t,s),bank_statement:W(e,t,s),profit_and_loss_statement:J(e,t,s)});return s?a:i})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))},this.createDocumentRecord=async e=>{this.formLoading.emit(!0);const t=e.record_data;try{const s=await this.api.post(this.documentEndpoint,JSON.stringify(t));return this.handleDocRecordResponse(e,s)}catch(e){return this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.message,severity:L.ERROR,data:e}),!1}},this.handleDocRecordResponse=(e,t)=>t.error?(this.errorEvent.emit({errorCode:C.POST_ERROR,message:t.error.message,severity:L.ERROR,data:t.error}),!1):(e.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async e=>{if(!e.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(e.presigned_url,{method:"PUT",body:e.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=e=>e.error?(this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}),!1):(this.submitted.emit({data:e,metadata:{completedStep:p.documentUpload}}),!0),this.storeFiles=e=>{const t=Array.from(e.detail.fileList),s=e.detail.document_type,i=t.map((e=>new U({file:e,document_type:s},this.businessId)));this.documentData[s]=i},this.sendData=async e=>{const t=Object.values(this.documentData).flat();if(!t.length)return e();const s=t.map((e=>this.createDocumentRecord(e)));if(!await Promise.all(s))return;const i=t.map((e=>this.uploadDocument(e))),a=await Promise.all(i);a&&(a&&this.formLoading.emit(!1),await e())},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new $,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?s("justifi-skeleton",{variant:"rounded",height:"50px"}):s("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?s("justifi-skeleton",{variant:"rounded",height:"350px"}):s("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return s(i,{key:"9cc3ddc45413cf4bb5d2fabfc8bc6035035b02c3",exportparts:"label,input,input-invalid"},s("form",{key:"d4756e9cd27741cbf6637d42f3f0db77ebc4e2b1"},s("fieldset",{key:"4c66e4cb9997c1a3645277b12358a3881361fd77"},s("legend",{key:"adf7e0e3c134a3e395d455d4c13b6b31e3caf5a0"},"Document Uploads"),s("p",{key:"826529c3896e9acdf7dd0337e7dc0bb7f8f93386"},"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."),s("hr",{key:"76e343327d676f10df8652e9b3977b21e189607c"}),this.documentsOnFile,s("div",{key:"bdd1fc8f4dc941c17d8457022cbdab679aedd009",class:"d-flex flex-column"},this.formInputs))))}},oe=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.clickEvent=t(this,"click-event",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.managePayload=async()=>this.owners.filter((e=>e.id)).map((e=>({id:e.id}))),this.matchRef=(e,t)=>{const s=this.refs.findIndex((e=>e===t));-1!==s&&(this.refs[s]=e)},this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);e.data.owners.length?this.owners=e.data.owners.map((e=>e)):this.addOwnerForm()}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1),this.manageRefs()}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=await this.managePayload(),s=await this.api.patch(this.businessEndpoint,JSON.stringify({owners:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.addOwnerForm=e=>{this.newFormOpen=!0;const t=Object.assign({},new h({}));this.owners=[...this.owners,t],e&&this.clickEvent.emit({name:v.addOwnerForm})},this.removeOwnerForm=e=>{this.owners=this.owners.filter((t=>t.id!==e)),this.newFormOpen&&(this.newFormOpen=!1)},this.handleOwnerSubmit=e=>{const t=e.detail.data.data,s=this.owners.findIndex((e=>e.id===t.id));if(-1!==s)this.owners[s]=t;else{const e=this.owners.findIndex((e=>!e.id));this.owners[e]=t,this.newFormOpen&&(this.newFormOpen=!1)}},this.owners=[],this.newFormOpen=void 0,this.refs=[],this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get showAddOwnerButton(){return this.owners.length<4&&!this.newFormOpen}manageRefs(){const e=this.owners.map((e=>e.id));this.refs=e}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.owners}})}async validateAndSubmit({onSuccess:e}){const t=this.refs.map((e=>e.validate()));if(!(await Promise.all(t)).every((e=>e)))return;const s=this.refs.map((e=>e.submit()));(await Promise.all(s)).every((e=>e))&&await this.sendData(e)}componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}onOwnersUpdated(){this.manageRefs()}render(){return s(i,{key:"c47bc68f4ee75973c394d84bcf791ae4bf32aeb2",exportparts:"label,input,input-invalid"},s("legend",{key:"c08c53d29e9aab0f80748b98c54c18607b1a5c8b"},"Owners"),s("hr",{key:"6d9ff85001290730c437a9a1b3fa6ebb1035d86e"}),s("div",{key:"bb693079ee194368763d082d681e8563562be343",class:"row gy-3"},this.owners.map((e=>s("justifi-owner-form",{key:e.id,authToken:this.authToken,businessId:this.businessId,ownerId:e.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.owners.length,onSubmitted:e=>this.handleOwnerSubmit(e),onFormLoading:e=>this.formLoading.emit(e.detail),allowOptionalFields:this.allowOptionalFields,ref:t=>{this.matchRef(t,e.id)}})))),this.showAddOwnerButton&&s("div",{key:"3d3293f26ca3f9214d34ceee9f31974d127088b3",class:"col-12"},s("button",{key:"4dbcbf90018343c8c8b13e32cfc9121b2087c40d",class:"btn btn-primary",onClick:()=>this.addOwnerForm(!0)},"Add Owner")))}static get watchers(){return{owners:["onOwnersUpdated"]}}},ne=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.representative=new l(e.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=M(this.formController.values.getValue()),s=await this.api.patch(this.businessEndpoint,JSON.stringify({representative:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{address:Object.assign(Object.assign({},this.formController.values.getValue().address),e)}))},this.onDateOfBirthUpdate=e=>{if(""===e.detail)this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{dob_day:null,dob_month:null,dob_year:null}));else{const t=Z(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{dob_day:t.dob_day,dob_month:t.dob_month,dob_year:t.dob_year}))}},this.formController=void 0,this.errors={},this.representative={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.representative}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(z("representative",this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e)))}render(){const e=this.formController.getInitialValues();return s(i,{key:"d2c9bc0dd40d85403688d4c0ff482d7b0c3c35ab",exportparts:"label,input,input-invalid"},s("form",{key:"99a6b23b13b893f760e322dfe2e6f603e86e718c"},s("fieldset",{key:"7c3b1897a7fe0fa672fa2d8d1a35ba4c81e9c256"},s("legend",{key:"f0fe4c93f757167e631d6e21bda5b559556550ad"},"Representative"),s("hr",{key:"1dd5db7898b510bcdae492460f2ce57d7871c282"}),s("div",{key:"33d1935e5b6cc441bd0193e35aaaedcecfc2bc95",class:"row gy-3"},s("div",{key:"c872b5a20469e3609178106b019fe1d0aecb2a24",class:"col-12 col-md-8"},s("form-control-text",{key:"31f37067b3c46bb4f7120169878dae88c1d4e918",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"9bdc8c1756a693f48bf060ee66f6fcf44cabc025",class:"col-12 col-md-4"},s("form-control-text",{key:"1686ff4c8e7b2e2fb74cc104966bf56d2754f8a8",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),s("div",{key:"789443ed50f9f0957e6bd8b4f6dea8d6ba7421a9",class:"col-12 col-md-6"},s("form-control-text",{key:"fcf1bd082368ee1adcc6b661ec75e3693fcc30dd",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"163d3f6e3ea1d2b7833b7a232e4726e56fda6416",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"3eba7a3ab6a7e8631cb9f100bfd7e5e5566efecc",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:_.US})),s("div",{key:"42fc6d656c069f073b08e77398a266e367e771ad",class:"col-12 col-md-4"},s("form-control-date",{key:"f627ff9478974305c83a8947b6c7f60d46189104",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),s("div",{key:"ffded118a7a2d1c5889c46ac879cdadc289f1c1e",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"bf9cda57b1b7579a38d4f1f276c5cbc7b1723e2d",name:"identification_number",label:"SSN",defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:w})),s("div",{key:"b033205960692dc7b3cea5ce59e12a13c58d5243",class:"col-12"},s("justifi-identity-address-form",{key:"f243060451c630da18d175a93f55bb1fcabd0cec",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate}))))))}},ce=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=e.data.terms_conditions_accepted}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=JSON.stringify(this.termsPayload),s=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.formController=new a((e=>{const t=d({accepted:o().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),s=d({accepted:o().nullable()});return e?s:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.POST_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.termsAndConditions}})}async validateAndSubmit({onSuccess:e}){this.acceptedTermsBefore?(this.submitted.emit({metadata:{completedStep:p.termsAndConditions}}),e()):this.formController.validateAndSubmit((()=>this.sendData(e)))}componentDidLoad(){this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){return s(i,{key:"63c8c815109b63b868fedfa6c9142a787d43625c"},s("form",{key:"364ec85e5a8399b3bb1233a09a588470f7d96542"},s("fieldset",{key:"8f4206180a48cc665b50bdc47604871b8c46212a"},s("legend",{key:"c50cf85809bcf0c370fe3e3756bbdf97cbc35c9f"},"Terms and Conditions"),s("hr",{key:"4ae031aaa9a56f26c8818c11cf3ff91e559c7399"}),s("justifi-business-terms-conditions-text",{key:"4c8f520d4fbb14e94bfd345e196e5a8602fec0e2"}),s("br",{key:"d76eff074fb8b7195ce22128a19f3ad6ff5c6ac0"}),s("div",{key:"5663d9804ccb01af38bfbf056645ef4e11695366",class:"row-gy-3"},s("div",{key:"8587e533aa31febd996e643c366eeee3d147bc9d",class:"col-12"},s("form-control-checkbox",{key:"d2ff86a1d92a040e119432487b1405d0a6ae2c55",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText}))))))}},re=class{constructor(s){e(this,s),this.submitted=t(this,"submitted",7),this.formLoading=t(this,"formLoading",7),this.errorEvent=t(this,"error-event",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const e=await this.api.get(this.businessEndpoint);this.legal_address=new f(e.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))}catch(e){this.errorEvent.emit({errorCode:C.FETCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.sendData=async e=>{this.formLoading.emit(!0);try{const t=K(this.formController.values.getValue()),s=await this.api.patch(this.businessEndpoint,JSON.stringify({legal_address:t}));this.handleResponse(s,e)}catch(e){this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.message,severity:L.ERROR,data:e})}finally{this.formLoading.emit(!1)}},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))},this.formController=void 0,this.errors={},this.legal_address={},this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}handleResponse(e,t){e.error?this.errorEvent.emit({errorCode:C.PATCH_ERROR,message:e.error.message,severity:L.ERROR,data:e.error}):t(),this.submitted.emit({data:e,metadata:{completedStep:p.legalAddress}})}async validateAndSubmit({onSuccess:e}){this.formController.validateAndSubmit((()=>this.sendData(e)))}componentWillLoad(){this.formController=new a(Q(this.allowOptionalFields)),this.api=b({authToken:this.authToken,apiOrigin:u.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}componentDidLoad(){this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e))),this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){var e,t,a,d,o,n;const c=this.formController.getInitialValues();return s(i,{key:"9c05125bf246a2b70a726daf13e670a97e980f47",exportparts:"label,input,input-invalid"},s("form",{key:"2ade7edf832b33a7ba6a48e7132675b1d10a56d4"},s("fieldset",{key:"c1de166455f7fe99af58a296a096235fdecb2133"},s("legend",{key:"6a91fd07f78aa2cff56db73c59b8310b17b7d901"},"Business Legal Address"),s("hr",{key:"3c2ebc5996de57610af531da0d314ce991bbe305"}),s("div",{key:"fd1d4ab21f866fd76801c4c8c2e1d0419ac6addb",class:"row gy-3"},s("div",{key:"c3aaf2e8445067227f66a6faf8487b84275b109d",class:"col-12"},s("form-control-text",{key:"2e9958c7829e1647c3512d65b0a068c5ffd192dc",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.line1,errorText:null===(e=this.errors)||void 0===e?void 0:e.line1})),s("div",{key:"551458e16164b6fab6393d4e0bd5e36bd79e706d",class:"col-12"},s("form-control-text",{key:"97f9ca68b48c6b73d46eb112f52df1eba0113c11",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.line2,errorText:null===(t=this.errors)||void 0===t?void 0:t.line2})),s("div",{key:"e914778ba7da8279ee60fbbf96a0ce573ed33925",class:"col-12"},s("form-control-text",{key:"1028149f43063b7eb2359dac64880f41c4b706c4",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.city,errorText:null===(a=this.errors)||void 0===a?void 0:a.city})),s("div",{key:"a4c0f576008523ec0abb18bf39e8a1441b404b37",class:"col-12"},s("form-control-select",{key:"af5d60c67367c9e5d6d531e199a4b1f60e994c3c",name:"state",label:"State",options:ee,inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.state,errorText:null===(d=this.errors)||void 0===d?void 0:d.state})),s("div",{key:"e5f0a9da1269c6c2e71ee7775a59c5f03eb5010e",class:"col-12"},s("form-control-text",{key:"262bf5740f67f1788d5eff08236de25b48ad3cbf",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:q})),s("div",{key:"6ba0e162cfeaff5c891b51a32e32fefe28db66ce",class:"col-12"},s("form-control-select",{key:"5f9ad2922f6cf3ad9f89cb1c0f387f2a615b1474",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==c?void 0:c.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0}))))))}},he=class{constructor(t){e(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return s("div",{key:"abc1957bf9f8afaa808471730d43a0d3abe447ca",class:"d-flex gap-2"},s("button",{key:"a6a09bc4afdefa8d0a04e96bfc3228ece27f7968",type:"button",class:"btn btn-secondary",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),s("button",{key:"6709aaf0c97a4aff7ffc45dcab0c3589b9f1d940",type:"button",class:"btn btn-primary jfi-submit-button"+(this.formLoading?" jfi-submit-button-loading":""),onClick:e=>this.nextStepButtonOnClick(e,k.nextStep),disabled:this.formDisabled,hidden:!this.showNextStepButton},this.formLoading?G():"Next"),s("button",{key:"9b0cc8573d48082bec14294682b3674b1423abbe",type:"submit",class:"btn btn-primary jfi-submit-button"+(this.formLoading?" jfi-submit-button-loading":""),onClick:e=>this.nextStepButtonOnClick(e,k.submit),disabled:this.formDisabled,hidden:!this.showSubmitButton},this.formLoading?G():"Submit"))}},le=class{constructor(i){e(this,i),this.formCompleted=t(this,"formCompleted",7),this.componentStepMapping={0:()=>s("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[0]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),1:()=>s("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[1]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),2:()=>s("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[2]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),3:()=>s("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[3]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),4:()=>s("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[4]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),5:()=>s("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[5]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),6:()=>s("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[6]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>s("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:e=>this.refs[7]=e,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields,onSubmitted:()=>this.formCompleted.emit()})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return s("div",{key:"6bb3a25e38c7ed29a095e2bc1192d869ec406e83",class:"col-12 mb-4"},this.currentStepComponent)}};export{te as justifi_additional_questions_form_step,ie as justifi_business_bank_account_form_step,ae as justifi_business_core_info_form_step,de as justifi_business_document_upload_form_step,oe as justifi_business_owners_form_step,ne as justifi_business_representative_form_step,ce as justifi_business_terms_conditions_form_step,re as justifi_legal_address_form_step,he as justifi_payment_provisioning_form_buttons,le as justifi_payment_provisioning_form_steps}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-fad19d75.js";import{A as e}from"./p-29c0b182.js";import{p as i}from"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{B as a}from"./p-af244664.js";import{s as n,f as c}from"./p-e8c651b8.js";import{c as h}from"./p-ae263544.js";import{S as o}from"./p-87932e16.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const r=class{constructor(t){s(this,t),this.mapProductStatusToBadge=s=>s?"bg-success":"bg-secondary",this.handleClickPrevious=s=>{const t=Object.assign({},this.params);delete t.after_cursor,this.params=Object.assign(Object.assign({},t),{before_cursor:s})},this.handleClickNext=s=>{const t=Object.assign({},this.params);delete t.before_cursor,this.params=Object.assign(Object.assign({},t),{after_cursor:s})},this.accountId=void 0,this.authToken=void 0,this.businesses=[],this.loading=!0,this.errorMessage=void 0,this.paging=i,this.params=void 0}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){var s;if(!this.accountId||!this.authToken)return this.errorMessage="Can not fetch any data without an AccountID and an AuthToken",void(this.loading=!1);this.loading=!0;let t={account_id:this.accountId};const i=await e({authToken:this.authToken,apiOrigin:h.proxyApiOrigin}).get("entities/business",Object.assign(Object.assign({},t),this.params));if(i.error)this.errorMessage="string"==typeof i.error?i.error:i.error.message;else{this.paging=Object.assign(Object.assign({},this.paging),i.page_info);const t=null===(s=null==i?void 0:i.data)||void 0===s?void 0:s.map((s=>new a(s)));this.businesses=t}this.loading=!1}render(){return t(o,{key:"7543ea36d336e7ca0e7450d4aee10698e22207f8"},t("justifi-table",{key:"893dfb6cf957da857bd1290796cc6bbd9e7f1555",columnData:[["Legal Name","The name associated with this Business"],["Business Classification","The business classification"],["Tax ID","The tax ID associated with this business"],["Industry","The industry this business participates in"],["Product Ready","List of our products that are used by this business"],["Created at","Date this business was created"]],rowData:this.businesses.map((s=>[s.legal_name,n(s.classification),s.tax_id,s.industry,{type:"inner",value:`\n <div class="d-flex flex-nowrap gap-1">\n <span class="badge ${this.mapProductStatusToBadge(s.product_categories.credit)}">Credit</span>\n <span class="badge ${this.mapProductStatusToBadge(s.product_categories.insurance)}">Insurance</span>\n <span class="badge ${this.mapProductStatusToBadge(s.product_categories.lending)}">Lending</span>\n <span class="badge ${this.mapProductStatusToBadge(s.product_categories.payment)}">Payment</span>\n </div>\n `},c(s.created_at)])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};export{r as justifi_business_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a}from"./p-fad19d75.js";import{p as s}from"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{f as i,a as r,b as o,e as c}from"./p-e8c651b8.js";import{S as h}from"./p-87932e16.js";const d=class{constructor(a){e(this,a),this.rowClicked=t(this,"payment-row-clicked",7),this.errorEvent=t(this,"error-event",7),this.handleClickPrevious=e=>{const t=Object.assign({},this.params);delete t.after_cursor,this.params=Object.assign(Object.assign({},t),{before_cursor:e})},this.handleClickNext=e=>{const t=Object.assign({},this.params);delete t.before_cursor,this.params=Object.assign(Object.assign({},t),{after_cursor:e})},this.handleDateChange=(e,t)=>{this.params=Object.assign(Object.assign({},this.params),{[e]:t})},this.getPayments=void 0,this.payments=[],this.loading=!0,this.errorMessage=void 0,this.paging=s,this.params=void 0}componentWillLoad(){this.getPayments&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPayments({params:this.params,onSuccess:({payments:e,pagingInfo:t})=>{this.payments=e,this.paging=t,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a}),this.loading=!1}})}render(){return a(h,{key:"84fde18eaf36e21f2b9107bc0527d3ca48d0bf49"},a("div",{key:"57a7084b5b9fa143209131534119407ed22a6df9",class:"row gy-3 mb-4"},a("div",{key:"af0f206b7b2d330614e3c70dc32425a66637b47e",class:"col-2"},a("form-control-date",{key:"277748b548069199308c2263dffb57bf5327cc1f",name:"created_after",label:"Start Date",inputHandler:this.handleDateChange})),a("div",{key:"8ec2b609f01fe8ab57572cfcefc2842e191579bc",class:"col-2"},a("form-control-date",{key:"b646dab8c653b31b2810083335f3e581e86e0344",name:"created_before",label:"End Date",inputHandler:this.handleDateChange}))),a("justifi-table",{key:"1f79a0d94391cdf9a86af65aeeccd9bf7d832af3",rowClickHandler:e=>{const t=e.target.closest("tr").dataset.rowEntityId;t&&this.rowClicked.emit(this.payments.find((e=>e.id===t)))},entityId:this.payments.map((e=>e.id)),columnData:[["Made On","The date and time each payment was made"],["Amount","The dollar amount of each payment"],["Description","The payment description, if you provided one"],["Cardholder","The name associated with the payment method"],["Payment Method","The brand and last 4 digits of the payment method"],["Status","The current status of each payment"],["Payment ID","The unique identifier of each payment"]],rowData:this.payments.map((e=>[{type:"head",value:`\n <div class='fw-bold'>${i(e.created_at)}</div>\n <div class='fw-bold'>${r(e.created_at)}</div>\n `},o(e.amount),e.description,e.payment_method.payersName,e.payment_method.lastFourDigits,{type:"inner",value:c(e.status)},e.id])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{params:["updateOnPropChange"],getPayments:["updateOnPropChange"]}}};export{d as payments_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as a}from"./p-fad19d75.js";import{S as i}from"./p-c4264aaf.js";import{M as c}from"./p-e8c651b8.js";import{A as h}from"./p-29c0b182.js";import{p as o}from"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as n}from"./p-ae263544.js";const r=class{constructor(s){t(this,s),this.rowClicked=e(this,"subaccount-row-clicked",7),this.handleClickPrevious=t=>{const e=Object.assign({},this.params);delete e.after_cursor,this.params=Object.assign(Object.assign({},e),{before_cursor:t})},this.handleClickNext=t=>{const e=Object.assign({},this.params);delete e.before_cursor,this.params=Object.assign(Object.assign({},e),{after_cursor:t})},this.accountId=void 0,this.authToken=void 0,this.subaccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=o,this.params=void 0}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){if(!this.accountId||!this.authToken)return this.errorMessage="Can not fetch any data without an AccountID and an AuthToken",void(this.loading=!1);this.loading=!0;const t=h({authToken:this.authToken,apiOrigin:n.privateApiOrigin}),e=`account/${this.accountId}/seller_accounts`,s=await t.get(e,this.params);if(s.error)this.errorMessage="string"==typeof s.error?s.error:s.error.message;else{this.paging=Object.assign(Object.assign({},this.paging),s.page_info);const t=null==s?void 0:s.data.map((t=>new i(t)));this.subaccounts=t}this.loading=!1}render(){return s(a,{key:"6e2998b090853a420c34facb9b9de8631964c5f3"},s("justifi-table",{key:"10c02a8d0911b316d96c128dcfb2d488d75e7808",rowClickHandler:t=>{const e=t.target.closest("tr").dataset.rowEntityId;e&&this.rowClicked.emit(this.subaccounts.find((t=>t.id===e)))},entityId:this.subaccounts.map((t=>t.id)),columnData:[["Created On","The date and time each sub account was created"],["Name","The name provided for each sub account"],["Account\t","The unique live or test account ID for each sub account"],["Card Rate\t","The rate that determines the fees charged per payment, when paid by card"],["ACH Rate\t","The rate that determines the fees charged per payment, when paid by eCheck"],["Status","The onboarding status of each sub account"]],rowData:this.subaccounts.map((t=>[{type:"head",value:`\n <div class='fw-bold'>${t.dateString}</div>\n <div class='fw-bold'>${t.timeString}</div>\n `},t.name,t.id,t.cardRate,t.achRate,{type:"inner",value:c(t.status)}])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};r.style=":host{display:block}";export{r as justifi_subaccounts_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-fad19d75.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{S as e}from"./p-c4264aaf.js";import{a as i,b as c,E as o,L as d}from"./p-e1651130.js";import{M as n,f as h,a as r}from"./p-e8c651b8.js";import{c as b}from"./p-ae263544.js";import{S as f}from"./p-87932e16.js";const u=class{constructor(a){t(this,a),this.accountId=void 0,this.subaccountId=void 0,this.authToken=void 0,this.onboardingData=void 0,this.subaccount=void 0,this.loading=!0,this.errorMessage=void 0}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchOnboardingData(){const t=s({authToken:this.authToken,apiOrigin:""}),a=`onboarding/${this.subaccountId}`,e=await t.get(a);e.error?this.errorMessage="string"==typeof e.error?e.error:e.error.message:this.onboardingData=e.data}async fetchSubAccountData(){const t=s({authToken:this.authToken,apiOrigin:b.privateApiOrigin}),a=`account/${this.accountId}/seller_accounts/${this.subaccountId}`,i=await t.get(a);if(i.error)this.errorMessage="string"==typeof i.error?i.error:i.error.message;else{const t=new e(i.data);this.subaccount=t}}async fetchData(){if(this.loading=!0,!this.accountId||!this.authToken)return this.errorMessage="Can not fetch any data without an AccountID and an AuthToken",void(this.loading=!1);this.fetchSubAccountData(),this.fetchOnboardingData(),this.loading=!1}render(){var t,s;return a(f,{key:"c32b7102406ae9d7f937c3cd9c2e6f213f06aa20"},this.loading&&d,!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&this.subaccount&&this.onboardingData&&a("justifi-details",{key:"47332420860cecc98cee20a35125834b694306ed"},a(i,{key:"681379f90251d911b8728b79614fd756b4c29d95",slot:"head-info",badge:a("span",{slot:"badge",innerHTML:n(this.subaccount.status)}),title:this.subaccount.name},a(c,{key:"9fb12b0fef139e18003e4e7bbdb31c8b3bfce5d3",classes:"border-1 border-end",title:"Created At",value:`${h(this.subaccount.created_at)} ${r(this.subaccount.created_at)}`}),a(c,{key:"eaa99f0f68d768d47ad3df05452d23b6311c6d93",classes:"border-1 border-end",title:"Last Updated",value:`${h(this.subaccount.updated_at)} ${r(this.subaccount.updated_at)}`}),a(c,{key:"a819a2a46408cbe283b02c816765092ff502e85c",title:"ID",value:this.subaccount.id})),a("div",{key:"24c3c113b1a06f3f44a777aa69c622f6a5fc2655",slot:"detail-sections"},a("subaccount-account-details",{key:"a953676a158a40a417285cab08ccfcdc7e3c7119",subaccount:this.subaccount,onboardingData:this.onboardingData}),a("subaccount-merchant-details",{key:"0a970cd5b4b29389becd1547cca981f50dc99210",onboardingData:this.onboardingData}),a("subaccount-representative-details",{key:"f2d5286019bb1cad941282143b646bcbb6a7766b",data:null===(t=this.onboardingData.payload)||void 0===t?void 0:t.representative}),a("subaccount-owners-details",{key:"189ff0cb2fe761921c0e2001cf4eebea33072a73",data:null===(s=this.onboardingData.payload)||void 0===s?void 0:s.owners}))))}static get watchers(){return{subaccountId:["updateOnPropChange"],authToken:["updateOnPropChange"]}}};export{u as justifi_subaccount_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./p-fad19d75.js";import{A as s}from"./p-29c0b182.js";import"./p-56f6ce4c.js";import"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{c as r}from"./p-ae263544.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as c}from"./p-14c91ffd.js";class d{async fetchQuote(t,i){return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",JSON.stringify(i))}async toggleCoverage(t,i,e){const o=`insurance/quotes/${i}/toggle`;return s({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,JSON.stringify(e))}}const h=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){this.initializeServiceMethods()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:s,onError:r})=>{var c;try{const d=await i.fetchQuote(t,e);if(d.error)return r({error:o(d.error),code:a(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});s({quote:d.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new d}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:s,onSuccess:r,onError:c})=>{var d;try{const h=await i.toggleCoverage(t,e,s);if(h.error)return c({error:o(h.error),code:a(null===(d=h.error)||void 0===d?void 0:d.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new d})):this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"8401ef19ea5bf566b9ef3f678382271173332421",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{h as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as a,h as t}from"./p-fad19d75.js";import{e as d,b as s,f as i,a as c,s as b}from"./p-e8c651b8.js";import{a as f,b as l,c as h,D as r,C as o,E as y,L as n}from"./p-e1651130.js";import{S as u}from"./p-87932e16.js";const k=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.getPaymentDetails=void 0,this.payment=void 0,this.loading=!0,this.errorMessage=void 0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.loading=!1,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t}),this.loading=!1}})}render(){var e;return t(u,{key:"b0a4e021ebaf00cf1750c7d40510aa9754bc622b"},this.loading&&n(),!this.loading&&this.errorMessage&&y(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&t("justifi-details",{key:"5b7858536120f8a1d3016f1f110f51e6b8605f3e","error-message":this.errorMessage},t(f,{key:"93db7fd2d30fb1ef0099e58fd6d90e703f921c44",slot:"head-info",badge:t("span",{slot:"badge",innerHTML:d(this.payment.status)}),title:`${s(this.payment.amount)} ${null===(e=this.payment)||void 0===e?void 0:e.currency.toUpperCase()}`},t(l,{key:"6c1b97d494b92618092710986ff6cbfb4c183cad",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payment.updated_at)} ${c(this.payment.updated_at)}`}),t(l,{key:"1ef1fe7899d47959bb3ce8dbe511222cc69185ef",classes:"border-1 border-end",title:"Created At",value:`${i(this.payment.created_at)} ${c(this.payment.created_at)}`}),t(l,{key:"d0a12d9abfc6d4c71249af65cef35902554cc3a7",title:"ID",value:this.payment.id})),t("div",{key:"b12d205fb50d310525045261967a383e93458cb3",slot:"detail-sections"},t(h,{key:"cdcae0f279389849946017963762c9a1294204ee",sectionTitle:"Details"}),t("div",{key:"91693665801878a7b87729412a10469dac21130d",class:"d-table gap-2 w-100"},t(r,{key:"c58427d3a5543caa9f83fe62dca71612c92a200e",title:"Amount",value:s(this.payment.amount)}),t(r,{key:"d6a0b3df90839ad1fdd34058f3582482a9eb1b20",title:"Fees",value:s(this.payment.fee_amount)}),t(r,{key:"6c08a4a3bcc7d6bf726959b451e3231598d7e920",title:"Refunded",value:s(this.payment.amount_refunded)}),t(r,{key:"4d2d8d897cd0d5a4be06b44741cf85366eebe9af",title:"Net",value:s(this.payment.balance)}),t(r,{key:"b3df303d6c12b1327b3f20245c3c50657eb422f8",title:"Status",value:d(this.payment.status)}),t(r,{key:"6a535b4f0c91fb37077e09912e4fa3c1d333db48",title:"Payment ID",value:this.payment.id}),t(r,{key:"982514de79780e97b0aa3f120d7fcc11b51301ac",title:"Processing Fees",value:s(this.payment.fee_amount)}),t(r,{key:"967e82d6fe2bcf55110e6881811d38af9ea63c17",title:"Statement Descriptor",value:this.payment.statement_descriptor}),t(r,{key:"bee37b7e5b7c22f0ec596104097c1408284c5ac1",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[t(h,{key:"da950a7706cf51aa72eeff3faedfb00fa824075f",sectionTitle:"Payment Method"}),t("div",{key:"c8ab64e8f0021fcfe4ce5e7a9bac9d867e3aa650",class:"d-table gap-2 w-100"},t(r,{key:"70ebccad09e67f53b13673d1f2d19c6438053ac5",title:"ID",value:this.payment.payment_method.card.id}),t(r,{key:"1cbdb8b281b70a600568d7b82499084695c6a48a",title:"Payment Type",value:"Card"}),t(r,{key:"d9696130b92a28560d2a437996d53d3ba6df39ec",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"e93b235819d5b6386ea6f6283f21da7442fd4661",title:"Brand",value:b(this.payment.payment_method.card.brand)}),t(r,{key:"9ba28b4b099b775cc4f77cff13c74295b12fdfd4",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[t(h,{key:"4f046825e2eeef87ddb614b6eca623fca187b0d3",sectionTitle:"Payment Method"}),t("div",{key:"b8a01fdd5596adafa252b4fd67df2e30c2e34990",class:"d-table gap-2 w-100"},t(r,{key:"dcd3c8418ebd465812c1dd1fb9b5559ce79e2855",title:"ID",value:this.payment.payment_method.bank_account.id}),t(r,{key:"86246e11c8c494beb3f2571650f8d78e33b8dbae",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),t(r,{key:"d3cd7eec7d55ae90d0fd4bc55fad73add0d6d88c",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),t(r,{key:"43d7a0b7e37172da32aff94fe01877a32491fba8",title:"Account Owner",value:this.payment.payment_method.payersName}))],t(h,{key:"d59695a94c44c10615020313be585c0e69374e1c",sectionTitle:"Metadata"}),t("div",{key:"984dd0d2d0bd5c816dd7098b4e8eebf19e2ebf70",class:"d-table gap-2 w-100"},t(o,{key:"b2d8cf824ae9aba9d714e688fddbf14a8fdd92d6",metadata:this.payment.metadata})))))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as a}from"./p-fad19d75.js";const s=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}render(){return i(a,{key:"477163306527f6b607c43e63ec4a38aaac5a4780",exportparts:"label,input,input-invalid"},i("label",{key:"3174cbb24f2bd74e59e28dc6a31e224a0e2ab47d",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"de908daeee9db445c1369b75c536bcf33cb9f4e9",type:"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"ea51242481f4a9894d55871d23aeaf4013112e24",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"2db99a325bd6d691c0fdcbf3965535266329506f",errorText:this.errorText,name:this.name}))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{s as form_control_date}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r,n,e,t,a,o;!function(r){r.coreInfo="coreInfo",r.legalAddress="legalAddress",r.additionalQuestions="additionalQuestions",r.representative="representative",r.owners="owners",r.bankAccount="bankAccount",r.documentUpload="documentUpload",r.termsAndConditions="termsAndConditions"}(r||(r={})),function(r){r.fetchData="Error retrieving business data",r.patchData="Error updating business data"}(n||(n={})),function(r){r.nextStep="nextStep",r.previousStep="previousStep",r.submit="submit"}(e||(e={})),function(r){r.fetchData="Error retrieving owner data",r.patchData="Error updating owner data",r.postData="Error adding owner data"}(t||(t={})),function(r){r.removeOwner="removeOwner",r.addOwner="addOwner",r.addOwnerForm="addOwnerForm",r.updateOwner="updateOwner"}(a||(a={})),function(r){r.fetchData="Error retrieving document data",r.sendData="Error uploading document data"}(o||(o={}));export{n as B,a as O,e as a,r as b}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./p-fad19d75.js";const n=()=>e("div",{class:"spinner-border spinner-border-sm",role:"status"},e("span",{class:"visually-hidden"},"Loading...")),o=e=>{var n;if(!(e instanceof KeyboardEvent&&["Backspace","Tab","Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Delete"].includes(e.key)||e instanceof KeyboardEvent&&(e.ctrlKey||e.metaKey)&&"v"===e.key.toLowerCase()))if(e instanceof ClipboardEvent){const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text");o&&!/^\d+$/.test(o)&&e.preventDefault()}else e instanceof KeyboardEvent&&!/^\d$/.test(e.key)&&e.preventDefault()};export{n as L,o as n}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a}from"./p-fad19d75.js";import{g as s,b as d,f as i,a as c}from"./p-e8c651b8.js";import{a as b,b as f,c as o,D as r,C as l,E as h,L as n}from"./p-e1651130.js";import{S as y}from"./p-87932e16.js";const u=class{constructor(a){e(this,a),this.errorEvent=t(this,"error-event",7),this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.getPayout=void 0,this.getPayoutCSV=void 0,this.payout=void 0,this.loading=!0,this.errorMessage=null}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var e;return a(y,{key:"da7690d5e4b21e8cb32651080ef2c8df29440c1b"},this.loading&&n(),!this.loading&&this.errorMessage&&h(this.errorMessage),!this.loading&&this.payout&&a("justifi-details",{key:"4d9a7636e345bc5dd88b910add3a340e22589c52","error-message":this.errorMessage},a(b,{key:"91d6eb90ec40052d858f4736a9c60d9c9a96d40d",slot:"head-info",badge:a("span",{slot:"badge",innerHTML:s(null===(e=this.payout)||void 0===e?void 0:e.status)}),title:`${d(this.payout.amount)} ${this.payout.currency.toUpperCase()}`},a(f,{key:"be9f9b43c294b76326f1ce63af79217b8abf5b0d",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${c(this.payout.updated_at)}`}),a(f,{key:"2c8fb8d4a4b8f1517028acc410bdb4adbafe67a4",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${c(this.payout.created_at)}`}),a(f,{key:"4ca663f7bbfa9bdf8fa01fe0b40fc5f6dc65dfbb",title:"ID",value:this.payout.id}),a("div",{key:"44b484491b5ec470270b469de15076d6d55e61d0",class:"m-4"},a("button",{key:"ca8b6cb61b56caebbec1eeb01e6de638865219bd",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),a("div",{key:"2f959d7c549dc1f8e4df2e8d12ab9988255aba03",slot:"detail-sections"},a(o,{key:"741717a3e056163ee88452998f2d6e5b7dc0ccc1",sectionTitle:"Details"}),a("div",{key:"d456b3a372525a0eff6c724e507ff325951fa430",class:"d-table gap-2 w-100"},a(r,{key:"a27cf5fbc2851f74bb4813d0bd49718dfe2f7d8d",title:"Date paid",value:i(this.payout.deposits_at)}),a(r,{key:"90f49509ff399a9c164a7aeaf7307077b59e8559",title:"Statement Description",value:this.payout.description}),a(r,{key:"52ef8b50065db1a111b003e9ceadfa1cc4076b74",title:"Payout Method",value:this.payout.delivery_method}),a(r,{key:"ee73a34d15af0cc677fc6d903706df3f10249bdf",title:"Amount",value:d(this.payout.amount)}),a(r,{key:"229827b98fd76bd1dec1beeac0d99517d09dc677",title:"Fee",value:d(this.payout.fees_total)})),a(o,{key:"1f4bb886e4a07b5054107aa00c2b98644e87859b",sectionTitle:"Account"}),a("div",{key:"78181a7ae216bf3b0013eee0494b4b149a2ec9c3",class:"d-table gap-2 w-100"},a(r,{key:"273cabd55194c104d1d421db53030601f5efa83c",title:"ID",value:this.payout.account_id}),a(r,{key:"1751e4b9d5453bc41fd3b29cf7e5d3955e375bb7",title:"Account Type",value:this.payout.bank_account.account_type}),a(r,{key:"1d5489f81d96025bdf7d7391623ddcc1ff3a7978",title:"Institution",value:this.payout.bank_account.account_type}),a(r,{key:"f17d8096799b7eeba7c550ad828f2ffa97b65f56",title:"Routing Number",value:this.payout.bank_account.routing_number}),a(r,{key:"cf3c83de7f119738940951a9481253ed855c768e",title:"Account Number",value:this.payout.bank_account.account_number_last4})),a(o,{key:"458186b5bd7fb0aa954c283dee08e5090b164b27",sectionTitle:"Metadata"}),a("div",{key:"90866a28028af6c7e46ab89c221016cd698299f2",class:"d-table gap-2 w-100"},a(l,{key:"ed25523342b6a751e48d2d7c11cef7e541b6ed3b",metadata:this.payout.metadata})))))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{u as payout_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,h as e,c as o}from"./p-fad19d75.js";import{c as a,F as t}from"./p-2eab3c90.js";import{i,l as d,a as c,c as s,s as l,p as f}from"./p-89887332.js";import{S as n}from"./p-6078a370.js";import{n as b}from"./p-68fd8283.js";import{S as h}from"./p-87932e16.js";import"./p-ba5fae28.js";import"./p-af244664.js";import"./p-1ff8810b.js";const m=a({name:i.required("Enter full name"),address_line1:d.required("Enter street address"),address_line2:c.nullable(),address_city:s.required("Enter city"),address_state:l.required("Select state"),address_postal_code:f.required("Enter postal code")}),p=class{constructor(e){r(this,e),this.inputHandler=(r,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[r]:e}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new t(m)}componentDidLoad(){this.formController.values.subscribe((r=>this.billingInfo=Object.assign({},r))),this.formController.errors.subscribe((r=>{this.errors=Object.assign({},r)}))}async getValues(){return this.formController.values.getValue()}async fill(r){this.formController.setInitialValues(r)}async validate(){return{isValid:await this.formController.validate()}}render(){const r=this.formController.getInitialValues();return e(h,{key:"8104e81c71bc567bfa5e0375cd33e9faca89d011",exportparts:"label,input,input-invalid"},e("form",{key:"c6cc67debae73514e2615f95c2bf864b912a73cb"},e("fieldset",{key:"9a7c04e44a7428748dad4c303e69a138ddb9101d"},this.legend&&e("legend",{key:"7aff51cff0b829134b99179d05c8184ee434258e"},this.legend),e("div",{key:"53ed47c893e7f8348a0ab1f637175e7b456e1992",class:"row gy-3"},e("div",{key:"4b93bf1abd9be0735560cd2db646be68fc1a6916",class:"col-12"},e("form-control-text",{key:"18f7be54e35cac629a0122b7ff040e424b39dcea",name:"name",label:"Full Name",defaultValue:r.name,errorText:this.errors.name,inputHandler:this.inputHandler})),e("div",{key:"5358865082c4158083f0232441255622f339105a",class:"col-12"},e("form-control-text",{key:"8ba417bede5bde2c6d7a99869caab780e0887b9b",name:"address_line1",label:"Street Address",defaultValue:r.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),e("div",{key:"ffadcbe419b78f4e96283c3366141e20e2f157d3",class:"col-12"},e("form-control-text",{key:"14ca2064c4651405c443d75961c8937d7136a95d",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:r.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),e("div",{key:"52cd79784b86d18cc35c80ae5f4006e8e25337f7",class:"col-12"},e("form-control-text",{key:"741129396330fb3d7e40143391ab3422d648c997",name:"address_city",label:"City",defaultValue:r.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),e("div",{key:"ec80e7986f8189d4a08df9924d9cbecab512ae3d",class:"col-12"},e("form-control-select",{key:"0cea8474f7f72ebb2591f48bd85ea4e008f65d94",name:"address_state",label:"State",options:n,defaultValue:r.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),e("div",{key:"59935a8aaf2b91df9e33c284132ca1372591d797",class:"col-12"},e("form-control-text",{key:"9316b7c2aec054c251eb9eba7641f239b43f3714",name:"address_postal_code",label:"ZIP",defaultValue:r.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:b}))))))}};p.style=":host{display:block}justifi-billing-form{margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}";const u=class{constructor(e){r(this,e),this.checkboxChanged=o(this,"checkboxChanged",7),this.isChecked=!1}handleCheckboxChange(r){this.isChecked=r.target.checked,this.checkboxChanged.emit(this.isChecked)}render(){return e("div",{key:"9492361a8c6d1b0cc29638811ddf41fb2e0e4a8c",class:"mt-4 form-check"},e("input",{key:"ef0b68d5daf26ec3c273839d79a66c03a6ae2af7",type:"checkbox",checked:this.isChecked,onChange:r=>this.handleCheckboxChange(r),class:"form-check-input"}),e("label",{key:"4dbd3b1501c8de8feedf738d73eb6e3e7fa2ad3a",class:"form-check-label"},"Save new payment method"))}};export{p as justifi_billing_form,u as justifi_save_new_payment_method}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as r,h as t}from"./p-fad19d75.js";import"./p-56f6ce4c.js";import{b as i}from"./p-e8706cc4.js";import"./p-e3fab0e2.js";import{l as a}from"./p-e8c651b8.js";import{c as e}from"./p-ae263544.js";import{a as s,C as b}from"./p-14c91ffd.js";import{g as c}from"./p-8115b2f4.js";import{J as f}from"./p-092e080c.js";import{S as n}from"./p-87932e16.js";import"./p-667a5aa8.js";import"./p-29c0b182.js";const d=class{constructor(t){o(this,t),this.submitted=r(this,"submitted",7),this.errorEvent=r(this,"error-event",7),this.bankAccount=void 0,this.card=void 0,this.email=void 0,this.clientId=void 0,this.authToken=void 0,this.accountId=void 0,this.submitButtonText=void 0,this.submitButtonEnabled=!0,this.isLoading=!1,this.selectedPaymentMethodType=i.card}componentWillLoad(){this.analytics=new f(this),this.validateProps()||(this.errorEvent.emit({errorCode:s.MISSING_PROPS,message:"clientId or authToken is required",severity:b.ERROR}),this.submitButtonEnabled=!1)}connectedCallback(){a()}disconnectedCallback(){this.analytics.cleanup()}async fillBillingForm(o){this.billingFormRef.fill(o)}async enableSubmitButton(){this.submitButtonEnabled=!0}async disableSubmitButton(){this.submitButtonEnabled=!1}showPaymentMethodTypeSelector(){return this.card&&this.bankAccount}getSelectedPaymentMethodType(){return this.showPaymentMethodTypeSelector()?this.selectedPaymentMethodType:this.card?i.card:this.bankAccount?i.bankAccount:i.card}paymentMethodSelectedHandler(o){this.selectedPaymentMethodType=o.detail}validateProps(){return!(!this.clientId&&!this.authToken)}getToken(){return this.authToken||this.clientId}async submit(o){if(o.preventDefault(),!this.paymentMethodFormRef||!this.billingFormRef)return;const r=await this.billingFormRef.validate(),t=await this.paymentMethodFormRef.validate();if(r.isValid&&t.isValid){this.isLoading=!0;try{const o=await this.billingFormRef.getValues(),r=Object.assign({email:this.email},o),t=await this.paymentMethodFormRef.tokenize(this.getToken(),r,this.accountId);t.error&&this.errorEvent.emit({errorCode:s.TOKENIZE_ERROR,message:t.error.message,severity:b.ERROR}),this.submitted.emit(t)}catch(o){this.errorEvent.emit({errorCode:s.UNKNOWN_ERROR,message:c(o),severity:b.ERROR})}finally{this.isLoading=!1}}}render(){return t(n,{key:"3aa9fa4d429ca4b614d51b87b51b1ab868d051e2"},t("form",{key:"53a0ad2a960971fafb618d5be58af120336b36b9",class:"row gy-3"},this.showPaymentMethodTypeSelector()&&t("div",{key:"b322cbe24fcbd81008ccf3a6e587786c0b7febd6",class:"col-12"},t("justifi-payment-method-selector",{key:"8e77f5e040a73096765c30f1f259f87630ec80a8",selectedPaymentMethodType:this.getSelectedPaymentMethodType(),onPaymentMethodSelected:o=>this.paymentMethodSelectedHandler(o)})),t("div",{key:"415f380e141eea4486fd47b4b2cbfcc7716ecacc",class:"col-12"},t("justifi-payment-method-form",{key:"cd4da9f66a030ab344be989a511e23462e3da887","payment-method-form-type":this.getSelectedPaymentMethodType(),iframeOrigin:e.iframeOrigin,ref:o=>{o&&(this.paymentMethodFormRef=o)}})),t("div",{key:"31eefc5775131f658987578da2d5b300292f67b5",class:"col-12"},t("justifi-billing-form",{key:"11b9bdaa9c1fb26804fcdacfd3706b200ae49486",legend:"Billing Info",ref:o=>{o&&(this.billingFormRef=o)}})),t("slot",{key:"13fe093886828469c941d21c20c931c5cc2cae3d",name:"insurance"}),t("div",{key:"a77d44c79333303e59f3efb5c82db9e8830bfcdb",class:"col-12"},t("button",{key:"50edd44047c81109f075e9ae760e58878b422fbc","data-testid":"submit-button",type:"submit",onClick:o=>this.submit(o),disabled:!this.submitButtonEnabled||this.isLoading,class:"btn btn-primary jfi-submit-button"+(this.isLoading?" jfi-submit-button-loading":"")},this.isLoading?t("div",{class:"spinner-border spinner-border-sm",role:"status"},t("span",{class:"visually-hidden"},"Loading...")):this.submitButtonText||"Submit"))))}};d.style=":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";export{d as justifi_payment_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as s,g as a}from"./p-fad19d75.js";const o=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.options=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){var t;return i(s,{key:"abc80a7f20c59c99a3468f199142bc01ba7883cb",exportparts:"label,input,input-invalid"},i("div",{key:"d34ec19e40c33bd16b1e03e2bfac07dd6dd1a3a8",class:"form-group d-flex flex-column"},i("label",{key:"43adfb46f3bf2e72e50d2bab17b909fec8693c2a",part:"label",class:"form-label",htmlFor:this.name},this.label),i("select",{key:"eacb07490715f8041cfa6cd4fab91959d5b6bfae",ref:t=>this.selectElement=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:"input "+(this.errorText?"input-invalid":""),class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>i("option",{value:t.value},t.label)))),i("form-control-help-text",{key:"5ec5ba6ca4e0503ffdbddb95e70444bbf8b169b7",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"bd90d61ca9aa0c52d351e336febc9f3d2e501355",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},h=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}render(){return i(s,{key:"7b3c980cbad27b29bc87dd4eaa8a23398c8b244c",exportparts:"label,input,input-invalid"},i("div",{key:"fa49688c206721f177d2c57b42103ffcd139dde7",class:"form-group d-flex flex-column"},i("label",{key:"596b8cae71f32769d82fa5e77df11daa172fcce9",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"44ec6ef8e306c5d25190dec87926ba382665f2ca",id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?" input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"888e0abf5f3687266784eda12428cb219321f964",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"902a8e06659e63cb35002b5eef8b3f987df8fb44",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{o as form_control_select,h as form_control_text}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as c}from"./p-fad19d75.js";import{D as d,c as s}from"./p-e1651130.js";const f=class{constructor(a){e(this,a),this.data=void 0}render(){var e,f,i,t;return a(c,{key:"aa7ffada2ee18ba7d62be5795c5cef560dd26184"},a(s,{key:"122081285aefa52f40251c81529148af59d84175",sectionTitle:"Terms and Conditions"}),a("div",{key:"74d0817d94cf1f08a58f5b03b28b97ec953fe661",class:"d-table gap-2 w-100"},a("div",{key:"ef5f8f0017ce75ea326cb9d9f6b73cc10071be69",class:"row gy-3"},a("div",{key:"915af12c352ac4ec62fded7b49f897e30bb40b1d",class:"col-12 col-md-6"},a(d,{key:"c7541087fb9e724a679408af37f449749295ac13",title:"IP",value:null===(e=this.data)||void 0===e?void 0:e.ip}),a(d,{key:"e6eadb4c1f58a4fbbc56cae87114cb2271305fe9",title:"Accepted?",value:null===(i=null===(f=this.data)||void 0===f?void 0:f.accepted)||void 0===i?void 0:i.toString()}),a(d,{key:"375dc86a8af2095ac977c45e13ac1a026a30b2b1",title:"User Agent",value:null===(t=this.data)||void 0===t?void 0:t.user_agent})))))}};export{f as subaccount_terms_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as s}from"./p-fad19d75.js";import{I as a}from"./p-1ad5995e.js";import{C as o}from"./p-525db3e8.js";const r=class{constructor(e){t(this,e),this.formControlInput=i(this,"formControlInput",7),this.formControlBlur=i(this,"formControlBlur",7),this.imask=null,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const i=t.target.getAttribute("name");this.formControlInput.emit({name:i,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.maskOptions=o.DECIMAL,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}render(){return e(s,{key:"f2aacad037f8f87113058e9f2e30eb87206bfbe3",exportparts:"label,input,input-group-input,input-group-text,input-invalid"},e("div",{key:"3bc32c7abb0f277bf3b49ca9f67c1207ffcc7d9a",class:"form-group d-flex flex-column"},e("label",{key:"ccfb24981f1423c376d9146bf48f53f8ecb3a964",part:"label",class:"form-label",htmlFor:this.name},this.label),e("div",{key:"acb22641d9c7b7aea3ba9d04527958a08cc5138f",class:"input-group"},e("span",{key:"fc2b1f6ad3332b464fa55c5a72fca2b4d6652d6c",class:"input-group-text",part:"input-group-text"},"$"),e("input",{key:"39aee063f8a381251ee424a9e1488341e3dbbab5",ref:t=>this.textInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input input-group-input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),e("form-control-help-text",{key:"f9e05bb145ee2e33b92132ba3564c56412ea705e",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"e92a7992598bd13c61d9f8cbce17fce999b9924d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{r as form_control_monetary}
|