@justifi/webcomponents 5.7.6-rc-04 → 5.7.6-rc-05
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-eP0XeJLd.js → Api-p2pK86Zd.js} +2 -2
- package/dist/cjs/Payment-2Zmn-l6G.js +151 -0
- package/dist/cjs/{Refund-08OcZkXX.js → Refund-BztCb6AK.js} +1 -148
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -5
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/{badge-DDksduwk.js → badge-CMmPvqtE.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -13
- package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/{business-additional-questions-schema-e3GCIHk5.js → business-additional-questions-schema-DNbSH3E-.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business-identity-schema-Diqj_WVQ.js → business-identity-schema-CclzWSOn.js} +2 -2
- package/dist/cjs/{business.service--Zv-Xtu4.js → business.service-DwZSyIlI.js} +3 -2
- package/dist/cjs/{button-0HYMPryx.js → button-CfVQSysQ.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +6 -6
- package/dist/cjs/{check-pkg-version-Bp51QhAR.js → check-pkg-version-lPG_FnM4.js} +4 -3
- package/dist/cjs/{checkout.service-BBD6v0cl.js → checkout.service-C_qEIb8b.js} +3 -2
- package/dist/cjs/{checkout.store-B58bewb_.js → checkout.store-mEv437nN.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -13
- package/dist/cjs/{payments-list-params-state-DZUKBmLC.js → checkouts-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{checkouts-table-Cp7rNkNd.js → checkouts-table-DJoMGwVG.js} +3 -3
- package/dist/cjs/{config-state-Dz9bnWHg.js → config-state-5xZf-jax.js} +1 -1
- package/dist/cjs/custom-popper.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-BHApwZdH.js → dispute.service-cQpQQMeh.js} +3 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-CVPYL0lE.js → form-control-error-text-HM0zQerh.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-B3jRgfoa.js → form-control-help-text-5KIUw1IP.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 +5 -5
- package/dist/cjs/form-control-monetary.cjs.entry.js +6 -8
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-7PreAOdF.js → get-payment-details-DwLcmCQs.js} +5 -4
- package/dist/cjs/{get-subaccounts-CtelAONX.js → get-subaccounts-CvtcQGsb.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -7
- package/dist/cjs/{header-1-M-mc3bsa.js → header-1-DD41iNlG.js} +1 -1
- package/dist/cjs/header-3-D9Wa0IfT.js +10 -0
- package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
- package/dist/cjs/{index-BCtVWU61.js → index-Yd9aLenr.js} +22 -6
- package/dist/cjs/{index-D5bL1DOi.js → index-dm_GlYlb.js} +57 -16
- package/dist/cjs/{index.esm-CVuJLXJZ.js → index.esm-BleZSAc0.js} +869 -745
- package/dist/cjs/insurance-state-qT_hkvZV.js +34 -0
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -12
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +20 -20
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +836 -0
- package/dist/cjs/{justifi-bank-account-form_7.cjs.entry.js → justifi-bank-account-form_5.cjs.entry.js} +30 -73
- package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +12 -13
- package/dist/cjs/justifi-business-form.cjs.entry.js +18 -18
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/{justifi-checkout-summary_5.cjs.entry.js → justifi-button_5.cjs.entry.js} +144 -135
- package/dist/cjs/justifi-checkout.cjs.entry.js +17 -18
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -10
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +11 -12
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +17 -18
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -11
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -15
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +17 -17
- package/dist/cjs/justifi-payment-details.cjs.entry.js +13 -14
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +75 -0
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +16 -17
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -9
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +16 -17
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +15 -15
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +4 -5
- package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +116 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -10
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -11
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +13 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -16
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +37 -220
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{package-BMSb1ui9.js → package-pyzAPwrl.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +15 -17
- package/dist/cjs/{payment-method-option-utils-QODgEWhU.js → payment-method-option-utils-CfLXhpsL.js} +11 -1
- package/dist/cjs/{payment.service-C9qxqaJk.js → payment.service-CVZ55YLl.js} +3 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +13 -14
- package/dist/cjs/{payouts-list-params-state-DZUKBmLC.js → payments-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{payments-status-DG50GuXR.js → payments-status-PB63klt3.js} +2 -2
- package/dist/cjs/{payments-table-DaW6SvdL.js → payments-table-uouQ4x2Y.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -13
- package/dist/cjs/{payout.service-DiSYeR_q.js → payout.service-BlbHwzd_.js} +3 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +13 -14
- package/dist/cjs/{checkouts-list-params-state-DZUKBmLC.js → payouts-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{payouts-status-meuI7eBr.js → payouts-status-Bk1JFzbP.js} +2 -2
- package/dist/cjs/{payouts-table-D5hMHcaY.js → payouts-table-Bo61u5ZZ.js} +3 -3
- package/dist/cjs/{schema-validations-BSeMee-o.js → schema-validations-jek_iZ9W.js} +1 -1
- package/dist/cjs/{skeleton-CbZBGO47.js → skeleton-x-GSs3xk.js} +1 -1
- package/dist/cjs/{spinner-CIZFX7bz.js → spinner-Kb1BFvnL.js} +1 -1
- package/dist/cjs/{styled-host-DXNHOiqW.js → styled-host-CqQYxX-w.js} +1 -1
- package/dist/cjs/{table-CxvETNS1.js → table-BJVUhh3s.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +12 -13
- package/dist/cjs/{terminal-orders-list-params-state-DZUKBmLC.js → terminal-orders-list-params-state-BNbT1fuJ.js} +1 -1
- package/dist/cjs/{terminal-orders-table-DnZjcbSQ.js → terminal-orders-table-v0Sn7jUg.js} +6 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-DEIY9toR.js → terminal.service-I07QoXPB.js} +3 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +12 -13
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +22 -0
- package/dist/cjs/{terminals-table-DOqVeHM1.js → terminals-table-CGG9EhiI.js} +3 -3
- package/dist/cjs/{utils-wkdkLmDI.js → utils-Df-pajL7.js} +1 -1
- package/dist/cjs/{utils-DqlrBltg.js → utils-Dka3MplB.js} +1661 -3
- package/dist/cjs/webcomponents.cjs.js +5 -4
- package/dist/collection/api/ApplePay.js +124 -0
- package/dist/collection/api/services/apple-pay.service.js +344 -0
- package/dist/collection/collection-manifest.json +10 -8
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +37 -13
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +1 -1
- package/dist/collection/components/checkout/new-payment-method.js +378 -0
- package/dist/collection/components/checkout/payment-method-option-utils.js +1 -0
- package/dist/collection/components/checkout/payment-method-options.js +421 -0
- package/dist/collection/components/checkout/save-new-payment-method.js +5 -7
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/insurance-state.js +1 -18
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +98 -17
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +539 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +5 -36
- 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/postal-code-form.js +4 -5
- 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 +87 -291
- package/dist/collection/store/checkout.store.js +2 -2
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/index.js +0 -1
- 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 +2051 -985
- package/dist/esm/{Api-BCeKXDaf.js → Api-DQM93PRm.js} +2 -2
- package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
- package/dist/esm/Payment-Bs0-9Lnt.js +149 -0
- package/dist/esm/{Refund-DBHZkemk.js → Refund-4B3c-kLz.js} +2 -148
- package/dist/esm/additional-questions-details_5.entry.js +4 -6
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/{badge-BrapPg3R.js → badge-D-vrtiQR.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +14 -15
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/{business-additional-questions-schema-uQlQ8fXQ.js → business-additional-questions-schema-C6NRHWEL.js} +2 -2
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business-identity-schema-BsrgqgDl.js → business-identity-schema-D8n5dyLX.js} +2 -2
- package/dist/esm/{business.service-ArD_uRLb.js → business.service-BgXdRyYa.js} +4 -3
- package/dist/esm/{button-BB-N4vit.js → button-DxM4-mlD.js} +2 -2
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-CwPXpnQZ.js → check-pkg-version-B7MJjFP4.js} +5 -4
- package/dist/esm/{checkout.service-BgDCPjQU.js → checkout.service-CXeKDZTF.js} +4 -3
- package/dist/esm/{checkout.store-td03RV8y.js → checkout.store-QrBBYQfi.js} +3 -3
- package/dist/esm/checkouts-list-core.entry.js +14 -15
- package/dist/esm/{checkouts-list-params-state-DFWVMJRJ.js → checkouts-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{checkouts-table-COpCngi0.js → checkouts-table-Djb7Yj6O.js} +4 -4
- package/dist/esm/{config-state-B3mtRA6f.js → config-state-BrllxiM0.js} +1 -1
- package/dist/esm/custom-popper.entry.js +3 -3
- package/dist/esm/{dispute.service-C2dMLW9w.js → dispute.service-DWs_TX-m.js} +4 -3
- package/dist/esm/form-alert_5.entry.js +6 -6
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-Bk3yfpFX.js → form-control-error-text-Dew-m4MW.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-mOLCXs00.js → form-control-help-text-CcPKT19_.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
- package/dist/esm/form-control-monetary.entry.js +7 -9
- package/dist/esm/form-control-number-masked_2.entry.js +6 -6
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_3.entry.js +7 -7
- package/dist/esm/{get-payment-details-BN-K_5Ry.js → get-payment-details-j8nOngzB.js} +5 -4
- package/dist/esm/{get-subaccounts-DrFpGKDV.js → get-subaccounts-C62B2OC_.js} +6 -5
- package/dist/esm/gross-payment-chart-core.entry.js +6 -8
- package/dist/esm/{header-1-DYuf6mkF.js → header-1-B0PFwGib.js} +2 -2
- package/dist/esm/header-3-D3gxg6YU.js +8 -0
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-BAq5IUBW.js → index-B9me4yN2.js} +22 -6
- package/dist/esm/{index-N3w5zrz2.js → index-kpoIU4v_.js} +58 -16
- package/dist/esm/{index.esm-BCNUj0Dx.js → index.esm-cYgKOXtz.js} +869 -745
- package/dist/esm/insurance-state-DQH40x6F.js +28 -0
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -14
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +22 -22
- package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
- package/dist/esm/justifi-apple-pay.entry.js +834 -0
- package/dist/esm/{justifi-bank-account-form_7.entry.js → justifi-bank-account-form_5.entry.js} +32 -73
- package/dist/esm/justifi-billing-form.entry.js +74 -0
- package/dist/esm/justifi-business-details.entry.js +13 -14
- package/dist/esm/justifi-business-form.entry.js +20 -20
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
- package/dist/esm/{justifi-checkout-summary_5.entry.js → justifi-button_5.entry.js} +145 -136
- package/dist/esm/justifi-checkout.entry.js +14 -15
- package/dist/esm/justifi-checkouts-list-filters.entry.js +11 -12
- package/dist/esm/justifi-checkouts-list.entry.js +17 -18
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +12 -13
- package/dist/esm/justifi-dispute-notification_3.entry.js +18 -19
- package/dist/esm/justifi-gross-payment-chart.entry.js +12 -13
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +16 -17
- package/dist/esm/justifi-owner-form_3.entry.js +18 -18
- package/dist/esm/justifi-payment-details.entry.js +14 -15
- package/dist/esm/justifi-payment-method-options.entry.js +73 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +12 -13
- package/dist/esm/justifi-payment-transactions-list.entry.js +16 -17
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -9
- package/dist/esm/justifi-payments-list.entry.js +17 -18
- package/dist/esm/justifi-payout-details.entry.js +13 -14
- package/dist/esm/justifi-payout-transactions-list.entry.js +16 -17
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -10
- package/dist/esm/justifi-payouts-list.entry.js +18 -19
- package/dist/esm/justifi-refund-payment.entry.js +17 -17
- package/dist/esm/justifi-saved-payment-method.entry.js +5 -6
- package/dist/esm/justifi-saved-payment-methods_2.entry.js +113 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -10
- package/dist/esm/justifi-season-interruption-insurance.entry.js +12 -13
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +12 -13
- package/dist/esm/justifi-terminal-orders-list.entry.js +15 -16
- package/dist/esm/justifi-terminals-list-filters.entry.js +11 -11
- package/dist/esm/justifi-terminals-list.entry.js +17 -18
- package/dist/esm/justifi-tokenize-payment-method.entry.js +39 -222
- package/dist/esm/loader.js +4 -3
- package/dist/esm/{package-HlNEzyiZ.js → package-BLtzn9pE.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CKg_luIy.js → parts-D3G5aVLy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -18
- package/dist/esm/{payment-method-option-utils-zFDtQrgQ.js → payment-method-option-utils-Cm6lAaP1.js} +10 -2
- package/dist/esm/{payment.service-DPsRcwWM.js → payment.service-BnDr_9vX.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +15 -16
- package/dist/esm/{payments-list-params-state-DFWVMJRJ.js → payments-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{payments-status-CawBLR48.js → payments-status-DVYzDcJ4.js} +2 -2
- package/dist/esm/{payments-table-WQAD1CSz.js → payments-table-BuiNqlwv.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -14
- package/dist/esm/{payout.service-CoVFefK5.js → payout.service-Ai1aEuFC.js} +4 -3
- package/dist/esm/payouts-list-core.entry.js +15 -16
- package/dist/esm/{payouts-list-params-state-DFWVMJRJ.js → payouts-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{payouts-status-DB_PJap6.js → payouts-status-Bae6G8Hq.js} +2 -2
- package/dist/esm/{payouts-table-DRISll8u.js → payouts-table-cgIXP54P.js} +4 -4
- package/dist/esm/{schema-validations-DLWfpHyI.js → schema-validations-DcR1ujuX.js} +1 -1
- package/dist/esm/{skeleton-D1Z4a8af.js → skeleton-CZfDofm6.js} +2 -2
- package/dist/esm/{spinner-BlffecO5.js → spinner-D-vbFqC6.js} +2 -2
- package/dist/esm/{styled-host-DtvbNFVU.js → styled-host-B_XBaM7z.js} +1 -1
- package/dist/esm/{table-BqxKVRry.js → table-CTPfsGKi.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +14 -15
- package/dist/esm/{terminal-orders-list-params-state-DFWVMJRJ.js → terminal-orders-list-params-state-SMXQIZTt.js} +1 -1
- package/dist/esm/{terminal-orders-table-Da4IvBtB.js → terminal-orders-table-CvK516_V.js} +8 -7
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-CnPV1i9J.js → terminal.service-BLeBxTv4.js} +4 -3
- package/dist/esm/terminals-list-core.entry.js +14 -15
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +16 -0
- package/dist/esm/{terminals-table-BBPQRWja.js → terminals-table-2QGQITkt.js} +4 -4
- package/dist/esm/{utils-Cu5hITuT.js → utils-B7jE0g5_.js} +1661 -4
- package/dist/esm/{utils-sZ_6zOKQ.js → utils-CBJo9jNE.js} +2 -2
- package/dist/esm/webcomponents.js +5 -4
- package/dist/module/Analytics.js +1 -0
- package/dist/module/Payment.js +204 -0
- package/dist/module/Refund.js +1 -202
- package/dist/module/additional-questions-details2.js +1 -1
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-document-inputs.js +4 -3
- package/dist/module/bank-account-form-inputs2.js +2 -2
- package/dist/module/bank-account-form.js +3 -3
- package/dist/module/bank-account.js +3 -4
- package/dist/module/billing-form.js +58 -24
- package/dist/module/billing-information-form.js +4 -11
- package/dist/module/business-additional-questions-form-step-core.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +4 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +1 -1
- package/dist/module/business-core-info-form-step.js +2 -2
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-details-core2.js +1 -2
- package/dist/module/business-documents-on-file2.js +2 -3
- package/dist/module/business-owners-form-step-core.js +1 -2
- package/dist/module/business-owners-form-step.js +2 -2
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative-form-step-core.js +1 -1
- package/dist/module/business-representative-form-step.js +2 -2
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +3 -2
- package/dist/module/business.service.js +1 -0
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-form.js +3 -3
- package/dist/module/card-form2.js +3 -4
- package/dist/module/checkout.service.js +1 -0
- package/dist/module/checkout.store.js +2 -2
- package/dist/module/checkouts-list-core2.js +5 -6
- package/dist/module/core-info-details2.js +1 -1
- package/dist/module/custom-popper2.js +3 -3
- package/dist/module/customer-details.js +2 -2
- package/dist/module/details.js +1 -1
- package/dist/module/dispute-management-core.js +3 -3
- package/dist/module/dispute-notification.js +2 -3
- package/dist/module/dispute-response-actions.js +1 -0
- package/dist/module/dispute-response-core.js +2 -2
- package/dist/module/dispute-response.js +2 -3
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/form-alert2.js +2 -2
- package/dist/module/form-control-checkbox2.js +4 -5
- package/dist/module/form-control-date2.js +3 -4
- package/dist/module/form-control-file-v22.js +2 -2
- package/dist/module/form-control-file2.js +3 -4
- package/dist/module/form-control-help-text2.js +1 -1
- package/dist/module/form-control-monetary-provisioning2.js +4 -5
- package/dist/module/form-control-monetary2.js +4 -5
- package/dist/module/form-control-number-masked2.js +3 -4
- package/dist/module/form-control-number.js +4 -5
- package/dist/module/form-control-radio2.js +4 -4
- package/dist/module/form-control-select2.js +3 -4
- package/dist/module/form-control-text2.js +3 -4
- package/dist/module/form-control-textarea2.js +4 -4
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/form.js +869 -745
- package/dist/module/get-payment-details.js +3 -2
- package/dist/module/get-subaccounts.js +2 -1
- package/dist/module/gross-payment-chart-core2.js +3 -3
- package/dist/module/header-3.js +8 -0
- package/dist/module/hidden-input2.js +3 -3
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/index2.js +21 -5
- package/dist/module/insurance-state.js +1 -18
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +876 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +3 -3
- package/dist/module/justifi-button2.js +2 -2
- package/dist/module/justifi-checkout.js +3 -4
- package/dist/module/justifi-checkouts-list-filters.js +5 -5
- package/dist/module/justifi-checkouts-list.js +5 -5
- package/dist/module/justifi-config-provider.js +1 -1
- package/dist/module/justifi-dispute-management.js +4 -3
- package/dist/module/justifi-gross-payment-chart.js +2 -1
- package/dist/module/justifi-header2.js +4 -8
- package/dist/module/justifi-new-payment-method.d.ts +11 -0
- package/dist/module/justifi-new-payment-method.js +219 -0
- package/dist/module/justifi-order-terminals.js +5 -6
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-method-options.d.ts +11 -0
- package/dist/module/justifi-payment-method-options.js +6 -0
- package/dist/module/justifi-payment-provisioning.js +3 -2
- package/dist/module/justifi-payment-transactions-list.js +6 -7
- package/dist/module/justifi-payments-list-filters.js +4 -5
- package/dist/module/justifi-payments-list.js +5 -5
- package/dist/module/justifi-payout-details.js +4 -3
- package/dist/module/justifi-payout-transactions-list.js +6 -7
- package/dist/module/justifi-payouts-list-filters.js +4 -5
- package/dist/module/justifi-payouts-list.js +5 -5
- package/dist/module/justifi-refund-payment.js +3 -3
- package/dist/module/justifi-saved-payment-method.js +3 -3
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-skeleton.js +2 -2
- package/dist/module/justifi-terminal-orders-list-filters.js +6 -6
- package/dist/module/justifi-terminal-orders-list.js +5 -5
- package/dist/module/justifi-terminals-list-filters.js +5 -5
- package/dist/module/justifi-terminals-list.js +5 -5
- package/dist/module/justifi-tokenize-payment-method.js +47 -311
- package/dist/module/legal-address-details2.js +1 -1
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form-step.js +2 -2
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/modular-checkout.js +102 -19
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core2.js +3 -4
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form.js +2 -2
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +2 -2
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +10 -11
- package/dist/module/payment-method-option-utils.js +10 -2
- package/dist/module/payment-method-option2.js +3 -4
- package/dist/module/payment-method-options.js +129 -0
- package/dist/module/payment-provisioning-core.js +2 -3
- package/dist/module/payment-provisioning-form-buttons.js +2 -3
- package/dist/module/payment-provisioning-form-steps.js +2 -2
- package/dist/module/payment-provisioning-loading.js +0 -1
- package/dist/module/payment.service.js +1 -0
- package/dist/module/payments-list-core2.js +5 -6
- package/dist/module/payout-details-core2.js +5 -6
- package/dist/module/payout.service.js +1 -0
- package/dist/module/payouts-list-core2.js +5 -6
- package/dist/module/postal-code-form.js +3 -5
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +6 -9
- package/dist/module/saved-payment-methods.js +2 -3
- package/dist/module/season-interruption-insurance-core.js +2 -3
- package/dist/module/sezzle-payment-method.js +2 -3
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- package/dist/module/summary.js +2 -3
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +6 -7
- package/dist/module/terminal-quantity-selector2.js +3 -3
- package/dist/module/terminal.service.js +1 -0
- package/dist/module/terminals-list-core2.js +5 -6
- package/dist/module/utils2.js +1661 -4
- package/dist/types/api/ApplePay.d.ts +195 -0
- package/dist/types/api/services/apple-pay.service.d.ts +58 -0
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +9 -3
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +31 -0
- package/dist/types/components/checkout/payment-method-options.d.ts +32 -0
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
- package/dist/types/components/insurance/insurance-state.d.ts +1 -2
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +8 -1
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +38 -0
- package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +0 -2
- package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +0 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +14 -41
- package/dist/types/components.d.ts +234 -70
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/dist/types/store/checkout.store.d.ts +2 -2
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/types/ui-components/index.d.ts +0 -1
- package/dist/webcomponents/p-0144c42b.entry.js +1 -0
- package/dist/webcomponents/{p-a1c7c873.entry.js → p-06ff03e7.entry.js} +1 -1
- package/dist/webcomponents/{p-39ca43e0.entry.js → p-0c37be96.entry.js} +1 -1
- package/dist/webcomponents/{p-880718b9.entry.js → p-0f5e61bc.entry.js} +1 -1
- package/dist/webcomponents/p-10e32b38.entry.js +1 -0
- package/dist/webcomponents/p-127406b5.entry.js +1 -0
- package/dist/webcomponents/p-2c6be750.entry.js +1 -0
- package/dist/webcomponents/p-30c432ab.entry.js +1 -0
- package/dist/webcomponents/{p-444fb5a6.entry.js → p-31793643.entry.js} +1 -1
- package/dist/webcomponents/p-35198019.entry.js +1 -0
- package/dist/webcomponents/{p-046fee8c.entry.js → p-367338c8.entry.js} +1 -1
- package/dist/webcomponents/p-39af38f6.entry.js +1 -0
- package/dist/webcomponents/p-453bcb9d.entry.js +1 -0
- package/dist/webcomponents/{p-7a8a06d6.entry.js → p-463ae23a.entry.js} +1 -1
- package/dist/webcomponents/p-49754c1d.entry.js +1 -0
- package/dist/webcomponents/p-4afa5d56.entry.js +1 -0
- package/dist/webcomponents/p-509d9191.entry.js +1 -0
- package/dist/webcomponents/p-52be4ff0.entry.js +1 -0
- package/dist/webcomponents/p-544c59ac.entry.js +1 -0
- package/dist/webcomponents/p-54cc3fc8.entry.js +1 -0
- package/dist/webcomponents/p-54ff0e4f.entry.js +1 -0
- package/dist/webcomponents/p-5aa88189.entry.js +1 -0
- package/dist/webcomponents/p-5c82e024.entry.js +1 -0
- package/dist/webcomponents/p-5cfca5e0.entry.js +1 -0
- package/dist/webcomponents/{p-84df9f26.entry.js → p-5e10aa65.entry.js} +1 -1
- package/dist/webcomponents/p-5fbc0ea6.entry.js +1 -0
- package/dist/webcomponents/p-6567c1ce.entry.js +1 -0
- package/dist/webcomponents/p-689562b1.entry.js +1 -0
- package/dist/webcomponents/p-69910853.entry.js +1 -0
- package/dist/webcomponents/p-6d8355f0.entry.js +1 -0
- package/dist/webcomponents/p-6da19fde.entry.js +1 -0
- package/dist/webcomponents/p-6e40a80f.entry.js +1 -0
- package/dist/webcomponents/p-6f94530d.entry.js +1 -0
- package/dist/webcomponents/p-70beb132.entry.js +1 -0
- package/dist/webcomponents/p-79454e79.entry.js +1 -0
- package/dist/webcomponents/p-79684a85.entry.js +1 -0
- package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
- package/dist/webcomponents/p-7WIgS5RM.js +1 -0
- package/dist/webcomponents/p-7b5d48f7.entry.js +1 -0
- package/dist/webcomponents/p-7b5e899e.entry.js +1 -0
- package/dist/webcomponents/p-7d59de81.entry.js +1 -0
- package/dist/webcomponents/p-7f348de2.entry.js +1 -0
- package/dist/webcomponents/p-7f4305a2.entry.js +1 -0
- package/dist/webcomponents/{p-351ffd2a.entry.js → p-904acc70.entry.js} +1 -1
- package/dist/webcomponents/{p-45b0a91c.entry.js → p-92529be9.entry.js} +1 -1
- package/dist/webcomponents/p-9b6c1b33.entry.js +1 -0
- package/dist/webcomponents/p-9f3cf5a3.entry.js +1 -0
- package/dist/webcomponents/p-9y5MOK55.js +1 -0
- package/dist/webcomponents/{p-55iuf7iW.js → p-B2csvKrZ.js} +1 -1
- package/dist/webcomponents/p-B7jE0g5_.js +1 -0
- package/dist/webcomponents/p-B8tUOqiv.js +1 -0
- package/dist/webcomponents/p-B9GgcQ-7.js +1 -0
- package/dist/webcomponents/p-BDUTtU21.js +1 -0
- package/dist/webcomponents/{p-BfEOvp9h.js → p-BFL-wXPM.js} +1 -1
- package/dist/webcomponents/p-BLtzn9pE.js +1 -0
- package/dist/webcomponents/p-BO4xqc4w.js +1 -0
- package/dist/webcomponents/{p-DpUqxsf5.js → p-BRtwZAeZ.js} +1 -1
- package/dist/webcomponents/p-BVD7g3cE.js +1 -0
- package/dist/webcomponents/p-BYakc1Om.js +1 -0
- package/dist/webcomponents/p-Bou1Z4Bm.js +1 -0
- package/dist/webcomponents/p-Bt388eye.js +1 -0
- package/dist/webcomponents/{p-CDIPkflV.js → p-BvyiDejp.js} +1 -1
- package/dist/webcomponents/p-Bz8JT676.js +1 -0
- package/dist/webcomponents/p-C0EFqY0W.js +1 -0
- package/dist/webcomponents/{p-AbSg_vYv.js → p-C8ll3Wwp.js} +1 -1
- package/dist/webcomponents/p-CBWeXiqe.js +1 -0
- package/dist/webcomponents/{p-D0I-tRSs.js → p-CEYGUVns.js} +1 -1
- package/dist/webcomponents/p-CLjv4frq.js +1 -0
- package/dist/webcomponents/p-CR9D6mKt.js +1 -0
- package/dist/webcomponents/{p-o5iASgog.js → p-CRFzwZW6.js} +1 -1
- package/dist/webcomponents/p-CVQyw7ao.js +1 -0
- package/dist/webcomponents/{p-JOSiCHl7.js → p-CYBR4K2p.js} +1 -1
- package/dist/webcomponents/p-Cc27pPPQ.js +1 -0
- package/dist/webcomponents/p-Cm_ywVHL.js +1 -0
- package/dist/webcomponents/{p-CKg_luIy.js → p-D3G5aVLy.js} +1 -1
- package/dist/webcomponents/p-D522G7Ja.js +1 -0
- package/dist/webcomponents/p-DCDU6JB3.js +1 -0
- package/dist/webcomponents/p-DQuL1Twl.js +1 -0
- package/dist/webcomponents/{p-d6tXI5Iw.js → p-DSP8qjHL.js} +1 -1
- package/dist/webcomponents/p-DSekXpCa.js +1 -0
- package/dist/webcomponents/p-DSfL8jLw.js +1 -0
- package/dist/webcomponents/p-DVPcHdzq.js +1 -0
- package/dist/webcomponents/{p-Ce8QXyUM.js → p-DX_mixvZ.js} +1 -1
- package/dist/webcomponents/p-DaDsBt65.js +1 -0
- package/dist/webcomponents/p-DiWKhLRS.js +1 -0
- package/dist/webcomponents/{p-DPnS0F0Y.js → p-Dj1uo4J3.js} +1 -1
- package/dist/webcomponents/p-DtsIovbb.js +1 -0
- package/dist/webcomponents/p-Dv7YEshZ.js +1 -0
- package/dist/webcomponents/p-FdjD8N0u.js +1 -0
- package/dist/webcomponents/p-ObR0KZw0.js +1 -0
- package/dist/webcomponents/p-PgEzcvI6.js +1 -0
- package/dist/webcomponents/p-Sz-UKsNL.js +1 -0
- package/dist/webcomponents/{p-1b7b7210.entry.js → p-a2b597ef.entry.js} +1 -1
- package/dist/webcomponents/p-a4cb4c39.entry.js +1 -0
- package/dist/webcomponents/p-a6fdf5b8.entry.js +1 -0
- package/dist/webcomponents/p-b06b1886.entry.js +1 -0
- package/dist/webcomponents/p-b0714111.entry.js +1 -0
- package/dist/webcomponents/p-b2098935.entry.js +1 -0
- package/dist/webcomponents/p-b56d75d5.entry.js +1 -0
- package/dist/webcomponents/p-b5ed41c0.entry.js +1 -0
- package/dist/webcomponents/p-baaef16c.entry.js +1 -0
- package/dist/webcomponents/{p-429618a4.entry.js → p-bec23c19.entry.js} +1 -1
- package/dist/webcomponents/{p-e2ee826e.entry.js → p-c663b439.entry.js} +1 -1
- package/dist/webcomponents/p-c9d5625c.entry.js +1 -0
- package/dist/webcomponents/p-cd6c6c2b.entry.js +1 -0
- package/dist/webcomponents/p-cf115375.entry.js +1 -0
- package/dist/webcomponents/p-d175799a.entry.js +1 -0
- package/dist/webcomponents/p-d5571d18.entry.js +1 -0
- package/dist/webcomponents/p-d5f70eb0.entry.js +1 -0
- package/dist/webcomponents/p-da5a9a72.entry.js +1 -0
- package/dist/webcomponents/p-e105f664.entry.js +1 -0
- package/dist/webcomponents/p-e5c94a1f.entry.js +1 -0
- package/dist/webcomponents/{p-85ebdce5.entry.js → p-e86c876e.entry.js} +1 -1
- package/dist/webcomponents/{p-d5e4e888.entry.js → p-ee2afa41.entry.js} +4 -4
- package/dist/webcomponents/p-ef472343.entry.js +1 -0
- package/dist/webcomponents/p-f35e96ce.entry.js +1 -0
- package/dist/webcomponents/p-f3f4bbef.entry.js +1 -0
- package/dist/webcomponents/p-f6ca1443.entry.js +1 -0
- package/dist/webcomponents/{p-1b1fe3de.entry.js → p-fe001786.entry.js} +1 -1
- package/dist/webcomponents/p-fffd5bc7.entry.js +1 -0
- package/dist/webcomponents/p-kpoIU4v_.js +2 -0
- package/dist/webcomponents/p-pska2q1M.js +1 -0
- package/dist/webcomponents/p-vHbP4g3Q.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/dinero-J-SRFKIR.js +0 -1673
- package/dist/cjs/header-2-BXQLJn1q.js +0 -10
- package/dist/cjs/insurance-state-B3CYpJWi.js +0 -45
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +0 -52
- package/dist/cjs/terminals-list-params-state-DZUKBmLC.js +0 -22
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +0 -155
- package/dist/esm/dinero-DizZAUMY.js +0 -1671
- package/dist/esm/header-2-C4ZCdZwi.js +0 -8
- package/dist/esm/insurance-state-BQks6cMA.js +0 -39
- package/dist/esm/justifi-billing-form_2.entry.js +0 -49
- package/dist/esm/terminals-list-params-state-DFWVMJRJ.js +0 -16
- package/dist/module/dinero.js +0 -1671
- package/dist/module/justifi-radio-list-item.d.ts +0 -11
- package/dist/module/justifi-radio-list-item.js +0 -6
- package/dist/module/justifi-radio-list-item2.js +0 -55
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +0 -12
- package/dist/webcomponents/p-00c2f5d5.entry.js +0 -1
- package/dist/webcomponents/p-0a0ed7a4.entry.js +0 -1
- package/dist/webcomponents/p-0cb64945.entry.js +0 -1
- package/dist/webcomponents/p-0e44afa7.entry.js +0 -1
- package/dist/webcomponents/p-0e6797c4.entry.js +0 -1
- package/dist/webcomponents/p-0fc026aa.entry.js +0 -1
- package/dist/webcomponents/p-16583f91.entry.js +0 -1
- package/dist/webcomponents/p-195cf5cc.entry.js +0 -1
- package/dist/webcomponents/p-1c7d9b90.entry.js +0 -1
- package/dist/webcomponents/p-1ce1df1e.entry.js +0 -1
- package/dist/webcomponents/p-24e1a686.entry.js +0 -1
- package/dist/webcomponents/p-2a5ac7c9.entry.js +0 -1
- package/dist/webcomponents/p-2abf1785.entry.js +0 -1
- package/dist/webcomponents/p-2dcf196f.entry.js +0 -1
- package/dist/webcomponents/p-302f7632.entry.js +0 -1
- package/dist/webcomponents/p-3eb5f196.entry.js +0 -1
- package/dist/webcomponents/p-4045631f.entry.js +0 -1
- package/dist/webcomponents/p-4907e95b.entry.js +0 -1
- package/dist/webcomponents/p-4a0a4314.entry.js +0 -1
- package/dist/webcomponents/p-4aaaa44e.entry.js +0 -1
- package/dist/webcomponents/p-4b34b9af.entry.js +0 -1
- package/dist/webcomponents/p-5e71f4d4.entry.js +0 -1
- package/dist/webcomponents/p-6a06da8a.entry.js +0 -1
- package/dist/webcomponents/p-6bafb4b5.entry.js +0 -1
- package/dist/webcomponents/p-6d1f2d57.entry.js +0 -1
- package/dist/webcomponents/p-6f397c80.entry.js +0 -1
- package/dist/webcomponents/p-75545aec.entry.js +0 -1
- package/dist/webcomponents/p-7b07255f.entry.js +0 -1
- package/dist/webcomponents/p-7b925204.entry.js +0 -1
- package/dist/webcomponents/p-831857dc.entry.js +0 -1
- package/dist/webcomponents/p-85c0953d.entry.js +0 -1
- package/dist/webcomponents/p-86b166eb.entry.js +0 -1
- package/dist/webcomponents/p-88b6dbdd.entry.js +0 -1
- package/dist/webcomponents/p-8e0c6f60.entry.js +0 -1
- package/dist/webcomponents/p-90edbaa3.entry.js +0 -1
- package/dist/webcomponents/p-97c0d873.entry.js +0 -1
- package/dist/webcomponents/p-9e48a264.entry.js +0 -1
- package/dist/webcomponents/p-B2uBb14Y.js +0 -1
- package/dist/webcomponents/p-B3qJZUMy.js +0 -1
- package/dist/webcomponents/p-BF51n3KG.js +0 -1
- package/dist/webcomponents/p-BNd9xVOU.js +0 -1
- package/dist/webcomponents/p-BQLEjYfZ.js +0 -1
- package/dist/webcomponents/p-BZ9YQ3FA.js +0 -1
- package/dist/webcomponents/p-BdTK0wi9.js +0 -1
- package/dist/webcomponents/p-Bka75aL-.js +0 -1
- package/dist/webcomponents/p-C3e-DgwK.js +0 -1
- package/dist/webcomponents/p-CKRDBISo.js +0 -1
- package/dist/webcomponents/p-CXLazxt0.js +0 -1
- package/dist/webcomponents/p-CfBKn_Vl.js +0 -1
- package/dist/webcomponents/p-ChzWF0s3.js +0 -1
- package/dist/webcomponents/p-CjAMuB2J.js +0 -1
- package/dist/webcomponents/p-Cjf9yu8r.js +0 -1
- package/dist/webcomponents/p-Cwt_9Jzb.js +0 -1
- package/dist/webcomponents/p-DC63XVwu.js +0 -1
- package/dist/webcomponents/p-DMuY7Dka.js +0 -1
- package/dist/webcomponents/p-DPfZxsq9.js +0 -1
- package/dist/webcomponents/p-DR0bMp9p.js +0 -1
- package/dist/webcomponents/p-DVnVdicA.js +0 -1
- package/dist/webcomponents/p-Dcbfnfn2.js +0 -1
- package/dist/webcomponents/p-DgxD9dbc.js +0 -1
- package/dist/webcomponents/p-DniBAXrh.js +0 -1
- package/dist/webcomponents/p-Do0fsKZk.js +0 -1
- package/dist/webcomponents/p-DxEnw2tJ.js +0 -1
- package/dist/webcomponents/p-EAEmpCru.js +0 -1
- package/dist/webcomponents/p-HlNEzyiZ.js +0 -1
- package/dist/webcomponents/p-N3w5zrz2.js +0 -2
- package/dist/webcomponents/p-O50LiN_p.js +0 -1
- package/dist/webcomponents/p-S_UV9-px.js +0 -1
- package/dist/webcomponents/p-X2PeOHf5.js +0 -1
- package/dist/webcomponents/p-_WsRuUBr.js +0 -1
- package/dist/webcomponents/p-a3c6c55e.entry.js +0 -1
- package/dist/webcomponents/p-af935779.entry.js +0 -1
- package/dist/webcomponents/p-b01801a6.entry.js +0 -1
- package/dist/webcomponents/p-b47000f7.entry.js +0 -1
- package/dist/webcomponents/p-b58fb1b1.entry.js +0 -1
- package/dist/webcomponents/p-b8906c49.entry.js +0 -1
- package/dist/webcomponents/p-c1bf875b.entry.js +0 -1
- package/dist/webcomponents/p-c26ef276.entry.js +0 -1
- package/dist/webcomponents/p-c5331724.entry.js +0 -1
- package/dist/webcomponents/p-c6bd05ef.entry.js +0 -1
- package/dist/webcomponents/p-e9c44dc2.entry.js +0 -1
- package/dist/webcomponents/p-edf9128c.entry.js +0 -1
- package/dist/webcomponents/p-f3c2de89.entry.js +0 -1
- package/dist/webcomponents/p-f6ff7255.entry.js +0 -1
- package/dist/webcomponents/p-f8a0821d.entry.js +0 -1
- package/dist/webcomponents/p-fcb6c171.entry.js +0 -1
- package/dist/webcomponents/p-fd4d7c7e.entry.js +0 -1
- package/dist/webcomponents/p-pMAKJWDL.js +0 -1
- package/dist/webcomponents/p-rPeW3G6n.js +0 -1
- package/dist/webcomponents/p-w128-0Mj.js +0 -1
|
@@ -2,13 +2,14 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { c as checkoutStore, o as onChange } from './checkout.store.js';
|
|
3
3
|
import { J as JustifiAnalytics, c as checkPkgVersion } from './Analytics.js';
|
|
4
4
|
import './config-state.js';
|
|
5
|
-
import './
|
|
6
|
-
import { C as ComponentErrorSeverity, a as ComponentErrorCodes,
|
|
5
|
+
import './utils2.js';
|
|
6
|
+
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages, I as ICheckoutStatus } from './Refund.js';
|
|
7
7
|
import './Pagination.js';
|
|
8
|
+
import './Payment.js';
|
|
8
9
|
import './Business.js';
|
|
9
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
10
11
|
import { C as CheckoutService } from './checkout.service.js';
|
|
11
|
-
import { i as insuranceValuesOn,
|
|
12
|
+
import { i as insuranceValuesOn, a as insuranceValues } from './insurance-state.js';
|
|
12
13
|
|
|
13
14
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
14
15
|
var _a;
|
|
@@ -73,13 +74,41 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
73
74
|
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
74
75
|
this.paymentMethodChangedEvent = createEvent(this, "payment-method-changed", 7);
|
|
75
76
|
this.savePaymentMethod = false;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
this.handleApplePayCompleted = (event) => {
|
|
78
|
+
const { success, token, error } = event.detail;
|
|
79
|
+
if (success && token) {
|
|
80
|
+
this.applePayToken = token;
|
|
81
|
+
// Complete the checkout with Apple Pay token
|
|
82
|
+
this.submitCheckoutWithApplePay();
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
console.error('Apple Pay completed but failed:', error);
|
|
86
|
+
this.errorEvent.emit({
|
|
87
|
+
message: (error === null || error === void 0 ? void 0 : error.message) || 'Apple Pay payment failed',
|
|
88
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
89
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
this.handleApplePayError = (event) => {
|
|
94
|
+
const { error } = event.detail;
|
|
95
|
+
console.error('Apple Pay error:', error);
|
|
96
|
+
this.errorEvent.emit({
|
|
97
|
+
message: error || 'Apple Pay error occurred',
|
|
98
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
99
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
this.handleApplePayCancelled = () => {
|
|
103
|
+
console.log('Apple Pay cancelled by user');
|
|
104
|
+
// Reset the token if cancelled
|
|
105
|
+
this.applePayToken = undefined;
|
|
106
|
+
};
|
|
79
107
|
}
|
|
80
108
|
connectedCallback() {
|
|
81
109
|
this.observer = new MutationObserver(() => {
|
|
82
110
|
this.queryFormRefs();
|
|
111
|
+
this.setupApplePayListeners(); // set up again listeners when DOM changes
|
|
83
112
|
});
|
|
84
113
|
this.observer.observe(this.hostEl, {
|
|
85
114
|
childList: true,
|
|
@@ -109,22 +138,23 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
109
138
|
this.analytics = new JustifiAnalytics(this);
|
|
110
139
|
checkPkgVersion();
|
|
111
140
|
checkoutStore.authToken = this.authToken;
|
|
112
|
-
checkoutStore.savePaymentMethod = this.savePaymentMethod;
|
|
113
141
|
this.fetchCheckout();
|
|
114
|
-
// Refresh the checkout data when insurance
|
|
142
|
+
// Refresh the checkout data when insurance is added or removed
|
|
115
143
|
insuranceValuesOn('set', (key) => {
|
|
116
144
|
const value = insuranceValues[key];
|
|
117
|
-
if (value !== undefined
|
|
145
|
+
if (value !== undefined) {
|
|
118
146
|
this.fetchCheckout();
|
|
119
147
|
}
|
|
120
148
|
});
|
|
121
149
|
}
|
|
122
150
|
componentDidLoad() {
|
|
123
151
|
this.queryFormRefs();
|
|
152
|
+
this.setupApplePayListeners();
|
|
124
153
|
}
|
|
125
154
|
disconnectedCallback() {
|
|
126
155
|
var _a;
|
|
127
156
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
157
|
+
this.removeApplePayListeners();
|
|
128
158
|
}
|
|
129
159
|
fetchCheckout() {
|
|
130
160
|
if (this.getCheckout) {
|
|
@@ -177,22 +207,71 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
177
207
|
this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
|
|
178
208
|
this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
|
|
179
209
|
this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
210
|
+
this.applePayRef = this.hostEl.querySelector('justifi-apple-pay');
|
|
211
|
+
}
|
|
212
|
+
setupApplePayListeners() {
|
|
213
|
+
if (this.applePayRef) {
|
|
214
|
+
this.applePayRef.addEventListener('applePayCompleted', this.handleApplePayCompleted);
|
|
215
|
+
this.applePayRef.addEventListener('applePayError', this.handleApplePayError);
|
|
216
|
+
this.applePayRef.addEventListener('applePayCancelled', this.handleApplePayCancelled);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
removeApplePayListeners() {
|
|
220
|
+
if (this.applePayRef) {
|
|
221
|
+
this.applePayRef.removeEventListener('applePayCompleted', this.handleApplePayCompleted);
|
|
222
|
+
this.applePayRef.removeEventListener('applePayError', this.handleApplePayError);
|
|
223
|
+
this.applePayRef.removeEventListener('applePayCancelled', this.handleApplePayCancelled);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
async submitCheckoutWithApplePay() {
|
|
227
|
+
if (!this.applePayToken) {
|
|
228
|
+
this.errorEvent.emit({
|
|
229
|
+
message: 'No Apple Pay token available',
|
|
230
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
231
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
232
|
+
});
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
const payment = {
|
|
236
|
+
payment_mode: 'apple_pay',
|
|
237
|
+
payment_token: this.applePayToken,
|
|
238
|
+
};
|
|
239
|
+
this.completeCheckout({
|
|
240
|
+
payment,
|
|
241
|
+
onSuccess: ({ checkout }) => {
|
|
242
|
+
this.submitEvent.emit({
|
|
243
|
+
checkout,
|
|
244
|
+
message: 'Apple Pay checkout completed successfully',
|
|
245
|
+
});
|
|
246
|
+
},
|
|
247
|
+
onError: (error) => {
|
|
248
|
+
this.errorEvent.emit({
|
|
249
|
+
message: error.message,
|
|
250
|
+
errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
|
|
251
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
});
|
|
180
255
|
}
|
|
181
256
|
async tokenizePaymentMethod(tokenizeArgs) {
|
|
182
|
-
var _a, _b
|
|
257
|
+
var _a, _b;
|
|
183
258
|
const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
|
|
184
259
|
const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
|
|
185
260
|
const paymentMethodMetadata = Object.assign({ accountId: checkoutStore.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
|
|
186
|
-
if (
|
|
261
|
+
if (this.savePaymentMethod) {
|
|
187
262
|
paymentMethodMetadata.payment_method_group_id = checkoutStore.paymentMethodGroupId;
|
|
188
263
|
}
|
|
189
|
-
return
|
|
264
|
+
return this.paymentMethodFormRef.tokenize({
|
|
190
265
|
clientId: this.authToken,
|
|
191
266
|
paymentMethodMetadata,
|
|
192
267
|
account: checkoutStore.accountId,
|
|
193
268
|
});
|
|
194
269
|
}
|
|
195
270
|
async getPaymentMethod(submitCheckoutArgs) {
|
|
271
|
+
// If Apple Pay token is available, return a placeholder since we handle it differently
|
|
272
|
+
if (this.applePayToken) {
|
|
273
|
+
return 'apple_pay_token';
|
|
274
|
+
}
|
|
196
275
|
if (!this.paymentMethodFormRef) {
|
|
197
276
|
return checkoutStore.selectedPaymentMethod;
|
|
198
277
|
}
|
|
@@ -209,6 +288,10 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
209
288
|
}
|
|
210
289
|
async validate() {
|
|
211
290
|
var _a, _b;
|
|
291
|
+
// If Apple Pay token is available, validation is already complete
|
|
292
|
+
if (this.applePayToken) {
|
|
293
|
+
return true;
|
|
294
|
+
}
|
|
212
295
|
const promises = [
|
|
213
296
|
(_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
|
|
214
297
|
(_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
|
|
@@ -221,6 +304,11 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
221
304
|
}
|
|
222
305
|
async submitCheckout(submitCheckoutArgs) {
|
|
223
306
|
var _a;
|
|
307
|
+
// If Apple Pay token is available, use Apple Pay flow
|
|
308
|
+
if (this.applePayToken) {
|
|
309
|
+
await this.submitCheckoutWithApplePay();
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
224
312
|
const isValid = await this.validate();
|
|
225
313
|
if (!isValid) {
|
|
226
314
|
this.errorEvent.emit({
|
|
@@ -285,21 +373,16 @@ const ModularCheckout = /*@__PURE__*/ proxyCustomElement(class ModularCheckout e
|
|
|
285
373
|
checkoutStore.selectedPaymentMethod = paymentMethodId;
|
|
286
374
|
}
|
|
287
375
|
render() {
|
|
288
|
-
return (h(Host, { key: '
|
|
376
|
+
return (h(Host, { key: '307608e8cd41e1c262dbca6cda7b0bfc8855dedf' }));
|
|
289
377
|
}
|
|
290
378
|
get hostEl() { return this; }
|
|
291
|
-
|
|
292
|
-
"savePaymentMethod": ["savePaymentMethodChanged"]
|
|
293
|
-
}; }
|
|
294
|
-
}, [0, "justifi-modular-checkout", {
|
|
379
|
+
}, [256, "justifi-modular-checkout", {
|
|
295
380
|
"authToken": [1, "auth-token"],
|
|
296
381
|
"checkoutId": [1, "checkout-id"],
|
|
297
382
|
"savePaymentMethod": [4, "save-payment-method"],
|
|
298
383
|
"validate": [64],
|
|
299
384
|
"submitCheckout": [64],
|
|
300
385
|
"setSelectedPaymentMethod": [64]
|
|
301
|
-
}, undefined, {
|
|
302
|
-
"savePaymentMethod": ["savePaymentMethodChanged"]
|
|
303
386
|
}]);
|
|
304
387
|
function defineCustomElement() {
|
|
305
388
|
if (typeof customElements === "undefined") {
|
|
@@ -3,10 +3,9 @@ import { F as FormController } from './form.js';
|
|
|
3
3
|
import { O as Owner } from './Business.js';
|
|
4
4
|
import { i as identitySchema } from './business-identity-schema.js';
|
|
5
5
|
import { B as Button } from './button.js';
|
|
6
|
-
import {
|
|
6
|
+
import { U as heading3 } from './parts.js';
|
|
7
7
|
import './details.js';
|
|
8
8
|
import './event-types.js';
|
|
9
|
-
import './justifi-radio-list-item2.js';
|
|
10
9
|
import { a as BusinessFormClickActions } from './event-types2.js';
|
|
11
10
|
import { d as defineCustomElement$8 } from './custom-popper2.js';
|
|
12
11
|
import { d as defineCustomElement$7 } from './form-control-date2.js';
|
|
@@ -162,12 +161,12 @@ const BusinessOwnerFormCore = /*@__PURE__*/ proxyCustomElement(class BusinessOwn
|
|
|
162
161
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
163
162
|
}
|
|
164
163
|
render() {
|
|
165
|
-
return (h("form", { key: '
|
|
164
|
+
return (h("form", { key: 'cf3b084a99c3cfc77af24f09feeda0468c2e6956', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '3c78499a7df3496cd44416b96fe5fef44cc4d393' }, h("legend", { key: '5aee34b86e10d914964de3f62408b1f1e7899479', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '4ca0d4c213f166f7ea10c0bfe276673ff077e1ba' }), h("div", { key: '95e485006a1111418ed409e7138c7f3098b9517c', class: "row gy-3" }, h("owner-form-inputs", { key: '1df9b40c91223253394c50312950b6b3d42906ff', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: 'f1e2adc3111366c43a9a0d3cbed9e059916320f8', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: 'ea19095c86d12cdabd48ad8618213aa06635b80f', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'cb60a69f0e3252bb7623945610c5282bedfffe32', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'db9fb6f130a114e82de0fb806ca1d70ac254f032' }))));
|
|
166
165
|
}
|
|
167
166
|
static get watchers() { return {
|
|
168
167
|
"isLoading": ["loadingWatcher"]
|
|
169
168
|
}; }
|
|
170
|
-
}, [
|
|
169
|
+
}, [256, "owner-form-core", {
|
|
171
170
|
"ownerId": [1, "owner-id"],
|
|
172
171
|
"businessId": [1, "business-id"],
|
|
173
172
|
"getOwner": [16, "get-owner"],
|
|
@@ -21,10 +21,10 @@ const BusinessOwnerFormInputs = /*@__PURE__*/ proxyCustomElement(class BusinessO
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
24
|
+
return (h("div", { key: '97911ef690cb7932c0e382cfa79fa3333536055c', class: "row gy-3" }, h("div", { key: '0f15a832bcde62a50fb791e008dcd7da68c8da6b', class: "col-12 col-md-8" }, h("form-control-text", { key: 'fdc50a224e7e17d2923d6eb1fb274103e0d55710', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c4be24670525f2b90fd6de5a0035241190dadd09', class: "col-12 col-md-4" }, h("form-control-text", { key: '8752eb6ea1d24189fd1a4d799145b5bbdc0413f2', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '9d19f00bbd407ca55455947d84183530920d799c', class: "col-12 col-md-6" }, h("form-control-text", { key: '10ffe5b44086f623fb9f9d27f4a72cd251589bd0', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '2e7eded46b1162d9ecf8c3badc869e98a710abee', class: "col-12 col-md-4" }, h("form-control-date", { key: '2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'dd96fdddddfb082fc0ce670f673decc97956c242', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '640cc2e749dc64879d8211c3340b7c273d3cb817', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '681b2898183d73559150b5debef39901c4679eba', class: "col-12" }, h("justifi-identity-address-form", { key: 'e2de39be536c0854592a5132a6a9ac9d761a0f9b', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
|
|
25
25
|
}
|
|
26
26
|
;
|
|
27
|
-
}, [
|
|
27
|
+
}, [256, "owner-form-inputs", {
|
|
28
28
|
"ownerDefaultValue": [8, "owner-default-value"],
|
|
29
29
|
"errors": [8],
|
|
30
30
|
"formController": [16, "form-controller"]
|
|
@@ -49,9 +49,9 @@ const BusinessOwnerForm = /*@__PURE__*/ proxyCustomElement(class BusinessOwnerFo
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("owner-form-core", { key: '
|
|
52
|
+
return (h("owner-form-core", { key: '253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
|
|
53
53
|
}
|
|
54
|
-
}, [
|
|
54
|
+
}, [256, "justifi-owner-form", {
|
|
55
55
|
"authToken": [1, "auth-token"],
|
|
56
56
|
"ownerId": [1, "owner-id"],
|
|
57
57
|
"businessId": [1, "business-id"],
|
package/dist/module/package.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { E as ExtendedPagingDefaults } from './Pagination.js';
|
|
3
|
-
import {
|
|
3
|
+
import { p as paginationButton, q as paginationButtonDisabled, r as paginationButtonIconPrevious, u as paginationButtonText, v as paginationButtonIconNext } from './parts.js';
|
|
4
4
|
|
|
5
5
|
const PaginationMenu = /*@__PURE__*/ proxyCustomElement(class PaginationMenu extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -18,7 +18,7 @@ const PaginationMenu = /*@__PURE__*/ proxyCustomElement(class PaginationMenu ext
|
|
|
18
18
|
this.paging.handleClickNext(this.paging.end_cursor);
|
|
19
19
|
}, part: this.paging.has_next ? paginationButton : paginationButtonDisabled }, h("span", { key: '6a01458a048a524931b03df6a964fa4a0ac403ac', part: paginationButtonText }, "Next"), h("span", { key: 'f4cb3d084647c00dff30b99f751180564463443f', class: "ms-1", part: paginationButtonIconNext }, "\u00BB")))))));
|
|
20
20
|
}
|
|
21
|
-
}, [
|
|
21
|
+
}, [256, "pagination-menu", {
|
|
22
22
|
"paging": [16],
|
|
23
23
|
"params": [16]
|
|
24
24
|
}]);
|
package/dist/module/parts.js
CHANGED
|
@@ -128,4 +128,4 @@ const orderTypeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam}
|
|
|
128
128
|
const createdAfterTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-after-terminal-orders-list-filter-param`;
|
|
129
129
|
const createdBeforeTerminalOrdersListFilterParam = `${terminalOrdersListFilterParam} created-before-terminal-orders-list-filter-param`;
|
|
130
130
|
|
|
131
|
-
export { buttonSecondary as $,
|
|
131
|
+
export { buttonSecondary as $, badgeWarning as A, badgeDanger as B, badgeSuccess as C, badgeSecondary as D, badgePrimary as E, badge as F, alertDanger as G, inputCheckboxInvalid as H, inputCheckboxCheckedFocused as I, inputCheckboxFocused as J, inputCheckboxChecked as K, inputCheckbox as L, inputAdornment as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, inputInvalidAndFocused as T, heading3 as U, billingForm as V, radioListItem as W, heading4 as X, image as Y, buttonLink as Z, heading5 as _, heading1 as a, buttonPrimary as a0, buttonLoading as a1, checkoutSummary as a2, checkoutsListFilterMenu as a3, statusCheckoutsListFilterParam as a4, paymentModeCheckoutsListFilterParam as a5, dropdownMenuButton as a6, dropdownMenu as a7, getAlternateTableCellPart as a8, paymentsListFilterMenu as a9, paymentIdPaymentsListFilterParam as aa, terminalIdPaymentsListFilterParam as ab, paymentStatusPaymentsListFilterParam as ac, createdAfterPaymentsListFilterParam as ad, createdBeforePaymentsListFilterParam as ae, payoutsListFilterMenu as af, createdAfterPayoutsListFilterParam as ag, createdBeforePayoutsListFilterParam as ah, terminalOrdersListFilterMenu as ai, orderStatusTerminalOrdersListFilterParam as aj, orderTypeTerminalOrdersListFilterParam as ak, createdAfterTerminalOrdersListFilterParam as al, createdBeforeTerminalOrdersListFilterParam as am, terminalsListFilterMenu as an, terminalIdTerminalsListFilterParam as ao, terminalOrderIdTerminalsListFilterParam as ap, terminalStatusTerminalsListFilterParam as aq, tableHead as ar, tableHeadRow as as, tableRow as at, tableFoot as au, tableFootRow as av, tableFootCell as aw, tableEmpty as ax, tableError as ay, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, card as k, label as l, table as m, tableHeadCell as n, tableCell as o, paginationButton as p, paginationButtonDisabled as q, paginationButtonIconPrevious as r, skeleton as s, text as t, paginationButtonText as u, paginationButtonIconNext as v, loadingSpinner as w, badgeDark as x, badgeLight as y, badgeInfo as z };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
-
import { a as formatDate,
|
|
2
|
+
import { a as formatDate, e as formatTime, s as snakeCaseToHumanReadable } from './utils2.js';
|
|
3
3
|
import { M as MapPaymentStatusToBadge } from './payments-status.js';
|
|
4
4
|
import { E as ErrorState, b as EntityHeadInfo, c as EntityHeadInfoItem, D as DetailSectionTitle, a as DetailItem, C as CodeBlock } from './utils.js';
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
6
6
|
import { d as defineCustomElement$1 } from './details.js';
|
|
7
7
|
import './event-types.js';
|
|
8
|
-
import './justifi-radio-list-item2.js';
|
|
9
8
|
import { S as Skeleton } from './skeleton.js';
|
|
10
9
|
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
11
10
|
|
|
@@ -59,22 +58,22 @@ const PaymentDetailsCore = /*@__PURE__*/ proxyCustomElement(class PaymentDetails
|
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
render() {
|
|
62
|
-
return (h(StyledHost, { key: '
|
|
63
|
-
this.payment && (h("justifi-details", { key: '
|
|
64
|
-
h(DetailSectionTitle, { key: '
|
|
65
|
-
h("div", { key: '
|
|
61
|
+
return (h(StyledHost, { key: '15d28545ce01e6d248080ac81616052603ee2663' }, this.loading && h(PaymentDetailsLoading, { key: '522bc9f3e619d6bfc78a734fddbef3986ac4bba5' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
|
|
62
|
+
this.payment && (h("justifi-details", { key: '8c2c9c6c17c9377216babb31e7453c305249bed8', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'ff35f8c529a87bc11c5312f4acb2fb9785a6f9a5', slot: "head-info", badge: (h("div", { class: "d-flex gap-1" }, MapPaymentStatusToBadge(this.payment.status), this.payment.expedited ? (h(Badge, { variant: BadgeVariant.WARNING, title: "Expedited", text: "Expedited" })) : null)), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '00aabc68185dd446686303a8728ae5a3ab2b99a2', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '479505d76f7691b39aa9ba27d238f7d58e455c63', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '30e3a2d22d33ecd2ca058d060571cfdc3e98b58e', title: "ID", value: this.payment.id })), h("div", { key: 'f9b40c0be16386a79c116a8f47d1d75b6bbe4a3f', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '7273cf62d01b41506d8b302fca7ebefa8c3d679c', sectionTitle: "Details" }), h("div", { key: '702266d3a89f08f8df06ef63ab9e6b1f2b66921f', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'c88bdfbf0c1c4f82e5704bc7476f4f0012d2fb0e', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '4f0d3d5e4d2d6fb55b2f399e473926e9d2d7e5e6', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '84eea3ed5506d2c18c6e6ad2c490137ac4712744', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '0fc8f662cef10099fe1c33713c1ddf4eab88721a', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: '75d1a5b56103af39dd690a65eefe6c80effabb5b', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '7c0c0cefd23c4a33f42623cd1a899fb0f7348ccf', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '4e5787b7b282e990df10ed2dff40444e7dda6e6b', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '3577061d072a83c131463c1a2a91e0ee97652c0d', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '14d30fab14b253cd76cf9167eae54da54142a57a', title: "Description", value: this.payment.description }), h(DetailItem, { key: 'e8a27a88fbb050ecc58d9353a463818735649b99', title: "Expedited", value: this.payment.expedited ? 'Yes' : 'No' })), this.payment.payment_method.card && [
|
|
63
|
+
h(DetailSectionTitle, { key: '5513a52e1882d2646cbe485f1e60957055e0d725', sectionTitle: "Payment Method" }),
|
|
64
|
+
h("div", { key: 'b5f426200d5b30f70a3c101c1b743a3566317752', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '7a2e5e2b88bea10653e84250624b8f0118a2415d', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'a2764eb2492f7b064cffb78c2aa17d80b3aa8c9a', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '7f12a14726ac38f62cd987b9b3c5744feb816f99', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '4835d5c6da77e2a642700435e4d57c51e911d313', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: 'e1514a312382f004c91f3edcf9a59d52de84a22d', title: "Cardholder", value: this.payment.payment_method.payersName }))
|
|
66
65
|
], this.payment.payment_method.bank_account && [
|
|
67
|
-
h(DetailSectionTitle, { key: '
|
|
68
|
-
h("div", { key: '
|
|
66
|
+
h(DetailSectionTitle, { key: 'ea82c243782fadf4761a0573e86a1eaf4744cc64', sectionTitle: "Payment Method" }),
|
|
67
|
+
h("div", { key: 'e91e4d388bc17d979d4aef18b08d70ed774ee4e2', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '4ca0fc7f422c420f01cf51515425634ec14ea18d', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '972c247458077a37430149af16e20050e76a1b33', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '79aabf3e2f3fd77bbcdf2dbd068b12e50ddb6138', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: 'bf4760e06d00ef0af37909c00e7ceb35b401d88c', title: "Account Owner", value: this.payment.payment_method.payersName }))
|
|
69
68
|
], this.payment.metadata && [
|
|
70
|
-
h(DetailSectionTitle, { key: '
|
|
71
|
-
h("div", { key: '
|
|
69
|
+
h(DetailSectionTitle, { key: '8a7e404c76142e20a558e76866a6f10db5c9f3fd', sectionTitle: 'Metadata' }),
|
|
70
|
+
h("div", { key: 'd38c9480f08fbdd83ffeacb28bc133deb0c03fe3', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '01e40bc5434352efeb7b26142e4a0ec58b5bd89a', metadata: this.payment.metadata }))
|
|
72
71
|
])))));
|
|
73
72
|
}
|
|
74
73
|
static get watchers() { return {
|
|
75
74
|
"getPaymentDetails": ["updateOnPropChange"]
|
|
76
75
|
}; }
|
|
77
|
-
}, [
|
|
76
|
+
}, [256, "payment-details-core", {
|
|
78
77
|
"getPaymentDetails": [16, "get-payment-details"],
|
|
79
78
|
"payment": [32],
|
|
80
79
|
"loading": [32],
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import { d as snakeToCamel } from './utils2.js';
|
|
2
2
|
|
|
3
|
+
class PaymentMethodOption {
|
|
4
|
+
constructor(paymentMethod) {
|
|
5
|
+
this.id = paymentMethod.id;
|
|
6
|
+
this.brand = paymentMethod.brand;
|
|
7
|
+
this.acct_last_four = paymentMethod.acct_last_four;
|
|
8
|
+
this.type = snakeToCamel(paymentMethod.type);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
3
11
|
var CardBrandLabels;
|
|
4
12
|
(function (CardBrandLabels) {
|
|
5
13
|
CardBrandLabels["american_express"] = "American Express";
|
|
@@ -12,4 +20,4 @@ var CardBrandLabels;
|
|
|
12
20
|
CardBrandLabels["unknown"] = "Unknown";
|
|
13
21
|
})(CardBrandLabels || (CardBrandLabels = {}));
|
|
14
22
|
|
|
15
|
-
export { CardBrandLabels as C };
|
|
23
|
+
export { CardBrandLabels as C, PaymentMethodOption as P };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { W as radioListItem } from './parts.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host.js';
|
|
4
4
|
import './details.js';
|
|
5
5
|
import './event-types.js';
|
|
6
|
-
import './justifi-radio-list-item2.js';
|
|
7
6
|
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
8
7
|
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
9
8
|
|
|
@@ -14,9 +13,9 @@ const PaymentMethodOption = /*@__PURE__*/ proxyCustomElement(class PaymentMethod
|
|
|
14
13
|
this.__attachShadow();
|
|
15
14
|
}
|
|
16
15
|
render() {
|
|
17
|
-
return (h(StyledHost, { key: '
|
|
16
|
+
return (h(StyledHost, { key: 'e9069cbe6668585daa972c3d226ef2a901a0b003', class: "payment-method" }, h("div", { key: '9ec14865488d43f8007c481a8ba030b5415abf96', class: "radio-list-item p-3", part: radioListItem, onClick: this.clickHandler, hidden: this.radioButtonHidden }, h("form-control-radio", { key: '146ee9bc2cfc57192db519643f18ed672ac12e77', name: "paymentMethodType", value: this.paymentMethodOptionId, checked: this.isSelected, label: this.label }))));
|
|
18
17
|
}
|
|
19
|
-
}, [
|
|
18
|
+
}, [257, "payment-method-option", {
|
|
20
19
|
"paymentMethodOptionId": [1, "payment-method-option-id"],
|
|
21
20
|
"isSelected": [4, "is-selected"],
|
|
22
21
|
"clickHandler": [16, "click-handler"],
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as PaymentMethodTypes } from './Payment.js';
|
|
3
|
+
import { P as PaymentMethodOption } from './payment-method-option-utils.js';
|
|
4
|
+
import { c as checkoutStore } from './checkout.store.js';
|
|
5
|
+
import { W as radioListItem } from './parts.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './form-control-help-text2.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './form-control-radio2.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './saved-payment-methods.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './sezzle-payment-method.js';
|
|
10
|
+
|
|
11
|
+
const PaymentMethodTypeLabels = {
|
|
12
|
+
bankAccount: 'New bank account',
|
|
13
|
+
card: 'New credit or debit card',
|
|
14
|
+
};
|
|
15
|
+
const PaymentMethodOptions = /*@__PURE__*/ proxyCustomElement(class PaymentMethodOptions extends HTMLElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.__registerHost();
|
|
19
|
+
this.savedPaymentMethods = [];
|
|
20
|
+
this.paymentMethodOptions = [];
|
|
21
|
+
}
|
|
22
|
+
async fillBillingForm(fields) {
|
|
23
|
+
const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
|
|
24
|
+
if (newPaymentMethodElement.fillBillingForm) {
|
|
25
|
+
newPaymentMethodElement.fillBillingForm(fields);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
connectedCallback() {
|
|
29
|
+
this.paymentMethodsChanged();
|
|
30
|
+
}
|
|
31
|
+
paymentMethodsChanged() {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
this.paymentMethodOptions = this.savedPaymentMethods
|
|
34
|
+
.map((paymentMethod) => new PaymentMethodOption(paymentMethod))
|
|
35
|
+
.filter((paymentMethod) => {
|
|
36
|
+
// Don't saved card or bank account if they are disabled
|
|
37
|
+
return ((this.showCard || paymentMethod.type !== PaymentMethodTypes.card) &&
|
|
38
|
+
(this.showAch || paymentMethod.type !== PaymentMethodTypes.bankAccount));
|
|
39
|
+
});
|
|
40
|
+
if (this.showBnpl && ((_a = this.bnpl) === null || _a === void 0 ? void 0 : _a.provider) === 'sezzle' && !this.insuranceToggled) {
|
|
41
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.sezzle }));
|
|
42
|
+
}
|
|
43
|
+
if (this.showCard) {
|
|
44
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.card }));
|
|
45
|
+
}
|
|
46
|
+
if (this.showAch) {
|
|
47
|
+
this.paymentMethodOptions.push(new PaymentMethodOption({ id: PaymentMethodTypes.bankAccount }));
|
|
48
|
+
}
|
|
49
|
+
if (!checkoutStore.selectedPaymentMethod) {
|
|
50
|
+
checkoutStore.selectedPaymentMethod = (_b = this.paymentMethodOptions[0]) === null || _b === void 0 ? void 0 : _b.id;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
paymentMethodOptionSelected(event) {
|
|
54
|
+
checkoutStore.selectedPaymentMethod = event.detail.id;
|
|
55
|
+
}
|
|
56
|
+
get hiddenRadioInput() {
|
|
57
|
+
return !this.showAch || !this.showCard;
|
|
58
|
+
}
|
|
59
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
60
|
+
var _a;
|
|
61
|
+
return await ((_a = this.selectedPaymentMethodOptionRef) === null || _a === void 0 ? void 0 : _a.resolvePaymentMethod(insuranceValidation));
|
|
62
|
+
}
|
|
63
|
+
async validate() {
|
|
64
|
+
const newPaymentMethodElement = this.selectedPaymentMethodOptionRef;
|
|
65
|
+
return newPaymentMethodElement.validate();
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return (h("div", { key: 'e1a46216f766f12306302210bcba3147a4312cfa' }, h("justifi-saved-payment-methods", { key: '72ac4e440719ed1bbafc90f4cf0a2e3a52530713' }), h("justifi-sezzle-payment-method", { key: 'aaa89521f18ac4833d561c08b3fa50b00800a4bf' }), h("div", { key: '209001587e9f7e23f1147d4ef2d8ec4691f6c9fb', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.card; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '0baed32a40efc6ff0d77dcf53ae9e3ff3aab1185', name: "paymentMethodType", value: PaymentMethodTypes.card, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.card, label: PaymentMethodTypeLabels[PaymentMethodTypes.card] })), h("div", { key: '53d8360fdecec5a6860f480901911bd2c396e1a2', class: "radio-list-item p-3", part: radioListItem, onClick: () => { checkoutStore.selectedPaymentMethod = PaymentMethodTypes.bankAccount; }, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: '901a45bae4b3faeed8daa147db5c8264c4bee08c', name: "paymentMethodType", value: PaymentMethodTypes.bankAccount, checked: checkoutStore.selectedPaymentMethod === PaymentMethodTypes.bankAccount, label: PaymentMethodTypeLabels[PaymentMethodTypes.bankAccount] }))));
|
|
69
|
+
}
|
|
70
|
+
static get watchers() { return {
|
|
71
|
+
"savedPaymentMethods": ["paymentMethodsChanged"]
|
|
72
|
+
}; }
|
|
73
|
+
}, [256, "justifi-payment-method-options", {
|
|
74
|
+
"showCard": [4, "show-card"],
|
|
75
|
+
"showAch": [4, "show-ach"],
|
|
76
|
+
"showSavedPaymentMethods": [4, "show-saved-payment-methods"],
|
|
77
|
+
"showBnpl": [4, "show-bnpl"],
|
|
78
|
+
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
79
|
+
"bnpl": [16],
|
|
80
|
+
"insuranceToggled": [4, "insurance-toggled"],
|
|
81
|
+
"authToken": [1, "auth-token"],
|
|
82
|
+
"accountId": [1, "account-id"],
|
|
83
|
+
"savedPaymentMethods": [16, "saved-payment-methods"],
|
|
84
|
+
"paymentAmount": [2, "payment-amount"],
|
|
85
|
+
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
86
|
+
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
87
|
+
"paymentMethodOptions": [32],
|
|
88
|
+
"fillBillingForm": [64],
|
|
89
|
+
"resolvePaymentMethod": [64],
|
|
90
|
+
"validate": [64]
|
|
91
|
+
}, [[0, "paymentMethodOptionSelected", "paymentMethodOptionSelected"]], {
|
|
92
|
+
"savedPaymentMethods": ["paymentMethodsChanged"]
|
|
93
|
+
}]);
|
|
94
|
+
function defineCustomElement() {
|
|
95
|
+
if (typeof customElements === "undefined") {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const components = ["justifi-payment-method-options", "form-control-help-text", "form-control-radio", "justifi-saved-payment-methods", "justifi-sezzle-payment-method"];
|
|
99
|
+
components.forEach(tagName => { switch (tagName) {
|
|
100
|
+
case "justifi-payment-method-options":
|
|
101
|
+
if (!customElements.get(tagName)) {
|
|
102
|
+
customElements.define(tagName, PaymentMethodOptions);
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case "form-control-help-text":
|
|
106
|
+
if (!customElements.get(tagName)) {
|
|
107
|
+
defineCustomElement$4();
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
case "form-control-radio":
|
|
111
|
+
if (!customElements.get(tagName)) {
|
|
112
|
+
defineCustomElement$3();
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case "justifi-saved-payment-methods":
|
|
116
|
+
if (!customElements.get(tagName)) {
|
|
117
|
+
defineCustomElement$2();
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
case "justifi-sezzle-payment-method":
|
|
121
|
+
if (!customElements.get(tagName)) {
|
|
122
|
+
defineCustomElement$1();
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
125
|
+
} });
|
|
126
|
+
}
|
|
127
|
+
defineCustomElement();
|
|
128
|
+
|
|
129
|
+
export { PaymentMethodOptions as P, defineCustomElement as d };
|
|
@@ -6,7 +6,6 @@ import { S as StyledHost } from './styled-host.js';
|
|
|
6
6
|
import { H as Header1 } from './header-1.js';
|
|
7
7
|
import './details.js';
|
|
8
8
|
import './event-types.js';
|
|
9
|
-
import './justifi-radio-list-item2.js';
|
|
10
9
|
import { a as BusinessFormClickActions } from './event-types2.js';
|
|
11
10
|
import { d as defineCustomElement$w } from './bank-account-document-inputs.js';
|
|
12
11
|
import { d as defineCustomElement$v } from './bank-account-form-inputs2.js';
|
|
@@ -129,9 +128,9 @@ const PaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class PaymentPr
|
|
|
129
128
|
this.loading = event.detail;
|
|
130
129
|
}
|
|
131
130
|
render() {
|
|
132
|
-
return (h(StyledHost, { key: '
|
|
131
|
+
return (h(StyledHost, { key: 'e195b19df4d1061ecf8b305005faf0ffce68221e' }, h("div", { key: '17d42ba0a22567dce6760e2047478eb1bc36a794', class: 'row gap-3' }, h(Header1, { key: '507788c4af5572cbb09037443ae51b505567d825', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: '4b7e73217ff8230756542c3b0c069e18b7f23356', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '2ae1e8386114181cbd6f7999ac047b7709daa4fb', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: 'a126b618a3028c4c7a9c12145ab63e222a17e51f', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'a66e1ac554e0dffa78be59df6a74d8175ba0376c', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
133
132
|
}
|
|
134
|
-
}, [
|
|
133
|
+
}, [256, "justifi-payment-provisioning-core", {
|
|
135
134
|
"businessId": [1, "business-id"],
|
|
136
135
|
"authToken": [1, "auth-token"],
|
|
137
136
|
"allowOptionalFields": [4, "allow-optional-fields"],
|
|
@@ -4,7 +4,6 @@ import { a as BusinessFormClickActions } from './event-types2.js';
|
|
|
4
4
|
import { B as Button } from './button.js';
|
|
5
5
|
import './details.js';
|
|
6
6
|
import './event-types.js';
|
|
7
|
-
import './justifi-radio-list-item2.js';
|
|
8
7
|
|
|
9
8
|
const PaymentProvisioningFormButtons = /*@__PURE__*/ proxyCustomElement(class PaymentProvisioningFormButtons extends HTMLElement {
|
|
10
9
|
constructor() {
|
|
@@ -21,9 +20,9 @@ const PaymentProvisioningFormButtons = /*@__PURE__*/ proxyCustomElement(class Pa
|
|
|
21
20
|
return this.currentStep === this.totalSteps;
|
|
22
21
|
}
|
|
23
22
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: '7c793a33752cd9b3dd1ebc6c30b7a98002ef8820', class: 'd-flex gap-2' }, h(Button, { key: '5127c233ef8c819fe17204baaff7370d78ec70e7', variant: "secondary", type: "button", onClick: () => this.previousStepButtonOnClick(), disabled: this.formDisabled, hidden: !this.showPreviousStepButton }, "Previous"), h(Button, { key: 'd889e96935718eb333eaac70023fd7b273118676', variant: "primary", type: "button", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.nextStep), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showNextStepButton }, "Next"), h(Button, { key: '5502d7d73084119862451389bf85705407187016', variant: "primary", type: "submit", onClick: (e) => this.nextStepButtonOnClick(e, BusinessFormClickActions.submit), disabled: this.formDisabled, isLoading: this.formLoading, hidden: !this.showSubmitButton }, "Submit")));
|
|
25
24
|
}
|
|
26
|
-
}, [
|
|
25
|
+
}, [256, "justifi-payment-provisioning-form-buttons", {
|
|
27
26
|
"currentStep": [2, "current-step"],
|
|
28
27
|
"totalSteps": [2, "total-steps"],
|
|
29
28
|
"formLoading": [4, "form-loading"],
|