@justifi/webcomponents 6.0.0-rc.4 → 6.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-CPuq_15r.js → Api-y2G49jOh.js} +1 -1
- package/dist/cjs/{Refund-CqWNG8sx.js → Refund-BVZHsa6Z.js} +5 -4
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-CMmPvqtE.js → badge-CcJ9H85-.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business.service-C3BdUPlm.js → business.service-D5IhSyRJ.js} +2 -2
- package/dist/cjs/{button-CfVQSysQ.js → button-DsHDMHaa.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +6 -6
- package/dist/cjs/{check-pkg-version-BNVGE27p.js → check-pkg-version-V7aKSlBk.js} +9 -3
- package/dist/cjs/{checkout.service-B0ZmvWwI.js → checkout.service-4aS641tN.js} +2 -2
- package/dist/cjs/{checkout.store-CV_fuGQw.js → checkout.store-Ctwy9ahZ.js} +5 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{payments-list-params-state-BNbT1fuJ.js → checkouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{checkouts-table-UN5gPpQ_.js → checkouts-table-B_gpjGhs.js} +2 -2
- package/dist/cjs/{config-state-5xZf-jax.js → config-state-BBOZIS8x.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-DsPEAcDn.js → dispute.service-64ciJH0r.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-HM0zQerh.js → form-control-error-text-B-P5UDhm.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-5KIUw1IP.js → form-control-help-text-JoZjhb9m.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-DtCXaIMx.js → get-payment-details-DE5xUUpt.js} +2 -2
- package/dist/cjs/{get-subaccounts-CwCH5rC8.js → get-subaccounts-CH477rHs.js} +3 -3
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-DD41iNlG.js → header-1-DRA3f4Jh.js} +1 -1
- package/dist/cjs/{header-3-D9Wa0IfT.js → header-3-sOdOpfx3.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
- package/dist/cjs/{index-Yd9aLenr.js → index-B32W0A3m.js} +1 -1
- package/dist/cjs/{index-dm_GlYlb.js → index-C9hBD-32.js} +2 -2
- package/dist/cjs/{insurance-state-Cyva9u6S.js → insurance-state-d2thhXUX.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +6 -6
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +781 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +20 -20
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-form.cjs.entry.js +12 -12
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +1422 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +16 -45
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -14
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +15 -11
- package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-BKILqyp3.js → package-Dg5ELZpu.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
- package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
- package/dist/cjs/{payment.service-1H0VC3LV.js → payment.service--kzMop3L.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{payouts-list-params-state-BNbT1fuJ.js → payments-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payments-status-PB63klt3.js → payments-status-DXRh_ekP.js} +2 -2
- package/dist/cjs/{payments-table-quF0NnsS.js → payments-table-DFRtk-T9.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-CIZFU-hV.js → payout.service-D3omzNG_.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
- package/dist/cjs/{checkouts-list-params-state-BNbT1fuJ.js → payouts-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{payouts-status-Bk1JFzbP.js → payouts-status-DxTQZv3i.js} +2 -2
- package/dist/cjs/{payouts-table-D_CCTR_k.js → payouts-table-DE3t0x93.js} +2 -2
- package/dist/cjs/{skeleton-x-GSs3xk.js → skeleton-C7DQRD6r.js} +1 -1
- package/dist/cjs/{spinner-Kb1BFvnL.js → spinner-jmeA44Ee.js} +1 -1
- package/dist/cjs/{styled-host-CqQYxX-w.js → styled-host-BfVJlAsJ.js} +1 -1
- package/dist/cjs/{table-BJVUhh3s.js → table-Ccdrt0v_.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
- package/dist/cjs/{terminal-orders-list-params-state-BNbT1fuJ.js → terminal-orders-list-params-state-Cewmin_p.js} +1 -1
- package/dist/cjs/{terminal-orders-table-0O5jtzYj.js → terminal-orders-table-B1LJitwE.js} +4 -4
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-DUlyMTrX.js → terminal.service-BOvYfpQW.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
- package/dist/cjs/terminals-list-params-state-Cewmin_p.js +22 -0
- package/dist/cjs/{terminals-table-C2BNRUS5.js → terminals-table-DYt7exFQ.js} +2 -2
- package/dist/cjs/{utils-Df-pajL7.js → utils-Bzyj4qWe.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/api/ApplePay.js +119 -0
- package/dist/collection/api/Payment.js +3 -2
- package/dist/collection/api/services/apple-pay.service.js +293 -0
- package/dist/collection/api/services/plaid.service.js +20 -0
- package/dist/collection/assets/plaid-icon.svg +1 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +7 -44
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +4 -0
- package/dist/collection/components/modular-checkout/ModularCheckout.js +28 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +153 -118
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +515 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.js +864 -0
- package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +123 -0
- package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +11 -5
- package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +3 -2
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +65 -37
- package/dist/collection/store/checkout.store.js +4 -1
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/collection/utils/check-pkg-version.js +6 -0
- package/dist/docs.json +964 -235
- package/dist/esm/{Api-N_veT2p6.js → Api-C1I68Tfr.js} +1 -1
- package/dist/esm/{Refund-Di6J0oN2.js → Refund-kKW8S1h6.js} +4 -3
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-D_mzXSCQ.js → badge-DSYSJcRy.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -9
- package/dist/esm/bank-account-form.entry.js +7 -7
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business.service-Bdvhdc_d.js → business.service-B3wlBl1x.js} +2 -2
- package/dist/esm/{button-CeR8qVS3.js → button-CpllL0At.js} +2 -2
- package/dist/esm/card-form.entry.js +7 -7
- package/dist/esm/{check-pkg-version-CaWUVat7.js → check-pkg-version-DFYosyo9.js} +9 -3
- package/dist/esm/{checkout.service-XgGFa7H8.js → checkout.service-KDp7tISm.js} +2 -2
- package/dist/esm/{checkout.store-B60siz2l.js → checkout.store-sQSQqMAD.js} +5 -2
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-list-params-state-SMXQIZTt.js → checkouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-QOdiLpak.js} +3 -3
- package/dist/esm/{config-state-BrllxiM0.js → config-state-DZeVYerv.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +4 -4
- package/dist/esm/{dispute.service-CKPcmwhH.js → dispute.service-DEZEPwn-.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-R7U07nTg.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-CRLH-2f7.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +7 -7
- package/dist/esm/{get-payment-details-Dt-dr16k.js → get-payment-details-CYASKLT7.js} +2 -2
- package/dist/esm/{get-subaccounts-BsoVLANw.js → get-subaccounts-E0PYy_pc.js} +3 -3
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-E-hEi3wF.js → header-1-3M9If0gM.js} +2 -2
- package/dist/esm/{header-3-Dm7M85kz.js → header-3-CWa41YWq.js} +2 -2
- package/dist/esm/hidden-input_2.entry.js +9 -9
- package/dist/esm/{index-B9me4yN2.js → index-B_KxSZIF.js} +1 -1
- package/dist/esm/{index-kpoIU4v_.js → index-Bn7inNWG.js} +2 -2
- package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-CTalqbNa.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -7
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +8 -8
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- package/dist/esm/justifi-apple-pay.entry.js +779 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +21 -21
- package/dist/esm/justifi-business-details.entry.js +10 -10
- package/dist/esm/justifi-business-form.entry.js +13 -13
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +1414 -0
- package/dist/esm/justifi-checkout.entry.js +17 -46
- package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list.entry.js +14 -14
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +9 -9
- package/dist/esm/justifi-dispute-notification_3.entry.js +15 -15
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
- package/dist/esm/justifi-order-terminals.entry.js +13 -13
- package/dist/esm/justifi-owner-form_3.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +11 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payments-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payments-list.entry.js +14 -14
- package/dist/esm/justifi-payout-details.entry.js +10 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-payouts-list.entry.js +15 -15
- package/dist/esm/justifi-refund-payment.entry.js +13 -13
- package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -12
- package/dist/esm/justifi-skeleton.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +9 -9
- package/dist/esm/justifi-terminal-orders-list.entry.js +12 -12
- package/dist/esm/justifi-terminals-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminals-list.entry.js +14 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-BF-uL8B4.js → package-uY_jN8Gg.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -15
- package/dist/esm/payment-method-option.entry.js +4 -4
- package/dist/esm/{payment.service-BWO84KlP.js → payment.service-uJpJaX2Z.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-list-params-state-SMXQIZTt.js → payments-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-5orNU2Rd.js} +2 -2
- package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-B0uyodyJ.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +11 -11
- package/dist/esm/{payout.service-Cld6TS5W.js → payout.service-ClUgtbbb.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-list-params-state-SMXQIZTt.js → payouts-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-CZPwa2AE.js} +2 -2
- package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-CaCSX_0q.js} +3 -3
- package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-qMb0_Cjy.js} +2 -2
- package/dist/esm/{spinner-XBq6mVJW.js → spinner-DUzyWLhj.js} +2 -2
- package/dist/esm/{styled-host-B_XBaM7z.js → styled-host-CTAGIN84.js} +1 -1
- package/dist/esm/{table-qqt2Ew5y.js → table-Br3n9Xu-.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-list-params-state-SMXQIZTt.js → terminal-orders-list-params-state-D8tzsGR_.js} +1 -1
- package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-DPtof5Zb.js} +5 -5
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-DmYCUQcA.js → terminal.service-ClNtE3e-.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/terminals-list-params-state-D8tzsGR_.js +16 -0
- package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-ClkR_jrC.js} +3 -3
- package/dist/esm/{utils-kWaZhFAd.js → utils-Dg6gMUTv.js} +2 -2
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/Analytics.js +6 -0
- package/dist/module/ModularCheckout.js +30 -0
- package/dist/module/Refund.js +4 -3
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +4 -1
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-payment-details.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +817 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +51 -76
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-plaid-payment-method.d.ts +11 -0
- package/dist/module/justifi-plaid-payment-method.js +6 -0
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +4 -0
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/modular-checkout.js +149 -97
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +693 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-methods.js +11 -5
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +47 -38
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/Checkout.d.ts +4 -0
- package/dist/types/api/Payment.d.ts +3 -4
- package/dist/types/api/services/apple-pay.service.d.ts +55 -0
- package/dist/types/api/services/plaid.service.d.ts +12 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -7
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +23 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +6 -3
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +38 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.d.ts +80 -0
- package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +7 -5
- package/dist/types/components.d.ts +159 -3
- package/dist/types/store/checkout.store.d.ts +5 -1
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/webcomponents/{p-56980ef3.entry.js → p-040e8524.entry.js} +1 -1
- package/dist/webcomponents/{p-DD74a16D.js → p-0mMX1Zv4.js} +1 -1
- package/dist/webcomponents/{p-29b6f15a.entry.js → p-14ff3155.entry.js} +1 -1
- package/dist/webcomponents/{p-904a95e5.entry.js → p-15705e8a.entry.js} +1 -1
- package/dist/webcomponents/p-16f94e08.entry.js +1 -0
- package/dist/webcomponents/p-1c5be37e.entry.js +1 -0
- package/dist/webcomponents/p-255b28fb.entry.js +1 -0
- package/dist/webcomponents/p-26a8b07c.entry.js +1 -0
- package/dist/webcomponents/p-26ce3346.entry.js +1 -0
- package/dist/webcomponents/{p-79055216.entry.js → p-28618e6f.entry.js} +1 -1
- package/dist/webcomponents/{p-518a9519.entry.js → p-2de08ab2.entry.js} +1 -1
- package/dist/webcomponents/p-30c1f265.entry.js +1 -0
- package/dist/webcomponents/p-3aecd2cd.entry.js +1 -0
- package/dist/webcomponents/{p-f4f3cae8.entry.js → p-3bf63d1e.entry.js} +1 -1
- package/dist/webcomponents/p-3c5d92d9.entry.js +1 -0
- package/dist/webcomponents/{p-a0573ecc.entry.js → p-3e025b84.entry.js} +1 -1
- package/dist/webcomponents/{p-413236be.entry.js → p-3e4db664.entry.js} +1 -1
- package/dist/webcomponents/p-3e667b07.entry.js +1 -0
- package/dist/webcomponents/{p-0b790fa4.entry.js → p-4213d10e.entry.js} +4 -4
- package/dist/webcomponents/{p-a8205044.entry.js → p-44450a94.entry.js} +1 -1
- package/dist/webcomponents/p-4723f35b.entry.js +1 -0
- package/dist/webcomponents/{p-d075bd72.entry.js → p-51801ae5.entry.js} +1 -1
- package/dist/webcomponents/p-52098283.entry.js +1 -0
- package/dist/webcomponents/{p-ab308ee3.entry.js → p-54ca3070.entry.js} +1 -1
- package/dist/webcomponents/p-5580e6ca.entry.js +1 -0
- package/dist/webcomponents/p-57dde36e.entry.js +1 -0
- package/dist/webcomponents/p-5bc6f5ca.entry.js +1 -0
- package/dist/webcomponents/p-5f87add5.entry.js +1 -0
- package/dist/webcomponents/{p-f7e62bfa.entry.js → p-60206d9c.entry.js} +1 -1
- package/dist/webcomponents/{p-6e18d13f.entry.js → p-613421d4.entry.js} +1 -1
- package/dist/webcomponents/{p-3d85d046.entry.js → p-6255c685.entry.js} +1 -1
- package/dist/webcomponents/p-7089fb85.entry.js +1 -0
- package/dist/webcomponents/{p-48bccf3b.entry.js → p-70f51444.entry.js} +1 -1
- package/dist/webcomponents/p-72dda22b.entry.js +1 -0
- package/dist/webcomponents/{p-b0bfa20f.entry.js → p-7cf87637.entry.js} +1 -1
- package/dist/webcomponents/p-87884ca5.entry.js +1 -0
- package/dist/webcomponents/p-88905a54.entry.js +1 -0
- package/dist/webcomponents/p-8990707a.entry.js +1 -0
- package/dist/webcomponents/p-8b7cbdbf.entry.js +1 -0
- package/dist/webcomponents/p-8cca8903.entry.js +1 -0
- package/dist/webcomponents/{p-15777cfe.entry.js → p-8ff839a4.entry.js} +1 -1
- package/dist/webcomponents/{p-724b0361.entry.js → p-90a1ba6a.entry.js} +1 -1
- package/dist/webcomponents/{p-57143978.entry.js → p-95cbb655.entry.js} +1 -1
- package/dist/webcomponents/{p-befda39d.entry.js → p-97c0dde4.entry.js} +1 -1
- package/dist/webcomponents/p-9846b23d.entry.js +1 -0
- package/dist/webcomponents/p-98cffba9.entry.js +1 -0
- package/dist/webcomponents/{p-738e0511.entry.js → p-9a2c044f.entry.js} +1 -1
- package/dist/webcomponents/p-9f0b1bea.entry.js +1 -0
- package/dist/webcomponents/p-9f5c9e41.entry.js +1 -0
- package/dist/webcomponents/p-B5Rc83j1.js +1 -0
- package/dist/webcomponents/p-B71k50jz.js +1 -0
- package/dist/webcomponents/p-B8iBcmNu.js +1 -0
- package/dist/webcomponents/p-BEPUC3Po.js +1 -0
- package/dist/webcomponents/p-BP7op0vq.js +1 -0
- package/dist/webcomponents/{p-I8XpD1TX.js → p-BPtcGAzB.js} +1 -1
- package/dist/webcomponents/p-BQ2TIFoY.js +1 -0
- package/dist/webcomponents/{p-BTkXk7ol.js → p-BRLwUSZk.js} +1 -1
- package/dist/webcomponents/p-BSt6p1oq.js +1 -0
- package/dist/webcomponents/p-BY1mRAvj.js +1 -0
- package/dist/webcomponents/{p-YND5pTuF.js → p-Bb-6bNcq.js} +1 -1
- package/dist/webcomponents/p-BbZwa5UI.js +1 -0
- package/dist/webcomponents/p-BfM6X7lF.js +1 -0
- package/dist/webcomponents/{p-kpoIU4v_.js → p-Bn7inNWG.js} +1 -1
- package/dist/webcomponents/{p-DWUnL_zj.js → p-Bu1jU017.js} +1 -1
- package/dist/webcomponents/{p-BeszVz87.js → p-C5id7s_l.js} +1 -1
- package/dist/webcomponents/{p-Bz164TKZ.js → p-CB0mCq1M.js} +1 -1
- package/dist/webcomponents/p-CaAVuW6B.js +1 -0
- package/dist/webcomponents/p-CpaS1Lex.js +1 -0
- package/dist/webcomponents/{p-Bpcb3SsP.js → p-CvG-itHC.js} +1 -1
- package/dist/webcomponents/{p-BySyDTv5.js → p-D2_iJUrZ.js} +1 -1
- package/dist/webcomponents/p-DAED83Ew.js +1 -0
- package/dist/webcomponents/p-DD0Mvpeu.js +1 -0
- package/dist/webcomponents/p-DDUmOl3v.js +1 -0
- package/dist/webcomponents/{p-Dvxpy_P1.js → p-DGmp4ErD.js} +1 -1
- package/dist/webcomponents/p-DIDloHpm.js +1 -0
- package/dist/webcomponents/{p-DO3INvI2.js → p-DNo0OPOP.js} +1 -1
- package/dist/webcomponents/{p-CsNubTqD.js → p-DVBbk00Z.js} +1 -1
- package/dist/webcomponents/{p-Bb6FBEPP.js → p-Dc1CS9Mi.js} +1 -1
- package/dist/webcomponents/p-Dgflaz6J.js +1 -0
- package/dist/webcomponents/{p-9y5MOK55.js → p-DhGNCW2f.js} +1 -1
- package/dist/webcomponents/p-DsZZxRXY.js +1 -0
- package/dist/webcomponents/{p-CRFzwZW6.js → p-DxqCFDtF.js} +1 -1
- package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/p-a1d3bb81.entry.js +1 -0
- package/dist/webcomponents/p-a347d1b1.entry.js +1 -0
- package/dist/webcomponents/p-a9957ca5.entry.js +1 -0
- package/dist/webcomponents/{p-463ae23a.entry.js → p-abbf14b5.entry.js} +1 -1
- package/dist/webcomponents/p-abd0e71f.entry.js +1 -0
- package/dist/webcomponents/{p-BbYVgLcf.js → p-b21ncS7l.js} +1 -1
- package/dist/webcomponents/{p-DWOKxG7j.js → p-bjogwLgt.js} +1 -1
- package/dist/webcomponents/p-c2bceb15.entry.js +1 -0
- package/dist/webcomponents/p-c44325f8.entry.js +1 -0
- package/dist/webcomponents/p-c874ca2b.entry.js +1 -0
- package/dist/webcomponents/p-caac63bf.entry.js +1 -0
- package/dist/webcomponents/p-cbc96430.entry.js +1 -0
- package/dist/webcomponents/{p-5e10aa65.entry.js → p-d46dbb83.entry.js} +1 -1
- package/dist/webcomponents/p-d72e8541.entry.js +1 -0
- package/dist/webcomponents/{p-14d66df2.entry.js → p-dc1efbab.entry.js} +1 -1
- package/dist/webcomponents/p-eP3fmhta.js +1 -0
- package/dist/webcomponents/{p-9c5b0b94.entry.js → p-ecd9f0e9.entry.js} +1 -1
- package/dist/webcomponents/p-f13ae573.entry.js +1 -0
- package/dist/webcomponents/{p-c5b48e8d.entry.js → p-f1cba43c.entry.js} +1 -1
- package/dist/webcomponents/p-f4c4c248.entry.js +1 -0
- package/dist/webcomponents/p-f680e617.entry.js +1 -0
- package/dist/webcomponents/{p-98579723.entry.js → p-fb228106.entry.js} +1 -1
- package/dist/webcomponents/{p-f4645aef.entry.js → p-fd4ffaa2.entry.js} +1 -1
- package/dist/webcomponents/{p-BisQ61nK.js → p-qWQmu-fb.js} +1 -1
- package/dist/webcomponents/p-sw5RO19U.js +1 -0
- package/dist/webcomponents/p-uY_jN8Gg.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +0 -698
- package/dist/cjs/terminals-list-params-state-BNbT1fuJ.js +0 -22
- package/dist/esm/justifi-checkout-summary_6.entry.js +0 -691
- package/dist/esm/terminals-list-params-state-SMXQIZTt.js +0 -16
- package/dist/webcomponents/p-0cab7d5d.entry.js +0 -1
- package/dist/webcomponents/p-0e287092.entry.js +0 -1
- package/dist/webcomponents/p-145bb9c4.entry.js +0 -1
- package/dist/webcomponents/p-1975406a.entry.js +0 -1
- package/dist/webcomponents/p-1ffbf771.entry.js +0 -1
- package/dist/webcomponents/p-2a59547b.entry.js +0 -1
- package/dist/webcomponents/p-2da63719.entry.js +0 -1
- package/dist/webcomponents/p-35bbfbf8.entry.js +0 -1
- package/dist/webcomponents/p-43d693a3.entry.js +0 -1
- package/dist/webcomponents/p-4ae2a0b9.entry.js +0 -1
- package/dist/webcomponents/p-4b795b77.entry.js +0 -1
- package/dist/webcomponents/p-53c81d62.entry.js +0 -1
- package/dist/webcomponents/p-5477c449.entry.js +0 -1
- package/dist/webcomponents/p-5rVtZ2GJ.js +0 -1
- package/dist/webcomponents/p-614fcef6.entry.js +0 -1
- package/dist/webcomponents/p-70ff3b10.entry.js +0 -1
- package/dist/webcomponents/p-739d6f13.entry.js +0 -1
- package/dist/webcomponents/p-7WIgS5RM.js +0 -1
- package/dist/webcomponents/p-7b9008f1.entry.js +0 -1
- package/dist/webcomponents/p-84ce3bae.entry.js +0 -1
- package/dist/webcomponents/p-8a5e168d.entry.js +0 -1
- package/dist/webcomponents/p-8f31a0c5.entry.js +0 -1
- package/dist/webcomponents/p-9ccd19f5.entry.js +0 -1
- package/dist/webcomponents/p-9f289c31.entry.js +0 -1
- package/dist/webcomponents/p-BC8YDY7M.js +0 -1
- package/dist/webcomponents/p-BF-uL8B4.js +0 -1
- package/dist/webcomponents/p-BVD7g3cE.js +0 -1
- package/dist/webcomponents/p-Bt388eye.js +0 -1
- package/dist/webcomponents/p-C1fMfnu0.js +0 -1
- package/dist/webcomponents/p-CCME-fyU.js +0 -1
- package/dist/webcomponents/p-CLwzqWk2.js +0 -1
- package/dist/webcomponents/p-CVQyw7ao.js +0 -1
- package/dist/webcomponents/p-C_CXv7AN.js +0 -1
- package/dist/webcomponents/p-CwZKT93w.js +0 -1
- package/dist/webcomponents/p-D599ZMGU.js +0 -1
- package/dist/webcomponents/p-DaDsBt65.js +0 -1
- package/dist/webcomponents/p-JgbsbAhz.js +0 -1
- package/dist/webcomponents/p-UD2JhYS2.js +0 -1
- package/dist/webcomponents/p-WEguiGt1.js +0 -1
- package/dist/webcomponents/p-a33ea645.entry.js +0 -1
- package/dist/webcomponents/p-b93377a7.entry.js +0 -1
- package/dist/webcomponents/p-ba018d57.entry.js +0 -1
- package/dist/webcomponents/p-bafe873d.entry.js +0 -1
- package/dist/webcomponents/p-be06d86a.entry.js +0 -1
- package/dist/webcomponents/p-c5dabaf4.entry.js +0 -1
- package/dist/webcomponents/p-cea8e40e.entry.js +0 -1
- package/dist/webcomponents/p-d7720819.entry.js +0 -1
- package/dist/webcomponents/p-df4f2af9.entry.js +0 -1
- package/dist/webcomponents/p-e1ba5735.entry.js +0 -1
- package/dist/webcomponents/p-e2267656.entry.js +0 -1
- package/dist/webcomponents/p-e4e30e84.entry.js +0 -1
- package/dist/webcomponents/p-e81c5d79.entry.js +0 -1
- package/dist/webcomponents/p-f200cbda.entry.js +0 -1
- package/dist/webcomponents/p-f7345d66.entry.js +0 -1
- package/dist/webcomponents/p-fd39af50.entry.js +0 -1
- package/dist/webcomponents/p-pska2q1M.js +0 -1
- package/dist/webcomponents/p-qMrd7_Gp.js +0 -1
- package/dist/webcomponents/p-vRhNRfmB.js +0 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
|
@@ -2,13 +2,13 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { StyledHost } from "../../ui-components";
|
|
3
3
|
import { checkPkgVersion } from "../../utils/check-pkg-version";
|
|
4
4
|
import JustifiAnalytics from "../../api/Analytics";
|
|
5
|
-
import { PaymentMethodTypes } from "../../api/Payment";
|
|
6
5
|
import { ComponentErrorCodes, ComponentErrorSeverity } from "../../api";
|
|
7
6
|
import { checkoutStore } from "../../store/checkout.store";
|
|
7
|
+
import { PAYMENT_METHODS } from "../modular-checkout/ModularCheckout";
|
|
8
8
|
// Constants
|
|
9
9
|
const PAYMENT_METHOD_TYPE_LABELS = {
|
|
10
|
-
[
|
|
11
|
-
[
|
|
10
|
+
[PAYMENT_METHODS.NEW_BANK_ACCOUNT]: 'New bank account',
|
|
11
|
+
[PAYMENT_METHODS.NEW_CARD]: 'New credit or debit card',
|
|
12
12
|
};
|
|
13
13
|
const ERROR_MESSAGES = {
|
|
14
14
|
AUTH_TOKEN_REQUIRED: 'Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
@@ -18,14 +18,12 @@ const ERROR_MESSAGES = {
|
|
|
18
18
|
};
|
|
19
19
|
export class TokenizePaymentMethod {
|
|
20
20
|
constructor() {
|
|
21
|
-
this.isLoading = false;
|
|
22
21
|
this.computedHideSubmitButton = false;
|
|
22
|
+
this.isLoading = false;
|
|
23
23
|
this.submitButtonText = 'Submit';
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.analytics = new JustifiAnalytics(this);
|
|
28
|
-
this.validateRequiredProps();
|
|
25
|
+
paymentMethodsChanged() {
|
|
26
|
+
this.setDefaultSelectedPaymentMethod();
|
|
29
27
|
}
|
|
30
28
|
connectedCallback() {
|
|
31
29
|
this.setDefaultSelectedPaymentMethod();
|
|
@@ -34,12 +32,17 @@ export class TokenizePaymentMethod {
|
|
|
34
32
|
disconnectedCallback() {
|
|
35
33
|
var _a;
|
|
36
34
|
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
35
|
+
if (this.unsubscribeFromStore) {
|
|
36
|
+
this.unsubscribeFromStore();
|
|
37
|
+
}
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
checkPkgVersion();
|
|
41
|
+
this.analytics = new JustifiAnalytics(this);
|
|
40
42
|
}
|
|
41
43
|
handleRadioClick(event) {
|
|
42
|
-
this.
|
|
44
|
+
this.selectedPaymentMethod = event.detail;
|
|
45
|
+
checkoutStore.selectedPaymentMethod = event.detail;
|
|
43
46
|
}
|
|
44
47
|
async fillBillingForm(fields) {
|
|
45
48
|
var _a;
|
|
@@ -47,6 +50,7 @@ export class TokenizePaymentMethod {
|
|
|
47
50
|
}
|
|
48
51
|
async tokenizePaymentMethod(event) {
|
|
49
52
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
53
|
+
this.validateRequiredProps();
|
|
50
54
|
this.isLoading = true;
|
|
51
55
|
try {
|
|
52
56
|
const validation = await this.validate();
|
|
@@ -89,11 +93,27 @@ export class TokenizePaymentMethod {
|
|
|
89
93
|
this.billingFormRef.validate(),
|
|
90
94
|
this.paymentMethodFormRef.validate(),
|
|
91
95
|
]);
|
|
92
|
-
|
|
96
|
+
const result = {
|
|
93
97
|
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
94
98
|
errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
|
|
95
99
|
};
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
async tokenize() {
|
|
103
|
+
try {
|
|
104
|
+
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
105
|
+
const config = {
|
|
106
|
+
clientId: this.authToken || checkoutStore.authToken,
|
|
107
|
+
account: this.accountId || checkoutStore.accountId,
|
|
108
|
+
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
109
|
+
};
|
|
110
|
+
return await this.paymentMethodFormRef.tokenize(config);
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
return error;
|
|
114
|
+
}
|
|
96
115
|
}
|
|
116
|
+
// 9. Local methods
|
|
97
117
|
validateRequiredProps() {
|
|
98
118
|
if (!this.authToken && !checkoutStore.authToken) {
|
|
99
119
|
this.emitError({
|
|
@@ -109,14 +129,14 @@ export class TokenizePaymentMethod {
|
|
|
109
129
|
}
|
|
110
130
|
}
|
|
111
131
|
setDefaultSelectedPaymentMethod() {
|
|
112
|
-
if (this.
|
|
132
|
+
if (this.selectedPaymentMethod) {
|
|
113
133
|
return;
|
|
114
134
|
}
|
|
115
135
|
if (!this.disableCreditCard) {
|
|
116
|
-
this.
|
|
136
|
+
this.selectedPaymentMethod = PAYMENT_METHODS.NEW_CARD;
|
|
117
137
|
}
|
|
118
138
|
else if (!this.disableBankAccount) {
|
|
119
|
-
this.
|
|
139
|
+
this.selectedPaymentMethod = PAYMENT_METHODS.NEW_BANK_ACCOUNT;
|
|
120
140
|
}
|
|
121
141
|
}
|
|
122
142
|
setComputedHideSubmitButton() {
|
|
@@ -143,10 +163,10 @@ export class TokenizePaymentMethod {
|
|
|
143
163
|
get availablePaymentMethods() {
|
|
144
164
|
const methods = [];
|
|
145
165
|
if (!this.disableCreditCard) {
|
|
146
|
-
methods.push(
|
|
166
|
+
methods.push(PAYMENT_METHODS.NEW_CARD);
|
|
147
167
|
}
|
|
148
168
|
if (!this.disableBankAccount) {
|
|
149
|
-
methods.push(
|
|
169
|
+
methods.push(PAYMENT_METHODS.NEW_BANK_ACCOUNT);
|
|
150
170
|
}
|
|
151
171
|
return methods;
|
|
152
172
|
}
|
|
@@ -182,7 +202,8 @@ export class TokenizePaymentMethod {
|
|
|
182
202
|
},
|
|
183
203
|
};
|
|
184
204
|
}
|
|
185
|
-
|
|
205
|
+
const result = await this.performTokenization();
|
|
206
|
+
return result;
|
|
186
207
|
}
|
|
187
208
|
catch (error) {
|
|
188
209
|
return { error };
|
|
@@ -200,20 +221,6 @@ export class TokenizePaymentMethod {
|
|
|
200
221
|
data: tokenizeResponseData,
|
|
201
222
|
};
|
|
202
223
|
}
|
|
203
|
-
async tokenize() {
|
|
204
|
-
try {
|
|
205
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
206
|
-
const config = {
|
|
207
|
-
clientId: this.authToken || checkoutStore.authToken,
|
|
208
|
-
account: this.accountId || checkoutStore.accountId,
|
|
209
|
-
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
210
|
-
};
|
|
211
|
-
return await this.paymentMethodFormRef.tokenize(config);
|
|
212
|
-
}
|
|
213
|
-
catch (error) {
|
|
214
|
-
return error;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
224
|
buildPaymentMethodMetadata(billingFormFieldValues) {
|
|
218
225
|
return this.shouldSavePaymentMethod
|
|
219
226
|
? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupID }) : Object.assign({}, billingFormFieldValues);
|
|
@@ -228,17 +235,17 @@ export class TokenizePaymentMethod {
|
|
|
228
235
|
return this.disableCreditCard || this.disableBankAccount;
|
|
229
236
|
}
|
|
230
237
|
renderPaymentMethodOption(paymentMethodType) {
|
|
231
|
-
const isSelected = this.
|
|
238
|
+
const isSelected = this.selectedPaymentMethod === paymentMethodType;
|
|
232
239
|
return (h("div", { class: "payment-method" }, h("justifi-radio-list-item", { name: "paymentMethodType", value: paymentMethodType, checked: isSelected, label: PAYMENT_METHOD_TYPE_LABELS[paymentMethodType], hidden: this.shouldHideRadioInput }), isSelected && this.renderSelectedPaymentMethodForm(paymentMethodType)));
|
|
233
240
|
}
|
|
234
241
|
renderSelectedPaymentMethodForm(paymentMethodId) {
|
|
235
242
|
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("div", { class: "mt-4" }, h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId })), h("div", { class: "mt-4" }, h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupID }))));
|
|
236
243
|
}
|
|
237
244
|
renderPaymentMethodForm(paymentMethodId) {
|
|
238
|
-
return paymentMethodId ===
|
|
245
|
+
return paymentMethodId === PAYMENT_METHODS.NEW_CARD ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
239
246
|
}
|
|
240
247
|
render() {
|
|
241
|
-
return (h(StyledHost, { key: '
|
|
248
|
+
return (h(StyledHost, { key: 'a11012d80460057b0dc16dc6a470ad57bad12ca2' }, h("form", { key: '76c8f50a5394f80b171295337a4382a4713d5ec1' }, h("fieldset", { key: '955f99016cb495628afe016037a154fcc39f5ac3' }, h("div", { key: 'a80324943093aa2df3804f5358fb904b5540d92c', class: "row gy-3" }, h("div", { key: 'b5fc2d063e2a859f52c4914ea669b35134d7d256', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'f2a759d16742c346bd7833c72916b2a058a1be34', class: "col-12" }, h("justifi-button", { key: 'ab6238aa25cc9dae2851b4156b7c2ac88802b4fd', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.computedHideSubmitButton })))))));
|
|
242
249
|
}
|
|
243
250
|
static get is() { return "justifi-tokenize-payment-method"; }
|
|
244
251
|
static get properties() {
|
|
@@ -419,9 +426,9 @@ export class TokenizePaymentMethod {
|
|
|
419
426
|
}
|
|
420
427
|
static get states() {
|
|
421
428
|
return {
|
|
429
|
+
"computedHideSubmitButton": {},
|
|
422
430
|
"isLoading": {},
|
|
423
|
-
"
|
|
424
|
-
"computedHideSubmitButton": {}
|
|
431
|
+
"selectedPaymentMethod": {}
|
|
425
432
|
};
|
|
426
433
|
}
|
|
427
434
|
static get events() {
|
|
@@ -552,6 +559,27 @@ export class TokenizePaymentMethod {
|
|
|
552
559
|
"text": "",
|
|
553
560
|
"tags": []
|
|
554
561
|
}
|
|
562
|
+
},
|
|
563
|
+
"tokenize": {
|
|
564
|
+
"complexType": {
|
|
565
|
+
"signature": "() => Promise<any>",
|
|
566
|
+
"parameters": [],
|
|
567
|
+
"references": {
|
|
568
|
+
"Promise": {
|
|
569
|
+
"location": "global",
|
|
570
|
+
"id": "global::Promise"
|
|
571
|
+
},
|
|
572
|
+
"TokenizeConfig": {
|
|
573
|
+
"location": "global",
|
|
574
|
+
"id": "global::TokenizeConfig"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"return": "Promise<any>"
|
|
578
|
+
},
|
|
579
|
+
"docs": {
|
|
580
|
+
"text": "",
|
|
581
|
+
"tags": []
|
|
582
|
+
}
|
|
555
583
|
}
|
|
556
584
|
};
|
|
557
585
|
}
|
|
@@ -6,22 +6,25 @@ const initialState = {
|
|
|
6
6
|
address_postal_code: '',
|
|
7
7
|
},
|
|
8
8
|
bnplEnabled: false,
|
|
9
|
+
insuranceEnabled: false,
|
|
9
10
|
bnplProviderApiVersion: '',
|
|
10
11
|
bnplProviderCheckoutUrl: '',
|
|
11
12
|
bnplProviderClientId: '',
|
|
12
13
|
bnplProviderMode: '',
|
|
13
14
|
checkoutId: '',
|
|
15
|
+
bankAccountVerification: undefined,
|
|
14
16
|
disableBankAccount: false,
|
|
15
17
|
disableBnpl: false,
|
|
16
18
|
disableCreditCard: false,
|
|
17
19
|
disablePaymentMethodGroup: false,
|
|
18
20
|
paymentAmount: 0,
|
|
21
|
+
paymentCurrency: 'USD',
|
|
19
22
|
paymentDescription: '',
|
|
20
23
|
paymentMethodGroupId: undefined,
|
|
21
24
|
paymentMethods: [],
|
|
22
25
|
paymentToken: undefined,
|
|
23
26
|
savePaymentMethod: false,
|
|
24
|
-
selectedPaymentMethod:
|
|
27
|
+
selectedPaymentMethod: undefined,
|
|
25
28
|
totalAmount: 0,
|
|
26
29
|
};
|
|
27
30
|
const { state: checkoutStore, onChange } = createStore(initialState);
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ApplePayButtonType, ApplePayButtonStyle } from "../api/ApplePay";
|
|
3
|
+
const ProcessingSpinner = () => (h("div", { class: 'processing-overlay' }, h("div", { class: 'spinner' }), h("span", null, "Processing...")));
|
|
4
|
+
export const ApplePayButton = (props) => {
|
|
5
|
+
const getApplePayButtonClass = () => {
|
|
6
|
+
let classes = "apple-pay-button";
|
|
7
|
+
switch (props.buttonStyle) {
|
|
8
|
+
case ApplePayButtonStyle.WHITE:
|
|
9
|
+
classes += " apple-pay-button-white";
|
|
10
|
+
break;
|
|
11
|
+
case ApplePayButtonStyle.WHITE_OUTLINE:
|
|
12
|
+
classes += " apple-pay-button-white-outline";
|
|
13
|
+
break;
|
|
14
|
+
case ApplePayButtonStyle.BLACK:
|
|
15
|
+
default:
|
|
16
|
+
classes += " apple-pay-button-black";
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
switch (props.buttonType) {
|
|
20
|
+
case ApplePayButtonType.BUY:
|
|
21
|
+
classes += " apple-pay-button-type-buy";
|
|
22
|
+
break;
|
|
23
|
+
case ApplePayButtonType.DONATE:
|
|
24
|
+
classes += " apple-pay-button-type-donate";
|
|
25
|
+
break;
|
|
26
|
+
case ApplePayButtonType.PLAIN:
|
|
27
|
+
default:
|
|
28
|
+
classes += " apple-pay-button-type-plain";
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
if (props.disabled || props.isProcessing || !props.isAvailable) {
|
|
32
|
+
classes += " disabled";
|
|
33
|
+
}
|
|
34
|
+
return classes;
|
|
35
|
+
};
|
|
36
|
+
const getButtonStyles = () => {
|
|
37
|
+
return {
|
|
38
|
+
width: props.width || "200px",
|
|
39
|
+
height: props.height || "48px",
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
const handleClick = () => {
|
|
43
|
+
if (!props.disabled &&
|
|
44
|
+
!props.isProcessing &&
|
|
45
|
+
props.isAvailable &&
|
|
46
|
+
props.clickHandler) {
|
|
47
|
+
props.clickHandler();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return (h("div", { class: 'apple-pay-button-container' }, h("button", Object.assign({ class: getApplePayButtonClass(), style: getButtonStyles(), onClick: handleClick, disabled: props.disabled || props.isProcessing || !props.isAvailable, "aria-label": 'Pay with Apple Pay', type: 'button' }, props), props.isProcessing && ProcessingSpinner()), h("style", null, `
|
|
51
|
+
.apple-pay-button-container {
|
|
52
|
+
display: inline-block;
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Apple Pay CSS classes - these are the official Apple Pay button styles */
|
|
57
|
+
.apple-pay-button {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
-webkit-appearance: -apple-pay-button;
|
|
60
|
+
-apple-pay-button-type: plain; /* default */
|
|
61
|
+
-apple-pay-button-style: black; /* default */
|
|
62
|
+
border-radius: 8px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
border: none;
|
|
65
|
+
outline: none;
|
|
66
|
+
transition: opacity 0.2s ease;
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Button styles */
|
|
71
|
+
.apple-pay-button.apple-pay-button-black {
|
|
72
|
+
-apple-pay-button-style: black;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.apple-pay-button.apple-pay-button-white {
|
|
76
|
+
-apple-pay-button-style: white;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.apple-pay-button.apple-pay-button-white-outline {
|
|
80
|
+
-apple-pay-button-style: white-outline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Button types */
|
|
84
|
+
.apple-pay-button.apple-pay-button-type-plain {
|
|
85
|
+
-apple-pay-button-type: plain;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.apple-pay-button.apple-pay-button-type-buy {
|
|
89
|
+
-apple-pay-button-type: buy;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.apple-pay-button.apple-pay-button-type-donate {
|
|
93
|
+
-apple-pay-button-type: donate;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Hover and disabled states */
|
|
97
|
+
.apple-pay-button:hover:not(.disabled) {
|
|
98
|
+
opacity: 0.9;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.apple-pay-button.disabled {
|
|
102
|
+
opacity: 0.5;
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Processing overlay */
|
|
107
|
+
.processing-overlay {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
right: 0;
|
|
112
|
+
bottom: 0;
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
gap: 8px;
|
|
117
|
+
background: rgba(0, 0, 0, 0.8);
|
|
118
|
+
color: white;
|
|
119
|
+
border-radius: 8px;
|
|
120
|
+
font-size: 14px;
|
|
121
|
+
font-weight: 500;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.spinner {
|
|
125
|
+
width: 16px;
|
|
126
|
+
height: 16px;
|
|
127
|
+
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
128
|
+
border-top: 2px solid #fff;
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
animation: spin 1s linear infinite;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes spin {
|
|
134
|
+
0% { transform: rotate(0deg); }
|
|
135
|
+
100% { transform: rotate(360deg); }
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Responsive design */
|
|
139
|
+
@media (max-width: 480px) {
|
|
140
|
+
.apple-pay-button {
|
|
141
|
+
width: 100% !important;
|
|
142
|
+
min-width: 200px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`)));
|
|
146
|
+
};
|
|
@@ -80,7 +80,7 @@ export class CustomPopper {
|
|
|
80
80
|
this.hideEvent.emit();
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '8bfc9503d439750dac5b1d7bf57b52a679342203' }, h("style", { key: 'c9b621af52af23eca1b31d212d212e9e1851efb4' }, `
|
|
84
84
|
.popper-content {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ export class CustomPopper {
|
|
|
88
88
|
display: block;
|
|
89
89
|
z-index: 1030;
|
|
90
90
|
}
|
|
91
|
-
`), h("div", { key: '
|
|
91
|
+
`), h("div", { key: '278b302602f6694c3d8897a11caffe8053396e14', class: "popper-content", ref: (el) => this.popperContentRef = el }, h("slot", { key: '512ccb791eaddb6d215f15257c4b09e0aad009c8' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "custom-popper"; }
|
|
94
94
|
static get properties() {
|
|
@@ -31,10 +31,10 @@ export class CheckboxInput {
|
|
|
31
31
|
return inputCheckbox;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '128a949dbbbf194f13552ec2b6d9cc47e643459a' }, h("div", { key: '24fdfab17ddc656c7ed4ce4a26298bb3312b84b5', class: 'form-group d-flex flex-column' }, h("div", { key: 'd66bc9dd8ec3018e934d4279cfc78073e1529ddb', class: "form-check" }, h("input", { key: '754d00dbfa79b34ba919d12ecaf6f69114c92a37', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
35
35
|
this.isFocused = false;
|
|
36
36
|
this.formControlBlur.emit();
|
|
37
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
37
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '07928f06ba16f3871948610d8c043de985cb9810', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '83976d5d65b37aa34e41879f0db3347a8902b7d7', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '3a4e23a3e9f174d51683518608e2568e0edc72e2', errorText: this.errorText, name: this.name }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "form-control-checkbox"; }
|
|
40
40
|
static get properties() {
|
|
@@ -42,10 +42,10 @@ export class DateInput {
|
|
|
42
42
|
return part;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'a309446013bd49b83f2cd63ddde74595b4ad94b5' }, h("div", { key: 'f29f5561099a85767d3a95411d9234e45ce2abf6', class: "form-group d-flex flex-column" }, h("div", { key: 'd0406aa96a962e26053e9495c5be6bef8ce10a49', class: "d-flex gap-2" }, h("label", { key: '72c5d168b03c79083a93481417b5361d4b4acec4', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '2954e61b39260bf40d2190ed0d6d0c0a4d2fbec1', helpText: this.helpText })), h("input", { key: 'bf82716d44ce3a96cf70c8be2b349d598839e39d', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
48
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '1c6036c4ea8ebd3303af2400eb0c0884329a7b33', errorText: this.errorText, name: this.name }))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "form-control-date"; }
|
|
51
51
|
static get properties() {
|
|
@@ -2,7 +2,7 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import { FormControlErrorText } from "./form-helpers/form-control-error-text";
|
|
3
3
|
export class FileInput {
|
|
4
4
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
5
|
+
return (h(Host, { key: 'e4b695469afbe84e1fc03b9f8dab55cc86dee32a', exportparts: "label,input,input-invalid" }, h("div", { key: '7f8ed80d7c8ffb10955c3aa0298011936ee662cb', class: "form-group d-flex flex-column" }, h("div", { key: '517ee3552d3ba2c9096961fa152580ad2768cf9f', class: "d-flex align-items-start gap-2" }, h("label", { key: '204bea2b6abdde9110e7fc2de5488b9647e83a98', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'f6c23190a77e997af1433f211a2bf45892a4072e', helpText: this.helpText })), h("input", { key: '666d761e0a0bb7bedef337b9f07641cb4d6dd566', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'a09cb5b92539c22a53f469fd99a40d85680135ba', errorText: this.errorText, name: this.name }))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "form-control-file-v2"; }
|
|
8
8
|
static get properties() {
|
|
@@ -37,10 +37,10 @@ export class FileInput {
|
|
|
37
37
|
return part;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '028fa0490ce436410bf0aea234e92c171bf93b25' }, h("div", { key: '22d1cf8dd7d5731c8bb4469ecb788afef0a8ec6a', class: "form-group d-flex flex-column" }, h("div", { key: '9fe0d7827e5f18b8bec4894aa29f7a9e08e2e139', class: "d-flex align-items-start gap-2" }, h("label", { key: 'ddc0da46940544d5bcf12304f89f6bebc800e457', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '63cdd224e5075ee49a8795dd0d658c3b218db767', helpText: this.helpText })), h("input", { key: '3cb815fa320b991f7089452bd94e910c3ce910ea', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
41
41
|
this.isFocused = false;
|
|
42
42
|
this.formControlBlur.emit();
|
|
43
|
-
} }), h(FormControlErrorText, { key: '
|
|
43
|
+
} }), h(FormControlErrorText, { key: '03f60fc9c2d42f987b951947f5b189eff623641b', errorText: this.errorText, name: this.name }))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "form-control-file"; }
|
|
46
46
|
static get properties() {
|
|
@@ -42,10 +42,10 @@ export class MonetaryInput {
|
|
|
42
42
|
return input;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '522db34cb5be7d1200ab8ce3864c846d91f278dc' }, h("div", { key: 'b2d5b5515eb51843042f511c1ce64a00222aa24c', class: "form-group d-flex flex-column" }, h("label", { key: 'ebba4dc6aa72cbda1656b7c0b846b776555748d4', part: label, class: "form-label", htmlFor: this.name }, this.label), h(FormControlHelpText, { key: 'ed37818c0151b760e29e4d21b5344f71b67c516a', name: this.name, helpText: this.helpText }), h("div", { key: 'c1273d4fd5f52e0c6d32a61b600a99d6820b8c84', class: "input-group" }, h("span", { key: 'fa8e479fc0af0ae94e45d881907ebbc4eefead70', class: "input-group-text", part: inputAdornment }, "$"), h("input", { key: '2347defbce5f2787bb39002096ea67543aa0c474', ref: el => this.formControl = el, id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
46
46
|
this.isFocused = false;
|
|
47
47
|
this.formControlBlur.emit();
|
|
48
|
-
}, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '
|
|
48
|
+
}, onInput: (event) => this.updateInput(event.target.value), onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.inputPart, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled })), h(FormControlErrorText, { key: '067197d8c0167d36f6dc3f5ef73d58d2dd7a5fda', errorText: this.errorText, name: this.name }))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "form-control-monetary"; }
|
|
51
51
|
static get properties() {
|
|
@@ -61,10 +61,10 @@ export class NumberInputMasked {
|
|
|
61
61
|
return input;
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '7390ff05013c1007f32c9860259288a02ff1c52e' }, h("div", { key: 'c082f20b7fd2adbf45f317ab213b93ebc788e5e4', class: "form-group d-flex flex-column" }, h("div", { key: '8fe10be0c3c9ee6331d29342468a725d3b2767e0', class: "d-flex align-items-start gap-2" }, h("label", { key: 'de1e1a2c32de0153cdb803eb4d653c0934aeb19c', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '3421ae7e1b2b78cbcfc79281bf971c12b2eba0c7', helpText: this.helpText })), h("input", { key: 'f8e8be44c384dd6f3affdbbf948837ec77ec6ba4', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
65
65
|
this.isFocused = false;
|
|
66
66
|
this.formControlBlur.emit();
|
|
67
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
67
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'e44994a8c4409e4580216b1dbb0c448e1f0679d6', errorText: this.errorText, name: this.name }))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "form-control-number-masked"; }
|
|
70
70
|
static get properties() {
|
|
@@ -36,10 +36,10 @@ export class NumberInput {
|
|
|
36
36
|
return input;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '9ba1b402f0d760fcf5f1a258db29559127d8eb39' }, h("div", { key: '994f5896a8791dea3fe4ebbbe98778edd9406c92', class: 'form-group d-flex flex-column' }, h("label", { key: '1b9a7b572e01fb4c5ee8bc037e2877a3782f8021', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '990735a9b1f835c4110d283bfaed4e6bf080a866', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
40
40
|
this.isFocused = false;
|
|
41
41
|
this.formControlBlur.emit();
|
|
42
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '
|
|
42
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '2f99538e9541d9d3fb43fa171af23edad97667de', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '6756fb24fbb631bf925b470f555365e33f15c4a7', errorText: this.errorText, name: this.name }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "form-control-number"; }
|
|
45
45
|
static get properties() {
|
|
@@ -26,10 +26,10 @@ export class RadioInput {
|
|
|
26
26
|
return inputRadio;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'c22f0df594e14c5095be415fe80df4ecae7aa6b4', class: 'form-group d-flex flex-column' }, h("div", { key: 'dc2f63fa23042176825ab3b0617419f3445da972', class: "form-check" }, h("input", { key: '48fe6f95a43e90393bace948455ab87f83a5bb51', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
30
30
|
this.isFocused = false;
|
|
31
31
|
this.formControlBlur.emit();
|
|
32
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
32
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '501ca93d655605a6b2f16d2598a6e601315de97f', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: '711f8f1eec58731d7925ef8fe0912dcd37542bbe', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: 'a62e4bbcf9c5faae63f17c49f5fc2c431395cbe9', errorText: this.errorText, name: this.name })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "form-control-radio"; }
|
|
35
35
|
static get properties() {
|
|
@@ -35,10 +35,10 @@ export class SelectInput {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
var _a;
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '9842d5b2a2069292ded1b960bc024d7995a6d58e' }, h("div", { key: 'b4b5fe37f88661d2f592864adb16ae997a38b484', class: "form-group d-flex flex-column" }, h("div", { key: 'f70c40c7e4bdd58b985ac9b6e76fbf48ff15261e', class: "d-flex align-items-start gap-2" }, h("label", { key: '6b1d9e1f3b22e702962c1d23a057f08222af5e1a', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'fae7835adde280a8c4f48f3c9b169240aac3672d', helpText: this.helpText })), h("select", { key: 'bee75d1bb56ed104473efcad7d8c432b50bfbb38', ref: el => (this.selectElement = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
39
39
|
this.isFocused = false;
|
|
40
40
|
this.formControlBlur.emit();
|
|
41
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '
|
|
41
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: 'f5df46552aa8124b344260bca05bd02c695d0fe6', errorText: this.errorText, name: this.name }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "form-control-select"; }
|
|
44
44
|
static get properties() {
|
|
@@ -36,10 +36,10 @@ export class TextInput {
|
|
|
36
36
|
return input;
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'a8372f03c84409f2cd36b67d11aa3f1c6ade5230' }, h("div", { key: '6e00089d666df5be04bdcfbef7f163c4ae6b567a', class: "form-group d-flex flex-column" }, h("div", { key: '2d243bb04b2276757b44903719991aabefa13254', class: "d-flex align-items-start gap-2" }, h("label", { key: '98ba977b38ef706a7fd9089db13879c24d5e1480', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '500d46e1bdc581989fc1c3c0a79b67b3458ce980', helpText: this.helpText })), h("input", { key: 'c3efaf9b7b2fd6a42fcb76756775a1c58e2c61df', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
40
40
|
this.isFocused = false;
|
|
41
41
|
this.formControlBlur.emit();
|
|
42
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
42
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '2aff3e8ef0fbfd37e2add41f9aad3891d62bd9bc', errorText: this.errorText, name: this.name }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "form-control-text"; }
|
|
45
45
|
static get properties() {
|
|
@@ -38,10 +38,10 @@ export class TextInput {
|
|
|
38
38
|
return input;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '24c71b939da77ef7235f9c6d76dafa3646f03185' }, h("div", { key: '2c377064ecedf1de8761cadf857d855ea81f98e1', class: "form-group d-flex flex-column" }, h("label", { key: '57626622619247902a6a80dfb8aa9a26d4958b0f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("textarea", { key: '4f1e9a912e6b0a250c785a74982f322b83990c6d', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
42
42
|
this.isFocused = false;
|
|
43
43
|
this.formControlBlur.emit();
|
|
44
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '
|
|
44
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: 'a2adeb24bd1576fe48651193e44965f39b8958ae', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '76867a846f4b3e38ea768fbfd185ee9ce28bb4eb', errorText: this.errorText, name: this.name }))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "form-control-textarea"; }
|
|
47
47
|
static get properties() {
|
|
@@ -73,7 +73,7 @@ export class HiddenInput {
|
|
|
73
73
|
return input;
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '371bbf07abe040e607c3f2a548204193702b868c' }, h("input", { key: '05ab53862e84dd10ec59b7b77df8480b4e16a41f', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "hidden-input"; }
|
|
79
79
|
static get states() {
|
|
@@ -77,10 +77,10 @@ export class IframeInput {
|
|
|
77
77
|
return params;
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'd77a2d0b61928a0194ee7662fd6a16d47666c304', class: "form-group d-flex flex-column" }, h("div", { key: 'a34d32b6497924fadef2dba7beec4e99233645ed', style: {
|
|
81
81
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
82
82
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
83
|
-
} }, h("label", { key: '
|
|
83
|
+
} }, h("label", { key: 'fe606e175435571ba5a5617abe36468e4627dcc0', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: 'e3355a4ad2960fc6b3fc9ad46092e570ed7b4397', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: '83d0ab3c20019a33dc7d72b0378ccf95eb77e95f', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
|
|
84
84
|
this.iframeElement = el;
|
|
85
85
|
this.initializeFrameCommunicationService();
|
|
86
86
|
}, width: "100%", onLoad: () => {
|
|
@@ -90,7 +90,7 @@ export class IframeInput {
|
|
|
90
90
|
this.iframeLoaded.emit();
|
|
91
91
|
}
|
|
92
92
|
}, this.iframeElement);
|
|
93
|
-
} })), h(FormControlErrorText, { key: '
|
|
93
|
+
} })), h(FormControlErrorText, { key: 'e8bf25dfe4ad6296e3a64132559c7ccce632b12a', errorText: this.errorText, name: this.inputId }))));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "iframe-input"; }
|
|
96
96
|
static get properties() {
|