@justifi/webcomponents 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-f5280a80.js → Api-b0e4be29.js} +12 -0
- package/dist/cjs/{Checkout-a528241d.js → Checkout-2ff4f9c8.js} +6 -0
- package/dist/cjs/{Payment-d074b246.js → Payment-84817e2d.js} +10 -1
- package/dist/cjs/{SubAccount-fda5ec5b.js → SubAccount-f236913b.js} +6 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/badge-fbf58cb9.js +44 -0
- package/dist/cjs/bank-account-form_9.cjs.entry.js +60 -65
- package/dist/cjs/{iframe-input.cjs.entry.js → billing-form_3.cjs.entry.js} +99 -6
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/business.service-ffb6f478.js +38 -0
- package/dist/cjs/{button-94bdc1f0.js → button-e7796b07.js} +1 -1
- package/dist/cjs/{check-pkg-version-05db7d8e.js → check-pkg-version-dee8dbb7.js} +3 -4
- package/dist/cjs/{checkout.service-671fab62.js → checkout.service-e9c05c15.js} +7 -8
- package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -9
- package/dist/cjs/checkouts-table-0f19c1e6.js +57 -0
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-c362a953.js → dispute.service-9272a2a6.js} +8 -9
- package/dist/cjs/{event-types-4df47396.js → event-types-aa1a9be1.js} +3 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-a2fd5fc1.js → form-control-error-text-c1f49f35.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-file.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-help-text-b6f7ae6e.js → form-control-help-text-e6cc71a7.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +6 -6
- package/dist/cjs/{get-payout-csv-d2aed52c.js → get-payout-csv-778db023.js} +7 -8
- package/dist/cjs/{get-subaccounts-9aa22224.js → get-subaccounts-b087fa39.js} +5 -6
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-cb7af794.js → header-1-96b97cab.js} +1 -1
- package/dist/cjs/{header-3-75e50713.js → header-3-ce77b96b.js} +1 -1
- package/dist/cjs/{insurance-state-001cfe12.js → insurance-state-8959c7c7.js} +1 -1
- package/dist/cjs/{justifi-additional-questions-form-step-core_8.cjs.entry.js → justifi-additional-questions-form-step-core_9.cjs.entry.js} +225 -16
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +54 -161
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -7
- package/dist/cjs/justifi-business-form.cjs.entry.js +40 -15
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -11
- package/dist/cjs/justifi-checkout.cjs.entry.js +11 -11
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -16
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +21 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -14
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +28 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-48c58886.js → package-8b9059cc.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-811ddb9c.js → parts-addf2176.js} +20 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +27 -13
- package/dist/cjs/{payment-provisioning-actions-06466dda.js → payment-provisioning-actions-fbd30d1b.js} +31 -0
- package/dist/cjs/{payment.service-9a5336f1.js → payment.service-042c7c99.js} +6 -7
- package/dist/cjs/payments-list-core.cjs.entry.js +11 -10
- package/dist/cjs/payments-status-411c325c.js +58 -0
- package/dist/cjs/{payments-table-cf5d1c33.js → payments-table-16f3f95e.js} +12 -12
- package/dist/cjs/payout-details-core.cjs.entry.js +22 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +11 -10
- package/dist/cjs/payouts-status-0951e39d.js +53 -0
- package/dist/cjs/{payouts-table-58881d95.js → payouts-table-bc15179c.js} +14 -16
- package/dist/cjs/{skeleton-5ca03840.js → skeleton-c4903a53.js} +1 -1
- package/dist/cjs/{spinner-c11fcb44.js → spinner-aac395e3.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +10 -8
- package/dist/cjs/terminals-table-3c19847b.js +45 -0
- package/dist/cjs/{utils-a21b7453.js → utils-5fb95d31.js} +6 -8
- package/dist/cjs/{utils-fc17191b.js → utils-a05a8bf6.js} +2 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/BankAccount.js +12 -0
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Payment.js +10 -1
- package/dist/collection/api/Payout.js +5 -1
- package/dist/collection/api/services/business.service.js +6 -0
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/{billing-form → billing-forms/billing-form}/billing-form.js +10 -10
- package/dist/collection/components/{billing-form → billing-forms}/billing-form-schema.js +13 -2
- package/dist/collection/components/billing-forms/billing-form-wrapper.js +183 -0
- package/dist/collection/components/billing-forms/postal-form/postal-form.js +136 -0
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-form-loading.js +6 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +10 -4
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- 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 +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +13 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +270 -0
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +37 -146
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +13 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +11 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +13 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +1 -1
- 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/legal-address-form/legal-address-form-step-core.js +13 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +30 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-loading.js +6 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +30 -27
- package/dist/collection/components/checkout/checkout.js +29 -24
- package/dist/collection/components/checkout/new-payment-method.js +39 -33
- package/dist/collection/components/checkout/payment-method-options.js +29 -44
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -21
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -21
- package/dist/collection/components/checkout/test/checkout.js +0 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-status.js +26 -11
- package/dist/collection/components/checkouts-list/checkouts-table.js +7 -7
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-loading.js +4 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -2
- package/dist/collection/components/payment-details/payment-details-core.js +10 -12
- package/dist/collection/components/payment-details/payment-details-loading.js +4 -0
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +1 -1
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payments-list/payments-status.js +51 -21
- package/dist/collection/components/payments-list/payments-table.js +8 -8
- package/dist/collection/components/payout-details/payout-details-core.js +3 -4
- package/dist/collection/components/payout-details/payout-details-loading.js +4 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-status.js +46 -19
- package/dist/collection/components/payouts-list/payouts-table.js +10 -10
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-status.js +21 -9
- package/dist/collection/components/terminals-list/terminals-table.js +4 -4
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +60 -25
- package/dist/collection/styles/parts.js +11 -2
- package/dist/collection/ui-components/badge/badge.js +39 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/details/utils.js +1 -1
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/utils/table.js +1 -1
- package/dist/collection/utils/utils.js +6 -8
- package/dist/config.js +0 -1
- package/dist/docs.json +780 -198
- package/dist/esm/{Api-391d00e2.js → Api-0cac5b8a.js} +12 -1
- package/dist/esm/{Checkout-0b4086f8.js → Checkout-d476bb83.js} +6 -0
- package/dist/esm/{Payment-4f72d277.js → Payment-47630113.js} +10 -1
- package/dist/esm/{SubAccount-99a00594.js → SubAccount-f31349a9.js} +6 -1
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/badge-b034e71b.js +42 -0
- package/dist/esm/bank-account-form_9.entry.js +59 -64
- package/dist/esm/{iframe-input.entry.js → billing-form_3.entry.js} +98 -7
- package/dist/esm/{business-additional-questions-schema-48e93928.js → business-additional-questions-schema-aba9747e.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-75126188.js → business-identity-schema-8b0f1619.js} +1 -1
- package/dist/esm/{business.service-182aea6f.js → business.service-ab2663a3.js} +8 -3
- package/dist/esm/{button-1886a33d.js → button-8a02823c.js} +1 -1
- package/dist/esm/{check-pkg-version-95b9be89.js → check-pkg-version-51d2616b.js} +2 -3
- package/dist/esm/{checkout.service-32a6ebe8.js → checkout.service-c275270e.js} +4 -5
- package/dist/esm/checkouts-list-core.entry.js +10 -9
- package/dist/esm/checkouts-table-115bacc4.js +53 -0
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/{dispute.service-4e5059aa.js → dispute.service-882e35ed.js} +4 -5
- package/dist/esm/{event-types-01dcdcbd.js → event-types-948c3b14.js} +3 -3
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-3b2553b5.js → form-control-error-text-066cdad4.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +4 -4
- package/dist/esm/form-control-file.entry.js +4 -4
- package/dist/esm/{form-control-help-text-a2fc3617.js → form-control-help-text-3b6f5980.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +6 -6
- package/dist/esm/{get-payout-csv-e6058aa7.js → get-payout-csv-50aea928.js} +4 -5
- package/dist/esm/{get-subaccounts-0b8af245.js → get-subaccounts-ab3dd32c.js} +4 -5
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-c6a00a22.js → header-1-75c284dd.js} +1 -1
- package/dist/esm/{header-3-a1c6d475.js → header-3-4a327395.js} +1 -1
- package/dist/esm/{insurance-state-8fc9376f.js → insurance-state-b495be64.js} +1 -1
- package/dist/esm/{justifi-additional-questions-form-step-core_8.entry.js → justifi-additional-questions-form-step-core_9.entry.js} +230 -22
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +53 -160
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-business-details.entry.js +6 -7
- package/dist/esm/justifi-business-form.entry.js +43 -18
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +10 -11
- package/dist/esm/justifi-checkout.entry.js +11 -11
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +13 -13
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +9 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +14 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -6
- package/dist/esm/justifi-owner-form_3.entry.js +10 -11
- package/dist/esm/justifi-payment-details.entry.js +10 -10
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -7
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +13 -13
- package/dist/esm/justifi-payout-details.entry.js +10 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +14 -14
- package/dist/esm/justifi-refund-form.entry.js +6 -6
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +22 -5
- package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -9
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +12 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +29 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-223933b4.js → package-5eedfd72.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-186d437f.js → parts-93f379ab.js} +12 -3
- package/dist/esm/payment-details-core.entry.js +28 -14
- package/dist/esm/{payment-provisioning-actions-0635eff7.js → payment-provisioning-actions-a262ee82.js} +31 -1
- package/dist/esm/{payment.service-45f90e06.js → payment.service-92b90855.js} +4 -5
- package/dist/esm/payments-list-core.entry.js +11 -10
- package/dist/esm/payments-status-82466054.js +56 -0
- package/dist/esm/{payments-table-d6fbab5b.js → payments-table-c0bb25b6.js} +12 -12
- package/dist/esm/payout-details-core.entry.js +23 -8
- package/dist/esm/payouts-list-core.entry.js +11 -10
- package/dist/esm/payouts-status-b98c8297.js +51 -0
- package/dist/esm/{payouts-table-2e61a116.js → payouts-table-4382a264.js} +14 -16
- package/dist/esm/{schema-validations-c7d4f9df.js → schema-validations-5b0ac96b.js} +1 -1
- package/dist/esm/{skeleton-8f71cdf7.js → skeleton-3bcb2b5d.js} +1 -1
- package/dist/esm/{spinner-879489b3.js → spinner-b83f3a87.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminals-list-core.entry.js +10 -8
- package/dist/esm/terminals-table-8f1c2146.js +41 -0
- package/dist/esm/{utils-d7633e66.js → utils-7fb6331d.js} +2 -2
- package/dist/esm/{utils-54543523.js → utils-b76d791e.js} +7 -9
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +6 -0
- package/dist/module/Payment.js +11 -1
- package/dist/module/SubAccount.js +6 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/badge.js +42 -0
- package/dist/module/bank-account-form2.js +1 -1
- package/dist/module/billing-form-schema.js +16 -0
- package/dist/module/billing-form-wrapper.js +114 -0
- package/dist/module/{justifi-billing-form.d.ts → billing-form.d.ts} +4 -4
- package/dist/module/billing-form.js +4 -97
- package/dist/module/billing-form2.js +90 -0
- package/dist/module/business-additional-questions-form-step-core.js +13 -3
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +206 -0
- package/dist/module/business-bank-account-form-step.js +49 -157
- package/dist/module/business-core-info-form-step-core.js +14 -4
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-document-upload-form-step.js +2 -3
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-owners-form-step-core.js +10 -2
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step-core.js +12 -2
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +2 -3
- package/dist/module/business-terms-conditions-text.js +2 -2
- package/dist/module/business.service.js +8 -3
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-form2.js +1 -1
- package/dist/module/check-pkg-version.js +1 -2
- package/dist/module/checkout-core.js +51 -40
- package/dist/module/checkout.service.js +1 -2
- package/dist/module/checkouts-list-core2.js +36 -27
- package/dist/module/config.js +116 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +2 -3
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/event-types.js +2 -2
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-date2.js +3 -3
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -3
- package/dist/module/form-control-monetary2.js +3 -3
- package/dist/module/form-control-number-masked2.js +3 -3
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -3
- package/dist/module/form-control-text2.js +3 -3
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/get-payout-csv.js +2 -3
- package/dist/module/get-subaccounts.js +2 -3
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-billing-form-wrapper.d.ts +11 -0
- package/dist/module/justifi-billing-form-wrapper.js +6 -0
- package/dist/module/justifi-business-bank-account-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-bank-account-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +32 -7
- package/dist/module/justifi-checkout.js +53 -41
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +33 -28
- package/dist/module/justifi-payments-list-filters.js +1 -1
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +1 -1
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-form.js +2 -3
- package/dist/module/justifi-season-interruption-insurance.js +6 -5
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +73 -45
- package/dist/module/legal-address-form-step-core.js +13 -3
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +54 -44
- package/dist/module/owner-form-core2.js +2 -2
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/owner-form.js +2 -2
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +12 -3
- package/dist/module/payment-details-core2.js +25 -13
- package/dist/module/payment-method-options.js +49 -39
- package/dist/module/payment-provisioning-actions.js +32 -2
- package/dist/module/payment-provisioning-core.js +31 -25
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +32 -26
- package/dist/module/payment-provisioning-loading.js +25 -0
- package/dist/module/payment.service.js +1 -2
- package/dist/module/payments-list-core2.js +12 -12
- package/dist/module/payments-status.js +52 -20
- package/dist/module/payout-details-core2.js +18 -5
- package/dist/module/payouts-list-core2.js +14 -16
- package/dist/module/payouts-status.js +47 -18
- package/dist/module/postal-form.d.ts +11 -0
- package/dist/module/postal-form.js +6 -0
- package/dist/module/postal-form2.js +83 -0
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +2 -5
- package/dist/module/schema-validations.js +2 -2
- package/dist/module/season-interruption-insurance-core.js +19 -2
- package/dist/module/sezzle-payment-method.js +2 -5
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminals-list-core2.js +26 -14
- package/dist/module/utils.js +1 -1
- package/dist/module/utils2.js +6 -8
- package/dist/module/utils3.js +23 -24
- package/dist/module/utils4.js +24 -23
- package/dist/types/api/BankAccount.d.ts +11 -0
- package/dist/types/api/Checkout.d.ts +4 -2
- package/dist/types/api/Payment.d.ts +9 -4
- package/dist/types/api/Payout.d.ts +4 -2
- package/dist/types/api/services/business.service.d.ts +7 -0
- package/dist/types/components/{billing-form → billing-forms/billing-form}/billing-form.d.ts +2 -2
- package/dist/types/components/{billing-form → billing-forms}/billing-form-schema.d.ts +11 -2
- package/dist/types/components/billing-forms/billing-form-wrapper.d.ts +19 -0
- package/dist/types/components/billing-forms/postal-form/postal-form.d.ts +20 -0
- package/dist/types/components/business-forms/business-form/business-form-loading.d.ts +1 -0
- package/dist/types/components/business-forms/business-form/business-form.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +6 -24
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-loading.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +1 -1
- package/dist/types/components/checkout/checkout-core.d.ts +3 -6
- package/dist/types/components/checkout/checkout.d.ts +3 -3
- package/dist/types/components/checkout/new-payment-method.d.ts +4 -4
- package/dist/types/components/checkout/payment-method-options.d.ts +3 -5
- package/dist/types/components/checkout/payment-method-payload.d.ts +2 -0
- package/dist/types/components/checkout/saved-payment-method.d.ts +0 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +0 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-status.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +7 -6
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance-loading.d.ts +2 -0
- package/dist/types/components/payment-details/payment-details-loading.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
- package/dist/types/components/payments-list/payments-status.d.ts +1 -1
- package/dist/types/components/payments-list/payments-table.d.ts +8 -7
- package/dist/types/components/payout-details/payout-details-loading.d.ts +2 -0
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -1
- package/dist/types/components/payouts-list/payouts-status.d.ts +1 -1
- package/dist/types/components/payouts-list/payouts-table.d.ts +10 -9
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +1 -1
- package/dist/types/components/terminals-list/terminals-status.d.ts +1 -1
- package/dist/types/components/terminals-list/terminals-table.d.ts +5 -4
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +3 -1
- package/dist/types/components.d.ts +123 -77
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -1
- package/dist/types/styles/parts.d.ts +10 -1
- package/dist/types/ui-components/badge/badge.d.ts +18 -0
- package/dist/types/utils/table.d.ts +3 -3
- package/dist/types/utils/utils.d.ts +2 -1
- package/dist/webcomponents/p-04ce1f82.js +1 -0
- package/dist/webcomponents/p-0544f4a4.entry.js +1 -0
- package/dist/webcomponents/p-060ff1a1.js +1 -0
- package/dist/webcomponents/p-0658b707.entry.js +1 -0
- package/dist/webcomponents/{p-1dbae48b.entry.js → p-09fd4ee2.entry.js} +1 -1
- package/dist/webcomponents/p-0d7e7957.js +1 -0
- package/dist/webcomponents/p-10cface4.entry.js +1 -0
- package/dist/webcomponents/p-10f9ff7b.entry.js +1 -0
- package/dist/webcomponents/p-12233a57.entry.js +1 -0
- package/dist/webcomponents/p-135e24c0.js +1 -0
- package/dist/webcomponents/p-1a27f22e.js +1 -0
- package/dist/webcomponents/p-1e2526c8.entry.js +1 -0
- package/dist/webcomponents/p-24a9c773.js +1 -0
- package/dist/webcomponents/p-270033ba.entry.js +1 -0
- package/dist/webcomponents/{p-47e7f876.entry.js → p-2a17a29c.entry.js} +1 -1
- package/dist/webcomponents/{p-b056034f.entry.js → p-2b081961.entry.js} +1 -1
- package/dist/webcomponents/p-2bd8650b.js +1 -0
- package/dist/webcomponents/p-2c7441ea.entry.js +1 -0
- package/dist/webcomponents/p-2ce40098.js +1 -0
- package/dist/webcomponents/p-2d27d054.entry.js +1 -0
- package/dist/webcomponents/p-2d801915.js +1 -0
- package/dist/webcomponents/p-332bd5ab.entry.js +1 -0
- package/dist/webcomponents/p-351c7fa3.entry.js +1 -0
- package/dist/webcomponents/p-39177d5a.js +1 -0
- package/dist/webcomponents/p-3f209fcc.entry.js +1 -0
- package/dist/webcomponents/p-411382f3.js +1 -0
- package/dist/webcomponents/p-427881b1.entry.js +1 -0
- package/dist/webcomponents/p-44604a45.js +1 -0
- package/dist/webcomponents/p-46769ec3.entry.js +1 -0
- package/dist/webcomponents/p-47cd431c.js +1 -0
- package/dist/webcomponents/p-4acfed0d.entry.js +1 -0
- package/dist/webcomponents/{p-0aa63869.entry.js → p-4bcfdb99.entry.js} +1 -1
- package/dist/webcomponents/p-4c4f9e3b.js +1 -0
- package/dist/webcomponents/p-4e122ace.js +1 -0
- package/dist/webcomponents/{p-d75b52c8.entry.js → p-541b7c36.entry.js} +1 -1
- package/dist/webcomponents/p-5d0763a5.js +1 -0
- package/dist/webcomponents/p-5d177a30.js +1 -0
- package/dist/webcomponents/p-64a1ae2c.entry.js +1 -0
- package/dist/webcomponents/p-67aef066.entry.js +1 -0
- package/dist/webcomponents/p-6ad11a9f.entry.js +1 -0
- package/dist/webcomponents/p-6bc01617.js +1 -0
- package/dist/webcomponents/{p-323ba4df.entry.js → p-6e8be579.entry.js} +1 -1
- package/dist/webcomponents/p-72a90154.entry.js +1 -0
- package/dist/webcomponents/{p-8c7a81c1.js → p-730e8425.js} +1 -1
- package/dist/webcomponents/p-73323a41.entry.js +1 -0
- package/dist/webcomponents/p-73619f0a.js +1 -0
- package/dist/webcomponents/{p-f4722957.js → p-74736657.js} +1 -1
- package/dist/webcomponents/p-74d6e182.entry.js +1 -0
- package/dist/webcomponents/p-7aff48a1.entry.js +1 -0
- package/dist/webcomponents/{p-08b8d1f0.entry.js → p-7b1fcab5.entry.js} +1 -1
- package/dist/webcomponents/p-7bddbee4.js +1 -0
- package/dist/webcomponents/{p-c9670f3c.entry.js → p-7db2a4d5.entry.js} +1 -1
- package/dist/webcomponents/p-83aa33f0.js +1 -0
- package/dist/webcomponents/p-87ce7b69.js +1 -0
- package/dist/webcomponents/p-8d61499c.entry.js +1 -0
- package/dist/webcomponents/p-9069fab5.js +1 -0
- package/dist/webcomponents/p-92d78790.js +1 -0
- package/dist/webcomponents/p-948b7710.entry.js +1 -0
- package/dist/webcomponents/p-96bc127e.entry.js +1 -0
- package/dist/webcomponents/p-98b027b7.entry.js +1 -0
- package/dist/webcomponents/p-a3df6c3e.entry.js +1 -0
- package/dist/webcomponents/p-a5008b32.entry.js +1 -0
- package/dist/webcomponents/p-a59636ed.js +1 -0
- package/dist/webcomponents/p-a7b04e24.js +1 -0
- package/dist/webcomponents/{p-7b9f21cd.entry.js → p-ac2588af.entry.js} +1 -1
- package/dist/webcomponents/{p-b1d4e520.entry.js → p-b78da082.entry.js} +1 -1
- package/dist/webcomponents/p-b86e804e.entry.js +1 -0
- package/dist/webcomponents/p-ba202e33.js +1 -0
- package/dist/webcomponents/p-bb842885.entry.js +1 -0
- package/dist/webcomponents/p-bf07d5d0.entry.js +1 -0
- package/dist/webcomponents/{p-1e6077f4.js → p-c2efe406.js} +1 -1
- package/dist/webcomponents/p-c358b253.entry.js +1 -0
- package/dist/webcomponents/p-c6051278.entry.js +1 -0
- package/dist/webcomponents/{p-7216ef00.entry.js → p-ca6214ca.entry.js} +1 -1
- package/dist/webcomponents/{p-af834eb8.js → p-cb8f7bf4.js} +1 -1
- package/dist/webcomponents/p-ce2de434.entry.js +1 -0
- package/dist/webcomponents/{p-bb61c6e0.js → p-d1f78cb5.js} +1 -1
- package/dist/webcomponents/p-d5dace8b.entry.js +1 -0
- package/dist/webcomponents/p-d6e51c2f.js +1 -0
- package/dist/webcomponents/{p-f9fdcc1a.entry.js → p-d86c1f11.entry.js} +2 -2
- package/dist/webcomponents/{p-a47971d8.entry.js → p-dc6e1e5f.entry.js} +1 -1
- package/dist/webcomponents/{p-fa2e3dc7.entry.js → p-e0f21a47.entry.js} +1 -1
- package/dist/webcomponents/{p-79b7c30d.js → p-eb644cb7.js} +1 -1
- package/dist/webcomponents/p-f2158e48.entry.js +1 -0
- package/dist/webcomponents/p-f3867b82.entry.js +1 -0
- package/dist/webcomponents/p-f5a7a7d1.entry.js +1 -0
- package/dist/webcomponents/p-f65abd18.js +1 -0
- package/dist/webcomponents/{p-663a00cd.entry.js → p-f76a7f9c.entry.js} +1 -1
- package/dist/webcomponents/p-fd6619d0.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business.service-285f6f26.js +0 -32
- package/dist/cjs/checkouts-table-17648e93.js +0 -48
- package/dist/cjs/config-b190e93e.js +0 -15
- package/dist/cjs/payments-status-68ac449d.js +0 -26
- package/dist/cjs/payouts-status-2f7be07d.js +0 -24
- package/dist/cjs/terminals-table-91985249.js +0 -33
- package/dist/esm/checkouts-table-8b116232.js +0 -44
- package/dist/esm/config-187b3ae1.js +0 -13
- package/dist/esm/payments-status-a7c18f2a.js +0 -24
- package/dist/esm/payouts-status-cd58e525.js +0 -22
- package/dist/esm/terminals-table-8e42977c.js +0 -29
- package/dist/module/Api.js +0 -116
- package/dist/module/justifi-billing-form.js +0 -6
- package/dist/webcomponents/p-01f32098.entry.js +0 -1
- package/dist/webcomponents/p-0201ec6c.entry.js +0 -1
- package/dist/webcomponents/p-050a6855.entry.js +0 -1
- package/dist/webcomponents/p-0cc6c539.js +0 -1
- package/dist/webcomponents/p-0ccbc022.entry.js +0 -1
- package/dist/webcomponents/p-0e180654.js +0 -1
- package/dist/webcomponents/p-0eb86b3f.entry.js +0 -1
- package/dist/webcomponents/p-0f23ff58.js +0 -1
- package/dist/webcomponents/p-16d2932d.js +0 -1
- package/dist/webcomponents/p-1ce22da6.entry.js +0 -1
- package/dist/webcomponents/p-206fde40.js +0 -1
- package/dist/webcomponents/p-20a24f3a.entry.js +0 -1
- package/dist/webcomponents/p-238f1ff8.entry.js +0 -1
- package/dist/webcomponents/p-2462bf86.entry.js +0 -1
- package/dist/webcomponents/p-32a5bf4e.js +0 -1
- package/dist/webcomponents/p-34c14f59.js +0 -1
- package/dist/webcomponents/p-3db8b3c7.js +0 -1
- package/dist/webcomponents/p-3eabbdd4.entry.js +0 -1
- package/dist/webcomponents/p-438df53f.entry.js +0 -1
- package/dist/webcomponents/p-441c1cf8.js +0 -1
- package/dist/webcomponents/p-4972d608.entry.js +0 -1
- package/dist/webcomponents/p-4a576796.js +0 -1
- package/dist/webcomponents/p-4d916b2d.js +0 -1
- package/dist/webcomponents/p-5968ff8a.js +0 -1
- package/dist/webcomponents/p-597bd1e1.entry.js +0 -1
- package/dist/webcomponents/p-5bbe1133.entry.js +0 -1
- package/dist/webcomponents/p-5cb947bc.entry.js +0 -1
- package/dist/webcomponents/p-5d3f81c0.entry.js +0 -1
- package/dist/webcomponents/p-6677c60d.entry.js +0 -1
- package/dist/webcomponents/p-68694a17.entry.js +0 -1
- package/dist/webcomponents/p-6ab77b89.js +0 -1
- package/dist/webcomponents/p-6b840696.entry.js +0 -1
- package/dist/webcomponents/p-6fbd6abb.js +0 -1
- package/dist/webcomponents/p-6feeb9f2.js +0 -1
- package/dist/webcomponents/p-70eea098.entry.js +0 -1
- package/dist/webcomponents/p-73a18b5a.entry.js +0 -1
- package/dist/webcomponents/p-7a975a3c.js +0 -1
- package/dist/webcomponents/p-808bb677.entry.js +0 -1
- package/dist/webcomponents/p-80b1bcc2.entry.js +0 -1
- package/dist/webcomponents/p-88acfa7c.entry.js +0 -1
- package/dist/webcomponents/p-8a94d2c8.js +0 -1
- package/dist/webcomponents/p-8fe80110.entry.js +0 -1
- package/dist/webcomponents/p-90dc2f2c.js +0 -1
- package/dist/webcomponents/p-9c2d5229.entry.js +0 -1
- package/dist/webcomponents/p-9c2e00cc.js +0 -1
- package/dist/webcomponents/p-a3949f32.js +0 -1
- package/dist/webcomponents/p-ac147eef.entry.js +0 -1
- package/dist/webcomponents/p-b392ec21.js +0 -1
- package/dist/webcomponents/p-b6d76082.entry.js +0 -1
- package/dist/webcomponents/p-bb0f8b70.js +0 -1
- package/dist/webcomponents/p-bb71cef3.js +0 -1
- package/dist/webcomponents/p-bbcaa29b.entry.js +0 -1
- package/dist/webcomponents/p-c092cbb2.js +0 -1
- package/dist/webcomponents/p-c212414b.entry.js +0 -1
- package/dist/webcomponents/p-c2a2b9fe.entry.js +0 -1
- package/dist/webcomponents/p-cc977850.js +0 -1
- package/dist/webcomponents/p-d53c5ea5.entry.js +0 -1
- package/dist/webcomponents/p-d8fdf2b5.entry.js +0 -1
- package/dist/webcomponents/p-d960db89.entry.js +0 -1
- package/dist/webcomponents/p-db8c12ee.js +0 -1
- package/dist/webcomponents/p-e396506c.entry.js +0 -1
- package/dist/webcomponents/p-e4421e98.entry.js +0 -1
- package/dist/webcomponents/p-e7bb6520.js +0 -1
- package/dist/webcomponents/p-ed8918d1.entry.js +0 -1
- package/dist/webcomponents/p-edb57087.js +0 -1
- package/dist/webcomponents/p-ee4a2aac.entry.js +0 -1
- package/dist/webcomponents/p-ef4c49b9.js +0 -1
- package/dist/webcomponents/p-f88d5c0d.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-5d0763a5.js";import{p as a}from"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{y as i,z as r}from"./p-ba202e33.js";import{T as h,a as c,b as o,c as d,d as p}from"./p-730e8425.js";import{p as n,a as b}from"./p-24a9c773.js";import{o as f,q as m}from"./p-fc3daedd.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-5d177a30.js";import"./p-d6e51c2f.js";import"./p-411382f3.js";import"./p-f20b6ce1.js";const l=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:h.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:h.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:h.row,data:e})},this.getPayments=void 0,this.columns=void 0,this.payments=[],this.paymentsTable=void 0,this.loading=!0,this.errorMessage=void 0,this.paging=a,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new c(this.payments,this.columns,n,b),this.getPayments&&this.fetchData(),f("set",(()=>{this.pagingParams={}})),f("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.requestParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments,this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}get requestParams(){return Object.assign(Object.assign({},m),this.pagingParams)}render(){return e("div",{key:"6ae0c491d9ba248e878f65915448b715ae1c3381"},e("div",{key:"3e2a5fe63f83d7a45c44486bc7dc7e2493b29520",class:"table-wrapper"},e("table",{key:"3523e917bd342db707671ce9069a17618b20d1f8",class:"table table-hover",part:i},e("thead",{key:"e3436965637929742b7b827627504f8b4776cd7c",class:"table-head sticky-top"},e("tr",{key:"edf671796c2a0ad5b1fc9d6e3c3c0210f841946d",class:"table-light text-nowrap"},this.paymentsTable.columnData.map((t=>t)))),e("tbody",{key:"1cc99781f6a96dd3597fa32c31e2dff6861cc945",class:"table-body"},e(o,{key:"0b1e2a89902ca170252139807512d2d91f2260f0",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(d,{key:"1857d904b79a0a5b9276846a6b0afd5fe54b72f0",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(p,{key:"da42e70686ca49cef71bce6fd596bd18f1f1f365",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"e6dd57881b2643442d61c01a5308529ba1e24dc0",class:"sticky-bottom"},e("tr",{key:"6dfb87ce0ba57057505e961825bb54bbe5d29910",class:"table-light align-middle"},e("td",{key:"a47bd709a0296308c7348cda14bf1d2958f10feb",part:r,colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"0db007e310d5ca49bd05b5dbc7673cc2276b9ce3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{queryParams:["updateOnPropChange"],pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{l as payments_list_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as t,c}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";class e{async fetchCheckout(e,o){const s=`checkouts/${o}`;return t({authToken:e,apiOrigin:c.proxyApiOrigin}).get(s)}async fetchCheckouts(e,o,s,n){n||(n=c.proxyApiOrigin);const a={Account:e};return t({authToken:o,apiOrigin:n}).get("checkouts",s,null,a)}async complete(e,o,s){const n=`checkouts/${o}/complete`,a={payment_mode:s.payment_mode};return s.payment_token&&(a.payment_token=s.payment_token),t({authToken:e,apiOrigin:c.proxyApiOrigin}).post(n,a)}}export{e as C}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as r}from"./p-14c91ffd.js";import{g as e,a as o}from"./p-8115b2f4.js";const n=({authToken:n,businessId:t,service:s})=>async({onSuccess:i,onError:a,final:c=(()=>{})})=>{var u;try{const c=await s.fetchBusiness(t,n);if(c.error){return a({error:e(c.error),code:o(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return c()}},t=({authToken:n,businessId:t,service:s})=>async({payload:i,onSuccess:a,onError:c,final:u=(()=>{})})=>{var l;try{const u=await s.patchBusiness(n,t,i);if(u.error){return c({error:e(u.error),code:o(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}a(u)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},s=({authToken:n,businessId:t,product:s,service:i})=>async({onSuccess:a,onError:c})=>{var u;try{const l=await i.postProvisioning(n,t,s);if(l.error){return c({error:e(l.error),code:o(null===(u=l.error)||void 0===u?void 0:u.code),severity:r.ERROR})}a(l)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:s})=>async({onSuccess:i,onError:a,final:c=(()=>{})})=>{var u;try{const c=await s.fetchIdentity(t,n);if(c.error){return a({error:e(c.error),code:o(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return c()}},a=({authToken:n,identityId:t,service:s})=>async({payload:i,onSuccess:a,onError:c,final:u=(()=>{})})=>{var l;try{const u=await s.patchIdentity(n,t,i);if(u.error){return c({error:e(u.error),code:o(null===(l=u.error)||void 0===l?void 0:l.code),severity:r.ERROR})}a(u)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},c=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=(()=>{})})=>{var u;try{const c=await t.postIdentity(n,s);if(c.error){return a({error:e(c.error),code:o(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return c()}},u=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:a,final:c=(()=>{})})=>{var u;try{const c=await t.postBankAccount(n,s);if(c.error){return a({error:e(c.error),code:o(null===(u=c.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(c)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return c()}};export{s as a,t as b,u as c,i as d,a as e,c as f,n as m}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as s,g as a}from"./p-2783e363.js";import{i as o,b as r,a as h,
|
|
1
|
+
import{r as t,c as e,h as i,H as s,g as a}from"./p-2783e363.js";import{i as o,b as r,a as h,M as c,c as l,l as d}from"./p-ba202e33.js";const f=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.files=void 0,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.inputHandler=void 0,this.disabled=void 0}render(){return i(s,{key:"744d405a20702d024f33fc8bc5aa6cbc97c45260",exportparts:"label,input,input-invalid"},i("div",{key:"e20fde11ba0bb73f99d9ab7fe7e5a23b30a81ea3",class:"form-group d-flex flex-column"},i("div",{key:"fff2a256c667f26cb9cf3dc8a2420276a779a5c4",class:"d-flex align-items-start gap-2"},i("label",{key:"c9df617c17f646c6f48a904e3b96327ff55a6c13",part:"label",class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"4095bdb2e3393821fbf0e05592abe64d9c43ca7b",helpText:this.helpText})),i("input",{key:"0f7b7296cbcc68df6e6eb77056928175417e6ecd",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit()}),i("form-control-error-text",{key:"57398436dad7e92bfb362cdfeb73e4f7d939c51c",errorText:this.errorText,name:this.name})))}get el(){return a(this)}},n=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?r:this.isFocused?h:this.disabled?c:l}render(){return i(s,{key:"9e87b1f5529dedd7c181923a595c3a914a3ac729"},i("div",{key:"18bf20bca1ab1d4a63d20ce52de8701bd750e315",class:"form-group d-flex flex-column"},i("label",{key:"9a0f4a849115e646ffc892d35c7519ddc102be02",part:d,class:"form-label",htmlFor:this.name},this.label),i("textarea",{key:"0643574a2bc802ea4dcb5b9577b84cd949e61f9e",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"3fc99f67a4b13cadb47fbc34a027cc2e2c3e5097",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"6f69a3a24f8b4d21db958260a1bc6ceaaf70efa6",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_file_v2,n as form_control_textarea}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-2783e363.js";import{c as t,a as i,F as c}from"./p-5844a0f0.js";import{B as d}from"./p-ef4c49b9.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(o||(o={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(l||(l={}));const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[],this.acceptedTerms=!1,this.acceptedTermsErrorText=void 0}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e;return a("div",{key:"b87dba6b6f0cfd8be3bd034996ad0848f31df3da"},a("div",{key:"b2af872dd182dede7cb2c697aa8297acc49eb6c1",class:"row gy-3"},a("div",{key:"34815036600a5030f388c0dcb840ab7f4db0b66f",class:"col-12"},a("h2",{key:"c7922a6dd81112aefc028d1f7662aed993cd4c58",class:"h5",part:d},"Additional Evidence")),a("div",{key:"1e760ad49f1a7494181b4658f8e73a3f6ede2a22",class:"col-12"},a("form-control-textarea",{key:"7226c1a3ef90a9f2db529f20470678bf8277738f",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"cbf8886bd32f9859e6cbe75d5c499ea3eb23aea3",class:"col-12"},a("form-control-file-v2",{key:"05d52880aa75af84bab03122ef39c2fbc0d0cf7b",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:this.handleFileSelection}))))}},f=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.cancellationPolicy)))}componentWillLoad(){this.form=new c(f)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"e4e9bc25a430c01e60345523341a52e343d8ada8"},a("div",{key:"3a22fcf75e13235e40b30686cc953a5c7963f676",class:"row gy-3"},a("div",{key:"88cfd3d1fdc811e20367caa917ee88a1531fae96",class:"col-12"},a("h2",{key:"56030d5fb77119d324b33c8290e62ca220425afc",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"816d7868525662ae14d549852c816840933a15e6",class:"col-12"},a("form-control-textarea",{key:"165335b23db8c03976da96f1a369f28f1ad46505",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"b7f0333145ef1c1f3a1a6bd69f0e01a199f09da6",class:"col-12"},a("form-control-textarea",{key:"a456a76fd6745bd6386787e69fee81b7b48c7dc2",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"929e6f0e5fee8e6c4be4558e82b22a15806c1723",class:"col-12"},a("form-control-file-v2",{key:"661504e19c6d2304a93a95f716b6b215832c4a90",label:"Upload Cancellation Policy",name:"cancellation_policy_file",onChange:this.handleFileSelection}))))}},b=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),u=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.customerDetails)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"f3b9a18d93cea09e6c9f7a134ed566ad12887839"},a("div",{key:"f9d3594930e9ae5d5907462bbe76c242019a19bc",class:"row gy-3"},a("div",{key:"809f4e25c8a4d8652ae4711a33321b17d35f5796",class:"col-12"},a("h2",{key:"56f784698452620cb30b532840b02ee2ca3b6a7a",class:"h5",part:d},"Customer Details")),a("div",{key:"6775574f0e8f1047a11e3e9594f9f237aee09aa2",class:"col-12"},a("form-control-text",{key:"4fc621b96baed074292ccbe8507a58d18f005237",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"f57ace60afc3a74711dc98ea054345413ff51d48",class:"col-12"},a("form-control-text",{key:"31a88ff6476ecd98fd6def5c39778940b448da51",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"3ea9b1729c1a516fdbf33b28674e33a5ec5f200a",class:"col-12"},a("form-control-textarea",{key:"6eb19b40b3a514db9e1ead3e57832da37d791db6",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"363371261754410c5548fc9286a5d9edbec5e4a0",class:"col-12"},a("form-control-file-v2",{key:"bf3976ab48c50bb7cd6fd7c29a39a36bee8a70c5",label:"Customer Signature",name:"customer_signature",onChange:this.handleFileSelection})),a("div",{key:"7a85113b3a4c95e0571759f040a63757eead2788",class:"col-12"},a("form-control-file-v2",{key:"686b82077404ce7c345a51b4c572452fa0491b7d",label:"Customer Communication",name:"customer_communication",onChange:this.handleFileSelection}))))}},v=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),p=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.duplicateCharge)))}componentWillLoad(){this.form=new c(v)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"a6729feaab17744bbd3c256b5bdee89939c9be55"},a("div",{key:"d3729ddaa5983766f87aa634399704c52ee4979c",class:"row gy-3"},a("div",{key:"9c9288b63b688e83f53353a110ec31c078068312",class:"col-12"},a("h2",{key:"431878c838002b8a15d202793ab3701cbc81df7e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"f8b9a8dbb78777cb9c63a4296e41fdfe4edb2c7c",class:"col-12"},a("form-control-text",{key:"8dc4ddad5ab952a09c99deef8734374891075575",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"c5445211510dbdf1f6b547ef82ce128d3a316554",class:"col-12"},a("form-control-textarea",{key:"a650bf8ca839ae86d00d9df0eb77815a63ebafd6",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"47625dc4a02045230234220e24295b8260f38043",class:"col-12"},a("form-control-file-v2",{key:"242b9ae244cc8fbad3721053a50042a76d8f40ad",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:this.handleFileSelection}))))}},m=t({customer_purchase_ip_address:i().nullable()}),y=class{constructor(a){e(this,a),this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.electronicEvidence)))}componentWillLoad(){this.form=new c(m)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e;return a("div",{key:"5521599b8e6d23412a06b4a9c6f5360f92ec9c12"},a("div",{key:"b1863623b1ffa07c18940d744184c7678515e1f3",class:"row gy-3"},a("div",{key:"131410f3882f96e0346776db4c213e2ef17b546e",class:"col-12"},a("h2",{key:"30120f59c8a7896f5294b4ccaf09165c1d28771e",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"7211111acc93fd40b4140d49d4b1e3d268d13829",class:"col-12"},a("form-control-text",{key:"eeb3aeaa550569db5c977f3d2ef68b879be446c6",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"7f98aae20a9f87d4f4f0b42f86350bb1468cc767",class:"col-12"},a("form-control-file-v2",{key:"342b76753a12784852f2eb087941796874b90d39",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:this.handleFileSelection,errorText:this.errors.activity_log}))))}},_=t({product_description:i().nullable(),service_date:i().nullable()}),k=class{constructor(a){e(this,a),this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.productOrService)))}componentWillLoad(){this.form=new c(_)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"ad4e3c33f8bc1c295ea51257afc41e6247537022"},a("div",{key:"a87f06ff09eadf63ee358a84759d6bd9223c76ec",class:"row gy-3"},a("div",{key:"a3053e1d5e2192786fab4592a3ef5a6614fa0de3",class:"col-12"},a("h2",{key:"e2b97bf1d8e6f964306f1d2292f00daf5f4e997d",class:"h5",part:d},"Product & Service Details")),a("div",{key:"0f4e0c72a0b145ec689e7f0a96df86d10be38423",class:"col-12"},a("form-control-text",{key:"dd6a94690ac454a35d3b9ddeadde3ae5926ae170",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"d9c437dfc8e02bfacc27143e16b753b7940db409",class:"col-12"},a("form-control-text",{key:"42e638a983cf713f0055d409b305b8fca2ac6bda",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"df1f9b6153433e60973723ab20139fe3c739a4cf",class:"col-12"},a("form-control-file-v2",{key:"6a03cdafcf9d8a4913eaf9b876500792022c58f4",label:"Service Documentation",name:"service_documentation",onChange:this.handleFileSelection,errorText:this.errors.service_documentation}))))}},g=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),x=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.refundPolicy)))}componentWillLoad(){this.form=new c(g)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"54885e971c2d21be1d3c2a4654616e6406a425e5"},a("div",{key:"aefe693ee221d72f44a87806ca5ddc257bbf4073",class:"row gy-3"},a("div",{key:"5a4c220a9cbcd8accd8dd3a3e9c5db74f520f483",class:"col-12"},a("h2",{key:"fee6747bc31eeee7648c5af1fec4e86dd33d2f21",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"70f2d38f553a77c6e5a4e2ec25bed11665cd56e5",class:"col-12"},a("form-control-textarea",{key:"a0635424932726c980d68bad1c7758159d382575",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"b63f29f32b4a2bb35ec2dbeb2d26695bd58d2c32",class:"col-12"},a("form-control-textarea",{key:"41787fd17b44810eb19945ce7ea5f340ee40ea98",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"acff917b1af1babc1f93cf0541d9d2f22f8f4460",class:"col-12"},a("form-control-file-v2",{key:"52bee3670ca1cae28fd2d07033796245b13306d4",label:"Upload Refund Policy",name:"refund_policy",onChange:this.handleFileSelection})),a("div",{key:"6e63ed1828f61cfec3882fba0ce0439668111a7a",class:"col-12"},a("form-control-file-v2",{key:"99a13cfd6c0e662794c013368209c88065a7e404",label:"Upload Receipt",name:"receipt",onChange:this.handleFileSelection}))))}},j=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),w=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.shippingDetails)))}componentWillLoad(){this.form=new c(j)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"b2d81ec85e534890a691547a2ec8d28dcc61e784"},a("div",{key:"3b49e0e3647e66196f586c2e58699e878658c9f3",class:"row gy-3"},a("div",{key:"ba6f52f0c2a44c7a39641cb9cb51bf799892a78f",class:"col-12"},a("h2",{key:"70a108aa928d392d47bf72a32c3a2c71538fc068",class:"h5",part:d},"Shipping Details")),a("div",{key:"f5e1b4c54c4d59b7b558fe817d23e5cbc71acec1",class:"col-12"},a("form-control-text",{key:"32da6155a22359d291506e7d864b0b09fda34f99",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"55a1082190a09f2723ffbcb6075c18a094ddf5e5",class:"col-12"},a("form-control-text",{key:"63e0883c7a8f9e01396b7c395eeac7d8612d8dcf",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"0d2f87a06e90191c274d96aed25dbc106ea3c347",class:"col-12"},a("form-control-date",{key:"33e5da0712b67146147eea9a2de66f0b05d64a69",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"9aff91d4c4055cfe55a35fc28cf07167b4767992",class:"col-12"},a("form-control-textarea",{key:"840beacaf520e1155cc2acc21d7e2eeaba2dacca",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"244eb1c41ee0a26c3ba8b7754404b9c736f0e1a2",class:"col-12"},a("form-control-file-v2",{key:"e09e9d04a0a5bb26232271fa29dbc5fcf1549dec",label:"Shipping Documentation",name:"shipping_documentation",onChange:this.handleFileSelection}))))}};export{r as justifi_additional_statement,h as justifi_cancellation_policy,u as justifi_customer_details,p as justifi_duplicate_charge,y as justifi_electronic_evidence,k as justifi_product_or_service,x as justifi_refund_policy,w as justifi_shipping_details}
|
|
1
|
+
import{r as e,h as a}from"./p-2783e363.js";import{c as t,a as i,F as c}from"./p-5844a0f0.js";import{K as d}from"./p-ba202e33.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(o||(o={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(l||(l={}));const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[],this.acceptedTerms=!1,this.acceptedTermsErrorText=void 0}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e;return a("div",{key:"12a083283fd725f7eb50a5c297ef408ea4184e7a"},a("div",{key:"6f85bc12bac843ffe6ae1e8bd6acc35db250bc1d",class:"row gy-3"},a("div",{key:"6bb4c2442b9bbfe2689d60a83806bae6ba5e55f6",class:"col-12"},a("h2",{key:"9a9cff6036ce2da07ee316145bd35c9971cb94ca",class:"h5",part:d},"Additional Evidence")),a("div",{key:"ad1e3f5be5c71475e172f1b500435248466972a0",class:"col-12"},a("form-control-textarea",{key:"dc41498eeabb42786d08522414fed87b1bb9ff9f",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"64560a0ec82808e6f41143ed3e2c2b1f35f7d016",class:"col-12"},a("form-control-file-v2",{key:"8e6b407436dd6bed4612550b6dbddb61ed3ccdc6",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:this.handleFileSelection}))))}},f=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),b=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.cancellationPolicy)))}componentWillLoad(){this.form=new c(f)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"bf7df11fdafa2411a0aa79c606b822a893444482"},a("div",{key:"a19e32d4edf9d90d23f865f54f8ae844f367ef3e",class:"row gy-3"},a("div",{key:"9ca87dc02a3993c1b8cd187231561836ae78e517",class:"col-12"},a("h2",{key:"5ae6844cf4d99ad19f4e4f2690015e422acea5ad",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"82ec0f39bdd823b02f4ff2482e9dd1daedd5d4fe",class:"col-12"},a("form-control-textarea",{key:"ed8ce058aa41f3eed1f489c4d62e4f7b16a4c801",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"ed26b0813e499381b867eb50d35cf2f473a71cf7",class:"col-12"},a("form-control-textarea",{key:"5ffd5e3b7d67cf1b2dbb883412f920bec443dc61",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"43f4c5e4ec9c04f66958f930cee235da0709d3bb",class:"col-12"},a("form-control-file-v2",{key:"bf8606a6969b4b5edb8bd945ef3d28e13d85b774",label:"Upload Cancellation Policy",name:"cancellation_policy_file",onChange:this.handleFileSelection}))))}},h=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),u=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.customerDetails)))}componentWillLoad(){this.form=new c(h)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"f13b1b07f7e47661e94730ac84a2f579e20c407c"},a("div",{key:"b50fcf45a6c872543c6a691f43e82b697706c0eb",class:"row gy-3"},a("div",{key:"71c5a773cd7254a76d4071abbecb4067417266f7",class:"col-12"},a("h2",{key:"84beef4a3879bb36c3d5755b5e2b23c04e018247",class:"h5",part:d},"Customer Details")),a("div",{key:"f58feed75554bdf80574dd6a961f07bc6ff67a68",class:"col-12"},a("form-control-text",{key:"e781dad51a096012a9fdbe56169c62abd1c7558d",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"c617221a62a8226432216fa3cf1a6bdcaea53dd8",class:"col-12"},a("form-control-text",{key:"5c4a2d8cf779c0a4cb38c5bfd29e21d610c3283b",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"639449c6544b6fcbaca4a777b0b2e31573c6fb85",class:"col-12"},a("form-control-textarea",{key:"54794fdbf93af16f55f0d7e9f3b2152a774e9ff7",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"24c0ad1a768f69d4f181ca12cb1520d9d89df06d",class:"col-12"},a("form-control-file-v2",{key:"20ba764e44adfd05da308dd98de210b6a6a1918c",label:"Customer Signature",name:"customer_signature",onChange:this.handleFileSelection})),a("div",{key:"0171a822afcd450db5202e4ec1925fd85ff68090",class:"col-12"},a("form-control-file-v2",{key:"24d31b7c0ae09f10f144e80045eadab93c01ee14",label:"Customer Communication",name:"customer_communication",onChange:this.handleFileSelection}))))}},v=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),p=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.duplicateCharge)))}componentWillLoad(){this.form=new c(v)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"8364aad095d478905124bbf4c343eafb67a802e6"},a("div",{key:"0ae2e843703935609ff18219b3e95f3d8e308b80",class:"row gy-3"},a("div",{key:"07da8c2c9eb4b21890fae8a1dc7a25b2e7d982da",class:"col-12"},a("h2",{key:"b07319016adac35476717d93cfc6287c1f3cc617",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"8cdccfc7d1104668a19d06006934e1aab1942b39",class:"col-12"},a("form-control-text",{key:"e0f4bdbaad56cd635f9fb7e2b7d66e4a5bb8690b",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"8a43060fd2531698aafbe5d0195944012833d3a3",class:"col-12"},a("form-control-textarea",{key:"6a1709fbd761039cd649265f7e123aac58acfe09",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"707ce39d865cf94f89c848ab42053ef3ef5ed632",class:"col-12"},a("form-control-file-v2",{key:"371b1db533c75243d986ecad78227b804b109651",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:this.handleFileSelection}))))}},m=t({customer_purchase_ip_address:i().nullable()}),y=class{constructor(a){e(this,a),this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.electronicEvidence)))}componentWillLoad(){this.form=new c(m)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e;return a("div",{key:"b0c3860a9b025aa1a9fca6955619752acab44bfc"},a("div",{key:"cbf3b293ba7798ecfd5e0d8e8cfdaa72508901b9",class:"row gy-3"},a("div",{key:"3dd2980b54485d10c3390e5a6e02def94ec96707",class:"col-12"},a("h2",{key:"71eef58eeba954fa141d56f16f2e22e0cd1fd602",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"225218973496e4ef6df2d79b4c8051b21c6878c2",class:"col-12"},a("form-control-text",{key:"bddbdf3883a116262af125f715d23323f3592fef",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"fcd7c9794d4159ccd9136c48f8eb9803f970101d",class:"col-12"},a("form-control-file-v2",{key:"bcdb4e3c5499b325206d660b15992e79efc2feb9",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:this.handleFileSelection,errorText:this.errors.activity_log}))))}},_=t({product_description:i().nullable(),service_date:i().nullable()}),k=class{constructor(a){e(this,a),this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.productOrService)))}componentWillLoad(){this.form=new c(_)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"acd3ad222e15e0ddc7f3410410958bb73195529c"},a("div",{key:"12cc20448141d7816bcfdb5171b9b979c0255267",class:"row gy-3"},a("div",{key:"695ad169190e1ec763942ad285e47a390fbd1b41",class:"col-12"},a("h2",{key:"44a0fb6aa27be23832c3f39f33506b57ccc7e468",class:"h5",part:d},"Product & Service Details")),a("div",{key:"d41bf77ff6a7d8e4fa5ef5cda4fa447dd8a8b07f",class:"col-12"},a("form-control-text",{key:"d81cfb94f63dc0b6711c180b7bdc86a64f375691",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"96405e6808644dbd4fadcad86f11a90b2b111812",class:"col-12"},a("form-control-text",{key:"5de5c4df7331be1fc94e7c44ebf2c72bb127aca3",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"60366bef77d86a348cf73c7d97be53769d2473df",class:"col-12"},a("form-control-file-v2",{key:"8ece21a45a7675cd155c469e3aa327e4a3b3106b",label:"Service Documentation",name:"service_documentation",onChange:this.handleFileSelection,errorText:this.errors.service_documentation}))))}},g=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),x=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.refundPolicy)))}componentWillLoad(){this.form=new c(g)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"b91af9cbcac0c390b5c4d5c445976d4a8833907d"},a("div",{key:"0d94fd8318404dd97dcb035d48a7fcb99b5ae87f",class:"row gy-3"},a("div",{key:"d97378e24b0c8a5f71a626d116df0862829f1a92",class:"col-12"},a("h2",{key:"4e1ab56c967d24865c7609691245dae472a46976",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"a99ee9a75fb1c5b411aa2705ba9a0f14885e5358",class:"col-12"},a("form-control-textarea",{key:"6d23c869664ecbbd369ca88e85f7a1033cf5ffe4",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"50b3def529f23f3cae755b762b43caa1f5329c21",class:"col-12"},a("form-control-textarea",{key:"e3bce3c6aa80af945884bbec847358a8e259a3ff",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"771b3e3e163d31ceab83904e4926f61a768ef460",class:"col-12"},a("form-control-file-v2",{key:"872e482d0f99c2212c9ca9fe0ac56f5e8c17aa88",label:"Upload Refund Policy",name:"refund_policy",onChange:this.handleFileSelection})),a("div",{key:"857353db7a0aee5fd54215b1c5f00ddffdd5dd77",class:"col-12"},a("form-control-file-v2",{key:"fa7a204cddb61ed8e30b0c3d1c6227bc2ab9cdfa",label:"Upload Receipt",name:"receipt",onChange:this.handleFileSelection}))))}},j=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),w=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))},this.handleFileSelection=e=>{const a=e.target,t=a.name,i=a.files;for(const e of i)this.documentList.push(new n(e,t))},this.disputeResponse=void 0,this.form=void 0,this.errors={},this.documentList=[]}async validateAndSubmit(e){this.form.validateAndSubmit((a=>e(a,this.documentList,l.shippingDetails)))}componentWillLoad(){this.form=new c(j)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"3df223d0827966f125304a5783c341ff32dc9442"},a("div",{key:"c4aa2d5c1be5e452284c5463a299b92c2799949a",class:"row gy-3"},a("div",{key:"049124ca86a2ae70addb34ce9d79138f052484eb",class:"col-12"},a("h2",{key:"426b01f9b7cdaad3b3c65ec79be2a31c2db5ec7f",class:"h5",part:d},"Shipping Details")),a("div",{key:"d58211d0757a3220b880ca8dd1a2289d25f92733",class:"col-12"},a("form-control-text",{key:"2273a6905d9e79c5c4c4cb9fcbe629b8546b1cb0",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"16685f1e217a9ed7cdea9858989a957855ca9df1",class:"col-12"},a("form-control-text",{key:"74f2b588ab811279fc5bea972b4d045276dcfb19",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"d52ee413a5757a9896e1e24ec7a4d1658d2a51b3",class:"col-12"},a("form-control-date",{key:"077e1d46323a9546918ebe6b2f096b4a9b494926",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"a02a13a8312dd4233f13363f192f5bf5e2009839",class:"col-12"},a("form-control-textarea",{key:"bd97071529be47d78ced13f78d77f051a36145c0",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"e83dd41ef2cd943add49784940326cf3b355cd3f",class:"col-12"},a("form-control-file-v2",{key:"d5ac44164b655c497a6247b7277527bb20f7ac04",label:"Shipping Documentation",name:"shipping_documentation",onChange:this.handleFileSelection}))))}};export{r as justifi_additional_statement,b as justifi_cancellation_policy,u as justifi_customer_details,p as justifi_duplicate_charge,y as justifi_electronic_evidence,k as justifi_product_or_service,x as justifi_refund_policy,w as justifi_shipping_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t,H as r}from"./p-2783e363.js";import{E as e}from"./p-44604a45.js";import{B as o}from"./p-2bd8650b.js";import{B as a}from"./p-275f2154.js";import{C as n,a as h}from"./p-14c91ffd.js";import{g as p,a as c}from"./p-8115b2f4.js";import{c as d,J as m}from"./p-9069fab5.js";import"./p-ba202e33.js";import"./p-2d801915.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-c2efe406.js";const u=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){d(),this.analytics=new m(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const h=await t.fetchBusiness(s,i);if(h.error)return e({error:p(h.error),code:c(null===(o=h.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(h.data)})}catch(s){const i=c(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{u as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a="font-family",s="background-color",e=`text color ${a}`,$=`text-danger ${e}`,i=`heading ${e}`,n=`heading-1 ${i}`,t=`heading-2 ${i}`,d=`heading-3 ${i}`,o=`heading-4 ${i}`,c=`heading-5 ${i}`,l=`button ${e}`,u=`button-primary ${l}`,r=`button-secondary ${l}`,b=`button-link ${l}`,p="button-loading",g=`button-disabled ${l}`,h=`label ${e}`,k=`input ${e} ${s}`,f=`input-group ${k}`,m=`input-invalid ${k}`,x=`input-disabled ${k}`,y=`input-focused ${k}`,v=`input-invalid-and-focused ${k}`,w="input-radio",j=`input-radio-focused ${w}`,q=`input-radio-checked ${w}`,z=`input-radio-checked-focused ${w}`,A=`input-radio-invalid ${w}`,B=`input-checkbox ${s}`,C=`input-checkbox-invalid ${B}`,D=`input-checkbox-focused ${B}`,E=`input-checkbox-checked ${B}`,F=`input-checkbox-checked-focused ${B}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${s}`,L=`table ${e} ${s}`,M=`table-cell ${e} ${s}`,N=`table-head-cell ${M} ${e} ${s}`,O=`table-cell-even ${M} ${e} ${s}`,P=`table-cell-odd ${M} ${e} ${s}`,Q=a=>a%2?O:P,R=`table-empty ${e} ${s}`,S=`table-error ${e} ${s}`,T="loading-spinner",U=`badge ${a}`,V=`${U} badge-primary`,W=`${U} badge-secondary`,X=`${U} badge-success`,Y=`${U} badge-danger`,Z=`${U} badge-warning`,_=`${U} badge-info`,aa=`${U} badge-light`,sa=`${U} badge-dark`,ea=`dropdown-menu ${e}`,$a=`radio-list-item ${e}`,ia="skeleton",na="billing-form",ta="checkout-summary";export{J as $,R as A,S as B,T as C,G as D,ta as E,d as F,o as G,na as H,$a as I,K as J,c as K,ea as L,x as M,f as N,b as O,g as P,A as Q,z as R,q as S,j as T,w as U,C as V,F as W,D as X,E as Y,B as Z,H as _,y as a,I as a0,m as b,k as c,$ as d,n as e,p as f,u as g,t as h,v as i,r as j,N as k,h as l,Q as m,U as n,V as o,W as p,X as q,Y as r,ia as s,e as t,Z as u,_ as v,aa as w,sa as x,L as y,M as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-2783e363.js";import{B as e}from"./p-04ce1f82.js";import{S as o}from"./p-bfe9748b.js";import{C as a,a as d}from"./p-14c91ffd.js";import{c,J as h}from"./p-9069fab5.js";import"./p-ba202e33.js";import"./p-c2efe406.js";import"./p-2d801915.js";const r=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.authToken=void 0,this.accountId=void 0,this.paymentMethodGroupId=void 0,this.submitButtonText=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.hideSubmitButton=void 0,this.hideCardBillingForm=void 0,this.isLoading=!1}componentWillLoad(){c(),this.analytics=new h(this)}async tokenizePaymentMethod(s){s&&s.preventDefault(),this.isLoading=!0;try{const s=await this.paymentMethodOptionsRef.resolvePaymentMethod({isValid:!0});s.error?this.errorEvent.emit({errorCode:s.error.code,message:s.error.message,severity:a.ERROR}):s.token&&this.submitEvent.emit({response:s})}catch(s){this.errorEvent.emit({errorCode:d.TOKENIZE_ERROR,message:s.message,severity:a.ERROR})}finally{this.isLoading=!1}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}render(){return t(o,{key:"c8c9318c6bbde09a0d56ded9c7333958c5595574"},t("form",{key:"1c36ac872c58b1a560a658f0b5a0cab9284d3969"},t("fieldset",{key:"c43c95a5debbb5a58db162c1f34e0845a2ab76f2"},t("div",{key:"c6bc1f6148395e6cfc9185919b0bd81716c1ac99",class:"row gy-3"},t("div",{key:"887ae3e3bf713ee79b24ae1b4cd12156502d6143",class:"col-12"},t("justifi-payment-method-options",{key:"06c89583f5d1dee641c90145d129f7192911d00e",ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!1,paymentMethodGroupId:this.paymentMethodGroupId,"show-saved-payment-methods":!1,hideCardBillingForm:this.hideCardBillingForm,authToken:this.authToken,"account-id":this.accountId})),t("div",{key:"04e0ee27d0978a68d44c71c6f7767d685449ed1d",class:"col-12"},t(e,{key:"3e43eb8295cc7eba0e2914d94a337f724cd52b57",variant:"primary",type:"submit",onClick:s=>this.tokenizePaymentMethod(s),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.hideSubmitButton},this.submitButtonText||"Submit"))))))}};export{r as justifi_tokenize_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as i,r as s,c as t}from"./p-2783e363.js";import{p as e,f as o,r as a,g as r}from"./p-74736657.js";import{v as h,a as d,b as l,H as n}from"./p-135e24c0.js";import{t as c,d as v}from"./p-ba202e33.js";import{S as p}from"./p-bfe9748b.js";import{S as u}from"./p-4e122ace.js";import"./p-f20b6ce1.js";const m=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(u,{width:"35%",height:"30px"})),i("div",{class:"col-12"},i(u,{width:"70%"})),i("div",{class:"col-12"},i(u,{width:"40%"})),i("div",{class:"col-12"},i(u,{width:"40%"})),i("div",{class:"col-12"},i(u,{width:"100%"})),i("div",{class:"col-12"},i(u,{width:"80%"}))),f=class{constructor(i){s(this,i),this.insuranceUpdated=t(this,"insurance-updated",7),this.errorEvent=t(this,"error-event",7),this.checkoutId=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.quote=void 0,this.isLoading=!0,this.accepted=void 0}async validate(){return h()}componentWillLoad(){this.getQuote&&this.fetchData()}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:i})=>{this.quote=i,this.quote.product.description=e(this.quote.product.description,[i=>a(i,"style"),i=>r(i,"a","part",c)]),this.quote.product.legal_disclaimer=e(this.quote.product.legal_disclaimer,[i=>a(i,"style"),i=>r(i,"a","part",c)]),d[i.policy_type]=i.accepted,this.isLoading=!1},onError:({error:i,code:s,severity:t})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:i,severity:t})}})}onChangeHandler(i,s){this.accepted=s,l[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),d[this.quote.policy_type]=this.accepted},onError:({error:i,code:s,severity:t})=>{this.errorEvent.emit({errorCode:s,message:i,severity:t})}})}get error(){var i;return l[null===(i=this.quote)||void 0===i?void 0:i.policy_type]}render(){var s,t,e,a;return i(p,null,this.isLoading?i(m,null):i("div",null,i(n,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),i("small",{innerHTML:null===(t=this.quote)||void 0===t?void 0:t.product.description,part:c}),i("form-control-radio",{label:`Accept coverage for ${o(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this)}),i("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this)}),i("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:v},"Please select an option"),i("small",{innerHTML:null===(a=this.quote)||void 0===a?void 0:a.product.legal_disclaimer,part:c})))}};export{f as justifi_season_interruption_insurance_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={name:"@justifi/webcomponents",version:"5.
|
|
1
|
+
const e={name:"@justifi/webcomponents",version:"5.2.0",description:"JustiFi Web Components",collection:"dist/collection/collection-manifest.json",main:"dist/index.cjs.js",module:"dist/module/index.js",types:"dist/module/index.d.ts",repository:{type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"},homepage:"https://storybook.justifi.ai/?path=/docs/introduction--docs",publishConfig:{registry:"https://registry.npmjs.org"},files:["dist/"],scripts:{build:"stencil build --docs",dev:"stencil build --watch",lint:"eslint . --max-warnings 0",clean:"rm -rf .turbo && rm -rf node_modules && rm -rf dist",generate:"stencil generate",test:"TZ=utc stencil test --spec","test:watch":"TZ=utc stencil test --spec --watchAll","test:file":"stencil test --spec --watch --"},dependencies:{"@popperjs/core":"^2.11.8","@stencil/core":"^4.0.5","@stencil/store":"^2.0.8",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.30.0","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.6.0",lodash:"^4.17.21",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"},devDependencies:{"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@rollup/plugin-replace":"^6.0.1","@stencil/sass":"^3.0.1","@types/jest":"27.0.3","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",dotenv:"^16.3.1",jest:"^29.7.0","jest-cli":"^29.7.0","jest-environment-node":"^29.7.0","ts-jest":"^29.1.2"},license:"MIT",gitHead:"507bac1d941eae6e1f56e185ecd9bc9d22637783"};export{e as p}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-2783e363.js";import{P as e}from"./p-47cd431c.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import{P as r}from"./p-83aa33f0.js";import"./p-2ce40098.js";import{C as o,a}from"./p-14c91ffd.js";import{g as p,a as n}from"./p-8115b2f4.js";import{c,J as h}from"./p-9069fab5.js";import{c as d}from"./p-2d801915.js";import{S as m}from"./p-bfe9748b.js";import{d as f}from"./p-24a9c773.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-c2efe406.js";import"./p-d6e51c2f.js";import"./p-411382f3.js";import"./p-ba202e33.js";const j=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.getPayments=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=d.proxyApiOrigin,this.columns=f}componentWillLoad(){c(),this.analytics=new h(this),this.initializeGetPayments()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:s,authToken:t,service:i,apiOrigin:e})=>async({params:a,onSuccess:c,onError:h})=>{var d,m;try{const f=await i.fetchPayments(s,t,a,e);if(f.error)return h({error:p(f.error),code:n(null===(m=f.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const s=Object.assign({},f.page_info);c({payments:(null===(d=f.data)||void 0===d?void 0:d.map((s=>new r(s))))||[],pagingInfo:s})}}catch(s){const t=n(null==s?void 0:s.code);return h({error:s.message||s,code:t,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new e,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return i(m,{key:"a7d58ebf91eea679073919566cd786f8df8ebec0"},i("payments-list-core",{key:"652e313667f05d7e6a1e94ca7acc34ba137dde98",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as r}from"./p-2783e363.js";import{A as e,c as o}from"./p-2d801915.js";import{C as i,a}from"./p-14c91ffd.js";import{g as n,a as h}from"./p-8115b2f4.js";import{E as c}from"./p-44604a45.js";import{c as p,J as d}from"./p-9069fab5.js";import"./p-ba202e33.js";import"./p-c2efe406.js";class m{async fetchGrossVolumeChartData(s,t){return e({authToken:t,apiOrigin:o.proxyApiOrigin}).get(`account/${s}/reports/gross_volume`)}}const u=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){p(),this.analytics=new d(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:e,onError:o})=>{var a;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?o({error:n(c.error),code:h(null===(a=c.error)||void 0===a?void 0:a.code),severity:i.ERROR}):e(c.data)}catch(s){const t=h(null==s?void 0:s.code);o({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new m}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?c(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_gross_payment_chart}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as o}from"./p-2783e363.js";import{l as h,c as a,b as r,M as d,a as l}from"./p-ba202e33.js";import{F as f}from"./p-0d7e7957.js";const c=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.fileSelected=s(this,"fileSelected",7),this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit({name:i,value:s.value})},this.changeHandler=()=>{const t=this.fileInput.files;t&&this.fileSelected.emit({fileList:t,document_type:this.documentType})},this.files=void 0,this.fileString=void 0,this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.documentType=void 0,this.inputHandler=void 0,this.disabled=void 0}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let t=a;return this.errorText&&(t=r),this.disabled&&(t=d),this.isFocused&&(t=l),t}render(){return i(e,{key:"442808bae357a7ce08299e5fdfb8ee0751567248"},i("div",{key:"ad7608679fa7db4868d6314e423022d2999075ec",class:"form-group d-flex flex-column"},i("div",{key:"b92dbbe308de82fcdd32e339a91806560c7ea3bd",class:"d-flex align-items-start gap-2"},i("label",{key:"385e6dedc7f455bb8cb0af0f839301c4341bb5f8",part:h,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"c08c2d34a2c6b4bc0dd5bc8e873f04521f5f9f84",helpText:this.helpText})),i("input",{key:"adfeb0d7f02959c6cbb1335b1e9a8b00050f4f3d",ref:t=>this.fileInput=t,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),i(f,{key:"7576a09ef2336bf4645816e8e3530acb3e8e4d9d",errorText:this.errorText,name:this.name})))}get el(){return o(this)}};export{c as form_control_file}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"./p-5844a0f0.js";import{S as s}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c}from"./p-0ea387a2.js";const l=e=>""===e?null:e,o=/^\d+$/,u=/P\.?\s?O\.?\s?Box|Postal\sBox/i;var d,m;!function(e){e.voidedCheck="voided_check",e.balanceSheet="balance_sheet",e.bankStatement="bank_statement",e.governmentId="government_id",e.profitAndLossStatement="profit_and_loss_statement",e.taxReturn="tax_return",e.other="other"}(d||(d={})),function(e){e.pending="pending",e.uploaded="uploaded",e.canceled="canceled",e.needed="needed"}(m||(m={}));class h{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class b{constructor(e,t){this.file=e.file,this.fileString=this.getFileString(),this.document_type=e.document_type,this.presigned_url=null,this.record_data={business_id:t,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let e=new FileReader;return e.onload=e=>{this.fileString=e.target.result},e.readAsDataURL(this.file),this.fileString}setPresignedUrl(e){this.presigned_url=e}}const p=e().email("Enter valid email").transform(l),v=e().matches(/^\d{10}$/,"Enter valid phone number").transform(l),E=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),S=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),N=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(l),f=e().oneOf(a.map((e=>e.value)),"Select business classification").transform(l),g=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),_=e().matches(o,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(l),y=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(l),w=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),x=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(l),A=t=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${t} must be at least 18 years old`,(e=>{const t=new Date(e),s=new Date;return s.setFullYear(s.getFullYear()-18),t<=s})).transform(l),$=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(l),I=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!u.test(e))).transform(l),P=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!u.test(e))).transform(l),D=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),B=e().oneOf(s.map((e=>e.value)),"Select state").transform(l),j=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(l),z=e().matches(o,"Enter valid revenue").transform(l),k=e().matches(o,"Enter valid payment volume").transform(l),q=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(l),C=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(l),F=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(l),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(l),R=e().transform(l),T=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),Z=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),G=e().oneOf(c.map((e=>e.value)),"Select account type").transform(l),H=e().min(7,"Account number must be at least 7 digits").max(17,"Account number must be less than 17 digits").matches(o,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),J=e().length(9,"Routing number must be 9 digits").matches(o,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const t=Array.from(String(e),Number);return 9===t.length&&0==(3*(t[0]+t[3]+t[6])+7*(t[1]+t[4]+t[7])+(t[2]+t[5]+t[8]))%10})(e))).transform(l),K=t(),L=K,M=K,U=K,Y=(e,t)=>e.some((e=>e.document_type===d.voidedCheck))||t?K.nullable():K.required("Please select one or more files"),Q=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.bankStatement))||s?K.nullable():a>=25e4&&!s?K.required("Please select one or more files"):void 0},V=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.balanceSheet))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0},W=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.profitAndLossStatement))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0};export{
|
|
1
|
+
import{a as e,b as t}from"./p-5844a0f0.js";import{S as s}from"./p-6078a370.js";import{b as a,a as r,r as n,s as i,c}from"./p-0ea387a2.js";const l=e=>""===e?null:e,o=/^\d+$/,u=/P\.?\s?O\.?\s?Box|Postal\sBox/i;var d,m;!function(e){e.voidedCheck="voided_check",e.balanceSheet="balance_sheet",e.bankStatement="bank_statement",e.governmentId="government_id",e.profitAndLossStatement="profit_and_loss_statement",e.taxReturn="tax_return",e.other="other"}(d||(d={})),function(e){e.pending="pending",e.uploaded="uploaded",e.canceled="canceled",e.needed="needed"}(m||(m={}));class h{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class b{constructor(e,t){this.file=e.file,this.fileString=this.getFileString(),this.document_type=e.document_type,this.presigned_url=null,this.record_data={business_id:t,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}getFileString(){let e=new FileReader;return e.onload=e=>{this.fileString=e.target.result},e.readAsDataURL(this.file),this.fileString}setPresignedUrl(e){this.presigned_url=e}}const p=e().email("Enter valid email").transform(l),v=e().matches(/^\d{10}$/,"Enter valid phone number").transform(l),E=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),S=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),N=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(l),f=e().oneOf(a.map((e=>e.value)),"Select business classification").transform(l),g=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(l),_=e().matches(o,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(l),y=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(l),w=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(l),x=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(l),A=t=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${t} must be at least 18 years old`,(e=>{const t=new Date(e),s=new Date;return s.setFullYear(s.getFullYear()-18),t<=s})).transform(l),$=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(l),I=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!u.test(e))).transform(l),P=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!u.test(e))).transform(l),D=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(l),B=e().oneOf(s.map((e=>e.value)),"Select state").transform(l),j=e().matches(/^[0-9]{5}$/,"Enter valid postal code").transform(l),z=e().matches(o,"Enter valid revenue").transform(l),k=e().matches(o,"Enter valid payment volume").transform(l),q=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(l),C=e().oneOf(n.map((e=>e.value)),"Select recurring payments").transform(l),F=e().when("business_recurring_payments",{is:e=>"Yes"===e,then:e=>e.required("Enter recurring payments percentage"),otherwise:e=>e.nullable()}).transform(l),O=e().oneOf(i.map((e=>e.value)),"Select seasonal business").transform(l),R=e().transform(l),T=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),Z=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(l),G=e().oneOf(c.map((e=>e.value)),"Select account type").transform(l),H=e().min(7,"Account number must be at least 7 digits").max(17,"Account number must be less than 17 digits").matches(o,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(l),J=e().length(9,"Routing number must be 9 digits").matches(o,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const t=Array.from(String(e),Number);return 9===t.length&&0==(3*(t[0]+t[3]+t[6])+7*(t[1]+t[4]+t[7])+(t[2]+t[5]+t[8]))%10})(e))).transform(l),K=t(),L=K,M=K,U=K,Y=(e,t)=>e.some((e=>e.document_type===d.voidedCheck))||t?K.nullable():K.required("Please select one or more files"),Q=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.bankStatement))||s?K.nullable():a>=25e4&&!s?K.required("Please select one or more files"):void 0},V=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.balanceSheet))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0},W=(e,t,s)=>{const a=parseInt(e);return t.some((e=>e.document_type===d.profitAndLossStatement))||s?K.nullable():a>=1e6&&!s?K.required("Please select one or more files"):void 0};export{M as A,L as B,U as C,V as D,Q as E,W as F,b as G,h as H,T as I,Z as J,G as K,H as L,J as M,d as N,f as a,E as b,y as c,S as d,p as e,k as f,q as g,C as h,g as i,F as j,P as k,I as l,D as m,B as n,R as o,v as p,j as q,z as r,O as s,_ as t,w as u,x as v,N as w,A as x,$ as y,Y as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as a,H as t}from"./p-2783e363.js";import{E as e}from"./p-44604a45.js";import"./p-ba202e33.js";const i=class{constructor(a){s(this,a),this.errorMessage=void 0}render(){return a(t,{key:"d00d3b1c3b5d73af5a0eb1a18f2095f023aeb816"},this.errorMessage?e(this.errorMessage):a("main",{class:"p-2"},a("slot",{name:"head-info"}),a("slot",{name:"detail-sections"})))}};export{i as justifi_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,a as t}from"./p-5844a0f0.js";import{l as a,k as n,m as s,n as r,q as o,u as i,v as l,e as c,p as m,x as d,y as p}from"./p-
|
|
1
|
+
import{c as e,a as t}from"./p-5844a0f0.js";import{l as a,k as n,m as s,n as r,q as o,u as i,v as l,e as c,p as m,x as d,y as p}from"./p-cb8f7bf4.js";const u=i=>{const l=e({line1:a.required("Enter street address"),line2:n.nullable(),city:s.required("Enter city"),state:r.required("Select state"),postal_code:o.required("Enter postal code"),country:t().required("Select country")}),c=e({line1:a.nullable(),line2:n.nullable(),city:s.nullable(),state:r.nullable(),postal_code:o.nullable(),country:t().required("Select country")});return i?c:l},f=(a,n)=>{const s=e({name:i.required(`Enter ${a} name`),title:l.required(`Enter ${a} title`),email:c.required(`Enter ${a} email`),phone:m.required("Enter phone number"),dob_full:d(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(n)}),r=e({name:i.required(`Enter ${a} name`),title:l.nullable(),email:c.nullable(),phone:m.nullable(),dob_full:d(a).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(n)});return n?r:s};export{u as a,f as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as e,c as s}from"./p-2783e363.js";import{i as a}from"./p-4cc3c7f9.js";import{i as n,b as o,a as d,c as r,H as h,I as c}from"./p-ba202e33.js";import{H as l}from"./p-060ff1a1.js";import{a as f}from"./p-83aa33f0.js";import{j as b,f as u}from"./p-74736657.js";import"./p-f20b6ce1.js";import"./p-abdbcd8e.js";const m=class{constructor(i){t(this,i)}async validate(){const t=await this.accountNumberIframeElement.validate(),i=await this.routingNumberIframeElement.validate();return t&&i}async tokenize(t,i,e){return this.accountNumberIframeElement.tokenize(t,i,e)}render(){return i(e,{key:"1fb5075ddb4ee824fa3fbb12079ae0b978ef4e45"},i("div",{key:"5384dda318b8e809cbee84f5e7796b68f19b780c",class:"container-fluid p-0"},i("div",{key:"8e9a05728736960ac0e7f0d33a7e46d37b6a04fa",class:"row mb-3"},i("iframe-input",{key:"46f8a193ed56ea621aac1399e8d7b22a286fd857",inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:"https://components.justifi.ai/v2/accountNumber"})),i("div",{key:"18db1dd7882e9c3d395f4c72833d96a8f7e1176d",class:"row"},i("iframe-input",{key:"ea1545703839166cb3352b789bac329f0d0b2918",inputId:"routingNumber",ref:t=>this.routingNumberIframeElement=t,label:"Routing Number",iframeOrigin:"https://components.justifi.ai/v2/routingNumber"}))))}},p=class{constructor(i){t(this,i)}async validate(){const t=await this.cardNumberIframeElement.validate(),i=await this.expirationMonthIframeElement.validate(),e=await this.expirationYearIframeElement.validate(),s=await this.cvvIframeElement.validate();return t&&i&&e&&s}async tokenize(t,i,e){return this.cardNumberIframeElement.tokenize(t,i,e)}render(){return i(e,{key:"cc49f963960cc00ea499484ce257d0b902837c1e",class:"container-fluid p-0"},i("div",{key:"873ee92597101d80c5c05f50a1428402061ed27f",class:"mb-3"},i("iframe-input",{key:"4987b5fd997954e30450b5f0b5089c91523afe4f",inputId:"cardNumber",ref:t=>this.cardNumberIframeElement=t,label:"Card Number",iframeOrigin:"https://components.justifi.ai/v2/cardNumber"})),i("div",{key:"7a50424f955163f9c213d81057338c915e046a41",class:"row"},i("div",{key:"ab117b543d5ba1b1ca5db6030480048fc266250b",class:"col-4 align-content-end"},i("iframe-input",{key:"e5b0f96d4be64fd07ac2417b23d8a3913d67145a",inputId:"expirationMonth",ref:t=>this.expirationMonthIframeElement=t,label:"Expiration",iframeOrigin:"https://components.justifi.ai/v2/expirationMonth"})),i("div",{key:"c66377e9ae6b0f1a750933ca628edcb62b227e34",class:"col-4 align-content-end"},i("iframe-input",{key:"2fb5328b3b8b82d0bd2b0ad2272cd73b133cb548",inputId:"expirationYear",ref:t=>this.expirationYearIframeElement=t,label:"",iframeOrigin:"https://components.justifi.ai/v2/expirationYear"})),i("div",{key:"add1b6be0df27a95b5c244a7bb2320f6f40ec930",class:"col-4 align-content-end"},i("iframe-input",{key:"3c0341c1111b1980d9868d314221857e7ff07996",inputId:"CVV",ref:t=>this.cvvIframeElement=t,label:"CVV",iframeOrigin:"https://components.justifi.ai/v2/CVV"}))))}},v=class{constructor(i){t(this,i),this.isFocused=!1,this.errorText=""}async componentDidLoad(){const t=await this.getBaseFontStyles();a("fontStyles",t);const i=await this.getFocusedStyles();a("focused",i);const e=await this.getFocusedAndInvalidStyles();a("focusedAndInvalid",e)}async getBaseFontStyles(){return new Promise((t=>{setTimeout((()=>{const i=getComputedStyle(this.hiddenInput);t({fontFamily:i.fontFamily,fontSize:i.fontSize,fontWeight:i.fontWeight,lineHeight:i.lineHeight,margin:i.margin,padding:i.padding,color:i.color})}),500)}))}async getFocusedStyles(){return new Promise((t=>{this.hiddenInput.focus(),setTimeout((()=>{this.hiddenInput.blur();let i=getComputedStyle(this.hiddenInput);t({boxShadow:i.boxShadow,border:i.border})}),500)}))}async getFocusedAndInvalidStyles(){return new Promise((t=>{this.hiddenInput.focus(),this.errorText="Error",setTimeout((()=>{const i=getComputedStyle(this.hiddenInput),e={boxShadow:i.boxShadow,border:i.border};this.hiddenInput.blur(),t(e)}),500)}))}get part(){return this.isFocused&&this.errorText?n:this.errorText?o:this.isFocused?d:r}render(){return i(e,{key:"ae03d3be50b34d6c98c8e1bd619f1d97049099a7"},i("input",{key:"347725ba26e6aab3c0da4f9e3da5b2e4ec9f0e37",ref:t=>this.hiddenInput=t,type:"text",class:this.errorText?"form-control is-invalid":"form-control",onFocus:()=>this.isFocused=!0,onBlur:()=>this.isFocused=!1,part:this.part,tabindex:"-1",style:{height:"0",opacity:"0",pointerEvents:"none",animation:"none"}}))}},y=class{constructor(i){t(this,i),this.legend=void 0,this.hideCardBillingForm=void 0,this.paymentMethodType=void 0}get hideFullBillingForm(){return this.hideCardBillingForm&&"card"===this.paymentMethodType}async fill(t){this.hideFullBillingForm?this.postalFormRef.fill(t):this.billingFormRef.fill(t)}async getValues(){return this.hideFullBillingForm?this.postalFormRef.getValues():this.billingFormRef.getValues()}async validate(){return this.hideFullBillingForm?this.postalFormRef.validate():this.billingFormRef.validate()}get renderedForm(){return this.hideFullBillingForm?i("postal-form",{ref:t=>this.postalFormRef=t}):i("div",null,i(l,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),i("billing-form",{ref:t=>this.billingFormRef=t}))}render(){return i(e,{key:"585ffd5fea9537675f0df77e1e4697a53dacf56f"},i("div",{key:"fb7cf4c2f763d64512b6f905aa29aded8060374c",part:h},this.renderedForm))}},k={bankAccount:"New bank account",card:"New credit or debit card"},g=class{constructor(i){t(this,i),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)},this.authToken=void 0,this.accountId=void 0,this.paymentMethodOption=void 0,this.paymentMethodGroupId=void 0,this.isSelected=void 0,this.hideCardBillingForm=void 0,this.saveNewPaymentMethodChecked=!1}handleCheckboxChanged(t){this.saveNewPaymentMethodChecked=t.detail}async fillBillingForm(t){this.billingFormWrapperRef.fill(t)}async resolvePaymentMethod(t){var i,e;if(this.paymentMethodFormRef&&this.billingFormWrapperRef)try{if(!await this.validate()||!t.isValid)return{validationError:!0};const s=await this.tokenize();if(s.error)return{error:s.error};{const t=s.data;return{token:(null===(i=t.card)||void 0===i?void 0:i.token)||(null===(e=t.bank_account)||void 0===e?void 0:e.token),data:t}}}catch(t){return{error:t}}}async validate(){const t=await this.billingFormWrapperRef.validate(),i=await this.paymentMethodFormRef.validate();return t.isValid&&i.isValid}async tokenize(){try{const t=await this.billingFormWrapperRef.getValues();let i;i=this.saveNewPaymentMethodChecked?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupId}):Object.assign({},t);const e=this.authToken;return await this.paymentMethodFormRef.tokenize(e,i,this.accountId)}catch(t){return t}}showNewPaymentMethodForm(){var t;const e=null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id;return i("div",{class:"mt-4 pb-4 border-bottom"},i("hidden-input",null),i("div",{class:"mb-4"},i("card"===e?"card-form":"bank-account-form",{ref:t=>this.paymentMethodFormRef=t})),i("justifi-billing-form-wrapper",{ref:t=>this.billingFormWrapperRef=t,hideCardBillingForm:this.hideCardBillingForm,paymentMethodType:e}),i("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupId}))}render(){var t,s;return i(e,{key:"c0d2a7efd367d357a4c205960f8765e488f7e376",class:"payment-method"},i("div",{key:"697f5d543ed4690b11f6d8e36bb88eabbc8cc368",class:"radio-list-item p-3",part:c,onClick:this.onPaymentMethodOptionClick},i("form-control-radio",{key:"43bf63f112ef40cca0332b77bf447c5f8b5e0379",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:k[null===(s=this.paymentMethodOption)||void 0===s?void 0:s.id]})),this.isSelected?this.showNewPaymentMethodForm():null)}};class w{constructor(t){this.id=t.id,this.brand=t.brand,this.acct_last_four=t.acct_last_four,this.type=b(t.type)}}var j;!function(t){t.american_express="American Express",t.diners_club="Diners Club",t.discover="Discover",t.jcb="JCB",t.mastercard="Mastercard",t.china_unionpay="UnionPay",t.visa="Visa",t.unknown="Unknown"}(j||(j={}));const _=class{constructor(i){t(this,i),this.showCard=void 0,this.showAch=void 0,this.showBnpl=void 0,this.showSavedPaymentMethods=void 0,this.paymentMethodGroupId=void 0,this.bnpl=void 0,this.insuranceToggled=void 0,this.authToken=void 0,this.accountId=void 0,this.savedPaymentMethods=[],this.paymentAmount=void 0,this.hideCardBillingForm=void 0,this.selectedPaymentMethodId=void 0,this.paymentMethodOptions=[]}async fillBillingForm(t){const i=this.selectedPaymentMethodOptionRef;i.fillBillingForm&&i.fillBillingForm(t)}connectedCallback(){this.paymentMethodsChanged()}paymentMethodsChanged(){var t,i;this.paymentMethodOptions=this.savedPaymentMethods.map((t=>new w(t))).filter((t=>(this.showCard||t.type!==f.card)&&(this.showAch||t.type!==f.bankAccount))),this.showBnpl&&"sezzle"===(null===(t=this.bnpl)||void 0===t?void 0:t.provider)&&!this.insuranceToggled&&this.paymentMethodOptions.push(new w({id:f.sezzle})),this.showCard&&this.paymentMethodOptions.push(new w({id:f.card})),this.showAch&&this.paymentMethodOptions.push(new w({id:f.bankAccount})),this.selectedPaymentMethodId||(this.selectedPaymentMethodId=null===(i=this.paymentMethodOptions[0])||void 0===i?void 0:i.id)}paymentMethodOptionSelected(t){this.selectedPaymentMethodId=t.detail.id}async resolvePaymentMethod(t){var i;return await(null===(i=this.selectedPaymentMethodOptionRef)||void 0===i?void 0:i.resolvePaymentMethod(t))}render(){var t;return i(e,{key:"22ab195ec840e971c774ad2886ebce979c13394d"},null===(t=this.paymentMethodOptions)||void 0===t?void 0:t.map((t=>{const e=this.selectedPaymentMethodId===t.id,s=t.id===f.sezzle;return t.id===f.card||t.id===f.bankAccount?i("justifi-new-payment-method",{paymentMethodOption:t,authToken:this.authToken,"account-id":this.accountId,"is-selected":e,paymentMethodGroupId:this.paymentMethodGroupId,hideCardBillingForm:this.hideCardBillingForm,ref:t=>{e&&(this.selectedPaymentMethodOptionRef=t)}}):s?i("justifi-sezzle-payment-method",{paymentMethodOption:t,"is-selected":e,paymentAmount:this.paymentAmount,bnpl:this.bnpl,ref:t=>{e&&(this.selectedPaymentMethodOptionRef=t)}}):this.showSavedPaymentMethods?i("justifi-saved-payment-method",{paymentMethodOption:t,"is-selected":e,ref:t=>{e&&(this.selectedPaymentMethodOptionRef=t)}}):void 0})))}static get watchers(){return{savedPaymentMethods:["paymentMethodsChanged"]}}},C=class{constructor(i){t(this,i),this.checkboxChanged=s(this,"checkboxChanged",7),this.isChecked=!1}handleCheckboxChange(t,i){this.isChecked=i,this.checkboxChanged.emit(this.isChecked)}render(){return i("div",{key:"017cbce906d331b82eb5dc726197da3ea3ba51e5",class:"mt-4 form-check"},i("form-control-checkbox",{key:"ca22562653b216d16bd19765f1834ff2428820cc",label:"Save new payment method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange.bind(this)}))}},M=class{constructor(i){t(this,i),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)},this.paymentMethodOption=void 0,this.isSelected=void 0}async resolvePaymentMethod(t){var i;return t.isValid?{token:null===(i=this.paymentMethodOption)||void 0===i?void 0:i.id}:{validationError:!0}}render(){var t,s,a;return i(e,{key:"10b18a7c77250aac57d6afef89aea752e3bc2c35",class:"payment-method"},i("div",{key:"80910960904f3e01fd10cba4789af4004b434490",class:"radio-list-item p-3",part:c,onClick:this.onPaymentMethodOptionClick},i("form-control-radio",{key:"abccf6aca9316de983ba899eabfffcc7b05b1d48",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${j[null===(s=this.paymentMethodOption)||void 0===s?void 0:s.brand]||""} *${null===(a=this.paymentMethodOption)||void 0===a?void 0:a.acct_last_four}`})))}},z=i("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),x=class{constructor(i){t(this,i),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected",7),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((i=>{t=i}));const i=this.bnpl,e=+this.paymentAmount,s=new(0,window.Checkout)({mode:"popup",publicKey:i.provider_client_id,apiMode:i.provider_mode,apiVersion:i.provider_api_version});s.sezzleButtonElement=this.sezzleButtonRef,s.init({onClick:function(t){t.preventDefault(),s.startCheckout({checkout_url:i.provider_checkout_url})},onComplete:i=>t({bnpl:i.data}),onCancel:i=>t({bnpl:i.data}),onFailure:i=>t({bnpl:i.data})}),this.sezzleCheckout=s,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)},this.bnpl=void 0,this.clientId=void 0,this.accountId=void 0,this.paymentMethodOption=void 0,this.isSelected=void 0,this.paymentAmount=void 0,this.installmentPlan=void 0,this.sezzleCheckout=void 0,this.sezzlePromise=void 0}componentDidRender(){this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()}}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var t,s,a;return i(e,{key:"eaf1bd457f91f77bffa661875277c0709d5926d3",class:"payment-method"},i("script",{key:"897bccdb0090b3e3b45b9913f7bdea6b838f63cb",src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),i("div",{key:"db32690b54bdb5045d701c888cd67c7d97d66243",class:"radio-list-item p-3",part:c,onClick:this.onPaymentMethodOptionClick},i("form-control-radio",{key:"c3746a50bc7a5b8f079ed76c204790555983def1",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:i("div",null,i("div",null,"Buy now, pay later with ",z),this.installmentPlan&&i("small",null,i("span",null,null===(s=this.installmentPlan)||void 0===s?void 0:s.installments.length)," ",i("span",null,this.installmentPlan.schedule," payments of")," ",i("span",{class:"fw-bold"},u(null===(a=this.installmentPlan)||void 0===a?void 0:a.installments[0].amountInCents))))})))}};export{m as bank_account_form,p as card_form,v as hidden_input,y as justifi_billing_form_wrapper,g as justifi_new_payment_method,_ as justifi_payment_method_options,C as justifi_save_new_payment_method,M as justifi_saved_payment_method,x as justifi_sezzle_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./p-2783e363.js";import{B as t,a}from"./p-411382f3.js";const i=i=>e(t,Object.assign({},{succeeded:{variant:a.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:a.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:a.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:a.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:a.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:a.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:a.SECONDARY,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},fully_refunded:{variant:a.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:a.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[i]));export{i as M}
|