@justifi/webcomponents 6.11.0 → 6.12.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/{check-pkg-version-Di4JmtKX.js → Analytics-DZCXB2Za.js} +1 -44
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_9.cjs.entry.js} +22 -22
- package/dist/cjs/{form-alert_5.cjs.entry.js → additional-questions_5.cjs.entry.js} +26 -26
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +203 -0
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +37 -37
- package/dist/cjs/bank-account-form.cjs.entry.js +8 -4
- package/dist/cjs/card-form.cjs.entry.js +8 -4
- package/dist/cjs/check-pkg-version-CUhnNGii.js +47 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-number-masked_3.cjs.entry.js → form-address-fields_3.cjs.entry.js} +23 -23
- package/dist/cjs/form-control-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +7 -7
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number_3.cjs.entry.js +11 -11
- package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
- package/dist/cjs/form-control-select_2.cjs.entry.js +8 -8
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +18 -0
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +24 -24
- package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_11.cjs.entry.js} +337 -31
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +46 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +44 -0
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +24 -0
- package/dist/cjs/justifi-billing-form.cjs.entry.js +24 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +7 -6
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +24 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +44 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +8 -9
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -6
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -5
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +6 -5
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +18 -0
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -6
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +7 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D8NG-zuY.js → package-CJg8qLYd.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/radio-list-item.cjs.entry.js +21 -0
- package/dist/cjs/save-new-payment-method.cjs.entry.js +25 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +58 -52
- package/dist/collection/components/business-details/{business-details.js → justifi-business-details.js} +1 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +3 -3
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -3
- package/dist/collection/components/business-forms/business-form/{business-form.js → justifi-business-form.js} +2 -2
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +2 -2
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +3 -3
- package/dist/collection/components/business-forms/owner-form/owner-form.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.js → additional-questions-form-step.js} +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.js → bank-account-document-form-inputs.js} +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -4
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/{payment-provisioning.js → justifi-payment-provisioning.js} +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +9 -9
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +11 -16
- package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.js +16 -35
- package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.js +19 -37
- package/dist/collection/components/checkout/billing-form/billing-form.js +5 -35
- package/dist/collection/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.js +16 -35
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +140 -0
- package/dist/collection/components/checkout/card-form/card-form.js +11 -16
- package/dist/collection/components/checkout/{checkout.js → justifi-checkout.js} +3 -24
- package/dist/collection/components/checkout/{saved-payment-method.js → justifi-saved-payment-method.js} +2 -2
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +73 -0
- package/dist/collection/components/checkout/{save-new-payment-method.js → save-new-payment-method/save-new-payment-method.js} +23 -6
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
- package/dist/collection/components/checkouts-list/{checkouts-list.js → justifi-checkouts-list.js} +2 -2
- package/dist/collection/components/config-provider/{config-provider.js → justifi-config-provider.js} +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{additional-statement.js → justifi-additional-statement.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{cancellation-policy.js → justifi-cancellation-policy.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{customer-details.js → justifi-customer-details.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{dispute-response.js → justifi-dispute-response.js} +5 -4
- package/dist/collection/components/dispute-management/dispute-response/{duplicate-charge.js → justifi-duplicate-charge.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{electronic-evidence.js → justifi-electronic-evidence.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{product-or-service.js → justifi-product-or-service.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{refund-policy.js → justifi-refund-policy.js} +2 -2
- package/dist/collection/components/dispute-management/dispute-response/{shipping-details.js → justifi-shipping-details.js} +2 -2
- package/dist/collection/components/dispute-management/{dispute-management.js → justifi-dispute-management.js} +2 -2
- package/dist/collection/components/dispute-management/{dispute-notification.js → justifi-dispute-notification.js} +3 -3
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/gross-payment-chart/{gross-payment-chart.js → justifi-gross-payment-chart.js} +1 -1
- package/dist/collection/components/insurance/season-interruption/{season-interruption-insurance.js → justifi-season-interruption-insurance.js} +1 -1
- package/dist/collection/components/modular-checkout/{modular-checkout.js → justifi-modular-checkout.js} +41 -3
- package/dist/collection/components/modular-checkout/sub-components/{apple-pay.js → justifi-apple-pay.js} +8 -11
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +95 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +69 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +83 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +83 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +69 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +12 -0
- package/dist/collection/components/modular-checkout/sub-components/{google-pay.js → justifi-google-pay.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/{plaid-payment-method.js → justifi-plaid-payment-method.js} +2 -2
- package/dist/collection/components/modular-checkout/sub-components/{saved-payment-methods.js → justifi-saved-payment-methods.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/{sezzle-payment-method.js → justifi-sezzle-payment-method.js} +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/order-terminals/{order-terminals.js → justifi-order-terminals.js} +2 -2
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/{payment-details.js → justifi-payment-details.js} +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/{payment-transactions-list.js → justifi-payment-transactions-list.js} +2 -2
- package/dist/collection/components/payments-list/{payments-list-filters.js → justifi-payments-list-filters.js} +3 -3
- package/dist/collection/components/payments-list/{payments-list.js → justifi-payments-list.js} +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payout-details/{payout-details.js → justifi-payout-details.js} +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/{payout-transactions-list.js → justifi-payout-transactions-list.js} +2 -2
- package/dist/collection/components/payouts-list/{payouts-list-filters.js → justifi-payouts-list-filters.js} +3 -3
- package/dist/collection/components/payouts-list/{payouts-list.js → justifi-payouts-list.js} +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/refund-payment/{refund-payment.js → justifi-refund-payment.js} +1 -1
- package/dist/collection/components/terminal-orders-list/{terminal-orders-list-filters.js → justifi-terminal-orders-list-filters.js} +4 -4
- package/dist/collection/components/terminal-orders-list/{terminal-orders-list.js → justifi-terminal-orders-list.js} +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminals-list/{terminals-list-filters.js → justifi-terminals-list-filters.js} +2 -2
- package/dist/collection/components/terminals-list/{terminals-list.js → justifi-terminals-list.js} +2 -2
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/tokenize-payment-method/{internal-tokenize-payment-method.js → justifi-tokenize-payment-method.js} +73 -37
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/{details.js → justifi-details.js} +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +3 -3
- package/dist/collection/ui-components/form/form-control-date.js +3 -3
- package/dist/collection/ui-components/form/form-control-file-v2.js +2 -2
- package/dist/collection/ui-components/form/form-control-file.js +3 -3
- package/dist/collection/ui-components/form/form-control-monetary.js +3 -3
- package/dist/collection/ui-components/form/form-control-number-masked.js +3 -3
- package/dist/collection/ui-components/form/form-control-number.js +3 -3
- package/dist/collection/ui-components/form/form-control-radio.js +3 -3
- package/dist/collection/ui-components/form/form-control-select.js +3 -3
- package/dist/collection/ui-components/form/form-control-text.js +3 -3
- package/dist/collection/ui-components/form/form-control-textarea.js +3 -3
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +1 -1
- 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/ui-components/index.js +1 -1
- package/dist/collection/ui-components/internal-button.js +192 -0
- package/dist/collection/ui-components/radio-list-item.js +153 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +20 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +2 -2
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -5
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +10905 -10441
- package/dist/esm/{check-pkg-version-Dn83YYz_.js → Analytics-C2EVi4Am.js} +4 -46
- package/dist/esm/{Api-CLZVsXZg.js → Api-DI0-itk3.js} +1 -1
- package/dist/esm/{Plaid-DOdR_CNb.js → Plaid-vwPGZ5y4.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +5 -5
- package/dist/esm/{justifi-additional-questions-form-step_9.entry.js → additional-questions-form-step_9.entry.js} +22 -22
- package/dist/esm/{form-alert_5.entry.js → additional-questions_5.entry.js} +23 -23
- package/dist/esm/{badge-guwZ0VTf.js → badge-B_DdhQ3Q.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +198 -0
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +43 -43
- package/dist/esm/bank-account-form.entry.js +12 -8
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-DSolii9Q.js → business.service-M3YvwC-d.js} +2 -2
- package/dist/esm/{button-CdXktiZq.js → button-B-Agn8yQ.js} +1 -1
- package/dist/esm/card-form.entry.js +12 -8
- package/dist/esm/check-pkg-version-qIHmWcbI.js +45 -0
- package/dist/esm/{checkout.service-BTXHVtxI.js → checkout.service-DdIBmfsp.js} +2 -2
- package/dist/esm/{checkout.store-iNkW80yV.js → checkout.store-C1TdhFf6.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +8 -8
- package/dist/esm/{checkouts-table-Bf6gjMf8.js → checkouts-table-4iLy6mvH.js} +3 -3
- package/dist/esm/custom-popper_2.entry.js +5 -5
- package/dist/esm/{dispute.service-CpDEYnHy.js → dispute.service-BzzA0DeT.js} +2 -2
- package/dist/esm/{form-control-number-masked_3.entry.js → form-address-fields_3.entry.js} +23 -23
- package/dist/esm/form-control-checkbox.entry.js +7 -7
- package/dist/esm/form-control-date.entry.js +6 -6
- package/dist/esm/{form-control-error-text-JYoDicr0.js → form-control-error-text-DMKhr8QA.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +8 -8
- package/dist/esm/{form-control-help-text-DxL7yVgi.js → form-control-help-text-CsdCuw5-.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
- package/dist/esm/form-control-monetary.entry.js +8 -8
- package/dist/esm/form-control-number_3.entry.js +13 -13
- package/dist/esm/form-control-radio.entry.js +5 -5
- package/dist/esm/form-control-select_2.entry.js +9 -9
- package/dist/esm/{get-payment-details-VEzqfeuZ.js → get-payment-details-CN7gUjBc.js} +1 -1
- package/dist/esm/{get-subaccounts-DUdsxExJ.js → get-subaccounts-Mwx-aVcG.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-CU8Erek9.js → header-1-bRxxOyI-.js} +1 -1
- package/dist/esm/{header-3-BwJ-9MsW.js → header-3-E533c0A3.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-gsU4kKgc.js → insurance-state-obAKb1XR.js} +1 -1
- package/dist/esm/internal-button.entry.js +16 -0
- package/dist/esm/justifi-additional-statement_8.entry.js +18 -18
- package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_11.entry.js} +338 -35
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +44 -0
- package/dist/esm/justifi-bank-account-form.entry.js +42 -0
- package/dist/esm/justifi-billing-form-full.entry.js +22 -0
- package/dist/esm/justifi-billing-form.entry.js +22 -0
- package/dist/esm/justifi-business-details.entry.js +11 -10
- package/dist/esm/justifi-business-form.entry.js +14 -13
- package/dist/esm/justifi-card-billing-form-simple.entry.js +22 -0
- package/dist/esm/justifi-card-form.entry.js +42 -0
- package/dist/esm/justifi-checkout.entry.js +12 -13
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +14 -13
- package/dist/esm/justifi-config-provider.entry.js +2 -2
- package/dist/esm/justifi-details.entry.js +5 -5
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +10 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +18 -17
- package/dist/esm/justifi-gross-payment-chart.entry.js +10 -9
- package/dist/esm/justifi-order-terminals.entry.js +13 -12
- package/dist/esm/justifi-payment-details.entry.js +12 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +7 -7
- package/dist/esm/justifi-payment-provisioning.entry.js +10 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -12
- package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payments-list.entry.js +14 -13
- package/dist/esm/justifi-payout-details.entry.js +11 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -12
- package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payouts-list.entry.js +15 -14
- package/dist/esm/justifi-refund-payment.entry.js +13 -12
- package/dist/esm/justifi-save-new-payment-method.entry.js +16 -0
- package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +12 -11
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +12 -11
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminals-list.entry.js +14 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-qNXIkzDE.js → package-CIYOQWsL.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-D3V9AE6o.js → parts-D50Rx76J.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -15
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-loading-CQfDKCwy.js → payment-provisioning-loading-BAoIyEOj.js} +1 -1
- package/dist/esm/{payment.service-BjU4B__W.js → payment.service-0k8z2rOV.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -9
- package/dist/esm/{payments-status-DT4VNKKg.js → payments-status-7P7L51CK.js} +1 -1
- package/dist/esm/{payments-table-BJ1F2ZZU.js → payments-table-Bz7LmU_J.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-CzCd8AaC.js → payout.service-C14YvCWQ.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-status-LTNE_gQc.js → payouts-status-CGZRMu-q.js} +1 -1
- package/dist/esm/{payouts-table-Yp2d9OgA.js → payouts-table-Bpt__avQ.js} +3 -3
- package/dist/esm/{plaid.service-D61Eq14d.js → plaid.service-Dtxfrsm8.js} +2 -2
- package/dist/esm/radio-list-item.entry.js +19 -0
- package/dist/esm/save-new-payment-method.entry.js +23 -0
- package/dist/esm/{skeleton-CV6EpBqb.js → skeleton-DV6yJalo.js} +1 -1
- package/dist/esm/{spinner-CG3aWl8K.js → spinner--fEgBBOG.js} +1 -1
- package/dist/esm/{table-DZ6rurWg.js → table-Deugl8h5.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +8 -8
- package/dist/esm/{terminal-orders-table-CJg6dKsL.js → terminal-orders-table-DRnRR4zn.js} +4 -4
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-BBdRhDxm.js → terminal.service-rxvEhqqF.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/{terminals-table-iGSICJeZ.js → terminals-table-DSDZgJ77.js} +3 -3
- package/dist/esm/{utils-7bp92NC7.js → utils-C_8ZxLti.js} +1 -1
- package/dist/esm/{utils-DUArY3am.js → utils-DJOBwFeP.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +1 -43
- package/dist/module/Plaid.js +1 -1
- package/dist/module/additional-questions-form-step.d.ts +11 -0
- package/dist/module/additional-questions-form-step.js +6 -0
- package/dist/module/{business-additional-questions-form-step.js → additional-questions-form-step2.js} +5 -5
- package/dist/module/additional-questions.d.ts +11 -0
- package/dist/module/additional-questions.js +4 -76
- package/dist/module/additional-questions2.js +78 -0
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-billing-form-simple.d.ts +11 -0
- package/dist/module/bank-account-billing-form-simple.js +4 -86
- package/dist/module/bank-account-billing-form-simple2.js +91 -0
- package/dist/module/bank-account-document-form-inputs.js +1 -1
- package/dist/module/{bank-account-document-inputs.js → bank-account-document-form-inputs2.js} +1 -1
- package/dist/module/bank-account-form-inputs-canada2.js +3 -3
- package/dist/module/bank-account-form-inputs2.js +3 -3
- package/dist/module/bank-account-form.js +1 -80
- package/dist/module/{bank-account.js → bank-account-form2.js} +10 -19
- package/dist/module/bank-account-read-only-value2.js +2 -2
- package/dist/module/billing-form-full.d.ts +11 -0
- package/dist/module/billing-form-full.js +4 -97
- package/dist/module/billing-form-full2.js +105 -0
- package/dist/module/billing-form-schema.js +1 -1
- package/dist/module/billing-form.d.ts +11 -0
- package/dist/module/billing-form.js +4 -102
- package/dist/module/billing-form2.js +99 -0
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +2 -2
- package/dist/module/business-bank-account-form-step.d.ts +11 -0
- package/dist/module/business-bank-account-form-step.js +4 -602
- package/dist/module/business-bank-account-form-step2.js +604 -0
- package/dist/module/business-core-info-form-step.d.ts +11 -0
- package/dist/module/business-core-info-form-step.js +4 -215
- package/dist/module/business-core-info-form-step2.js +217 -0
- package/dist/module/{justifi-owner-form.d.ts → business-core-info.d.ts} +4 -4
- package/dist/module/business-core-info.js +4 -92
- package/dist/module/business-core-info2.js +94 -0
- package/dist/module/business-details-core2.js +1 -1
- package/dist/module/business-documents-on-file2.js +3 -3
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-identity-schema.js +2 -2
- package/dist/module/business-owners-form-step.d.ts +11 -0
- package/dist/module/business-owners-form-step.js +4 -302
- package/dist/module/business-owners-form-step2.js +304 -0
- package/dist/module/business-representative-form-inputs.d.ts +11 -0
- package/dist/module/business-representative-form-inputs.js +4 -100
- package/dist/module/business-representative-form-inputs2.js +102 -0
- package/dist/module/business-representative-form-step.d.ts +11 -0
- package/dist/module/business-representative-form-step.js +4 -220
- package/dist/module/business-representative-form-step2.js +222 -0
- package/dist/module/business-representative.d.ts +11 -0
- package/dist/module/business-representative.js +4 -114
- package/dist/module/business-representative2.js +116 -0
- package/dist/module/business-terms-conditions-form-step.d.ts +11 -0
- package/dist/module/business-terms-conditions-form-step.js +4 -165
- package/dist/module/business-terms-conditions-form-step2.js +167 -0
- package/dist/module/button.js +1 -1
- package/dist/module/card-billing-form-simple.d.ts +11 -0
- package/dist/module/card-billing-form-simple.js +4 -86
- package/dist/module/card-billing-form-simple2.js +91 -0
- package/dist/module/card-form.js +1 -84
- package/dist/module/card-form2.js +12 -21
- package/dist/module/check-pkg-version.js +45 -0
- package/dist/module/checkout.store.js +2 -2
- package/dist/module/checkouts-list-core2.js +4 -4
- package/dist/module/checkouts-list-params-state.js +1 -1
- package/dist/module/config-state.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +15 -15
- package/dist/module/dispute-response-actions.js +2 -2
- package/dist/module/dispute-response-core.js +13 -13
- package/dist/module/form-address-fields.d.ts +11 -0
- package/dist/module/form-address-fields.js +4 -63
- package/dist/module/form-address-fields2.js +65 -0
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox.js +2 -2
- package/dist/module/form-control-checkbox2.js +8 -8
- package/dist/module/form-control-date.js +2 -2
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-file-v2.js +2 -2
- package/dist/module/form-control-file-v22.js +4 -4
- package/dist/module/form-control-file.js +2 -2
- package/dist/module/form-control-file2.js +7 -7
- package/dist/module/form-control-help-text.js +1 -1
- package/dist/module/form-control-help-text2.js +9 -32
- package/dist/module/form-control-help-text3.js +32 -9
- package/dist/module/form-control-monetary-provisioning.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +9 -9
- package/dist/module/form-control-monetary.js +2 -2
- package/dist/module/form-control-monetary2.js +8 -8
- package/dist/module/form-control-number-masked.js +2 -2
- package/dist/module/form-control-number-masked2.js +8 -8
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-number2.js +8 -8
- package/dist/module/form-control-radio.js +2 -2
- package/dist/module/form-control-radio2.js +7 -7
- package/dist/module/form-control-select.js +2 -2
- package/dist/module/form-control-select2.js +7 -7
- package/dist/module/form-control-text.js +2 -2
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/form-control-textarea.js +2 -2
- package/dist/module/form-control-textarea2.js +7 -7
- package/dist/module/form-control-tooltip.js +2 -2
- package/dist/module/form-control-tooltip2.js +4 -4
- package/dist/module/get-business.js +2 -2
- package/dist/module/get-payment-details.js +2 -2
- package/dist/module/get-payout-csv.js +2 -2
- package/dist/module/get-subaccounts.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/header-1.js +1 -1
- package/dist/module/header-3.js +1 -1
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.d.ts +11 -0
- package/dist/module/identity-address-form.js +4 -76
- package/dist/module/identity-address-form2.js +78 -0
- package/dist/module/iframe-input-styles-state.js +1 -1
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/index2.js +3567 -246
- package/dist/module/index3.js +246 -3567
- package/dist/module/insurance-state.js +1 -1
- package/dist/module/internal-button.d.ts +11 -0
- package/dist/module/internal-button.js +6 -0
- package/dist/module/internal-button2.js +42 -0
- package/dist/module/justifi-additional-statement.js +2 -2
- package/dist/module/{additional-statement.js → justifi-additional-statement2.js} +5 -5
- package/dist/module/justifi-apple-pay.js +2 -2
- package/dist/module/{apple-pay.js → justifi-apple-pay2.js} +11 -11
- package/dist/module/justifi-bank-account-billing-form-simple.js +81 -2
- package/dist/module/justifi-bank-account-form.js +72 -2
- package/dist/module/justifi-billing-form-full.js +75 -2
- package/dist/module/justifi-billing-form.js +96 -2
- package/dist/module/justifi-business-details.js +7 -6
- package/dist/module/justifi-business-form.js +38 -37
- package/dist/module/justifi-button2.js +10 -4
- package/dist/module/justifi-cancellation-policy.js +2 -2
- package/dist/module/{cancellation-policy.js → justifi-cancellation-policy2.js} +5 -5
- package/dist/module/justifi-card-billing-form-simple.js +69 -2
- package/dist/module/justifi-card-form.js +71 -1
- package/dist/module/justifi-checkout-summary.js +2 -2
- package/dist/module/{summary.js → justifi-checkout-summary2.js} +6 -6
- package/dist/module/justifi-checkout.js +73 -62
- package/dist/module/justifi-checkouts-list-filters.js +6 -6
- package/dist/module/justifi-checkouts-list.js +9 -8
- package/dist/module/justifi-config-provider.js +3 -3
- package/dist/module/justifi-customer-details.js +2 -2
- package/dist/module/{customer-details.js → justifi-customer-details2.js} +5 -5
- package/dist/module/justifi-details.js +2 -2
- package/dist/module/{details.js → justifi-details2.js} +4 -4
- package/dist/module/justifi-dispute-management-core.js +2 -2
- package/dist/module/justifi-dispute-management.js +19 -18
- package/dist/module/justifi-dispute-notification.js +2 -2
- package/dist/module/{dispute-notification.js → justifi-dispute-notification2.js} +7 -7
- package/dist/module/justifi-dispute-response-core.js +2 -2
- package/dist/module/justifi-dispute-response.js +2 -2
- package/dist/module/{dispute-response.js → justifi-dispute-response2.js} +17 -16
- package/dist/module/justifi-duplicate-charge.js +2 -2
- package/dist/module/{duplicate-charge.js → justifi-duplicate-charge2.js} +5 -5
- package/dist/module/justifi-electronic-evidence.js +2 -2
- package/dist/module/{electronic-evidence.js → justifi-electronic-evidence2.js} +4 -4
- package/dist/module/justifi-google-pay.js +2 -2
- package/dist/module/{google-pay.js → justifi-google-pay2.js} +4 -4
- package/dist/module/justifi-gross-payment-chart.js +7 -6
- package/dist/module/justifi-header.js +2 -2
- package/dist/module/justifi-header2.js +4 -4
- package/dist/module/justifi-modular-checkout.js +2 -2
- package/dist/module/{modular-checkout.js → justifi-modular-checkout2.js} +23 -9
- package/dist/module/justifi-order-terminals.js +10 -9
- package/dist/module/justifi-payment-details.js +7 -6
- package/dist/module/justifi-payment-provisioning-core.js +2 -2
- package/dist/module/justifi-payment-provisioning.js +70 -69
- package/dist/module/justifi-payment-transactions-list.js +10 -9
- package/dist/module/justifi-payments-list-filters.js +6 -6
- package/dist/module/justifi-payments-list.js +9 -8
- package/dist/module/justifi-payout-details.js +8 -7
- package/dist/module/justifi-payout-transactions-list.js +10 -9
- package/dist/module/justifi-payouts-list-filters.js +6 -6
- package/dist/module/justifi-payouts-list.js +9 -8
- package/dist/module/justifi-plaid-payment-method.js +2 -2
- package/dist/module/{plaid-payment-method.js → justifi-plaid-payment-method2.js} +7 -7
- package/dist/module/justifi-product-or-service.js +2 -2
- package/dist/module/{product-or-service.js → justifi-product-or-service2.js} +4 -4
- package/dist/module/justifi-radio-list-item2.js +11 -9
- package/dist/module/justifi-refund-payment.js +9 -8
- package/dist/module/justifi-refund-policy.js +2 -2
- package/dist/module/{refund-policy.js → justifi-refund-policy2.js} +5 -5
- package/dist/module/justifi-save-new-payment-method.js +50 -2
- package/dist/module/justifi-saved-payment-method.js +6 -6
- package/dist/module/justifi-saved-payment-methods.js +2 -2
- package/dist/module/{saved-payment-methods.js → justifi-saved-payment-methods2.js} +6 -6
- package/dist/module/justifi-season-interruption-insurance.js +10 -9
- package/dist/module/justifi-sezzle-payment-method.js +2 -2
- package/dist/module/{sezzle-payment-method.js → justifi-sezzle-payment-method2.js} +4 -4
- package/dist/module/justifi-shipping-details.js +2 -2
- package/dist/module/{shipping-details.js → justifi-shipping-details2.js} +5 -5
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +7 -7
- package/dist/module/justifi-terminal-orders-list.js +9 -8
- package/dist/module/justifi-terminals-list-filters.js +5 -5
- package/dist/module/justifi-terminals-list.js +9 -8
- package/dist/module/justifi-tokenize-payment-method.js +2 -167
- package/dist/module/{internal-tokenize-payment-method2.js → justifi-tokenize-payment-method2.js} +73 -56
- package/dist/module/legal-address-form-step.d.ts +11 -0
- package/dist/module/legal-address-form-step.js +4 -189
- package/dist/module/legal-address-form-step2.js +191 -0
- package/dist/module/legal-address-form.d.ts +11 -0
- package/dist/module/legal-address-form.js +4 -74
- package/dist/module/legal-address-form2.js +76 -0
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core.js +2 -2
- package/dist/module/owner-form-core2.js +23 -23
- package/dist/module/owner-form-inputs.js +2 -2
- package/dist/module/owner-form-inputs2.js +23 -23
- package/dist/module/owner-form.d.ts +11 -0
- package/dist/module/owner-form.js +4 -142
- package/dist/module/owner-form2.js +144 -0
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +10 -10
- package/dist/module/payment-method-option.js +4 -4
- package/dist/module/payment-provisioning-actions.js +2 -2
- package/dist/module/payment-provisioning-core.js +68 -68
- package/dist/module/payment-provisioning-form-buttons.d.ts +11 -0
- package/dist/module/payment-provisioning-form-buttons.js +4 -49
- package/dist/module/payment-provisioning-form-buttons2.js +51 -0
- package/dist/module/payment-provisioning-form-steps.d.ts +11 -0
- package/dist/module/payment-provisioning-form-steps.js +4 -224
- package/dist/module/payment-provisioning-form-steps2.js +226 -0
- package/dist/module/payment-provisioning-loading.js +1 -1
- package/dist/module/payments-list-core2.js +3 -3
- package/dist/module/payments-list-params-state.js +1 -1
- package/dist/module/payout-details-core2.js +5 -5
- package/dist/module/payouts-list-core2.js +4 -4
- package/dist/module/payouts-list-params-state.js +1 -1
- package/dist/module/plaid-verification2.js +3 -3
- package/dist/module/radio-list-item.d.ts +11 -0
- package/dist/module/radio-list-item.js +6 -0
- package/dist/module/radio-list-item2.js +55 -0
- package/dist/module/representative-details.js +2 -2
- package/dist/module/representative-details2.js +4 -4
- package/dist/module/save-new-payment-method.d.ts +11 -0
- package/dist/module/save-new-payment-method.js +4 -50
- package/dist/module/save-new-payment-method2.js +48 -0
- package/dist/module/schema-validations.js +2 -2
- package/dist/module/skeleton.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +3 -3
- package/dist/module/terminal-orders-list-params-state.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminals-list-core2.js +3 -3
- package/dist/module/terminals-list-params-state.js +1 -1
- package/dist/module/utils.js +1 -1
- package/dist/module/utils2.js +1 -1
- package/dist/module/utils3.js +24 -23
- package/dist/module/utils4.js +23 -24
- package/dist/types/components/business-details/{business-details.d.ts → justifi-business-details.d.ts} +1 -1
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +1 -1
- package/dist/types/components/business-forms/business-form/{business-form.d.ts → justifi-business-form.d.ts} +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +1 -1
- package/dist/types/components/business-forms/payment-provisioning/{payment-provisioning.d.ts → justifi-payment-provisioning.d.ts} +1 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +6 -6
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +5 -1
- package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/bank-account-billing-form-simple.d.ts +3 -2
- package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/billing-form-full.d.ts +4 -2
- package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +1 -1
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +0 -1
- package/dist/types/components/{modular-checkout/sub-components → checkout/billing-form}/card-billing-form-simple.d.ts +3 -2
- package/dist/types/components/checkout/billing-form/justifi-billing-form.d.ts +14 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +5 -1
- package/dist/types/components/checkout/{checkout.d.ts → justifi-checkout.d.ts} +2 -21
- package/dist/types/components/checkout/{saved-payment-method.d.ts → justifi-saved-payment-method.d.ts} +1 -1
- package/dist/types/components/checkout/save-new-payment-method/justifi-save-new-payment-method.d.ts +7 -0
- package/dist/types/components/checkout/{save-new-payment-method.d.ts → save-new-payment-method/save-new-payment-method.d.ts} +2 -1
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -1
- package/dist/types/components/checkouts-list/{checkouts-list.d.ts → justifi-checkouts-list.d.ts} +1 -1
- package/dist/types/components/config-provider/{config-provider.d.ts → justifi-config-provider.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +1 -1
- package/dist/types/components/dispute-management/dispute-response/{additional-statement.d.ts → justifi-additional-statement.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{cancellation-policy.d.ts → justifi-cancellation-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{customer-details.d.ts → justifi-customer-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{dispute-response.d.ts → justifi-dispute-response.d.ts} +2 -2
- package/dist/types/components/dispute-management/dispute-response/{duplicate-charge.d.ts → justifi-duplicate-charge.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{electronic-evidence.d.ts → justifi-electronic-evidence.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{product-or-service.d.ts → justifi-product-or-service.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{refund-policy.d.ts → justifi-refund-policy.d.ts} +1 -1
- package/dist/types/components/dispute-management/dispute-response/{shipping-details.d.ts → justifi-shipping-details.d.ts} +1 -1
- package/dist/types/components/dispute-management/{dispute-management.d.ts → justifi-dispute-management.d.ts} +1 -1
- package/dist/types/components/dispute-management/{dispute-notification.d.ts → justifi-dispute-notification.d.ts} +1 -1
- package/dist/types/components/gross-payment-chart/{gross-payment-chart.d.ts → justifi-gross-payment-chart.d.ts} +1 -1
- package/dist/types/components/insurance/season-interruption/{season-interruption-insurance.d.ts → justifi-season-interruption-insurance.d.ts} +1 -1
- package/dist/types/components/modular-checkout/{modular-checkout.d.ts → justifi-modular-checkout.d.ts} +2 -1
- package/dist/types/components/modular-checkout/sub-components/{apple-pay.d.ts → justifi-apple-pay.d.ts} +1 -4
- package/dist/types/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.d.ts +15 -0
- package/dist/types/components/modular-checkout/sub-components/{bank-account.d.ts → justifi-bank-account-form.d.ts} +2 -7
- package/dist/types/components/modular-checkout/sub-components/justifi-billing-form-full.d.ts +11 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-card-billing-form-simple.d.ts +11 -0
- package/dist/types/components/modular-checkout/sub-components/{card-form.d.ts → justifi-card-form.d.ts} +1 -8
- package/dist/types/components/modular-checkout/sub-components/justifi-checkout-summary.d.ts +3 -0
- package/dist/types/components/modular-checkout/sub-components/{google-pay.d.ts → justifi-google-pay.d.ts} +1 -1
- package/dist/types/components/modular-checkout/sub-components/{plaid-payment-method.d.ts → justifi-plaid-payment-method.d.ts} +1 -1
- package/dist/types/components/modular-checkout/sub-components/{saved-payment-methods.d.ts → justifi-saved-payment-methods.d.ts} +1 -1
- package/dist/types/components/modular-checkout/sub-components/{sezzle-payment-method.d.ts → justifi-sezzle-payment-method.d.ts} +1 -1
- package/dist/types/components/order-terminals/{order-terminals.d.ts → justifi-order-terminals.d.ts} +1 -1
- package/dist/types/components/payment-details/{payment-details.d.ts → justifi-payment-details.d.ts} +1 -1
- package/dist/types/components/payment-transactions-list/{payment-transactions-list.d.ts → justifi-payment-transactions-list.d.ts} +1 -1
- package/dist/types/components/payments-list/{payments-list-filters.d.ts → justifi-payments-list-filters.d.ts} +1 -1
- package/dist/types/components/payments-list/{payments-list.d.ts → justifi-payments-list.d.ts} +1 -1
- package/dist/types/components/payout-details/{payout-details.d.ts → justifi-payout-details.d.ts} +1 -1
- package/dist/types/components/payout-transactions-list/{payout-transactions-list.d.ts → justifi-payout-transactions-list.d.ts} +1 -1
- package/dist/types/components/payouts-list/{payouts-list-filters.d.ts → justifi-payouts-list-filters.d.ts} +1 -1
- package/dist/types/components/payouts-list/{payouts-list.d.ts → justifi-payouts-list.d.ts} +1 -1
- package/dist/types/components/refund-payment/{refund-payment.d.ts → justifi-refund-payment.d.ts} +1 -1
- package/dist/types/components/terminal-orders-list/{terminal-orders-list-filters.d.ts → justifi-terminal-orders-list-filters.d.ts} +1 -1
- package/dist/types/components/terminal-orders-list/{terminal-orders-list.d.ts → justifi-terminal-orders-list.d.ts} +1 -1
- package/dist/types/components/terminals-list/{terminals-list-filters.d.ts → justifi-terminals-list-filters.d.ts} +1 -1
- package/dist/types/components/terminals-list/{terminals-list.d.ts → justifi-terminals-list.d.ts} +1 -1
- package/dist/types/components/tokenize-payment-method/{internal-tokenize-payment-method.d.ts → justifi-tokenize-payment-method.d.ts} +4 -3
- package/dist/types/components.d.ts +826 -657
- package/dist/types/ui-components/details/{details.d.ts → justifi-details.d.ts} +1 -1
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-date.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-file.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-monetary.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-number.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-radio.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-select.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-text.d.ts +1 -1
- package/dist/types/ui-components/form/form-control-textarea.d.ts +1 -1
- package/dist/types/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.d.ts +1 -1
- package/dist/types/ui-components/index.d.ts +1 -1
- package/dist/types/ui-components/internal-button.d.ts +14 -0
- package/dist/types/ui-components/radio-list-item.d.ts +12 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +1 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -1
- package/dist/webcomponents/p-08424d71.entry.js +1 -0
- package/dist/webcomponents/p-089bc927.entry.js +1 -0
- package/dist/webcomponents/p-0b7fa323.entry.js +1 -0
- package/dist/webcomponents/p-16ae88d0.entry.js +1 -0
- package/dist/webcomponents/p-179fe9a0.entry.js +1 -0
- package/dist/webcomponents/p-1a9aecbf.entry.js +1 -0
- package/dist/webcomponents/{p-132c8d4c.entry.js → p-1c95ec74.entry.js} +3 -3
- package/dist/webcomponents/{p-541da1ed.entry.js → p-1d1c48c3.entry.js} +1 -1
- package/dist/webcomponents/p-1da3ba0f.entry.js +1 -0
- package/dist/webcomponents/{p-368d8543.entry.js → p-252a4f75.entry.js} +1 -1
- package/dist/webcomponents/{p-ef98982e.entry.js → p-26062991.entry.js} +1 -1
- package/dist/webcomponents/p-26074643.entry.js +1 -0
- package/dist/webcomponents/{p-251f6c90.entry.js → p-2719f4db.entry.js} +1 -1
- package/dist/webcomponents/p-2a0ce169.entry.js +1 -0
- package/dist/webcomponents/p-2b8df3c0.entry.js +1 -0
- package/dist/webcomponents/p-2bec5dca.entry.js +1 -0
- package/dist/webcomponents/p-358f7121.entry.js +1 -0
- package/dist/webcomponents/{p-ca307ba0.entry.js → p-38281490.entry.js} +1 -1
- package/dist/webcomponents/p-383798ab.entry.js +1 -0
- package/dist/webcomponents/p-3d135aee.entry.js +1 -0
- package/dist/webcomponents/{p-15919744.entry.js → p-42129686.entry.js} +1 -1
- package/dist/webcomponents/p-431ad048.entry.js +1 -0
- package/dist/webcomponents/p-485a8795.entry.js +1 -0
- package/dist/webcomponents/p-4d222f42.entry.js +1 -0
- package/dist/webcomponents/{p-c751bb5f.entry.js → p-534833ca.entry.js} +1 -1
- package/dist/webcomponents/p-534881d8.entry.js +1 -0
- package/dist/webcomponents/p-53dd8569.entry.js +1 -0
- package/dist/webcomponents/{p-e646422f.entry.js → p-56d58041.entry.js} +1 -1
- package/dist/webcomponents/p-61784c6a.entry.js +1 -0
- package/dist/webcomponents/p-6372a42a.entry.js +1 -0
- package/dist/webcomponents/p-7108eead.entry.js +1 -0
- package/dist/webcomponents/p-729c9798.entry.js +1 -0
- package/dist/webcomponents/{p-7cb910cf.entry.js → p-744f57f0.entry.js} +1 -1
- package/dist/webcomponents/p-7742cf61.entry.js +1 -0
- package/dist/webcomponents/p-774b69a0.entry.js +1 -0
- package/dist/webcomponents/p-77600a47.entry.js +1 -0
- package/dist/webcomponents/{p-f23b4474.entry.js → p-7791b55e.entry.js} +1 -1
- package/dist/webcomponents/p-783580d4.entry.js +1 -0
- package/dist/webcomponents/p-83fd4eae.entry.js +1 -0
- package/dist/webcomponents/p-848ae146.entry.js +1 -0
- package/dist/webcomponents/p-865d4604.entry.js +1 -0
- package/dist/webcomponents/{p-e86c713b.entry.js → p-89bf64ef.entry.js} +1 -1
- package/dist/webcomponents/p-8Kt4Rhcq.js +1 -0
- package/dist/webcomponents/p-8c52d10a.entry.js +1 -0
- package/dist/webcomponents/p-8df335d4.entry.js +1 -0
- package/dist/webcomponents/p-90f2c769.entry.js +1 -0
- package/dist/webcomponents/{p-7703ada7.entry.js → p-9639d9d0.entry.js} +1 -1
- package/dist/webcomponents/p-97d16844.entry.js +1 -0
- package/dist/webcomponents/p-9838b5a7.entry.js +1 -0
- package/dist/webcomponents/{p--UanYWb-.js → p-B6sIVWJW.js} +1 -1
- package/dist/webcomponents/{p-BXT1uJVr.js → p-BJtvT9BX.js} +1 -1
- package/dist/webcomponents/{p-DnZY6aQX.js → p-BmEX2SfZ.js} +1 -1
- package/dist/webcomponents/{p-C0tps2ph.js → p-BrO0HEFJ.js} +1 -1
- package/dist/webcomponents/{p-CMLfjWil.js → p-Bwzxu5wV.js} +1 -1
- package/dist/webcomponents/{p-o83Uy7sW.js → p-C-QiUcEa.js} +1 -1
- package/dist/webcomponents/{p-ERB63T7J.js → p-C1olhiO9.js} +1 -1
- package/dist/webcomponents/p-CAl_N2gi.js +1 -0
- package/dist/webcomponents/{p-_BHErKTQ.js → p-CBqZge6m.js} +1 -1
- package/dist/webcomponents/p-CIYOQWsL.js +1 -0
- package/dist/webcomponents/{p-55QcjheA.js → p-CMB3sNMT.js} +1 -1
- package/dist/webcomponents/{p-XxcNbSyO.js → p-CWv3GX8X.js} +1 -1
- package/dist/webcomponents/p-CbM9cuX_.js +1 -0
- package/dist/webcomponents/{p-COZ-9O53.js → p-CjuaXEuI.js} +1 -1
- package/dist/webcomponents/{p-zGGZEiGQ.js → p-CmXujxGp.js} +1 -1
- package/dist/webcomponents/{p-Csh7hxly.js → p-CwdQ1VdH.js} +1 -1
- package/dist/webcomponents/{p-BrcAwFqw.js → p-CzdAS9Jo.js} +1 -1
- package/dist/webcomponents/p-D0BjjvYt.js +1 -0
- package/dist/webcomponents/{p-C5CtnV8A.js → p-D2TJwp13.js} +1 -1
- package/dist/webcomponents/{p-D3V9AE6o.js → p-D50Rx76J.js} +1 -1
- package/dist/webcomponents/p-D5MdA21U.js +1 -0
- package/dist/webcomponents/p-D68EHdgA.js +1 -0
- package/dist/webcomponents/p-DB_pqjwH.js +1 -0
- package/dist/webcomponents/{p-vIYW-hye.js → p-DL0R5vDy.js} +1 -1
- package/dist/webcomponents/{p-DdR4lBzU.js → p-DLmWCafe.js} +1 -1
- package/dist/webcomponents/{p-BPpqjhPu.js → p-Da4efjxw.js} +1 -1
- package/dist/webcomponents/p-Df9FVwA7.js +1 -0
- package/dist/webcomponents/p-Dvcgmvfg.js +1 -0
- package/dist/webcomponents/{p-Daew0gTO.js → p-EBsfAkrP.js} +1 -1
- package/dist/webcomponents/{p-xvmoHDSy.js → p-J7WCmj-J.js} +1 -1
- package/dist/webcomponents/{p-D-cvuqv1.js → p-MLfmcsbZ.js} +1 -1
- package/dist/webcomponents/{p-MeSAYDNh.js → p-MkDHT9M4.js} +1 -1
- package/dist/webcomponents/p-N60pPiy5.js +1 -0
- package/dist/webcomponents/{p-2xM1wp0u.js → p-_fynNk40.js} +1 -1
- package/dist/webcomponents/p-a53fae42.entry.js +1 -0
- package/dist/webcomponents/p-a5640aa4.entry.js +1 -0
- package/dist/webcomponents/{p-1ddbbba8.entry.js → p-b21e5a85.entry.js} +1 -1
- package/dist/webcomponents/p-b2d7a9dd.entry.js +1 -0
- package/dist/webcomponents/p-b31c9979.entry.js +1 -0
- package/dist/webcomponents/p-b322d2f3.entry.js +1 -0
- package/dist/webcomponents/p-b596cbb3.entry.js +1 -0
- package/dist/webcomponents/p-b7ffdb30.entry.js +1 -0
- package/dist/webcomponents/p-bac16c16.entry.js +1 -0
- package/dist/webcomponents/p-bb4cc829.entry.js +1 -0
- package/dist/webcomponents/p-bbdae5b7.entry.js +1 -0
- package/dist/webcomponents/p-c07069f1.entry.js +1 -0
- package/dist/webcomponents/p-c4da12e0.entry.js +1 -0
- package/dist/webcomponents/p-c5be6300.entry.js +1 -0
- package/dist/webcomponents/p-c63b8c8f.entry.js +1 -0
- package/dist/webcomponents/p-d6350138.entry.js +1 -0
- package/dist/webcomponents/{p-f4074e9a.entry.js → p-d667138d.entry.js} +1 -1
- package/dist/webcomponents/p-d6c2d51d.entry.js +1 -0
- package/dist/webcomponents/p-def798df.entry.js +1 -0
- package/dist/webcomponents/p-e2650fe5.entry.js +1 -0
- package/dist/webcomponents/p-e4ba0754.entry.js +1 -0
- package/dist/webcomponents/p-e939affa.entry.js +1 -0
- package/dist/webcomponents/p-e9c20b52.entry.js +1 -0
- package/dist/webcomponents/p-ea84c544.entry.js +1 -0
- package/dist/webcomponents/{p-DzeWzcho.js → p-rz2BF2Sz.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +0 -470
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +0 -147
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -24
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +0 -101
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +0 -105
- package/dist/collection/components/modular-checkout/sub-components/summary.js +0 -12
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +0 -296
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +0 -462
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +0 -143
- package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -22
- package/dist/module/internal-tokenize-payment-method.d.ts +0 -11
- package/dist/module/internal-tokenize-payment-method.js +0 -6
- package/dist/module/justifi-additional-questions-form-step.d.ts +0 -11
- package/dist/module/justifi-additional-questions-form-step.js +0 -6
- package/dist/module/justifi-additional-questions.d.ts +0 -11
- package/dist/module/justifi-additional-questions.js +0 -6
- package/dist/module/justifi-business-bank-account-form-step.d.ts +0 -11
- package/dist/module/justifi-business-bank-account-form-step.js +0 -6
- package/dist/module/justifi-business-core-info-form-step.d.ts +0 -11
- package/dist/module/justifi-business-core-info-form-step.js +0 -6
- package/dist/module/justifi-business-core-info.d.ts +0 -11
- package/dist/module/justifi-business-core-info.js +0 -6
- package/dist/module/justifi-business-owners-form-step.d.ts +0 -11
- package/dist/module/justifi-business-owners-form-step.js +0 -6
- package/dist/module/justifi-business-representative-form-inputs.d.ts +0 -11
- package/dist/module/justifi-business-representative-form-inputs.js +0 -6
- package/dist/module/justifi-business-representative-form-step.d.ts +0 -11
- package/dist/module/justifi-business-representative-form-step.js +0 -6
- package/dist/module/justifi-business-representative.d.ts +0 -11
- package/dist/module/justifi-business-representative.js +0 -6
- package/dist/module/justifi-business-terms-conditions-form-step.d.ts +0 -11
- package/dist/module/justifi-business-terms-conditions-form-step.js +0 -6
- package/dist/module/justifi-form-address-fields.d.ts +0 -11
- package/dist/module/justifi-form-address-fields.js +0 -6
- package/dist/module/justifi-identity-address-form.d.ts +0 -11
- package/dist/module/justifi-identity-address-form.js +0 -6
- package/dist/module/justifi-legal-address-form-step.d.ts +0 -11
- package/dist/module/justifi-legal-address-form-step.js +0 -6
- package/dist/module/justifi-legal-address-form.d.ts +0 -11
- package/dist/module/justifi-legal-address-form.js +0 -6
- package/dist/module/justifi-owner-form.js +0 -6
- package/dist/module/justifi-payment-provisioning-form-buttons.d.ts +0 -11
- package/dist/module/justifi-payment-provisioning-form-buttons.js +0 -6
- package/dist/module/justifi-payment-provisioning-form-steps.d.ts +0 -11
- package/dist/module/justifi-payment-provisioning-form-steps.js +0 -6
- package/dist/types/components/modular-checkout/sub-components/summary.d.ts +0 -3
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +0 -19
- package/dist/webcomponents/p-03b913e8.entry.js +0 -1
- package/dist/webcomponents/p-12b662e3.entry.js +0 -1
- package/dist/webcomponents/p-19e82b02.entry.js +0 -1
- package/dist/webcomponents/p-19f22078.entry.js +0 -1
- package/dist/webcomponents/p-1fc96f35.entry.js +0 -1
- package/dist/webcomponents/p-2758d129.entry.js +0 -1
- package/dist/webcomponents/p-2V38oZhe.js +0 -1
- package/dist/webcomponents/p-320aac60.entry.js +0 -1
- package/dist/webcomponents/p-337fb232.entry.js +0 -1
- package/dist/webcomponents/p-3490ede8.entry.js +0 -1
- package/dist/webcomponents/p-3bf56699.entry.js +0 -1
- package/dist/webcomponents/p-3cd30c7a.entry.js +0 -1
- package/dist/webcomponents/p-3f9c7b04.entry.js +0 -1
- package/dist/webcomponents/p-426fd524.entry.js +0 -1
- package/dist/webcomponents/p-4ae0227a.entry.js +0 -1
- package/dist/webcomponents/p-50a34a13.entry.js +0 -1
- package/dist/webcomponents/p-5148f836.entry.js +0 -1
- package/dist/webcomponents/p-55605664.entry.js +0 -1
- package/dist/webcomponents/p-55b478bc.entry.js +0 -1
- package/dist/webcomponents/p-57e09f09.entry.js +0 -1
- package/dist/webcomponents/p-5b4dfe0e.entry.js +0 -1
- package/dist/webcomponents/p-5c70a772.entry.js +0 -1
- package/dist/webcomponents/p-60df1c18.entry.js +0 -1
- package/dist/webcomponents/p-6Nv8l5n8.js +0 -1
- package/dist/webcomponents/p-6cdea3ef.entry.js +0 -1
- package/dist/webcomponents/p-77d0f2e2.entry.js +0 -1
- package/dist/webcomponents/p-8ed651b1.entry.js +0 -1
- package/dist/webcomponents/p-97e27e4a.entry.js +0 -1
- package/dist/webcomponents/p-9ed5d349.entry.js +0 -1
- package/dist/webcomponents/p-BU9iZ8OM.js +0 -1
- package/dist/webcomponents/p-BYLHkONM.js +0 -1
- package/dist/webcomponents/p-C_WlV7F_.js +0 -1
- package/dist/webcomponents/p-DSmuL_bZ.js +0 -1
- package/dist/webcomponents/p-FcERM7LF.js +0 -1
- package/dist/webcomponents/p-a109b3a1.entry.js +0 -1
- package/dist/webcomponents/p-a5db7147.entry.js +0 -1
- package/dist/webcomponents/p-b08bca2b.entry.js +0 -1
- package/dist/webcomponents/p-b2c237c6.entry.js +0 -1
- package/dist/webcomponents/p-b2d5f105.entry.js +0 -1
- package/dist/webcomponents/p-b8fc6dff.entry.js +0 -1
- package/dist/webcomponents/p-c595d3fb.entry.js +0 -1
- package/dist/webcomponents/p-c9f94919.entry.js +0 -1
- package/dist/webcomponents/p-ca7e369f.entry.js +0 -1
- package/dist/webcomponents/p-cab4c787.entry.js +0 -1
- package/dist/webcomponents/p-cd220f6c.entry.js +0 -1
- package/dist/webcomponents/p-cd2c2256.entry.js +0 -1
- package/dist/webcomponents/p-cd7a4048.entry.js +0 -1
- package/dist/webcomponents/p-d5d8ccd9.entry.js +0 -1
- package/dist/webcomponents/p-e72d05b1.entry.js +0 -1
- package/dist/webcomponents/p-e9d7f988.entry.js +0 -1
- package/dist/webcomponents/p-f1562dab.entry.js +0 -1
- package/dist/webcomponents/p-f44008d9.entry.js +0 -1
- package/dist/webcomponents/p-f657995a.entry.js +0 -1
- package/dist/webcomponents/p-fa3b5072.entry.js +0 -1
- package/dist/webcomponents/p-fb58eb13.entry.js +0 -1
- package/dist/webcomponents/p-fff25a5f.entry.js +0 -1
- package/dist/webcomponents/p-qNXIkzDE.js +0 -1
- package/dist/webcomponents/p-rgpO5xc3.js +0 -1
- package/dist/webcomponents/p-t6eP44Li.js +0 -1
- /package/dist/types/components/business-forms/payment-provisioning/additional-questions/{business-additional-questions-form-step.d.ts → additional-questions-form-step.d.ts} +0 -0
- /package/dist/types/components/business-forms/payment-provisioning/bank-account/{bank-account-document-inputs.d.ts → bank-account-document-form-inputs.d.ts} +0 -0
- /package/dist/webcomponents/{p-99065f37.entry.js → p-9399f4f1.entry.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as packageJson } from './package-
|
|
2
|
-
import { A as Api } from './Api-
|
|
1
|
+
import { p as packageJson } from './package-CIYOQWsL.js';
|
|
2
|
+
import { A as Api } from './Api-DI0-itk3.js';
|
|
3
3
|
import './ComponentError-Cjcsf8ku.js';
|
|
4
|
-
import './Plaid-
|
|
4
|
+
import './Plaid-vwPGZ5y4.js';
|
|
5
5
|
import './Pagination-CLHwhyvu.js';
|
|
6
6
|
import './Business-BcNb9bVO.js';
|
|
7
7
|
import './Dispute-BH0Xfn-F.js';
|
|
@@ -89,46 +89,4 @@ class JustifiAnalytics {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
const detectDuplicateVersion = () => {
|
|
94
|
-
if (typeof globalThis === 'undefined')
|
|
95
|
-
return;
|
|
96
|
-
const currentVersion = packageJson.version;
|
|
97
|
-
const existingVersion = globalThis[JUSTIFI_VERSION_KEY];
|
|
98
|
-
if (existingVersion && existingVersion !== currentVersion) {
|
|
99
|
-
console.error(`@justifi/webcomponents: Multiple versions detected. ` +
|
|
100
|
-
`Version ${existingVersion} was loaded first and registered all components. ` +
|
|
101
|
-
`Version ${currentVersion} is also present but its components will NOT be used. ` +
|
|
102
|
-
`To fix this, add to your package.json:\n` +
|
|
103
|
-
`"pnpm": { "overrides": { "@justifi/webcomponents": "${currentVersion}" } }`);
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
globalThis[JUSTIFI_VERSION_KEY] = currentVersion;
|
|
107
|
-
};
|
|
108
|
-
const latestVersion = async (packageName) => {
|
|
109
|
-
const response = await fetch('https://registry.npmjs.org/' + packageName + '/latest');
|
|
110
|
-
const json = await response.json();
|
|
111
|
-
return json.version;
|
|
112
|
-
};
|
|
113
|
-
const checkPkgVersion = async () => {
|
|
114
|
-
var _a, _b;
|
|
115
|
-
detectDuplicateVersion();
|
|
116
|
-
// Skip version check in test environments to avoid async logs after tests complete
|
|
117
|
-
if (typeof process !== 'undefined' &&
|
|
118
|
-
(((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test' || ((_b = process.env) === null || _b === void 0 ? void 0 : _b.JEST_WORKER_ID))) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const version = packageJson.version;
|
|
122
|
-
const packageName = packageJson.name;
|
|
123
|
-
const latest = await latestVersion(packageName);
|
|
124
|
-
// remove rc from version and everything that comes after -rc
|
|
125
|
-
const latestNotRC = latest.replace(/-rc.*/, '');
|
|
126
|
-
// checkif there's a major version difference
|
|
127
|
-
const versionParts = version.split('.');
|
|
128
|
-
const latestParts = latest.split('.');
|
|
129
|
-
if (versionParts[0] !== latestParts[0]) {
|
|
130
|
-
console.warn(`The package ${packageName} is out of date. The latest version is ${latestNotRC}. Please update.`);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export { JustifiAnalytics as J, checkPkgVersion as c };
|
|
92
|
+
export { JustifiAnalytics as J };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as waitForConfig, c as configState } from './config-state-kKn89dp1.js';
|
|
2
|
-
import { g as generateId } from './utils-
|
|
2
|
+
import { g as generateId } from './utils-C_8ZxLti.js';
|
|
3
3
|
|
|
4
4
|
const Api = () => {
|
|
5
5
|
async function getAuthorizationHeader(authToken) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { c as DetailItem, D as DetailSectionTitle } from './utils-
|
|
3
|
-
import { n as isEmptyObject, s as snakeCaseToHumanReadable, o as formatMediumDate } from './utils-
|
|
4
|
-
import './parts-
|
|
2
|
+
import { c as DetailItem, D as DetailSectionTitle } from './utils-DJOBwFeP.js';
|
|
3
|
+
import { n as isEmptyObject, s as snakeCaseToHumanReadable, o as formatMediumDate } from './utils-C_8ZxLti.js';
|
|
4
|
+
import './parts-D50Rx76J.js';
|
|
5
5
|
import './dinero-HXpYMWUU.js';
|
|
6
6
|
|
|
7
7
|
const AdditionalQuestionsDetails = class {
|
|
@@ -58,7 +58,7 @@ const OwnerDetails = class {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const RepresentativeDetails = class {
|
|
62
62
|
constructor(hostRef) {
|
|
63
63
|
registerInstance(this, hostRef);
|
|
64
64
|
}
|
|
@@ -70,4 +70,4 @@ const JustifiRepresentativeDetails = class {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
export { AdditionalQuestionsDetails as additional_questions_details, CoreInfoDetails as core_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details,
|
|
73
|
+
export { AdditionalQuestionsDetails as additional_questions_details, CoreInfoDetails as core_info_details, LegalAddressDetails as legal_address_details, OwnerDetails as owner_details, RepresentativeDetails as representative_details };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CV0Pyo1O.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
3
|
import { m as makeGetBusiness, b as makePatchBusiness, f as makePostBankAccount, g as makePostDocumentRecord } from './payment-provisioning-actions-CBvplwPf.js';
|
|
4
|
-
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service-
|
|
4
|
+
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service-M3YvwC-d.js';
|
|
5
5
|
import { a as additionalQuestionsSchema, c as businessCoreInfoSchemaCAN, b as businessCoreInfoSchemaUSA } from './business-additional-questions-schema-DKudYaoE.js';
|
|
6
6
|
import { F as FormController, c as create$3, a as create$6, b as create$8, d as create$7 } from './index.esm-BHdVU4hV.js';
|
|
7
7
|
import { A as AdditionalQuestions, C as CountryCode, e as CoreBusinessInfo, R as Representative, f as Address } from './Business-BcNb9bVO.js';
|
|
8
8
|
import { C as CURRENCY_MASK, P as PHONE_MASKS } from './form-input-masks-CVaOFfrI.js';
|
|
9
|
-
import { b as heading2, a2 as buttonSecondary, E as buttonLink, z as label, w as inputDisabled, am as alert } from './parts-
|
|
10
|
-
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-
|
|
9
|
+
import { b as heading2, a2 as buttonSecondary, E as buttonLink, z as label, w as inputDisabled, am as alert } from './parts-D50Rx76J.js';
|
|
10
|
+
import { P as PaymentProvisioningLoading } from './payment-provisioning-loading-BAoIyEOj.js';
|
|
11
11
|
import { b as businessServiceReceivedOptions, c as businessClassificationOptions } from './business-form-options-DRalxlqN.js';
|
|
12
12
|
import { a as BusinessFormStep, B as BusinessFormClickActions } from './event-types-XYgDHrVL.js';
|
|
13
13
|
import './config-state-kKn89dp1.js';
|
|
14
14
|
import './dinero-HXpYMWUU.js';
|
|
15
|
-
import { E as EntityDocumentType, p as EntityDocumentStorage, q as EntityDocument } from './Plaid-
|
|
15
|
+
import { E as EntityDocumentType, p as EntityDocumentStorage, q as EntityDocument } from './Plaid-vwPGZ5y4.js';
|
|
16
16
|
import './Pagination-CLHwhyvu.js';
|
|
17
17
|
import './Dispute-BH0Xfn-F.js';
|
|
18
18
|
import { A as accountNumberValidation, B as accountTypeValidation, v as identityNameValidation, C as nicknameValidation, D as bankNameValidation, E as numbersOnlyRegex, F as routingNumberValidation } from './schema-validations-v6WGlZkq.js';
|
|
19
|
-
import { B as Button } from './button-
|
|
19
|
+
import { B as Button } from './button-B-Agn8yQ.js';
|
|
20
20
|
import './event-types-CZfYo5-1.js';
|
|
21
21
|
import { c as countryLabels } from './country-config-P042rrI3.js';
|
|
22
22
|
import { d as identitySchemaByCountry, e as addressSchemaByCountry } from './business-identity-schema-CFhSc0cA.js';
|
|
23
|
-
import { A as Api } from './Api-
|
|
23
|
+
import { A as Api } from './Api-DI0-itk3.js';
|
|
24
24
|
import './utils-BeQLScSm.js';
|
|
25
25
|
import './_commonjsHelpers-BFTU3MAI.js';
|
|
26
|
-
import './skeleton-
|
|
26
|
+
import './skeleton-DV6yJalo.js';
|
|
27
27
|
import './index-cDVGjRkU.js';
|
|
28
|
-
import './utils-
|
|
28
|
+
import './utils-C_8ZxLti.js';
|
|
29
29
|
|
|
30
30
|
class BankAccount {
|
|
31
31
|
constructor(data) {
|
|
@@ -934,7 +934,7 @@ const BusinessOwnersFormStep = class {
|
|
|
934
934
|
const isRepresentativeOwner = this.ownersPayload.some(owner => owner.id === this.representative.id);
|
|
935
935
|
const shouldShowRepresentativeIsOwner = this.representativeIsOwner === null && !isRepresentativeOwner;
|
|
936
936
|
return (h(Host, null, h("div", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Owners"), h("form-control-tooltip", { helpText: "For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director." })), h("hr", { class: "mt-2" }), shouldShowRepresentativeIsOwner && (h("div", { class: `alert alert-warning mb-3`, part: alert }, h("div", { class: "card-body" }, h("div", { class: "d-flex align-items-center mb-3" }, h("strong", null, "Is the representative of this business also an owner?")), h("div", { class: "d-flex gap-2" }, h(Button, { variant: 'primary', onClick: () => this.handleRepresentativeIsOwnerChange(true) }, "Yes"), h(Button, { variant: 'secondary', onClick: () => this.handleRepresentativeIsOwnerChange(false) }, "No"))))), h("div", { class: 'row gy-3' }, this.ownersPayload.map((owner) => {
|
|
937
|
-
return (h("
|
|
937
|
+
return (h("owner-form", { key: owner.id, authToken: this.authToken, businessId: this.businessId, ownerId: owner.id, removeOwner: this.removeOwnerForm, newFormOpen: this.newFormOpen, ownersLength: this.ownersPayload.length, country: this.country, allowOptionalFields: this.allowOptionalFields, ref: (ref) => this.matchRef(ref, owner.id) }));
|
|
938
938
|
})), h("div", { class: 'd-flex justify-content-start' }, h("div", { class: 'gap-2' }, h(Button, { variant: 'primary', onClick: () => this.addOwnerForm(true), hidden: !this.showAddOwnerButton }, "Add Owner"))))));
|
|
939
939
|
}
|
|
940
940
|
static get watchers() { return {
|
|
@@ -1061,7 +1061,7 @@ const BusinessRepresentativeFormStep = class {
|
|
|
1061
1061
|
if (!this.formController || this.isLoading) {
|
|
1062
1062
|
return (h(PaymentProvisioningLoading, null));
|
|
1063
1063
|
}
|
|
1064
|
-
return (h("
|
|
1064
|
+
return (h("business-representative-form-inputs", { representativeDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController, country: this.country }));
|
|
1065
1065
|
}
|
|
1066
1066
|
static get watchers() { return {
|
|
1067
1067
|
"authToken": ["propChanged"],
|
|
@@ -1189,7 +1189,7 @@ const BusinessTermsConditionsFormStep = class {
|
|
|
1189
1189
|
return (h("a", { href: "https://justifi.tech/merchant-agreement/", target: "_blank", rel: "noopener noreferrer" }, "merchant agreement"));
|
|
1190
1190
|
}
|
|
1191
1191
|
render() {
|
|
1192
|
-
return (h("form", { key: '
|
|
1192
|
+
return (h("form", { key: '325cb8ddd72c0fcd8ea14eae5c8abff286c57b90' }, h("fieldset", { key: '4376945ecca9dc5f462099b8a7b893b84d72ee28' }, h("legend", { key: 'd2c83a8d552091c1e546fe663be6674fb5cc623a', part: heading2 }, "Terms and Conditions"), h("hr", { key: '608620cec864f21eed1c0263236e160171543881' }), h("div", { key: '58942ff2e4a620695485b9e80443c9cbfae74186' }, h("p", { key: '487df1718bb9a5dfc486c8589d75c627d325edd8' }, "Please read and accept the ", this.merchantAgreementLink, " to submit your provisioning request.")), h("br", { key: 'ee3cc0ccedd353030abc05d80b20d7ae5b3f327c' }), h("div", { key: 'd9ff9f7aeb18da7253f6ed1705ac0ebd4aebbc15', class: "row-gy-3" }, h("div", { key: 'f9e9fd3bdc0b74872fa58940af54952a138cc988', class: "col-12" }, h("form-control-checkbox", { key: '63cdad138445ac5b5fa4beb678475048c5b8c589', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText, checked: this.acceptedTerms }))))));
|
|
1193
1193
|
}
|
|
1194
1194
|
};
|
|
1195
1195
|
|
|
@@ -1302,7 +1302,7 @@ const LegalAddressFormStep = class {
|
|
|
1302
1302
|
if (this.isLoading) {
|
|
1303
1303
|
return h(PaymentProvisioningLoading, null);
|
|
1304
1304
|
}
|
|
1305
|
-
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("
|
|
1305
|
+
return (h("form", null, h("fieldset", null, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Legal Address of your Business"), h("form-control-tooltip", { helpText: "No PO Boxes." })), h("hr", { class: "mt-2" }), h("form-address-fields", { country: this.country, errors: this.errors, defaultValues: legalAddressDefaultValue, inputHandler: this.inputHandler }))));
|
|
1306
1306
|
}
|
|
1307
1307
|
static get watchers() { return {
|
|
1308
1308
|
"authToken": ["propChanged"],
|
|
@@ -1324,7 +1324,7 @@ const PaymentProvisioningFormButtons = class {
|
|
|
1324
1324
|
return this.currentStep === this.totalSteps;
|
|
1325
1325
|
}
|
|
1326
1326
|
render() {
|
|
1327
|
-
return (h("div", { key: '
|
|
1327
|
+
return (h("div", { key: '84faa27ba9737bc546ed0ff0d169cea53e3599f3', class: 'd-flex gap-2' }, h(Button, { key: '615c83981ca574001fc7219611f512486415cbd8', variant: "secondary", type: "button", onClick: () => this.previousStepButtonOnClick(), disabled: this.formDisabled, hidden: !this.showPreviousStepButton }, "Previous"), h(Button, { key: 'a75dc66a0f067d9153c69cc9756291ef5ef34748', variant: "primary", type: "button", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showNextStepButton }, "Next"), h(Button, { key: '9aa26b8592823ecce24aae8bfbf230b6deab5336', variant: "primary", type: "submit", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showSubmitButton }, "Submit")));
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
1330
|
|
|
@@ -1334,21 +1334,21 @@ const PaymentProvisioningFormSteps = class {
|
|
|
1334
1334
|
this.allowOptionalFields = false;
|
|
1335
1335
|
this.country = CountryCode.USA;
|
|
1336
1336
|
this.componentStepMapping = {
|
|
1337
|
-
0: () => h("
|
|
1338
|
-
1: () => h("
|
|
1339
|
-
2: () => h("
|
|
1340
|
-
3: () => h("
|
|
1341
|
-
4: () => h("
|
|
1342
|
-
5: () => h("
|
|
1343
|
-
6: () => h("
|
|
1337
|
+
0: () => h("business-core-info-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[0] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
|
|
1338
|
+
1: () => h("legal-address-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[1] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
|
|
1339
|
+
2: () => h("additional-questions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[2] = el, allowOptionalFields: this.allowOptionalFields }),
|
|
1340
|
+
3: () => h("business-representative-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[3] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
|
|
1341
|
+
4: () => h("business-owners-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[4] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
|
|
1342
|
+
5: () => h("business-bank-account-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[5] = el, allowOptionalFields: this.allowOptionalFields, country: this.country }),
|
|
1343
|
+
6: () => h("business-terms-conditions-form-step", { businessId: this.businessId, authToken: this.authToken, ref: (el) => this.refs[6] = el, onFormLoading: this.handleFormLoading, allowOptionalFields: this.allowOptionalFields }),
|
|
1344
1344
|
};
|
|
1345
1345
|
}
|
|
1346
1346
|
get currentStepComponent() {
|
|
1347
1347
|
return this.componentStepMapping[this.currentStep]();
|
|
1348
1348
|
}
|
|
1349
1349
|
render() {
|
|
1350
|
-
return (h("div", { key: '
|
|
1350
|
+
return (h("div", { key: '0dc1675cbaf760028c6631eb64192c61361fdec9', class: 'col-12 mb-4' }, this.currentStepComponent));
|
|
1351
1351
|
}
|
|
1352
1352
|
};
|
|
1353
1353
|
|
|
1354
|
-
export { AdditionalQuestionsFormStep as
|
|
1354
|
+
export { AdditionalQuestionsFormStep as additional_questions_form_step, BusinessBankAccountFormStep as business_bank_account_form_step, BusinessCoreInfoFormStep as business_core_info_form_step, BusinessOwnersFormStep as business_owners_form_step, BusinessRepresentativeFormStep as business_representative_form_step, BusinessTermsConditionsFormStep as business_terms_conditions_form_step, LegalAddressFormStep as legal_address_form_step, PaymentProvisioningFormButtons as payment_provisioning_form_buttons, PaymentProvisioningFormSteps as payment_provisioning_form_steps };
|
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { al as alertDanger, b as heading2, z as label, w as inputDisabled, a2 as buttonSecondary } from './parts-D3V9AE6o.js';
|
|
3
2
|
import { b as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as businessClassificationOptions } from './business-form-options-DRalxlqN.js';
|
|
4
3
|
import { C as CURRENCY_MASK, I as IDENTITY_MASKS, P as PHONE_MASKS } from './form-input-masks-CVaOFfrI.js';
|
|
4
|
+
import { b as heading2, z as label, w as inputDisabled, a2 as buttonSecondary, ak as alertDanger } from './parts-D50Rx76J.js';
|
|
5
5
|
import { e as CoreBusinessInfo, d as deconstructDate } from './Business-BcNb9bVO.js';
|
|
6
6
|
import { c as countryLabels } from './country-config-P042rrI3.js';
|
|
7
7
|
|
|
8
|
-
const FormAlert = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
if (!this.text) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
if (this.hideAlert) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
return (h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert', part: alertDanger }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" }, h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })), h("div", null, this.text)));
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
8
|
const AdditionalQuestions = class {
|
|
24
9
|
constructor(hostRef) {
|
|
25
10
|
registerInstance(this, hostRef);
|
|
@@ -37,7 +22,7 @@ const AdditionalQuestions = class {
|
|
|
37
22
|
render() {
|
|
38
23
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
39
24
|
const additionalQuestionsDefaultValue = this.formController.getInitialValues().additional_questions;
|
|
40
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '2cef96e9fd7d585353deebd2149ccaa6f70601f3' }, h("fieldset", { key: '324401c967c047997b4b46c4835a2e9c28d200c3' }, h("legend", { key: '0958dcb308db0032292f54736eeeaeaf562a4dd3', part: heading2 }, "Additional Questions"), h("div", { key: '7eb6cf2912a726647937120600400f4cb70babf1', class: "row gy-3" }, h("div", { key: 'fee24c156b5e97d013520353813ef894e9295251', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: 'c72df3ba128cf84444febec88c402934442023a7', name: "business_revenue", label: "What is the business' estimated annual revenue from its primary business activities?", inputHandler: this.inputHandler, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.additional_questions) === null || _b === void 0 ? void 0 : _b.business_revenue, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_revenue, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: 'be1f0d42c19d479a56da7781316e659245a265c3', class: "col-12 col-md-6" }, h("form-control-monetary-provisioning", { key: '5a3df350a2bbb31286b4bbfadfb0067099135449', name: "business_payment_volume", label: "What is the business' annual credit card & ACH volume anticipated to process?", inputHandler: this.inputHandler, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.additional_questions) === null || _d === void 0 ? void 0 : _d.business_payment_volume, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_payment_volume, maskOptions: CURRENCY_MASK.WHOLE })), h("div", { key: '5b98b7842f1adad2d57c23c274c2ee5b70b1a5c4', class: "col-12" }, h("form-control-select", { key: '116133084185496cf6e22098b5bb1245132e361d', name: 'business_when_service_received', label: 'On average, how long after paying will your customers typically receive their goods or services?', inputHandler: this.inputHandler, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.additional_questions) === null || _f === void 0 ? void 0 : _f.business_when_service_received, options: businessServiceReceivedOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_when_service_received })), h("div", { key: '6b5849afeeab55f63cb3f084b9bfbfa0ce686df1', class: "col-12" }, h("form-control-select", { key: '523e2e69d6d637905efb74447785cb6e20d3d658', name: 'business_recurring_payments', label: 'Does your business offer recurring payments?', inputHandler: this.inputHandler, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.additional_questions) === null || _h === void 0 ? void 0 : _h.business_recurring_payments, options: recurringPaymentsOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments })), h("div", { key: '4b5e4167371d6d1e6f6ae764b28789741bcac145', class: "col-12" }, h("form-control-text", { key: '6e86c7d28ca2980f80c076e2359430773c47b575', name: 'business_recurring_payments_percentage', label: 'What percent of revenue is generated from each recurring payment type offered?', inputHandler: this.inputHandler, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.additional_questions) === null || _k === void 0 ? void 0 : _k.business_recurring_payments_percentage, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_recurring_payments_percentage })), h("div", { key: '55f01cf14c9e3d988672b494d9b3a50bf8d83869', class: "col-12" }, h("form-control-select", { key: 'c05d4e0ff64d61ad276e05daa86a4c574dfabfd5', name: 'business_seasonal', label: 'Is this business seasonal?', inputHandler: this.inputHandler, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.additional_questions) === null || _m === void 0 ? void 0 : _m.business_seasonal, options: seasonalBusinessOptions, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_seasonal })), h("div", { key: 'b34e0e1eecca9b43141357e0973cae5d61dc228a', class: "col-12" }, h("form-control-text", { key: '3b097d06b301c6075f0f9706f1ccca3ae504ce3c', name: 'business_other_payment_details', label: 'Is there anything else you would like us to know about how your customers pay the business?', inputHandler: this.inputHandler, errorText: (_p = (_o = this.errors) === null || _o === void 0 ? void 0 : _o.additional_questions) === null || _p === void 0 ? void 0 : _p.business_other_payment_details, defaultValue: additionalQuestionsDefaultValue === null || additionalQuestionsDefaultValue === void 0 ? void 0 : additionalQuestionsDefaultValue.business_other_payment_details }))))));
|
|
41
26
|
}
|
|
42
27
|
};
|
|
43
28
|
|
|
@@ -61,10 +46,10 @@ const BusinessCoreInfo = class {
|
|
|
61
46
|
render() {
|
|
62
47
|
var _a, _b;
|
|
63
48
|
const coreInfoDefaultValue = this.formController.getInitialValues();
|
|
64
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'def39bb2d2fe2a47f064996ce20bc60fd490dc25' }, h("fieldset", { key: '64bd49c1a6be4193ffb7aae9e97c4b3e9a15f359' }, h("legend", { key: 'b11b4b1ff667d0367078c8af716ed99bb937809c', part: heading2 }, "General Info"), h("div", { key: '0da76a2b84b20da143a3071caef531c41cd81a3f', class: "row gy-3" }, h("div", { key: 'be1fa57c9efc822fe1c88360414dfab08ecdc60e', class: "col-12" }, h("form-control-text", { key: '5b044ec875cac8d7576c7b060bc262e513a6d2b1', name: "legal_name", label: "Legal Name", defaultValue: coreInfoDefaultValue.legal_name, errorText: this.errors.legal_name, inputHandler: this.inputHandler })), h("div", { key: '00322e05fad4bdf71780e573adf5b7d1d0d85b25', class: "col-12" }, h("form-control-text", { key: '36608a32b2a9ec194785c7f32b92b40f136af6b2', name: "doing_business_as", label: "Doing Business As (DBA)", defaultValue: coreInfoDefaultValue.doing_business_as, errorText: this.errors.doing_business_as, inputHandler: this.inputHandler })), h("div", { key: '90ccab857bb042c9d6eba0a9dcbcf72996a7da69', class: "col-12 col-md-8" }, h("form-control-select", { key: '3cf4ea374ae74005214684b20de6e3cd62337134', name: "classification", label: "Business Classification", options: businessClassificationOptions, defaultValue: coreInfoDefaultValue.classification, errorText: this.errors.classification, inputHandler: this.inputHandler })), h("div", { key: 'b4c0330b07221e9ff399cd360d81c0b0c6b8adad', class: "col-12 col-md-4" }, h("form-control-date", { key: 'ae27cf1fc8f20b134e754f2612e945e0bcf85737', name: "date_of_incorporation", label: "Date of Incorporation", defaultValue: coreInfoDefaultValue.date_of_incorporation, errorText: this.errors.date_of_incorporation, inputHandler: this.inputHandler })), h("div", { key: '5f6c82d761dd44631fae1e61f9d73e9db84535dc', class: "col-12 col-md-6" }, h("form-control-text", { key: 'ba6006564085b2634d6b438b72eca1bd2a344556', name: "industry", label: "Industry", defaultValue: coreInfoDefaultValue.industry, errorText: this.errors.industry, inputHandler: this.inputHandler })), h("div", { key: '1bbd58d1cbfaf676a5a9d4f188d676c38d10303c', class: "col-12 col-md-6" }, (!((_a = this.coreInfo) === null || _a === void 0 ? void 0 : _a.tax_id_last4) || this.isEditingTaxId) ? (h("form-control-number-masked", { name: "tax_id", label: countryLabels[this.country].taxIdLabel, defaultValue: this.isEditingTaxId ? '' : coreInfoDefaultValue.tax_id, errorText: this.errors.tax_id, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].taxIdHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, countryLabels[this.country].taxIdLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.coreInfo) === null || _b === void 0 ? void 0 : _b.tax_id_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
|
|
65
50
|
this.isEditingTaxId = true;
|
|
66
51
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { tax_id: '' }));
|
|
67
|
-
} }, "Change"))))), h("div", { key: '
|
|
52
|
+
} }, "Change"))))), h("div", { key: 'c2759307684d50d8a7176b2c5c774f5f99016843', class: "col-12" }, h("form-control-text", { key: '96d3027c8db2dcd655c611201353948805fa3223', name: "website_url", label: "Website URL", defaultValue: coreInfoDefaultValue.website_url, errorText: this.errors.website_url, inputHandler: this.inputHandler })), h("div", { key: '8918f247bf9cb2bfe6cd24d421be2ffd83bb08e8', class: "col-12 col-md-6" }, h("form-control-text", { key: 'da695eb10f15ff7ed08a5865a751cc467cfbe3a2', name: "email", label: "Email Address", defaultValue: coreInfoDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '0e6b9149f4fca4d55b12d96d3cd9b928beb34bd3', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'd127281e989bb4d9140109b3bc46f1fad80feba4', name: "phone", label: "Phone Number", defaultValue: coreInfoDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US }))))));
|
|
68
53
|
}
|
|
69
54
|
};
|
|
70
55
|
|
|
@@ -98,11 +83,26 @@ const BusinessRepresentative = class {
|
|
|
98
83
|
render() {
|
|
99
84
|
var _a, _b;
|
|
100
85
|
const representativeDefaultValue = this.formController.getInitialValues().representative;
|
|
101
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: 'cab8eb5ba333109849bb22f32318c06a48972237' }, h("fieldset", { key: '5a6578447e4c737e5726198b8bac1ba0dc2e45a3' }, h("legend", { key: 'ebad85dfdeed325c15a56885bbb5a529c4ebdb99', part: heading2 }, "Representative"), h("div", { key: 'dcebe5124256a171b938212ff9aa3764351c05ba', class: "row gy-3" }, h("div", { key: '9493cf073abde249b8e6d2f61a6a1d9ad3b7d3b8', class: "col-12 col-md-8" }, h("form-control-text", { key: 'fbf15c78b4c88b86de111a19b87512be42574d44', name: "name", label: "Full Name", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '94a4c79c5267de135403b9fd18b843d69d427cbb', class: "col-12 col-md-4" }, h("form-control-text", { key: '5793dd89937f0b898bfd867338ace5da72df5f26', name: "title", label: "Title", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '7eff586ef81721269c57b2473f75421f086d42f7', class: "col-12 col-md-6" }, h("form-control-text", { key: '72738008970cb6905be7e69d66ae2e0967796187', name: "email", label: "Email Address", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '24eeedf96f6a378fa084f5ac48028e0ec3ed32d4', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: '50dc535cba2d9f1fc9b1b360cd6d38492f699954', name: "phone", label: "Phone Number", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '5a87f6f73fee87ea9712483b5ca8328566e1fcd4', class: "col-12 col-md-4" }, h("form-control-date", { key: '2cd3ea10d7e69b78985af179d50b7f628457b2c7', name: "dob_full", label: "Birth Date", defaultValue: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: this.onDateOfBirthUpdate })), h("div", { key: '591c964f0629fb4da0bad605f54f652d6fe67cd7', class: "col-12 col-md-8" }, (!((_a = this.representative) === null || _a === void 0 ? void 0 : _a.ssn_last4) || this.isEditingIdentification) ? (h("form-control-number-masked", { name: "identification_number", label: this.identificationNumberLabel, defaultValue: this.isEditingIdentification ? '' : representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: IDENTITY_MASKS[this.country], helpText: countryLabels[this.country].identityHelpText })) : (h("div", null, h("label", { class: "form-label", part: label }, this.identificationNumberLabel), h("div", { class: "input-group mb-3" }, h("input", { type: "text", class: "form-control", part: inputDisabled, value: `****${(_b = this.representative) === null || _b === void 0 ? void 0 : _b.ssn_last4}`, disabled: true }), h("button", { class: "btn btn-secondary", type: "button", part: buttonSecondary, onClick: () => {
|
|
102
87
|
this.isEditingIdentification = true;
|
|
103
88
|
// Clear last4 and current value to force validation
|
|
104
89
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { representative: Object.assign(Object.assign({}, this.formController.values.getValue().representative), { ssn_last4: null, identification_number: '' }) }));
|
|
105
|
-
} }, "Change"))))), h("div", { key: '
|
|
90
|
+
} }, "Change"))))), h("div", { key: '9fe5c36d102c5870f91c24c2e0efc22948190468', class: "col-12" }, h("identity-address-form", { key: '42a7949f31ae3d3d0f0b01db13ecb6271486e62f', errors: this.errors.address, defaultValues: representativeDefaultValue === null || representativeDefaultValue === void 0 ? void 0 : representativeDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate, country: this.country }))))));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const FormAlert = class {
|
|
95
|
+
constructor(hostRef) {
|
|
96
|
+
registerInstance(this, hostRef);
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
if (!this.text) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
if (this.hideAlert) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return (h("div", { class: 'alert alert-danger d-flex align-items-center', role: 'alert', part: alertDanger }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "currentColor", class: "bi bi-exclamation-triangle-fill flex-shrink-0 me-2", viewBox: "0 0 16 16", role: "img", "aria-label": "Warning:" }, h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" })), h("div", null, this.text)));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
|
|
@@ -122,8 +122,8 @@ const LegalAddressForm = class {
|
|
|
122
122
|
render() {
|
|
123
123
|
var _a;
|
|
124
124
|
const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
|
|
125
|
-
return (h(Host, { key: '
|
|
125
|
+
return (h(Host, { key: '56c938599697c9e40658de6fd52699ccfd306232' }, h("fieldset", { key: '7e77d120698e29ce040cce256e37745f53fac795' }, h("legend", { key: 'e4a4e23744eb5679d0797bb83970067709a0010d', part: heading2 }, "Business Legal Address"), h("form-address-fields", { key: '0703605fd1e5143547865bc19d1b0cdbe34a41bc', country: this.country, errors: (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address, defaultValues: legalAddressDefaultValue, inputHandler: this.inputHandler }))));
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
-
export {
|
|
129
|
+
export { AdditionalQuestions as additional_questions, BusinessCoreInfo as business_core_info, BusinessRepresentative as business_representative, FormAlert as form_alert, LegalAddressForm as legal_address_form };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-CV0Pyo1O.js';
|
|
2
|
-
import { d as badgeDark, e as badgeLight, g as badgeInfo, i as badgeWarning, j as badgeDanger, k as badgeSuccess, m as badgeSecondary, n as badgePrimary, o as badge } from './parts-
|
|
2
|
+
import { d as badgeDark, e as badgeLight, g as badgeInfo, i as badgeWarning, j as badgeDanger, k as badgeSuccess, m as badgeSecondary, n as badgePrimary, o as badge } from './parts-D50Rx76J.js';
|
|
3
3
|
|
|
4
4
|
var BadgeVariant;
|
|
5
5
|
(function (BadgeVariant) {
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CV0Pyo1O.js';
|
|
2
|
+
import { c as create$3, F as FormController } from './index.esm-BHdVU4hV.js';
|
|
3
|
+
import { y as postalValidation, z as stateValidation, h as cityValidation, l as lineTwoValidation, j as lineOneValidation, v as identityNameValidation } from './schema-validations-v6WGlZkq.js';
|
|
4
|
+
import { al as billingForm } from './parts-D50Rx76J.js';
|
|
5
|
+
import { c as checkoutStore, o as onChange } from './checkout.store-C1TdhFf6.js';
|
|
6
|
+
import { P as PAYMENT_METHODS } from './index-DkoufM1t.js';
|
|
7
|
+
import { H as Header3 } from './header-3-E533c0A3.js';
|
|
8
|
+
import './event-types-CZfYo5-1.js';
|
|
9
|
+
import { S as StateOptions } from './Business-BcNb9bVO.js';
|
|
10
|
+
import './_commonjsHelpers-BFTU3MAI.js';
|
|
11
|
+
import './country-config-P042rrI3.js';
|
|
12
|
+
import './business-form-options-DRalxlqN.js';
|
|
13
|
+
import './index-cDVGjRkU.js';
|
|
14
|
+
|
|
15
|
+
const fullBillingSchema = () => create$3({
|
|
16
|
+
name: identityNameValidation.required('Enter full name'),
|
|
17
|
+
address_line1: lineOneValidation.required('Enter street address'),
|
|
18
|
+
address_line2: lineTwoValidation.nullable(),
|
|
19
|
+
address_city: cityValidation.required('Enter city'),
|
|
20
|
+
address_state: stateValidation.required('Select state'),
|
|
21
|
+
address_postal_code: postalValidation.required('Enter postal code'),
|
|
22
|
+
});
|
|
23
|
+
const postalOnlySchema = () => create$3({
|
|
24
|
+
name: identityNameValidation.nullable(),
|
|
25
|
+
address_line1: lineOneValidation.nullable(),
|
|
26
|
+
address_line2: lineTwoValidation.nullable(),
|
|
27
|
+
address_city: cityValidation.nullable(),
|
|
28
|
+
address_state: stateValidation.nullable(),
|
|
29
|
+
address_postal_code: postalValidation.required('Enter postal code'),
|
|
30
|
+
});
|
|
31
|
+
const nameOnlySchema = () => create$3({
|
|
32
|
+
name: identityNameValidation.required('Enter full name'),
|
|
33
|
+
address_line1: lineOneValidation.nullable(),
|
|
34
|
+
address_line2: lineTwoValidation.nullable(),
|
|
35
|
+
address_city: cityValidation.nullable(),
|
|
36
|
+
address_state: stateValidation.nullable(),
|
|
37
|
+
address_postal_code: postalValidation.nullable(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const BankAccountBillingFormSimple = class {
|
|
41
|
+
constructor(hostRef) {
|
|
42
|
+
registerInstance(this, hostRef);
|
|
43
|
+
this.errors = {};
|
|
44
|
+
this.inputHandler = (name, value) => {
|
|
45
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
this.formController = new FormController(nameOnlySchema());
|
|
50
|
+
const fields = checkoutStore.billingFormFields;
|
|
51
|
+
if (fields && Object.keys(fields).some((k) => fields[k])) {
|
|
52
|
+
this.formController.setInitialValues(fields);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
componentDidLoad() {
|
|
56
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
57
|
+
this.formController.errors.subscribe(errors => {
|
|
58
|
+
this.errors = Object.assign({}, errors);
|
|
59
|
+
});
|
|
60
|
+
this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
|
|
61
|
+
this.formController.setInitialValues(newValue);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
disconnectedCallback() {
|
|
65
|
+
var _a;
|
|
66
|
+
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
67
|
+
}
|
|
68
|
+
async getValues() {
|
|
69
|
+
return this.formController.values.getValue();
|
|
70
|
+
}
|
|
71
|
+
async validate() {
|
|
72
|
+
const isValid = await this.formController.validate();
|
|
73
|
+
const errors = this.formController.errors.getValue();
|
|
74
|
+
return { isValid, errors };
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
78
|
+
return (h("div", { key: 'e8c53c98793d0296d69799c8449d762084d9859b', part: billingForm, class: "mt-4" }, h("form", { key: '83e59bb7bdcf4a3e0b4ed4320358796eae91726f' }, h("fieldset", { key: 'd92a4a02c531a08a270562701bc71440add5b545' }, this.legend && (h("legend", { key: '74ac1eb2c6fc629323f31be515e3aa204ae302a2' }, this.legend)), h("div", { key: '161888eb0680a4c9d6280440961f2926b08ac1ed', class: "row gy-3" }, h("div", { key: '9f6c899b7a4ff25a5eba5278bffe7d4e86eb00df', class: "col-12" }, h("form-control-text", { key: '74a9958fb74de730067fe4d87dfac33c12522169', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })))))));
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const BillingForm = class {
|
|
83
|
+
constructor(hostRef) {
|
|
84
|
+
registerInstance(this, hostRef);
|
|
85
|
+
}
|
|
86
|
+
get showSimpleCardBillingForm() {
|
|
87
|
+
return this.paymentMethodType === PAYMENT_METHODS.NEW_CARD && this.hideCardBillingForm;
|
|
88
|
+
}
|
|
89
|
+
get showSimpleBankAccountBillingForm() {
|
|
90
|
+
return this.paymentMethodType === PAYMENT_METHODS.NEW_BANK_ACCOUNT && this.hideBankAccountBillingForm;
|
|
91
|
+
}
|
|
92
|
+
async getValues() {
|
|
93
|
+
var _a;
|
|
94
|
+
return (_a = this.selectedFormRef) === null || _a === void 0 ? void 0 : _a.getValues();
|
|
95
|
+
}
|
|
96
|
+
async validate() {
|
|
97
|
+
var _a;
|
|
98
|
+
return (_a = this.selectedFormRef) === null || _a === void 0 ? void 0 : _a.validate();
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
if (this.showSimpleBankAccountBillingForm) {
|
|
102
|
+
return (h(Host, null, h("bank-account-billing-form-simple", { legend: this.legend, ref: (el) => (this.selectedFormRef = el) })));
|
|
103
|
+
}
|
|
104
|
+
if (this.showSimpleCardBillingForm) {
|
|
105
|
+
return (h(Host, null, h("card-billing-form-simple", { legend: this.legend, ref: (el) => (this.selectedFormRef = el) })));
|
|
106
|
+
}
|
|
107
|
+
return (h(Host, null, h("billing-form-full", { legend: this.legend, ref: (el) => (this.selectedFormRef = el) })));
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const BillingFormFull = class {
|
|
112
|
+
constructor(hostRef) {
|
|
113
|
+
registerInstance(this, hostRef);
|
|
114
|
+
this.errors = {};
|
|
115
|
+
this.inputHandler = (name, value) => {
|
|
116
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
componentWillLoad() {
|
|
120
|
+
this.formController = new FormController(fullBillingSchema());
|
|
121
|
+
const fields = checkoutStore.billingFormFields;
|
|
122
|
+
if (fields && Object.keys(fields).some((k) => fields[k])) {
|
|
123
|
+
this.formController.setInitialValues(fields);
|
|
124
|
+
}
|
|
125
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
126
|
+
this.formController.errors.subscribe(errors => {
|
|
127
|
+
this.errors = Object.assign({}, errors);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
componentDidLoad() {
|
|
131
|
+
this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
|
|
132
|
+
this.formController.setInitialValues(newValue);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
disconnectedCallback() {
|
|
136
|
+
var _a;
|
|
137
|
+
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
138
|
+
}
|
|
139
|
+
async getValues() {
|
|
140
|
+
return this.formController.values.getValue();
|
|
141
|
+
}
|
|
142
|
+
async validate() {
|
|
143
|
+
const isValid = await this.formController.validate();
|
|
144
|
+
const errors = this.formController.errors.getValue();
|
|
145
|
+
return { isValid, errors };
|
|
146
|
+
}
|
|
147
|
+
render() {
|
|
148
|
+
if (!this.formController) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
152
|
+
return (h("div", { part: billingForm, class: "mt-4" }, h(Header3, { text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), h("form", null, h("fieldset", null, this.legend && (h("legend", null, this.legend)), h("div", { class: "row gy-3" }, h("div", { class: "col-12" }, h("form-control-text", { name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-select", { name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { class: "col-12" }, h("form-control-text", { name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const CardBillingFormSimple = class {
|
|
157
|
+
constructor(hostRef) {
|
|
158
|
+
registerInstance(this, hostRef);
|
|
159
|
+
this.errors = {};
|
|
160
|
+
this.inputHandler = (name, value) => {
|
|
161
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
componentWillLoad() {
|
|
165
|
+
this.formController = new FormController(postalOnlySchema());
|
|
166
|
+
const fields = checkoutStore.billingFormFields;
|
|
167
|
+
if (fields && Object.keys(fields).some((k) => fields[k])) {
|
|
168
|
+
this.formController.setInitialValues(fields);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
componentDidLoad() {
|
|
172
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
173
|
+
this.formController.errors.subscribe(errors => {
|
|
174
|
+
this.errors = Object.assign({}, errors);
|
|
175
|
+
});
|
|
176
|
+
this.unsubscribeFromStore = onChange('billingFormFields', (newValue) => {
|
|
177
|
+
this.formController.setInitialValues(newValue);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
disconnectedCallback() {
|
|
181
|
+
var _a;
|
|
182
|
+
(_a = this.unsubscribeFromStore) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
183
|
+
}
|
|
184
|
+
async getValues() {
|
|
185
|
+
return this.formController.values.getValue();
|
|
186
|
+
}
|
|
187
|
+
async validate() {
|
|
188
|
+
const isValid = await this.formController.validate();
|
|
189
|
+
const errors = this.formController.errors.getValue();
|
|
190
|
+
return { isValid, errors };
|
|
191
|
+
}
|
|
192
|
+
render() {
|
|
193
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
194
|
+
return (h("div", { key: '41a7f26e12bfa3da4e7926d8a535218a0580be14', part: billingForm }, h("form", { key: 'b48cf148ec6d16fd8e5859dfe96a3b9fd6d3036d' }, h("fieldset", { key: '88094544642af8fadb270dfafd838d450ad88cdd' }, this.legend && (h("legend", { key: '13c19557aa4c0c127305cc54f6346eeb74d4f750' }, this.legend)), h("div", { key: 'bbcf1a622720df2d21db718eaf823e4e33155070', class: "row gy-3" }, h("div", { key: '96b9d590fd68fd4f2a54760e58c0f2bc166a832b', class: "col-12" }, h("form-control-text", { key: '57050d0274782cb2ff5f1a9b13726a8319438a36', name: 'address_postal_code', label: "Postal Code", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 7 })))))));
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export { BankAccountBillingFormSimple as bank_account_billing_form_simple, BillingForm as billing_form, BillingFormFull as billing_form_full, CardBillingFormSimple as card_billing_form_simple };
|