@justifi/webcomponents 6.5.1-rc.5 → 6.7.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/LICENSE +21 -0
- package/dist/cjs/{Api-BeSnjEuW.js → Api-QUTWjGTy.js} +1 -1
- package/dist/cjs/{Refund-Blquw3jZ.js → GooglePay-BwiJ_80p.js} +416 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-_nY1l5Rq.js → badge-Cc87HAsf.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +207 -0
- package/dist/cjs/bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/{business-additional-questions-schema-CE-z5qrr.js → business-additional-questions-schema-Y1mXnwUT.js} +1 -7
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business-identity-schema-rMMiHyPz.js → business-identity-schema-D_OO0Suf.js} +1 -1
- package/dist/cjs/{business.service-DrBmfEbR.js → business.service-q93NsTG_.js} +2 -2
- package/dist/cjs/{button-CARQPDm-.js → button-fUPGXjU_.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +5 -5
- package/dist/cjs/{check-pkg-version-T54BeR4n.js → check-pkg-version-nSgWWvdw.js} +3 -3
- package/dist/cjs/{checkout.service-BEU6CI0t.js → checkout.service-CwelwhrT.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{checkouts-table-2fOlhkc4.js → checkouts-table-BBtqxG2F.js} +3 -3
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +22 -2
- package/dist/cjs/{dispute.service-c0CZxPpe.js → dispute.service-q5ha39uN.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +7 -7
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-mhOq2Edp.js → form-control-error-text-Dg_65HGK.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-BoRpAoX6.js → form-control-help-text-tB5u1-5M.js} +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/form-control-monetary.cjs.entry.js +6 -6
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +6 -6
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +6 -25
- package/dist/cjs/{get-payment-details-D8UQRtX1.js → get-payment-details-DidIAK2i.js} +2 -2
- package/dist/cjs/{get-subaccounts-fKcKqvrx.js → get-subaccounts-BE_wcfM7.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-CBO8uDuZ.js → header-1-Bqejh9no.js} +1 -1
- package/dist/cjs/{header-3-CPWtI1t0.js → header-3-DQ649Me2.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +7 -7
- package/dist/cjs/{index-C2ITzalN.js → index-CajjbB9t.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{insurance-state-BMHITXoD.js → insurance-state-DsGnIHMM.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +28 -29
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +862 -29
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/{justifi-apple-pay_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +906 -260
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
- package/dist/cjs/justifi-checkout.cjs.entry.js +17 -18
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +26 -12
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -12
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -13
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +15 -14
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +12 -13
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +14 -13
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -9
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{justifi-owner-form_3.cjs.entry.js → owner-form-core_2.cjs.entry.js} +7 -61
- package/dist/cjs/{package-JstJdxIu.js → package-B8gOzTFM.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
- package/dist/cjs/{parts-Pb06tUMp.js → parts-BVbaniVM.js} +6 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +17 -16
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-DXbR13Kq.js → payment.service-CyHFdJ7n.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +10 -9
- package/dist/cjs/{payments-status-t4fVj8f9.js → payments-status-BP4u31jU.js} +1 -1
- package/dist/cjs/{payments-table-C6SCvqLD.js → payments-table-CWXVhECV.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-D0U6kzXJ.js → payout.service-Half-hdB.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +10 -9
- package/dist/cjs/{payouts-status-pIO9qZG6.js → payouts-status-CM5Zy-0J.js} +1 -1
- package/dist/cjs/{payouts-table-CEnUtKNR.js → payouts-table-ZLTcfkUm.js} +3 -3
- package/dist/cjs/{schema-validations-BOiGVUHM.js → schema-validations-Bf2mk2xU.js} +0 -16
- package/dist/cjs/{skeleton-BF3HGL9X.js → skeleton-B8dzxFFr.js} +1 -1
- package/dist/cjs/{spinner-BBdv3Iq1.js → spinner-jHyLNCGO.js} +1 -1
- package/dist/cjs/{table-CfBpaApw.js → table-CrtpRwGN.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{terminal-orders-table-BByfBAEK.js → terminal-orders-table-DT53anT3.js} +6 -6
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-BqXeiERV.js → terminal.service-CFt55QNO.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{terminals-table-EeeLeuDN.js → terminals-table-DahpSz98.js} +3 -3
- package/dist/cjs/{utils-Cjq3ZCad.js → utils-CMiA4X7s.js} +1 -1
- package/dist/cjs/{utils-Bab-tddY.js → utils-D4WPxuzW.js} +0 -7
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/GooglePay.js +181 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/google-pay.service.js +240 -0
- package/dist/collection/collection-manifest.json +2 -7
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -7
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -8
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -7
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -8
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +132 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-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 +335 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +133 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +186 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +129 -3
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +122 -3
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +1 -7
- package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -14
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +72 -2
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/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/modular-checkout/ModularCheckout.js +1 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +47 -8
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/google-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +609 -0
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.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 +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.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 +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +4 -3
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -5
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/google-pay-button.js +251 -0
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +3039 -3797
- package/dist/esm/{Api-DX-IWyBw.js → Api-Dln8a6No.js} +1 -1
- package/dist/esm/{Refund-BugCdfRo.js → GooglePay-NNHE-OLJ.js} +406 -2
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-Bgosx-DC.js → badge-DtrH25ss.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_8.entry.js +198 -0
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/{business-additional-questions-schema-QFJEOHF5.js → business-additional-questions-schema-woG5-pgK.js} +1 -7
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-DB_Hhjld.js → business-identity-schema-B7VTDF4j.js} +2 -2
- package/dist/esm/{business.service-pWcc3kfX.js → business.service-BrUSam2T.js} +2 -2
- package/dist/esm/{button-DBmjN7Ra.js → button-Bpf3VX8Q.js} +1 -1
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-C8hgGLFx.js → check-pkg-version-CmkUoEAo.js} +3 -3
- package/dist/esm/{checkout.service-B4xSV2-X.js → checkout.service-Bxt1qPaY.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +9 -8
- package/dist/esm/{checkouts-table-lgbZpF1o.js → checkouts-table-CB4GdlcZ.js} +3 -3
- package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +22 -3
- package/dist/esm/{dispute.service-3Kbbh1J9.js → dispute.service-DYRYxxaT.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +7 -7
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-B5LSdUXI.js → form-control-error-text-BZYykCDp.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-BK9RNOf-.js → form-control-help-text-D-p66Yxr.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_3.entry.js +6 -6
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{form-control-select_3.entry.js → form-control-select_2.entry.js} +7 -25
- package/dist/esm/{get-payment-details-CakzKvOr.js → get-payment-details-BJ1PLhJZ.js} +1 -1
- package/dist/esm/{get-subaccounts-Cw1Adtmo.js → get-subaccounts-CzGHjlUF.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-CPF3S2CC.js → header-1-WwkF5F9y.js} +1 -1
- package/dist/esm/{header-3-Cah707hu.js → header-3-C5jS39cE.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{index-DCIW8z1f.js → index-DkoufM1t.js} +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{insurance-state-DRe0g_wf.js → insurance-state-C11WKZU6.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +17 -18
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +863 -30
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/{justifi-apple-pay_7.entry.js → justifi-apple-pay_8.entry.js} +789 -144
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +5 -5
- package/dist/esm/justifi-business-details.entry.js +9 -8
- package/dist/esm/justifi-business-form.entry.js +14 -13
- package/dist/esm/justifi-checkout.entry.js +10 -11
- package/dist/esm/justifi-checkouts-list-filters.entry.js +19 -5
- package/dist/esm/justifi-checkouts-list.entry.js +12 -11
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +8 -7
- package/dist/esm/justifi-dispute-notification_3.entry.js +14 -13
- package/dist/esm/justifi-gross-payment-chart.entry.js +8 -7
- package/dist/esm/justifi-order-terminals.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +10 -9
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -7
- package/dist/esm/justifi-payment-transactions-list.entry.js +11 -10
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +12 -11
- package/dist/esm/justifi-payout-details.entry.js +9 -8
- package/dist/esm/justifi-payout-transactions-list.entry.js +11 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +13 -12
- package/dist/esm/justifi-refund-payment.entry.js +11 -10
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -10
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +10 -9
- package/dist/esm/justifi-terminals-list-filters.entry.js +5 -4
- package/dist/esm/justifi-terminals-list.entry.js +12 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{justifi-owner-form_3.entry.js → owner-form-core_2.entry.js} +8 -61
- package/dist/esm/{package-DEhd71m_.js → package-CsRppqXL.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +4 -4
- package/dist/esm/{parts-wtuY7MT2.js → parts-sA8HBfkI.js} +4 -1
- package/dist/esm/payment-details-core.entry.js +16 -15
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment.service-nExZY_sU.js → payment.service-BoGemgMw.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +10 -9
- package/dist/esm/{payments-status-Dypl6WFL.js → payments-status-CADg1cD0.js} +1 -1
- package/dist/esm/{payments-table-CK9BRZEz.js → payments-table-C6zHWwGO.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-B9-JQqU6.js → payout.service-BSG50wqN.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +10 -9
- package/dist/esm/{payouts-status-hTCBgpLW.js → payouts-status-4VDQvaYV.js} +1 -1
- package/dist/esm/{payouts-table-Dd8IDBBX.js → payouts-table-BU5XbzB9.js} +3 -3
- package/dist/esm/{schema-validations-B5sfox_4.js → schema-validations-iamDi5JD.js} +2 -15
- package/dist/esm/{skeleton-BmRZRW5K.js → skeleton-Dtt56Fl3.js} +1 -1
- package/dist/esm/{spinner-tU4D9iak.js → spinner-DikooWuI.js} +1 -1
- package/dist/esm/{table-Cjq1A6mO.js → table-1hqe6s5m.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +9 -8
- package/dist/esm/{terminal-orders-table-DsrpmD9F.js → terminal-orders-table-BsVBelxB.js} +4 -4
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-DvFiKAKV.js → terminal.service-YKfi6Mr9.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +9 -8
- package/dist/esm/{terminals-table-D9okETJr.js → terminals-table-CXJTn-0I.js} +3 -3
- package/dist/esm/{utils-CIaHqjQt.js → utils-CDaVtz_6.js} +1 -7
- package/dist/esm/{utils-BX7Rjm1M.js → utils-CgFsPVsv.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -0
- package/dist/module/ApplePay.js +121 -0
- package/dist/module/GooglePay.js +184 -0
- package/dist/module/ModularCheckout.js +1 -0
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +1 -120
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +3 -1
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +3 -3
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +107 -20
- package/dist/module/business-additional-questions-schema.js +1 -7
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +445 -33
- package/dist/module/business-core-info-form-step.js +108 -20
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-documents-on-file2.js +2 -2
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step.js +137 -23
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative-form-step.js +106 -22
- package/dist/module/business-representative.js +3 -3
- package/dist/module/business-terms-conditions-form-step.js +3 -1
- package/dist/module/business.service.js +2 -0
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +3 -3
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkout.store.js +4 -0
- package/dist/module/checkouts-list-core2.js +5 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +2 -0
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-address-fields.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-payment-details.js +2 -0
- package/dist/module/get-subaccounts.js +2 -0
- package/dist/module/google-pay.js +781 -0
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method2.js +3 -1
- package/dist/module/justifi-business-form.js +2 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +46 -40
- package/dist/module/justifi-checkouts-list-filters.js +37 -8
- package/dist/module/justifi-checkouts-list.js +3 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-google-pay.d.ts +11 -0
- package/dist/module/justifi-google-pay.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +4 -2
- package/dist/module/justifi-payment-provisioning.js +51 -85
- package/dist/module/justifi-payment-transactions-list.js +4 -2
- package/dist/module/justifi-payments-list-filters.js +4 -4
- package/dist/module/justifi-payments-list.js +3 -1
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payout-transactions-list.js +4 -2
- package/dist/module/justifi-payouts-list-filters.js +4 -4
- package/dist/module/justifi-payouts-list.js +3 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-refund-payment.js +2 -0
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +6 -4
- package/dist/module/justifi-terminal-orders-list.js +3 -1
- package/dist/module/justifi-terminals-list-filters.js +4 -2
- package/dist/module/justifi-terminals-list.js +3 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +95 -18
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/modular-checkout.js +46 -6
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +3 -3
- package/dist/module/owner-form.js +2 -2
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/parts.js +4 -1
- package/dist/module/payment-details-core2.js +11 -9
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +49 -85
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +49 -85
- package/dist/module/payment.service.js +2 -0
- package/dist/module/payments-list-core2.js +4 -2
- package/dist/module/payout-details-core2.js +4 -4
- package/dist/module/payout.service.js +2 -0
- package/dist/module/payouts-list-core2.js +4 -2
- package/dist/module/plaid.service.js +2 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/schema-validations.js +2 -15
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +4 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +2 -0
- package/dist/module/terminals-list-core2.js +5 -3
- package/dist/module/utils2.js +1 -7
- package/dist/types/api/Checkout.d.ts +5 -0
- package/dist/types/api/GooglePay.d.ts +271 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/google-pay.service.d.ts +60 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +26 -2
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +42 -2
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +25 -2
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +21 -2
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +37 -2
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +24 -2
- package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +0 -6
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -21
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -3
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +5 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +59 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
- package/dist/types/components.d.ts +194 -282
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +3 -0
- package/dist/types/ui-components/google-pay-button.d.ts +18 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-016b3e4c.entry.js +1 -0
- package/dist/webcomponents/p-04ec17bb.entry.js +1 -0
- package/dist/webcomponents/p-06cae9e2.entry.js +1 -0
- package/dist/webcomponents/p-06f81525.entry.js +1 -0
- package/dist/webcomponents/p-095cedc5.entry.js +1 -0
- package/dist/webcomponents/p-0b7c4ed5.entry.js +1 -0
- package/dist/webcomponents/p-0bb616fc.entry.js +1 -0
- package/dist/webcomponents/p-0e981c28.entry.js +1 -0
- package/dist/webcomponents/p-1575ca68.entry.js +1 -0
- package/dist/webcomponents/p-15ceeea7.entry.js +1 -0
- package/dist/webcomponents/{p-0ce046fd.entry.js → p-1a327b0e.entry.js} +1 -1
- package/dist/webcomponents/p-1e761d96.entry.js +1 -0
- package/dist/webcomponents/{p-1edec396.entry.js → p-20e85114.entry.js} +1 -1
- package/dist/webcomponents/p-368b37ad.entry.js +1 -0
- package/dist/webcomponents/p-36a0af30.entry.js +1 -0
- package/dist/webcomponents/p-3a3935a3.entry.js +1 -0
- package/dist/webcomponents/p-4d2589b2.entry.js +1 -0
- package/dist/webcomponents/{p-de35abb6.entry.js → p-50400c5e.entry.js} +1 -1
- package/dist/webcomponents/{p-fe862786.entry.js → p-511e80a4.entry.js} +1 -1
- package/dist/webcomponents/p-5996879d.entry.js +1 -0
- package/dist/webcomponents/p-5a748e49.entry.js +1 -0
- package/dist/webcomponents/p-6454626a.entry.js +1 -0
- package/dist/webcomponents/p-66713269.entry.js +1 -0
- package/dist/webcomponents/p-679b36b5.entry.js +1 -0
- package/dist/webcomponents/{p-cd10cd05.entry.js → p-725319f3.entry.js} +1 -1
- package/dist/webcomponents/p-74fea39c.entry.js +1 -0
- package/dist/webcomponents/p-77754a65.entry.js +1 -0
- package/dist/webcomponents/p-87988b4d.entry.js +1 -0
- package/dist/webcomponents/p-88a8741b.entry.js +1 -0
- package/dist/webcomponents/{p-4e23116c.entry.js → p-897b794b.entry.js} +3 -3
- package/dist/webcomponents/p-899b981b.entry.js +1 -0
- package/dist/webcomponents/p-8c4b502d.entry.js +1 -0
- package/dist/webcomponents/p-8df30672.entry.js +1 -0
- package/dist/webcomponents/p-911b3d63.entry.js +1 -0
- package/dist/webcomponents/p-97b8bf5c.entry.js +1 -0
- package/dist/webcomponents/p-9b74a642.entry.js +1 -0
- package/dist/webcomponents/p-9b8aee30.entry.js +1 -0
- package/dist/webcomponents/p-9c1aa22d.entry.js +1 -0
- package/dist/webcomponents/p-9e94c9ef.entry.js +1 -0
- package/dist/webcomponents/{p-BS7OgSQe.js → p-B09GVew-.js} +1 -1
- package/dist/webcomponents/{p-CFevTCAJ.js → p-B4xdk4mG.js} +1 -1
- package/dist/webcomponents/{p-BTzt8N0l.js → p-BMJe4lzg.js} +1 -1
- package/dist/webcomponents/{p-nrZ9yHcl.js → p-BhqSAzpT.js} +1 -1
- package/dist/webcomponents/p-BrRsgB8S.js +1 -0
- package/dist/webcomponents/{p-bolTb61p.js → p-C2Senazf.js} +1 -1
- package/dist/webcomponents/p-C9VmfRis.js +1 -0
- package/dist/webcomponents/{p-CkN7DFFn.js → p-CBbwdoSa.js} +1 -1
- package/dist/webcomponents/{p-MQxr_LMC.js → p-CCxsFwC4.js} +1 -1
- package/dist/webcomponents/p-CK_XkZku.js +1 -0
- package/dist/webcomponents/p-CQGIjIgZ.js +1 -0
- package/dist/webcomponents/{p-DkOiS6Zr.js → p-CV8xqdt6.js} +1 -1
- package/dist/webcomponents/p-CZ3F1ZAT.js +1 -0
- package/dist/webcomponents/p-CgiDds_u.js +1 -0
- package/dist/webcomponents/p-CsRppqXL.js +1 -0
- package/dist/webcomponents/p-CsgUIrv8.js +1 -0
- package/dist/webcomponents/p-D032AB34.js +1 -0
- package/dist/webcomponents/{p-KPmnq8xf.js → p-D6bKoyRc.js} +1 -1
- package/dist/webcomponents/p-DATDsXcA.js +1 -0
- package/dist/webcomponents/{p-C8QOezo8.js → p-DGGjRqDa.js} +1 -1
- package/dist/webcomponents/{p-C6wS5-M7.js → p-DISrhs4v.js} +1 -1
- package/dist/webcomponents/{p-D1WQG4I7.js → p-DOcRWTul.js} +1 -1
- package/dist/webcomponents/{p-BNqo3kt0.js → p-DUmUUj9r.js} +1 -1
- package/dist/webcomponents/p-DY_3dcgR.js +1 -0
- package/dist/webcomponents/{p-D_IJC4HG.js → p-Dit3fZpU.js} +1 -1
- package/dist/webcomponents/p-DkoufM1t.js +1 -0
- package/dist/webcomponents/{p-BCPutgAi.js → p-Dlrq1iZf.js} +1 -1
- package/dist/webcomponents/p-DmdEjScI.js +1 -0
- package/dist/webcomponents/{p-BitGlMSc.js → p-RTAZ4tdd.js} +1 -1
- package/dist/webcomponents/p-Ty7R7tsw.js +1 -0
- package/dist/webcomponents/{p-DOLBAxYf.js → p-U3nU15el.js} +1 -1
- package/dist/webcomponents/p-VRubcA-q.js +1 -0
- package/dist/webcomponents/{p-BydKIJVC.js → p-W9WWoLzT.js} +1 -1
- package/dist/webcomponents/p-a0b4c42b.entry.js +1 -0
- package/dist/webcomponents/p-aa145996.entry.js +1 -0
- package/dist/webcomponents/p-b0f0d53c.entry.js +1 -0
- package/dist/webcomponents/p-b2a0cbad.entry.js +1 -0
- package/dist/webcomponents/p-b5b49e86.entry.js +1 -0
- package/dist/webcomponents/p-c0bd4e9a.entry.js +1 -0
- package/dist/webcomponents/p-c4585b68.entry.js +1 -0
- package/dist/webcomponents/p-c920dc54.entry.js +1 -0
- package/dist/webcomponents/p-cdf1e61c.entry.js +1 -0
- package/dist/webcomponents/{p-0082f428.entry.js → p-d0c4b0ea.entry.js} +1 -1
- package/dist/webcomponents/p-d2981754.entry.js +1 -0
- package/dist/webcomponents/p-d9cdd873.entry.js +1 -0
- package/dist/webcomponents/p-e4335938.entry.js +1 -0
- package/dist/webcomponents/{p-c8f40375.entry.js → p-e805b011.entry.js} +1 -1
- package/dist/webcomponents/p-eada0422.entry.js +1 -0
- package/dist/webcomponents/p-ef04f334.entry.js +1 -0
- package/dist/webcomponents/p-f23428da.entry.js +1 -0
- package/dist/webcomponents/p-f30c939f.entry.js +1 -0
- package/dist/webcomponents/p-f5dd3fa4.entry.js +1 -0
- package/dist/webcomponents/{p-af48a6bb.entry.js → p-f99403d8.entry.js} +1 -1
- package/dist/webcomponents/p-fb644da6.entry.js +1 -0
- package/dist/webcomponents/p-fc4b27ec.entry.js +1 -0
- package/dist/webcomponents/p-fc8f55d7.entry.js +1 -0
- package/dist/webcomponents/p-fe43449c.entry.js +1 -0
- package/dist/webcomponents/p-fe73b09b.entry.js +1 -0
- package/dist/webcomponents/p-ff5981fb.entry.js +1 -0
- package/dist/webcomponents/p-giyZ3C4E.js +1 -0
- package/dist/webcomponents/p-sA8HBfkI.js +1 -0
- package/dist/webcomponents/{p-C8yN3uBj.js → p-yyedWKWX.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +17 -32
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +0 -132
- package/dist/cjs/checkout.store-BA6h-dp2.js +0 -107
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +0 -874
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +0 -34
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +0 -265
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +0 -466
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +0 -307
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +0 -380
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +0 -270
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +0 -276
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +0 -125
- package/dist/esm/checkout.store-CaS_htQd.js +0 -101
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +0 -867
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +0 -32
- package/dist/module/business-additional-questions-form-step-core.js +0 -167
- package/dist/module/business-bank-account-form-step-core.js +0 -456
- package/dist/module/business-core-info-form-step-core.js +0 -173
- package/dist/module/business-owners-form-step-core.js +0 -231
- package/dist/module/business-representative-form-step-core.js +0 -171
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +0 -11
- package/dist/module/justifi-additional-questions-form-step-core.js +0 -6
- package/dist/module/justifi-business-bank-account-form-step-core.d.ts +0 -11
- package/dist/module/justifi-business-bank-account-form-step-core.js +0 -6
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +0 -11
- package/dist/module/justifi-business-core-info-form-step-core.js +0 -6
- package/dist/module/justifi-business-owners-form-step-core.d.ts +0 -11
- package/dist/module/justifi-business-owners-form-step-core.js +0 -6
- package/dist/module/justifi-business-representative-form-step-core.d.ts +0 -11
- package/dist/module/justifi-business-representative-form-step-core.js +0 -6
- package/dist/module/justifi-legal-address-form-step-core.d.ts +0 -11
- package/dist/module/justifi-legal-address-form-step-core.js +0 -6
- package/dist/module/legal-address-form-step-core.js +0 -154
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +0 -38
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +0 -52
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +0 -40
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +0 -37
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +0 -50
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +0 -38
- package/dist/webcomponents/p-04b23547.entry.js +0 -1
- package/dist/webcomponents/p-04ed045b.entry.js +0 -1
- package/dist/webcomponents/p-1193a1ac.entry.js +0 -1
- package/dist/webcomponents/p-159d8ae7.entry.js +0 -1
- package/dist/webcomponents/p-20608f0c.entry.js +0 -1
- package/dist/webcomponents/p-266a9aee.entry.js +0 -1
- package/dist/webcomponents/p-2bafa257.entry.js +0 -1
- package/dist/webcomponents/p-30f61f44.entry.js +0 -1
- package/dist/webcomponents/p-3101565c.entry.js +0 -1
- package/dist/webcomponents/p-34aa9298.entry.js +0 -1
- package/dist/webcomponents/p-3c38cec5.entry.js +0 -1
- package/dist/webcomponents/p-3c40eefe.entry.js +0 -1
- package/dist/webcomponents/p-42c3bda4.entry.js +0 -1
- package/dist/webcomponents/p-44a94dac.entry.js +0 -1
- package/dist/webcomponents/p-48d1bc83.entry.js +0 -1
- package/dist/webcomponents/p-4dcbc0af.entry.js +0 -1
- package/dist/webcomponents/p-58ae4f9e.entry.js +0 -1
- package/dist/webcomponents/p-5a3687bf.entry.js +0 -1
- package/dist/webcomponents/p-5c8c88c6.entry.js +0 -1
- package/dist/webcomponents/p-614b0adc.entry.js +0 -1
- package/dist/webcomponents/p-7081eb35.entry.js +0 -1
- package/dist/webcomponents/p-7128920a.entry.js +0 -1
- package/dist/webcomponents/p-7218c312.entry.js +0 -1
- package/dist/webcomponents/p-73388c68.entry.js +0 -1
- package/dist/webcomponents/p-77b76007.entry.js +0 -1
- package/dist/webcomponents/p-77bd4fb0.entry.js +0 -1
- package/dist/webcomponents/p-7a3d9c24.entry.js +0 -1
- package/dist/webcomponents/p-8b6b7e20.entry.js +0 -1
- package/dist/webcomponents/p-8c07d9f0.entry.js +0 -1
- package/dist/webcomponents/p-8cfda6c1.entry.js +0 -1
- package/dist/webcomponents/p-8fcd277c.entry.js +0 -1
- package/dist/webcomponents/p-90de8098.entry.js +0 -1
- package/dist/webcomponents/p-98b8028e.entry.js +0 -1
- package/dist/webcomponents/p-9efd1bce.entry.js +0 -1
- package/dist/webcomponents/p-9fef2496.entry.js +0 -1
- package/dist/webcomponents/p-B-0a8Xqm.js +0 -1
- package/dist/webcomponents/p-B4ZUYyNh.js +0 -1
- package/dist/webcomponents/p-Bli6WznP.js +0 -1
- package/dist/webcomponents/p-BojLBYsY.js +0 -1
- package/dist/webcomponents/p-BpaE8q5f.js +0 -1
- package/dist/webcomponents/p-Bqlcv3ZV.js +0 -1
- package/dist/webcomponents/p-BuCKkdLM.js +0 -1
- package/dist/webcomponents/p-C-2kW6Al.js +0 -1
- package/dist/webcomponents/p-CPtsjcdm.js +0 -1
- package/dist/webcomponents/p-Ch9cTPyq.js +0 -1
- package/dist/webcomponents/p-DCIW8z1f.js +0 -1
- package/dist/webcomponents/p-DEhd71m_.js +0 -1
- package/dist/webcomponents/p-DU8dqq9U.js +0 -1
- package/dist/webcomponents/p-a54b8901.entry.js +0 -1
- package/dist/webcomponents/p-a655b996.entry.js +0 -1
- package/dist/webcomponents/p-a7f8cacb.entry.js +0 -1
- package/dist/webcomponents/p-a9bd4e27.entry.js +0 -1
- package/dist/webcomponents/p-aec9185f.entry.js +0 -1
- package/dist/webcomponents/p-avgjSJ1d.js +0 -1
- package/dist/webcomponents/p-b24a2971.entry.js +0 -1
- package/dist/webcomponents/p-bf8cf72d.entry.js +0 -1
- package/dist/webcomponents/p-c364c76d.entry.js +0 -1
- package/dist/webcomponents/p-c3b71a1f.entry.js +0 -1
- package/dist/webcomponents/p-c7MCfTgE.js +0 -1
- package/dist/webcomponents/p-cfd858be.entry.js +0 -1
- package/dist/webcomponents/p-d1951301.entry.js +0 -1
- package/dist/webcomponents/p-d39598e4.entry.js +0 -1
- package/dist/webcomponents/p-dc0d3484.entry.js +0 -1
- package/dist/webcomponents/p-dgG_o6wN.js +0 -1
- package/dist/webcomponents/p-e47a2592.entry.js +0 -1
- package/dist/webcomponents/p-e6507b93.entry.js +0 -1
- package/dist/webcomponents/p-eb56ba9b.entry.js +0 -1
- package/dist/webcomponents/p-ed55d333.entry.js +0 -1
- package/dist/webcomponents/p-edcb84bf.entry.js +0 -1
- package/dist/webcomponents/p-f0957fca.entry.js +0 -1
- package/dist/webcomponents/p-f0fc86ce.entry.js +0 -1
- package/dist/webcomponents/p-f223fabb.entry.js +0 -1
- package/dist/webcomponents/p-f26db2e6.entry.js +0 -1
- package/dist/webcomponents/p-fab28b02.entry.js +0 -1
- package/dist/webcomponents/p-wtuY7MT2.js +0 -1
- package/dist/webcomponents/p-zNSPsvs3.js +0 -1
- package/docs/.eslintrc.cjs +0 -17
- package/docs/changelog/index.mdx +0 -17
- package/docs/entities/businessdetails/index.mdx +0 -158
- package/docs/entities/businessform/index.mdx +0 -241
- package/docs/entities/index.mdx +0 -19
- package/docs/entities/payment-provisioning/index.mdx +0 -131
- package/docs/frameworks/angular/index.mdx +0 -112
- package/docs/frameworks/index.mdx +0 -18
- package/docs/frameworks/react/index.mdx +0 -125
- package/docs/frameworks/vue/index.mdx +0 -102
- package/docs/helpers/PartsTable.js +0 -50
- package/docs/helpers/PartsTable.ts +0 -55
- package/docs/helpers/PropsTable.js +0 -56
- package/docs/helpers/PropsTable.ts +0 -63
- package/docs/helpers/index.js +0 -4
- package/docs/helpers/index.ts +0 -3
- package/docs/helpers/version.js +0 -32
- package/docs/helpers/version.ts +0 -32
- package/docs/introduction/index.mdx +0 -125
- package/docs/merchant-tools/checkouts-list/index.mdx +0 -107
- package/docs/merchant-tools/gross-payments-chart/index.mdx +0 -81
- package/docs/merchant-tools/index.mdx +0 -25
- package/docs/merchant-tools/order-terminals/index.mdx +0 -84
- package/docs/merchant-tools/payment-details/index.mdx +0 -130
- package/docs/merchant-tools/payment-transactions-list/index.mdx +0 -85
- package/docs/merchant-tools/payments-list/index.mdx +0 -111
- package/docs/merchant-tools/payout-details/index.mdx +0 -90
- package/docs/merchant-tools/payout-transactions-list/index.mdx +0 -84
- package/docs/merchant-tools/payouts-list/index.mdx +0 -94
- package/docs/merchant-tools/terminal-orders-list/index.mdx +0 -85
- package/docs/merchant-tools/terminals-list/index.mdx +0 -93
- package/docs/modular-checkout/complete-examples/index.mdx +0 -20
- package/docs/modular-checkout/docs/index.mdx +0 -32
- package/docs/modular-checkout/example/index.mdx +0 -25
- package/docs/modular-checkout/index.mdx +0 -25
- package/docs/modular-checkout/introduction/index.mdx +0 -100
- package/docs/modular-checkout/sub-components/apple-pay.mdx +0 -96
- package/docs/modular-checkout/sub-components/bank-account-form.mdx +0 -162
- package/docs/modular-checkout/sub-components/card-form.mdx +0 -177
- package/docs/modular-checkout/sub-components/index.mdx +0 -23
- package/docs/modular-checkout/sub-components/payment-method-options.mdx +0 -85
- package/docs/modular-checkout/sub-components/plaid-payment-method.mdx +0 -175
- package/docs/modular-checkout/sub-components/saved-payment-methods.mdx +0 -177
- package/docs/modular-checkout/sub-components/season-interruption-insurance.mdx +0 -219
- package/docs/modular-checkout/sub-components/sezzle-payment-method.mdx +0 -183
- package/docs/modular-checkout/sub-components/summary.mdx +0 -107
- package/docs/payment-facilitation/dispute-management/index.mdx +0 -98
- package/docs/payment-facilitation/index.mdx +0 -21
- package/docs/payment-facilitation/refund-payment/index.mdx +0 -229
- package/docs/payment-facilitation/tokenize-payment-method/index.mdx +0 -361
- package/docs/payment-facilitation/unified-fintech-checkout/342/204/242/index.mdx +0 -164
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as s,c as e}from"./p-DwYM91AU.js";import{a as i,c as r,b as o}from"./p-dgG_o6wN.js";import{F as n,c as a,a as h,b as l}from"./p-DiJD6Iqx.js";import{A as c,C as d,e as u,R as m,f as p}from"./p-B5rtFhtR.js";import{C as f,P as b}from"./p-CVaOFfrI.js";import{G as v,l as y,U as g,_}from"./p-wtuY7MT2.js";import{S as w}from"./p-c7MCfTgE.js";import"./p-CZfYo5-1.js";import{b as j,r as x,s as O,c as k}from"./p-CPpUGsw5.js";import{a as S,B as C}from"./p-XYgDHrVL.js";import{E as T,l as E,m as D}from"./p-BpaE8q5f.js";import{C as L,D as H,y as B,E as P,F as V,G as A,H as W}from"./p-avgjSJ1d.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as I,a as F}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{c as U}from"./p-DfKxeSrC.js";import{B as q}from"./p-Bqlcv3ZV.js";import{d as Y,e as G}from"./p-D1WQG4I7.js";import"./p-BFTU3MAI.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";class R{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.institution_number=t.institution_number,this.transit_number=t.transit_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const M=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"25%"})),t("div",{class:"col-12"},t(w,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(w,{width:"50%"}),t(w,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(w,{width:"65%"}),t(w,{width:"35%"}))),N=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(w,{width:"40%",height:"40px"})),t(M,null),t(M,null),t(M,null)),X=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new c(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new c(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new n(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const h=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==h?void 0:h.business_revenue,maskOptions:f.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==h?void 0:h.business_payment_volume,maskOptions:f.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:j,defaultValue:null==h?void 0:h.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:x,defaultValue:null==h?void 0:h.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==h?void 0:h.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:O,defaultValue:null==h?void 0:h.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==h?void 0:h.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},J=(t,s)=>t.some((t=>t.document_type===s)),Q=t=>t?{bank_name:V.nullable(),nickname:P.nullable(),account_owner_name:B.nullable(),account_type:H.nullable(),account_number:L.nullable()}:{bank_name:V.required("Enter bank name"),nickname:P.required("Enter nickname"),account_owner_name:B.required("Enter account owner name"),account_type:H.required("Select account type"),account_number:L.required("Enter account number")},Z=(t,s)=>{if(s)return{voided_check:l().nullable(),bank_statement:l().nullable()};const e=J(t,T.voidedCheck),i=J(t,T.bankStatement),r=e||i,o="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:l().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(o),otherwise:t=>t.notRequired()}),bank_statement:l().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(o),otherwise:t=>t.notRequired()})}},K={[d.USA]:(t,s=[])=>((t,s)=>{const e=Object.assign(Object.assign(Object.assign({},Q(s)),(t=>t?{routing_number:W.nullable()}:{routing_number:W.required("Enter routing number")})(s)),Z(t,s));return a().shape(e,[["voided_check","bank_statement"]])})(s,t),[d.CAN]:(t,s=[])=>((t,s)=>{const e=Object.assign(Object.assign(Object.assign({},Q(s)),(t=>{const s=h().length(3,"Institution number must be 3 digits").matches(A,"Enter valid institution number"),e=h().length(5,"Transit number must be 5 digits").matches(A,"Enter valid transit number");return t?{institution_number:s.nullable(),transit_number:e.nullable()}:{institution_number:s.required("Enter institution number"),transit_number:e.required("Enter transit number")}})(s)),Z(t,s));return a().shape(e,[["voided_check","bank_statement"]])})(s,t)},$=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new E,this.isLoading=!1,this.getSchema=()=>(0,K[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new n(this.getSchema()),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new D({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new R(t.data.bank_accounts[0]):(this.bankAccount=new R({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:F.POST_ERROR,message:s.error.message,severity:I.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:F.POST_ERROR,message:t.error.message,severity:I.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new n(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){const t=this.formController.values.getValue();return new R(t).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:F.POST_ERROR,severity:I.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:S.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t(this.country===d.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},z=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new u(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t(),this.isEditingTaxId=!1},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new u(this.formController.values.getValue()).payload}componentWillLoad(){const t=this.country===d.CAN?r(this.allowOptionalFields):o(this.allowOptionalFields);this.formController=new n(t),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e;const i=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:i.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:k,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},!(null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4)||this.isEditingTaxId?t("form-control-number-masked",{name:"tax_id",label:U[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:U[this.country].taxIdHelpText}):t("div",null,t("label",{class:"form-label",part:y},U[this.country].taxIdLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:g,value:`****${null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:_,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:i.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})))))}},tt=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:C.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(N,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Owners"),t("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."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(q,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},st=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new m(t.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new m(this.formController.values.getValue()).payload}}componentWillLoad(){this.formController=new n((0,Y[this.country])("representative",this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(N,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}},et=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{const s=new p((t.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},s),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:S.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new p(this.formController.values.getValue()).payload}}componentWillLoad(){this.formController=new n((0,G[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:v},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:s,inputHandler:this.inputHandler})))}};export{X as justifi_additional_questions_form_step_core,$ as justifi_business_bank_account_form_step_core,z as justifi_business_core_info_form_step_core,tt as justifi_business_owners_form_step_core,st as justifi_business_representative_form_step_core,et as justifi_legal_address_form_step_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-C6wS5-M7.js";import{C as e,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-BCPutgAi.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-BpaE8q5f.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-DEhd71m_.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";const d=m();class u{async postProvisioning(s,i,t){return d.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new u})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"41e96a931c082212f43bdd84dd5c948fac1eddfc",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as c}from"./p-DwYM91AU.js";import{a5 as i,a6 as a,a7 as h,a8 as r,a9 as o,l as f}from"./p-wtuY7MT2.js";const l=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?i:this.isFocused&&this.checked?a:this.checked?h:this.isFocused?r:o}render(){return e(c,{key:"1b798d4c7a78475795a0b667839e82bbc402749c",class:"form-group d-flex flex-column"},e("div",{key:"df37525372c220bb0fcbc54bc89d28b55c5b5407",class:"form-check"},e("input",{key:"af923ae2cb8677fd9e943c912ef9c117dc8eb9d5",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"06aec18092d38c386cb3dbeb7712a356f6615f82",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),e("form-control-help-text",{key:"63356fa988cecc235ff01b7f9eb4c344d62a18c0",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"61c5b0fac0b21856660dd6b9c64c2202f82324b2",errorText:this.errorText,name:this.name}))}};export{l as form_control_radio}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{C as e}from"./p-wtuY7MT2.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./p-DwYM91AU.js";import{c as a,J as s}from"./p-C6wS5-M7.js";import{c as d}from"./p-DU8dqq9U.js";import{d as c}from"./p-wtuY7MT2.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-DEhd71m_.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BpaE8q5f.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";const r=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){console.error("[justifi-checkout] error-event received",null==e?void 0:e.detail),this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"f42c8452f88029ac8d8cac1b9e9529cabf0b2c62"},i("justifi-modular-checkout",{key:"cac0842e4d4e0c860ad9647bdb8941dad2b3e838",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"85c2387f7ab8be9f7b081a6a2b2213c4fdde5dce",class:"row gy-3 jfi-checkout-core"},i("div",{key:"5c72bbe29d87a469ac0da89a20262962cf27c87f",class:"col-12",part:c},i("justifi-header",{key:"c44950193bd8e7bdb666a59942680be5b3784d7e",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"ecf325aeae43469419ace06d8eeef88be8d59599"},i("justifi-checkout-summary",{key:"361ad13743a7103aacd370e2099fcf821e2bbe2f"}))),i("div",{key:"3cb1656c819601bfca4e47e7e0325ba4bdb0bf2d",class:"col-12 mt-4"},i("slot",{key:"00b45bca235ebfd7edcc353d6282674ee7e31384",name:"insurance"})),i("div",{key:"7a13fc9b811cc9f8be4d3194fd400ea7543e9ec0",class:"col-12 mt-4"},i("justifi-header",{key:"5507b8a34d2c3185b0d4a6912da139ba0b2cb6c4",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"3a037f58d971df9017704a66d998ff0067c6d933",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"c437ed60647851bffd2f9288ee7f5a8fe254d25c",class:"d-flex flex-column"},i("section",{key:"4f91fd21cfceed04d24c97ec2383d6aca13a89ad"},i("div",{key:"52e8ded1a1854dbf765c6de73a17b1bc3e3415ea"},i("justifi-saved-payment-methods",{key:"e9e4662f73dc7807dfcc2a58fb6ee1dc8f356b80"}),this.availablePaymentMethods.includes(h.APPLE_PAY)&&i("div",{key:"234a49312ea187423d46c9a512f3bef1b2d76ff9",class:"mb-3"},i("justifi-apple-pay",{key:"427557a760c046b3912fdfba1c57f1b79ea06edc"})),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"73a70bc812dd9a7b7b135295a3e20c4504ccad3f",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"fdde91b450ec670b1e88599b1ff7bc04461c12fd",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("internal-tokenize-payment-method",{key:"f6e44117da2e558f841a6ebf72f74e966793e1dd",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"c448472206c64bc967034aecf98564ae33281cc2",class:"mt-4"},i("justifi-button",{key:"4392b022d6183819596a40e0e7843564e99a1ce9",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{r as justifi_checkout}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as i,H as s,g as n}from"./p-DwYM91AU.js";import{A as a}from"./p-C8yN3uBj.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as r}from"./p-c7MCfTgE.js";import{c as l,o as c,g as h,a as d,b as u}from"./p-DU8dqq9U.js";import{D as p,r as y}from"./p-wtuY7MT2.js";import{f as m}from"./p-BS7OgSQe.js";import{H as v}from"./p-zNSPsvs3.js";import{H as M,b as f,h as g,i as b}from"./p-nrZ9yHcl.js";import{H as k}from"./p-C-2kW6Al.js";import{J as w,c as A}from"./p-C6wS5-M7.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as j,a as T,b as N}from"./p-Cjcsf8ku.js";import{I as E}from"./p-BpaE8q5f.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as P,a as I}from"./p-D2muobcE.js";import{C}from"./p-B4ZUYyNh.js";import{P as D,a as S,b as x}from"./p-DCIW8z1f.js";import{C as O}from"./p-ZpPDShvP.js";import"./p-BYsgavgS.js";import"./p-DEhd71m_.js";var L,z,R,_,U;!function(t){t.STATUS_SUCCESS="STATUS_SUCCESS",t.STATUS_FAILURE="STATUS_FAILURE"}(L||(L={})),function(t){t.PLAIN="plain",t.BUY="buy",t.SET_UP="set-up",t.DONATE="donate",t.CHECK_OUT="check-out",t.BOOK="book",t.SUBSCRIBE="subscribe"}(z||(z={})),function(t){t.BLACK="black",t.WHITE="white",t.WHITE_OUTLINE="white-outline"}(R||(R={})),function(t){t.SUPPORTS_3DS="supports3DS",t.SUPPORTS_EMV="supportsEMV",t.SUPPORTS_CREDIT="supportsCredit",t.SUPPORTS_DEBIT="supportsDebit"}(_||(_={}));class B{constructor(t){this.merchantIdentifier=t.merchantIdentifier,this.displayName=t.displayName,this.initiative=t.initiative,this.initiativeContext=t.initiativeContext,this.buttonType=t.buttonType||z.PLAIN,this.buttonStyle=t.buttonStyle||R.BLACK,this.buttonLocale=t.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class Y{constructor(t){this.countryCode=t.countryCode,this.currencyCode=t.currencyCode,this.merchantCapabilities=t.merchantCapabilities,this.supportedNetworks=t.supportedNetworks,this.total=t.total,this.lineItems=t.lineItems,this.shippingMethods=t.shippingMethods,this.applicationData=t.applicationData,this.supportedCountries=t.supportedCountries}get isValid(){var t,e,i,s;return!!(this.countryCode&&this.currencyCode&&(null===(t=this.merchantCapabilities)||void 0===t?void 0:t.length)&&(null===(e=this.supportedNetworks)||void 0===e?void 0:e.length)&&(null===(i=this.total)||void 0===i?void 0:i.label)&&(null===(s=this.total)||void 0===s?void 0:s.amount))}}class Q{static isApplePaySupported(){var t;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))}static canMakePayments(){var t;return this.isApplePaySupported()&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(t){var e;if(!this.isApplePaySupported())return!1;try{return await(null===(e=window.ApplePaySession)||void 0===e?void 0:e.canMakePaymentsWithActiveCard(t))||!1}catch(t){return console.error("Error checking Apple Pay active card:",t),!1}}static formatAmount(t){return(t/100).toFixed(2)}static parseAmount(t){return Math.round(100*parseFloat(t))}static createLineItem(t,e,i="final"){return{label:t,amount:this.formatAmount(e),type:i}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[_.SUPPORTS_3DS,_.SUPPORTS_EMV,_.SUPPORTS_CREDIT,_.SUPPORTS_DEBIT]}}!function(t){t.UNAVAILABLE="UNAVAILABLE",t.SESSION_ERROR="SESSION_ERROR",t.MERCHANT_VALIDATION_ERROR="MERCHANT_VALIDATION_ERROR",t.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",t.USER_CANCELLED="USER_CANCELLED"}(U||(U={}));class F{constructor(){this.api=a()}initialize(t){if(this.applePayConfig=new B(t),!this.applePayConfig.isValid)throw new Error("Invalid Apple Pay configuration provided")}async validateMerchant(t,e){try{return await this.api.post({endpoint:"apple_pay/merchant_session",authToken:t,headers:{"Sub-Account":e},body:{domain:window.location.host,display_name:this.applePayConfig.displayName}})}catch(t){throw console.error("Backend validation failed:",t),new Error("Merchant validation failed")}}async processPayment(t,e,i){const s=await this.api.post({endpoint:"apple_pay/process_token",authToken:t,body:i,headers:{"Sub-Account":e}});return{success:s.id&&!!s.data.token,data:s}}isAvailable(){return Q.isApplePaySupported()&&Q.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await Q.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(t,e,i){if(!this.applePayConfig)throw console.error("[ApplePayService] Missing applePayConfig. Did you call initialize()?"),new Error("Apple Pay not initialized. Call initialize() first.");const s=new Y(t);if(!s.isValid){const t=[];throw s.countryCode||t.push("countryCode"),s.currencyCode||t.push("currencyCode"),s.merchantCapabilities&&0!==s.merchantCapabilities.length||t.push("merchantCapabilities"),s.supportedNetworks&&0!==s.supportedNetworks.length||t.push("supportedNetworks"),s.total&&s.total.label&&s.total.amount||t.push("total"),console.error("[ApplePayService] Payment request is invalid. Missing/invalid:",t),new Error("Invalid payment request provided")}return this.currentPaymentRequest=s,new Promise(((t,n)=>{try{if("undefined"==typeof window||!("ApplePaySession"in window))return console.error("[ApplePayService] ApplePaySession not available on window"),n({success:!1,error:{code:U.UNAVAILABLE,message:"ApplePaySession API is not available in this environment"}});this.currentSession=new window.ApplePaySession(3,s),this.setupSessionEventHandlers(t,n,e,i),this.currentSession.begin()}catch(t){console.error("[ApplePayService] Exception while starting session:",t),n({success:!1,error:{code:U.SESSION_ERROR,message:t instanceof Error?t.message:"Failed to start Apple Pay session"}})}}))}abortPaymentSession(){this.currentSession&&(this.currentSession.abort(),this.currentSession=void 0,this.currentPaymentRequest=void 0)}setupSessionEventHandlers(t,e,i,s){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest?(this.currentSession.onvalidatemerchant=async()=>{try{if(!i)throw console.error("[ApplePayService] Missing authToken for merchant validation"),new Error("Authentication token not provided.");const t=await this.validateMerchant(i,s);try{this.currentSession.completeMerchantValidation(t)}catch(t){throw console.error("Error calling completeMerchantValidation:",t),t}}catch(t){console.error("=== MERCHANT VALIDATION ERROR ==="),console.error("Error during merchant validation:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.abort(),e({success:!1,error:{code:U.MERCHANT_VALIDATION_ERROR,message:t instanceof Error?t.message:"Merchant validation failed"}})}},this.currentSession.onpaymentauthorized=async n=>{try{const a=n.payment,o=Object.assign(Object.assign({},a.token),{product_details:{name:this.currentPaymentRequest.total.label,price:Q.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}}),r=await this.processPayment(i,s,o);r.success?(this.currentSession.completePayment({status:L.STATUS_SUCCESS}),t({success:!0,token:a.token,paymentMethodId:r.data.id})):(console.error("PSP reported payment failure:",r.data),this.currentSession.completePayment({status:L.STATUS_FAILURE}),e({success:!1,error:{code:U.PAYMENT_PROCESSING_ERROR,message:"Payment processing failed"}}))}catch(t){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.completePayment({status:L.STATUS_FAILURE}),e({success:!1,error:{code:U.PAYMENT_PROCESSING_ERROR,message:t instanceof Error?t.message:"Payment processing failed"}})}finally{this.currentSession=void 0,this.currentPaymentRequest=void 0}},this.currentSession.onpaymentmethodselected=()=>{const t={newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]};try{this.currentSession.completePaymentMethodSelection(t)}catch(t){console.error("Error completing payment method selection:",t),this.currentSession.abort()}},this.currentSession.onshippingmethodselected=()=>{this.currentSession.completeShippingMethodSelection({status:L.STATUS_SUCCESS,newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]})},this.currentSession.oncancel=t=>{if(t.sessionError)switch(console.error(t.sessionError),t.sessionError.code){case"unknown":console.error("Unknown error - likely merchant validation issue"),console.error("This usually means:"),console.error("1. Merchant certificate is invalid or expired"),console.error("2. Merchant identifier mismatch"),console.error("3. Backend validation endpoint issues");break;case"invalidMerchantSession":console.error("Invalid merchant session provided"),console.error("Check that the merchant session from backend is valid");break;case"userCancel":console.error("User cancelled the payment");break;default:console.error("Other error code:",t.sessionError.code)}this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:U.USER_CANCELLED,message:"User cancelled the Apple Pay session"}})},"onerror"in this.currentSession&&(this.currentSession.onerror=t=>{console.error("=== APPLE PAY SESSION ERROR ==="),console.error("Session error:",t),this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:U.SESSION_ERROR,message:"Apple Pay session error occurred"}})})):console.error("[ApplePayService] setupSessionEventHandlers called without required state",{hasSession:Boolean(this.currentSession),hasConfig:Boolean(this.applePayConfig),hasPaymentRequest:Boolean(this.currentPaymentRequest)})}static createPaymentRequest(t,e,i="US",s="USD"){return{countryCode:i,currencyCode:s,merchantCapabilities:Q.getDefaultMerchantCapabilities(),supportedNetworks:Q.getDefaultSupportedNetworks(),total:Q.createLineItem(e,t)}}getApplePayConfig(){return this.applePayConfig}}const V=e=>{const{isLoading:i}=e;return i?t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(r,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},H=e=>t("div",{class:"apple-pay-button-container"},t("button",Object.assign({class:(()=>{let t="apple-pay-button";switch(e.buttonStyle){case R.WHITE:t+=" apple-pay-button-white";break;case R.WHITE_OUTLINE:t+=" apple-pay-button-white-outline";break;default:t+=" apple-pay-button-black"}switch(e.buttonType){case z.BUY:t+=" apple-pay-button-type-buy";break;case z.DONATE:t+=" apple-pay-button-type-donate";break;default:t+=" apple-pay-button-type-plain"}return(e.disabled||e.isProcessing||!e.isAvailable)&&(t+=" disabled"),t})(),style:{width:e.width,height:e.height},onClick:()=>{!e.disabled&&!e.isProcessing&&e.isAvailable&&e.clickHandler&&e.clickHandler()},disabled:e.disabled||e.isProcessing||!e.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},e),e.isProcessing&&t("div",{class:"processing-overlay"},t("div",{class:"spinner"}),t("span",null,"Processing..."))),t("style",null,"\n .apple-pay-button-container {\n display: block;\n position: relative;\n width: 100%;\n }\n\n /* Apple Pay CSS classes - these are the official Apple Pay button styles */\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: plain; /* default */\n -apple-pay-button-style: black; /* default */\n border-radius: 8px;\n cursor: pointer;\n border: none;\n outline: none;\n transition: opacity 0.2s ease;\n position: relative;\n }\n\n /* Button styles */\n .apple-pay-button.apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n\n .apple-pay-button.apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n\n .apple-pay-button.apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n\n /* Button types */\n .apple-pay-button.apple-pay-button-type-plain {\n -apple-pay-button-type: plain;\n }\n\n .apple-pay-button.apple-pay-button-type-buy {\n -apple-pay-button-type: buy;\n }\n\n .apple-pay-button.apple-pay-button-type-donate {\n -apple-pay-button-type: donate;\n }\n\n /* Hover and disabled states */\n .apple-pay-button:hover:not(.disabled) {\n opacity: 0.9;\n }\n\n .apple-pay-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Processing overlay */\n .processing-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid #fff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n /* Responsive design */\n @media (max-width: 480px) {\n .apple-pay-button {\n width: 100% !important;\n min-width: 200px;\n }\n }\n ")),Z=class{constructor(t){e(this,t),this.applePayStarted=i(this,"applePayStarted"),this.applePayCompleted=i(this,"applePayCompleted"),this.applePayCancelled=i(this,"applePayCancelled"),this.applePayError=i(this,"applePayError"),this.countryCode="US",this.merchantIdentifier="merchant.com.staging-justifi.checkout-dev",this.merchantDisplayName="JustiFi Checkout",this.initiativeContext="dev-checkout.justifi-staging.com",this.buttonType=z.PLAIN,this.buttonStyle=R.BLACK,this.disabled=!1,this.showSkeleton=!0,this.width="100%",this.height="48px",this.isLoading=!0,this.isProcessing=!1,this.isAvailable=!1,this.canMakePayments=!1,this.isConfigValid=!0,this.error=null,this.handleApplePayClick=async()=>{var t,e;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit();const i={countryCode:this.countryCode,currencyCode:l.paymentCurrency,merchantCapabilities:[_.SUPPORTS_3DS,_.SUPPORTS_CREDIT,_.SUPPORTS_DEBIT],supportedNetworks:Q.getDefaultSupportedNetworks(),total:Q.createLineItem(l.paymentDescription,l.paymentAmount)},s=await this.applePayService.startPaymentSession(i,l.authToken,l.accountId);s.success?this.applePayCompleted.emit({success:!0,token:s.token,paymentMethodId:s.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:s.error}),this.applePayError.emit({error:(null===(t=s.error)||void 0===t?void 0:t.message)||"Payment failed",code:(null===(e=s.error)||void 0===e?void 0:e.code)||Z.ErrorCode.PAYMENT_FAILED}))}catch(t){const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.applePayError.emit({error:e,code:Z.ErrorCode.PAYMENT_FAILED}),this.applePayCompleted.emit({success:!1,error:e})}finally{this.isProcessing=!1}}}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,this.isConfigValid=!0,!(Boolean(l.paymentAmount)&&Boolean(l.paymentCurrency)&&Boolean(l.authToken)))return this.error="Missing required Apple Pay configuration",this.isConfigValid=!1,console.error("Apple Pay config error: missing required values",{paymentAmount:l.paymentAmount,paymentCurrency:l.paymentCurrency,hasAuthToken:Boolean(l.authToken),accountId:l.accountId}),this.applePayError.emit({error:this.error,code:Z.ErrorCode.CONFIG_ERROR}),void(this.isLoading=!1);if(this.isAvailable=Q.isApplePaySupported(),this.canMakePayments=Q.canMakePayments(),!this.isAvailable)return this.error="Apple Pay is not supported on this device",console.error(this.error),this.applePayError.emit({error:this.error,code:Z.ErrorCode.NOT_SUPPORTED}),void(this.isLoading=!1);if(!this.canMakePayments)return this.error="Apple Pay is not available",console.error(this.error),this.applePayError.emit({error:this.error,code:Z.ErrorCode.NOT_AVAILABLE}),void(this.isLoading=!1);const t={merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle};this.applePayService=new F,this.applePayService.initialize(t),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(t){console.error("Apple Pay initialization error:",t),this.error=t instanceof Error?t.message:"Failed to initialize Apple Pay",this.applePayError.emit({error:this.error,code:Z.ErrorCode.INITIALIZATION_ERROR})}finally{this.isLoading=!1}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?Q.getDefaultSupportedNetworks():[]}async abort(){this.applePayService.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){if(!l.applePayEnabled)return null;const e=!this.isLoading&&this.isAvailable&&this.canMakePayments&&this.isConfigValid;return t(o,null,l.checkoutLoaded&&t("script",{async:!0,src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",onLoad:()=>{this.initializeApplePay()}}),t("div",{class:"apple-pay-container"},t(V,{isLoading:this.isLoading}),e&&t(H,{buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick,width:this.width,height:this.height})),t("style",null,"\n .apple-pay-container {\n width: 100%;\n }\n "))}};Z.ErrorCode={CONFIG_ERROR:"CONFIG_ERROR",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_AVAILABLE:"NOT_AVAILABLE",INITIALIZATION_ERROR:"INITIALIZATION_ERROR",PAYMENT_FAILED:"PAYMENT_FAILED"};const W=class{constructor(t){e(this,t)}render(){return t(o,{key:"fd2c61dcafdc800d0064c19d29c6e007aed5adb5"},t("section",{key:"f2abef1233f3ccad3982d10c61ec5765e13e27a5"},t("div",{key:"713d66ef6f7e2fc73135e765069baba6df976f52"},t("div",{key:"b8dd28f257948aa317366fe3ea6d2bc4911ef164",part:p},null==l?void 0:l.paymentDescription),t("div",{key:"675676b40de7dc27d07bfafc0eee77eb855a3d26"},t("span",{key:"cbd47994d9c3f1518741a298de3f5d62a0ad5313",part:p},"Total")," ",t("span",{key:"614748853f666f1b072d4fa9b14ee15ef5717112",part:p},m(+(null==l?void 0:l.totalAmount)))))))}},q=class{constructor(t){e(this,t),this.levels={h1:v,h2:M,h3:k},this.level="h1"}render(){return t(o,{key:"d4871da09451d40b27220a207ee72317ed9b1b9f"},t(this.levels[this.level],{key:"f7de159fa6395ef4024f48b868369f8d10edf64e",text:this.text,class:this.class}))}},G=a();class J{async getLinkToken(t,e,i,s){return G.post({endpoint:`plaid/${e}/link`,body:{checkout_id:i},authToken:t,signal:s})}async tokenizeBankAccount(t,e,i,s,n,a){const o=`plaid/${e}/tokenize`,r={public_token:i};return s&&(r.link_token_id=s),n&&(r.payment_method_group_id=n),G.post({endpoint:o,body:r,authToken:t,signal:a})}}const X=class{constructor(t){e(this,t),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.checkoutChangedEvent=i(this,"checkout-changed"),this.plaidService=new J,this.handleApplePayCompleted=t=>{const{success:e,token:i,paymentMethodId:s,error:n}=t.detail;e&&i?(l.paymentToken=s,l.selectedPaymentMethod={type:D.APPLE_PAY},this.submitCheckout()):(console.error("Apple Pay completed but failed:",n),this.errorEvent.emit({message:(null==n?void 0:n.message)||"Apple Pay payment failed",errorCode:T.TOKENIZE_ERROR,severity:j.ERROR}))},this.handleApplePayError=t=>{const{error:e,code:i}=t.detail;console.error("Apple Pay error:",e),this.errorEvent.emit({message:e||"Apple Pay error occurred",errorCode:`APPLE_PAY_${i}`,severity:j.ERROR})},this.handleApplePayCancelled=()=>{l.paymentToken=void 0,l.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),l.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new C};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:n})=>{var a;try{const o=await i.fetchCheckout(t,e);if(o.error)return n({error:I(o.error),code:P(null===(a=o.error)||void 0===a?void 0:a.code),severity:j.ERROR});s({checkout:o.data})}catch(t){const e=P(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:j.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:n,onError:a})=>{var o;try{const r=await i.complete(t,e,s);if(r.error)return a({error:I(r.error),code:P(null===(o=r.error)||void 0===o?void 0:o.code),severity:j.ERROR});n({checkout:r.data})}catch(t){const e=P(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:j.ERROR})}})(t),c((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new w(this),A(),l.authToken=this.authToken,this.fetchCheckout(),f("set",(t=>{const e=b[t];void 0!==e&&g(t,e)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.removeApplePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{this.updateStore(t),t.status!==E.completed?t.status!==E.expired||this.errorEvent.emit({message:N.CHECKOUT_EXPIRED,errorCode:T.CHECKOUT_EXPIRED,severity:j.ERROR}):this.errorEvent.emit({message:N.CHECKOUT_ALREADY_COMPLETED,errorCode:T.CHECKOUT_ALREADY_COMPLETED,severity:j.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:t.code,severity:t.severity})}}):this.errorEvent.emit({message:N.NOT_AUTHENTICATED,errorCode:T.NOT_AUTHENTICATED,severity:j.ERROR})}updateStore(t){var e,i,s,n,a,o;l.accountId=t.account_id,l.checkoutLoaded=!0,l.paymentMethods=t.payment_methods.map((t=>new S(t))),l.paymentMethodGroupId=t.payment_method_group_id,l.paymentDescription=t.payment_description,l.totalAmount=t.total_amount,l.paymentAmount=t.payment_amount,l.bnplEnabled=t.payment_settings.bnpl_payments,l.insuranceEnabled=t.payment_settings.insurance_payments,l.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,l.applePayEnabled=null===(i=t.payment_settings)||void 0===i?void 0:i.apple_payments,l.bnplProviderClientId=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_client_id,l.bnplProviderMode=null===(n=null==t?void 0:t.bnpl)||void 0===n?void 0:n.provider_mode,l.bnplProviderApiVersion=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_api_version,l.bnplProviderCheckoutUrl=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_checkout_url}emitCheckoutChanged(){const t={availablePaymentMethodTypes:h(),selectedPaymentMethod:l.selectedPaymentMethod,savedPaymentMethods:l.paymentMethods};this.checkoutChangedEvent.emit(t)}queryFormRefs(){this.billingFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple, justifi-billing-form-full"),this.applePayRef=this.hostEl.querySelector("justifi-apple-pay"),this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form, justifi-tokenize-payment-method"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance")}setupApplePayListeners(){this.applePayRef&&(this.applePayRef.addEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.addEventListener("applePayError",this.handleApplePayError),this.applePayRef.addEventListener("applePayCancelled",this.handleApplePayCancelled))}removeApplePayListeners(){this.applePayRef&&(this.applePayRef.removeEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.removeEventListener("applePayError",this.handleApplePayError),this.applePayRef.removeEventListener("applePayCancelled",this.handleApplePayCancelled))}async tokenizePaymentMethod(t){var e,i,s;const n=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},a=Object.assign(Object.assign({},t),n),o=Object.assign({accountId:l.accountId,payment_method_group_id:void 0},a);l.savePaymentMethod&&(o.payment_method_group_id=l.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:o,account:l.accountId}));return r.error?r:(l.paymentToken=r.id,r.id)}async setSelectedPaymentMethod(t){l.selectedPaymentMethod=t,l.paymentToken=t.id||void 0}async validate(){var t,e;const i=[];l.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const s=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===D.NEW_CARD,n=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===D.NEW_BANK_ACCOUNT;if((s||n)&&(this.paymentMethodFormRef&&i.push(this.paymentMethodFormRef.validate()),this.billingFormRef&&i.push(this.billingFormRef.validate())),0===i.length)return!0;try{return!!(await Promise.all(i)).every((t=>"boolean"==typeof t?t:!1!==(null==t?void 0:t.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:T.VALIDATION_ERROR,severity:j.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){var e,i,s,n,a;const o=await this.validate();if(!l.selectedPaymentMethod)return void this.errorEvent.emit({message:"No payment method selected.",errorCode:T.VALIDATION_ERROR,severity:j.ERROR});const r=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===D.NEW_CARD,c=(null===(i=l.selectedPaymentMethod)||void 0===i?void 0:i.type)===D.NEW_BANK_ACCOUNT,h=(null===(s=l.selectedPaymentMethod)||void 0===s?void 0:s.type)===D.PLAID;if(r||c){const e=await this.tokenizePaymentMethod(t);if(null==e?void 0:e.error)return void this.errorEvent.emit({message:e.error.message,errorCode:T.TOKENIZE_ERROR,severity:j.ERROR})}if(h&&!l.paymentToken){const t=l.plaidPublicToken,e=l.plaidLinkTokenId;if(!t)return void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:T.TOKENIZE_ERROR,severity:j.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(l.authToken,l.accountId,t,e||void 0,l.savePaymentMethod?l.paymentMethodGroupId:void 0);if(null==i?void 0:i.error)return void this.errorEvent.emit({message:"string"==typeof i.error?i.error:i.error.message||"Failed to tokenize bank account",errorCode:T.TOKENIZE_ERROR,severity:j.ERROR});const s=null==i?void 0:i.data,a=(null===(n=null==s?void 0:s.bank_account)||void 0===n?void 0:n.token)||(null==s?void 0:s.token)||(null==s?void 0:s.id);l.paymentToken=a}catch(t){return void this.errorEvent.emit({message:(null==t?void 0:t.message)||"Plaid exchange error",errorCode:T.TOKENIZE_ERROR,severity:j.ERROR})}}if(!o)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:T.VALIDATION_ERROR,severity:j.ERROR});if(!l.paymentToken)return void this.errorEvent.emit({message:"Payment token not found.",errorCode:T.TOKENIZE_ERROR,severity:j.ERROR});let u;if(u={payment_mode:(t=>{switch(t){case D.NEW_CARD:case D.SAVED_CARD:case D.NEW_BANK_ACCOUNT:case D.SAVED_BANK_ACCOUNT:case D.PLAID:return x.ECOM;case D.SEZZLE:return x.BNPL;case D.APPLE_PAY:return x.APPLE_PAY;default:return}})(null===(a=l.selectedPaymentMethod)||void 0===a?void 0:a.type),payment_token:l.paymentToken},this.preCompleteHook){const t=d();try{await new Promise(((e,i)=>{this.preCompleteHook(t,(()=>e()),(()=>i()))}))}catch(t){return}}this.completeCheckout({payment:u,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:T.COMPLETE_CHECKOUT_ERROR,severity:j.ERROR})}})}render(){return t(s,{key:"56a003ca1e1ac4bdc1baa8f862cdb05b2d8af4b1"})}get hostEl(){return n(this)}};var $;!function(t){t.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",t.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",t.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",t.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",t.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",t.PLAID_TOKEN_EXPIRED="plaid-token-expired",t.PLAID_NETWORK_ERROR="plaid-network-error",t.PLAID_USER_CANCELLED="plaid-user-cancelled",t.PLAID_TIMEOUT="plaid-timeout",t.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",t.PLAID_ACCOUNT_LOCKED="plaid-account-locked",t.PLAID_MAINTENANCE="plaid-maintenance",t.PLAID_RATE_LIMITED="plaid-rate-limited"}($||($={}));const K={[$.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[$.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[$.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[$.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[$.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[$.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[$.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[$.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[$.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[$.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[$.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[$.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[$.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},tt={[$.PLAID_SDK_LOAD_FAILED]:j.ERROR,[$.PLAID_LINK_INIT_FAILED]:j.ERROR,[$.PLAID_LINK_TOKEN_FAILED]:j.ERROR,[$.PLAID_AUTHENTICATION_FAILED]:j.ERROR,[$.PLAID_BANK_NOT_SUPPORTED]:j.WARNING,[$.PLAID_TOKEN_EXPIRED]:j.WARNING,[$.PLAID_NETWORK_ERROR]:j.WARNING,[$.PLAID_USER_CANCELLED]:j.INFO,[$.PLAID_TIMEOUT]:j.WARNING,[$.PLAID_INVALID_CREDENTIALS]:j.ERROR,[$.PLAID_ACCOUNT_LOCKED]:j.ERROR,[$.PLAID_MAINTENANCE]:j.WARNING,[$.PLAID_RATE_LIMITED]:j.WARNING},et=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.plaidError=i(this,"plaidError"),this.plaidErrorRecovered=i(this,"plaidErrorRecovered"),this.isAuthenticating=!1,this.publicToken=null,this.linkToken=null,this.linkTokenId=null,this.error=null,this.plaidLink=null,this.isSelected=!1,this.retryCount=0,this.isRetrying=!1,this.plaidService=new J,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{l.authToken&&l.accountId&&l.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:$.PLAID_SDK_LOAD_FAILED,message:K[$.PLAID_SDK_LOAD_FAILED],severity:tt[$.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:$.PLAID_LINK_TOKEN_FAILED,message:K[$.PLAID_LINK_TOKEN_FAILED],severity:tt[$.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const t=window.Plaid;this.plaidLink=t.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(t){this.handleError({code:$.PLAID_LINK_INIT_FAILED,message:K[$.PLAID_LINK_INIT_FAILED],severity:tt[$.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,s,n;try{if(!l.authToken||!l.accountId)return void this.handleError({code:$.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:j.ERROR,retryable:!1,userAction:"Refresh the page"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const e=await this.plaidService.getLinkToken(l.authToken,l.accountId,l.checkoutId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),e.error)throw new Error("string"==typeof e.error?e.error:e.error.message||"Failed to get link token");this.linkToken=e.data.link_token,this.linkTokenId=(null==e?void 0:e.id)||(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)||null,this.linkTokenId&&(l.plaidLinkTokenId=this.linkTokenId)}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let a=$.PLAID_LINK_TOKEN_FAILED,o=K[a],r=!0;"AbortError"===t.name?(a=$.PLAID_TIMEOUT,o=K[a],r=!0):(null===(e=t.message)||void 0===e?void 0:e.includes("network"))||(null===(i=t.message)||void 0===i?void 0:i.includes("fetch"))?(a=$.PLAID_NETWORK_ERROR,o=K[a],r=!0):((null===(s=t.message)||void 0===s?void 0:s.includes("401"))||(null===(n=t.message)||void 0===n?void 0:n.includes("unauthorized")))&&(a=$.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:a,message:o,severity:tt[a],originalError:t,retryable:r,userAction:r?"Click to try again":"Refresh the page"})}},this.mapApiErrorToPlaidError=t=>{if("string"==typeof t){if(t.includes("rate_limit"))return $.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return $.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return $.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return $.PLAID_RATE_LIMITED;case"maintenance":return $.PLAID_MAINTENANCE;case"not_authenticated":return $.PLAID_INVALID_CREDENTIALS;default:return $.PLAID_LINK_TOKEN_FAILED}return $.PLAID_LINK_TOKEN_FAILED},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=t=>{this.publicToken=t,this.isAuthenticating=!1,this.clearError(),this.retryCount=0,this.isSelected||(this.isSelected=!0,l.selectedPaymentMethod={type:D.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:j.INFO}),l.plaidPublicToken=t},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=$.PLAID_AUTHENTICATION_FAILED,i=K[e],s=!0,n="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=$.PLAID_INVALID_CREDENTIALS,i=K[e],s=!0;break;case"ITEM_LOGIN_REQUIRED":e=$.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":e=$.PLAID_ACCOUNT_LOCKED,i=K[e],s=!1,n="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=$.PLAID_MAINTENANCE,i=K[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=$.PLAID_RATE_LIMITED,i=K[e],s=!0;break;case"INVALID_REQUEST":e=$.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":e=$.PLAID_AUTHENTICATION_FAILED,i=t.error_message||"Bank authentication failed. Please try again.",s=!0;break;default:t.error_message&&(i=t.error_message)}if(t.error_message){const a=t.error_message.toLowerCase();a.includes("not supported")||a.includes("unsupported")?(e=$.PLAID_BANK_NOT_SUPPORTED,i=K[e],s=!1,n="Try a different payment method"):(a.includes("expired")||a.includes("timeout"))&&(e=$.PLAID_TOKEN_EXPIRED,i=K[e],s=!0)}this.handleError({code:e,message:i,severity:tt[e],originalError:t,retryable:s,userAction:n}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.plaidError.emit({code:t.code,message:t.message,severity:t.severity,data:{originalError:t.originalError,retryable:t.retryable,userAction:t.userAction,retryCount:this.retryCount}}),console.error("Plaid error:",t),t.retryable&&this.retryCount<this.maxRetries&&this.scheduleRetry()},this.scheduleRetry=()=>{this.isRetrying||(this.isRetrying=!0,this.retryCount++,setTimeout((()=>{this.isRetrying=!1,this.clearError(),this.waitForStoreAndInitialize()}),this.retryDelay*this.retryCount))},this.clearError=()=>{this.error&&(this.error=null,this.retryCount=0)},this.syncWithStore=()=>{var t;const e=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===D.PLAID;this.isSelected!==e&&(this.isSelected=e)}}onSelectionChange(t){var e;t&&(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)!==D.PLAID&&(l.selectedPaymentMethod={type:D.PLAID}),!t||!this.plaidLink||this.publicToken||this.isAuthenticating||this.error||this.openPlaidLink()}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.waitForStoreAndInitialize()},this.scriptRef.onerror=()=>{this.handleError({code:$.PLAID_SDK_LOAD_FAILED,message:K[$.PLAID_SDK_LOAD_FAILED],severity:tt[$.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){var t;this.isSelected=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===D.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return l.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,l.selectedPaymentMethod={type:D.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(t){this.isSelected=t,t&&(l.selectedPaymentMethod={type:D.PLAID})}async isCurrentlySelected(){return this.isSelected}async deselect(){this.isSelected=!1}async reset(){this.publicToken=null,this.clearError(),this.isAuthenticating=!1,this.linkToken=null,this.plaidLink=null,this.retryCount=0,this.isRetrying=!1,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.abortController&&(this.abortController.abort(),this.abortController=null)}async isReadyForAuthentication(){return!(!this.plaidLink||!this.linkToken||this.isAuthenticating)}async retry(){this.error&&this.error.retryable&&(this.clearError(),this.waitForStoreAndInitialize())}async getErrorInfo(){return this.error}componentDidLoad(){const t=u("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==l.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const e=t("img",{class:"plaid-logo-img",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=",alt:"Plaid",title:"Plaid",style:{display:"inline",width:"20px",height:"20px",marginLeft:"5px",marginTop:"-2px"}});return t(o,{class:"payment-method"},t("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),t("div",{title:"Pay with Plaid"},t("div",{onClick:t=>{t.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",e," "),(()=>this.error?t("div",{class:(this.error.severity===j.ERROR?"text-danger":this.error.severity===j.WARNING?"text-warning":"text-info")+" mt-2"},t("small",null,this.error.message),t("br",null),t("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&t("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?t("div",{class:"text-info mt-2"},t("small",null,"Connecting to your bank...")):this.publicToken?t("div",{class:"text-success mt-2"},t("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:t("div",{class:"text-muted mt-2"},t("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},it=class{constructor(t){e(this,t),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),l.selectedPaymentMethod={id:t.id,type:t.type},l.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t===D.SAVED_CARD&&l.disableCreditCard||t===D.SAVED_BANK_ACCOUNT&&l.disableBankAccount)}componentWillLoad(){l.paymentMethods.length||console.warn("No saved payment methods available."),l.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return l.disablePaymentMethodGroup?null:t(o,null,t("div",{class:"saved-payment-methods"},l.paymentMethods.length?l.paymentMethods.filter((t=>this.isAllowedPaymentMethod(t.type))).map((e=>t("div",{class:"radio-list-item p-3",part:y,onClick:this.onPaymentMethodOptionClick(e)},t("form-control-radio",{name:"paymentMethodType",value:null==e?void 0:e.id,checked:l.paymentToken===(null==e?void 0:e.id),label:`${O[null==e?void 0:e.brand]||""} *${null==e?void 0:e.acct_last_four}`})))):null))}},st=t("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),nt=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId=D.SEZZLE,this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(l.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:l.bnplProviderClientId,apiMode:l.bnplProviderMode,apiVersion:l.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:l.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}async handleSelectionClick(){l.selectedPaymentMethod={type:D.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var e,i;return l.bnplEnabled?t(o,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),t("div",null,t("div",null,"Buy now, pay later with ",st),this.installmentPlan&&t("small",null,t("span",null,null===(e=this.installmentPlan)||void 0===e?void 0:e.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},m(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}};export{Z as justifi_apple_pay,W as justifi_checkout_summary,q as justifi_header,X as justifi_modular_checkout,et as justifi_plaid_payment_method,it as justifi_saved_payment_methods,nt as justifi_sezzle_payment_method}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,H as a}from"./p-DwYM91AU.js";import{I as i}from"./p-Ce_F4E0f.js";import{b as d,U as o,a as r,c as l,l as c}from"./p-wtuY7MT2.js";import{F as n}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";import{C as h}from"./p-B5rtFhtR.js";import{n as f}from"./p-BnjCmwMr.js";import{b as u,c as b}from"./p-DfKxeSrC.js";const m=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=i(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{var t;const s=e.target,a=s.getAttribute("name"),i=(null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue)||s.value;this.formControlInput.emit({name:a,value:i})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?d:this.disabled?o:this.isFocused?r:l}render(){return s(a,{key:"5252b2a1d8f6275cdaaa803c1c3a58294b35ef5c"},s("div",{key:"7fe65f7797268ebc964a1b02ac61166254a0c409",class:"form-group d-flex flex-column"},s("div",{key:"843bf1cf8ff7bf245760d0f65ea844768aa78ad2",class:"d-flex align-items-start gap-2"},s("label",{key:"2ba6512c6a6dfa9aa4105f069809173f01262c60",part:c,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"ec179bc366c9286246134133510bcd35fd9de891",helpText:this.helpText})),s("input",{key:"546e50189acc596e7b1c1826edb7473084f93754",ref:e=>this.textInput=e,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),s(n,{key:"6da86dcebd7e427cce68d7b88d07b94daec26f21",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},v=class{constructor(t){e(this,t),this.country=h.USA}render(){var e,t,i,d,o,r,l,c,n,m;const v=b[this.country],p=u[this.country];return s(a,{key:"429dd1250553f6d25f9db6d6c1379af0290718c6"},s("div",{key:"91b9d7199bea1620c7614efd25c0421d3f85c19d",class:"row gy-3"},s("div",{key:"13dd91b17d387ef9c8bc97b44a273f0984758a3a",class:"col-12"},s("form-control-text",{key:"52ecc715696aed27a6f4329971e90e90ebb971fa",name:"line1",label:"Street Address",inputHandler:this.inputHandler,defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,helpText:"No PO Boxes."})),s("div",{key:"64bc39361d02b10c75dfc8389915ce192b9f7606",class:"col-12"},s("form-control-text",{key:"a835f2f9706664dd195daa5436fe49aea2c54968",name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null===(i=this.defaultValues)||void 0===i?void 0:i.line2,errorText:null===(d=this.errors)||void 0===d?void 0:d.line2})),s("div",{key:"ef9b02103d0d1469da092d8965d021b049e54cb5",class:"col-12"},s("form-control-text",{key:"9263360f47c6e833a904aab2e8b30d4a35d50e75",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null===(o=this.defaultValues)||void 0===o?void 0:o.city,errorText:null===(r=this.errors)||void 0===r?void 0:r.city})),s("div",{key:"4609534e39659ed47350e68a64fee58616320da4",class:"col-12"},s("form-control-select",{key:"a7f94fa5ea2642cae82729951198771fd1f31380",name:"state",label:v.stateLabel,options:p.stateOptions,inputHandler:this.inputHandler,defaultValue:null===(l=this.defaultValues)||void 0===l?void 0:l.state,errorText:null===(c=this.errors)||void 0===c?void 0:c.state})),s("div",{key:"eadf0a6e2e2cfbe8e476ba8abb25eab4b2b005fb",class:"col-12"},s("form-control-text",{key:"2708d2a47c8afccc470203775d494683f133174b",name:"postal_code",label:v.postalLabel,inputHandler:this.inputHandler,defaultValue:null===(n=this.defaultValues)||void 0===n?void 0:n.postal_code,errorText:null===(m=this.errors)||void 0===m?void 0:m.postal_code,maxLength:this.country===h.USA?5:7,keyDownHandler:this.country===h.USA?f:void 0}))))}},p=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){return s(a,{key:"c9b75fa8c884fb755cd26be4433022f278794e4e"},s("justifi-form-address-fields",{key:"2f9cfa3fc695de214d9203c680e6cb115d714b82",country:this.country,errors:this.errors,defaultValues:this.defaultValues,inputHandler:this.inputHandler}))}static get watchers(){return{address:["handleAddressChange"]}}};export{m as form_control_number_masked,v as justifi_form_address_fields,p as justifi_identity_address_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as s,g as i}from"./p-DwYM91AU.js";import{F as r}from"./p-BuCKkdLM.js";import{i as o,b as l,a as h,U as n,c,l as f}from"./p-wtuY7MT2.js";const d=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return a(s,{key:"3e9e35e7c4c1166866e3cf94dd18bfda6d64222d",exportparts:"label,input,input-invalid"},a("div",{key:"f951ee548b004edd55957f2b34a8ab4cddb59bc7",class:"form-group d-flex flex-column"},a("div",{key:"9b28774efa7c53871c23b2e66ea8b6434af3d07b",class:"d-flex align-items-start gap-2"},a("label",{key:"783eb33e72b44bb42d01f7e474998d7fa2b58093",part:"label",class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"bbc906ac8482e5cf21af56cf841932b78cd5e015",helpText:this.helpText})),a("input",{key:"3670f289b59e5464c11ba8b5ef66af0a3a2d65ca",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),a(r,{key:"11d9f49721bc8920c0fa917e6a406019aa29041e",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(a){t(this,a),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,a=e.getAttribute("name");this.inputHandler(a,e.value),this.formControlInput.emit({name:a,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?n:c}render(){return a(s,{key:"1e41c053b809f4bda982850125e00e9897470d54"},a("div",{key:"c87bf55b62aea28d4eee19235c6a49ba5e14d9d7",class:"form-group d-flex flex-column"},a("label",{key:"be4dd8515c80b016e8d0cb88d8a50a53f570e239",part:f,class:"form-label",htmlFor:this.name},this.label),a("textarea",{key:"da24a7b98a098a71683a79bc1a4c77da64d9f3dc",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),a("form-control-help-text",{key:"6af10143701fec60501ebc5bcbff614638d3c9a9",helpText:this.helpText,name:this.name}),a("form-control-error-text",{key:"3a56898b53e89041e5947d3ffcd9f827a6b925fe",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as s,a as e}from"./p-DiJD6Iqx.js";import{m as i,d as n,i as a,b as t,a as r,p as o,e as _,w as u,c,t as l,o as b,s as m,r as p,f as d,g as h,h as f,j as g}from"./p-avgjSJ1d.js";import{C as v}from"./p-B5rtFhtR.js";import{c as y}from"./p-DfKxeSrC.js";const w=e=>{const i=s({legal_name:c.required("Enter legal name"),website_url:u.required("Enter business website url"),email:_.required("Enter business email"),phone:o.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:a.required("Enter a business industry"),date_of_incorporation:n.required("Enter date of incorporation")}),b=s({legal_name:c.required("Enter legal name"),website_url:u.nullable(),email:_.nullable(),phone:o.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:a.nullable(),tax_id:l.nullable(),date_of_incorporation:n.nullable()});return e?b:i},E=n=>w(n).concat(s({classification:e().required("Select business classification"),tax_id:i(v.USA).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${y.USA.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),x=n=>w(n).concat(s({classification:e().required("Select business classification"),tax_id:i(v.CAN).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${y.CAN.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),S=e=>{const i=s({business_revenue:g.required("Enter business revenue"),business_payment_volume:f.required("Enter business payment volume"),business_when_service_received:h.required("Select when service is received"),business_recurring_payments:d.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:m.required("Select business seasonal"),business_other_payment_details:b.nullable()}),n=s({business_revenue:g.nullable(),business_payment_volume:f.nullable(),business_when_service_received:h.nullable(),business_recurring_payments:d.nullable(),business_recurring_payments_percentage:p,business_seasonal:m.nullable(),business_other_payment_details:b.nullable()});return e?n:i};export{S as a,E as b,x as c}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i}from"./p-DwYM91AU.js";import{E as r}from"./p-BNqo3kt0.js";import{B as o}from"./p-BCPutgAi.js";import{m as p}from"./p-sCHf--Vc.js";import{C as e,a as m}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-C6wS5-M7.js";import"./p-wtuY7MT2.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-BpaE8q5f.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-DEhd71m_.js";const a=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):i("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as a,H as i}from"./p-DwYM91AU.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-CVaOFfrI.js";import{$ as h,l as o,V as c,b as n,U as l,a as d}from"./p-wtuY7MT2.js";import{F as f}from"./p-Bli6WznP.js";import{F as p}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=n),this.disabled&&(t=l),this.isFocused&&(t=d),t}render(){return a(i,{key:"12d04cf0bc1dbc85acd1006148c411e00941ab70"},a("div",{key:"08d92fd3c4c764295cf291fc983f63ab58e4312e",class:"form-group d-flex flex-column"},a("label",{key:"1c7bddbfc094535558b24d3988dafe91f0cbde0a",part:o,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"a1dfb4ab2de228f7ad138c12eb37403e9578c001",class:"input-group"},a("span",{key:"94e9009f2a6c782798dccaf6dfae472391f43078",class:"input-group-text",part:c},"$"),a("input",{key:"ebbc696bc1b695d20a758039465ae37a66be974a",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(f,{key:"58f0977b34ab42051b1d4af9e5754d57d60e2fb5",helpText:this.helpText,name:this.name}),a(p,{key:"b3cdaa58f30edb185e2c89bca5d02a86c52cc8d0",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s}from"./p-DwYM91AU.js";import{X as d,Y as a,Z as c}from"./p-wtuY7MT2.js";const i=class{constructor(s){t(this,s),this.selectedQuantityChange=e(this,"selectedQuantityChange"),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return s("div",{key:"e7a0bf077aca5a2ff095caf70457a5353995998e",class:"rounded shadow-sm card p-2",part:c},s("div",{key:"3ad7ac7493b73da04b071756fd4ad38be0afae9e",class:"d-flex gap-3"},s("div",{key:"568ed695946d70b84309772cbdb7b3647d227208",class:"d-flex align-items-center"},s("img",{key:"1b93058757c815f862ab0cb2640b7c2eb7bc216f",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:d})),s("div",{key:"014671ad4644fdd1cb92f07ca0c642a6138033ad",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},s("div",{key:"5d1bd75fb2c730dee13979d1811bdac2ced8ea6a",class:"row"},s("div",{key:"0dcc849ccfade11b1421a3c04b845b8d60f6061f",class:"col-6 d-flex gap-2"},this.modelName,s("form-control-tooltip",{key:"5e93951b101ea98e55b232b798d94de226146ff2",helpText:this.description})),s("div",{key:"4df172c04c7d8d7d7de5dda392824d3af005f60d",class:"col-6 d-flex justify-content-end align-items-center"},s("button",{key:"0e449f9467334d2470f835ec72f3e28f1dfc835d",class:"p-0 minus btn",onClick:this.removeUnit,part:a},"-"),s("div",{key:"ca1947fcb27d320063a682220f7c592361d21c02",class:"w-25 text-center"},this.selectedQuantity),s("button",{key:"f2119205d7ad524730ddf429083dc65b86d46251",class:"p-0 plus btn",onClick:this.addUnit,part:a},"+"))))))}};export{i as terminal_quantity_selector}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as n,h as e}from"./p-DwYM91AU.js";var r="top",i="bottom",o="right",a="left",u="auto",f=[r,i,o,a],c="start",s="end",d="viewport",l="popper",p=f.reduce((function(t,n){return t.concat([n+"-"+c,n+"-"+s])}),[]),h=[].concat(f,[u]).reduce((function(t,n){return t.concat([n,n+"-"+c,n+"-"+s])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b(t){return t?(t.nodeName||"").toLowerCase():null}function m(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function y(t){return t instanceof m(t).Element||t instanceof Element}function w(t){return t instanceof m(t).HTMLElement||t instanceof HTMLElement}function x(t){return"undefined"!=typeof ShadowRoot&&(t instanceof m(t).ShadowRoot||t instanceof ShadowRoot)}function O(t){return t.split("-")[0]}var g=Math.max,j=Math.min,k=Math.round;function M(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function E(){return!/^((?!chrome|android).)*safari/i.test(M())}function A(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&w(t)&&(i=t.offsetWidth>0&&k(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&k(r.height)/t.offsetHeight||1);var a=(y(t)?m(t):window).visualViewport,u=!E()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/o,s=r.width/i,d=r.height/o;return{width:s,height:d,top:c,right:f+s,bottom:c+d,left:f,x:f,y:c}}function q(t){var n=A(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function B(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&x(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function P(t){return m(t).getComputedStyle(t)}function L(t){return["table","td","th"].indexOf(b(t))>=0}function R(t){return((y(t)?t.ownerDocument:t.document)||window.document).documentElement}function S(t){return"html"===b(t)?t:t.assignedSlot||t.parentNode||(x(t)?t.host:null)||R(t)}function W(t){return w(t)&&"fixed"!==P(t).position?t.offsetParent:null}function T(t){for(var n=m(t),e=W(t);e&&L(e)&&"static"===P(e).position;)e=W(e);return e&&("html"===b(e)||"body"===b(e)&&"static"===P(e).position)?n:e||function(t){var n=/firefox/i.test(M());if(/Trident/i.test(M())&&w(t)&&"fixed"===P(t).position)return null;var e=S(t);for(x(e)&&(e=e.host);w(e)&&["html","body"].indexOf(b(e))<0;){var r=P(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function C(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function H(t,n,e){return g(t,j(n,e))}function I(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function z(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function D(t){return t.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(t){var n,e=t.popper,u=t.popperRect,f=t.placement,c=t.variation,d=t.offsets,l=t.position,p=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,y=d.x,w=void 0===y?0:y,x=d.y,O=void 0===x?0:x,g="function"==typeof v?v({x:w,y:O}):{x:w,y:O};w=g.x,O=g.y;var j=d.hasOwnProperty("x"),M=d.hasOwnProperty("y"),E=a,A=r,q=window;if(h){var B=T(e),L="clientHeight",S="clientWidth";B===m(e)&&"static"!==P(B=R(e)).position&&"absolute"===l&&(L="scrollHeight",S="scrollWidth"),(f===r||(f===a||f===o)&&c===s)&&(A=i,O-=(b&&B===q&&q.visualViewport?q.visualViewport.height:B[L])-u.height,O*=p?1:-1),f!==a&&(f!==r&&f!==i||c!==s)||(E=o,w-=(b&&B===q&&q.visualViewport?q.visualViewport.width:B[S])-u.width,w*=p?1:-1)}var W,C=Object.assign({position:l},h&&U),H=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:k(t.x*r)/r||0,y:k(e*r)/r||0}}({x:w,y:O},m(e)):{x:w,y:O};return w=H.x,O=H.y,Object.assign({},C,p?((W={})[A]=M?"0":"",W[E]=j?"0":"",W.transform=(q.devicePixelRatio||1)<=1?"translate("+w+"px, "+O+"px)":"translate3d("+w+"px, "+O+"px, 0)",W):((n={})[A]=M?O+"px":"",n[E]=j?w+"px":"",n.transform="",n))}var F={passive:!0},V={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(t){return t.replace(/left|right|bottom|top/g,(function(t){return V[t]}))}var G={start:"end",end:"start"};function J(t){return t.replace(/start|end/g,(function(t){return G[t]}))}function K(t){var n=m(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function N(t){return A(R(t)).left+K(t).scrollLeft}function Q(t){var n=P(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function X(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:w(t)&&Q(t)?t:X(S(t))}function Z(t,n){var e;void 0===n&&(n=[]);var r=X(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=m(r),a=i?[o].concat(o.visualViewport||[],Q(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(Z(S(a)))}function $(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tt(t,n,e){return n===d?$(function(t,n){var e=m(t),r=R(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var c=E();(c||!c&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+N(t),y:f}}(t,e)):y(n)?function(t,n){var e=A(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):$(function(t){var n,e=R(t),r=K(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=g(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=g(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+N(t),f=-r.scrollTop;return"rtl"===P(i||e).direction&&(u+=g(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(R(t)))}function nt(t){var n,e=t.reference,u=t.element,f=t.placement,d=f?O(f):null,l=f?D(f):null,p=e.x+e.width/2-u.width/2,h=e.y+e.height/2-u.height/2;switch(d){case r:n={x:p,y:e.y-u.height};break;case i:n={x:p,y:e.y+e.height};break;case o:n={x:e.x+e.width,y:h};break;case a:n={x:e.x-u.width,y:h};break;default:n={x:e.x,y:e.y}}var v=d?C(d):null;if(null!=v){var b="y"===v?"height":"width";switch(l){case c:n[v]=n[v]-(e[b]/2-u[b]/2);break;case s:n[v]=n[v]+(e[b]/2-u[b]/2)}}return n}function et(t,n){void 0===n&&(n={});var e=n.placement,a=void 0===e?t.placement:e,u=n.strategy,c=void 0===u?t.strategy:u,s=n.boundary,p=void 0===s?"clippingParents":s,h=n.rootBoundary,v=void 0===h?d:h,m=n.elementContext,x=void 0===m?l:m,O=n.altBoundary,k=void 0!==O&&O,M=n.padding,E=void 0===M?0:M,q=I("number"!=typeof E?E:z(E,f)),L=t.rects.popper,W=t.elements[k?x===l?"reference":l:x],C=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=Z(S(t)),e=["absolute","fixed"].indexOf(P(t).position)>=0&&w(t)?T(t):t;return y(e)?n.filter((function(t){return y(t)&&B(t,e)&&"body"!==b(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=tt(t,e,r);return n.top=g(i.top,n.top),n.right=j(i.right,n.right),n.bottom=j(i.bottom,n.bottom),n.left=g(i.left,n.left),n}),tt(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(y(W)?W:W.contextElement||R(t.elements.popper),p,v,c),H=A(t.elements.reference),D=nt({reference:H,element:L,placement:a}),U=$(Object.assign({},L,D)),_=x===l?U:H,F={top:C.top-_.top+q.top,bottom:_.bottom-C.bottom+q.bottom,left:C.left-_.left+q.left,right:_.right-C.right+q.right},V=t.modifiersData.offset;if(x===l&&V){var Y=V[a];Object.keys(F).forEach((function(t){var n=[o,i].indexOf(t)>=0?1:-1,e=[r,i].indexOf(t)>=0?"y":"x";F[t]+=Y[e]*n}))}return F}function rt(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,i=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?h:a,c=D(n.placement),s=c?o?p:p.filter((function(t){return D(t)===c})):f,d=s.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=s);var l=d.reduce((function(n,o){return n[o]=et(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[O(o)],n}),{});return Object.keys(l).sort((function(t,n){return l[t]-l[n]}))}var it={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,f=t.name;if(!n.modifiersData[f]._skip){for(var s=e.mainAxis,d=void 0===s||s,l=e.altAxis,p=void 0===l||l,h=e.fallbackPlacements,v=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,w=e.flipVariations,x=void 0===w||w,g=e.allowedAutoPlacements,j=n.options.placement,k=O(j),M=h||(k!==j&&x?function(t){if(O(t)===u)return[];var n=Y(t);return[J(t),n,J(n)]}(j):[Y(j)]),E=[j].concat(M).reduce((function(t,e){return t.concat(O(e)===u?rt(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),A=n.rects.reference,q=n.rects.popper,B=new Map,P=!0,L=E[0],R=0;R<E.length;R++){var S=E[R],W=O(S),T=D(S)===c,C=[r,i].indexOf(W)>=0,H=C?"width":"height",I=et(n,{placement:S,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),z=C?T?o:a:T?i:r;A[H]>q[H]&&(z=Y(z));var U=Y(z),_=[];if(d&&_.push(I[W]<=0),p&&_.push(I[z]<=0,I[U]<=0),_.every((function(t){return t}))){L=S,P=!1;break}B.set(S,_)}if(P)for(var F=function(t){var n=E.find((function(n){var e=B.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return L=n,"break"},V=x?3:1;V>0&&"break"!==F(V);V--);n.placement!==L&&(n.modifiersData[f]._skip=!0,n.placement=L,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ot(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function at(t){return[r,o,i,a].some((function(n){return t[n]>=0}))}function ut(t,n,e){void 0===e&&(e=!1);var r,i,o=w(n),a=w(n)&&function(t){var n=t.getBoundingClientRect(),e=k(n.width)/t.offsetWidth||1,r=k(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=R(n),f=A(t,a,e),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!e)&&(("body"!==b(n)||Q(u))&&(c=(r=n)!==m(r)&&w(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:K(r)),w(n)?((s=A(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):u&&(s.x=N(u))),{x:f.left+c.scrollLeft-s.x,y:f.top+c.scrollTop-s.y,width:f.width,height:f.height}}function ft(t){var n=new Map,e=new Set,r=[];function i(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||i(t)})),r}var ct={placement:"bottom",modifiers:[],strategy:"absolute"};function st(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function dt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?ct:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ct,i),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},f=[],c=!1,s={state:u,setOptions:function(r){var o="function"==typeof r?r(u.options):r;d(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:y(t)?Z(t):t.contextElement?Z(t.contextElement):[],popper:Z(n)};var a,c,l=function(t){var n=ft(t);return v.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),c=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return u.orderedModifiers=l.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:s,options:void 0===n?{}:n});f.push(r||function(){})}})),s.update()},forceUpdate:function(){if(!c){var t=u.elements,n=t.reference,e=t.popper;if(st(n,e)){u.rects={reference:ut(n,T(e),"fixed"===u.options.strategy),popper:q(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options;"function"==typeof o&&(u=o({state:u,options:void 0===a?{}:a,name:i.name,instance:s})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(t){s.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!st(t,n))return s;function d(){f.forEach((function(t){return t()})),f=[]}return s.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var lt=dt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,u=void 0===a||a,f=m(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",e.update,F)})),u&&f.addEventListener("resize",e.update,F),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",e.update,F)})),u&&f.removeEventListener("resize",e.update,F)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=nt({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,u=e.roundOffsets,f=void 0===u||u,c={placement:O(n.placement),variation:D(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,_(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,_(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},i=n.elements[t];w(i)&&b(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?i.removeAttribute(t):i.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],i=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});w(r)&&b(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,i=t.options.offset,u=void 0===i?[0,0]:i,f=h.reduce((function(t,e){return t[e]=function(t,n,e){var i=O(t),u=[a,r].indexOf(i)>=0?-1:1,f="function"==typeof e?e(Object.assign({},n,{placement:t})):e,c=f[0],s=f[1];return c=c||0,s=(s||0)*u,[a,o].indexOf(i)>=0?{x:s,y:c}:{x:c,y:s}}(e,n.rects,u),t}),{}),c=f[n.placement],s=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=c.x,n.modifiersData.popperOffsets.y+=s),n.modifiersData[e]=f}},it,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,u=t.name,f=e.mainAxis,s=void 0===f||f,d=e.altAxis,l=void 0!==d&&d,p=e.tether,h=void 0===p||p,v=e.tetherOffset,b=void 0===v?0:v,m=et(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=O(n.placement),w=D(n.placement),x=!w,k=C(y),M="x"===k?"y":"x",E=n.modifiersData.popperOffsets,A=n.rects.reference,B=n.rects.popper,P="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,L="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),R=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,S={x:0,y:0};if(E){if(s){var W,I="y"===k?r:a,z="y"===k?i:o,U="y"===k?"height":"width",_=E[k],F=_+m[I],V=_-m[z],Y=h?-B[U]/2:0,G=w===c?A[U]:B[U],J=w===c?-B[U]:-A[U],K=n.elements.arrow,N=h&&K?q(K):{width:0,height:0},Q=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[I],Z=Q[z],$=H(0,A[U],N[U]),tt=x?A[U]/2-Y-$-X-L.mainAxis:G-$-X-L.mainAxis,nt=x?-A[U]/2+Y+$+Z+L.mainAxis:J+$+Z+L.mainAxis,rt=n.elements.arrow&&T(n.elements.arrow),it=null!=(W=null==R?void 0:R[k])?W:0,ot=_+nt-it,at=H(h?j(F,_+tt-it-(rt?"y"===k?rt.clientTop||0:rt.clientLeft||0:0)):F,_,h?g(V,ot):V);E[k]=at,S[k]=at-_}if(l){var ut,ft=E[M],ct="y"===M?"height":"width",st=ft+m["x"===k?r:a],dt=ft-m["x"===k?i:o],lt=-1!==[r,a].indexOf(y),pt=null!=(ut=null==R?void 0:R[M])?ut:0,ht=lt?st:ft-A[ct]-B[ct]-pt+L.altAxis,vt=lt?ft+A[ct]+B[ct]-pt-L.altAxis:dt,bt=h&<?function(t,n,e){var r=H(t,n,e);return r>e?e:r}(ht,ft,vt):H(h?ht:st,ft,h?vt:dt);E[M]=bt,S[M]=bt-ft}n.modifiersData[u]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,u=t.name,c=t.options,s=e.elements.arrow,d=e.modifiersData.popperOffsets,l=O(e.placement),p=C(l),h=[a,o].indexOf(l)>=0?"height":"width";if(s&&d){var v=function(t,n){return I("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:z(t,f))}(c.padding,e),b=q(s),m="y"===p?r:a,y="y"===p?i:o,w=e.rects.reference[h]+e.rects.reference[p]-d[p]-e.rects.popper[h],x=d[p]-e.rects.reference[p],g=T(s),j=g?"y"===p?g.clientHeight||0:g.clientWidth||0:0,k=j/2-b[h]/2+(w/2-x/2),M=H(v[m],k,j-b[h]-v[y]);e.modifiersData[u]=((n={})[p]=M,n.centerOffset=M-k,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&B(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,i=n.rects.popper,o=n.modifiersData.preventOverflow,a=et(n,{elementContext:"reference"}),u=et(n,{altBoundary:!0}),f=ot(a,r),c=ot(u,i,o),s=at(f),d=at(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]});const pt=class{constructor(e){t(this,e),this.showEvent=n(this,"showEvent"),this.hideEvent=n(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=lt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const n=t.composedPath(),e=n.includes(this.anchorRef),r=n.includes(this.popperContentRef);!this.isOpen&&e?this.show():(this.isOpen&&!r||this.isOpen&&e)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return e("div",{key:"8f01710b6c352f39b35c5814cd6a876ab7e088c5"},e("style",{key:"e1885fe648eda95a8efa50a8f6cd46a09f59cc61"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"b2d5d36d62207fceda79ad2d1d0d0680bee6a366",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"406218fe16ad4b65e3e80ca467c3c49a462dee18"})))}};export{pt as custom_popper}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as a}from"./p-DwYM91AU.js";import{b as i,U as o,a as r,c as h,l as c,V as n}from"./p-wtuY7MT2.js";import{F as d}from"./p-Bli6WznP.js";import{F as f}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";const p=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return e(a,{key:"dd501963b2b4c85eecd6c78ac8a1c38d6e30020c"},e("div",{key:"4c130a5d956ab1caaab521930d29d666dfbfcf67",class:"form-group d-flex flex-column"},e("label",{key:"59a59b0589b3555efcb509ebb0ca34a3cc01ce3a",part:c,class:"form-label",htmlFor:this.name},this.label),e(d,{key:"0290105bb2d69ae83d1583f2495557e1e11b2939",name:this.name,helpText:this.helpText}),e("div",{key:"cf80c69cc63137195ef179dd12f726f34bf35780",class:"input-group"},e("span",{key:"5ecc2e144e7fe9fde5a64e48d8b8471d446fdb5d",class:"input-group-text",part:n},"$"),e("input",{key:"585da3cd389904d002a545c01b4322c9aa9ea74e",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),e(f,{key:"52a6fef8192278acb9a3eb854f5cea8834ed5d0f",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as i,r as t,H as e}from"./p-DwYM91AU.js";import{S as a}from"./p-c7MCfTgE.js";import{w as s,c}from"./p-tGDdRx0W.js";import{b as r}from"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-BYsgavgS.js";import"./p-HXpYMWUU.js";const n=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-end"},i(a,{height:"18px",width:"120px"}),i(a,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(a,{height:"18px",width:"110px"}),i(a,{height:"36px"}))))},o=class{constructor(i){t(this,i),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((i=>new Promise((t=>{i.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return i&&t}async tokenize(i,t,e){return this.accountNumberIframeElement.tokenize(i,t,e)}render(){return i(e,{key:"1c142c117694002871cfcb0f9c419febda59ee1b"},i(n,{key:"06ee99086ab92d21f098bc266d9a3860cf0cfee3",isReady:this.isReady}),i("div",{key:"f1ff30c399806c07854701c45698ee3b2a4d1492",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"b9225fef945018fea713a58bf0f2d58b24069826",class:"row mb-3"},i("iframe-input",{key:"116526dcaa3325b9f9de8c70f6a0dafdf9ec7ced",inputId:"accountNumber",ref:i=>this.accountNumberIframeElement=i,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),i("div",{key:"ef4856499b18125170f6b1117981cab79aa69914",class:"row"},i("iframe-input",{key:"ed3c4988a2eb856450f36ff225a91104f5c10422",inputId:"routingNumber",ref:i=>this.routingNumberIframeElement=i,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{o as bank_account_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{I as t,a as s}from"./p-BpaE8q5f.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{f as l,p as d,c as p}from"./p-DKGn-ILd.js";import{e as o,s as r,p as i}from"./p-wtuY7MT2.js";import{S as c}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";const m=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{l[e]=a}}componentWillLoad(){Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode}).forEach((([e,a])=>{a&&(d[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:t.created},{label:"Completed",value:t.completed},{label:"Attempted",value:t.attempted},{label:"Expired",value:t.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:s.ecom},{label:"BNPL",value:s.bnpl},{label:"Apple Pay",value:s.apple_pay}]}render(){const e=Object.assign({},l);return a(c,{key:"446c79dd0d2eed1602d3723f4ecb8d0cd64c538d"},a("table-filters-menu",{key:"0e484df23e3868c61f478c2a519b9f1903f4a2e0",params:e,clearParams:p,part:o},a("div",{key:"8567f7abd6bd2095a406ebdb793f4251f1cb8ce7",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"b7899df175da548ddd791af558d663e1ea87fc2a",class:"p-2"},a("form-control-select",{key:"e05d7d0d8d1dac71ae73973b26331a0dd256932b",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||l.status||"",disabled:!!this.checkoutStatus,part:r})),a("div",{key:"ffd06ad3029fbdcb3d931f01c920ac285204bd10",class:"p-2"},a("form-control-select",{key:"d3a451ce96d551174a45a66868a8b289cc770d62",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||l.payment_mode||"",disabled:!!this.paymentMode,part:i})))))}};export{m as justifi_checkouts_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e,H as s}from"./p-DwYM91AU.js";import{E as c}from"./p-CLHwhyvu.js";import{aa as t,ab as i,ac as b,ad as d,ae as f}from"./p-wtuY7MT2.js";const n=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(s,{key:"67ec7328221f28064498ebc359ec2100b33df423"},e("nav",{key:"503d4f3c3e236797a1ef6309edb00d8d0c2be345","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"9573011f1775928268a0b0932890a6c25050e3fe",class:"pagination m-0"},e("li",{key:"0247aa3068849046f8282124e7e168c381fd6340",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"5608ce502116c96e9400fdfeb0cfb4e64bc25a55",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?t:i},e("span",{key:"7c08295d1c5edd4950bb577272a8745e3cd3d692",class:"me-1",part:b},"«"),e("span",{key:"cd766ba6a6e6c31509442537a4f8345f2cd16251",part:d},"Previous"))),e("li",{key:"54c810056bc6d74be7245a47f54c8d4b75068feb",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"5ff8d8621accf87017980b527823640061b27c18",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?t:i},e("span",{key:"2dc934a96eb1be000eb7e016507ddc926c68db2a",part:d},"Next"),e("span",{key:"4e7cbcbfd2e29969f2019eacde0a24d07a72cbb3",class:"ms-1",part:f},"»"))))))}};export{n as pagination_menu}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s}from"./p-DwYM91AU.js";import{c as i,d as r,e as a}from"./p-5aA7gjr5.js";import{I as o}from"./p-BCPutgAi.js";import{F as h}from"./p-DiJD6Iqx.js";import{O as c}from"./p-B5rtFhtR.js";import{d as n}from"./p-D1WQG4I7.js";import{B as d}from"./p-Bqlcv3ZV.js";import{W as l,l as f,U as m,_ as u}from"./p-wtuY7MT2.js";import"./p-CZfYo5-1.js";import{B as b}from"./p-XYgDHrVL.js";import{I as p,P as y}from"./p-CVaOFfrI.js";import{u as v,a as j,b as w}from"./p-C77ElQ41.js";import{c as k}from"./p-DfKxeSrC.js";import"./p-Cjcsf8ku.js";import"./p-D2muobcE.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-BpaE8q5f.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BFTU3MAI.js";import"./p-avgjSJ1d.js";import"./p-CPpUGsw5.js";const g=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:t}){this.coreComponent.validateAndSubmit({onSuccess:t})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"84af0e74910def3f34aa4a6ce9d1f501faf6f5c5",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,country:this.country,ref:t=>this.coreComponent=t})}},x=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){t(this,s),this.clickEvent=e(this,"click-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownerSubmitted=e(this,"ownerSubmitted"),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:t=>{this.instantiateOwner(t.data)},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((t=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:e=>{this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:e=>{this.ownerSubmitted.emit({id:e.data.id}),this.instantiateOwner(e.data),t(!0)},onError:({error:e,code:s,severity:i})=>{this.errorEvent.emit({message:e,errorCode:s,severity:i}),t(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async t=>{this.owner=Object.assign({},new c(t)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?b.updateOwner:b.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:b.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(t){t.preventDefault(),await this.validate()&&this.submit()}get payload(){let t=new c(this.formController.values.getValue()).payload;return this.ownerId?t:Object.assign(Object.assign({},t),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new h((0,n[this.country])("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((t=>this.errors=Object.assign({},t)))}render(){return s("form",{key:"8374d88e5a1d99f58ac2c93680fb000410a67ec8",onSubmit:this.validateAndSubmit},s("fieldset",{key:"82d2f80aaff654362852e4e8c5c9775d82a5080c"},s("legend",{key:"d74d4c8bdfc91086b14e41b27934dddf14695e49",class:"fw-semibold fs-5",part:l},this.formTitle),s("br",{key:"8f6fe8d7d6b66ca2b0fd8e4b0797ee681c11f7eb"}),s("div",{key:"ef546418d4192bc1d1fef02faf47f965127f45ef",class:"row gy-3"},s("owner-form-inputs",{key:"2f961ee901838a5dd82b20484fe149b393c7c609",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country}),s("div",{key:"8ed50b5de9839353b25d54d7b51546c1d2afaeb5",class:"d-flex gap-2 justify-content-start"},s(d,{key:"a9c94571902b2a6fc68459662ee7be35874ebb66",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(d,{key:"dc6072e019ebedc91d99917023b561f7048e7a08",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"d46ee611300752429d1c9b50dfce99e8b6fc10fa"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},C=class{constructor(e){t(this,e),this.isEditingIdentification=!1,this.inputHandler=(t,e)=>{v(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{j(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))}}render(){var t,e;return s("div",{key:"81c659f924f51a559e3e958b5d608f7c68022093",class:"row gy-3"},s("div",{key:"9c89bc8e39cb584bf81852784a335599308681ff",class:"col-12 col-md-8"},s("form-control-text",{key:"a02d86ccbbcda1219a2e4e2885d0ffb54bcc3942",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"7281855c61b30b689809aa9fd3d4fce3927fcb8f",class:"col-12 col-md-4"},s("form-control-text",{key:"c91163386bd23653e3eaca4cf66c9690c28ed6f7",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"c998576d6f8442f255685a31a4bb0463175163f5",class:"col-12 col-md-6"},s("form-control-text",{key:"345003706db0198c9de5e4234f3fe3efbacc51c7",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"8bccc4ebd45c92924e921f7fffa7f5214406c9e2",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"adaf6251217a5396c36ee7e9c0963cf2c948d9cd",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:y.US})),s("div",{key:"d87f294ba9bf27df562f3e9b0ea4e286c1c6a725",class:"col-12 col-md-4"},s("form-control-date",{key:"0681a51f830eb1b358c525deb46baa06f7bc9977",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>w(t,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"090785d6d86ec3122c3884ec8ba46df43f71d08e",class:"col-12 col-md-8"},!(null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:k[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:p[this.country],helpText:k[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:f},k[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:m,value:`****${null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:u,onClick:()=>{this.isEditingIdentification=!0,v(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),s("div",{key:"3d5eabefcd198d1a27bfe158c92e3c18a0a14e69",class:"col-12"},s("justifi-identity-address-form",{key:"10158bd6a40fa0ca00d7e9feb04d7c22e51d5829",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{g as justifi_owner_form,x as owner_form_core,C as owner_form_inputs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-DwYM91AU.js";import{i as s,e as d,d as i}from"./p-BS7OgSQe.js";import{a as c,b,D as o,c as r,C as l,E as h}from"./p-BNqo3kt0.js";import{B as f}from"./p-Bqlcv3ZV.js";import{S as n}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{M as p}from"./p-bolTb61p.js";import{S as u}from"./p-c7MCfTgE.js";import{a as y,B as v}from"./p-DOLBAxYf.js";import"./p-HXpYMWUU.js";import"./p-wtuY7MT2.js";const m=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(u,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(u,{width:"70%"})),e("div",{class:"col-12"},e(u,{width:"40%"})),e("div",{class:"col-12"},e(u,{width:"40%"})),e("div",{class:"col-12"},e(u,{width:"100%"})),e("div",{class:"col-12"},e(u,{width:"80%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.recordClickEvent=a(this,"record-click-event"),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":s(e)}render(){var t;return e(n,{key:"12c258bd10e631ac1b2fb43c4e4d4854b02d8d01"},this.loading&&e(m,{key:"81c217eace20fe276d02d391f930a2684aa12385"}),!this.loading&&this.errorMessage&&h(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"df1bd819a299df69c0bf5924aa21ea760668d46b","error-message":this.errorMessage},e(c,{key:"67544da1ecdb4beee16911cd49009ae3415c576d",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},p(null===(t=this.payout)||void 0===t?void 0:t.status),e(y,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(b,{key:"64a28ab7e1bcc90d9487dd229cd07c411a50e4c7",classes:"border-1 border-end",title:"Updated At",value:`${d(this.payout.updated_at)} ${i(this.payout.updated_at)}`}),e(b,{key:"bcb74d904482f3dd63d1da918b700c1badf8bbd5",classes:"border-1 border-end",title:"Created At",value:`${d(this.payout.created_at)} ${i(this.payout.created_at)}`}),e(b,{key:"165b296bdebf16389ef29df825cb24ba34f14556",title:"ID",value:this.payout.id}),e("div",{key:"bbef430ca28eebc6c120f2f68200219dd1634660",class:"m-4"},e(f,{key:"1e51b1278a8f220c2376a004bbc9476307567c74",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"6dd5287d4355a84f0777f701c5b99bc5149954ed",slot:"detail-sections"},e(o,{key:"92af1ae82f5d53b1e50705aa18590528b19f6455",sectionTitle:"Details"}),e("div",{key:"73e1a84e7b8baabb7b6cc307d2b7fba5457514a9",class:"d-flex flex-column gap-2 w-100"},e(r,{key:"b223b147e8cc0a0849edd66a0b6deec2bf9ec55d",title:"Date paid",value:d(this.payout.deposits_at)}),e(r,{key:"766729d3cd7b85b5635e6bfa4091455a84595635",title:"Statement Description",value:this.payout.description}),e(r,{key:"7e4d537a26520d2c06ffadcd7658bb4a8e17b452",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(r,{key:"5fc253ad396300938f2cd95decab094d4da19d5b",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(r,{key:"66c2979dbdf94ba0a53aaca5896d352bc0a5606b",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(o,{key:"f0ca6a9c6d93b9841e1220dfde1182cb511c4594",sectionTitle:"Account"}),e("div",{key:"ad64b1bc364c9d9c1c64b2b1c5dce83f25fb066b",class:"d-flex flex-column gap-2 w-100"},e(r,{key:"6ac6c8251641e6d720ff82e0dfc9dbed255a1f0a",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(r,{key:"b955d27a84e0f43693e2474ee4ceab529d7eabda",title:"Account Type",value:this.payout.bank_account.account_type}),e(r,{key:"c06e3a07965683cefd3dcd4e96c16566f286b230",title:"Institution",value:this.payout.bank_account.account_type}),e(r,{key:"27cacdfeb07a3e27d7a059fedfa49470eb00ce05",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(r,{key:"53442037b6e8c27b78b3da1d0bd13527e9283edb",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(o,{key:"82d65d70219404fbe2eb9a997fa309be02d58046",sectionTitle:"Metadata"}),e("div",{key:"b1d86b363afa8a5cf60176b3eba688d2d85b94d4",class:"d-table gap-2 w-100"},e(l,{key:"ff41f465b338f8cbbaafe4fa60f27a93e3ebde77",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{k as payout_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`link text ${a}`,p=`button ${e}`,m=`button-primary ${p}`,u=`button-secondary ${p}`,c=`button-link ${p}`,b="button-loading",f=`label ${e}`,g=`input ${e} ${t}`,h=`input-group ${g}`,y=`input-invalid ${g}`,k=`input-disabled ${g}`,x=`input-focused ${g}`,v=`input-invalid-and-focused ${g}`,w="input-radio",j=`input-radio-focused ${w}`,q=`input-radio-checked ${w}`,z=`input-radio-checked-focused ${w}`,A=`input-radio-invalid ${w}`,B="input-checkbox",C=`input-checkbox-invalid ${B}`,D=`input-checkbox-focused ${B}`,E=`input-checkbox-checked ${B}`,F=`input-checkbox-checked-focused ${B}`,G=`input-adornment ${e}`,H=`alert-danger alert ${e}`,I=`tooltip ${e}`,J=`tooltip-icon ${e}`,K=`tooltip-inner ${e}`,L=`card ${e} ${t}`,M=`table ${e} ${t}`,N=`table-row ${e} ${t}`,O=`table-cell ${e} ${t}`,P="table-head",Q=`table-head-row ${e} ${t}`,R=`table-head-cell ${O}`,S="table-foot",T=`table-foot-row ${e} ${t}`,U=`table-foot-cell ${O}`,V=`table-cell-even ${O}`,W=`table-cell-odd ${O}`,X=a=>a%2?V:W,Y=`table-empty ${e} ${t}`,Z=`table-error ${e} ${t}`,_=`pagination-button ${p}`,aa=`pagination-button-disabled button-disabled ${p}`,ta=`pagination-button-text ${e}`,ea=`pagination-button-icon ${e}`,sa=`pagination-button-icon-next ${ea}`,ia=`pagination-button-icon-previous ${ea}`,ra="loading-spinner",la=`badge ${a}`,na=`${la} badge-primary`,oa=`${la} badge-secondary`,$a=`${la} badge-success`,da=`${la} badge-danger`,pa=`${la} badge-warning`,ma=`${la} badge-info`,ua=`${la} badge-light`,ca=`${la} badge-dark`,ba=`dropdown-menu ${e}`,fa=`dropdown-menu-button ${m}`,ga=`radio-list-item ${e}`,ha="skeleton",ya="image",ka="billing-form",xa="checkout-summary",va="filter-menu",wa=`${va} payments-list-filter-menu`,ja="payments-list-filter-param",qa=`${ja} payment-id-payments-list-filter-param`,za=`${ja} terminal-id-payments-list-filter-param`,Aa=`${ja} payment-status-payments-list-filter-param`,Ba=`${ja} created-after-payments-list-filter-param`,Ca=`${ja} created-before-payments-list-filter-param`,Da=`${va} payouts-list-filter-menu`,Ea="payouts-list-filter-param",Fa=`${Ea} created-after-payouts-list-filter-param`,Ga=`${Ea} created-before-payouts-list-filter-param`,Ha=`${va} checkouts-list-filter-menu`,Ia="checkouts-list-filter-param",Ja=`${Ia} checkout-status-checkouts-list-filter-param`,Ka=`${Ia} payment-mode-checkouts-list-filter-param`,La=`${va} terminals-list-filter-menu`,Ma="terminals-list-filter-param",Na=`${Ma} terminal-id-terminals-list-filter-param`,Oa=`${Ma} terminal-order-id-terminals-list-filter-param`,Pa=`${Ma} terminal-status-terminals-list-filter-param`,Qa=`${va} terminal-orders-list-filter-menu`,Ra="terminal-orders-list-filter-param",Sa=`${Ra} order-status-terminal-orders-list-filter-param`,Ta=`${Ra} order-type-terminal-orders-list-filter-param`,Ua=`${Ra} created-after-terminal-orders-list-filter-param`,Va=`${Ra} created-before-terminal-orders-list-filter-param`;export{h as $,Oa as A,Pa as B,ha as C,e as D,s as E,r as F,l as G,d as H,ca as I,ua as J,ma as K,pa as L,da as M,$a as N,oa as O,na as P,la as Q,ra as R,R as S,X as T,k as U,G as V,n as W,ya as X,c as Y,L as Z,u as _,x as a,C as a0,F as a1,D as a2,E as a3,B as a4,A as a5,z as a6,q as a7,j as a8,w as a9,_ as aa,aa as ab,ia as ac,ta as ad,sa as ae,m as af,b as ag,fa as ah,ba as ai,I as aj,K as ak,J as al,o as am,ka as an,$ as ao,M as ap,P as aq,Q as ar,N as as,S as at,T as au,U as av,Y as aw,Z as ax,O as ay,H as az,y as b,g as c,xa as d,Ha as e,wa as f,qa as g,Aa as h,v as i,Ba as j,Ca as k,f as l,Da as m,Fa as n,Ga as o,Ka as p,Qa as q,ga as r,Ja as s,za as t,Sa as u,Ta as v,Ua as w,Va as x,La as y,Na as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as o}from"./p-DwYM91AU.js";import{F as r}from"./p-wtuY7MT2.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
|
package/docs/.eslintrc.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const { FlatCompat } = require('@eslint/eslintrc');
|
|
2
|
-
const compat = new FlatCompat();
|
|
3
|
-
|
|
4
|
-
module.exports = [
|
|
5
|
-
...compat.extends('plugin:mdx/recommended'),
|
|
6
|
-
{
|
|
7
|
-
rules: {
|
|
8
|
-
'mdx/no-unused-expressions': 'off',
|
|
9
|
-
'mdx/no-jsx-html-comments': 'off',
|
|
10
|
-
},
|
|
11
|
-
settings: {
|
|
12
|
-
'mdx/remark': {
|
|
13
|
-
plugins: ['remark-frontmatter'],
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
];
|
package/docs/changelog/index.mdx
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: changelog/index
|
|
3
|
-
title: Changelog
|
|
4
|
-
description: Release history for @justifi/webcomponents and related tooling.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
We keep the authoritative changelog in GitHub so every commit that ships to
|
|
8
|
-
npm stays auditable.
|
|
9
|
-
|
|
10
|
-
- [View the latest releases](https://github.com/justifi-tech/web-component-library/releases)
|
|
11
|
-
- [Browse the `packages/webcomponents/CHANGELOG.md` file](https://github.com/justifi-tech/web-component-library/blob/main/packages/webcomponents/CHANGELOG.md)
|
|
12
|
-
- [Install the newest version from npm](https://www.npmjs.com/package/@justifi/webcomponents)
|
|
13
|
-
|
|
14
|
-
> Looking for upgrade guidance? Each release entry documents breaking changes,
|
|
15
|
-
> deprecations, and migration notes so you can copy the relevant snippets into
|
|
16
|
-
> your internal runbooks.
|
|
17
|
-
|