@justifi/webcomponents 6.2.0-rc.1 → 6.2.0-rc.3
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-CjtvTD2_.js → Api-BeSnjEuW.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-CE3ss_OU.js → badge-_nY1l5Rq.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/{business-additional-questions-schema-CetDMUp7.js → business-additional-questions-schema-BzHg6qqg.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business-identity-schema-Cd0tvfJr.js → business-identity-schema-Di-jf6nr.js} +4 -3
- package/dist/cjs/{business.service-DRZurAMP.js → business.service-DIlSj5KT.js} +1 -1
- package/dist/cjs/{button-gPNZ9XRn.js → button-CARQPDm-.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-W_AFeiO6.js → check-pkg-version-NXr7H2Sp.js} +2 -2
- package/dist/cjs/{checkout.service-vZbSE3A3.js → checkout.service-Ce0F8cOf.js} +1 -1
- package/dist/cjs/{checkout.store-Bswr7kNY.js → checkout.store-BiT7zKgX.js} +19 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{payments-list-params-state-BYpq-c6X.js → checkouts-list-params-state-DfZySwaC.js} +1 -1
- package/dist/cjs/{checkouts-table-C5AHeIr0.js → checkouts-table-2fOlhkc4.js} +2 -2
- package/dist/cjs/{config-state-C7babhLh.js → config-state-CYoBVAca.js} +1 -1
- package/dist/cjs/custom-popper.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-DV9a61Tu.js → dispute.service-DuYeSUgK.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-BnMWn8U_.js → form-control-error-text-mhOq2Edp.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-DEi5vSjN.js → form-control-help-text-BoRpAoX6.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_3.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_3.cjs.entry.js +4 -4
- package/dist/cjs/{get-payment-details-AYzxPu-X.js → get-payment-details-vVIxYblm.js} +1 -1
- package/dist/cjs/{get-subaccounts-C_KD197w.js → get-subaccounts-yo2pT61R.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-D3r87SC6.js → header-1-CBO8uDuZ.js} +1 -1
- package/dist/cjs/{header-3-BFQJJgBb.js → header-3-CPWtI1t0.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
- package/dist/cjs/{index-Bhtk1qkX.js → index-BhI7cJcE.js} +37 -2
- package/dist/cjs/{index-CWM5ions.js → index-mmd0OhmD.js} +1 -1
- package/dist/cjs/{insurance-state-JbqYvJN3.js → insurance-state-BMHITXoD.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +8 -8
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +6 -6
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +31 -94
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +17 -17
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
- 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 +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +29 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +11 -11
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
- package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-BADgkv50.js → package-DPdtuJhk.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +16 -16
- package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
- package/dist/cjs/{payment.service-1t60I69m.js → payment.service-DLvoJ2K6.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{payouts-list-params-state-BYpq-c6X.js → payments-list-params-state-DfZySwaC.js} +1 -1
- package/dist/cjs/{payments-status-CnNXcRLO.js → payments-status-t4fVj8f9.js} +2 -2
- package/dist/cjs/{payments-table-BGuCOPTJ.js → payments-table-C6SCvqLD.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-CQEXfufW.js → payout.service-CrBp8aru.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{terminal-orders-list-params-state-BYpq-c6X.js → payouts-list-params-state-DfZySwaC.js} +1 -1
- package/dist/cjs/{payouts-status-2na6MMgV.js → payouts-status-pIO9qZG6.js} +2 -2
- package/dist/cjs/{payouts-table-DXekpbYc.js → payouts-table-CEnUtKNR.js} +2 -2
- package/dist/cjs/{schema-validations-0mjPveQ0.js → schema-validations-AxtufX7q.js} +5 -0
- package/dist/cjs/{skeleton-BvdAh448.js → skeleton-BF3HGL9X.js} +1 -1
- package/dist/cjs/{spinner-Rt52JMa2.js → spinner-BBdv3Iq1.js} +1 -1
- package/dist/cjs/{styled-host-BSooSIhA.js → styled-host-D5g7INLE.js} +1 -1
- package/dist/cjs/{table-Ccg4k90C.js → table-CfBpaApw.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{checkouts-list-params-state-BYpq-c6X.js → terminal-orders-list-params-state-DfZySwaC.js} +1 -1
- package/dist/cjs/{terminal-orders-table-B4ZXHj3w.js → terminal-orders-table-8PxObvu8.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-BlW-CJ67.js → terminal.service-D0fIw59V.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +9 -9
- package/dist/cjs/terminals-list-params-state-DfZySwaC.js +22 -0
- package/dist/cjs/{terminals-table-ByYs-pH7.js → terminals-table-EeeLeuDN.js} +2 -2
- package/dist/cjs/{utils-CUcA4G_O.js → utils-Cjq3ZCad.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/services/apple-pay.service.js +3 -43
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -4
- package/dist/collection/components/business-forms/schemas/business-identity-schema.js +3 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -0
- package/dist/collection/components/dispute-management/dispute-notification.js +17 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +41 -2
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +0 -34
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- 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/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 +1 -1
- package/dist/collection/store/checkout.store.js +17 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.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-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/docs.json +45 -2
- package/dist/esm/{Api-K9QH1Aki.js → Api-DX-IWyBw.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-B8fF98jp.js → badge-BkjjtNUQ.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +7 -7
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/{business-additional-questions-schema-DSvdNuI1.js → business-additional-questions-schema-BCXg6YTP.js} +1 -1
- package/dist/esm/business-details-core.entry.js +4 -4
- package/dist/esm/{business-identity-schema-mN4VhA1v.js → business-identity-schema-CvzdGI9h.js} +4 -3
- package/dist/esm/{business.service-BJcGEUDH.js → business.service-CaEVmi4X.js} +1 -1
- package/dist/esm/{button-DZoLTGMB.js → button-DHljyr0K.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-CG8qzhGl.js → check-pkg-version-BifOuhlz.js} +2 -2
- package/dist/esm/{checkout.service-aymuZDC9.js → checkout.service-BpaVN1_f.js} +1 -1
- package/dist/esm/{checkout.store-4nUf2OuT.js → checkout.store-CMsV0tl9.js} +19 -2
- package/dist/esm/checkouts-list-core.entry.js +8 -8
- package/dist/esm/{checkouts-list-params-state-C_fug9R3.js → checkouts-list-params-state-gllzDQAb.js} +1 -1
- package/dist/esm/{checkouts-table-B8k-Aylm.js → checkouts-table-Dn1sFyZs.js} +2 -2
- package/dist/esm/{config-state-DiHV-4QK.js → config-state-C2NXATwF.js} +1 -1
- package/dist/esm/custom-popper.entry.js +3 -3
- package/dist/esm/{dispute.service-DiPbsswm.js → dispute.service-Dq1SPI2m.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-BmD6bGbR.js → form-control-error-text-Cje0veu2.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-DbIhIcc6.js → form-control-help-text-ClJnecm3.js} +1 -1
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_3.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +4 -4
- package/dist/esm/{get-payment-details-DcC5v85s.js → get-payment-details-C2YiQBG7.js} +1 -1
- package/dist/esm/{get-subaccounts-CMJMDwSP.js → get-subaccounts-Cjz3-2D3.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-umkpdspt.js → header-1-uiFiNrVs.js} +1 -1
- package/dist/esm/{header-3-CD5K5vCa.js → header-3-BVYYTpLc.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +8 -8
- package/dist/esm/{index-DJ9G-4S-.js → index-B-fWxE5e.js} +1 -1
- package/dist/esm/{index-DOjVAAtq.js → index-DwYM91AU.js} +37 -2
- package/dist/esm/{insurance-state-sR5DrCdu.js → insurance-state-iJs0LRg_.js} +2 -2
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -6
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-apple-pay_8.entry.js +31 -94
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +17 -17
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +14 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list.entry.js +11 -11
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +7 -7
- package/dist/esm/justifi-dispute-notification_3.entry.js +29 -14
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
- package/dist/esm/justifi-order-terminals.entry.js +11 -11
- package/dist/esm/justifi-owner-form_3.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -7
- package/dist/esm/justifi-payment-transactions-list.entry.js +11 -11
- package/dist/esm/justifi-payments-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payments-list.entry.js +12 -12
- package/dist/esm/justifi-payout-details.entry.js +8 -8
- package/dist/esm/justifi-payout-transactions-list.entry.js +11 -11
- package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payouts-list.entry.js +13 -13
- package/dist/esm/justifi-refund-payment.entry.js +11 -11
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -10
- package/dist/esm/justifi-skeleton.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list.entry.js +10 -10
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminals-list.entry.js +12 -12
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-yiqa5abX.js → package-CuLmJjEz.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -16
- package/dist/esm/payment-method-option.entry.js +3 -3
- package/dist/esm/{payment.service-C0xnydJ8.js → payment.service-4wGt-zDW.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +10 -10
- package/dist/esm/{payments-list-params-state-C_fug9R3.js → payments-list-params-state-gllzDQAb.js} +1 -1
- package/dist/esm/{payments-status-CzazNnFv.js → payments-status-DK2me5T2.js} +2 -2
- package/dist/esm/{payments-table-BPKxBAJ0.js → payments-table-DxRdl7-E.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-Cl4yxnrx.js → payout.service-BYigYrQu.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +10 -10
- package/dist/esm/{payouts-list-params-state-C_fug9R3.js → payouts-list-params-state-gllzDQAb.js} +1 -1
- package/dist/esm/{payouts-status-rKlX41bK.js → payouts-status-BfEM6F8q.js} +2 -2
- package/dist/esm/{payouts-table-C6ZDcd_-.js → payouts-table-C2binjIW.js} +2 -2
- package/dist/esm/{schema-validations-BFoU1cR8.js → schema-validations-CoIE0a4H.js} +5 -0
- package/dist/esm/{skeleton-BEoPu3My.js → skeleton-DdynMBnt.js} +1 -1
- package/dist/esm/{spinner-Ac-w5zWg.js → spinner-BRMSkfVc.js} +1 -1
- package/dist/esm/{styled-host-OalOsPBp.js → styled-host-DhOcKWqZ.js} +1 -1
- package/dist/esm/{table-BCwizIf9.js → table-DYlsfkCm.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +9 -9
- package/dist/esm/{terminal-orders-list-params-state-C_fug9R3.js → terminal-orders-list-params-state-gllzDQAb.js} +1 -1
- package/dist/esm/{terminal-orders-table-BBQsoUh8.js → terminal-orders-table-zf0ASRCr.js} +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-mwaS-Mbj.js → terminal.service-RAu777Qf.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +9 -9
- package/dist/esm/terminals-list-params-state-gllzDQAb.js +16 -0
- package/dist/esm/{terminals-table-ByiFdTfy.js → terminals-table-DNUTk3gi.js} +2 -2
- package/dist/esm/{utils-KBIYAa0D.js → utils-DUz-H1tG.js} +1 -1
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +3 -77
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-identity-schema.js +3 -2
- package/dist/module/business-representative-form-inputs.js +4 -4
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +18 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-notification.js +17 -2
- 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-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-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- 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-button2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +14 -2
- 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 +1 -1
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/schema-validations.js +5 -0
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- 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 +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -0
- package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +4 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +1 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +2 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +3 -1
- package/dist/types/components.d.ts +6 -2
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/store/checkout.store.d.ts +16 -0
- package/dist/webcomponents/{p-0926c397.entry.js → p-03474a21.entry.js} +1 -1
- package/dist/webcomponents/{p-580f3bb6.entry.js → p-0348a46b.entry.js} +1 -1
- package/dist/webcomponents/{p-fcb185fd.entry.js → p-0d7650e4.entry.js} +1 -1
- package/dist/webcomponents/{p-89052ce0.entry.js → p-0d928de1.entry.js} +1 -1
- package/dist/webcomponents/{p-620ec409.entry.js → p-123ad398.entry.js} +1 -1
- package/dist/webcomponents/p-1414e80b.entry.js +1 -0
- package/dist/webcomponents/{p-cca865be.entry.js → p-198a6ae3.entry.js} +1 -1
- package/dist/webcomponents/{p-09aaaf03.entry.js → p-1fa1e280.entry.js} +1 -1
- package/dist/webcomponents/{p-a4846316.entry.js → p-20af8597.entry.js} +1 -1
- package/dist/webcomponents/p-238859ef.entry.js +1 -0
- package/dist/webcomponents/p-256a95eb.entry.js +1 -0
- package/dist/webcomponents/p-27acf7cc.entry.js +1 -0
- package/dist/webcomponents/{p-8896ab68.entry.js → p-28c28c0b.entry.js} +1 -1
- package/dist/webcomponents/p-36259848.entry.js +1 -0
- package/dist/webcomponents/{p-2ebc8539.entry.js → p-38352272.entry.js} +1 -1
- package/dist/webcomponents/{p-3b43f8c0.entry.js → p-3c313469.entry.js} +1 -1
- package/dist/webcomponents/{p-221ec54e.entry.js → p-46d7ca2f.entry.js} +3 -3
- package/dist/webcomponents/{p-10537b60.entry.js → p-4c3f1bea.entry.js} +1 -1
- package/dist/webcomponents/p-4e90834e.entry.js +1 -0
- package/dist/webcomponents/p-52cb10a7.entry.js +1 -0
- package/dist/webcomponents/{p-a2344efb.entry.js → p-56d9a8f1.entry.js} +1 -1
- package/dist/webcomponents/p-590290a2.entry.js +1 -0
- package/dist/webcomponents/p-5a3f2d71.entry.js +1 -0
- package/dist/webcomponents/p-6023553c.entry.js +1 -0
- package/dist/webcomponents/{p-4e57359c.entry.js → p-605e0aa1.entry.js} +1 -1
- package/dist/webcomponents/{p-cfd3035e.entry.js → p-62cdb2b1.entry.js} +1 -1
- package/dist/webcomponents/{p-cd108cae.entry.js → p-6612f9fb.entry.js} +1 -1
- package/dist/webcomponents/p-6b563428.entry.js +1 -0
- package/dist/webcomponents/{p-54cea29e.entry.js → p-6c2b5d37.entry.js} +1 -1
- package/dist/webcomponents/p-730eaf8b.entry.js +1 -0
- package/dist/webcomponents/{p-b72794e3.entry.js → p-75f81cbf.entry.js} +1 -1
- package/dist/webcomponents/p-78f5b1e5.entry.js +1 -0
- package/dist/webcomponents/p-79cb28bd.entry.js +1 -0
- package/dist/webcomponents/p-7c78bb5e.entry.js +1 -0
- package/dist/webcomponents/p-7e46060a.entry.js +1 -0
- package/dist/webcomponents/p-83cd698c.entry.js +1 -0
- package/dist/webcomponents/{p-4d6e0ebe.entry.js → p-855eefb0.entry.js} +1 -1
- package/dist/webcomponents/p-8993c961.entry.js +1 -0
- package/dist/webcomponents/{p-9ce44689.entry.js → p-89fdee6e.entry.js} +1 -1
- package/dist/webcomponents/p-9633fbb8.entry.js +1 -0
- package/dist/webcomponents/{p-af31dc6d.entry.js → p-97250c61.entry.js} +1 -1
- package/dist/webcomponents/{p-ef8ac9f4.entry.js → p-9a459083.entry.js} +1 -1
- package/dist/webcomponents/p-9ae2b437.entry.js +1 -0
- package/dist/webcomponents/{p-66833631.entry.js → p-9db64da8.entry.js} +1 -1
- package/dist/webcomponents/{p-UUJudj_5.js → p-B-7rLJIB.js} +1 -1
- package/dist/webcomponents/{p-BdmYH_IK.js → p-BB3MQDQq.js} +1 -1
- package/dist/webcomponents/p-BHe87s0Y.js +1 -0
- package/dist/webcomponents/{p-B9MN_vv4.js → p-BItPr6Gj.js} +1 -1
- package/dist/webcomponents/p-BOqOio4U.js +1 -0
- package/dist/webcomponents/{p-BhCH9S0e.js → p-BP2sTIQV.js} +1 -1
- package/dist/webcomponents/p-BUsqF4-J.js +1 -0
- package/dist/webcomponents/{p-BkaPXFTl.js → p-BVWZSqCK.js} +1 -1
- package/dist/webcomponents/{p-DdMxswn1.js → p-BYsgavgS.js} +1 -1
- package/dist/webcomponents/{p-C6g4MbnB.js → p-BfYkosa4.js} +1 -1
- package/dist/webcomponents/{p-Dy3-IlQ3.js → p-C2gAiiwJ.js} +1 -1
- package/dist/webcomponents/p-C7m-gAAM.js +1 -0
- package/dist/webcomponents/{p-ty1sI-fI.js → p-C8yN3uBj.js} +1 -1
- package/dist/webcomponents/{p-BYrSeoci.js → p-C9Ho60F2.js} +1 -1
- package/dist/webcomponents/{p-DqPvh0aN.js → p-C9_8N76_.js} +1 -1
- package/dist/webcomponents/p-CO8ZJ0jB.js +1 -0
- package/dist/webcomponents/{p-DfsX5bt_.js → p-CXxdHjVv.js} +1 -1
- package/dist/webcomponents/p-CbBTgsKC.js +1 -0
- package/dist/webcomponents/p-CgbXzEbz.js +1 -0
- package/dist/webcomponents/p-Cpp4qrH2.js +1 -0
- package/dist/webcomponents/{p-CTAOJGVx.js → p-CriWtqRc.js} +1 -1
- package/dist/webcomponents/{p-Bm8T-MOQ.js → p-Cu1FEdFr.js} +1 -1
- package/dist/webcomponents/p-CuLmJjEz.js +1 -0
- package/dist/webcomponents/{p-i--LPP1s.js → p-CxPieTnF.js} +1 -1
- package/dist/webcomponents/p-D0YDz3L6.js +1 -0
- package/dist/webcomponents/{p-DSCBoCn-.js → p-D2DVDmwd.js} +1 -1
- package/dist/webcomponents/{p-F6TcNeK4.js → p-D8HCCl2t.js} +1 -1
- package/dist/webcomponents/p-DKGn-ILd.js +1 -0
- package/dist/webcomponents/p-DdJYXOQX.js +1 -0
- package/dist/webcomponents/{p-CJ9qo7_g.js → p-DkOvNRJs.js} +1 -1
- package/dist/webcomponents/p-Do561C8g.js +1 -0
- package/dist/webcomponents/{p-BRbqaU66.js → p-DsR5Dt9w.js} +1 -1
- package/dist/webcomponents/{p-DxnXyWPn.js → p-DwLZbA7D.js} +1 -1
- package/dist/webcomponents/p-DwYM91AU.js +2 -0
- package/dist/webcomponents/{p-D9Yus-je.js → p-JvWiY69B.js} +1 -1
- package/dist/webcomponents/p-Uqevvbqm.js +1 -0
- package/dist/webcomponents/{p-BIcS6lTe.js → p-VhOlg78I.js} +1 -1
- package/dist/webcomponents/{p-CQQ0H4Pb.js → p-ZrJKEEoy.js} +1 -1
- package/dist/webcomponents/{p-91b09245.entry.js → p-a49ca7d8.entry.js} +1 -1
- package/dist/webcomponents/{p-c4d919be.entry.js → p-a95dfc01.entry.js} +1 -1
- package/dist/webcomponents/{p-f72f67ef.entry.js → p-ab739e07.entry.js} +1 -1
- package/dist/webcomponents/{p-be0cbdf9.entry.js → p-ac1a4470.entry.js} +1 -1
- package/dist/webcomponents/{p-8a156528.entry.js → p-af48a6bb.entry.js} +1 -1
- package/dist/webcomponents/{p-164fe6d3.entry.js → p-b15f80c2.entry.js} +1 -1
- package/dist/webcomponents/{p-24621c40.entry.js → p-bc5d225e.entry.js} +1 -1
- package/dist/webcomponents/{p-81099469.entry.js → p-c67d86b1.entry.js} +1 -1
- package/dist/webcomponents/p-cbe349bf.entry.js +1 -0
- package/dist/webcomponents/p-cd5bf3c1.entry.js +1 -0
- package/dist/webcomponents/p-cdf94860.entry.js +1 -0
- package/dist/webcomponents/{p-5fcfedb2.entry.js → p-d160381c.entry.js} +1 -1
- package/dist/webcomponents/{p-72f5e234.entry.js → p-d812d34f.entry.js} +1 -1
- package/dist/webcomponents/p-d8fc3996.entry.js +1 -0
- package/dist/webcomponents/{p-5de4d9e4.entry.js → p-de09adac.entry.js} +1 -1
- package/dist/webcomponents/{p-c8e94ab9.entry.js → p-e06327aa.entry.js} +1 -1
- package/dist/webcomponents/{p-6190fbb7.entry.js → p-e3c111d5.entry.js} +1 -1
- package/dist/webcomponents/{p-82723f07.entry.js → p-ea6bda92.entry.js} +1 -1
- package/dist/webcomponents/p-edd335bb.entry.js +1 -0
- package/dist/webcomponents/{p-d8c2cea4.entry.js → p-ef89c7df.entry.js} +1 -1
- package/dist/webcomponents/{p-2f40f708.entry.js → p-f37f3e94.entry.js} +1 -1
- package/dist/webcomponents/p-f535328c.entry.js +1 -0
- package/dist/webcomponents/{p-890S0Nwr.js → p-fDGfMEwy.js} +1 -1
- package/dist/webcomponents/{p-c9bed02a.entry.js → p-ff411ffd.entry.js} +1 -1
- package/dist/webcomponents/{p-IYf7zn5J.js → p-q6C7btl0.js} +1 -1
- package/dist/webcomponents/{p-a6tcNl_T.js → p-tGDdRx0W.js} +1 -1
- package/dist/webcomponents/p-wYnnDDuR.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +0 -22
- package/dist/esm/terminals-list-params-state-C_fug9R3.js +0 -16
- package/dist/webcomponents/p-0b36f1a8.entry.js +0 -1
- package/dist/webcomponents/p-0fgTPVV0.js +0 -1
- package/dist/webcomponents/p-1c362f36.entry.js +0 -1
- package/dist/webcomponents/p-30848456.entry.js +0 -1
- package/dist/webcomponents/p-4a0f34de.entry.js +0 -1
- package/dist/webcomponents/p-4d243123.entry.js +0 -1
- package/dist/webcomponents/p-5277f2a6.entry.js +0 -1
- package/dist/webcomponents/p-65090485.entry.js +0 -1
- package/dist/webcomponents/p-68aeb5bd.entry.js +0 -1
- package/dist/webcomponents/p-6d61092c.entry.js +0 -1
- package/dist/webcomponents/p-7498759d.entry.js +0 -1
- package/dist/webcomponents/p-760e739c.entry.js +0 -1
- package/dist/webcomponents/p-86372164.entry.js +0 -1
- package/dist/webcomponents/p-8a68be8f.entry.js +0 -1
- package/dist/webcomponents/p-BT473_5I.js +0 -1
- package/dist/webcomponents/p-BXMAoCNA.js +0 -1
- package/dist/webcomponents/p-BwBb2Opu.js +0 -1
- package/dist/webcomponents/p-C2JJBtMc.js +0 -1
- package/dist/webcomponents/p-CVtpEQBE.js +0 -1
- package/dist/webcomponents/p-DGsXKF67.js +0 -1
- package/dist/webcomponents/p-DIdnZUSh.js +0 -1
- package/dist/webcomponents/p-DOjVAAtq.js +0 -2
- package/dist/webcomponents/p-Dieke6TH.js +0 -1
- package/dist/webcomponents/p-DxVCqvBt.js +0 -1
- package/dist/webcomponents/p-Dyk0thEr.js +0 -1
- package/dist/webcomponents/p-DzWLLt4t.js +0 -1
- package/dist/webcomponents/p-NwmOm8Pg.js +0 -1
- package/dist/webcomponents/p-a42ec25b.entry.js +0 -1
- package/dist/webcomponents/p-a81f9fc3.entry.js +0 -1
- package/dist/webcomponents/p-aa51c9e6.entry.js +0 -1
- package/dist/webcomponents/p-b4b5dd24.entry.js +0 -1
- package/dist/webcomponents/p-b4bb6fa6.entry.js +0 -1
- package/dist/webcomponents/p-c796f813.entry.js +0 -1
- package/dist/webcomponents/p-c8656d20.entry.js +0 -1
- package/dist/webcomponents/p-d7558874.entry.js +0 -1
- package/dist/webcomponents/p-e2ab3f61.entry.js +0 -1
- package/dist/webcomponents/p-e4e6f3b8.entry.js +0 -1
- package/dist/webcomponents/p-e60e7f6a.entry.js +0 -1
- package/dist/webcomponents/p-f4a1d3da.entry.js +0 -1
- package/dist/webcomponents/p-fdf5a349.entry.js +0 -1
- package/dist/webcomponents/p-lKnUT24T.js +0 -1
- package/dist/webcomponents/p-yiqa5abX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./p-
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-DwYM91AU.js";import{c as a,J as s}from"./p-CXxdHjVv.js";import{c as d}from"./p-CbBTgsKC.js";import{d as c}from"./p-Dj_zevuD.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DCIW8z1f.js";import"./p-CuLmJjEz.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";const b=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"40765f54a977fb2e8e450eba0bf9731132ae4897"},i("justifi-modular-checkout",{key:"3e698888a43c585749644d874dd49510889b04ca",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId},i("div",{key:"2491242f0619ea24fbd0e50fbdda4cc2bad9915f",class:"row gy-3 jfi-checkout-core"},i("div",{key:"a965de56c5190e62bbad82116874c78c57f9d9c6",class:"col-12",part:c},i("justifi-header",{key:"ad29fd4619a5bf9e38cbca2e24f8c6818419c022",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"4b1691f7f54a8e83f649a3d1346ec5e0f4ebb588"},i("justifi-checkout-summary",{key:"8ea50acbcd67ea9f26dbdf74f3a0a30062926364"}))),i("div",{key:"b024b6c6debc74443abca6b7776c29ce0253da34",class:"col-12 mt-4"},i("slot",{key:"00b9e18b4fb5278085a3752cdd009d29b0a97a04",name:"insurance"})),i("div",{key:"7dac621b116926cbd860ca975aa642bc207fc62e",class:"col-12 mt-4"},i("justifi-header",{key:"228d89e8fc31e9e0d6e67907b45f74b8af601e30",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"6cc7b7a742f679029f40d8c64c9d59004604f67b",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"d5ca29544817acbd96c6cff74de27ed13b9ac42f",class:"d-flex flex-column"},i("section",{key:"d149835076b70d73c61cfa6e219ac613cf93e817"},i("div",{key:"c4562096a2bbd0bacb907c1bbb5cf741d5c77cb3"},i("justifi-saved-payment-methods",{key:"077666867b456945c6da965a2ebebfd2faaa66b9"}),this.availablePaymentMethods.includes(h.APPLE_PAY)&&i("div",{key:"7db9e4f2bc82ed36dce329e83c4fbbfea23aa615",class:"mb-3"},i("justifi-apple-pay",{key:"50f02bd90d1f3ca1d43a2d027a596382b2e0b589"})),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"41b15052934bd38c021de57e35d116fcf756e996",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"19669551d9835b62b02d38308f713f255fbf5276",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"adce7f493b7b17d315c839290e04e1f89b7b033a",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"bcb348f1d16b64ca7bc9cb30e5dbe7bccc84ddd6",class:"mt-4"},i("justifi-button",{key:"f1fbd73274ea2d0674ae4979fab09b142446ad4e",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{b as justifi_checkout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as i,H as s,g as n}from"./p-DwYM91AU.js";import{A as a}from"./p-C8yN3uBj.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as r}from"./p-VhOlg78I.js";import{c as l,o as c,g as h,a as d,b as u}from"./p-CbBTgsKC.js";import{D as p,r as y}from"./p-Dj_zevuD.js";import{f as m}from"./p-BS7OgSQe.js";import{H as v}from"./p-C7m-gAAM.js";import{H as M,b as f,h as b,i as g}from"./p-DwLZbA7D.js";import{H as k}from"./p-CO8ZJ0jB.js";import{J as w,c as j}from"./p-CXxdHjVv.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as A,a as T,b as P}from"./p-Cjcsf8ku.js";import{I as N}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as C,a as E}from"./p-D2muobcE.js";import{C as I}from"./p-BItPr6Gj.js";import{P as D,a as S,b as O}from"./p-DCIW8z1f.js";import{C as x}from"./p-ZpPDShvP.js";import"./p-BYsgavgS.js";import"./p-CuLmJjEz.js";var L,z,_,R,U;!function(t){t.STATUS_SUCCESS="STATUS_SUCCESS",t.STATUS_FAILURE="STATUS_FAILURE"}(L||(L={})),function(t){t.PLAIN="plain",t.BUY="buy",t.SET_UP="set-up",t.DONATE="donate",t.CHECK_OUT="check-out",t.BOOK="book",t.SUBSCRIBE="subscribe"}(z||(z={})),function(t){t.BLACK="black",t.WHITE="white",t.WHITE_OUTLINE="white-outline"}(_||(_={})),function(t){t.SUPPORTS_3DS="supports3DS",t.SUPPORTS_EMV="supportsEMV",t.SUPPORTS_CREDIT="supportsCredit",t.SUPPORTS_DEBIT="supportsDebit"}(R||(R={}));class B{constructor(t){this.merchantIdentifier=t.merchantIdentifier,this.displayName=t.displayName,this.initiative=t.initiative,this.initiativeContext=t.initiativeContext,this.buttonType=t.buttonType||z.PLAIN,this.buttonStyle=t.buttonStyle||_.BLACK,this.buttonLocale=t.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class Y{constructor(t){this.countryCode=t.countryCode,this.currencyCode=t.currencyCode,this.merchantCapabilities=t.merchantCapabilities,this.supportedNetworks=t.supportedNetworks,this.total=t.total,this.lineItems=t.lineItems,this.shippingMethods=t.shippingMethods,this.applicationData=t.applicationData,this.supportedCountries=t.supportedCountries}get isValid(){var t,e,i,s;return!!(this.countryCode&&this.currencyCode&&(null===(t=this.merchantCapabilities)||void 0===t?void 0:t.length)&&(null===(e=this.supportedNetworks)||void 0===e?void 0:e.length)&&(null===(i=this.total)||void 0===i?void 0:i.label)&&(null===(s=this.total)||void 0===s?void 0:s.amount))}}class F{static isApplePaySupported(){var t;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))}static canMakePayments(){var t;return this.isApplePaySupported()&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(t){var e;if(!this.isApplePaySupported())return!1;try{return await(null===(e=window.ApplePaySession)||void 0===e?void 0:e.canMakePaymentsWithActiveCard(t))||!1}catch(t){return console.error("Error checking Apple Pay active card:",t),!1}}static formatAmount(t){return(t/100).toFixed(2)}static parseAmount(t){return Math.round(100*parseFloat(t))}static createLineItem(t,e,i="final"){return{label:t,amount:this.formatAmount(e),type:i}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[R.SUPPORTS_3DS,R.SUPPORTS_EMV,R.SUPPORTS_CREDIT,R.SUPPORTS_DEBIT]}}!function(t){t.UNAVAILABLE="UNAVAILABLE",t.SESSION_ERROR="SESSION_ERROR",t.MERCHANT_VALIDATION_ERROR="MERCHANT_VALIDATION_ERROR",t.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",t.USER_CANCELLED="USER_CANCELLED"}(U||(U={}));class Q{constructor(){this.api=a()}initialize(t){if(this.applePayConfig=new B(t),!this.applePayConfig.isValid)throw new Error("Invalid Apple Pay configuration provided")}async validateMerchant(t,e){try{return await this.api.post({endpoint:"apple_pay/merchant_session",authToken:t,headers:{"Sub-Account":e},body:{domain:window.location.host,display_name:this.applePayConfig.displayName}})}catch(t){throw console.error("Backend validation failed:",t),new Error("Merchant validation failed")}}async processPayment(t,e,i){const s=await this.api.post({endpoint:"apple_pay/process_token",authToken:t,body:i,headers:{"Sub-Account":e}});return{success:s.id&&!!s.data.token,data:s}}isAvailable(){return F.isApplePaySupported()&&F.canMakePayments()}async canMakePaymentsWithActiveCard(){if(!this.applePayConfig)throw new Error("Apple Pay not initialized. Call initialize() first.");return await F.canMakePaymentsWithActiveCard(this.applePayConfig.merchantIdentifier)}async startPaymentSession(t,e,i){if(!this.applePayConfig)throw console.error("[ApplePayService] Missing applePayConfig. Did you call initialize()?"),new Error("Apple Pay not initialized. Call initialize() first.");const s=new Y(t);if(!s.isValid){const t=[];throw s.countryCode||t.push("countryCode"),s.currencyCode||t.push("currencyCode"),s.merchantCapabilities&&0!==s.merchantCapabilities.length||t.push("merchantCapabilities"),s.supportedNetworks&&0!==s.supportedNetworks.length||t.push("supportedNetworks"),s.total&&s.total.label&&s.total.amount||t.push("total"),console.error("[ApplePayService] Payment request is invalid. Missing/invalid:",t),new Error("Invalid payment request provided")}return this.currentPaymentRequest=s,new Promise(((t,n)=>{try{if("undefined"==typeof window||!("ApplePaySession"in window))return console.error("[ApplePayService] ApplePaySession not available on window"),n({success:!1,error:{code:U.UNAVAILABLE,message:"ApplePaySession API is not available in this environment"}});this.currentSession=new window.ApplePaySession(3,s),this.setupSessionEventHandlers(t,n,e,i),this.currentSession.begin()}catch(t){console.error("[ApplePayService] Exception while starting session:",t),n({success:!1,error:{code:U.SESSION_ERROR,message:t instanceof Error?t.message:"Failed to start Apple Pay session"}})}}))}abortPaymentSession(){this.currentSession&&(this.currentSession.abort(),this.currentSession=void 0,this.currentPaymentRequest=void 0)}setupSessionEventHandlers(t,e,i,s){this.currentSession&&this.applePayConfig&&this.currentPaymentRequest?(this.currentSession.onvalidatemerchant=async()=>{try{if(!i)throw console.error("[ApplePayService] Missing authToken for merchant validation"),new Error("Authentication token not provided.");const t=await this.validateMerchant(i,s);try{this.currentSession.completeMerchantValidation(t)}catch(t){throw console.error("Error calling completeMerchantValidation:",t),t}}catch(t){console.error("=== MERCHANT VALIDATION ERROR ==="),console.error("Error during merchant validation:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.abort(),e({success:!1,error:{code:U.MERCHANT_VALIDATION_ERROR,message:t instanceof Error?t.message:"Merchant validation failed"}})}},this.currentSession.onpaymentauthorized=async n=>{try{const a=n.payment,o=Object.assign(Object.assign({},a.token),{product_details:{name:this.currentPaymentRequest.total.label,price:F.parseAmount(this.currentPaymentRequest.total.amount),description:this.currentPaymentRequest.total.label}}),r=await this.processPayment(i,s,o);r.success?(this.currentSession.completePayment({status:L.STATUS_SUCCESS}),t({success:!0,token:a.token,paymentMethodId:r.data.id})):(console.error("PSP reported payment failure:",r.data),this.currentSession.completePayment({status:L.STATUS_FAILURE}),e({success:!1,error:{code:U.PAYMENT_PROCESSING_ERROR,message:"Payment processing failed"}}))}catch(t){console.error("=== PAYMENT PROCESSING ERROR ==="),console.error("Error processing payment:",t),t&&t.stack&&console.error("Error stack:",t.stack),this.currentSession.completePayment({status:L.STATUS_FAILURE}),e({success:!1,error:{code:U.PAYMENT_PROCESSING_ERROR,message:t instanceof Error?t.message:"Payment processing failed"}})}finally{this.currentSession=void 0,this.currentPaymentRequest=void 0}},this.currentSession.onpaymentmethodselected=()=>{const t={newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]};try{this.currentSession.completePaymentMethodSelection(t)}catch(t){console.error("Error completing payment method selection:",t),this.currentSession.abort()}},this.currentSession.onshippingmethodselected=()=>{this.currentSession.completeShippingMethodSelection({status:L.STATUS_SUCCESS,newTotal:this.currentPaymentRequest.total,newLineItems:this.currentPaymentRequest.lineItems||[]})},this.currentSession.oncancel=t=>{if(t.sessionError)switch(console.error(t.sessionError),t.sessionError.code){case"unknown":console.error("Unknown error - likely merchant validation issue"),console.error("This usually means:"),console.error("1. Merchant certificate is invalid or expired"),console.error("2. Merchant identifier mismatch"),console.error("3. Backend validation endpoint issues");break;case"invalidMerchantSession":console.error("Invalid merchant session provided"),console.error("Check that the merchant session from backend is valid");break;case"userCancel":console.error("User cancelled the payment");break;default:console.error("Other error code:",t.sessionError.code)}this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:U.USER_CANCELLED,message:"User cancelled the Apple Pay session"}})},"onerror"in this.currentSession&&(this.currentSession.onerror=t=>{console.error("=== APPLE PAY SESSION ERROR ==="),console.error("Session error:",t),this.currentSession=void 0,this.currentPaymentRequest=void 0,e({success:!1,error:{code:U.SESSION_ERROR,message:"Apple Pay session error occurred"}})})):console.error("[ApplePayService] setupSessionEventHandlers called without required state",{hasSession:Boolean(this.currentSession),hasConfig:Boolean(this.applePayConfig),hasPaymentRequest:Boolean(this.currentPaymentRequest)})}static createPaymentRequest(t,e,i="US",s="USD"){return{countryCode:i,currencyCode:s,merchantCapabilities:F.getDefaultMerchantCapabilities(),supportedNetworks:F.getDefaultSupportedNetworks(),total:F.createLineItem(e,t)}}getApplePayConfig(){return this.applePayConfig}}const V=e=>{const{isLoading:i}=e;return i?t("div",{class:"container-fluid p-0"},t("div",{class:"row mb-3"},t("div",{class:"col-12 align-content-center"},t(r,{height:"44px",width:"100%",styles:{borderRadius:"8px"}})))):null},H=e=>t("div",{class:"apple-pay-button-container"},t("button",Object.assign({class:(()=>{let t="apple-pay-button";switch(e.buttonStyle){case _.WHITE:t+=" apple-pay-button-white";break;case _.WHITE_OUTLINE:t+=" apple-pay-button-white-outline";break;default:t+=" apple-pay-button-black"}switch(e.buttonType){case z.BUY:t+=" apple-pay-button-type-buy";break;case z.DONATE:t+=" apple-pay-button-type-donate";break;default:t+=" apple-pay-button-type-plain"}return(e.disabled||e.isProcessing||!e.isAvailable)&&(t+=" disabled"),t})(),style:{width:e.width,height:e.height},onClick:()=>{!e.disabled&&!e.isProcessing&&e.isAvailable&&e.clickHandler&&e.clickHandler()},disabled:e.disabled||e.isProcessing||!e.isAvailable,"aria-label":"Pay with Apple Pay",type:"button"},e),e.isProcessing&&t("div",{class:"processing-overlay"},t("div",{class:"spinner"}),t("span",null,"Processing..."))),t("style",null,"\n .apple-pay-button-container {\n display: block;\n position: relative;\n width: 100%;\n }\n\n /* Apple Pay CSS classes - these are the official Apple Pay button styles */\n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n -apple-pay-button-type: plain; /* default */\n -apple-pay-button-style: black; /* default */\n border-radius: 8px;\n cursor: pointer;\n border: none;\n outline: none;\n transition: opacity 0.2s ease;\n position: relative;\n }\n\n /* Button styles */\n .apple-pay-button.apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n\n .apple-pay-button.apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n\n .apple-pay-button.apple-pay-button-white-outline {\n -apple-pay-button-style: white-outline;\n }\n\n /* Button types */\n .apple-pay-button.apple-pay-button-type-plain {\n -apple-pay-button-type: plain;\n }\n\n .apple-pay-button.apple-pay-button-type-buy {\n -apple-pay-button-type: buy;\n }\n\n .apple-pay-button.apple-pay-button-type-donate {\n -apple-pay-button-type: donate;\n }\n\n /* Hover and disabled states */\n .apple-pay-button:hover:not(.disabled) {\n opacity: 0.9;\n }\n\n .apple-pay-button.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Processing overlay */\n .processing-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n border-radius: 8px;\n font-size: 14px;\n font-weight: 500;\n }\n\n .spinner {\n width: 16px;\n height: 16px;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid #fff;\n border-radius: 50%;\n animation: spin 1s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n /* Responsive design */\n @media (max-width: 480px) {\n .apple-pay-button {\n width: 100% !important;\n min-width: 200px;\n }\n }\n ")),W=class{constructor(t){e(this,t),this.applePayStarted=i(this,"applePayStarted"),this.applePayCompleted=i(this,"applePayCompleted"),this.applePayCancelled=i(this,"applePayCancelled"),this.applePayError=i(this,"applePayError"),this.countryCode="US",this.merchantIdentifier="merchant.com.staging-justifi.checkout-dev",this.merchantDisplayName="JustiFi Checkout",this.initiativeContext="dev-checkout.justifi-staging.com",this.buttonType=z.PLAIN,this.buttonStyle=_.BLACK,this.disabled=!1,this.showSkeleton=!0,this.width="100%",this.height="48px",this.isLoading=!0,this.isProcessing=!1,this.isAvailable=!1,this.canMakePayments=!1,this.isConfigValid=!0,this.error=null,this.handleApplePayClick=async()=>{var t,e;if(!this.isProcessing&&!this.disabled&&this.isAvailable)try{this.isProcessing=!0,this.error=null,this.applePayStarted.emit();const i={countryCode:this.countryCode,currencyCode:l.paymentCurrency,merchantCapabilities:[R.SUPPORTS_3DS,R.SUPPORTS_CREDIT,R.SUPPORTS_DEBIT],supportedNetworks:F.getDefaultSupportedNetworks(),total:F.createLineItem(l.paymentDescription,l.paymentAmount)},s=await this.applePayService.startPaymentSession(i,l.authToken,l.accountId);s.success?this.applePayCompleted.emit({success:!0,token:s.token,paymentMethodId:s.paymentMethodId}):(this.applePayCompleted.emit({success:!1,error:s.error}),this.applePayError.emit({error:(null===(t=s.error)||void 0===t?void 0:t.message)||"Payment failed",code:(null===(e=s.error)||void 0===e?void 0:e.code)||W.ErrorCode.PAYMENT_FAILED}))}catch(t){const e=t instanceof Error?t.message:"Payment failed";this.error=e,this.applePayError.emit({error:e,code:W.ErrorCode.PAYMENT_FAILED}),this.applePayCompleted.emit({success:!1,error:e})}finally{this.isProcessing=!1}}}async initializeApplePay(){try{if(this.isLoading=!0,this.error=null,this.isConfigValid=!0,!(Boolean(l.paymentAmount)&&Boolean(l.paymentCurrency)&&Boolean(l.authToken)))return this.error="Missing required Apple Pay configuration",this.isConfigValid=!1,console.error("Apple Pay config error: missing required values",{paymentAmount:l.paymentAmount,paymentCurrency:l.paymentCurrency,hasAuthToken:Boolean(l.authToken),accountId:l.accountId}),this.applePayError.emit({error:this.error,code:W.ErrorCode.CONFIG_ERROR}),void(this.isLoading=!1);if(this.isAvailable=F.isApplePaySupported(),this.canMakePayments=F.canMakePayments(),!this.isAvailable)return this.error="Apple Pay is not supported on this device",console.error(this.error),this.applePayError.emit({error:this.error,code:W.ErrorCode.NOT_SUPPORTED}),void(this.isLoading=!1);if(!this.canMakePayments)return this.error="Apple Pay is not available",console.error(this.error),this.applePayError.emit({error:this.error,code:W.ErrorCode.NOT_AVAILABLE}),void(this.isLoading=!1);const t={merchantIdentifier:this.merchantIdentifier,displayName:this.merchantDisplayName,initiative:"web",initiativeContext:this.initiativeContext,buttonType:this.buttonType,buttonStyle:this.buttonStyle};this.applePayService=new Q,this.applePayService.initialize(t),await this.applePayService.canMakePaymentsWithActiveCard()||console.warn("No Apple Pay cards available, but continuing...")}catch(t){console.error("Apple Pay initialization error:",t),this.error=t instanceof Error?t.message:"Failed to initialize Apple Pay",this.applePayError.emit({error:this.error,code:W.ErrorCode.INITIALIZATION_ERROR})}finally{this.isLoading=!1}}async isSupported(){return this.isAvailable&&this.canMakePayments}async getPaymentMethods(){return this.isAvailable?F.getDefaultSupportedNetworks():[]}async abort(){this.applePayService.abortPaymentSession(),this.isProcessing=!1,this.applePayCancelled.emit()}render(){if(!l.applePayEnabled)return null;const e=!this.isLoading&&this.isAvailable&&this.canMakePayments&&this.isConfigValid;return t(o,null,l.checkoutLoaded&&t("script",{async:!0,src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",onLoad:()=>{this.initializeApplePay()}}),t("div",{class:"apple-pay-container"},t(V,{isLoading:this.isLoading}),e&&t(H,{buttonType:this.buttonType,buttonStyle:this.buttonStyle,disabled:this.disabled,isProcessing:this.isProcessing,isAvailable:this.isAvailable,clickHandler:this.handleApplePayClick,width:this.width,height:this.height})),t("style",null,"\n .apple-pay-container {\n width: 100%;\n }\n "))}};W.ErrorCode={CONFIG_ERROR:"CONFIG_ERROR",NOT_SUPPORTED:"NOT_SUPPORTED",NOT_AVAILABLE:"NOT_AVAILABLE",INITIALIZATION_ERROR:"INITIALIZATION_ERROR",PAYMENT_FAILED:"PAYMENT_FAILED"};const Z=class{constructor(t){e(this,t)}render(){return t(o,{key:"fd2c61dcafdc800d0064c19d29c6e007aed5adb5"},t("section",{key:"f2abef1233f3ccad3982d10c61ec5765e13e27a5"},t("div",{key:"713d66ef6f7e2fc73135e765069baba6df976f52"},t("div",{key:"b8dd28f257948aa317366fe3ea6d2bc4911ef164",part:p},null==l?void 0:l.paymentDescription),t("div",{key:"675676b40de7dc27d07bfafc0eee77eb855a3d26"},t("span",{key:"cbd47994d9c3f1518741a298de3f5d62a0ad5313",part:p},"Total")," ",t("span",{key:"614748853f666f1b072d4fa9b14ee15ef5717112",part:p},m(+(null==l?void 0:l.totalAmount)))))))}},q=class{constructor(t){e(this,t),this.levels={h1:v,h2:M,h3:k},this.level="h1"}render(){return t(o,{key:"89edcc4c5a478317da615d276af05cac241c1867"},t(this.levels[this.level],{key:"a5c01967f8809fd6b824ddc8730599041ae31822",text:this.text,class:this.class}))}},G=a();class J{async getLinkToken(t,e,i,s){return G.post({endpoint:`plaid/${e}/link`,body:{checkout_id:i},authToken:t,signal:s})}async tokenizeBankAccount(t,e,i,s,n,a){const o=`plaid/${e}/tokenize`,r={public_token:i};return s&&(r.link_token_id=s),n&&(r.payment_method_group_id=n),G.post({endpoint:o,body:r,authToken:t,signal:a})}}const X=class{constructor(t){e(this,t),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.checkoutChangedEvent=i(this,"checkout-changed"),this.plaidService=new J,this.handleApplePayCompleted=t=>{const{success:e,token:i,paymentMethodId:s,error:n}=t.detail;e&&i?(l.paymentToken=s,l.selectedPaymentMethod={type:D.APPLE_PAY},this.submitCheckout()):(console.error("Apple Pay completed but failed:",n),this.errorEvent.emit({message:(null==n?void 0:n.message)||"Apple Pay payment failed",errorCode:T.TOKENIZE_ERROR,severity:A.ERROR}))},this.handleApplePayError=t=>{const{error:e,code:i}=t.detail;console.error("Apple Pay error:",e),this.errorEvent.emit({message:e||"Apple Pay error occurred",errorCode:`APPLE_PAY_${i}`,severity:A.ERROR})},this.handleApplePayCancelled=()=>{l.paymentToken=void 0,l.selectedPaymentMethod=void 0}}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs(),this.setupApplePayListeners()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),l.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new I};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:n})=>{var a;try{const o=await i.fetchCheckout(t,e);if(o.error)return n({error:E(o.error),code:C(null===(a=o.error)||void 0===a?void 0:a.code),severity:A.ERROR});s({checkout:o.data})}catch(t){const e=C(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:A.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:n,onError:a})=>{var o;try{const r=await i.complete(t,e,s);if(r.error)return a({error:E(r.error),code:C(null===(o=r.error)||void 0===o?void 0:o.code),severity:A.ERROR});n({checkout:r.data})}catch(t){const e=C(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:A.ERROR})}})(t),c((()=>{this.emitCheckoutChanged()}))}componentWillLoad(){this.analytics=new w(this),j(),l.authToken=this.authToken,this.fetchCheckout(),f("set",(t=>{const e=g[t];void 0!==e&&b(t,e)&&this.fetchCheckout()}))}componentDidLoad(){this.queryFormRefs(),this.setupApplePayListeners()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.removeApplePayListeners()}fetchCheckout(){this.authToken&&this.checkoutId?this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{this.updateStore(t),t.status!==N.completed?t.status!==N.expired||this.errorEvent.emit({message:P.CHECKOUT_EXPIRED,errorCode:T.CHECKOUT_EXPIRED,severity:A.ERROR}):this.errorEvent.emit({message:P.CHECKOUT_ALREADY_COMPLETED,errorCode:T.CHECKOUT_ALREADY_COMPLETED,severity:A.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:t.code,severity:t.severity})}}):this.errorEvent.emit({message:P.NOT_AUTHENTICATED,errorCode:T.NOT_AUTHENTICATED,severity:A.ERROR})}updateStore(t){var e,i,s,n,a,o;l.accountId=t.account_id,l.checkoutLoaded=!0,l.paymentMethods=t.payment_methods.map((t=>new S(t))),l.paymentMethodGroupId=t.payment_method_group_id,l.paymentDescription=t.payment_description,l.totalAmount=t.total_amount,l.paymentAmount=t.payment_amount,l.bnplEnabled=t.payment_settings.bnpl_payments,l.insuranceEnabled=t.payment_settings.insurance_payments,l.bankAccountVerification=null===(e=t.payment_settings)||void 0===e?void 0:e.bank_account_verification,l.applePayEnabled=null===(i=t.payment_settings)||void 0===i?void 0:i.apple_payments,l.bnplProviderClientId=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_client_id,l.bnplProviderMode=null===(n=null==t?void 0:t.bnpl)||void 0===n?void 0:n.provider_mode,l.bnplProviderApiVersion=null===(a=null==t?void 0:t.bnpl)||void 0===a?void 0:a.provider_api_version,l.bnplProviderCheckoutUrl=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_checkout_url}emitCheckoutChanged(){const t={availablePaymentMethodTypes:h(),selectedPaymentMethod:l.selectedPaymentMethod,savedPaymentMethods:l.paymentMethods};this.checkoutChangedEvent.emit(t)}queryFormRefs(){this.billingFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple, justifi-billing-form-full"),this.applePayRef=this.hostEl.querySelector("justifi-apple-pay"),this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form, justifi-tokenize-payment-method"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance")}setupApplePayListeners(){this.applePayRef&&(this.applePayRef.addEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.addEventListener("applePayError",this.handleApplePayError),this.applePayRef.addEventListener("applePayCancelled",this.handleApplePayCancelled))}removeApplePayListeners(){this.applePayRef&&(this.applePayRef.removeEventListener("applePayCompleted",this.handleApplePayCompleted),this.applePayRef.removeEventListener("applePayError",this.handleApplePayError),this.applePayRef.removeEventListener("applePayCancelled",this.handleApplePayCancelled))}async tokenizePaymentMethod(t){var e,i,s;const n=null!==(i=await(null===(e=this.billingFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},a=Object.assign(Object.assign({},t),n),o=Object.assign({accountId:l.accountId,payment_method_group_id:void 0},a);l.savePaymentMethod&&(o.payment_method_group_id=l.paymentMethodGroupId);const r=await(null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:o,account:l.accountId}));return r.error?r:(l.paymentToken=r.id,r.id)}async setSelectedPaymentMethod(t){l.selectedPaymentMethod=t,l.paymentToken=t.id||void 0}async validate(){var t,e;const i=[];l.insuranceEnabled&&this.insuranceFormRef&&i.push(this.insuranceFormRef.validate());const s=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===D.NEW_CARD,n=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===D.NEW_BANK_ACCOUNT;if((s||n)&&(this.paymentMethodFormRef&&i.push(this.paymentMethodFormRef.validate()),this.billingFormRef&&i.push(this.billingFormRef.validate())),0===i.length)return!0;try{return!!(await Promise.all(i)).every((t=>"boolean"==typeof t?t:!1!==(null==t?void 0:t.isValid)))||(this.errorEvent.emit({message:"Validation error",errorCode:T.VALIDATION_ERROR,severity:A.ERROR}),!1)}catch(t){return!1}}async submitCheckout(t){var e,i,s,n,a;const o=await this.validate();if(!l.selectedPaymentMethod)return void this.errorEvent.emit({message:"No payment method selected.",errorCode:T.VALIDATION_ERROR,severity:A.ERROR});const r=(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)===D.NEW_CARD,c=(null===(i=l.selectedPaymentMethod)||void 0===i?void 0:i.type)===D.NEW_BANK_ACCOUNT,h=(null===(s=l.selectedPaymentMethod)||void 0===s?void 0:s.type)===D.PLAID;if(r||c){const e=await this.tokenizePaymentMethod(t);if(null==e?void 0:e.error)return void this.errorEvent.emit({message:e.error.message,errorCode:T.TOKENIZE_ERROR,severity:A.ERROR})}if(h&&!l.paymentToken){const t=l.plaidPublicToken,e=l.plaidLinkTokenId;if(!t)return void this.errorEvent.emit({message:"Missing Plaid public token. Please connect your bank.",errorCode:T.TOKENIZE_ERROR,severity:A.ERROR});try{const i=await this.plaidService.tokenizeBankAccount(l.authToken,l.accountId,t,e||void 0,l.savePaymentMethod?l.paymentMethodGroupId:void 0);if(null==i?void 0:i.error)return void this.errorEvent.emit({message:"string"==typeof i.error?i.error:i.error.message||"Failed to tokenize bank account",errorCode:T.TOKENIZE_ERROR,severity:A.ERROR});const s=null==i?void 0:i.data,a=(null===(n=null==s?void 0:s.bank_account)||void 0===n?void 0:n.token)||(null==s?void 0:s.token)||(null==s?void 0:s.id);l.paymentToken=a}catch(t){return void this.errorEvent.emit({message:(null==t?void 0:t.message)||"Plaid exchange error",errorCode:T.TOKENIZE_ERROR,severity:A.ERROR})}}if(!o)return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:T.VALIDATION_ERROR,severity:A.ERROR});if(!l.paymentToken)return void this.errorEvent.emit({message:"Payment token not found.",errorCode:T.TOKENIZE_ERROR,severity:A.ERROR});let u;if(u={payment_mode:(t=>{switch(t){case D.NEW_CARD:case D.SAVED_CARD:case D.NEW_BANK_ACCOUNT:case D.SAVED_BANK_ACCOUNT:case D.PLAID:return O.ECOM;case D.SEZZLE:return O.BNPL;case D.APPLE_PAY:return O.APPLE_PAY;default:return}})(null===(a=l.selectedPaymentMethod)||void 0===a?void 0:a.type),payment_token:l.paymentToken},this.preCompleteHook){const t=d();try{await new Promise(((e,i)=>{this.preCompleteHook(t,(()=>e()),(()=>i()))}))}catch(t){return}}this.completeCheckout({payment:u,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:T.COMPLETE_CHECKOUT_ERROR,severity:A.ERROR})}})}render(){return t(s,{key:"56a003ca1e1ac4bdc1baa8f862cdb05b2d8af4b1"})}get hostEl(){return n(this)}};var K;!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"}(K||(K={}));const $={[K.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[K.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[K.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[K.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[K.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[K.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[K.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[K.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[K.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[K.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[K.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[K.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[K.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},tt={[K.PLAID_SDK_LOAD_FAILED]:A.ERROR,[K.PLAID_LINK_INIT_FAILED]:A.ERROR,[K.PLAID_LINK_TOKEN_FAILED]:A.ERROR,[K.PLAID_AUTHENTICATION_FAILED]:A.ERROR,[K.PLAID_BANK_NOT_SUPPORTED]:A.WARNING,[K.PLAID_TOKEN_EXPIRED]:A.WARNING,[K.PLAID_NETWORK_ERROR]:A.WARNING,[K.PLAID_USER_CANCELLED]:A.INFO,[K.PLAID_TIMEOUT]:A.WARNING,[K.PLAID_INVALID_CREDENTIALS]:A.ERROR,[K.PLAID_ACCOUNT_LOCKED]:A.ERROR,[K.PLAID_MAINTENANCE]:A.WARNING,[K.PLAID_RATE_LIMITED]:A.WARNING},et=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.plaidError=i(this,"plaidError"),this.plaidErrorRecovered=i(this,"plaidErrorRecovered"),this.isAuthenticating=!1,this.publicToken=null,this.linkToken=null,this.linkTokenId=null,this.error=null,this.plaidLink=null,this.isSelected=!1,this.retryCount=0,this.isRetrying=!1,this.plaidService=new J,this.maxRetries=3,this.retryDelay=2e3,this.timeoutId=null,this.abortController=null,this.hasLoggedDisabledWarning=!1,this.waitForStoreAndInitialize=()=>{l.authToken&&l.accountId&&l.checkoutId?this.initializePlaidLink():setTimeout((()=>{this.waitForStoreAndInitialize()}),100)},this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:K.PLAID_SDK_LOAD_FAILED,message:$[K.PLAID_SDK_LOAD_FAILED],severity:tt[K.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:K.PLAID_LINK_TOKEN_FAILED,message:$[K.PLAID_LINK_TOKEN_FAILED],severity:tt[K.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:K.PLAID_LINK_INIT_FAILED,message:$[K.PLAID_LINK_INIT_FAILED],severity:tt[K.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,i,s,n;try{if(!l.authToken||!l.accountId)return void this.handleError({code:K.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please refresh the page and try again.",severity:A.ERROR,retryable:!1,userAction:"Refresh the page"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const e=await this.plaidService.getLinkToken(l.authToken,l.accountId,l.checkoutId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),e.error)throw new Error("string"==typeof e.error?e.error:e.error.message||"Failed to get link token");this.linkToken=e.data.link_token,this.linkTokenId=(null==e?void 0:e.id)||(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)||null,this.linkTokenId&&(l.plaidLinkTokenId=this.linkTokenId)}catch(t){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let a=K.PLAID_LINK_TOKEN_FAILED,o=$[a],r=!0;"AbortError"===t.name?(a=K.PLAID_TIMEOUT,o=$[a],r=!0):(null===(e=t.message)||void 0===e?void 0:e.includes("network"))||(null===(i=t.message)||void 0===i?void 0:i.includes("fetch"))?(a=K.PLAID_NETWORK_ERROR,o=$[a],r=!0):((null===(s=t.message)||void 0===s?void 0:s.includes("401"))||(null===(n=t.message)||void 0===n?void 0:n.includes("unauthorized")))&&(a=K.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please refresh the page and try again.",r=!1),this.handleError({code:a,message:o,severity:tt[a],originalError:t,retryable:r,userAction:r?"Click to try again":"Refresh the page"})}},this.mapApiErrorToPlaidError=t=>{if("string"==typeof t){if(t.includes("rate_limit"))return K.PLAID_RATE_LIMITED;if(t.includes("maintenance"))return K.PLAID_MAINTENANCE;if(t.includes("not_authenticated"))return K.PLAID_INVALID_CREDENTIALS}if(null==t?void 0:t.code)switch(t.code){case"rate_limited":return K.PLAID_RATE_LIMITED;case"maintenance":return K.PLAID_MAINTENANCE;case"not_authenticated":return K.PLAID_INVALID_CREDENTIALS;default:return K.PLAID_LINK_TOKEN_FAILED}return K.PLAID_LINK_TOKEN_FAILED},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=t=>{this.publicToken=t,this.isAuthenticating=!1,this.clearError(),this.retryCount=0,this.isSelected||(this.isSelected=!0,l.selectedPaymentMethod={type:D.PLAID}),this.plaidErrorRecovered.emit({code:"plaid-success",message:"Bank account connected successfully",severity:A.INFO}),l.plaidPublicToken=t},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=K.PLAID_AUTHENTICATION_FAILED,i=$[e],s=!0,n="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=K.PLAID_INVALID_CREDENTIALS,i=$[e],s=!0;break;case"ITEM_LOGIN_REQUIRED":e=K.PLAID_INVALID_CREDENTIALS,i="Your bank requires re-authentication. Please try again.",s=!0;break;case"ITEM_LOCKED":e=K.PLAID_ACCOUNT_LOCKED,i=$[e],s=!1,n="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=K.PLAID_MAINTENANCE,i=$[e],s=!0;break;case"RATE_LIMIT_EXCEEDED":e=K.PLAID_RATE_LIMITED,i=$[e],s=!0;break;case"INVALID_REQUEST":e=K.PLAID_AUTHENTICATION_FAILED,i="Invalid request. Please try again.",s=!0;break;case"PLAID_ERROR":e=K.PLAID_AUTHENTICATION_FAILED,i=t.error_message||"Bank authentication failed. Please try again.",s=!0;break;default:t.error_message&&(i=t.error_message)}if(t.error_message){const a=t.error_message.toLowerCase();a.includes("not supported")||a.includes("unsupported")?(e=K.PLAID_BANK_NOT_SUPPORTED,i=$[e],s=!1,n="Try a different payment method"):(a.includes("expired")||a.includes("timeout"))&&(e=K.PLAID_TOKEN_EXPIRED,i=$[e],s=!0)}this.handleError({code:e,message:i,severity:tt[e],originalError:t,retryable:s,userAction:n}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.plaidError.emit({code:t.code,message:t.message,severity:t.severity,data:{originalError:t.originalError,retryable:t.retryable,userAction:t.userAction,retryCount:this.retryCount}}),console.error("Plaid error:",t),t.retryable&&this.retryCount<this.maxRetries&&this.scheduleRetry()},this.scheduleRetry=()=>{this.isRetrying||(this.isRetrying=!0,this.retryCount++,setTimeout((()=>{this.isRetrying=!1,this.clearError(),this.waitForStoreAndInitialize()}),this.retryDelay*this.retryCount))},this.clearError=()=>{this.error&&(this.error=null,this.retryCount=0)},this.syncWithStore=()=>{var t;const e=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===D.PLAID;this.isSelected!==e&&(this.isSelected=e)}}onSelectionChange(t){var e;t&&(null===(e=l.selectedPaymentMethod)||void 0===e?void 0:e.type)!==D.PLAID&&(l.selectedPaymentMethod={type:D.PLAID}),!t||!this.plaidLink||this.publicToken||this.isAuthenticating||this.error||this.openPlaidLink()}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.waitForStoreAndInitialize()},this.scriptRef.onerror=()=>{this.handleError({code:K.PLAID_SDK_LOAD_FAILED,message:$[K.PLAID_SDK_LOAD_FAILED],severity:tt[K.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}componentWillLoad(){var t;this.isSelected=(null===(t=l.selectedPaymentMethod)||void 0===t?void 0:t.type)===D.PLAID}async resolvePaymentMethod(){return this.publicToken?{token:this.publicToken,data:{type:"bank_account",plaid_public_token:this.publicToken}}:{validationError:!0}}async getPaymentToken(){return l.paymentToken}async handleSelectionClick(){if(this.isSelected=!0,l.selectedPaymentMethod={type:D.PLAID},this.error)return this.clearError(),void this.waitForStoreAndInitialize();!this.plaidLink||this.publicToken||this.isAuthenticating||this.openPlaidLink()}async setSelected(t){this.isSelected=t,t&&(l.selectedPaymentMethod={type:D.PLAID})}async isCurrentlySelected(){return this.isSelected}async deselect(){this.isSelected=!1}async reset(){this.publicToken=null,this.clearError(),this.isAuthenticating=!1,this.linkToken=null,this.plaidLink=null,this.retryCount=0,this.isRetrying=!1,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.abortController&&(this.abortController.abort(),this.abortController=null)}async isReadyForAuthentication(){return!(!this.plaidLink||!this.linkToken||this.isAuthenticating)}async retry(){this.error&&this.error.retryable&&(this.clearError(),this.waitForStoreAndInitialize())}async getErrorInfo(){return this.error}componentDidLoad(){const t=u("selectedPaymentMethod",this.syncWithStore);this.unsubscribeFromStore=t}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){if(!0!==l.bankAccountVerification)return this.hasLoggedDisabledWarning||(console.warn("[PlaidPaymentMethod] bank_account_verification is disabled. Component will not render."),this.hasLoggedDisabledWarning=!0),null;const e=t("img",{class:"plaid-logo-img",src:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjggMjkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9ImNzcy0xcmRhajhtIj48ZyBmaWxsPSIjMTExIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNS43NjI5IDI2LjI2MjhMMjggMTcuNTMwOUwyNC45NjkxIDE0LjUwMDFMMjcuOTk5OSAxMS40NjkxTDI1Ljc2MjggMi43MzcwNkwxNy4wMzA5IDAuNUwxNC4wMDAxIDMuNTMxTDEwLjk2OSAwLjUwMDE0TDIuMjM3MDYgMi43MzczNEwwIDExLjQ2OTFMMy4wMzEyOCAxNC40OTk5TDAuMDAwMTQgMTcuNTMxTDIuMjM3MiAyNi4yNjI5TDEwLjk2OTEgMjguNUwxNC4wMDAxIDI1LjQ2OUwxNy4wMzEgMjguNDk5OUwyNS43NjI5IDI2LjI2MjhaTTE1LjczMjEgMjMuNzM3MUwxOC42MTg2IDIwLjg1MDVMMjIuMjkxMiAyNC41MjMzTDE3LjY5NTYgMjUuNzAwN0wxNS43MzIxIDIzLjczNzFaTTExLjExMzYgOS44ODE1NEwxNC4wMDAzIDYuOTk1MDJMMTYuODg2OCA5Ljg4MTRMMTQuMDAwMSAxMi43Njc5TDExLjExMzYgOS44ODE1NFpNMTIuMjY4MiAxNC41TDkuMzgxNTQgMTcuMzg2NUw2LjQ5NTAyIDE0LjVMOS4zODE1NCAxMS42MTM1TDEyLjI2ODIgMTQuNVpNMTguNjE4NyAxMS42MTMzTDIxLjUwNTMgMTQuNUwxOC42MTg2IDE3LjM4NjVMMTUuNzMyMSAxNC41TDE4LjYxODcgMTEuNjEzM1pNMTYuODg2NyAxOS4xMTg2TDE0LjAwMDEgMjIuMDA1MUwxMS4xMTM1IDE5LjExODVMMTQuMDAwMSAxNi4yMzE5TDE2Ljg4NjcgMTkuMTE4NlpNMTAuMzA0NCAyNS43MDA3TDUuNzA4NjQgMjQuNTIzM0w5LjM4MTU0IDIwLjg1MDRMMTIuMjY4MiAyMy43MzcxTDEwLjMwNDQgMjUuNzAwN1pNNC43NjMwOCAxNi4yMzE5TDcuNjQ5NiAxOS4xMTg1TDMuOTc2NyAyMi43OTE0TDIuNzk5MyAxOC4xOTU3TDQuNzYzMDggMTYuMjMxOVpNMy45NzY3IDYuMjA4MzZMNy42NDk3NCA5Ljg4MTRMNC43NjMwOCAxMi43NjgxTDIuNzk5MyAxMC44MDQxTDMuOTc2NyA2LjIwODM2Wk0xMi4yNjgzIDUuMjYyOTRMOS4zODE2OCA4LjE0OTZMNS43MDg5MiA0LjQ3NjdMMTAuMzA0NyAzLjI5OTNMMTIuMjY4MyA1LjI2Mjk0Wk0xNy42OTU5IDMuMjk5M0wyMi4yOTE1IDQuNDc2N0wxOC42MTg2IDguMTQ5NDZMMTUuNzMyMSA1LjI2Mjk0TDE3LjY5NTkgMy4yOTkzWk0yMy4yMzcyIDEyLjc2ODFMMjAuMzUwNSA5Ljg4MTRMMjQuMDIzMyA2LjIwODc4TDI1LjIwMDcgMTAuODA0NkwyMy4yMzcyIDEyLjc2ODFaTTI0LjAyMzMgMjIuNzkxNEwyMC4zNTA1IDE5LjExODZMMjMuMjM3MiAxNi4yMzIxTDI1LjIwMDcgMTguMTk1N0wyNC4wMjMzIDIyLjc5MTRaIj48L3BhdGg+PC9nPjwvc3ZnPgo=",alt:"Plaid",title:"Plaid",style:{display:"inline",width:"20px",height:"20px",marginLeft:"5px",marginTop:"-2px"}});return t(o,{class:"payment-method"},t("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),t("div",{title:"Pay with Plaid"},t("div",{onClick:t=>{t.preventDefault(),this.handleSelectionClick()}},"Pay with Bank Account ",e," "),(()=>this.error?t("div",{class:(this.error.severity===A.ERROR?"text-danger":this.error.severity===A.WARNING?"text-warning":"text-info")+" mt-2"},t("small",null,this.error.message),t("br",null),t("small",{class:"text-muted"},this.error.userAction,this.error.retryable&&this.retryCount<this.maxRetries&&t("span",null," • Auto-retry in progress..."))):null)(),(()=>this.error?null:this.isAuthenticating?t("div",{class:"text-info mt-2"},t("small",null,"Connecting to your bank...")):this.publicToken?t("div",{class:"text-success mt-2"},t("small",null,"✓ Bank account connected successfully")):!this.isSelected||this.publicToken||this.error||this.isAuthenticating?null:t("div",{class:"text-muted mt-2"},t("small",null,"Click to connect your bank account")))()))}static get watchers(){return{isSelected:["onSelectionChange"]}}},it=class{constructor(t){e(this,t),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),l.selectedPaymentMethod={id:t.id,type:t.type},l.paymentToken=t.id},this.isAllowedPaymentMethod=t=>!(t===D.SAVED_CARD&&l.disableCreditCard||t===D.SAVED_BANK_ACCOUNT&&l.disableBankAccount)}componentWillLoad(){l.paymentMethods.length||console.warn("No saved payment methods available."),l.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return l.disablePaymentMethodGroup?null:t(o,null,t("div",{class:"saved-payment-methods"},l.paymentMethods.length?l.paymentMethods.filter((t=>this.isAllowedPaymentMethod(t.type))).map((e=>t("div",{class:"radio-list-item p-3",part:y,onClick:this.onPaymentMethodOptionClick(e)},t("form-control-radio",{name:"paymentMethodType",value:null==e?void 0:e.id,checked:l.paymentToken===(null==e?void 0:e.id),label:`${x[null==e?void 0:e.brand]||""} *${null==e?void 0:e.acct_last_four}`})))):null))}},st=t("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),nt=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId=D.SEZZLE,this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(l.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:l.bnplProviderClientId,apiMode:l.bnplProviderMode,apiVersion:l.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:l.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}async handleSelectionClick(){l.selectedPaymentMethod={type:D.SEZZLE},this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)}render(){var e,i;return l.bnplEnabled?t(o,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),t("div",null,t("div",null,"Buy now, pay later with ",st),this.installmentPlan&&t("small",null,t("span",null,null===(e=this.installmentPlan)||void 0===e?void 0:e.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},m(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}},at={[D.NEW_BANK_ACCOUNT]:"New bank account",[D.NEW_CARD]:"New credit or debit card"},ot="Payment form not ready",rt="Validation error",lt=class{constructor(t){e(this,t),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(){j(),this.analytics=new w(this)}handleRadioClick(t){this.selectedPaymentMethod=t.detail,l.selectedPaymentMethod={type: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:T.TOKENIZE_ERROR,message:rt}),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(T.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:T.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:ot}};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||l.authToken,account:this.accountId||l.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||l.authToken||this.emitError({errorCode:T.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||l.accountId||this.emitError({errorCode:T.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=D.NEW_BANK_ACCOUNT,l.selectedPaymentMethod={type:D.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=D.NEW_CARD,l.selectedPaymentMethod={type:D.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(D.NEW_CARD),this.disableBankAccount||t.push(D.NEW_BANK_ACCOUNT),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:A.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",ot);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||rt;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||l.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!l.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(e){const i=this.selectedPaymentMethod===e&&void 0===l.selectedPaymentMethod.id;return t("div",{class:"payment-method"},t("justifi-radio-list-item",{name:"paymentMethodType",value:e,checked:i,label:at[e],hidden:this.shouldHideRadioInput}),i&&this.renderSelectedPaymentMethodForm(e))}renderSelectedPaymentMethodForm(e){return t("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(e),t("div",{class:"mt-4"},t("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:e})),t("div",{class:"mt-4"},t("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID,label:this.savePaymentMethodLabel})))}renderPaymentMethodForm(e){return t(e===D.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return t(o,{key:"805537f9c210dd7d2cd6fa101659c143d716e187"},t("form",{key:"c05caa0149784c7653021eb58b8eb41e1119e93c"},t("fieldset",{key:"885abce69e70089d9841b9f866b41f9469a84437"},t("div",{key:"0411d66e395077e3442dacab459f6c9150d16d4e",class:"row gy-3"},t("div",{key:"1fa3dd928574a04b22ccca6a1727d4c8d602eea7",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),t("div",{key:"ec3db8e32cd0c6205992225df7e7c317e9d2a7b0",class:"col-12"},t("justifi-button",{key:"0eaba5f83caaf693fb110dfabfb78e2898d946df",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 n(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{W as justifi_apple_pay,Z as justifi_checkout_summary,q as justifi_header,X as justifi_modular_checkout,et as justifi_plaid_payment_method,it as justifi_saved_payment_methods,nt as justifi_sezzle_payment_method,lt as justifi_tokenize_payment_method}
|
|
@@ -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-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as h,a as o,b as c,c as n,d as p,e as d,f,g as u,h as b,i as m,j as g,k as y,l as j}from"./p-B-7rLJIB.js";import{T as l}from"./p-CZfYo5-1.js";import{p as C,a as k}from"./p-BVWZSqCK.js";import{o as S,g as v}from"./p-BOqOio4U.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-Dj_zevuD.js";import"./p-CgbXzEbz.js";import"./p-q6C7btl0.js";import"./p-Cu1FEdFr.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new h(this.payouts,this.columns,C,k(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),S("set",(()=>{this.pagingParams={}})),S("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?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.payouts=this.payouts.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 payoutParams(){const t=v();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"12ea39142a446522d219ae4504ab2cade5824b3f"},e(o,{key:"0ef8b5f3716776ee0fe41e9576a6c97728757142"},e(c,{key:"6024ecb321bf7d42a6940baefdab0492c87c77ab"},e(n,{key:"b80ac981c1f8ad5e06fc1c060961e82b47ac5501"},this.payoutsTable.columnData.map((t=>t)))),e(p,{key:"9b64e1e8af4fff2f78a8768361d9e3cb0397c493"},e(d,{key:"b28518a05714d5671cd094c2b8462c8fc1af5039",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"97845bb480292be454464092ebaddd90bd274821",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(u,{key:"89b1918fc32806dbc786c6de23bc1d8ac4aa359b",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.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:"bf545d589dfd579fcbfde145fee8e667478f2673"},e(g,{key:"05e52684f8923f0dfe0bd3fff3c8f72421ef6485"},e(y,{key:"967d53af83043748db6459f6cd7f153d9d713f37",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"55e154366e2df871c3dcfdd4b93dcaa11da216eb",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{w as payouts_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{ao as a,ap as s,aq as e,ar as r,as as l,at as c,au as o,av as n,aw as p,ax as i}from"./p-Dj_zevuD.js";import{S as b}from"./p-CgbXzEbz.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),j=(a,s)=>t("tr",Object.assign({part:r},a),s),m=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),x=(a,s)=>t("td",Object.assign({part:o},a),s),S=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:n,colSpan:s,style:{textAlign:"center"}},"No results")):null},w=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},D=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class f{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{f as T,d as a,m as b,g as c,h as d,D as e,S as f,w as g,j as h,y as i,O as j,x as k,u as l}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./p-
|
|
1
|
+
import{h as e}from"./p-DwYM91AU.js";import{B as t,a}from"./p-Cu1FEdFr.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,a as t}from"./p-DiJD6Iqx.js";import{k as a,l as s,n,q as i,u as r,v as l,x as o,p as d,e as m,y as p,z as c,A as E}from"./p-Cpp4qrH2.js";import{C as _}from"./p-B5rtFhtR.js";const b=r=>e(r?{line1:n.nullable(),line2:s.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:n.required("Enter street address"),line2:s.nullable(),city:a.required("Enter city"),state:t().required("Select state"),postal_code:i.required("Enter postal code")}),f=i=>e(i?{line1:n.nullable(),line2:s.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:n.required("Enter street address"),line2:s.nullable(),city:a.required("Enter city"),state:t().required("Select province"),postal_code:r(_.CAN).required("Enter postal code")}),u={[_.USA]:b,[_.CAN]:f},h=(a,s)=>s?(a=>e({name:c.required(`Enter ${a} name`),title:p.nullable(),email:m.nullable(),phone:d.nullable(),dob_full:o(a).nullable(),ssn_last4:t().nullable(),identification_number:l.nullable(),address:b(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:p.required(`Enter ${a} title`),email:m.required(`Enter ${a} email`),phone:d.required("Enter phone number"),dob_full:o(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:l,address:b(!1)}))(a),$=(a,s)=>s?(a=>e({name:c.required(`Enter ${a} name`),title:p.nullable(),email:m.nullable(),phone:d.nullable(),dob_full:o(a).nullable(),ssn_last4:t().nullable(),identification_number:E(_.CAN).nullable(),address:f(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:p.required(`Enter ${a} title`),email:m.required(`Enter ${a} email`),phone:d.required("Enter phone number"),dob_full:o(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:E(_.CAN),address:f(!1)}))(a),y={[_.USA]:h,[_.CAN]:$};export{b as a,$ as b,f as c,y as d,u as e,h as i}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t}from"./p-
|
|
1
|
+
import{A as t}from"./p-C8yN3uBj.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const o=t();class e{async fetchCheckout(t,e){return o.get({endpoint:`checkouts/${e}`,authToken:t})}async fetchCheckouts(t,e,s){return o.get({endpoint:"checkouts",params:s,headers:{Account:t},authToken:e})}async complete(t,e,s){const c=`checkouts/${e}/complete`,n={payment_mode:s.payment_mode};return s.payment_token&&(n.payment_token=s.payment_token),o.post({endpoint:c,body:n,authToken:t})}}export{e as C}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s}from"./p-BYsgavgS.js";const a={},t={},o=s((()=>a)),{state:c,on:e}=o,p=s((()=>t)),{state:g}=p,j=()=>Object.assign(Object.assign({},c),g),r=()=>{o.reset()};export{r as c,c as f,j as g,e as o,g as p}
|