@justifi/webcomponents 6.0.0-rc.4 → 6.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-CPuq_15r.js → Api-y2G49jOh.js} +1 -1
- package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BVZHsa6Z.js} +5 -4
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-C3BdUPlm.js → business.service-D5IhSyRJ.js} +2 -2
- package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +6 -6
- package/dist/cjs/{check-pkg-version-BNVGE27p.js → check-pkg-version-V7aKSlBk.js} +9 -3
- package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-4aS641tN.js} +2 -2
- package/dist/cjs/{checkout.store-CV_fuGQw.js → checkout.store-Ctwy9ahZ.js} +5 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-B_gpjGhs.js} +2 -2
- package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-64ciJH0r.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- 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-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- 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_2.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-DE5xUUpt.js} +2 -2
- package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-CH477rHs.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
- package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
- package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
- package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
- package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -6
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +781 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +20 -20
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-form.cjs.entry.js +12 -12
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1422 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +16 -45
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +15 -11
- package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-BKILqyp3.js → package-Dg5ELZpu.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
- package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
- package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service--kzMop3L.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
- package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-DFRtk-T9.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-D3omzNG_.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
- package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-DE3t0x93.js} +2 -2
- package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
- package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
- package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
- package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B1LJitwE.js} +4 -4
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-BOvYfpQW.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
- package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
- package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-DYt7exFQ.js} +2 -2
- package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/ApplePay.js +119 -0
- package/dist/collection/api/Payment.js +3 -2
- package/dist/collection/api/services/apple-pay.service.js +293 -0
- package/dist/collection/api/services/plaid.service.js +20 -0
- package/dist/collection/assets/plaid-icon.svg +1 -0
- package/dist/collection/collection-manifest.json +3 -1
- 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 +7 -44
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/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/insurance/season-interruption/season-interruption-insurance.js +4 -0
- package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +153 -118
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +515 -0
- 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/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +864 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +123 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +11 -5
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +3 -2
- 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/tokenize-payment-method.js +65 -37
- package/dist/collection/store/checkout.store.js +4 -1
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- 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/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-skeleton.js +1 -1
- package/dist/collection/utils/check-pkg-version.js +6 -0
- package/dist/docs.json +964 -235
- package/dist/esm/{Api-N_veT2p6.js → Api-C1I68Tfr.js} +1 -1
- package/dist/esm/{Refund-Di6J0oN2.js → Refund-kKW8S1h6.js} +4 -3
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-D_mzXSCQ.js → badge-DSYSJcRy.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -9
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-Bdvhdc_d.js → business.service-B3wlBl1x.js} +2 -2
- package/dist/esm/{button-CeR8qVS3.js → button-CpllL0At.js} +2 -2
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-CaWUVat7.js → check-pkg-version-DFYosyo9.js} +9 -3
- package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-KDp7tISm.js} +2 -2
- package/dist/esm/{checkout.store-B60siz2l.js → checkout.store-sQSQqMAD.js} +5 -2
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-QOdiLpak.js} +3 -3
- package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +4 -4
- package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-DEZEPwn-.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-R7U07nTg.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-CRLH-2f7.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +7 -7
- package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-CYASKLT7.js} +2 -2
- package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-E0PYy_pc.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-E-hEi3wF.js → header-1-3M9If0gM.js} +2 -2
- package/dist/esm/{header-3-Dm7M85kz.js → header-3-CWa41YWq.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
- package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
- package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-CTalqbNa.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -7
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +8 -8
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-apple-pay.entry.js +779 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +21 -21
- package/dist/esm/justifi-business-details.entry.js +10 -10
- package/dist/esm/justifi-business-form.entry.js +13 -13
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +1414 -0
- package/dist/esm/justifi-checkout.entry.js +17 -46
- package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list.entry.js +14 -14
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +9 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
- package/dist/esm/justifi-order-terminals.entry.js +13 -13
- package/dist/esm/justifi-owner-form_3.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +11 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payments-list.entry.js +14 -14
- package/dist/esm/justifi-payout-details.entry.js +10 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payouts-list.entry.js +15 -15
- package/dist/esm/justifi-refund-payment.entry.js +13 -13
- package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -12
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
- package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminals-list.entry.js +14 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-BF-uL8B4.js → package-uY_jN8Gg.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -15
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-BWO84KlP.js → payment.service-uJpJaX2Z.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-5orNU2Rd.js} +2 -2
- package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-B0uyodyJ.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +11 -11
- package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-ClUgtbbb.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-CZPwa2AE.js} +2 -2
- package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-CaCSX_0q.js} +3 -3
- package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-qMb0_Cjy.js} +2 -2
- package/dist/esm/{spinner-XBq6mVJW.js → spinner-DUzyWLhj.js} +2 -2
- package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
- package/dist/esm/{table-qqt2Ew5y.js → table-Br3n9Xu-.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-DPtof5Zb.js} +5 -5
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-ClNtE3e-.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
- package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-ClkR_jrC.js} +3 -3
- package/dist/esm/{utils-kWaZhFAd.js → utils-Dg6gMUTv.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Analytics.js +6 -0
- package/dist/module/ModularCheckout.js +30 -0
- package/dist/module/Refund.js +4 -3
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +4 -1
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- 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-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-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 +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +817 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +51 -76
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
- package/dist/module/justifi-plaid-payment-method.js +6 -0
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +4 -0
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/modular-checkout.js +149 -97
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +693 -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/saved-payment-methods.js +11 -5
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +47 -38
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/Checkout.d.ts +4 -0
- package/dist/types/api/Payment.d.ts +3 -4
- package/dist/types/api/services/apple-pay.service.d.ts +55 -0
- package/dist/types/api/services/plaid.service.d.ts +12 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -7
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +23 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +6 -3
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +38 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +7 -5
- package/dist/types/components.d.ts +159 -3
- package/dist/types/store/checkout.store.d.ts +5 -1
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/webcomponents/{p-56980ef3.entry.js → p-040e8524.entry.js} +1 -1
- package/dist/webcomponents/{p-DD74a16D.js → p-0mMX1Zv4.js} +1 -1
- package/dist/webcomponents/{p-29b6f15a.entry.js → p-14ff3155.entry.js} +1 -1
- package/dist/webcomponents/{p-904a95e5.entry.js → p-15705e8a.entry.js} +1 -1
- package/dist/webcomponents/p-16f94e08.entry.js +1 -0
- package/dist/webcomponents/p-1c5be37e.entry.js +1 -0
- package/dist/webcomponents/p-255b28fb.entry.js +1 -0
- package/dist/webcomponents/p-26a8b07c.entry.js +1 -0
- package/dist/webcomponents/p-26ce3346.entry.js +1 -0
- package/dist/webcomponents/{p-79055216.entry.js → p-28618e6f.entry.js} +1 -1
- package/dist/webcomponents/{p-518a9519.entry.js → p-2de08ab2.entry.js} +1 -1
- package/dist/webcomponents/p-30c1f265.entry.js +1 -0
- package/dist/webcomponents/p-3aecd2cd.entry.js +1 -0
- package/dist/webcomponents/{p-f4f3cae8.entry.js → p-3bf63d1e.entry.js} +1 -1
- package/dist/webcomponents/p-3c5d92d9.entry.js +1 -0
- package/dist/webcomponents/{p-a0573ecc.entry.js → p-3e025b84.entry.js} +1 -1
- package/dist/webcomponents/{p-413236be.entry.js → p-3e4db664.entry.js} +1 -1
- package/dist/webcomponents/p-3e667b07.entry.js +1 -0
- package/dist/webcomponents/{p-0b790fa4.entry.js → p-4213d10e.entry.js} +4 -4
- package/dist/webcomponents/{p-a8205044.entry.js → p-44450a94.entry.js} +1 -1
- package/dist/webcomponents/p-4723f35b.entry.js +1 -0
- package/dist/webcomponents/{p-d075bd72.entry.js → p-51801ae5.entry.js} +1 -1
- package/dist/webcomponents/p-52098283.entry.js +1 -0
- package/dist/webcomponents/{p-ab308ee3.entry.js → p-54ca3070.entry.js} +1 -1
- package/dist/webcomponents/p-5580e6ca.entry.js +1 -0
- package/dist/webcomponents/p-57dde36e.entry.js +1 -0
- package/dist/webcomponents/p-5bc6f5ca.entry.js +1 -0
- package/dist/webcomponents/p-5f87add5.entry.js +1 -0
- package/dist/webcomponents/{p-f7e62bfa.entry.js → p-60206d9c.entry.js} +1 -1
- package/dist/webcomponents/{p-6e18d13f.entry.js → p-613421d4.entry.js} +1 -1
- package/dist/webcomponents/{p-3d85d046.entry.js → p-6255c685.entry.js} +1 -1
- package/dist/webcomponents/p-7089fb85.entry.js +1 -0
- package/dist/webcomponents/{p-48bccf3b.entry.js → p-70f51444.entry.js} +1 -1
- package/dist/webcomponents/p-72dda22b.entry.js +1 -0
- package/dist/webcomponents/{p-b0bfa20f.entry.js → p-7cf87637.entry.js} +1 -1
- package/dist/webcomponents/p-87884ca5.entry.js +1 -0
- package/dist/webcomponents/p-88905a54.entry.js +1 -0
- package/dist/webcomponents/p-8990707a.entry.js +1 -0
- package/dist/webcomponents/p-8b7cbdbf.entry.js +1 -0
- package/dist/webcomponents/p-8cca8903.entry.js +1 -0
- package/dist/webcomponents/{p-15777cfe.entry.js → p-8ff839a4.entry.js} +1 -1
- package/dist/webcomponents/{p-724b0361.entry.js → p-90a1ba6a.entry.js} +1 -1
- package/dist/webcomponents/{p-57143978.entry.js → p-95cbb655.entry.js} +1 -1
- package/dist/webcomponents/{p-befda39d.entry.js → p-97c0dde4.entry.js} +1 -1
- package/dist/webcomponents/p-9846b23d.entry.js +1 -0
- package/dist/webcomponents/p-98cffba9.entry.js +1 -0
- package/dist/webcomponents/{p-738e0511.entry.js → p-9a2c044f.entry.js} +1 -1
- package/dist/webcomponents/p-9f0b1bea.entry.js +1 -0
- package/dist/webcomponents/p-9f5c9e41.entry.js +1 -0
- package/dist/webcomponents/p-B5Rc83j1.js +1 -0
- package/dist/webcomponents/p-B71k50jz.js +1 -0
- package/dist/webcomponents/p-B8iBcmNu.js +1 -0
- package/dist/webcomponents/p-BEPUC3Po.js +1 -0
- package/dist/webcomponents/p-BP7op0vq.js +1 -0
- package/dist/webcomponents/{p-I8XpD1TX.js → p-BPtcGAzB.js} +1 -1
- package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
- package/dist/webcomponents/{p-BTkXk7ol.js → p-BRLwUSZk.js} +1 -1
- package/dist/webcomponents/p-BSt6p1oq.js +1 -0
- package/dist/webcomponents/p-BY1mRAvj.js +1 -0
- package/dist/webcomponents/{p-YND5pTuF.js → p-Bb-6bNcq.js} +1 -1
- package/dist/webcomponents/p-BbZwa5UI.js +1 -0
- package/dist/webcomponents/p-BfM6X7lF.js +1 -0
- package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
- package/dist/webcomponents/{p-DWUnL_zj.js → p-Bu1jU017.js} +1 -1
- package/dist/webcomponents/{p-BeszVz87.js → p-C5id7s_l.js} +1 -1
- package/dist/webcomponents/{p-Bz164TKZ.js → p-CB0mCq1M.js} +1 -1
- package/dist/webcomponents/p-CaAVuW6B.js +1 -0
- package/dist/webcomponents/p-CpaS1Lex.js +1 -0
- package/dist/webcomponents/{p-Bpcb3SsP.js → p-CvG-itHC.js} +1 -1
- package/dist/webcomponents/{p-BySyDTv5.js → p-D2_iJUrZ.js} +1 -1
- package/dist/webcomponents/p-DAED83Ew.js +1 -0
- package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
- package/dist/webcomponents/p-DDUmOl3v.js +1 -0
- package/dist/webcomponents/{p-Dvxpy_P1.js → p-DGmp4ErD.js} +1 -1
- package/dist/webcomponents/p-DIDloHpm.js +1 -0
- package/dist/webcomponents/{p-DO3INvI2.js → p-DNo0OPOP.js} +1 -1
- package/dist/webcomponents/{p-CsNubTqD.js → p-DVBbk00Z.js} +1 -1
- package/dist/webcomponents/{p-Bb6FBEPP.js → p-Dc1CS9Mi.js} +1 -1
- package/dist/webcomponents/p-Dgflaz6J.js +1 -0
- package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
- package/dist/webcomponents/p-DsZZxRXY.js +1 -0
- package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
- package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/p-a1d3bb81.entry.js +1 -0
- package/dist/webcomponents/p-a347d1b1.entry.js +1 -0
- package/dist/webcomponents/p-a9957ca5.entry.js +1 -0
- package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
- package/dist/webcomponents/p-abd0e71f.entry.js +1 -0
- package/dist/webcomponents/{p-BbYVgLcf.js → p-b21ncS7l.js} +1 -1
- package/dist/webcomponents/{p-DWOKxG7j.js → p-bjogwLgt.js} +1 -1
- package/dist/webcomponents/p-c2bceb15.entry.js +1 -0
- package/dist/webcomponents/p-c44325f8.entry.js +1 -0
- package/dist/webcomponents/p-c874ca2b.entry.js +1 -0
- package/dist/webcomponents/p-caac63bf.entry.js +1 -0
- package/dist/webcomponents/p-cbc96430.entry.js +1 -0
- package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
- package/dist/webcomponents/p-d72e8541.entry.js +1 -0
- package/dist/webcomponents/{p-14d66df2.entry.js → p-dc1efbab.entry.js} +1 -1
- package/dist/webcomponents/p-eP3fmhta.js +1 -0
- package/dist/webcomponents/{p-9c5b0b94.entry.js → p-ecd9f0e9.entry.js} +1 -1
- package/dist/webcomponents/p-f13ae573.entry.js +1 -0
- package/dist/webcomponents/{p-c5b48e8d.entry.js → p-f1cba43c.entry.js} +1 -1
- package/dist/webcomponents/p-f4c4c248.entry.js +1 -0
- package/dist/webcomponents/p-f680e617.entry.js +1 -0
- package/dist/webcomponents/{p-98579723.entry.js → p-fb228106.entry.js} +1 -1
- package/dist/webcomponents/{p-f4645aef.entry.js → p-fd4ffaa2.entry.js} +1 -1
- package/dist/webcomponents/{p-BisQ61nK.js → p-qWQmu-fb.js} +1 -1
- package/dist/webcomponents/p-sw5RO19U.js +1 -0
- package/dist/webcomponents/p-uY_jN8Gg.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -698
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
- package/dist/esm/justifi-checkout-summary_6.entry.js +0 -691
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
- package/dist/webcomponents/p-0cab7d5d.entry.js +0 -1
- package/dist/webcomponents/p-0e287092.entry.js +0 -1
- package/dist/webcomponents/p-145bb9c4.entry.js +0 -1
- package/dist/webcomponents/p-1975406a.entry.js +0 -1
- package/dist/webcomponents/p-1ffbf771.entry.js +0 -1
- package/dist/webcomponents/p-2a59547b.entry.js +0 -1
- package/dist/webcomponents/p-2da63719.entry.js +0 -1
- package/dist/webcomponents/p-35bbfbf8.entry.js +0 -1
- package/dist/webcomponents/p-43d693a3.entry.js +0 -1
- package/dist/webcomponents/p-4ae2a0b9.entry.js +0 -1
- package/dist/webcomponents/p-4b795b77.entry.js +0 -1
- package/dist/webcomponents/p-53c81d62.entry.js +0 -1
- package/dist/webcomponents/p-5477c449.entry.js +0 -1
- package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
- package/dist/webcomponents/p-614fcef6.entry.js +0 -1
- package/dist/webcomponents/p-70ff3b10.entry.js +0 -1
- package/dist/webcomponents/p-739d6f13.entry.js +0 -1
- package/dist/webcomponents/p-7WIgS5RM.js +0 -1
- package/dist/webcomponents/p-7b9008f1.entry.js +0 -1
- package/dist/webcomponents/p-84ce3bae.entry.js +0 -1
- package/dist/webcomponents/p-8a5e168d.entry.js +0 -1
- package/dist/webcomponents/p-8f31a0c5.entry.js +0 -1
- package/dist/webcomponents/p-9ccd19f5.entry.js +0 -1
- package/dist/webcomponents/p-9f289c31.entry.js +0 -1
- package/dist/webcomponents/p-BC8YDY7M.js +0 -1
- package/dist/webcomponents/p-BF-uL8B4.js +0 -1
- package/dist/webcomponents/p-BVD7g3cE.js +0 -1
- package/dist/webcomponents/p-Bt388eye.js +0 -1
- package/dist/webcomponents/p-C1fMfnu0.js +0 -1
- package/dist/webcomponents/p-CCME-fyU.js +0 -1
- package/dist/webcomponents/p-CLwzqWk2.js +0 -1
- package/dist/webcomponents/p-CVQyw7ao.js +0 -1
- package/dist/webcomponents/p-C_CXv7AN.js +0 -1
- package/dist/webcomponents/p-CwZKT93w.js +0 -1
- package/dist/webcomponents/p-D599ZMGU.js +0 -1
- package/dist/webcomponents/p-DaDsBt65.js +0 -1
- package/dist/webcomponents/p-JgbsbAhz.js +0 -1
- package/dist/webcomponents/p-UD2JhYS2.js +0 -1
- package/dist/webcomponents/p-WEguiGt1.js +0 -1
- package/dist/webcomponents/p-a33ea645.entry.js +0 -1
- package/dist/webcomponents/p-b93377a7.entry.js +0 -1
- package/dist/webcomponents/p-ba018d57.entry.js +0 -1
- package/dist/webcomponents/p-bafe873d.entry.js +0 -1
- package/dist/webcomponents/p-be06d86a.entry.js +0 -1
- package/dist/webcomponents/p-c5dabaf4.entry.js +0 -1
- package/dist/webcomponents/p-cea8e40e.entry.js +0 -1
- package/dist/webcomponents/p-d7720819.entry.js +0 -1
- package/dist/webcomponents/p-df4f2af9.entry.js +0 -1
- package/dist/webcomponents/p-e1ba5735.entry.js +0 -1
- package/dist/webcomponents/p-e2267656.entry.js +0 -1
- package/dist/webcomponents/p-e4e30e84.entry.js +0 -1
- package/dist/webcomponents/p-e81c5d79.entry.js +0 -1
- package/dist/webcomponents/p-f200cbda.entry.js +0 -1
- package/dist/webcomponents/p-f7345d66.entry.js +0 -1
- package/dist/webcomponents/p-fd39af50.entry.js +0 -1
- package/dist/webcomponents/p-pska2q1M.js +0 -1
- package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
- package/dist/webcomponents/p-vRhNRfmB.js +0 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
|
@@ -14,11 +14,12 @@ import { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
|
14
14
|
import { BillingFormFields as BillingFormFields1, FormController } from "./components";
|
|
15
15
|
import { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
16
16
|
import { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
17
|
+
import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
17
18
|
import { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
18
19
|
import { FormController as FormController1 } from "./ui-components/form/form";
|
|
19
20
|
import { Dispute, IDispute } from "./api/Dispute";
|
|
20
|
-
import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
21
21
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
22
|
+
import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
22
23
|
import { Identity } from "./api/Identity";
|
|
23
24
|
import { PaginationProps } from "./ui-components/pagination-menu/pagination-menu";
|
|
24
25
|
export { Business, IAdditionalQuestions, IAddress } from "./api/Business";
|
|
@@ -30,11 +31,12 @@ export { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
|
30
31
|
export { BillingFormFields as BillingFormFields1, FormController } from "./components";
|
|
31
32
|
export { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
32
33
|
export { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
34
|
+
export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
33
35
|
export { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
34
36
|
export { FormController as FormController1 } from "./ui-components/form/form";
|
|
35
37
|
export { Dispute, IDispute } from "./api/Dispute";
|
|
36
|
-
export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
37
38
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
39
|
+
export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
38
40
|
export { Identity } from "./api/Identity";
|
|
39
41
|
export { PaginationProps } from "./ui-components/pagination-menu/pagination-menu";
|
|
40
42
|
export namespace Components {
|
|
@@ -276,6 +278,43 @@ export namespace Components {
|
|
|
276
278
|
"documentErrors": any;
|
|
277
279
|
"validateAndSubmit": (onSuccess: (formData: any, documentList: DisputeEvidenceDocument[], formStep: DisputeResponseFormStep) => void) => Promise<void>;
|
|
278
280
|
}
|
|
281
|
+
interface JustifiApplePay {
|
|
282
|
+
"abort": () => Promise<void>;
|
|
283
|
+
/**
|
|
284
|
+
* @default ApplePayButtonStyle.BLACK
|
|
285
|
+
*/
|
|
286
|
+
"buttonStyle": ApplePayButtonStyle;
|
|
287
|
+
/**
|
|
288
|
+
* @default ApplePayButtonType.PLAIN
|
|
289
|
+
*/
|
|
290
|
+
"buttonType": ApplePayButtonType;
|
|
291
|
+
/**
|
|
292
|
+
* @default "US"
|
|
293
|
+
*/
|
|
294
|
+
"countryCode": string;
|
|
295
|
+
/**
|
|
296
|
+
* @default false
|
|
297
|
+
*/
|
|
298
|
+
"disabled": boolean;
|
|
299
|
+
"getPaymentMethods": () => Promise<string[]>;
|
|
300
|
+
/**
|
|
301
|
+
* @default "dev-checkout.justifi-staging.com"
|
|
302
|
+
*/
|
|
303
|
+
"initiativeContext": string;
|
|
304
|
+
"isSupported": () => Promise<boolean>;
|
|
305
|
+
/**
|
|
306
|
+
* @default "JustiFi Checkout"
|
|
307
|
+
*/
|
|
308
|
+
"merchantDisplayName": string;
|
|
309
|
+
/**
|
|
310
|
+
* @default "merchant.com.staging-justifi.checkout-dev"
|
|
311
|
+
*/
|
|
312
|
+
"merchantIdentifier": string;
|
|
313
|
+
/**
|
|
314
|
+
* @default true
|
|
315
|
+
*/
|
|
316
|
+
"showSkeleton": boolean;
|
|
317
|
+
}
|
|
279
318
|
interface JustifiBankAccountBillingFormSimple {
|
|
280
319
|
"fill": (fields: BillingFormFields) => Promise<void>;
|
|
281
320
|
"getValues": () => Promise<BillingFormFields>;
|
|
@@ -598,7 +637,6 @@ export namespace Components {
|
|
|
598
637
|
* @default false
|
|
599
638
|
*/
|
|
600
639
|
"savePaymentMethod"?: boolean;
|
|
601
|
-
"setSelectedPaymentMethod": (paymentMethodId: string) => Promise<void>;
|
|
602
640
|
"submitCheckout": (submitCheckoutArgs?: BillingFormFields1) => Promise<void>;
|
|
603
641
|
"validate": () => Promise<boolean>;
|
|
604
642
|
}
|
|
@@ -720,6 +758,17 @@ export namespace Components {
|
|
|
720
758
|
"createdAfter"?: string;
|
|
721
759
|
"createdBefore"?: string;
|
|
722
760
|
}
|
|
761
|
+
interface JustifiPlaidPaymentMethod {
|
|
762
|
+
"deselect": () => Promise<void>;
|
|
763
|
+
"getErrorInfo": () => Promise<PlaidError | null>;
|
|
764
|
+
"getPaymentToken": () => Promise<string | undefined>;
|
|
765
|
+
"isCurrentlySelected": () => Promise<boolean>;
|
|
766
|
+
"isReadyForAuthentication": () => Promise<boolean>;
|
|
767
|
+
"reset": () => Promise<void>;
|
|
768
|
+
"resolvePaymentMethod": () => Promise<PaymentMethodPayload>;
|
|
769
|
+
"retry": () => Promise<void>;
|
|
770
|
+
"setSelected": (selected: boolean) => Promise<void>;
|
|
771
|
+
}
|
|
723
772
|
interface JustifiProductOrService {
|
|
724
773
|
"disputeResponse": any;
|
|
725
774
|
/**
|
|
@@ -844,6 +893,7 @@ export namespace Components {
|
|
|
844
893
|
* @default 'Submit'
|
|
845
894
|
*/
|
|
846
895
|
"submitButtonText"?: string;
|
|
896
|
+
"tokenize": () => Promise<any>;
|
|
847
897
|
"tokenizePaymentMethod": (event?: MouseEvent) => Promise<PaymentMethodPayload>;
|
|
848
898
|
"validate": () => Promise<ValidationResult>;
|
|
849
899
|
}
|
|
@@ -1010,6 +1060,10 @@ export interface JustifiAdditionalQuestionsFormStepCoreCustomEvent<T> extends Cu
|
|
|
1010
1060
|
detail: T;
|
|
1011
1061
|
target: HTMLJustifiAdditionalQuestionsFormStepCoreElement;
|
|
1012
1062
|
}
|
|
1063
|
+
export interface JustifiApplePayCustomEvent<T> extends CustomEvent<T> {
|
|
1064
|
+
detail: T;
|
|
1065
|
+
target: HTMLJustifiApplePayElement;
|
|
1066
|
+
}
|
|
1013
1067
|
export interface JustifiBusinessBankAccountFormStepCustomEvent<T> extends CustomEvent<T> {
|
|
1014
1068
|
detail: T;
|
|
1015
1069
|
target: HTMLJustifiBusinessBankAccountFormStepElement;
|
|
@@ -1138,6 +1192,10 @@ export interface JustifiPayoutsListCustomEvent<T> extends CustomEvent<T> {
|
|
|
1138
1192
|
detail: T;
|
|
1139
1193
|
target: HTMLJustifiPayoutsListElement;
|
|
1140
1194
|
}
|
|
1195
|
+
export interface JustifiPlaidPaymentMethodCustomEvent<T> extends CustomEvent<T> {
|
|
1196
|
+
detail: T;
|
|
1197
|
+
target: HTMLJustifiPlaidPaymentMethodElement;
|
|
1198
|
+
}
|
|
1141
1199
|
export interface JustifiRadioListItemCustomEvent<T> extends CustomEvent<T> {
|
|
1142
1200
|
detail: T;
|
|
1143
1201
|
target: HTMLJustifiRadioListItemElement;
|
|
@@ -1625,6 +1683,31 @@ declare global {
|
|
|
1625
1683
|
prototype: HTMLJustifiAdditionalStatementElement;
|
|
1626
1684
|
new (): HTMLJustifiAdditionalStatementElement;
|
|
1627
1685
|
};
|
|
1686
|
+
interface HTMLJustifiApplePayElementEventMap {
|
|
1687
|
+
"applePayStarted": void;
|
|
1688
|
+
"applePayCompleted": {
|
|
1689
|
+
success: boolean;
|
|
1690
|
+
token?: IApplePayToken;
|
|
1691
|
+
paymentMethodId?: string;
|
|
1692
|
+
error?: any;
|
|
1693
|
+
};
|
|
1694
|
+
"applePayCancelled": void;
|
|
1695
|
+
"applePayError": { error: string };
|
|
1696
|
+
}
|
|
1697
|
+
interface HTMLJustifiApplePayElement extends Components.JustifiApplePay, HTMLStencilElement {
|
|
1698
|
+
addEventListener<K extends keyof HTMLJustifiApplePayElementEventMap>(type: K, listener: (this: HTMLJustifiApplePayElement, ev: JustifiApplePayCustomEvent<HTMLJustifiApplePayElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1699
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1700
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1701
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1702
|
+
removeEventListener<K extends keyof HTMLJustifiApplePayElementEventMap>(type: K, listener: (this: HTMLJustifiApplePayElement, ev: JustifiApplePayCustomEvent<HTMLJustifiApplePayElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1703
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1704
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1705
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1706
|
+
}
|
|
1707
|
+
var HTMLJustifiApplePayElement: {
|
|
1708
|
+
prototype: HTMLJustifiApplePayElement;
|
|
1709
|
+
new (): HTMLJustifiApplePayElement;
|
|
1710
|
+
};
|
|
1628
1711
|
interface HTMLJustifiBankAccountBillingFormSimpleElement extends Components.JustifiBankAccountBillingFormSimple, HTMLStencilElement {
|
|
1629
1712
|
}
|
|
1630
1713
|
var HTMLJustifiBankAccountBillingFormSimpleElement: {
|
|
@@ -2354,6 +2437,25 @@ declare global {
|
|
|
2354
2437
|
prototype: HTMLJustifiPayoutsListFiltersElement;
|
|
2355
2438
|
new (): HTMLJustifiPayoutsListFiltersElement;
|
|
2356
2439
|
};
|
|
2440
|
+
interface HTMLJustifiPlaidPaymentMethodElementEventMap {
|
|
2441
|
+
"paymentMethodOptionSelected": any;
|
|
2442
|
+
"plaidError": any;
|
|
2443
|
+
"plaidErrorRecovered": any;
|
|
2444
|
+
}
|
|
2445
|
+
interface HTMLJustifiPlaidPaymentMethodElement extends Components.JustifiPlaidPaymentMethod, HTMLStencilElement {
|
|
2446
|
+
addEventListener<K extends keyof HTMLJustifiPlaidPaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiPlaidPaymentMethodElement, ev: JustifiPlaidPaymentMethodCustomEvent<HTMLJustifiPlaidPaymentMethodElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2447
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2448
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2449
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2450
|
+
removeEventListener<K extends keyof HTMLJustifiPlaidPaymentMethodElementEventMap>(type: K, listener: (this: HTMLJustifiPlaidPaymentMethodElement, ev: JustifiPlaidPaymentMethodCustomEvent<HTMLJustifiPlaidPaymentMethodElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2451
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2452
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2453
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2454
|
+
}
|
|
2455
|
+
var HTMLJustifiPlaidPaymentMethodElement: {
|
|
2456
|
+
prototype: HTMLJustifiPlaidPaymentMethodElement;
|
|
2457
|
+
new (): HTMLJustifiPlaidPaymentMethodElement;
|
|
2458
|
+
};
|
|
2357
2459
|
interface HTMLJustifiProductOrServiceElement extends Components.JustifiProductOrService, HTMLStencilElement {
|
|
2358
2460
|
}
|
|
2359
2461
|
var HTMLJustifiProductOrServiceElement: {
|
|
@@ -2770,6 +2872,7 @@ declare global {
|
|
|
2770
2872
|
"justifi-additional-questions-form-step": HTMLJustifiAdditionalQuestionsFormStepElement;
|
|
2771
2873
|
"justifi-additional-questions-form-step-core": HTMLJustifiAdditionalQuestionsFormStepCoreElement;
|
|
2772
2874
|
"justifi-additional-statement": HTMLJustifiAdditionalStatementElement;
|
|
2875
|
+
"justifi-apple-pay": HTMLJustifiApplePayElement;
|
|
2773
2876
|
"justifi-bank-account-billing-form-simple": HTMLJustifiBankAccountBillingFormSimpleElement;
|
|
2774
2877
|
"justifi-bank-account-form": HTMLJustifiBankAccountFormElement;
|
|
2775
2878
|
"justifi-billing-form": HTMLJustifiBillingFormElement;
|
|
@@ -2827,6 +2930,7 @@ declare global {
|
|
|
2827
2930
|
"justifi-payout-transactions-list": HTMLJustifiPayoutTransactionsListElement;
|
|
2828
2931
|
"justifi-payouts-list": HTMLJustifiPayoutsListElement;
|
|
2829
2932
|
"justifi-payouts-list-filters": HTMLJustifiPayoutsListFiltersElement;
|
|
2933
|
+
"justifi-plaid-payment-method": HTMLJustifiPlaidPaymentMethodElement;
|
|
2830
2934
|
"justifi-product-or-service": HTMLJustifiProductOrServiceElement;
|
|
2831
2935
|
"justifi-radio-list-item": HTMLJustifiRadioListItemElement;
|
|
2832
2936
|
"justifi-refund-payment": HTMLJustifiRefundPaymentElement;
|
|
@@ -3126,6 +3230,49 @@ declare namespace LocalJSX {
|
|
|
3126
3230
|
*/
|
|
3127
3231
|
"documentErrors"?: any;
|
|
3128
3232
|
}
|
|
3233
|
+
interface JustifiApplePay {
|
|
3234
|
+
/**
|
|
3235
|
+
* @default ApplePayButtonStyle.BLACK
|
|
3236
|
+
*/
|
|
3237
|
+
"buttonStyle"?: ApplePayButtonStyle;
|
|
3238
|
+
/**
|
|
3239
|
+
* @default ApplePayButtonType.PLAIN
|
|
3240
|
+
*/
|
|
3241
|
+
"buttonType"?: ApplePayButtonType;
|
|
3242
|
+
/**
|
|
3243
|
+
* @default "US"
|
|
3244
|
+
*/
|
|
3245
|
+
"countryCode"?: string;
|
|
3246
|
+
/**
|
|
3247
|
+
* @default false
|
|
3248
|
+
*/
|
|
3249
|
+
"disabled"?: boolean;
|
|
3250
|
+
/**
|
|
3251
|
+
* @default "dev-checkout.justifi-staging.com"
|
|
3252
|
+
*/
|
|
3253
|
+
"initiativeContext"?: string;
|
|
3254
|
+
/**
|
|
3255
|
+
* @default "JustiFi Checkout"
|
|
3256
|
+
*/
|
|
3257
|
+
"merchantDisplayName"?: string;
|
|
3258
|
+
/**
|
|
3259
|
+
* @default "merchant.com.staging-justifi.checkout-dev"
|
|
3260
|
+
*/
|
|
3261
|
+
"merchantIdentifier"?: string;
|
|
3262
|
+
"onApplePayCancelled"?: (event: JustifiApplePayCustomEvent<void>) => void;
|
|
3263
|
+
"onApplePayCompleted"?: (event: JustifiApplePayCustomEvent<{
|
|
3264
|
+
success: boolean;
|
|
3265
|
+
token?: IApplePayToken;
|
|
3266
|
+
paymentMethodId?: string;
|
|
3267
|
+
error?: any;
|
|
3268
|
+
}>) => void;
|
|
3269
|
+
"onApplePayError"?: (event: JustifiApplePayCustomEvent<{ error: string }>) => void;
|
|
3270
|
+
"onApplePayStarted"?: (event: JustifiApplePayCustomEvent<void>) => void;
|
|
3271
|
+
/**
|
|
3272
|
+
* @default true
|
|
3273
|
+
*/
|
|
3274
|
+
"showSkeleton"?: boolean;
|
|
3275
|
+
}
|
|
3129
3276
|
interface JustifiBankAccountBillingFormSimple {
|
|
3130
3277
|
"legend"?: string;
|
|
3131
3278
|
}
|
|
@@ -3593,6 +3740,11 @@ declare namespace LocalJSX {
|
|
|
3593
3740
|
"createdAfter"?: string;
|
|
3594
3741
|
"createdBefore"?: string;
|
|
3595
3742
|
}
|
|
3743
|
+
interface JustifiPlaidPaymentMethod {
|
|
3744
|
+
"onPaymentMethodOptionSelected"?: (event: JustifiPlaidPaymentMethodCustomEvent<any>) => void;
|
|
3745
|
+
"onPlaidError"?: (event: JustifiPlaidPaymentMethodCustomEvent<any>) => void;
|
|
3746
|
+
"onPlaidErrorRecovered"?: (event: JustifiPlaidPaymentMethodCustomEvent<any>) => void;
|
|
3747
|
+
}
|
|
3596
3748
|
interface JustifiProductOrService {
|
|
3597
3749
|
"disputeResponse"?: any;
|
|
3598
3750
|
/**
|
|
@@ -3852,6 +4004,7 @@ declare namespace LocalJSX {
|
|
|
3852
4004
|
"justifi-additional-questions-form-step": JustifiAdditionalQuestionsFormStep;
|
|
3853
4005
|
"justifi-additional-questions-form-step-core": JustifiAdditionalQuestionsFormStepCore;
|
|
3854
4006
|
"justifi-additional-statement": JustifiAdditionalStatement;
|
|
4007
|
+
"justifi-apple-pay": JustifiApplePay;
|
|
3855
4008
|
"justifi-bank-account-billing-form-simple": JustifiBankAccountBillingFormSimple;
|
|
3856
4009
|
"justifi-bank-account-form": JustifiBankAccountForm;
|
|
3857
4010
|
"justifi-billing-form": JustifiBillingForm;
|
|
@@ -3909,6 +4062,7 @@ declare namespace LocalJSX {
|
|
|
3909
4062
|
"justifi-payout-transactions-list": JustifiPayoutTransactionsList;
|
|
3910
4063
|
"justifi-payouts-list": JustifiPayoutsList;
|
|
3911
4064
|
"justifi-payouts-list-filters": JustifiPayoutsListFilters;
|
|
4065
|
+
"justifi-plaid-payment-method": JustifiPlaidPaymentMethod;
|
|
3912
4066
|
"justifi-product-or-service": JustifiProductOrService;
|
|
3913
4067
|
"justifi-radio-list-item": JustifiRadioListItem;
|
|
3914
4068
|
"justifi-refund-payment": JustifiRefundPayment;
|
|
@@ -3978,6 +4132,7 @@ declare module "@stencil/core" {
|
|
|
3978
4132
|
"justifi-additional-questions-form-step": LocalJSX.JustifiAdditionalQuestionsFormStep & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsFormStepElement>;
|
|
3979
4133
|
"justifi-additional-questions-form-step-core": LocalJSX.JustifiAdditionalQuestionsFormStepCore & JSXBase.HTMLAttributes<HTMLJustifiAdditionalQuestionsFormStepCoreElement>;
|
|
3980
4134
|
"justifi-additional-statement": LocalJSX.JustifiAdditionalStatement & JSXBase.HTMLAttributes<HTMLJustifiAdditionalStatementElement>;
|
|
4135
|
+
"justifi-apple-pay": LocalJSX.JustifiApplePay & JSXBase.HTMLAttributes<HTMLJustifiApplePayElement>;
|
|
3981
4136
|
"justifi-bank-account-billing-form-simple": LocalJSX.JustifiBankAccountBillingFormSimple & JSXBase.HTMLAttributes<HTMLJustifiBankAccountBillingFormSimpleElement>;
|
|
3982
4137
|
"justifi-bank-account-form": LocalJSX.JustifiBankAccountForm & JSXBase.HTMLAttributes<HTMLJustifiBankAccountFormElement>;
|
|
3983
4138
|
"justifi-billing-form": LocalJSX.JustifiBillingForm & JSXBase.HTMLAttributes<HTMLJustifiBillingFormElement>;
|
|
@@ -4040,6 +4195,7 @@ declare module "@stencil/core" {
|
|
|
4040
4195
|
"justifi-payout-transactions-list": LocalJSX.JustifiPayoutTransactionsList & JSXBase.HTMLAttributes<HTMLJustifiPayoutTransactionsListElement>;
|
|
4041
4196
|
"justifi-payouts-list": LocalJSX.JustifiPayoutsList & JSXBase.HTMLAttributes<HTMLJustifiPayoutsListElement>;
|
|
4042
4197
|
"justifi-payouts-list-filters": LocalJSX.JustifiPayoutsListFilters & JSXBase.HTMLAttributes<HTMLJustifiPayoutsListFiltersElement>;
|
|
4198
|
+
"justifi-plaid-payment-method": LocalJSX.JustifiPlaidPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiPlaidPaymentMethodElement>;
|
|
4043
4199
|
"justifi-product-or-service": LocalJSX.JustifiProductOrService & JSXBase.HTMLAttributes<HTMLJustifiProductOrServiceElement>;
|
|
4044
4200
|
"justifi-radio-list-item": LocalJSX.JustifiRadioListItem & JSXBase.HTMLAttributes<HTMLJustifiRadioListItemElement>;
|
|
4045
4201
|
"justifi-refund-payment": LocalJSX.JustifiRefundPayment & JSXBase.HTMLAttributes<HTMLJustifiRefundPaymentElement>;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { ICheckoutPaymentMethod } from '../api';
|
|
2
2
|
import { BillingFormFields } from '../components';
|
|
3
|
+
import { PAYMENT_METHODS } from '../components/modular-checkout/ModularCheckout';
|
|
3
4
|
interface IInitialState {
|
|
4
5
|
accountId: string;
|
|
5
6
|
authToken: string;
|
|
6
7
|
billingFormFields: BillingFormFields;
|
|
7
8
|
bnplEnabled: boolean;
|
|
9
|
+
insuranceEnabled: boolean;
|
|
8
10
|
bnplProviderApiVersion: string;
|
|
9
11
|
bnplProviderCheckoutUrl: string;
|
|
10
12
|
bnplProviderClientId: string;
|
|
11
13
|
bnplProviderMode: string;
|
|
12
14
|
checkoutId: string;
|
|
15
|
+
bankAccountVerification?: boolean;
|
|
13
16
|
disableBankAccount: boolean;
|
|
14
17
|
disableBnpl: boolean;
|
|
15
18
|
disableCreditCard: boolean;
|
|
16
19
|
disablePaymentMethodGroup: boolean;
|
|
17
20
|
paymentAmount: number;
|
|
21
|
+
paymentCurrency: string;
|
|
18
22
|
paymentDescription: string;
|
|
19
23
|
paymentMethodGroupId: string | undefined;
|
|
20
24
|
paymentMethods: ICheckoutPaymentMethod[];
|
|
21
25
|
paymentToken?: string;
|
|
22
26
|
savePaymentMethod: boolean;
|
|
23
|
-
selectedPaymentMethod:
|
|
27
|
+
selectedPaymentMethod: PAYMENT_METHODS | undefined;
|
|
24
28
|
totalAmount: number;
|
|
25
29
|
}
|
|
26
30
|
declare const checkoutStore: IInitialState, onChange: import("@stencil/store/dist/types").OnChangeHandler<IInitialState>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FunctionalComponent } from "../stencil-public-runtime";
|
|
2
|
+
import { ApplePayButtonType, ApplePayButtonStyle } from "../api/ApplePay";
|
|
3
|
+
interface ApplePayButtonProps {
|
|
4
|
+
buttonType?: ApplePayButtonType;
|
|
5
|
+
buttonStyle?: ApplePayButtonStyle;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isProcessing?: boolean;
|
|
8
|
+
isAvailable?: boolean;
|
|
9
|
+
width?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
clickHandler?: () => void;
|
|
12
|
+
}
|
|
13
|
+
type ApplePayButtonElementProps = ApplePayButtonProps & {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
export declare const ApplePayButton: FunctionalComponent<ApplePayButtonElementProps>;
|
|
17
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as a,c as s,g as r}from"./p-
|
|
1
|
+
import{r as e,h as t,H as a,c as s,g as r}from"./p-Bn7inNWG.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as i}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as o}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n as l}from"./p-BnjCmwMr.js";import{s as c,d,i as n}from"./p-zdIeCUeh.js";import{Y as f,C as b,aj as h,N as p,ak as m,c as u,l as y,b as k,T as x,a as v}from"./p-RvUQ__Pq.js";import{S as _}from"./p-CaAVuW6B.js";import"./p-CZfYo5-1.js";import{F as j}from"./p-BfM6X7lF.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const g=class{constructor(t){e(this,t)}render(){return t("div",{key:"23f5fa6b191b3feea7677a85a421002642a86f50",class:"row gy-3"},t("div",{key:"da9d9698f15aeb4bb05baef8fb63c630fcff8a82",class:"col-12"},t("form-control-file",{key:"b84a8ec1753210f74989c04b5520f0e94c5a083d",name:"voided_check",label:"Voided Check",documentType:i.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"06d442df900406f122970bde6b2b293f2c9080ee",class:"col-12"},t("form-control-file",{key:"b3dc1d48900c5932c4d59f8b31a323193f0e86b4",name:"bank_statement",label:"Bank Statement",documentType:i.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},T=class{constructor(t){e(this,t)}render(){return t("div",{key:"da4dc9523bca84cdd02f7e5d47e513c426ed90fd",class:"row gy-3"},t("div",{key:"b625a293dec704cbbb132469fdbc8c5d99a660e1",class:"col-12"},t("form-control-text",{key:"b41460ddc605f73faf71233ccbbef7e34e690e5a",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"e5560bcdba399baa2e54441436ef5c67936e9fef",class:"col-12"},t("form-control-text",{key:"18cd16931899f724fd92cb89f1b8d4cd41c5354c",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3bb589db98e5d65022576b602bda41f36e3a90d5",class:"col-12"},t("form-control-text",{key:"c870513b8895add114d5ec588561fa6f33a63514",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"1783e7b4af2b012338fe2e1b4f1faa9b5e086bcd",class:"col-12"},t("form-control-select",{key:"6a9af0f6edeae133dce04b7f829abb802db4ac83",name:"account_type",label:"Account Type",options:o,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3c3ffced96f67320b4c580be6f28dd8ef5d2c109",class:"col-12"},t("form-control-text",{key:"e85df115a9de08ad9abb3237f7bf6c6d23c84150",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:l,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"5a25cb25160aff24d1f62df2115dbd248709141e",class:"col-12"},t("form-control-text",{key:"dfdf7dce470efb8eea65aa6daf562d190963bace",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:l,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},H=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(_,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},c(e.document_type)),t("td",{part:m},`${d(e.created_at)} - ${n(e.created_at)}`))))))))),t("hr",null)):null}},C=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=x),this.isFocused&&(e=v),e}render(){return t(a,{key:"028fa0490ce436410bf0aea234e92c171bf93b25"},t("div",{key:"22d1cf8dd7d5731c8bb4469ecb788afef0a8ec6a",class:"form-group d-flex flex-column"},t("div",{key:"9fe0d7827e5f18b8bec4894aa29f7a9e08e2e139",class:"d-flex align-items-start gap-2"},t("label",{key:"ddc0da46940544d5bcf12304f89f6bebc800e457",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"63cdd224e5075ee49a8795dd0d658c3b218db767",helpText:this.helpText})),t("input",{key:"3cb815fa320b991f7089452bd94e910c3ce910ea",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(j,{key:"03f60fc9c2d42f987b951947f5b189eff623641b",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{g as bank_account_document_form_inputs,T as bank_account_form_inputs,H as business_documents_on_file,C as form_control_file}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t}from"./p-
|
|
1
|
+
import{A as t}from"./p-BPtcGAzB.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const n=t();class e{async fetchBusiness(t,e){return n.get({endpoint:`entities/business/${t}`,authToken:e})}async patchBusiness(t,e,s){return n.patch({endpoint:`entities/business/${e}`,body:s,authToken:t})}}class s{async fetchIdentity(t,e){return n.get({endpoint:`entities/identity/${t}`,authToken:e})}async patchIdentity(t,e,s){return n.patch({endpoint:`entities/identity/${e}`,body:s,authToken:t})}async postIdentity(t,e){return n.post({endpoint:"entities/identity",body:e,authToken:t})}}class i{async postBankAccount(t,e){return n.post({endpoint:"entities/bank_accounts",body:e,authToken:t})}}class o{async postDocumentRecord(t,e){return n.post({endpoint:"entities/document",body:e,authToken:t})}}export{e as B,o as D,s as I,i as a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-Bn7inNWG.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as b,i as m,j as u,k as f,l as g}from"./p-CB0mCq1M.js";import{T as j}from"./p-CZfYo5-1.js";import{c as y,a as k}from"./p-DVBbk00Z.js";import{o as l,g as C}from"./p-eP3fmhta.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-BbZwa5UI.js";import"./p-DDUmOl3v.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,y,k),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"ac27fa8b086e64e53a287f96be1d1212a7c23fc3"},e(r,{key:"965b9e4761f686a254297a753b638952181d9758"},e(h,{key:"41502bb86d87acd8f730f22705d82a2bb4c3787c"},e(o,{key:"9aa770a8bbb3c9623fde336580dcecda0ee6909e"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"ad20f6287a2eefd0aa659925cf4be8a03766c1c2"},e(n,{key:"bdd7d89bed12c4451199b59e2793cc3d4dbc24a8",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"8b89063a5cc78beb42a52375c431e834583ef12a",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"a557b0a68af21a5501139433f980a6c083536d71",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(b,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"0ba995e692b70214b1f63f3fbb7e05e76f229304"},e(u,{key:"25703345e36b46ce3a4cd9d09893c744b6db4d86"},e(f,{key:"07f5df6019322cb80053e4c061a2b5cb6ba7187e",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"daf2dd74a5f24192c9052a2906459a6d2b53544d",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as checkouts_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-Bn7inNWG.js";import{c as i,d as r,e as a}from"./p-5aA7gjr5.js";import{I as o}from"./p-0mMX1Zv4.js";import{F as d}from"./p-CR9D6mKt.js";import{O as c}from"./p-BlJnA265.js";import{i as h}from"./p-PgEzcvI6.js";import{B as n}from"./p-DD0Mvpeu.js";import{V as f}from"./p-RvUQ__Pq.js";import"./p-CZfYo5-1.js";import{B as l}from"./p-XYgDHrVL.js";import{S as m,P as b}from"./p-B-iV5cYd.js";import{u as p,a as u,b as y}from"./p-1ydcg9ti.js";import"./p-Cjcsf8ku.js";import"./p-D2muobcE.js";import"./p-BPtcGAzB.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-BP7op0vq.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CYBR4K2p.js";import"./p-yH3TC3ZQ.js";const v=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}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:"07ad7cd2bb38442dc591c9e3421223294690ee8c",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,ref:e=>this.coreComponent=e})}},j=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.formLoading=t(this,"formLoading"),this.ownerSubmitted=t(this,"ownerSubmitted"),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new c(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?l.updateOwner:l.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:l.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(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new c(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{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 d(h("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"570c20c1fdf79268e6c8193a393515c8602a3a44",onSubmit:this.validateAndSubmit},s("fieldset",{key:"f4f75a735438baef254d4578b779ca16e5080a41"},s("legend",{key:"dc0c83a7ada9f908afec56d7560f7d9d116baa40",class:"fw-semibold fs-5",part:f},this.formTitle),s("br",{key:"5d97c0b38073618aef80ff9576cd57ab0e70d44e"}),s("div",{key:"b15a207a4c4afc1249ce3b8a381e7b57ceb32e7a",class:"row gy-3"},s("owner-form-inputs",{key:"21bd3e9b00580e7293338ad746c189d19ac3d98e",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"b4653d9b78094b15bfba61e3a18ea3703dc53162",class:"d-flex gap-2 justify-content-start"},s(n,{key:"0328aa7af6e3c2f7ed8aa16724dedcb576bb9870",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"e42671667156149d5424243eef1d6675a3bd6506",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"ee7bf4cdb63cdc31df8b307ffb1772e5c0f0348c"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},k=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{u(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){return s("div",{key:"86abe1713fdfd297e88c1fc1734fadb2c9eab966",class:"row gy-3"},s("div",{key:"63a03271f2a777d4cede3b0790e11c7f4108797f",class:"col-12 col-md-8"},s("form-control-text",{key:"b86dd9184dbf50e00e047a733ff708526e32d6dc",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c3850b7425ca0d8a118a6b78933f3a2fbe343124",class:"col-12 col-md-4"},s("form-control-text",{key:"f1f6e801eb36bcae5f2e51f8cd4ea9b7ed6a34a8",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:"b07a8a86dbdef296c9438953ef311ccae3aed23c",class:"col-12 col-md-6"},s("form-control-text",{key:"714ca04b0bf0e5ed1b116b8f4963ba12f7fd6b77",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"46c11c80bb58d0190ff05f1e87ba962443b07c59",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"6da40db9fb8b3e4f3a744cd0426f4e6436350594",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})),s("div",{key:"0960ea2fb399d0098caeabf45347a89c74066f57",class:"col-12 col-md-4"},s("form-control-date",{key:"fe0891a3f42c093d70db1dd1d1a7e121ba3091c1",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"e7cbc519fa6f4fa5b03a0d0b69c7d7f1c42185ff",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"cf2b280c1560bd1a9f80cf81c1543d41bd807233",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:m,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"1755c849992bfd9f459b65b4cf7e967039fdbe27",class:"col-12"},s("justifi-identity-address-form",{key:"ac5372d4a9fad8ee3cfe2af20c11868e8753cc35",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{v as justifi_owner_form,j as owner_form_core,k as owner_form_inputs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as r}from"./p-Bn7inNWG.js";import{A as o}from"./p-BPtcGAzB.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a}from"./p-D2muobcE.js";import{E as n}from"./p-DNo0OPOP.js";import{c as h,J as c}from"./p-bjogwLgt.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-uY_jN8Gg.js";const m=o();class u{async fetchGrossVolumeChartData(t,s){return m.get({endpoint:`account/${t}/reports/gross_volume`,authToken:s})}}const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:t,authToken:s,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(t,s);h.error?e({error:a(h.error),code:p(null===(n=h.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(h.data)}catch(t){const s=p(null==t?void 0:t.code);e({error:a(t),code:s,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_gross_payment_chart}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-Bn7inNWG.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-bjogwLgt.js";import{T as a}from"./p-Bu1jU017.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{e as n}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as h,a as m}from"./p-D2muobcE.js";import{m as c,S as u}from"./p-CvG-itHC.js";import{S as j}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-DGmp4ErD.js";import"./p-uY_jN8Gg.js";import"./p-BPtcGAzB.js";import"./p-zdIeCUeh.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DDUmOl3v.js";import"./p-RvUQ__Pq.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:e,onSuccess:o,onError:p})=>{var a,c;try{const u=await i.fetchTerminals(t,s,e);if(u.error)return p({error:m(u.error),code:h(null===(c=u.error)||void 0===c?void 0:c.code),severity:r.ERROR});{const t=Object.assign({},u.page_info);o({terminals:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=h(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new a}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=c({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"6034706e77de0a703455368eaab0ef0cbbfb5765"},i("terminals-list-core",{key:"b9e3292829be1b48b6f6146b9a97f9060b1540c1",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_terminals_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,c as i,H as s,g as a}from"./p-Bn7inNWG.js";import{z as n,r as o}from"./p-RvUQ__Pq.js";import{f as r}from"./p-zdIeCUeh.js";import{c as h,o as l}from"./p-DAED83Ew.js";import{S as c}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{H as d}from"./p-DIDloHpm.js";import{H as u,b as y,h as m,i as p}from"./p-B71k50jz.js";import{H as M}from"./p-BSt6p1oq.js";import{J as v,c as g}from"./p-bjogwLgt.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{C as f,a as k,b as j}from"./p-Cjcsf8ku.js";import{I as b}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as T,a as w}from"./p-D2muobcE.js";import{C as N}from"./p-B8iBcmNu.js";import{A as D}from"./p-BPtcGAzB.js";import{C as I}from"./p-ZpPDShvP.js";import"./p-CpaS1Lex.js";import"./p-uY_jN8Gg.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const C=class{constructor(e){t(this,e)}render(){return e(c,{key:"db0b903a05629cd6197bb14336fd91881373cbf1"},e("section",{key:"2e1213c4be75677a98fdf98de077201ebff1d3a6"},e("div",{key:"26c3bfc8672511dd5af823426e69b6c0d28dd274"},e("div",{key:"8c9a282d63903b66cf3f93e316bd56f245b9bc1f",part:n},null==h?void 0:h.paymentDescription),e("div",{key:"0729b8adef6ae7bb7a536ad4b5443ed24608ce56"},e("span",{key:"863ee5dc8a0c662a8074a69d388081ec9fc3fb89",part:n},"Total")," ",e("span",{key:"05bf10634b2a166c6b5720beaf0ab76accb8befe",part:n},r(+(null==h?void 0:h.totalAmount)))))))}},A=class{constructor(e){t(this,e),this.levels={h1:d,h2:u,h3:M},this.level="h1"}render(){return e(c,{key:"002dfd5dd8fa47304d9e468e28bdbeb56723913b"},e(this.levels[this.level],{key:"63110d45f87268510cc309d8081f191ef8d4cd8b",text:this.text,class:this.class}))}};var E,x,P;!function(t){t.ECOM="ecom",t.BNPL="bnpl",t.APPLE_PAY="apple_pay"}(E||(E={})),function(t){t.CARD="card",t.BANK_ACCOUNT="bank_account",t.APPLE_PAY="apple_pay",t.GOOGLE_PAY="google_pay",t.SEZZLE="sezzle",t.PLAID="plaid"}(x||(x={})),function(t){t.SAVED_CARD="saved_card",t.NEW_CARD="new_card",t.SAVED_BANK_ACCOUNT="saved_bank_account",t.NEW_BANK_ACCOUNT="new_bank_account",t.APPLE_PAY="apple_pay",t.GOOGLE_PAY="google_pay",t.SEZZLE="sezzle",t.PLAID="plaid"}(P||(P={}));const z=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.paymentMethodChangedEvent=i(this,"payment-method-changed"),this.savePaymentMethod=!1,this.handleApplePayCompleted=t=>{const{success:e,token:i,error:s}=t.detail;e&&i?(h.paymentToken=i,h.selectedPaymentMethod=P.APPLE_PAY,this.submitCheckout()):(console.error("Apple Pay completed but failed:",s),this.errorEvent.emit({message:(null==s?void 0:s.message)||"Apple Pay payment failed",errorCode:k.TOKENIZE_ERROR,severity:f.ERROR}))},this.handleApplePayError=t=>{const{error:e}=t.detail;console.error("Apple Pay error:",e),this.errorEvent.emit({message:e||"Apple Pay error occurred",errorCode:k.TOKENIZE_ERROR,severity:f.ERROR})},this.handleApplePayCancelled=()=>{h.paymentToken=void 0,h.selectedPaymentMethod=void 0}}savePaymentMethodChanged(t){h.savePaymentMethod=t}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),h.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new N};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:a})=>{var n;try{const o=await i.fetchCheckout(t,e);if(o.error)return a({error:w(o.error),code:T(null===(n=o.error)||void 0===n?void 0:n.code),severity:f.ERROR});s({checkout:o.data})}catch(t){const e=T(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:f.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:a,onError:n})=>{var o;try{const r=await i.complete(t,e,s);if(r.error)return n({error:w(r.error),code:T(null===(o=r.error)||void 0===o?void 0:o.code),severity:f.ERROR});a({checkout:r.data})}catch(t){const e=T(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:f.ERROR})}})(t),l("selectedPaymentMethod",(t=>{this.paymentMethodChangedEvent.emit(t)}))}componentWillLoad(){this.analytics=new v(this),g(),h.authToken=this.authToken,h.savePaymentMethod=this.savePaymentMethod,this.fetchCheckout(),y("set",(t=>{const e=p[t];void 0!==e&&m(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})=>{t.status!==b.completed?t.status!==b.expired?this.updateStore(t):this.errorEvent.emit({message:j.CHECKOUT_EXPIRED,errorCode:k.CHECKOUT_EXPIRED,severity:f.ERROR}):this.errorEvent.emit({message:j.CHECKOUT_ALREADY_COMPLETED,errorCode:k.CHECKOUT_ALREADY_COMPLETED,severity:f.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:k.FETCH_ERROR,severity:f.ERROR})}}):this.errorEvent.emit({message:j.NOT_AUTHENTICATED,errorCode:k.NOT_AUTHENTICATED,severity:f.ERROR})}updateStore(t){var e,i,s,a,n;h.accountId=t.account_id,h.paymentMethods=t.payment_methods,h.paymentMethodGroupId=t.payment_method_group_id,h.paymentDescription=t.payment_description,h.totalAmount=t.total_amount,h.paymentAmount=t.payment_amount,h.bnplEnabled=t.payment_settings.bnpl_payments,h.insuranceEnabled=t.payment_settings.insurance_payments,h.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,h.bnplProviderClientId=null===(i=null==t?void 0:t.bnpl)||void 0===i?void 0:i.provider_client_id,h.bnplProviderMode=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_mode,h.bnplProviderApiVersion=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_api_version,h.bnplProviderCheckoutUrl=null===(n=null==t?void 0:t.bnpl)||void 0===n?void 0:n.provider_checkout_url}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 a=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},n=Object.assign(Object.assign({},t),a),o=Object.assign({accountId:h.accountId,payment_method_group_id:void 0},n);h.savePaymentMethod&&(o.payment_method_group_id=h.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:o,account:h.accountId}));return r.error?r:(h.paymentToken=r.id,r.id)}async validate(){const t=[];if(h.insuranceEnabled&&this.insuranceFormRef&&t.push(this.insuranceFormRef.validate()),h.selectedPaymentMethod!==P.NEW_CARD&&h.selectedPaymentMethod!==P.NEW_BANK_ACCOUNT||(this.paymentMethodFormRef&&t.push(this.paymentMethodFormRef.validate()),this.billingFormRef&&t.push(this.billingFormRef.validate())),0===t.length)return!0;try{return!!(await Promise.all(t)).every((t=>"boolean"==typeof t?t:!1!==(null==t?void 0:t.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:k.VALIDATION_ERROR,severity:f.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){const e=await this.validate();if(h.selectedPaymentMethod===P.NEW_CARD||h.selectedPaymentMethod===P.NEW_BANK_ACCOUNT){const e=await this.tokenizePaymentMethod(t);if(e.error)return void this.errorEvent.emit({message:e.error.message,errorCode:k.TOKENIZE_ERROR,severity:f.ERROR})}if(!e)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:k.VALIDATION_ERROR,severity:f.ERROR});let i;h.paymentToken||this.errorEvent.emit({message:"Payment token not found.",errorCode:k.TOKENIZE_ERROR,severity:f.ERROR}),i={payment_mode:{[P.NEW_CARD]:E.ECOM,[P.NEW_BANK_ACCOUNT]:E.ECOM,[P.SAVED_BANK_ACCOUNT]:E.ECOM,[P.SAVED_CARD]:E.ECOM,[x.SEZZLE]:E.BNPL,[x.PLAID]:E.ECOM,[x.APPLE_PAY]:E.APPLE_PAY}[h.selectedPaymentMethod],payment_token:h.paymentToken},this.completeCheckout({payment:i,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:k.COMPLETE_CHECKOUT_ERROR,severity:f.ERROR})}})}render(){return e(s,{key:"f836e0a75481e672f41c3cc63e94e0d24387a53c"})}get hostEl(){return a(this)}static get watchers(){return{savePaymentMethod:["savePaymentMethodChanged"]}}},L=D();class O{async getLinkToken(t,e,i,s){return L.post({endpoint:`plaid/${e}/link`,body:{checkout_id:i},authToken:t,signal:s})}async tokenizeBankAccount(t,e,i,s,a,n){const o=`plaid/${e}/tokenize`,r={public_token:i};return s&&(r.link_token_id=s),a&&(r.payment_method_group_id=a),L.post({endpoint:o,body:r,authToken:t,signal:n})}}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 S={[_.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."},R={[_.PLAID_SDK_LOAD_FAILED]:f.ERROR,[_.PLAID_LINK_INIT_FAILED]:f.ERROR,[_.PLAID_LINK_TOKEN_FAILED]:f.ERROR,[_.PLAID_AUTHENTICATION_FAILED]:f.ERROR,[_.PLAID_BANK_NOT_SUPPORTED]:f.WARNING,[_.PLAID_TOKEN_EXPIRED]:f.WARNING,[_.PLAID_NETWORK_ERROR]:f.WARNING,[_.PLAID_USER_CANCELLED]:f.INFO,[_.PLAID_TIMEOUT]:f.WARNING,[_.PLAID_INVALID_CREDENTIALS]:f.ERROR,[_.PLAID_ACCOUNT_LOCKED]:f.ERROR,[_.PLAID_MAINTENANCE]:f.WARNING,[_.PLAID_RATE_LIMITED]:f.WARNING},U=class{constructor(e){t(this,e),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 O,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{h.authToken&&h.accountId&&h.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.onPaymentMethodOptionClick=t=>{if(t.preventDefault(),this.isSelected=!0,h.selectedPaymentMethod=P.PLAID,this.paymentMethodOptionSelected.emit(P.PLAID),this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:_.PLAID_SDK_LOAD_FAILED,message:S[_.PLAID_SDK_LOAD_FAILED],severity:R[_.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:S[_.PLAID_LINK_TOKEN_FAILED],severity:R[_.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:S[_.PLAID_LINK_INIT_FAILED],severity:R[_.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,s,a;try{if(!h.authToken||!h.accountId)return void this.handleError({code:_.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:f.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(h.authToken,h.accountId,h.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}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let n=_.PLAID_LINK_TOKEN_FAILED,o=S[n],r=!0;"AbortError"===t.name?(n=_.PLAID_TIMEOUT,o=S[n],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"))?(n=_.PLAID_NETWORK_ERROR,o=S[n],r=!0):((null===(s=t.message)||void 0===s?void 0:s.includes("401"))||(null===(a=t.message)||void 0===a?void 0:a.includes("unauthorized")))&&(n=_.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:n,message:o,severity:R[n],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,h.selectedPaymentMethod=P.PLAID),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:f.INFO}),this.exchangePublicTokenForPaymentMethod()},this.exchangePublicTokenForPaymentMethod=async()=>{var t;if(this.publicToken)if(h.authToken&&h.accountId)try{const e=await this.plaidService.tokenizeBankAccount(h.authToken,h.accountId,this.publicToken,this.linkTokenId||void 0,h.savePaymentMethod?h.paymentMethodGroupId:void 0);if(null==e?void 0:e.error)return void console.error("[PlaidPaymentMethod] exchange: backend error",e.error);const i=null==e?void 0:e.data,s=(null===(t=null==i?void 0:i.bank_account)||void 0===t?void 0:t.token)||(null==i?void 0:i.token)||(null==i?void 0:i.id);if(!s)return void console.error("[PlaidPaymentMethod] exchange: no token in response");h.paymentToken=s}catch(t){console.error("[PlaidPaymentMethod] exchange: exception",{message:(null==t?void 0:t.message)||String(t)})}else console.error("[PlaidPaymentMethod] exchange: missing auth/account context");else console.error("[PlaidPaymentMethod] exchange: missing publicToken")},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=S[e],s=!0,a="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=_.PLAID_INVALID_CREDENTIALS,i=S[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=S[e],s=!1,a="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=_.PLAID_MAINTENANCE,i=S[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=_.PLAID_RATE_LIMITED,i=S[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 n=t.error_message.toLowerCase();n.includes("not supported")||n.includes("unsupported")?(e=_.PLAID_BANK_NOT_SUPPORTED,i=S[e],s=!1,a="Try a different payment method"):(n.includes("expired")||n.includes("timeout"))&&(e=_.PLAID_TOKEN_EXPIRED,i=S[e],s=!0)}this.handleError({code:e,message:i,severity:R[e],originalError:t,retryable:s,userAction:a}),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=()=>{const t=h.selectedPaymentMethod===P.PLAID;this.isSelected!==t&&(this.isSelected=t)}}onSelectionChange(t){t&&h.selectedPaymentMethod!==P.PLAID&&(h.selectedPaymentMethod=P.PLAID)}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.waitForStoreAndInitialize()},this.scriptRef.onerror=()=>{this.handleError({code:_.PLAID_SDK_LOAD_FAILED,message:S[_.PLAID_SDK_LOAD_FAILED],severity:R[_.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){this.isSelected=h.selectedPaymentMethod===P.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return h.paymentToken||await this.exchangePublicTokenForPaymentMethod(),h.paymentToken}async setSelected(t){this.isSelected=t,t&&(h.selectedPaymentMethod=P.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=l("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==h.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const t=e("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 e(c,{class:"payment-method"},e("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),e("div",{class:"radio-list-item p-3",part:o,onClick:this.onPaymentMethodOptionClick,title:"Pay with Plaid"},e("form-control-radio",{name:"paymentMethodType",value:P.PLAID,checked:this.isSelected,label:e("div",null,e("div",null,"Pay with Bank Account ",t," "),(()=>this.error?e("div",{class:(this.error.severity===f.ERROR?"text-danger":this.error.severity===f.WARNING?"text-warning":"text-info")+" mt-2"},e("small",null,this.error.message),e("br",null),e("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&e("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?e("div",{class:"text-info mt-2"},e("small",null,"Connecting to your bank...")):this.publicToken?e("div",{class:"text-success mt-2"},e("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:e("div",{class:"text-muted mt-2"},e("small",null,"Click to connect your bank account")))())})))}static get watchers(){return{isSelected:["onSelectionChange"]}}},B=class{constructor(e){t(this,e),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),h.selectedPaymentMethod={[x.CARD]:P.SAVED_CARD,[x.BANK_ACCOUNT]:P.SAVED_BANK_ACCOUNT}[t.type],h.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t.type===x.CARD&&h.disableCreditCard||t.type===x.BANK_ACCOUNT&&h.disableBankAccount)}componentWillLoad(){h.paymentMethods.length||console.warn("No saved payment methods available."),h.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return h.disablePaymentMethodGroup?null:e(c,null,e("div",{class:"saved-payment-methods"},h.paymentMethods.length?h.paymentMethods.filter(this.isAllowedPaymentMethod).map((t=>e("div",{class:"radio-list-item p-3",part:o,onClick:this.onPaymentMethodOptionClick(t)},e("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:h.paymentToken===(null==t?void 0:t.id),label:`${I[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},Q=e("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"}}),Y=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId=P.SEZZLE,this.onPaymentMethodOptionClick=t=>{t.preventDefault(),h.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(h.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:h.bnplProviderClientId,apiMode:h.bnplProviderMode,apiVersion:h.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:h.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}}render(){var t,i;return!h.bnplEnabled||h.disableBnpl?(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null):e(c,{class:"payment-method"},e("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),e("div",{class:"radio-list-item p-3",part:o,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:h.selectedPaymentMethod===P.SEZZLE,label:e("div",null,e("div",null,"Buy now, pay later with ",Q),this.installmentPlan&&e("small",null,e("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",e("span",null,this.installmentPlan.schedule," payments of")," ",e("span",{class:"fw-bold"},r(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))})))}},F={[P.NEW_BANK_ACCOUNT]:"New bank account",[P.NEW_CARD]:"New credit or debit card"},H="Payment form not ready",V="Validation error",W=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.computedHideSubmitButton=!1,this.isLoading=!1,this.submitButtonText="Submit"}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup(),this.unsubscribeFromStore&&this.unsubscribeFromStore()}componentWillLoad(){g(),this.analytics=new v(this)}handleRadioClick(t){this.selectedPaymentMethod=t.detail,h.selectedPaymentMethod=t.detail}async fillBillingForm(t){var e;null===(e=this.billingFormRef)||void 0===e||e.fill(t)}async tokenizePaymentMethod(t){null==t||t.preventDefault(),this.validateRequiredProps(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:k.TOKENIZE_ERROR,message:V}),void(this.isLoading=!1);const t=await this.resolvePaymentMethod({isValid:!0});return t.error&&this.emitError({errorCode:t.error.code,message:t.error.message}),this.submitEvent.emit({response:t}),t}catch(t){const e=this.createErrorResponse(k.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:k.TOKENIZE_ERROR,message:t.message}),this.submitEvent.emit({response:e}),e}finally{this.isLoading=!1}}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:H}};const[t,e]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:t.isValid&&e.isValid,errors:Object.assign(Object.assign({},t.errors),e.errors)}}async tokenize(){try{const t=await this.billingFormRef.getValues(),e={clientId:this.authToken||h.authToken,account:this.accountId||h.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||h.authToken||this.emitError({errorCode:k.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||h.accountId||this.emitError({errorCode:k.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethod||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethod=P.NEW_BANK_ACCOUNT):this.selectedPaymentMethod=P.NEW_CARD)}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const t=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=t}isSlottedWithinModularCheckout(){var t;let e=null===(t=this.host)||void 0===t?void 0:t.parentElement;for(;e;){if("JUSTIFI-MODULAR-CHECKOUT"===e.tagName)return!0;e=e.parentElement}return!1}get availablePaymentMethods(){const t=[];return this.disableCreditCard||t.push(P.NEW_CARD),this.disableBankAccount||t.push(P.NEW_BANK_ACCOUNT),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:f.ERROR}))}createErrorResponse(t,e){return{error:{code:t,message:e,decline_code:void 0}}}async resolvePaymentMethod(t){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",H);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||V;return{validationError:!0,error:{code:"validation_error",message:String(t),decline_code:void 0}}}return await this.performTokenization()}catch(t){return{error:t}}}async performTokenization(){var t,e;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(t=s.card)||void 0===t?void 0:t.token)||(null===(e=s.bank_account)||void 0===e?void 0:e.token),data:s}}buildPaymentMethodMetadata(t){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},t)}get paymentMethodGroupID(){return this.paymentMethodGroupId||h.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!h.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const i=this.selectedPaymentMethod===t;return e("div",{class:"payment-method"},e("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:i,label:F[t],hidden:this.shouldHideRadioInput}),i&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return e("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),e("div",{class:"mt-4"},e("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),e("div",{class:"mt-4"},e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID})))}renderPaymentMethodForm(t){return e(t===P.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return e(c,{key:"a11012d80460057b0dc16dc6a470ad57bad12ca2"},e("form",{key:"76c8f50a5394f80b171295337a4382a4713d5ec1"},e("fieldset",{key:"955f99016cb495628afe016037a154fcc39f5ac3"},e("div",{key:"a80324943093aa2df3804f5358fb904b5540d92c",class:"row gy-3"},e("div",{key:"b5fc2d063e2a859f52c4914ea669b35134d7d256",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),e("div",{key:"f2a759d16742c346bd7833c72916b2a058a1be34",class:"col-12"},e("justifi-button",{key:"ab6238aa25cc9dae2851b4156b7c2ac88802b4fd",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:t=>this.tokenizePaymentMethod(t),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return a(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{C as justifi_checkout_summary,A as justifi_header,z as justifi_modular_checkout,U as justifi_plaid_payment_method,B as justifi_saved_payment_methods,Y as justifi_sezzle_payment_method,W as justifi_tokenize_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as r}from"./p-Bn7inNWG.js";import{P as i}from"./p-Dc1CS9Mi.js";import"./p-DhGNCW2f.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{P as p}from"./p-BP7op0vq.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c as m,J as c}from"./p-bjogwLgt.js";import{S as h}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import{d}from"./p-b21ncS7l.js";import"./p-BPtcGAzB.js";import"./p-zdIeCUeh.js";import"./p-CpaS1Lex.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-uY_jN8Gg.js";import"./p-Bb-6bNcq.js";import"./p-DDUmOl3v.js";import"./p-RvUQ__Pq.js";const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:e,onError:m,final:c})=>{var h,d;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:n(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const t=Object.assign({},c.page_info);e({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:o.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(h,{key:"654b1e63aedc77ef887875795a2a4946fae5700f"},r("payments-list-core",{key:"ab9957172f5120c73d0150d3c2d0c9a61671d861",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as a}from"./p-Bn7inNWG.js";import{c as i,J as s}from"./p-bjogwLgt.js";import{c}from"./p-DAED83Ew.js";import{d}from"./p-RvUQ__Pq.js";import{S as o}from"./p-DxqCFDtF.js";import"./p-CZfYo5-1.js";import"./p-uY_jN8Gg.js";import"./p-BPtcGAzB.js";import"./p-DhGNCW2f.js";import"./p-CpaS1Lex.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BP7op0vq.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const h=class{constructor(a){e(this,a),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),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(){i(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}async fillBillingForm(e){var t;c.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(){c.checkoutId=this.checkoutId,c.authToken=this.authToken,c.disableCreditCard=this.disableCreditCard,c.disableBankAccount=this.disableBankAccount,c.disableBnpl=this.disableBnpl,c.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(c.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){return a(o,{key:"9f4a7eca05e031eca99c30bfedd3073855c73529"},a("justifi-modular-checkout",{key:"bd15f818c0b214d540c0a17b26701a09c9ad0e3c",ref:e=>this.modularCheckoutRef=e,authToken:this.authToken,checkoutId:this.checkoutId,savePaymentMethod:c.savePaymentMethod},a("div",{key:"b12acaab9fd003f97bf99e75066e0b8b46dce89e",class:"row gy-3 jfi-checkout-core"},a("div",{key:"6a8618155c0822bf8c997e8542ecf78a68cbc1c7",class:"col-12",part:d},a("justifi-header",{key:"f60d7dbe6115443c313122dfccb6dcb9e0b974c5",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),a("section",{key:"ef2583dd15bf25f344a68ac43cefda0d845438c9"},a("justifi-checkout-summary",{key:"23b1818736c79e126ae79d8ff1951e44bc84facb"}))),a("div",{key:"d86495b7da53b9ce7c5a3d65d618e4be3079338f",class:"col-12 mt-4"},a("slot",{key:"85e34415fa3191a185a0a8da50c16338583e7392",name:"insurance"})),a("div",{key:"8cff610ad6e3535438546aeec85b128ee752f4bb",class:"col-12 mt-4"},a("justifi-header",{key:"a2b1c31d40e0c5b7a4f3802312c50cb718b80dbc",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&a("justifi-header",{key:"6bff6394a243c0a3cb643e0704c44b36001393c3",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),a("div",{key:"deecdfb1d74a74af62c31f1fb88767986c8f142c",class:"d-flex flex-column"},a("section",{key:"47bc56f1ad8418c65bb1b3f7eba3aedd22d1df0e"},a("div",{key:"4aac99bba9fbe8acebc652c3c510157f6623dd1e"},a("justifi-saved-payment-methods",{key:"62fe7c65f1528828bd07746881f3a64e5c8c3f3a"}),a("justifi-sezzle-payment-method",{key:"81fa1dcea2fabf9a1555dc4e9bdb278f09921f01"}),a("justifi-plaid-payment-method",{key:"6e9f782bfe9fbc098084fac5f6effc5d09c3de97"}),a("justifi-tokenize-payment-method",{key:"53616f11a7ec79d9334da2705d85206dd6260b63",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:c.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:c.paymentMethodGroupId}))))),a("div",{key:"4b61246ea605254aa0e329c3803b9fb725709158",class:"mt-4"},a("justifi-button",{key:"0e5f46931aa558cea5a81d9ea9c9627a1feeca50",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"],disableBnpl:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
|