@justifi/webcomponents 4.23.1 → 5.0.0-rc-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Business-aa799fec.js → Business-cfd6a2dd.js} +5 -0
- package/dist/cjs/Dispute-eb6bad54.js +59 -0
- package/dist/cjs/{Payment-87b47c43.js → Payment-d074b246.js} +7 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +9 -28
- package/dist/cjs/bank-account-form_9.cjs.entry.js +493 -0
- package/dist/cjs/{business-additional-questions-schema-f5591026.js → business-additional-questions-schema-caa23e95.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +26 -4
- package/dist/cjs/{business-form-options-5db0bd5e.js → business-form-options-4bcb8943.js} +1 -1
- package/dist/cjs/{business-identity-schema-804a4bd7.js → business-identity-schema-0c537067.js} +2 -2
- package/dist/cjs/{business.service-7faffa0b.js → business.service-285f6f26.js} +1 -1
- package/dist/cjs/button-94bdc1f0.js +20 -0
- package/dist/cjs/{Analytics-7ab90cae.js → check-pkg-version-18426209.js} +23 -3
- package/dist/cjs/{checkout.service-aae1996c.js → checkout.service-671fab62.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +37 -30
- package/dist/cjs/checkouts-list-params-state-418c75a3.js +14 -0
- package/dist/cjs/checkouts-table-17648e93.js +48 -0
- package/dist/cjs/{config-05767cba.js → config-b190e93e.js} +1 -1
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +3 -107
- package/dist/cjs/dispute.service-c362a953.js +29 -0
- package/dist/cjs/event-types-180a85a9.js +23 -0
- package/dist/cjs/{table-ec9ce9f7.js → event-types-4df47396.js} +16 -8
- package/dist/cjs/event-types-8edaabbb.js +22 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +9 -8
- package/dist/cjs/form-control-checkbox.cjs.entry.js +57 -0
- package/dist/cjs/form-control-date.cjs.entry.js +21 -2
- package/dist/cjs/form-control-error-text-a2fd5fc1.js +14 -0
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +90 -0
- package/dist/cjs/form-control-file.cjs.entry.js +21 -2
- package/dist/cjs/form-control-help-text-b6f7ae6e.js +14 -0
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +22 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +21 -3
- package/dist/cjs/form-control-number.cjs.entry.js +21 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +25 -17
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-1eed32ee.js → get-payout-csv-d2aed52c.js} +2 -2
- package/dist/cjs/{get-subaccounts-1d2fb201.js → get-subaccounts-9aa22224.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -8
- package/dist/cjs/header-1-cb7af794.js +10 -0
- package/dist/cjs/header-3-75e50713.js +10 -0
- package/dist/cjs/iframe-input-styles-state-d0de0b24.js +26 -0
- package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → iframe-input.cjs.entry.js} +73 -180
- package/dist/cjs/{index-fb499e95.js → index-5b9a3b5f.js} +1 -93
- package/dist/cjs/{insurance-state-80e24caf.js → index-d2d0b181.js} +2 -24
- package/dist/cjs/{index.esm-97cf6825.js → index.esm-a397536a.js} +1 -1
- package/dist/cjs/insurance-state-001cfe12.js +34 -0
- package/dist/cjs/justifi-additional-questions-form-step-core_8.cjs.entry.js +591 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +43 -43
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +413 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-form.cjs.entry.js +25 -32
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +16 -20
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +38 -0
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +50 -11
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +87 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +378 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +18 -28
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +13 -8
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +43 -0
- package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +27 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +20 -14
- package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -10
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +17 -18
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +11 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-6d1daab8.js → package-d6ef89ed.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +26 -0
- package/dist/cjs/parts-811ddb9c.js +119 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +13 -11
- package/dist/cjs/{payment.service-86871f43.js → payment.service-9a5336f1.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +34 -27
- package/dist/cjs/payments-list-params-state-0ff968a7.js +14 -0
- package/dist/cjs/payments-table-cf5d1c33.js +32 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -5
- package/dist/cjs/payouts-list-core.cjs.entry.js +37 -30
- package/dist/cjs/payouts-list-params-state-16348184.js +14 -0
- package/dist/cjs/payouts-table-58881d95.js +38 -0
- package/dist/cjs/{schema-validations-f0363047.js → schema-validations-0be8068a.js} +2 -2
- package/dist/cjs/skeleton-5ca03840.js +13 -0
- package/dist/cjs/spinner-c11fcb44.js +12 -0
- package/dist/cjs/styled-host-94309bab.js +14 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +45 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +36 -29
- package/dist/cjs/terminals-list-params-state-95ff6a64.js +14 -0
- package/dist/cjs/terminals-table-91985249.js +33 -0
- package/dist/cjs/{utils-e88fbc94.js → utils-a21b7453.js} +31 -28
- package/dist/cjs/utils-fc17191b.js +29 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/api/Business.js +5 -0
- package/dist/collection/api/Dispute.js +55 -0
- package/dist/collection/api/DisputeEvidenceDocument.js +44 -0
- package/dist/collection/api/Payment.js +6 -9
- package/dist/collection/api/services/dispute.service.js +20 -0
- package/dist/collection/collection-manifest.json +16 -17
- package/dist/collection/components/billing-form/billing-form.js +2 -19
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -19
- package/dist/collection/components/business-details/business-details-core.js +8 -7
- package/dist/collection/components/business-details/business-details-loading.js +6 -0
- package/dist/collection/components/business-details/business-details.js +5 -13
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -11
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -11
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -11
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -19
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +18 -59
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -6
- 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 +22 -52
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +18 -40
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +19 -44
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +18 -40
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -47
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +17 -39
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +21 -42
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +18 -39
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +32 -23
- 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 +2 -20
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -11
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +30 -31
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -11
- package/dist/collection/components/business-forms/utils/event-types.js +21 -0
- package/dist/collection/components/business-forms/utils/index.js +4 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +65 -0
- package/dist/collection/components/checkout/card-form/card-form.js +67 -0
- package/dist/collection/components/checkout/checkout-core.js +19 -28
- package/dist/collection/components/checkout/checkout.js +7 -7
- package/dist/collection/components/checkout/message-event-types.js +4 -0
- package/dist/collection/components/checkout/new-payment-method.js +23 -15
- package/dist/collection/components/checkout/payment-method-options.js +1 -11
- package/dist/collection/components/checkout/save-new-payment-method.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +6 -5
- package/dist/collection/components/checkout/sezzle-payment-method.js +6 -4
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +43 -36
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -61
- package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +8 -0
- package/dist/collection/components/checkouts-list/checkouts-list.js +7 -29
- package/dist/collection/components/checkouts-list/checkouts-table.js +13 -12
- package/dist/collection/components/dispute-management/dispute-actions.js +31 -0
- package/dist/collection/components/dispute-management/dispute-management-core.js +131 -17
- package/dist/collection/components/dispute-management/dispute-management.js +143 -2
- package/dist/collection/components/dispute-management/dispute-notification.js +135 -15
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +110 -0
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +117 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +362 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-form-types.js +12 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +186 -0
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/additional-statement-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/customer-details-schema.js +7 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/dispute-reason-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/product-or-service-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/refund-policy-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/shipping-details-schema.js +8 -0
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +106 -0
- package/dist/collection/components/dispute-management/event-types.js +20 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +8 -17
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +5 -5
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +19 -22
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -6
- package/dist/collection/components/pagination-menu/pagination-menu.js +5 -4
- package/dist/collection/components/payment-details/payment-details-core.js +15 -13
- package/dist/collection/components/payment-details/payment-details.js +5 -28
- package/dist/collection/components/payments-list/payments-list-core.js +40 -33
- package/dist/collection/components/payments-list/payments-list-filters.js +8 -61
- package/dist/collection/components/payments-list/payments-list-params-state.js +8 -0
- package/dist/collection/components/payments-list/payments-list.js +7 -29
- package/dist/collection/components/payments-list/payments-table.js +15 -14
- package/dist/collection/components/payout-details/payout-details-core.js +10 -8
- package/dist/collection/components/payout-details/payout-details.js +5 -5
- package/dist/collection/components/payouts-list/payouts-list-core.js +43 -36
- package/dist/collection/components/payouts-list/payouts-list-filters.js +8 -60
- package/dist/collection/components/payouts-list/payouts-list-params-state.js +8 -0
- package/dist/collection/components/payouts-list/payouts-list.js +6 -28
- package/dist/collection/components/payouts-list/payouts-table.js +19 -18
- package/dist/collection/components/refund-form/refund-form.js +1 -11
- package/dist/collection/components/refund-form/refund-form.stories.js +1 -60
- package/dist/collection/components/terminals-list/terminals-list-core.js +43 -36
- package/dist/collection/components/terminals-list/terminals-list-filters.js +8 -61
- package/dist/collection/components/terminals-list/terminals-list-params-state.js +8 -0
- package/dist/collection/components/terminals-list/terminals-list.js +7 -29
- package/dist/collection/components/terminals-list/terminals-table.js +9 -8
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -24
- package/dist/collection/styles/parts.js +74 -0
- package/dist/collection/ui-components/button.js +6 -12
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +2 -4
- package/dist/collection/ui-components/details/utils.js +7 -10
- package/dist/collection/ui-components/filters/table-filters-menu.js +5 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +31 -16
- package/dist/collection/ui-components/form/form-control-date.js +25 -1
- package/dist/collection/ui-components/form/form-control-file-v2.js +177 -0
- package/dist/collection/ui-components/form/form-control-file.js +22 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +25 -1
- package/dist/collection/ui-components/form/form-control-number-masked.js +24 -1
- package/dist/collection/ui-components/form/form-control-number.js +24 -1
- package/dist/collection/ui-components/form/form-control-radio.js +50 -40
- package/dist/collection/ui-components/form/form-control-select.js +25 -1
- package/dist/collection/ui-components/form/form-control-text.js +24 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +27 -2
- package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -1
- package/dist/collection/ui-components/form/form-helpers/form-control-error-text.js +9 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-help-text.js +9 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -1
- package/dist/collection/ui-components/form/form.js +1 -1
- package/dist/collection/ui-components/form/hidden-input.js +85 -0
- package/dist/collection/ui-components/form/iframe-input-styles-state.js +21 -0
- package/dist/collection/ui-components/form/iframe-input.js +215 -0
- package/dist/collection/ui-components/headers/header-1.js +5 -0
- package/dist/collection/ui-components/headers/header-2.js +5 -0
- package/dist/collection/ui-components/headers/header-3.js +5 -0
- package/dist/collection/ui-components/index.js +6 -0
- package/dist/collection/ui-components/skeleton.js +4 -34
- package/dist/collection/ui-components/spinner.js +6 -0
- package/dist/collection/ui-components/table/event-types.js +6 -0
- package/dist/collection/ui-components/table-empty-state.js +2 -1
- package/dist/collection/ui-components/table-error-state.js +2 -1
- package/dist/collection/ui-components/table-loading-state.js +3 -1
- package/dist/collection/utils/table.js +2 -2
- package/dist/collection/utils/utils.js +27 -26
- package/dist/docs.json +3573 -4721
- package/dist/esm/{Business-b73d5055.js → Business-29c69f22.js} +6 -1
- package/dist/esm/Dispute-5fd28ec9.js +57 -0
- package/dist/esm/{Payment-2a868d0c.js → Payment-4f72d277.js} +7 -9
- package/dist/esm/additional-questions-details_5.entry.js +9 -28
- package/dist/esm/bank-account-form_9.entry.js +481 -0
- package/dist/esm/{business-additional-questions-schema-d94f8975.js → business-additional-questions-schema-48e93928.js} +2 -2
- package/dist/esm/business-details-core.entry.js +26 -4
- package/dist/esm/{business-form-options-d790973e.js → business-form-options-018f62a5.js} +1 -1
- package/dist/esm/{business-identity-schema-2756dbc6.js → business-identity-schema-75126188.js} +2 -2
- package/dist/esm/{business.service-97a3da69.js → business.service-182aea6f.js} +1 -1
- package/dist/esm/button-1886a33d.js +18 -0
- package/dist/esm/{Analytics-77dc80f3.js → check-pkg-version-157854b7.js} +23 -4
- package/dist/esm/{checkout.service-c1e44e0c.js → checkout.service-32a6ebe8.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +36 -29
- package/dist/esm/checkouts-list-params-state-1d968971.js +10 -0
- package/dist/esm/checkouts-table-8b116232.js +44 -0
- package/dist/esm/{config-27764a9d.js → config-187b3ae1.js} +1 -1
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -105
- package/dist/esm/dispute.service-4e5059aa.js +27 -0
- package/dist/esm/{table-44e3d1e7.js → event-types-01dcdcbd.js} +17 -9
- package/dist/esm/event-types-07cdb9a0.js +22 -0
- package/dist/esm/event-types-5c87de02.js +23 -0
- package/dist/esm/form-alert_5.entry.js +9 -8
- package/dist/esm/form-control-checkbox.entry.js +53 -0
- package/dist/esm/form-control-date.entry.js +21 -2
- package/dist/esm/form-control-error-text-3b2553b5.js +12 -0
- package/dist/esm/form-control-file-v2_2.entry.js +85 -0
- package/dist/esm/form-control-file.entry.js +21 -2
- package/dist/esm/form-control-help-text-a2fc3617.js +12 -0
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +22 -2
- package/dist/esm/form-control-number-masked_2.entry.js +21 -3
- package/dist/esm/form-control-number.entry.js +21 -2
- package/dist/esm/form-control-radio.entry.js +25 -17
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-3b83b088.js → get-payout-csv-e6058aa7.js} +2 -2
- package/dist/esm/{get-subaccounts-dd20cfa4.js → get-subaccounts-0b8af245.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +6 -8
- package/dist/esm/header-1-c6a00a22.js +8 -0
- package/dist/esm/header-3-a1c6d475.js +8 -0
- package/dist/esm/iframe-input-styles-state-ff730fe5.js +23 -0
- package/dist/esm/{justifi-billing-form_2.entry.js → iframe-input.entry.js} +73 -179
- package/dist/esm/{index-57431c24.js → index-29fcfdf5.js} +1 -93
- package/dist/esm/{insurance-state-8ce01e59.js → index-a47fdc7f.js} +2 -21
- package/dist/esm/{index.esm-ed37201b.js → index.esm-0b6849c2.js} +1 -1
- package/dist/esm/insurance-state-8fc9376f.js +28 -0
- package/dist/esm/justifi-additional-questions-form-step-core_8.entry.js +580 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +43 -43
- package/dist/esm/justifi-additional-statement_8.entry.js +402 -0
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +21 -28
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -2
- package/dist/esm/justifi-checkout-core.entry.js +16 -20
- package/dist/esm/justifi-checkout.entry.js +9 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +34 -0
- package/dist/esm/justifi-checkouts-list.entry.js +13 -13
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +50 -11
- package/dist/esm/justifi-dispute-management.entry.js +87 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +372 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +16 -26
- package/dist/esm/justifi-payment-details.entry.js +9 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +12 -7
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -7
- package/dist/esm/justifi-payments-list-filters.entry.js +39 -0
- package/dist/esm/justifi-payments-list.entry.js +12 -12
- package/dist/esm/justifi-payout-details.entry.js +9 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +23 -0
- package/dist/esm/justifi-payouts-list.entry.js +19 -13
- package/dist/esm/justifi-refund-form.entry.js +7 -10
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +17 -18
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +31 -0
- package/dist/esm/justifi-terminals-list.entry.js +11 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +10 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-627f73c1.js → package-9e3b7f9e.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +22 -0
- package/dist/esm/parts-186d437f.js +72 -0
- package/dist/esm/payment-details-core.entry.js +13 -11
- package/dist/esm/{payment.service-ca6b5bc5.js → payment.service-45f90e06.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +33 -26
- package/dist/esm/payments-list-params-state-b3dab8bc.js +10 -0
- package/dist/esm/payments-table-d6fbab5b.js +28 -0
- package/dist/esm/payout-details-core.entry.js +8 -5
- package/dist/esm/payouts-list-core.entry.js +36 -29
- package/dist/esm/payouts-list-params-state-49618e7a.js +10 -0
- package/dist/esm/payouts-table-2e61a116.js +34 -0
- package/dist/esm/{schema-validations-93a9d504.js → schema-validations-c7d4f9df.js} +2 -2
- package/dist/esm/skeleton-8f71cdf7.js +11 -0
- package/dist/esm/spinner-879489b3.js +10 -0
- package/dist/esm/styled-host-32228b45.js +12 -0
- package/dist/esm/table-filters-menu.entry.js +41 -0
- package/dist/esm/terminals-list-core.entry.js +35 -28
- package/dist/esm/terminals-list-params-state-2c48d35f.js +10 -0
- package/dist/esm/terminals-table-8e42977c.js +29 -0
- package/dist/esm/{utils-1df1e55a.js → utils-54543523.js} +31 -30
- package/dist/esm/utils-d7633e66.js +22 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +6 -1
- package/dist/module/Payment.js +62 -10
- package/dist/module/additional-questions-details2.js +1 -5
- package/dist/module/additional-questions.js +4 -15
- package/dist/module/additional-statement.js +52 -13
- package/dist/module/{justifi-card-form.d.ts → bank-account-form.d.ts} +4 -4
- package/dist/module/bank-account-form.js +6 -0
- package/dist/module/bank-account-form2.js +44 -0
- package/dist/module/billing-form.js +6 -18
- package/dist/module/business-additional-questions-form-step-core.js +8 -21
- package/dist/module/business-additional-questions-form-step.js +3 -15
- package/dist/module/business-bank-account-form-step.js +11 -18
- package/dist/module/business-core-info-form-step-core.js +11 -18
- package/dist/module/business-core-info-form-step.js +5 -11
- package/dist/module/business-core-info.js +6 -11
- package/dist/module/business-details-core2.js +25 -3
- package/dist/module/business-document-upload-form-step.js +12 -18
- package/dist/module/business-document-upload-input-group.js +3 -9
- package/dist/module/business-documents-on-file.js +4 -3
- package/dist/module/business-owners-form-step-core.js +12 -18
- package/dist/module/business-owners-form-step.js +5 -11
- package/dist/module/business-representative-form-inputs.js +6 -11
- package/dist/module/business-representative-form-step-core.js +9 -17
- package/dist/module/business-representative-form-step.js +5 -11
- package/dist/module/business-representative.js +6 -11
- package/dist/module/business-terms-conditions-form-step.js +16 -22
- package/dist/module/business-terms-conditions-text.js +2 -5
- package/dist/module/button.js +6 -12
- package/dist/module/cancellation-policy.js +49 -13
- package/dist/module/{justifi-payment-form.d.ts → card-form.d.ts} +4 -4
- package/dist/module/card-form.js +6 -0
- package/dist/module/card-form2.js +46 -0
- package/dist/module/check-pkg-version.js +76 -1
- package/dist/module/checkout-core.js +55 -30
- package/dist/module/checkouts-list-core2.js +47 -77
- package/dist/module/checkouts-list-params-state.js +10 -0
- package/dist/module/config.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +50 -13
- package/dist/module/details.js +3 -5
- package/dist/module/dispute-management-core.js +74 -39
- package/dist/module/dispute-notification.js +41 -8
- package/dist/module/dispute-response-actions.js +117 -0
- package/dist/module/dispute-response-core.js +280 -0
- package/dist/module/dispute-response-form-types.js +59 -0
- package/dist/module/dispute-response.js +198 -0
- package/dist/module/duplicate-charge.js +49 -13
- package/dist/module/electronic-evidence.js +49 -20
- package/dist/module/{table.js → event-types.js} +16 -8
- package/dist/module/event-types2.js +23 -0
- package/dist/module/event-types3.js +22 -0
- package/dist/module/form-alert2.js +2 -1
- package/dist/module/form-control-checkbox2.js +29 -27
- package/dist/module/form-control-date2.js +25 -10
- package/dist/module/form-control-error-text.js +10 -4
- package/dist/module/{payouts-list-filters.d.ts → form-control-file-v2.d.ts} +4 -4
- package/dist/module/form-control-file-v2.js +6 -0
- package/dist/module/form-control-file-v22.js +59 -0
- package/dist/module/form-control-file2.js +25 -10
- package/dist/module/form-control-help-text.js +1 -1
- package/dist/module/form-control-help-text2.js +9 -32
- package/dist/module/form-control-help-text3.js +35 -0
- package/dist/module/form-control-monetary2.js +26 -16
- package/dist/module/form-control-number-masked2.js +25 -11
- package/dist/module/form-control-number.js +24 -15
- package/dist/module/form-control-radio2.js +31 -30
- package/dist/module/form-control-select2.js +25 -10
- package/dist/module/form-control-text2.js +24 -10
- package/dist/module/form-control-textarea2.js +26 -11
- package/dist/module/form-control-tooltip2.js +2 -1
- package/dist/module/form.js +1 -1
- package/dist/module/generic-info-details2.js +1 -5
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +3 -6
- package/dist/module/header-1.js +8 -0
- package/dist/module/{payments-list-filters.d.ts → hidden-input.d.ts} +4 -4
- package/dist/module/hidden-input.js +6 -0
- package/dist/module/hidden-input2.js +100 -0
- package/dist/module/identity-address-form.js +4 -10
- package/dist/module/iframe-input-styles-state.js +23 -0
- package/dist/module/iframe-input.d.ts +11 -0
- package/dist/module/iframe-input.js +6 -0
- package/dist/module/{payment-method-form.js → iframe-input2.js} +83 -131
- package/dist/module/index2.js +167 -3572
- package/dist/module/index3.js +3599 -0
- package/dist/module/insurance-state.js +6 -191
- package/dist/module/justifi-business-details.js +2 -3
- package/dist/module/justifi-business-form.js +16 -36
- package/dist/module/justifi-checkout.js +52 -23
- package/dist/module/justifi-checkouts-list-filters.d.ts +11 -0
- package/dist/module/justifi-checkouts-list-filters.js +77 -0
- package/dist/module/justifi-checkouts-list.js +8 -45
- package/dist/module/justifi-dispute-management.js +109 -34
- package/dist/module/justifi-dispute-response-core.d.ts +11 -0
- package/dist/module/justifi-dispute-response-core.js +6 -0
- package/dist/module/justifi-dispute-response.d.ts +11 -0
- package/dist/module/justifi-dispute-response.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -3
- package/dist/module/justifi-payment-details.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +12 -24
- package/dist/module/justifi-payments-list-filters.d.ts +11 -0
- package/dist/module/justifi-payments-list-filters.js +94 -0
- package/dist/module/justifi-payments-list.js +9 -58
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payouts-list-filters.d.ts +11 -0
- package/dist/module/justifi-payouts-list-filters.js +66 -0
- package/dist/module/justifi-payouts-list.js +14 -45
- package/dist/module/justifi-refund-form.js +4 -19
- package/dist/module/justifi-season-interruption-insurance.js +16 -5
- package/dist/module/justifi-terminals-list-filters.d.ts +11 -0
- package/dist/module/{terminals-list-filters2.js → justifi-terminals-list-filters.js} +25 -28
- package/dist/module/justifi-terminals-list.js +8 -51
- package/dist/module/justifi-tokenize-payment-method.js +51 -25
- package/dist/module/legal-address-details2.js +1 -5
- package/dist/module/legal-address-form-step-core.js +10 -17
- package/dist/module/legal-address-form-step.js +3 -9
- package/dist/module/legal-address-form.js +5 -10
- package/dist/module/new-payment-method.js +72 -30
- package/dist/module/owner-details2.js +1 -5
- package/dist/module/owner-form-core2.js +10 -25
- package/dist/module/owner-form-inputs2.js +5 -11
- package/dist/module/owner-form.js +5 -11
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -3
- package/dist/module/parts.js +72 -0
- package/dist/module/payment-details-core2.js +11 -9
- package/dist/module/payment-method-options.js +47 -24
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +21 -28
- package/dist/module/payment-provisioning-form-buttons.js +4 -2
- package/dist/module/payment-provisioning-form-steps.js +11 -24
- package/dist/module/payments-list-core2.js +46 -88
- package/dist/module/payments-list-params-state.js +10 -0
- package/dist/module/payout-details-core2.js +6 -3
- package/dist/module/payouts-list-core2.js +53 -83
- package/dist/module/payouts-list-params-state.js +10 -0
- package/dist/module/product-or-service.js +46 -13
- package/dist/module/refund-policy.js +49 -13
- package/dist/module/representative-details2.js +1 -5
- package/dist/module/save-new-payment-method.js +10 -5
- package/dist/module/saved-payment-method.js +19 -6
- package/dist/module/season-interruption-insurance-core.js +29 -19
- package/dist/module/sezzle-payment-method.js +19 -5
- package/dist/module/shipping-details.js +53 -19
- package/dist/module/skeleton.js +4 -34
- package/dist/module/spinner.js +10 -0
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu2.js +12 -2
- package/dist/module/terminals-list-core2.js +43 -79
- package/dist/module/terminals-list-params-state.js +10 -0
- package/dist/module/utils.js +14 -19
- package/dist/module/utils2.js +31 -30
- package/dist/module/utils3.js +25 -30
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Business.d.ts +4 -0
- package/dist/types/api/Checkout.d.ts +1 -3
- package/dist/types/api/ComponentError.d.ts +0 -6
- package/dist/types/api/ComponentEvents.d.ts +23 -0
- package/dist/types/api/Dispute.d.ts +76 -0
- package/dist/types/api/DisputeEvidenceDocument.d.ts +23 -0
- package/dist/types/api/Payment.d.ts +6 -11
- package/dist/types/api/Payout.d.ts +1 -3
- package/dist/types/api/Terminal.d.ts +1 -4
- package/dist/types/api/services/dispute.service.d.ts +14 -0
- package/dist/types/components/billing-form/billing-form.d.ts +0 -5
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +0 -8
- package/dist/types/components/business-details/business-details-core.d.ts +2 -2
- package/dist/types/components/business-details/business-details-loading.d.ts +1 -0
- package/dist/types/components/business-details/business-details.d.ts +2 -10
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +0 -8
- package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +0 -5
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-form.d.ts +4 -11
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -5
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +4 -6
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -2
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -8
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +4 -6
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -2
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +5 -5
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +5 -5
- package/dist/types/components/business-forms/utils/event-types.d.ts +19 -0
- package/dist/types/components/business-forms/utils/index.d.ts +4 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +7 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +9 -0
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +2 -2
- package/dist/types/components/checkout/message-event-types.d.ts +4 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +3 -3
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +7 -8
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -3
- package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +5 -0
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +2 -24
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +6 -6
- package/dist/types/components/dispute-management/dispute-actions.d.ts +9 -0
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +14 -3
- package/dist/types/components/dispute-management/dispute-management.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +9 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +17 -0
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-actions.d.ts +40 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +46 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-form-types.d.ts +20 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response.d.ts +35 -0
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/additional-statement-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/customer-details-schema.d.ts +10 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/dispute-reason-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/product-or-service-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/refund-policy-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/shipping-details-schema.d.ts +12 -0
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +15 -0
- package/dist/types/components/dispute-management/event-types.d.ts +18 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +2 -2
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +3 -3
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +4 -4
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/payment-details/payment-details-core.d.ts +2 -2
- package/dist/types/components/payment-details/payment-details.d.ts +2 -25
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -7
- package/dist/types/components/payments-list/payments-list-filters.d.ts +1 -4
- package/dist/types/components/payments-list/payments-list-params-state.d.ts +5 -0
- package/dist/types/components/payments-list/payments-list.d.ts +2 -24
- package/dist/types/components/payments-list/payments-table.d.ts +7 -7
- package/dist/types/components/payout-details/payout-details-core.d.ts +2 -2
- package/dist/types/components/payout-details/payout-details.d.ts +3 -3
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +7 -8
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +0 -3
- package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +5 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +2 -24
- package/dist/types/components/payouts-list/payouts-table.d.ts +9 -9
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +7 -8
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -4
- package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +5 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +2 -24
- package/dist/types/components/terminals-list/terminals-table.d.ts +4 -4
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -5
- package/dist/types/components.d.ts +465 -1338
- package/dist/types/styles/parts.d.ts +58 -0
- package/dist/types/ui-components/details/utils.d.ts +0 -1
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +3 -3
- package/dist/types/ui-components/form/form-control-date.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +15 -0
- package/dist/types/ui-components/form/form-control-file.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-monetary.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-number.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +6 -7
- package/dist/types/ui-components/form/form-control-select.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-text.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -0
- package/dist/types/ui-components/form/form-helpers/form-control-error-text.d.ts +4 -0
- package/dist/types/ui-components/form/form-helpers/form-control-help-text.d.ts +4 -0
- package/dist/types/ui-components/form/form.d.ts +1 -1
- package/dist/types/ui-components/form/hidden-input.d.ts +11 -0
- package/dist/types/ui-components/form/iframe-input-styles-state.d.ts +3 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +21 -0
- package/dist/types/ui-components/headers/header-1.d.ts +6 -0
- package/dist/types/ui-components/headers/header-2.d.ts +6 -0
- package/dist/types/ui-components/headers/header-3.d.ts +6 -0
- package/dist/types/ui-components/index.d.ts +6 -0
- package/dist/types/ui-components/skeleton.d.ts +1 -2
- package/dist/types/ui-components/spinner.d.ts +2 -0
- package/dist/types/ui-components/table/event-types.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +3 -2
- package/dist/webcomponents/p-0201ec6c.entry.js +1 -0
- package/dist/webcomponents/p-08b8d1f0.entry.js +1 -0
- package/dist/webcomponents/p-0aa63869.entry.js +1 -0
- package/dist/webcomponents/p-0cc6c539.js +1 -0
- package/dist/webcomponents/p-0ccbc022.entry.js +1 -0
- package/dist/webcomponents/{p-1815a43b.js → p-0ea387a2.js} +1 -1
- package/dist/webcomponents/p-0eb86b3f.entry.js +1 -0
- package/dist/webcomponents/{p-5a62fca2.js → p-0f23ff58.js} +1 -1
- package/dist/webcomponents/p-110cae83.entry.js +1 -0
- package/dist/webcomponents/p-16ba9bea.js +1 -0
- package/dist/webcomponents/p-1ce22da6.entry.js +1 -0
- package/dist/webcomponents/p-1dbae48b.entry.js +1 -0
- package/dist/webcomponents/p-275f2154.js +1 -0
- package/dist/webcomponents/p-2783e363.js +2 -0
- package/dist/webcomponents/p-28029272.entry.js +1 -0
- package/dist/webcomponents/p-323ba4df.entry.js +1 -0
- package/dist/webcomponents/p-32a5bf4e.js +1 -0
- package/dist/webcomponents/p-34c14f59.js +1 -0
- package/dist/webcomponents/p-438df53f.entry.js +1 -0
- package/dist/webcomponents/p-441c1cf8.js +1 -0
- package/dist/webcomponents/p-4972d608.entry.js +1 -0
- package/dist/webcomponents/p-4a576796.js +1 -0
- package/dist/webcomponents/p-4cc3c7f9.js +1 -0
- package/dist/webcomponents/p-4d916b2d.js +1 -0
- package/dist/webcomponents/p-4eb3dcfa.entry.js +1 -0
- package/dist/webcomponents/p-5456a794.js +1 -0
- package/dist/webcomponents/p-5844a0f0.js +1 -0
- package/dist/webcomponents/p-597bd1e1.entry.js +1 -0
- package/dist/webcomponents/p-5bbe1133.entry.js +1 -0
- package/dist/webcomponents/p-5c6d08a6.entry.js +1 -0
- package/dist/webcomponents/p-5cb947bc.entry.js +1 -0
- package/dist/webcomponents/p-5d3f81c0.entry.js +1 -0
- package/dist/webcomponents/p-663a00cd.entry.js +1 -0
- package/dist/webcomponents/p-6677c60d.entry.js +1 -0
- package/dist/webcomponents/p-667ebd79.js +1 -0
- package/dist/webcomponents/p-68694a17.entry.js +1 -0
- package/dist/webcomponents/p-6ab77b89.js +1 -0
- package/dist/webcomponents/p-6b840696.entry.js +1 -0
- package/dist/webcomponents/p-6f4bfdff.entry.js +1 -0
- package/dist/webcomponents/p-6fbd6abb.js +1 -0
- package/dist/webcomponents/p-6feeb9f2.js +1 -0
- package/dist/webcomponents/p-7216ef00.entry.js +1 -0
- package/dist/webcomponents/p-73a18b5a.entry.js +1 -0
- package/dist/webcomponents/p-73f9be7c.js +1 -0
- package/dist/webcomponents/p-7693ed02.entry.js +1 -0
- package/dist/webcomponents/{p-4cf7f4ae.js → p-79b7c30d.js} +1 -1
- package/dist/webcomponents/p-7a975a3c.js +1 -0
- package/dist/webcomponents/p-7b9f21cd.entry.js +1 -0
- package/dist/webcomponents/p-7f796066.entry.js +1 -0
- package/dist/webcomponents/p-808bb677.entry.js +1 -0
- package/dist/webcomponents/p-83584c56.entry.js +1 -0
- package/dist/webcomponents/p-88acfa7c.entry.js +1 -0
- package/dist/webcomponents/p-8a94d2c8.js +1 -0
- package/dist/webcomponents/p-8c7a81c1.js +1 -0
- package/dist/webcomponents/p-8da3667c.js +1 -0
- package/dist/webcomponents/p-90dc2f2c.js +1 -0
- package/dist/webcomponents/p-9c2e00cc.js +1 -0
- package/dist/webcomponents/p-9ef9a625.entry.js +1 -0
- package/dist/webcomponents/p-9f773228.js +1 -0
- package/dist/webcomponents/p-a07b1816.js +1 -0
- package/dist/webcomponents/p-a3949f32.js +1 -0
- package/dist/webcomponents/p-abdbcd8e.js +1 -0
- package/dist/webcomponents/p-ac147eef.entry.js +1 -0
- package/dist/webcomponents/{p-b0311e88.js → p-af834eb8.js} +1 -1
- package/dist/webcomponents/p-b056034f.entry.js +1 -0
- package/dist/webcomponents/p-b1d4e520.entry.js +1 -0
- package/dist/webcomponents/p-b392ec21.js +1 -0
- package/dist/webcomponents/p-b867dd5d.entry.js +1 -0
- package/dist/webcomponents/{p-544a4e7a.js → p-bb0f8b70.js} +1 -1
- package/dist/webcomponents/p-bb61c6e0.js +1 -0
- package/dist/webcomponents/p-bbcaa29b.entry.js +1 -0
- package/dist/webcomponents/p-bfe9748b.js +1 -0
- package/dist/webcomponents/p-c092cbb2.js +1 -0
- package/dist/webcomponents/p-c2a2b9fe.entry.js +1 -0
- package/dist/webcomponents/p-c9670f3c.entry.js +1 -0
- package/dist/webcomponents/p-cc977850.js +1 -0
- package/dist/webcomponents/p-cefd50f8.entry.js +1 -0
- package/dist/webcomponents/p-d53c5ea5.entry.js +1 -0
- package/dist/webcomponents/p-d75b52c8.entry.js +1 -0
- package/dist/webcomponents/p-d960db89.entry.js +1 -0
- package/dist/webcomponents/p-db8c12ee.js +1 -0
- package/dist/webcomponents/p-e1ee92f5.entry.js +1 -0
- package/dist/webcomponents/p-e396506c.entry.js +1 -0
- package/dist/webcomponents/p-e723bc30.entry.js +1 -0
- package/dist/webcomponents/p-ec60d318.entry.js +1 -0
- package/dist/webcomponents/p-ed8918d1.entry.js +1 -0
- package/dist/webcomponents/{p-f6f8dabc.js → p-edb57087.js} +1 -1
- package/dist/webcomponents/p-ee4a2aac.entry.js +1 -0
- package/dist/webcomponents/p-ef4c49b9.js +1 -0
- package/dist/webcomponents/p-f20b6ce1.js +1 -0
- package/dist/webcomponents/{p-c13a7d10.js → p-f4722957.js} +1 -1
- package/dist/webcomponents/p-f88d5c0d.entry.js +1 -0
- package/dist/webcomponents/p-f8a3b942.entry.js +1 -0
- package/dist/webcomponents/p-f99e8150.entry.js +1 -0
- package/dist/webcomponents/{p-628693c1.entry.js → p-f9fdcc1a.entry.js} +4 -4
- package/dist/webcomponents/p-fa2e3dc7.entry.js +1 -0
- package/dist/webcomponents/{p-ccbff4fa.entry.js → p-faa35b47.entry.js} +1 -1
- package/dist/webcomponents/p-fc3daedd.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-form-types-719b7f52.js +0 -50
- package/dist/cjs/button-3f400a66.js +0 -26
- package/dist/cjs/check-pkg-version-fe8c72a9.js +0 -24
- package/dist/cjs/checkouts-list-filters.cjs.entry.js +0 -35
- package/dist/cjs/checkouts-table-00b6482f.js +0 -47
- package/dist/cjs/dispute-30c806f6.js +0 -10
- package/dist/cjs/exported-parts-a994d693.js +0 -9
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +0 -641
- package/dist/cjs/form-control-error-text.cjs.entry.js +0 -21
- package/dist/cjs/form-control-textarea.cjs.entry.js +0 -49
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +0 -173
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -79
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -80
- package/dist/cjs/justifi-new-payment-method_5.cjs.entry.js +0 -320
- package/dist/cjs/justifi-payment-form.cjs.entry.js +0 -141
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +0 -34
- package/dist/cjs/pagination-menu_2.cjs.entry.js +0 -54
- package/dist/cjs/payments-list-filters.cjs.entry.js +0 -40
- package/dist/cjs/payments-table-7087e771.js +0 -31
- package/dist/cjs/payouts-list-filters.cjs.entry.js +0 -24
- package/dist/cjs/payouts-table-4858eb84.js +0 -37
- package/dist/cjs/skeleton-748c5dde.js +0 -43
- package/dist/cjs/styled-host-1adf46c3.js +0 -14
- package/dist/cjs/terminals-list-filters.cjs.entry.js +0 -32
- package/dist/cjs/terminals-table-12410159.js +0 -32
- package/dist/cjs/utils-189dc30d.js +0 -35
- package/dist/cjs/utils-ba79e868.js +0 -37
- package/dist/collection/components/bank-account-form/bank-account-form.js +0 -281
- package/dist/collection/components/billing-form/billing-form.css +0 -51
- package/dist/collection/components/business-details/shared-business-details.css +0 -3
- package/dist/collection/components/business-forms/business-form/business-form.css +0 -121
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +0 -18
- package/dist/collection/components/business-forms/utils/business-form-types.js +0 -48
- package/dist/collection/components/card-form/card-form.js +0 -300
- package/dist/collection/components/checkout/checkout-core.css +0 -110
- package/dist/collection/components/checkout/form-check-input.css +0 -20
- package/dist/collection/components/checkout/header.css +0 -4
- package/dist/collection/components/checkout/payment-method-options.css +0 -15
- package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +0 -90
- package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +0 -16
- package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +0 -12
- package/dist/collection/components/dispute-management/dispute.js +0 -8
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +0 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +0 -11
- package/dist/collection/components/payment-form/payment-form.css +0 -97
- package/dist/collection/components/payment-form/payment-form.js +0 -372
- package/dist/collection/components/payment-form/payment-method-selector.css +0 -39
- package/dist/collection/components/payment-form/payment-method-selector.js +0 -74
- package/dist/collection/components/payment-method-form/message-event-types.js +0 -16
- package/dist/collection/components/payment-method-form/payment-method-form.css +0 -13
- package/dist/collection/components/payment-method-form/payment-method-form.js +0 -298
- package/dist/collection/components/refund-form/refund-form.css +0 -59
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +0 -9
- package/dist/collection/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -52
- package/dist/collection/utils/get-computed-theme.js +0 -50
- package/dist/esm/business-form-types-8fd61b0e.js +0 -50
- package/dist/esm/button-34e75e0f.js +0 -24
- package/dist/esm/check-pkg-version-fbf01ce7.js +0 -22
- package/dist/esm/checkouts-list-filters.entry.js +0 -31
- package/dist/esm/checkouts-table-cd33b57c.js +0 -43
- package/dist/esm/dispute-4d2e0a04.js +0 -10
- package/dist/esm/exported-parts-70e7a12b.js +0 -7
- package/dist/esm/form-control-checkbox_9.entry.js +0 -629
- package/dist/esm/form-control-error-text.entry.js +0 -17
- package/dist/esm/form-control-textarea.entry.js +0 -45
- package/dist/esm/justifi-additional-statement_11.entry.js +0 -159
- package/dist/esm/justifi-bank-account-form.entry.js +0 -75
- package/dist/esm/justifi-card-form.entry.js +0 -76
- package/dist/esm/justifi-new-payment-method_5.entry.js +0 -312
- package/dist/esm/justifi-payment-form.entry.js +0 -137
- package/dist/esm/justifi-payment-method-selector.entry.js +0 -30
- package/dist/esm/pagination-menu_2.entry.js +0 -49
- package/dist/esm/payments-list-filters.entry.js +0 -36
- package/dist/esm/payments-table-bba91324.js +0 -27
- package/dist/esm/payouts-list-filters.entry.js +0 -20
- package/dist/esm/payouts-table-edff9bbe.js +0 -33
- package/dist/esm/skeleton-145a80d4.js +0 -41
- package/dist/esm/styled-host-e0ddb759.js +0 -12
- package/dist/esm/terminals-list-filters.entry.js +0 -28
- package/dist/esm/terminals-table-dc787616.js +0 -28
- package/dist/esm/utils-218275b7.js +0 -27
- package/dist/esm/utils-4006c425.js +0 -33
- package/dist/module/Analytics.js +0 -78
- package/dist/module/business-form-types.js +0 -50
- package/dist/module/checkouts-list-filters.d.ts +0 -11
- package/dist/module/checkouts-list-filters.js +0 -6
- package/dist/module/checkouts-list-filters2.js +0 -80
- package/dist/module/counter-dispute.js +0 -189
- package/dist/module/dispute-reason.js +0 -45
- package/dist/module/exported-parts.js +0 -7
- package/dist/module/form-control-error-text.d.ts +0 -11
- package/dist/module/form-control-error-text2.js +0 -35
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -104
- package/dist/module/justifi-card-form.js +0 -106
- package/dist/module/justifi-counter-dispute.d.ts +0 -11
- package/dist/module/justifi-counter-dispute.js +0 -6
- package/dist/module/justifi-dispute-reason.d.ts +0 -11
- package/dist/module/justifi-dispute-reason.js +0 -6
- package/dist/module/justifi-payment-form.js +0 -216
- package/dist/module/justifi-payment-method-form.d.ts +0 -11
- package/dist/module/justifi-payment-method-form.js +0 -6
- package/dist/module/justifi-payment-method-selector.d.ts +0 -11
- package/dist/module/justifi-payment-method-selector.js +0 -6
- package/dist/module/payment-method-selector.js +0 -47
- package/dist/module/payments-list-filters.js +0 -6
- package/dist/module/payments-list-filters2.js +0 -97
- package/dist/module/payouts-list-filters.js +0 -6
- package/dist/module/payouts-list-filters2.js +0 -69
- package/dist/module/terminals-list-filters.d.ts +0 -11
- package/dist/module/terminals-list-filters.js +0 -6
- package/dist/module/utils5.js +0 -27
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -62
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -76
- package/dist/types/components/card-form/card-form.d.ts +0 -72
- package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +0 -14
- package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +0 -4
- package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +0 -3
- package/dist/types/components/dispute-management/dispute.d.ts +0 -7
- package/dist/types/components/payment-form/payment-form.d.ts +0 -36
- package/dist/types/components/payment-form/payment-method-selector.d.ts +0 -10
- package/dist/types/components/payment-form/tokenize.d.ts +0 -5
- package/dist/types/components/payment-method-form/message-event-types.d.ts +0 -16
- package/dist/types/components/payment-method-form/payment-method-form.d.ts +0 -25
- package/dist/types/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -5
- package/dist/types/utils/get-computed-theme.d.ts +0 -3
- package/dist/webcomponents/p-08b0fb31.js +0 -1
- package/dist/webcomponents/p-0a963f7e.entry.js +0 -1
- package/dist/webcomponents/p-0d6ddff2.js +0 -1
- package/dist/webcomponents/p-0fbab710.entry.js +0 -1
- package/dist/webcomponents/p-2338affa.js +0 -1
- package/dist/webcomponents/p-25d2ed4c.js +0 -1
- package/dist/webcomponents/p-286b87ab.js +0 -1
- package/dist/webcomponents/p-28bd6dcd.js +0 -1
- package/dist/webcomponents/p-297faf3d.js +0 -1
- package/dist/webcomponents/p-29c8fa3d.entry.js +0 -1
- package/dist/webcomponents/p-2f422aad.entry.js +0 -1
- package/dist/webcomponents/p-3186d1fb.entry.js +0 -1
- package/dist/webcomponents/p-3bfb4f80.entry.js +0 -1
- package/dist/webcomponents/p-3c654c07.js +0 -1
- package/dist/webcomponents/p-3ed7fc42.entry.js +0 -1
- package/dist/webcomponents/p-404a847c.entry.js +0 -1
- package/dist/webcomponents/p-41c1c1f7.entry.js +0 -1
- package/dist/webcomponents/p-41c7ee13.entry.js +0 -1
- package/dist/webcomponents/p-420adedb.entry.js +0 -1
- package/dist/webcomponents/p-431d7a9e.entry.js +0 -1
- package/dist/webcomponents/p-448826a7.entry.js +0 -1
- package/dist/webcomponents/p-469804a9.entry.js +0 -1
- package/dist/webcomponents/p-486da67e.entry.js +0 -1
- package/dist/webcomponents/p-4a5e5574.entry.js +0 -1
- package/dist/webcomponents/p-52f9d8a0.entry.js +0 -1
- package/dist/webcomponents/p-54145a37.entry.js +0 -1
- package/dist/webcomponents/p-56d84fb3.entry.js +0 -1
- package/dist/webcomponents/p-57125bd1.js +0 -1
- package/dist/webcomponents/p-5e7c60d8.js +0 -1
- package/dist/webcomponents/p-5ec82df8.entry.js +0 -1
- package/dist/webcomponents/p-673cf8c4.js +0 -1
- package/dist/webcomponents/p-69527219.entry.js +0 -1
- package/dist/webcomponents/p-6cc30da2.js +0 -1
- package/dist/webcomponents/p-6d51aed8.entry.js +0 -1
- package/dist/webcomponents/p-72819173.entry.js +0 -1
- package/dist/webcomponents/p-74da98da.js +0 -1
- package/dist/webcomponents/p-8037704c.js +0 -1
- package/dist/webcomponents/p-89f6691e.js +0 -1
- package/dist/webcomponents/p-91de21cc.js +0 -1
- package/dist/webcomponents/p-942be28b.entry.js +0 -1
- package/dist/webcomponents/p-95ec39f6.entry.js +0 -1
- package/dist/webcomponents/p-9690eca9.entry.js +0 -1
- package/dist/webcomponents/p-9c9c7dac.js +0 -1
- package/dist/webcomponents/p-a76ece26.js +0 -1
- package/dist/webcomponents/p-a7830e98.entry.js +0 -1
- package/dist/webcomponents/p-a8b4f429.js +0 -1
- package/dist/webcomponents/p-abe513e6.entry.js +0 -1
- package/dist/webcomponents/p-ada9ac19.entry.js +0 -1
- package/dist/webcomponents/p-b0dc68b3.entry.js +0 -1
- package/dist/webcomponents/p-b3cac576.entry.js +0 -1
- package/dist/webcomponents/p-b97233cc.entry.js +0 -1
- package/dist/webcomponents/p-bc1984ec.entry.js +0 -1
- package/dist/webcomponents/p-bc8205ec.js +0 -1
- package/dist/webcomponents/p-bfb990fc.entry.js +0 -1
- package/dist/webcomponents/p-c1bf9285.entry.js +0 -1
- package/dist/webcomponents/p-c3fb5d3a.entry.js +0 -1
- package/dist/webcomponents/p-c420cb7d.entry.js +0 -1
- package/dist/webcomponents/p-c8243721.js +0 -1
- package/dist/webcomponents/p-cd19c597.entry.js +0 -1
- package/dist/webcomponents/p-d1f75fa6.js +0 -1
- package/dist/webcomponents/p-d291dc4c.entry.js +0 -1
- package/dist/webcomponents/p-d2eb61e6.entry.js +0 -1
- package/dist/webcomponents/p-d516e700.js +0 -1
- package/dist/webcomponents/p-da176d01.entry.js +0 -1
- package/dist/webcomponents/p-dcb288a3.entry.js +0 -1
- package/dist/webcomponents/p-df3ca87f.entry.js +0 -1
- package/dist/webcomponents/p-df5a1202.entry.js +0 -1
- package/dist/webcomponents/p-e2ce097c.js +0 -1
- package/dist/webcomponents/p-e5790011.entry.js +0 -1
- package/dist/webcomponents/p-e69b2ff8.entry.js +0 -1
- package/dist/webcomponents/p-e8be1b55.entry.js +0 -1
- package/dist/webcomponents/p-e99957ff.entry.js +0 -1
- package/dist/webcomponents/p-eb9ba917.entry.js +0 -1
- package/dist/webcomponents/p-ed95feec.entry.js +0 -1
- package/dist/webcomponents/p-f28a4c03.entry.js +0 -1
- package/dist/webcomponents/p-f698d6d9.entry.js +0 -1
- package/dist/webcomponents/p-fad19d75.js +0 -2
- package/dist/webcomponents/p-fc6f697d.entry.js +0 -1
- package/dist/webcomponents/p-ffe27126.entry.js +0 -1
- package/dist/webcomponents/webcomponents.css +0 -6
- /package/dist/collection/{components/payment-form/tokenize.js → api/ComponentEvents.js} +0 -0
- /package/dist/collection/components/{payment-method-form → checkout}/payment-method-responses.js +0 -0
- /package/dist/types/components/{payment-method-form → checkout}/payment-method-responses.d.ts +0 -0
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, c as createEvent } from './index-29fcfdf5.js';
|
|
2
|
+
import { i as iframeInputStylesSet } from './iframe-input-styles-state-ff730fe5.js';
|
|
3
|
+
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, y as billingForm, z as radioListItem } from './parts-186d437f.js';
|
|
4
|
+
import { c as create$3, F as FormController } from './index.esm-0b6849c2.js';
|
|
5
|
+
import { u as identityNameValidation, l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation } from './schema-validations-c7d4f9df.js';
|
|
6
|
+
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
7
|
+
import { n as numberOnlyHandler } from './utils-20cdf321.js';
|
|
8
|
+
import { c as config } from './config-187b3ae1.js';
|
|
9
|
+
import { H as Header3 } from './header-3-a1c6d475.js';
|
|
10
|
+
import { a as PaymentMethodTypes } from './Payment-4f72d277.js';
|
|
11
|
+
import { j as snakeToCamel, b as formatCurrency } from './utils-54543523.js';
|
|
12
|
+
import './index-a47fdc7f.js';
|
|
13
|
+
import './business-form-options-018f62a5.js';
|
|
14
|
+
import './Business-29c69f22.js';
|
|
15
|
+
import './helpers-96ea3464.js';
|
|
16
|
+
import './Dispute-5fd28ec9.js';
|
|
17
|
+
|
|
18
|
+
const BankAccountForm = class {
|
|
19
|
+
constructor(hostRef) {
|
|
20
|
+
registerInstance(this, hostRef);
|
|
21
|
+
}
|
|
22
|
+
async validate() {
|
|
23
|
+
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
24
|
+
const routingNumberIsValid = await this.routingNumberIframeElement.validate();
|
|
25
|
+
return accountNumberIsValid && routingNumberIsValid;
|
|
26
|
+
}
|
|
27
|
+
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
28
|
+
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h(Host, { key: 'd0f0426565fedc6697eb46e6bc8d03d31eee9c37' }, h("div", { key: '6e792d5cba9421d7d106805d0e0e070ef5b116f9', class: "container-fluid p-0" }, h("div", { key: '89def9b854a7dc9a2e2fbb62d70bc6eaccfa6b0f', class: "row mb-3" }, h("iframe-input", { key: '2c0392ed840edb2364922c0d523f509ea84b3cd3', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${"https://components.justifi.ai/v2"}/accountNumber` })), h("div", { key: '6dbe7911ab8693a4850a60e2d86f4539382a341c', class: "row" }, h("iframe-input", { key: '042153db083d7fa8f4e6d2c5704054fbcf6c1af1', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${"https://components.justifi.ai/v2"}/routingNumber` })))));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const CardForm = class {
|
|
36
|
+
constructor(hostRef) {
|
|
37
|
+
registerInstance(this, hostRef);
|
|
38
|
+
}
|
|
39
|
+
async validate() {
|
|
40
|
+
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
41
|
+
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
42
|
+
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
43
|
+
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
44
|
+
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
45
|
+
}
|
|
46
|
+
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
47
|
+
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return (h(Host, { key: 'd667f365a95a2251fadffce158033ca8fcbc5723', class: "container-fluid p-0" }, h("div", { key: '43d8e15de893154c96b49ea1917046120daa8b2c', class: "mb-3" }, h("iframe-input", { key: 'c342a50a3194511edfbe6c1f1033bf47b743ddd6', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${"https://components.justifi.ai/v2"}/cardNumber` })), h("div", { key: '2fa70e85071ec6fe4525039de6215026795f71f4', class: "row" }, h("div", { key: 'e7dba59f040258e556664ccf84549edda8a1dd8d', class: "col-4 align-content-end" }, h("iframe-input", { key: '0c2c63ee318b0fc61ff704ffe02160aee252d281', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${"https://components.justifi.ai/v2"}/expirationMonth` })), h("div", { key: 'e211c9bc9cb15ea9571af7d965fcb1d6e4c5669d', class: "col-4 align-content-end" }, h("iframe-input", { key: 'd783cb0d28f1d08826e773efc14c2aa871905a83', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${"https://components.justifi.ai/v2"}/expirationYear` })), h("div", { key: '83af611f578e7db1984713047708e725c9c1c7b5', class: "col-4 align-content-end" }, h("iframe-input", { key: '1f53fce0b7856b8591f6454a549e123fa408be5f', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${"https://components.justifi.ai/v2"}/CVV` })))));
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const HiddenInput = class {
|
|
55
|
+
constructor(hostRef) {
|
|
56
|
+
registerInstance(this, hostRef);
|
|
57
|
+
this.isFocused = false;
|
|
58
|
+
this.errorText = '';
|
|
59
|
+
}
|
|
60
|
+
async componentDidLoad() {
|
|
61
|
+
const fontStyles = await this.getBaseFontStyles();
|
|
62
|
+
iframeInputStylesSet('fontStyles', fontStyles);
|
|
63
|
+
const focusedStyles = await this.getFocusedStyles();
|
|
64
|
+
iframeInputStylesSet('focused', focusedStyles);
|
|
65
|
+
const focusedAndInvalidStyles = await this.getFocusedAndInvalidStyles();
|
|
66
|
+
iframeInputStylesSet('focusedAndInvalid', focusedAndInvalidStyles);
|
|
67
|
+
}
|
|
68
|
+
async getBaseFontStyles() {
|
|
69
|
+
return new Promise((resolve, _reject) => {
|
|
70
|
+
setTimeout(() => {
|
|
71
|
+
const computedStyles = getComputedStyle(this.hiddenInput);
|
|
72
|
+
const styles = {
|
|
73
|
+
fontFamily: computedStyles.fontFamily,
|
|
74
|
+
fontSize: computedStyles.fontSize,
|
|
75
|
+
fontWeight: computedStyles.fontWeight,
|
|
76
|
+
lineHeight: computedStyles.lineHeight,
|
|
77
|
+
margin: computedStyles.margin,
|
|
78
|
+
padding: computedStyles.padding,
|
|
79
|
+
color: computedStyles.color,
|
|
80
|
+
};
|
|
81
|
+
resolve(styles);
|
|
82
|
+
}, 500);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
;
|
|
86
|
+
async getFocusedStyles() {
|
|
87
|
+
return new Promise((resolve, _reject) => {
|
|
88
|
+
this.hiddenInput.focus();
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
this.hiddenInput.blur();
|
|
91
|
+
let computedStyles = getComputedStyle(this.hiddenInput);
|
|
92
|
+
resolve({
|
|
93
|
+
boxShadow: computedStyles.boxShadow,
|
|
94
|
+
border: computedStyles.border,
|
|
95
|
+
});
|
|
96
|
+
}, 500);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
async getFocusedAndInvalidStyles() {
|
|
100
|
+
return new Promise((resolve, _reject) => {
|
|
101
|
+
this.hiddenInput.focus();
|
|
102
|
+
this.errorText = 'Error';
|
|
103
|
+
setTimeout(() => {
|
|
104
|
+
const computedStyles = getComputedStyle(this.hiddenInput);
|
|
105
|
+
const styles = {
|
|
106
|
+
boxShadow: computedStyles.boxShadow,
|
|
107
|
+
border: computedStyles.border,
|
|
108
|
+
};
|
|
109
|
+
this.hiddenInput.blur();
|
|
110
|
+
resolve(styles);
|
|
111
|
+
}, 500);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
get part() {
|
|
115
|
+
if (this.isFocused && this.errorText) {
|
|
116
|
+
return inputInvalidAndFocused;
|
|
117
|
+
}
|
|
118
|
+
if (this.errorText) {
|
|
119
|
+
return inputInvalid;
|
|
120
|
+
}
|
|
121
|
+
if (this.isFocused) {
|
|
122
|
+
return inputFocused;
|
|
123
|
+
}
|
|
124
|
+
return input;
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
return (h(Host, { key: '61734f69c30d37c98e3896c8407225dbe49fe3a2' }, h("input", { key: 'eda00a901e028a09ccd793b1fbc4136a048a0aad', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const BillingFormSchema = create$3({
|
|
132
|
+
name: identityNameValidation.required('Enter full name'),
|
|
133
|
+
address_line1: lineOneValidation.required('Enter street address'),
|
|
134
|
+
address_line2: lineTwoValidation.nullable(),
|
|
135
|
+
address_city: cityValidation.required('Enter city'),
|
|
136
|
+
address_state: stateValidation.required('Select state'),
|
|
137
|
+
address_postal_code: postalValidation.required('Enter postal code'),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
const BillingForm = class {
|
|
141
|
+
constructor(hostRef) {
|
|
142
|
+
registerInstance(this, hostRef);
|
|
143
|
+
this.inputHandler = (name, value) => {
|
|
144
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
145
|
+
};
|
|
146
|
+
this.legend = undefined;
|
|
147
|
+
this.formController = undefined;
|
|
148
|
+
this.billingInfo = undefined;
|
|
149
|
+
this.errors = {};
|
|
150
|
+
}
|
|
151
|
+
componentWillLoad() {
|
|
152
|
+
this.formController = new FormController(BillingFormSchema);
|
|
153
|
+
}
|
|
154
|
+
componentDidLoad() {
|
|
155
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
156
|
+
this.formController.errors.subscribe(errors => {
|
|
157
|
+
this.errors = Object.assign({}, errors);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
async getValues() {
|
|
161
|
+
return this.formController.values.getValue();
|
|
162
|
+
}
|
|
163
|
+
async fill(fields) {
|
|
164
|
+
this.formController.setInitialValues(fields);
|
|
165
|
+
}
|
|
166
|
+
async validate() {
|
|
167
|
+
let isValid = await this.formController.validate();
|
|
168
|
+
return { isValid: isValid };
|
|
169
|
+
}
|
|
170
|
+
render() {
|
|
171
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
172
|
+
return (h(Host, { key: 'b3bb548839b39a87ad330b9048426baff317cae0' }, h("form", { key: '32e999825e5094e8e5399d46f67b67186f18d7b2' }, h("fieldset", { key: 'c8f13e2d392c45804bb51907a21ff80cb1148fd3' }, this.legend && h("legend", { key: 'c4117087a3391f8c28815069d832d6133459b250' }, this.legend), h("div", { key: '61d9de519f93d42bab36670108a6b923e30cff7f', class: "row gy-3" }, h("div", { key: '4753e297cbab92db6f073e9679ea9f3e9dacf432', class: "col-12" }, h("form-control-text", { key: '1f366def4cd8449cc242eb3bd71952a1548def08', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c7efc6968d6f776be84ac16b56a785965a81501b', class: "col-12" }, h("form-control-text", { key: '789ca132aabfe42381ce55ec343494b9ac766e73', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'f750e3800a361e78c58a31091b8d07437fe7fdcf', class: "col-12" }, h("form-control-text", { key: '66e06c53dec8b254bf5f7b1d4029c17523f2ceb7', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '9868c2a9bcbed8c65ac8ca8d89ea2102fd0dd1c6', class: "col-12" }, h("form-control-text", { key: 'a637775b91a89fa32c54c97e6a97ec18b2e69024', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '274656a1a879790c99a684da3aa6070f473e2d0b', class: "col-12" }, h("form-control-select", { key: '5fca9ff62f2e2f26fc936474133dbdf24183e86d', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: 'e24b2e9961e1a464a1d99fa4982814e7d43c5a79', class: "col-12" }, h("form-control-text", { key: '1992d68c496b1331a0efbbbeb03153f9155a77d3', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler })))))));
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const PaymentMethodTypeLabels = {
|
|
177
|
+
bankAccount: 'New bank account',
|
|
178
|
+
card: 'New credit or debit card',
|
|
179
|
+
};
|
|
180
|
+
const NewPaymentMethod = class {
|
|
181
|
+
constructor(hostRef) {
|
|
182
|
+
registerInstance(this, hostRef);
|
|
183
|
+
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
184
|
+
this.onPaymentMethodOptionClick = (e) => {
|
|
185
|
+
e.preventDefault();
|
|
186
|
+
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
187
|
+
};
|
|
188
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
189
|
+
this.authToken = undefined;
|
|
190
|
+
this.accountId = undefined;
|
|
191
|
+
this.paymentMethodOption = undefined;
|
|
192
|
+
this.paymentMethodGroupId = undefined;
|
|
193
|
+
this.isSelected = undefined;
|
|
194
|
+
this.saveNewPaymentMethodChecked = false;
|
|
195
|
+
}
|
|
196
|
+
handleCheckboxChanged(event) {
|
|
197
|
+
this.saveNewPaymentMethodChecked = event.detail;
|
|
198
|
+
}
|
|
199
|
+
async fillBillingForm(fields) {
|
|
200
|
+
this.billingFormRef.fill(fields);
|
|
201
|
+
}
|
|
202
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
203
|
+
var _a, _b;
|
|
204
|
+
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
205
|
+
return;
|
|
206
|
+
try {
|
|
207
|
+
const isValid = await this.validate();
|
|
208
|
+
if (!isValid || !insuranceValidation.isValid) {
|
|
209
|
+
return { validationError: true };
|
|
210
|
+
}
|
|
211
|
+
const tokenizeResponse = await this.tokenize();
|
|
212
|
+
if (tokenizeResponse.error) {
|
|
213
|
+
return { error: tokenizeResponse.error };
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
const tokenizeRessponseData = tokenizeResponse.data;
|
|
217
|
+
return { token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token) };
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
catch (error) {
|
|
221
|
+
return { error };
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
async validate() {
|
|
225
|
+
const billingFormValidation = await this.billingFormRef.validate();
|
|
226
|
+
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
227
|
+
return billingFormValidation.isValid && paymentMethodFormValidation.isValid;
|
|
228
|
+
}
|
|
229
|
+
async tokenize() {
|
|
230
|
+
try {
|
|
231
|
+
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
232
|
+
let paymentMethodData;
|
|
233
|
+
if (this.saveNewPaymentMethodChecked) {
|
|
234
|
+
paymentMethodData = Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId });
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
paymentMethodData = Object.assign({}, billingFormFieldValues);
|
|
238
|
+
}
|
|
239
|
+
const clientId = this.authToken;
|
|
240
|
+
const tokenizeResponse = await this.paymentMethodFormRef.tokenize(clientId, paymentMethodData, this.accountId);
|
|
241
|
+
return tokenizeResponse;
|
|
242
|
+
}
|
|
243
|
+
catch (error) {
|
|
244
|
+
return error;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
showNewPaymentMethodForm() {
|
|
248
|
+
var _a;
|
|
249
|
+
return (h("div", { class: "mt-4 pb-4 border-bottom" }, h("hidden-input", null), h("div", { class: "mb-4" }, ((_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id) === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el }))), h("div", { part: billingForm }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el) })), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
250
|
+
}
|
|
251
|
+
render() {
|
|
252
|
+
var _a, _b;
|
|
253
|
+
return (h(Host, { key: '4b6e52ca95845aa1c9163f4d3eafbfc98ca51deb', class: "payment-method" }, h("div", { key: 'd4aea7115ff71564a4d1e87a468174a29a040406', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '0204f84a72bb89e03772894f208895359370714b', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
class PaymentMethodOption {
|
|
258
|
+
constructor(paymentMethod) {
|
|
259
|
+
this.id = paymentMethod.id;
|
|
260
|
+
this.brand = paymentMethod.brand;
|
|
261
|
+
this.acct_last_four = paymentMethod.acct_last_four;
|
|
262
|
+
this.type = snakeToCamel(paymentMethod.type);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
var CardBrandLabels;
|
|
266
|
+
(function (CardBrandLabels) {
|
|
267
|
+
CardBrandLabels["american_express"] = "American Express";
|
|
268
|
+
CardBrandLabels["diners_club"] = "Diners Club";
|
|
269
|
+
CardBrandLabels["discover"] = "Discover";
|
|
270
|
+
CardBrandLabels["jcb"] = "JCB";
|
|
271
|
+
CardBrandLabels["mastercard"] = "Mastercard";
|
|
272
|
+
CardBrandLabels["china_unionpay"] = "UnionPay";
|
|
273
|
+
CardBrandLabels["visa"] = "Visa";
|
|
274
|
+
CardBrandLabels["unknown"] = "Unknown";
|
|
275
|
+
})(CardBrandLabels || (CardBrandLabels = {}));
|
|
276
|
+
|
|
277
|
+
const PaymentMethodOptions = class {
|
|
278
|
+
constructor(hostRef) {
|
|
279
|
+
registerInstance(this, hostRef);
|
|
280
|
+
this.toggleCreatingNewPaymentMethod = createEvent(this, "toggleCreatingNewPaymentMethod", 7);
|
|
281
|
+
this.showCard = undefined;
|
|
282
|
+
this.showAch = undefined;
|
|
283
|
+
this.showBnpl = undefined;
|
|
284
|
+
this.showSavedPaymentMethods = undefined;
|
|
285
|
+
this.paymentMethodGroupId = undefined;
|
|
286
|
+
this.bnpl = undefined;
|
|
287
|
+
this.insuranceToggled = undefined;
|
|
288
|
+
this.authToken = undefined;
|
|
289
|
+
this.accountId = undefined;
|
|
290
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
291
|
+
this.savedPaymentMethods = [];
|
|
292
|
+
this.paymentAmount = undefined;
|
|
293
|
+
this.selectedPaymentMethodId = undefined;
|
|
294
|
+
this.paymentMethodOptions = [];
|
|
295
|
+
}
|
|
296
|
+
async fillBillingForm(fields) {
|
|
297
|
+
const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
|
|
298
|
+
if (newPaymentMethodElement.fillBillingForm) {
|
|
299
|
+
newPaymentMethodElement.fillBillingForm(fields);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
connectedCallback() {
|
|
303
|
+
this.paymentMethodsChanged();
|
|
304
|
+
}
|
|
305
|
+
paymentMethodsChanged() {
|
|
306
|
+
var _a, _b;
|
|
307
|
+
this.paymentMethodOptions = this.savedPaymentMethods
|
|
308
|
+
.map((paymentMethod) => new PaymentMethodOption(paymentMethod))
|
|
309
|
+
.filter((paymentMethod) => {
|
|
310
|
+
// Don't saved card or bank account if they are disabled
|
|
311
|
+
return ((this.showCard || paymentMethod.type !== PaymentMethodTypes.card) &&
|
|
312
|
+
(this.showAch || paymentMethod.type !== PaymentMethodTypes.bankAccount));
|
|
313
|
+
});
|
|
314
|
+
if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle' && !this.insuranceToggled) {
|
|
315
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzle }));
|
|
316
|
+
}
|
|
317
|
+
if (this.showCard) {
|
|
318
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
|
|
319
|
+
}
|
|
320
|
+
if (this.showAch) {
|
|
321
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
|
|
322
|
+
}
|
|
323
|
+
if (!this.selectedPaymentMethodId) {
|
|
324
|
+
this.selectedPaymentMethodId = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
paymentMethodOptionSelected(event) {
|
|
328
|
+
this.selectedPaymentMethodId = event.detail.id;
|
|
329
|
+
}
|
|
330
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
331
|
+
var _a;
|
|
332
|
+
return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod(insuranceValidation));
|
|
333
|
+
}
|
|
334
|
+
render() {
|
|
335
|
+
var _a;
|
|
336
|
+
return (h(Host, { key: '3ab3caf94332163f031ecebe101d45c35e1416bd' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
337
|
+
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
338
|
+
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
339
|
+
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
340
|
+
const sezzle = paymentMethodOption.id === PaymentMethodTypes.sezzle;
|
|
341
|
+
if (newCard || newBankAccount) {
|
|
342
|
+
return (h("justifi-new-payment-method", { paymentMethodOption: paymentMethodOption, authToken: this.authToken, "account-id": this.accountId, "is-selected": isSelected, paymentMethodGroupId: this.paymentMethodGroupId, ref: (el) => {
|
|
343
|
+
if (isSelected) {
|
|
344
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
345
|
+
}
|
|
346
|
+
} }));
|
|
347
|
+
}
|
|
348
|
+
else if (sezzle) {
|
|
349
|
+
return (h("justifi-sezzle-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, paymentAmount: this.paymentAmount, bnpl: this.bnpl, ref: (el) => {
|
|
350
|
+
if (isSelected) {
|
|
351
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
352
|
+
}
|
|
353
|
+
} }));
|
|
354
|
+
}
|
|
355
|
+
else if (this.showSavedPaymentMethods) {
|
|
356
|
+
return (h("justifi-saved-payment-method", { paymentMethodOption: paymentMethodOption, "is-selected": isSelected, ref: (el) => {
|
|
357
|
+
if (isSelected) {
|
|
358
|
+
this.selectedPaymentMethodOptionRef = el;
|
|
359
|
+
}
|
|
360
|
+
} }));
|
|
361
|
+
}
|
|
362
|
+
})));
|
|
363
|
+
}
|
|
364
|
+
static get watchers() { return {
|
|
365
|
+
"savedPaymentMethods": ["paymentMethodsChanged"]
|
|
366
|
+
}; }
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
const SaveNewPaymentMethod = class {
|
|
370
|
+
constructor(hostRef) {
|
|
371
|
+
registerInstance(this, hostRef);
|
|
372
|
+
this.checkboxChanged = createEvent(this, "checkboxChanged", 7);
|
|
373
|
+
this.isChecked = false;
|
|
374
|
+
}
|
|
375
|
+
handleCheckboxChange(_name, value) {
|
|
376
|
+
this.isChecked = value;
|
|
377
|
+
this.checkboxChanged.emit(this.isChecked);
|
|
378
|
+
}
|
|
379
|
+
render() {
|
|
380
|
+
return (h("div", { key: '4b0ac5e02aa02214bf8ddd574db56eb9508b0607', class: "mt-4 form-check" }, h("form-control-checkbox", { key: 'bca05c6b8fa00dd7bbc34ee36ef6086ae1764b82', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
const SavedPaymentMethod = class {
|
|
385
|
+
constructor(hostRef) {
|
|
386
|
+
registerInstance(this, hostRef);
|
|
387
|
+
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
388
|
+
this.onPaymentMethodOptionClick = (e) => {
|
|
389
|
+
e.preventDefault();
|
|
390
|
+
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
391
|
+
};
|
|
392
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
393
|
+
this.paymentMethodOption = undefined;
|
|
394
|
+
this.isSelected = undefined;
|
|
395
|
+
}
|
|
396
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
397
|
+
var _a;
|
|
398
|
+
if (!insuranceValidation.isValid) {
|
|
399
|
+
return { validationError: true };
|
|
400
|
+
}
|
|
401
|
+
return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
|
|
402
|
+
}
|
|
403
|
+
;
|
|
404
|
+
render() {
|
|
405
|
+
var _a, _b, _c;
|
|
406
|
+
return (h(Host, { key: '8e5a11a58cf828356df001461b6bb3163521f1ed', class: "payment-method" }, h("div", { key: 'c20a8a3dcea1f885b94c4829b85be8d6f401ad42', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '72b970f6808e9f938869195fa29217f44b44250e', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
411
|
+
display: 'inline',
|
|
412
|
+
width: '80px',
|
|
413
|
+
marginLeft: '5px',
|
|
414
|
+
marginTop: '-5px',
|
|
415
|
+
} }));
|
|
416
|
+
const SezzlePaymentMethod = class {
|
|
417
|
+
constructor(hostRef) {
|
|
418
|
+
registerInstance(this, hostRef);
|
|
419
|
+
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
420
|
+
this.onPaymentMethodOptionClick = (e) => {
|
|
421
|
+
e.preventDefault();
|
|
422
|
+
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
423
|
+
};
|
|
424
|
+
this.initializeSezzleCheckout = () => {
|
|
425
|
+
let resolveSezzlePromise;
|
|
426
|
+
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
427
|
+
const bnpl = this.bnpl;
|
|
428
|
+
const amount = +this.paymentAmount; // convert to number
|
|
429
|
+
const Checkout = window.Checkout;
|
|
430
|
+
const checkout = new Checkout({
|
|
431
|
+
mode: 'popup',
|
|
432
|
+
publicKey: bnpl.provider_client_id,
|
|
433
|
+
apiMode: bnpl.provider_mode,
|
|
434
|
+
apiVersion: bnpl.provider_api_version,
|
|
435
|
+
});
|
|
436
|
+
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
437
|
+
checkout.init({
|
|
438
|
+
onClick: function (event) {
|
|
439
|
+
event.preventDefault();
|
|
440
|
+
checkout.startCheckout({
|
|
441
|
+
checkout_url: bnpl.provider_checkout_url
|
|
442
|
+
});
|
|
443
|
+
},
|
|
444
|
+
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
445
|
+
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
446
|
+
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
447
|
+
});
|
|
448
|
+
this.sezzleCheckout = checkout;
|
|
449
|
+
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
450
|
+
};
|
|
451
|
+
this.iframeOrigin = config.iframeOrigin;
|
|
452
|
+
this.bnpl = undefined;
|
|
453
|
+
this.clientId = undefined;
|
|
454
|
+
this.accountId = undefined;
|
|
455
|
+
this.paymentMethodOption = undefined;
|
|
456
|
+
this.isSelected = undefined;
|
|
457
|
+
this.paymentAmount = undefined;
|
|
458
|
+
this.installmentPlan = undefined;
|
|
459
|
+
this.sezzleCheckout = undefined;
|
|
460
|
+
this.sezzlePromise = undefined;
|
|
461
|
+
}
|
|
462
|
+
componentDidRender() {
|
|
463
|
+
this.scriptRef.onload = () => {
|
|
464
|
+
this.sezzleButtonRef = document.createElement('button');
|
|
465
|
+
this.initializeSezzleCheckout();
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
469
|
+
if (!insuranceValidation.isValid) {
|
|
470
|
+
return { validationError: true };
|
|
471
|
+
}
|
|
472
|
+
this.sezzleButtonRef.click();
|
|
473
|
+
return this.sezzlePromise;
|
|
474
|
+
}
|
|
475
|
+
render() {
|
|
476
|
+
var _a, _b, _c;
|
|
477
|
+
return (h(Host, { key: 'bbe1a2f4a2418d8c9e946e15567f7df89ac06084', class: "payment-method" }, h("script", { key: 'a254fbb032a531a889d81297053be07001262706', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '691439a9541b69f59fac8ed744d633a7cba69fbd', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '4f03055cf993502ff1999abfbd14aa5e6977b811', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_c = this.installmentPlan) === null || _c === void 0 ? void 0 : _c.installments[0].amountInCents))))) }))));
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export { BankAccountForm as bank_account_form, CardForm as card_form, HiddenInput as hidden_input, BillingForm as justifi_billing_form, NewPaymentMethod as justifi_new_payment_method, PaymentMethodOptions as justifi_payment_method_options, SaveNewPaymentMethod as justifi_save_new_payment_method, SavedPaymentMethod as justifi_saved_payment_method, SezzlePaymentMethod as justifi_sezzle_payment_method };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as create$3 } from './index.esm-
|
|
2
|
-
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, p as phoneValidation, d as doingBusinessAsValidation, a as businessClassificationValidation, i as industryValidation, t as taxIdValidation, c as dateOfIncorporationValidation, r as revenueValidation, f as paymentVolumeValidation, g as whenServiceReceivedValidation, h as recurringPaymentsValidation, j as recurringPaymentsPercentageValidation, s as seasonalBusinessValidation, o as otherPaymentDetailsValidation } from './schema-validations-
|
|
1
|
+
import { c as create$3 } from './index.esm-0b6849c2.js';
|
|
2
|
+
import { b as businessNameValidation, w as websiteUrlValidation, e as emailValidation, p as phoneValidation, d as doingBusinessAsValidation, a as businessClassificationValidation, i as industryValidation, t as taxIdValidation, c as dateOfIncorporationValidation, r as revenueValidation, f as paymentVolumeValidation, g as whenServiceReceivedValidation, h as recurringPaymentsValidation, j as recurringPaymentsPercentageValidation, s as seasonalBusinessValidation, o as otherPaymentDetailsValidation } from './schema-validations-c7d4f9df.js';
|
|
3
3
|
|
|
4
4
|
const businessCoreInfoSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent
|
|
2
|
-
import {
|
|
3
|
-
import { S as StyledHost } from './styled-host-
|
|
1
|
+
import { h, F as Fragment, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
|
|
2
|
+
import { E as ErrorState } from './utils-d7633e66.js';
|
|
3
|
+
import { S as StyledHost } from './styled-host-32228b45.js';
|
|
4
|
+
import { S as Skeleton } from './skeleton-8f71cdf7.js';
|
|
5
|
+
import './parts-186d437f.js';
|
|
6
|
+
|
|
7
|
+
const BusinessDetailsLoading = () => {
|
|
8
|
+
const Block = () => (h("div", { class: "mt-5" },
|
|
9
|
+
h(Skeleton, { width: "40%", height: "1.5rem" }),
|
|
10
|
+
h("hr", null),
|
|
11
|
+
h("div", { class: "row g-3" },
|
|
12
|
+
h("div", { class: "col-12 col-md-6" },
|
|
13
|
+
h(Skeleton, null),
|
|
14
|
+
h(Skeleton, null),
|
|
15
|
+
h(Skeleton, null)),
|
|
16
|
+
h("div", { class: "col-12 col-md-6" },
|
|
17
|
+
h(Skeleton, null),
|
|
18
|
+
h(Skeleton, null),
|
|
19
|
+
h(Skeleton, null)))));
|
|
20
|
+
return (h(Fragment, null,
|
|
21
|
+
h(Block, null),
|
|
22
|
+
h(Block, null),
|
|
23
|
+
h(Block, null),
|
|
24
|
+
h(Block, null)));
|
|
25
|
+
};
|
|
4
26
|
|
|
5
27
|
var RENDER_STATES;
|
|
6
28
|
(function (RENDER_STATES) {
|
|
@@ -42,7 +64,7 @@ const BusinessDetailsCore = class {
|
|
|
42
64
|
}
|
|
43
65
|
render() {
|
|
44
66
|
if (this.renderState === RENDER_STATES.LOADING) {
|
|
45
|
-
return h(StyledHost, null,
|
|
67
|
+
return (h(StyledHost, null, h(BusinessDetailsLoading, null)));
|
|
46
68
|
}
|
|
47
69
|
if (this.renderState === RENDER_STATES.ERROR) {
|
|
48
70
|
return h(StyledHost, null, ErrorState(this.errorMessage));
|
package/dist/esm/{business-identity-schema-2756dbc6.js → business-identity-schema-75126188.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as create$3, a as create$6 } from './index.esm-
|
|
2
|
-
import { l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation, u as identityNameValidation, v as identityTitleValidation, e as emailValidation, p as phoneValidation, x as dobValidation, y as ssnValidation } from './schema-validations-
|
|
1
|
+
import { c as create$3, a as create$6 } from './index.esm-0b6849c2.js';
|
|
2
|
+
import { l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation, u as identityNameValidation, v as identityTitleValidation, e as emailValidation, p as phoneValidation, x as dobValidation, y as ssnValidation } from './schema-validations-c7d4f9df.js';
|
|
3
3
|
|
|
4
4
|
const addressSchema = (allowOptionalFields) => {
|
|
5
5
|
const schema = create$3({
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { h } from './index-29fcfdf5.js';
|
|
2
|
+
import { f as buttonLoading, g as buttonPrimary, j as buttonSecondary } from './parts-186d437f.js';
|
|
3
|
+
|
|
4
|
+
const ButtonSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status", part: "button-spinner" },
|
|
5
|
+
h("span", { class: "visually-hidden" }, "Loading...")));
|
|
6
|
+
|
|
7
|
+
const Button = (props, children) => {
|
|
8
|
+
const variantToButton = {
|
|
9
|
+
primary: buttonPrimary,
|
|
10
|
+
secondary: buttonSecondary,
|
|
11
|
+
};
|
|
12
|
+
const getCSSParts = () => {
|
|
13
|
+
return `${variantToButton[props.variant]} ${(props.isLoading) ? buttonLoading : ''}`;
|
|
14
|
+
};
|
|
15
|
+
return (h("button", Object.assign({ class: `btn btn-${props.variant}`, onClick: props.clickHandler, part: getCSSParts() }, props), props.isLoading ? ButtonSpinner() : children));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { Button as B };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
2
|
-
import { c as config } from './config-
|
|
1
|
+
import { p as packageJson } from './package-9e3b7f9e.js';
|
|
2
|
+
import { c as config } from './config-187b3ae1.js';
|
|
3
3
|
import { A as Api } from './Api-391d00e2.js';
|
|
4
4
|
|
|
5
5
|
class AnalyticsService {
|
|
@@ -46,7 +46,7 @@ class JustifiAnalytics {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
trackCustomEvents() {
|
|
49
|
-
this.eventEmitters = ['
|
|
49
|
+
this.eventEmitters = ['submit-event', 'error-event'];
|
|
50
50
|
// for each event, add an event listener
|
|
51
51
|
this.eventEmitters.forEach((eventName) => {
|
|
52
52
|
// if this.componentInstance.addEventListener is a function add the event listener
|
|
@@ -75,4 +75,23 @@ class JustifiAnalytics {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
const latestVersion = async (packageName) => {
|
|
79
|
+
const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
|
|
80
|
+
const json = await response.json();
|
|
81
|
+
return json.version;
|
|
82
|
+
};
|
|
83
|
+
const checkPkgVersion = async () => {
|
|
84
|
+
const version = packageJson.version;
|
|
85
|
+
const packageName = packageJson.name;
|
|
86
|
+
const latest = await latestVersion(packageName);
|
|
87
|
+
// remove rc from version and everything that comes after -rc
|
|
88
|
+
const latestNotRC = latest.replace(/-rc.*/, '');
|
|
89
|
+
// checkif there's a major version difference
|
|
90
|
+
const versionParts = version.split('.');
|
|
91
|
+
const latestParts = latest.split('.');
|
|
92
|
+
if (versionParts[0] !== latestParts[0]) {
|
|
93
|
+
console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export { JustifiAnalytics as J, checkPkgVersion as c };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as config } from './config-
|
|
1
|
+
import { c as config } from './config-187b3ae1.js';
|
|
2
2
|
import { A as Api } from './Api-391d00e2.js';
|
|
3
3
|
import './Checkout-0b4086f8.js';
|
|
4
4
|
import './Pagination-afc8f96d.js';
|
|
5
|
-
import './Payment-
|
|
5
|
+
import './Payment-4f72d277.js';
|
|
6
6
|
import './SubAccount-99a00594.js';
|
|
7
7
|
|
|
8
8
|
class CheckoutService {
|