@justifi/webcomponents 5.7.6-rc-02 → 5.7.6-rc-03
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-c8NBCwu4.js → Api-eP0XeJLd.js} +1 -1
- package/dist/cjs/{Refund-Dt1CMUjx.js → Refund-08OcZkXX.js} +148 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-W2PRAU9J.js → business.service-CZrK48lv.js} +2 -3
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DmONJMn1.js → check-pkg-version-DBocF2eE.js} +3 -4
- package/dist/cjs/{checkout.service-XwOh98gt.js → checkout.service-CllLA9W6.js} +2 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{checkouts-table-CrpOOe_e.js → checkouts-table-Cp7rNkNd.js} +1 -1
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/dinero-J-SRFKIR.js +1673 -0
- package/dist/cjs/{dispute.service-Dh82Wru1.js → dispute.service-Chptj-DX.js} +2 -3
- package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +4 -3
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
- package/dist/cjs/{get-payment-details-W4PgTPkL.js → get-payment-details-C3qBZVdv.js} +3 -4
- package/dist/cjs/{get-subaccounts-D4woaGSs.js → get-subaccounts-DKyvT-ZF.js} +3 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
- package/dist/cjs/header-2-BXQLJn1q.js +10 -0
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/{insurance-state-BsGy_svD.js → insurance-state-kH0kuTD8.js} +3 -10
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +3 -3
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +14 -14
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/{justifi-bank-account-form_5.cjs.entry.js → justifi-bank-account-form_7.cjs.entry.js} +59 -17
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +49 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-button_5.cjs.entry.js → justifi-checkout-summary_5.cjs.entry.js} +126 -45
- package/dist/cjs/justifi-checkout.cjs.entry.js +12 -12
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +11 -11
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +5 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +188 -32
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-oywezDpy.js → package-BM2FCIB8.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
- package/dist/cjs/{payment-method-option-utils-imuSE7KV.js → payment-method-option-utils-QODgEWhU.js} +1 -11
- package/dist/cjs/{payment.service-BrvtS3F7.js → payment.service-C6kdaQYS.js} +2 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{payments-table-BqxFc71K.js → payments-table-DaW6SvdL.js} +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
- package/dist/cjs/{payout.service-DNH6gRrP.js → payout.service-CLnAr59x.js} +2 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{payouts-table-iT2IauEa.js → payouts-table-D5hMHcaY.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminal-orders-table-xi_a-EnM.js → terminal-orders-table-DTZUpjkG.js} +2 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CdzmTRQE.js → terminal.service-CcBCXxNm.js} +2 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminals-table-sf-s5v6D.js → terminals-table-DOqVeHM1.js} +1 -1
- package/dist/cjs/{utils-qOon0GWm.js → utils-DqlrBltg.js} +2 -1676
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -2
- 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 +10 -37
- 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/payment-method-option-utils.js +0 -1
- 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 +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +8 -1
- 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 +36 -5
- 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 +5 -4
- 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 +273 -89
- 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 +1 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +155 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +729 -1328
- package/dist/esm/{Api-C3T8XYbb.js → Api-BCeKXDaf.js} +1 -1
- package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
- package/dist/esm/{Refund-0aZtuMmz.js → Refund-DBHZkemk.js} +148 -2
- package/dist/esm/additional-questions-details_5.entry.js +4 -3
- package/dist/esm/{badge-Dr7gkD2I.js → badge-BrapPg3R.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-C5vrjgZf.js → business.service-BPBxsb8B.js} +3 -4
- package/dist/esm/{button-xfPDSpPt.js → button-BB-N4vit.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-DqhSXPRt.js → check-pkg-version-Cic-MeLf.js} +4 -5
- package/dist/esm/{checkout.service-CW2_CEte.js → checkout.service-C1WAmUiU.js} +3 -4
- package/dist/esm/checkouts-list-core.entry.js +10 -10
- package/dist/esm/{checkouts-table-BHhaS5bv.js → checkouts-table-COpCngi0.js} +3 -3
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/dinero-DizZAUMY.js +1671 -0
- package/dist/esm/{dispute.service-C3bmfjsZ.js → dispute.service-bQh-LG0z.js} +3 -4
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-Cn0aPzHx.js → form-control-error-text-Bk3yfpFX.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-C91TeHXs.js → form-control-help-text-mOLCXs00.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
- package/dist/esm/form-control-monetary.entry.js +7 -6
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +6 -6
- package/dist/esm/{get-payment-details-BdPvFl1W.js → get-payment-details-B193kh7P.js} +3 -4
- package/dist/esm/{get-subaccounts-BqqR44dV.js → get-subaccounts-DcgISPei.js} +4 -5
- package/dist/esm/gross-payment-chart-core.entry.js +6 -5
- package/dist/esm/{header-1-noRVFQY9.js → header-1-DYuf6mkF.js} +1 -1
- package/dist/esm/header-2-C4ZCdZwi.js +8 -0
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-pL8MRpxn.js → insurance-state-DeyYNyas.js} +1 -7
- 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 +17 -17
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/{justifi-bank-account-form_5.entry.js → justifi-bank-account-form_7.entry.js} +60 -20
- package/dist/esm/justifi-billing-form_2.entry.js +46 -0
- package/dist/esm/justifi-business-details.entry.js +10 -10
- package/dist/esm/justifi-business-form.entry.js +12 -12
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/{justifi-button_5.entry.js → justifi-checkout-summary_5.entry.js} +127 -46
- package/dist/esm/justifi-checkout.entry.js +9 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +13 -13
- package/dist/esm/justifi-details.entry.js +2 -2
- 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 +14 -14
- package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
- package/dist/esm/justifi-order-terminals.entry.js +12 -12
- package/dist/esm/justifi-owner-form_3.entry.js +11 -11
- package/dist/esm/justifi-payment-details.entry.js +11 -11
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
- package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
- package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
- package/dist/esm/justifi-payments-list.entry.js +13 -13
- package/dist/esm/justifi-payout-details.entry.js +10 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
- package/dist/esm/justifi-payouts-list.entry.js +14 -14
- package/dist/esm/justifi-refund-payment.entry.js +12 -12
- package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminals-list.entry.js +13 -13
- package/dist/esm/justifi-tokenize-payment-method.entry.js +190 -34
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DR0dQ8Fv.js → package-BRJ4FIJH.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-D3G5aVLy.js → parts-CKg_luIy.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +15 -14
- package/dist/esm/{payment-method-option-utils-8n_ALxec.js → payment-method-option-utils-zFDtQrgQ.js} +2 -10
- package/dist/esm/{payment.service-CnQdP32J.js → payment.service-BTVtIbcY.js} +3 -4
- package/dist/esm/payments-list-core.entry.js +11 -11
- package/dist/esm/{payments-status-DUM0WZkk.js → payments-status-CawBLR48.js} +1 -1
- package/dist/esm/{payments-table-DVQzx7MJ.js → payments-table-WQAD1CSz.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +11 -10
- package/dist/esm/{payout.service-EJuPNpfs.js → payout.service-j8w34GsW.js} +3 -4
- package/dist/esm/payouts-list-core.entry.js +11 -11
- package/dist/esm/{payouts-status-7saoFNoA.js → payouts-status-DB_PJap6.js} +1 -1
- package/dist/esm/{payouts-table-dca-F2iQ.js → payouts-table-DRISll8u.js} +3 -3
- package/dist/esm/{skeleton-C1-JoGFC.js → skeleton-D1Z4a8af.js} +1 -1
- package/dist/esm/{spinner-Ca9uu5Nd.js → spinner-BlffecO5.js} +1 -1
- package/dist/esm/{table-fsCYq8m9.js → table-BqxKVRry.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +10 -10
- package/dist/esm/{terminal-orders-table-BNasCnjz.js → terminal-orders-table-BWf9quiN.js} +5 -6
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Cfacmeto.js → terminal.service-BDRGcUj-.js} +3 -4
- package/dist/esm/terminals-list-core.entry.js +10 -10
- package/dist/esm/{terminals-table-DBk-eg_3.js → terminals-table-BBPQRWja.js} +3 -3
- package/dist/esm/{utils-BjLkBMLe.js → utils-Cu5hITuT.js} +2 -1675
- package/dist/esm/{utils-CNwvOLkk.js → utils-sZ_6zOKQ.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +0 -1
- package/dist/module/Refund.js +202 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-document-inputs.js +2 -3
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account.js +3 -2
- package/dist/module/billing-form.js +20 -57
- package/dist/module/billing-information-form.js +10 -3
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +2 -3
- package/dist/module/business-bank-account-form-step.js +2 -3
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-details-core2.js +1 -0
- package/dist/module/business-documents-on-file2.js +2 -1
- package/dist/module/business-owners-form-step-core.js +1 -0
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +3 -2
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkouts-list-core2.js +5 -4
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dinero.js +1671 -0
- package/dist/module/dispute-management-core.js +2 -2
- package/dist/module/dispute-notification.js +2 -1
- package/dist/module/dispute-response-actions.js +0 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +4 -3
- package/dist/module/form-control-date2.js +3 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -2
- package/dist/module/form-control-monetary-provisioning2.js +4 -3
- package/dist/module/form-control-monetary2.js +4 -3
- package/dist/module/form-control-number-masked2.js +3 -2
- package/dist/module/form-control-number.js +4 -3
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -2
- package/dist/module/form-control-text2.js +3 -2
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/get-payment-details.js +2 -3
- package/dist/module/get-subaccounts.js +1 -2
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +3 -2
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-checkouts-list.js +4 -4
- package/dist/module/justifi-dispute-management.js +2 -3
- package/dist/module/justifi-gross-payment-chart.js +0 -1
- package/dist/module/justifi-header2.js +7 -3
- package/dist/module/justifi-order-terminals.js +5 -4
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payment-transactions-list.js +6 -5
- package/dist/module/justifi-payments-list-filters.js +4 -3
- package/dist/module/justifi-payments-list.js +4 -4
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payout-transactions-list.js +6 -5
- package/dist/module/justifi-payouts-list-filters.js +4 -3
- package/dist/module/justifi-payouts-list.js +4 -4
- package/dist/module/justifi-radio-list-item.d.ts +11 -0
- package/dist/module/justifi-radio-list-item.js +6 -0
- package/dist/module/justifi-radio-list-item2.js +55 -0
- package/dist/module/justifi-refund-payment.js +2 -2
- package/dist/module/justifi-saved-payment-method.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +5 -5
- package/dist/module/justifi-terminal-orders-list.js +4 -4
- package/dist/module/justifi-terminals-list-filters.js +4 -4
- package/dist/module/justifi-terminals-list.js +4 -4
- package/dist/module/justifi-tokenize-payment-method.js +285 -47
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +1 -1
- package/dist/module/modular-checkout.js +9 -3
- package/dist/module/owner-form-core2.js +3 -2
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +10 -9
- package/dist/module/payment-method-option-utils.js +2 -10
- package/dist/module/payment-method-option2.js +3 -2
- package/dist/module/payment-provisioning-core.js +2 -1
- package/dist/module/payment-provisioning-form-buttons.js +2 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/payment-provisioning-loading.js +1 -0
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +5 -4
- package/dist/module/payout-details-core2.js +5 -4
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +5 -4
- package/dist/module/postal-code-form.js +4 -2
- 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 +2 -1
- package/dist/module/saved-payment-methods.js +2 -1
- package/dist/module/season-interruption-insurance-core.js +2 -1
- package/dist/module/sezzle-payment-method.js +2 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/spinner.js +1 -1
- package/dist/module/summary.js +2 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +6 -5
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +5 -4
- package/dist/module/utils2.js +2 -1675
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +3 -9
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +2 -0
- package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +1 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +37 -14
- package/dist/types/components.d.ts +68 -112
- package/dist/types/ui-components/index.d.ts +1 -0
- package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
- package/dist/webcomponents/p-072d93c9.entry.js +1 -0
- package/dist/webcomponents/{p-ae00a6f3.entry.js → p-0dcc215b.entry.js} +1 -1
- package/dist/webcomponents/p-0e6797c4.entry.js +1 -0
- package/dist/webcomponents/p-0fc026aa.entry.js +1 -0
- package/dist/webcomponents/p-18aa8190.entry.js +1 -0
- package/dist/webcomponents/{p-7c63d61d.entry.js → p-19c07145.entry.js} +1 -1
- package/dist/webcomponents/p-1Or21UzV.js +1 -0
- package/dist/webcomponents/{p-50bfec55.entry.js → p-1b7b7210.entry.js} +1 -1
- package/dist/webcomponents/p-1f76ae29.entry.js +1 -0
- package/dist/webcomponents/p-20eb7015.entry.js +1 -0
- package/dist/webcomponents/{p-0e4e662b.entry.js → p-2437703b.entry.js} +1 -1
- package/dist/webcomponents/{p-a95741ee.entry.js → p-24f30623.entry.js} +1 -1
- package/dist/webcomponents/p-2a5ac7c9.entry.js +1 -0
- package/dist/webcomponents/p-2abae807.entry.js +1 -0
- package/dist/webcomponents/{p-2f482f5b.entry.js → p-351ffd2a.entry.js} +1 -1
- package/dist/webcomponents/p-35411771.entry.js +1 -0
- package/dist/webcomponents/{p-05c604d2.entry.js → p-366dba79.entry.js} +1 -1
- package/dist/webcomponents/p-3add112c.entry.js +1 -0
- package/dist/webcomponents/p-48e406f1.entry.js +1 -0
- package/dist/webcomponents/p-4d0373a7.entry.js +1 -0
- package/dist/webcomponents/p-55iuf7iW.js +1 -0
- package/dist/webcomponents/p-5cb87816.entry.js +1 -0
- package/dist/webcomponents/p-628cf20a.entry.js +1 -0
- package/dist/webcomponents/p-66422cbd.entry.js +1 -0
- package/dist/webcomponents/p-6f397c80.entry.js +1 -0
- package/dist/webcomponents/p-7929bdae.entry.js +1 -0
- package/dist/webcomponents/{p-30d3d0cd.entry.js → p-7a52bdb5.entry.js} +1 -1
- package/dist/webcomponents/p-7e24a1f7.entry.js +1 -0
- package/dist/webcomponents/p-8027e13f.entry.js +1 -0
- package/dist/webcomponents/p-86b166eb.entry.js +1 -0
- package/dist/webcomponents/p-889e8be8.entry.js +1 -0
- package/dist/webcomponents/p-8a1171de.entry.js +1 -0
- package/dist/webcomponents/{p-0890869b.entry.js → p-8aefc49f.entry.js} +4 -4
- package/dist/webcomponents/p-8b2f81b4.entry.js +1 -0
- package/dist/webcomponents/p-97429fb4.entry.js +1 -0
- package/dist/webcomponents/{p-a27405fb.entry.js → p-98b6943a.entry.js} +1 -1
- package/dist/webcomponents/{p-5d145701.entry.js → p-9bf095d2.entry.js} +1 -1
- package/dist/webcomponents/p-9c1e3fb8.entry.js +1 -0
- package/dist/webcomponents/{p-Dh6FEdp8.js → p-AbSg_vYv.js} +1 -1
- package/dist/webcomponents/p-B2uBb14Y.js +1 -0
- package/dist/webcomponents/p-BF51n3KG.js +1 -0
- package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
- package/dist/webcomponents/p-BJuv5Y2i.js +1 -0
- package/dist/webcomponents/p-BQLEjYfZ.js +1 -0
- package/dist/webcomponents/p-BRJ4FIJH.js +1 -0
- package/dist/webcomponents/p-BeNhCG1Q.js +1 -0
- package/dist/webcomponents/{p-BqK0rIZQ.js → p-BfEOvp9h.js} +1 -1
- package/dist/webcomponents/p-ButA5T4e.js +1 -0
- package/dist/webcomponents/p-C3e-DgwK.js +1 -0
- package/dist/webcomponents/{p-DAVX1-sW.js → p-CDIPkflV.js} +1 -1
- package/dist/webcomponents/{p-D3G5aVLy.js → p-CKg_luIy.js} +1 -1
- package/dist/webcomponents/{p-DDpc1huF.js → p-Ce8QXyUM.js} +1 -1
- package/dist/webcomponents/p-ChzWF0s3.js +1 -0
- package/dist/webcomponents/p-CjAMuB2J.js +1 -0
- package/dist/webcomponents/p-ClSZshaa.js +1 -0
- package/dist/webcomponents/{p-DAoffYFW.js → p-D0I-tRSs.js} +1 -1
- package/dist/webcomponents/p-D0Ko1H7J.js +1 -0
- package/dist/webcomponents/p-DC63XVwu.js +1 -0
- package/dist/webcomponents/p-DPfZxsq9.js +1 -0
- package/dist/webcomponents/{p-DHvfrLVU.js → p-DPnS0F0Y.js} +1 -1
- package/dist/webcomponents/p-DR0bMp9p.js +1 -0
- package/dist/webcomponents/p-DZR542ci.js +1 -0
- package/dist/webcomponents/p-Dn0KGDtq.js +1 -0
- package/dist/webcomponents/p-DniBAXrh.js +1 -0
- package/dist/webcomponents/{p-1adN6FVa.js → p-DpUqxsf5.js} +1 -1
- package/dist/webcomponents/p-DxEnw2tJ.js +1 -0
- package/dist/webcomponents/{p-fUv1jFAw.js → p-EAEmpCru.js} +1 -1
- package/dist/webcomponents/p-Ph6Ebeu2.js +1 -0
- package/dist/webcomponents/p-RXUoM7A2.js +1 -0
- package/dist/webcomponents/{p-683630d0.entry.js → p-a1c7c873.entry.js} +1 -1
- package/dist/webcomponents/{p-64a46b8a.entry.js → p-a95db9a6.entry.js} +1 -1
- package/dist/webcomponents/{p-ac538ffd.entry.js → p-a9ed792e.entry.js} +1 -1
- package/dist/webcomponents/p-acf4c099.entry.js +1 -0
- package/dist/webcomponents/p-b47000f7.entry.js +1 -0
- package/dist/webcomponents/{p-cb7c712f.entry.js → p-b860ec37.entry.js} +1 -1
- package/dist/webcomponents/p-b893d5fa.entry.js +1 -0
- package/dist/webcomponents/p-b9d1d9dd.entry.js +1 -0
- package/dist/webcomponents/p-baa04544.entry.js +1 -0
- package/dist/webcomponents/{p-1bddf354.entry.js → p-bbd0aa4e.entry.js} +1 -1
- package/dist/webcomponents/p-bf2ba40d.entry.js +1 -0
- package/dist/webcomponents/p-c06bd8ea.entry.js +1 -0
- package/dist/webcomponents/p-c0955693.entry.js +1 -0
- package/dist/webcomponents/{p-7d2de2d4.entry.js → p-c0bd6405.entry.js} +1 -1
- package/dist/webcomponents/p-c6473b9b.entry.js +1 -0
- package/dist/webcomponents/p-c70dc6bd.entry.js +1 -0
- package/dist/webcomponents/p-ca6d05f9.entry.js +1 -0
- package/dist/webcomponents/p-d1c1c642.entry.js +1 -0
- package/dist/webcomponents/p-d3c966f4.entry.js +1 -0
- package/dist/webcomponents/{p-f5d12ae3.entry.js → p-d49b80b1.entry.js} +1 -1
- package/dist/webcomponents/p-d69d09e6.entry.js +1 -0
- package/dist/webcomponents/p-dd3749ed.entry.js +1 -0
- package/dist/webcomponents/p-dfaf5b14.entry.js +1 -0
- package/dist/webcomponents/{p-e48a2d25.entry.js → p-e2ee826e.entry.js} +1 -1
- package/dist/webcomponents/p-eccb77fa.entry.js +1 -0
- package/dist/webcomponents/p-ede5eb9d.entry.js +1 -0
- package/dist/webcomponents/p-eefe4d71.entry.js +1 -0
- package/dist/webcomponents/p-f4f3bca9.entry.js +1 -0
- package/dist/webcomponents/{p-d7f62287.entry.js → p-f67133f0.entry.js} +1 -1
- package/dist/webcomponents/{p-70774a5a.entry.js → p-f6ad1d58.entry.js} +1 -1
- package/dist/webcomponents/{p-a02ce003.entry.js → p-f9bddc04.entry.js} +1 -1
- package/dist/webcomponents/p-rPeW3G6n.js +1 -0
- package/dist/webcomponents/p-xIyLUOJ6.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Payment-D5UynU2f.js +0 -151
- package/dist/cjs/header-3-BnKbOjvz.js +0 -10
- package/dist/cjs/justifi-billing-form.cjs.entry.js +0 -76
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
- package/dist/cjs/justifi-payment-method-options.cjs.entry.js +0 -76
- package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +0 -117
- package/dist/collection/components/checkout/new-payment-method.js +0 -378
- package/dist/collection/components/checkout/payment-method-options.js +0 -421
- package/dist/esm/Payment-00TwhwCx.js +0 -149
- package/dist/esm/header-3-Bsi4loU1.js +0 -8
- package/dist/esm/justifi-billing-form.entry.js +0 -74
- package/dist/esm/justifi-new-payment-method.entry.js +0 -97
- package/dist/esm/justifi-payment-method-options.entry.js +0 -74
- package/dist/esm/justifi-saved-payment-methods_2.entry.js +0 -114
- package/dist/module/Payment.js +0 -204
- package/dist/module/header-3.js +0 -8
- package/dist/module/justifi-new-payment-method.d.ts +0 -11
- package/dist/module/justifi-new-payment-method.js +0 -219
- package/dist/module/justifi-payment-method-options.d.ts +0 -11
- package/dist/module/justifi-payment-method-options.js +0 -6
- package/dist/module/payment-method-options.js +0 -129
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
- package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
- package/dist/webcomponents/p-00d7c2e6.entry.js +0 -1
- package/dist/webcomponents/p-03e9a98c.entry.js +0 -1
- package/dist/webcomponents/p-05fc864a.entry.js +0 -1
- package/dist/webcomponents/p-09c24135.entry.js +0 -1
- package/dist/webcomponents/p-0f511cc1.entry.js +0 -1
- package/dist/webcomponents/p-100008fa.entry.js +0 -1
- package/dist/webcomponents/p-17825dfb.entry.js +0 -1
- package/dist/webcomponents/p-18b941d3.entry.js +0 -1
- package/dist/webcomponents/p-19308a1b.entry.js +0 -1
- package/dist/webcomponents/p-1a7942f7.entry.js +0 -1
- package/dist/webcomponents/p-1d1d956b.entry.js +0 -1
- package/dist/webcomponents/p-26bf2fda.entry.js +0 -1
- package/dist/webcomponents/p-2d3949f7.entry.js +0 -1
- package/dist/webcomponents/p-326f4860.entry.js +0 -1
- package/dist/webcomponents/p-359b8f54.entry.js +0 -1
- package/dist/webcomponents/p-37aeeeee.entry.js +0 -1
- package/dist/webcomponents/p-4887bcb3.entry.js +0 -1
- package/dist/webcomponents/p-54406229.entry.js +0 -1
- package/dist/webcomponents/p-56af4fd0.entry.js +0 -1
- package/dist/webcomponents/p-59656e08.entry.js +0 -1
- package/dist/webcomponents/p-5e813b93.entry.js +0 -1
- package/dist/webcomponents/p-66861ea5.entry.js +0 -1
- package/dist/webcomponents/p-6bd83369.entry.js +0 -1
- package/dist/webcomponents/p-6ee2b118.entry.js +0 -1
- package/dist/webcomponents/p-73afde1b.entry.js +0 -1
- package/dist/webcomponents/p-73bbd71c.entry.js +0 -1
- package/dist/webcomponents/p-74f78a4e.entry.js +0 -1
- package/dist/webcomponents/p-755a8d9b.entry.js +0 -1
- package/dist/webcomponents/p-7c456c10.entry.js +0 -1
- package/dist/webcomponents/p-7c6d7283.entry.js +0 -1
- package/dist/webcomponents/p-7e9832b3.entry.js +0 -1
- package/dist/webcomponents/p-810cad17.entry.js +0 -1
- package/dist/webcomponents/p-81478598.entry.js +0 -1
- package/dist/webcomponents/p-91a2707a.entry.js +0 -1
- package/dist/webcomponents/p-9348a7c8.entry.js +0 -1
- package/dist/webcomponents/p-967c3374.entry.js +0 -1
- package/dist/webcomponents/p-9REosSLu.js +0 -1
- package/dist/webcomponents/p-9c27f87f.entry.js +0 -1
- package/dist/webcomponents/p-B9ROmZzw.js +0 -1
- package/dist/webcomponents/p-BCPBc18Y.js +0 -1
- package/dist/webcomponents/p-BQ5bL1Y5.js +0 -1
- package/dist/webcomponents/p-BSW9VS7r.js +0 -1
- package/dist/webcomponents/p-BSexQ2qc.js +0 -1
- package/dist/webcomponents/p-Bc5u1WjM.js +0 -1
- package/dist/webcomponents/p-BjQrbohd.js +0 -1
- package/dist/webcomponents/p-BxWsrx5h.js +0 -1
- package/dist/webcomponents/p-By9Lz2e0.js +0 -1
- package/dist/webcomponents/p-CEp46FZK.js +0 -1
- package/dist/webcomponents/p-CMNxLEJP.js +0 -1
- package/dist/webcomponents/p-CZItg0Yo.js +0 -1
- package/dist/webcomponents/p-D7WGjeDy.js +0 -1
- package/dist/webcomponents/p-DIDbcp63.js +0 -1
- package/dist/webcomponents/p-DR0dQ8Fv.js +0 -1
- package/dist/webcomponents/p-DUqRxn4Y.js +0 -1
- package/dist/webcomponents/p-DbcOhajT.js +0 -1
- package/dist/webcomponents/p-DhAmsAOH.js +0 -1
- package/dist/webcomponents/p-DoEkFs2i.js +0 -1
- package/dist/webcomponents/p-DvXSA0b0.js +0 -1
- package/dist/webcomponents/p-a05062d8.entry.js +0 -1
- package/dist/webcomponents/p-a2f0d61c.entry.js +0 -1
- package/dist/webcomponents/p-b193bf46.entry.js +0 -1
- package/dist/webcomponents/p-b398856f.entry.js +0 -1
- package/dist/webcomponents/p-d33baab9.entry.js +0 -1
- package/dist/webcomponents/p-d3f438ca.entry.js +0 -1
- package/dist/webcomponents/p-d5b3c65c.entry.js +0 -1
- package/dist/webcomponents/p-d62e6c16.entry.js +0 -1
- package/dist/webcomponents/p-eba620cd.entry.js +0 -1
- package/dist/webcomponents/p-ecdda6e6.entry.js +0 -1
- package/dist/webcomponents/p-f24e201f.entry.js +0 -1
- package/dist/webcomponents/p-m2jmX-Hz.js +0 -1
- package/dist/webcomponents/p-sT4o5vru.js +0 -1
- package/dist/webcomponents/p-ys9CWfNG.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -4,11 +4,11 @@ import { ai as terminalOrdersListFilterMenu, aj as orderStatusTerminalOrdersList
|
|
|
4
4
|
import { S as StyledHost } from './styled-host.js';
|
|
5
5
|
import './details.js';
|
|
6
6
|
import './event-types.js';
|
|
7
|
+
import './justifi-radio-list-item2.js';
|
|
7
8
|
import './config-state.js';
|
|
8
|
-
import {
|
|
9
|
-
import { T as TerminalOrderStatus,
|
|
9
|
+
import { h as convertToUTC, e as convertToLocal } from './utils2.js';
|
|
10
|
+
import { T as TerminalOrderStatus, e as TerminalOrderType } from './Refund.js';
|
|
10
11
|
import './Pagination.js';
|
|
11
|
-
import './Payment.js';
|
|
12
12
|
import './Business.js';
|
|
13
13
|
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
14
14
|
import { d as defineCustomElement$5 } from './form-control-date2.js';
|
|
@@ -62,8 +62,8 @@ const TerminalOrdersListFilters = /*@__PURE__*/ proxyCustomElement(class Termina
|
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
64
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
65
|
-
return (h(StyledHost, { key: '
|
|
66
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '
|
|
65
|
+
return (h(StyledHost, { key: '24b9da56d6bef1aa545007f2dba95b1da7fa4f4d' }, h("table-filters-menu", { key: 'ac3c26800fff2176782cf8240916cfd7e9a20333', params: filterMenuParams, clearParams: clearParams, part: terminalOrdersListFilterMenu }, h("div", { key: 'cf11a3bc06453a9970120d0ac05334754a51181b', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'e72c2e114463c57e0de6042f2b3c419359f416ab', class: "p-2" }, h("form-control-select", { key: 'b2a3d66f6c0bb9fcf1da45cddc0b9df78ffa5ef8', name: "order_status", label: "Order Status", options: this.terminalOrderStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderStatus || filterParams.order_status, disabled: !!this.orderStatus, part: orderStatusTerminalOrdersListFilterParam })), h("div", { key: '944a5f0ff5ff2fb87bee60da154b8dd03660e4f3', class: "p-2" }, h("form-control-select", { key: '992921c6f9ecf20587f814f87a44179db3fe49fd', name: "order_type", label: "Order Type", options: this.terminalOrderTypeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.orderType || filterParams.order_type, disabled: !!this.orderType, part: orderTypeTerminalOrdersListFilterParam })), h("div", { key: '5acb3775b09fd508cfc77bf4b309cf43ca71a47a', class: "p-2" }, h("form-control-date", { key: '2b712d2c2903f2d579ada15a0e27eb97cc38c2f9', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
66
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterTerminalOrdersListFilterParam })), h("div", { key: '66dae53f3fe0a6147570b15e6e85f7a821d7a322', class: "p-2" }, h("form-control-date", { key: '3715aab2b7637c67b1373bd0135a8a35c2b5a34c', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
67
67
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforeTerminalOrdersListFilterParam }))))));
|
|
68
68
|
}
|
|
69
69
|
}, [1, "justifi-terminal-orders-list-filters", {
|
|
@@ -2,13 +2,13 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { S as StyledHost } from './styled-host.js';
|
|
3
3
|
import './details.js';
|
|
4
4
|
import './event-types.js';
|
|
5
|
+
import './justifi-radio-list-item2.js';
|
|
5
6
|
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
6
7
|
import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminal-orders-list-core2.js';
|
|
7
8
|
import './config-state.js';
|
|
8
|
-
import './
|
|
9
|
-
import {
|
|
9
|
+
import './dinero.js';
|
|
10
|
+
import { n as TerminalOrder, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
|
|
10
11
|
import './Pagination.js';
|
|
11
|
-
import './Payment.js';
|
|
12
12
|
import './Business.js';
|
|
13
13
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
14
14
|
import { A as Api } from './Api.js';
|
|
@@ -96,7 +96,7 @@ const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrders
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(StyledHost, { key: '
|
|
99
|
+
return (h(StyledHost, { key: 'e0fcbc2ccb76acdbcd7a18772d509995c81b1ae1' }, h("terminal-orders-list-core", { key: '21b108f554caa4343ecbd3bffa404c01442ef938', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
100
100
|
}
|
|
101
101
|
}, [1, "justifi-terminal-orders-list", {
|
|
102
102
|
"accountId": [1, "account-id"],
|
|
@@ -5,11 +5,11 @@ import { an as terminalsListFilterMenu, ao as terminalIdTerminalsListFilterParam
|
|
|
5
5
|
import { S as StyledHost } from './styled-host.js';
|
|
6
6
|
import './details.js';
|
|
7
7
|
import './event-types.js';
|
|
8
|
+
import './justifi-radio-list-item2.js';
|
|
8
9
|
import './config-state.js';
|
|
9
|
-
import './
|
|
10
|
-
import {
|
|
10
|
+
import './dinero.js';
|
|
11
|
+
import { f as ITerminalStatus } from './Refund.js';
|
|
11
12
|
import './Pagination.js';
|
|
12
|
-
import './Payment.js';
|
|
13
13
|
import './Business.js';
|
|
14
14
|
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
15
15
|
import { d as defineCustomElement$5 } from './form-control-select2.js';
|
|
@@ -51,7 +51,7 @@ const TerminalsListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalsLis
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
54
|
-
return (h(StyledHost, { key: '
|
|
54
|
+
return (h(StyledHost, { key: 'a5fe1671dd03e1290544f3deaf5aa01b5d937d9d' }, h("table-filters-menu", { key: 'f7a3d95c1b0ad0b52b96f990fd56fdbe64643493', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '92b0144a5ab7eee377e053e9b006af846ac43d64', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '3970a2e11f3be7953af299be4825166a829e9a0a', class: "p-2" }, h("form-control-text", { key: '0653692eaffdb14b092643a9f3c1b8e126c942db', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: 'c9d152d0a2d7e7b7fd7e72693a2248a020545a24', class: "p-2" }, h("form-control-text", { key: '785e7b382d9cadb72e242a379f2525b2da5140de', name: "terminal_order_id", label: "Terminal Order ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalOrderId || filterParams.terminal_order_id, disabled: !!this.terminalOrderId, part: terminalOrderIdTerminalsListFilterParam })), h("div", { key: 'f4f1e79eb81a72dd25bb4f4c14450ca82657f213', class: "p-2" }, h("form-control-select", { key: '52b390e42309e13e2f09df0681392bbf8e84aed8', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
|
|
55
55
|
}
|
|
56
56
|
}, [1, "justifi-terminals-list-filters", {
|
|
57
57
|
"terminalId": [1, "terminal-id"],
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { k as Terminal, C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
|
|
3
3
|
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
4
4
|
import { T as TerminalService } from './terminal.service.js';
|
|
5
5
|
import './config-state.js';
|
|
6
|
-
import './
|
|
6
|
+
import './dinero.js';
|
|
7
7
|
import './Pagination.js';
|
|
8
|
-
import './Payment.js';
|
|
9
8
|
import './Business.js';
|
|
10
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
11
10
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts.js';
|
|
12
11
|
import { S as StyledHost } from './styled-host.js';
|
|
13
12
|
import './details.js';
|
|
14
13
|
import './event-types.js';
|
|
14
|
+
import './justifi-radio-list-item2.js';
|
|
15
15
|
import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminals-list-core2.js';
|
|
16
16
|
import { d as defineCustomElement$3 } from './pagination-menu2.js';
|
|
17
17
|
|
|
@@ -101,7 +101,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h(StyledHost, { key: '
|
|
104
|
+
return (h(StyledHost, { key: '57a9be57de845dc3f905260445e245cf30458af8' }, h("terminals-list-core", { key: '00f79218e216fffc12ecfc3b158cd299ad054349', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
|
|
105
105
|
}
|
|
106
106
|
static get watchers() { return {
|
|
107
107
|
"accountId": ["propChanged"],
|
|
@@ -1,131 +1,369 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { B as Button } from './button.js';
|
|
3
2
|
import { S as StyledHost } from './styled-host.js';
|
|
4
3
|
import './details.js';
|
|
5
4
|
import './event-types.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './justifi-radio-list-item2.js';
|
|
6
6
|
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
7
|
+
import { a as ComponentErrorCodes, c as PaymentMethodTypes, C as ComponentErrorSeverity } from './Refund.js';
|
|
7
8
|
import './config-state.js';
|
|
8
|
-
import './
|
|
9
|
-
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
|
|
9
|
+
import './dinero.js';
|
|
10
10
|
import './Pagination.js';
|
|
11
|
-
import './Payment.js';
|
|
12
11
|
import './Business.js';
|
|
13
12
|
import { c as checkoutStore } from './checkout.store.js';
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
13
|
+
import { d as defineCustomElement$j } from './custom-popper2.js';
|
|
14
|
+
import { d as defineCustomElement$i } from './form-control-checkbox2.js';
|
|
15
|
+
import { d as defineCustomElement$h } from './form-control-help-text2.js';
|
|
16
|
+
import { d as defineCustomElement$g } from './form-control-radio2.js';
|
|
17
|
+
import { d as defineCustomElement$f } from './form-control-select2.js';
|
|
18
|
+
import { d as defineCustomElement$e } from './form-control-text2.js';
|
|
19
|
+
import { d as defineCustomElement$d } from './form-control-tooltip2.js';
|
|
20
|
+
import { d as defineCustomElement$c } from './hidden-input2.js';
|
|
21
|
+
import { d as defineCustomElement$b } from './iframe-input2.js';
|
|
22
|
+
import { d as defineCustomElement$a } from './bank-account.js';
|
|
23
|
+
import { d as defineCustomElement$9 } from './billing-form.js';
|
|
24
|
+
import { d as defineCustomElement$8 } from './billing-information-form.js';
|
|
25
|
+
import { d as defineCustomElement$7 } from './justifi-button2.js';
|
|
26
|
+
import { d as defineCustomElement$6 } from './card-form2.js';
|
|
27
|
+
import { d as defineCustomElement$5 } from './justifi-header2.js';
|
|
28
|
+
import { d as defineCustomElement$4 } from './postal-code-form.js';
|
|
29
|
+
import { d as defineCustomElement$2 } from './save-new-payment-method.js';
|
|
19
30
|
|
|
31
|
+
// Constants
|
|
32
|
+
const PAYMENT_METHOD_TYPE_LABELS = {
|
|
33
|
+
[PaymentMethodTypes.bankAccount]: 'New bank account',
|
|
34
|
+
[PaymentMethodTypes.card]: 'New credit or debit card',
|
|
35
|
+
};
|
|
36
|
+
const ERROR_MESSAGES = {
|
|
37
|
+
AUTH_TOKEN_REQUIRED: 'Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
38
|
+
ACCOUNT_ID_REQUIRED: 'Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout',
|
|
39
|
+
FORM_NOT_READY: 'Payment form not ready',
|
|
40
|
+
VALIDATION_ERROR: 'Validation error',
|
|
41
|
+
};
|
|
20
42
|
const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePaymentMethod extends HTMLElement {
|
|
21
43
|
constructor() {
|
|
22
44
|
super();
|
|
23
45
|
this.__registerHost();
|
|
24
|
-
this.__attachShadow();
|
|
25
46
|
this.errorEvent = createEvent(this, "error-event", 7);
|
|
26
47
|
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
27
|
-
this.submitButtonText = 'Submit';
|
|
28
48
|
this.isLoading = false;
|
|
49
|
+
this.saveNewPaymentMethodChecked = false;
|
|
50
|
+
this.submitButtonText = 'Submit';
|
|
29
51
|
}
|
|
30
52
|
componentWillLoad() {
|
|
31
53
|
checkPkgVersion();
|
|
32
54
|
this.analytics = new JustifiAnalytics(this);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.accountId = checkoutStore.accountId;
|
|
38
|
-
}
|
|
55
|
+
this.validateRequiredProps();
|
|
56
|
+
}
|
|
57
|
+
connectedCallback() {
|
|
58
|
+
this.setDefaultSelectedPaymentMethod();
|
|
39
59
|
}
|
|
40
60
|
disconnectedCallback() {
|
|
41
61
|
var _a;
|
|
42
62
|
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
43
63
|
}
|
|
44
|
-
|
|
64
|
+
paymentMethodsChanged() {
|
|
65
|
+
this.setDefaultSelectedPaymentMethod();
|
|
66
|
+
}
|
|
67
|
+
handleRadioClick(event) {
|
|
68
|
+
this.selectedPaymentMethodId = event.detail;
|
|
69
|
+
}
|
|
70
|
+
handleCheckboxChanged(event) {
|
|
71
|
+
this.saveNewPaymentMethodChecked = event.detail;
|
|
72
|
+
}
|
|
73
|
+
async fillBillingForm(fields) {
|
|
74
|
+
var _a;
|
|
75
|
+
(_a = this.billingFormRef) === null || _a === void 0 ? void 0 : _a.fill(fields);
|
|
76
|
+
}
|
|
45
77
|
async tokenizePaymentMethod(event) {
|
|
46
|
-
event
|
|
78
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
47
79
|
this.isLoading = true;
|
|
48
|
-
let tokenizeResponse;
|
|
49
80
|
try {
|
|
50
|
-
|
|
51
|
-
if (
|
|
81
|
+
const validation = await this.validate();
|
|
82
|
+
if (!validation.isValid) {
|
|
52
83
|
this.errorEvent.emit({
|
|
84
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
85
|
+
message: ERROR_MESSAGES.VALIDATION_ERROR,
|
|
86
|
+
});
|
|
87
|
+
this.isLoading = false;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const tokenizeResponse = await this.resolvePaymentMethod({ isValid: true });
|
|
91
|
+
if (tokenizeResponse.error) {
|
|
92
|
+
this.emitError({
|
|
53
93
|
errorCode: tokenizeResponse.error.code,
|
|
54
94
|
message: tokenizeResponse.error.message,
|
|
55
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
56
95
|
});
|
|
57
96
|
}
|
|
97
|
+
this.submitEvent.emit({ response: tokenizeResponse });
|
|
98
|
+
return tokenizeResponse;
|
|
58
99
|
}
|
|
59
100
|
catch (error) {
|
|
60
|
-
const
|
|
101
|
+
const errorResponse = this.createErrorResponse(ComponentErrorCodes.TOKENIZE_ERROR, error.message);
|
|
102
|
+
this.emitError({
|
|
61
103
|
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
62
104
|
message: error.message,
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
|
|
105
|
+
});
|
|
106
|
+
this.submitEvent.emit({ response: errorResponse });
|
|
107
|
+
return errorResponse;
|
|
66
108
|
}
|
|
67
109
|
finally {
|
|
68
|
-
this.submitEvent.emit({ response: tokenizeResponse });
|
|
69
110
|
this.isLoading = false;
|
|
70
|
-
return tokenizeResponse;
|
|
71
111
|
}
|
|
72
112
|
}
|
|
73
|
-
async fillBillingForm(fields) {
|
|
74
|
-
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
75
|
-
}
|
|
76
113
|
async validate() {
|
|
77
|
-
|
|
114
|
+
if (!this.areFormsReady()) {
|
|
115
|
+
return { isValid: false, errors: { general: ERROR_MESSAGES.FORM_NOT_READY } };
|
|
116
|
+
}
|
|
117
|
+
const [billingValidation, paymentMethodValidation] = await Promise.all([
|
|
118
|
+
this.billingFormRef.validate(),
|
|
119
|
+
this.paymentMethodFormRef.validate(),
|
|
120
|
+
]);
|
|
121
|
+
return {
|
|
122
|
+
isValid: billingValidation.isValid && paymentMethodValidation.isValid,
|
|
123
|
+
errors: Object.assign(Object.assign({}, billingValidation.errors), paymentMethodValidation.errors),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
validateRequiredProps() {
|
|
127
|
+
if (!this.authToken && !checkoutStore.authToken) {
|
|
128
|
+
this.emitError({
|
|
129
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
130
|
+
message: ERROR_MESSAGES.AUTH_TOKEN_REQUIRED,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
if (!this.accountId && !checkoutStore.accountId) {
|
|
134
|
+
this.emitError({
|
|
135
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
136
|
+
message: ERROR_MESSAGES.ACCOUNT_ID_REQUIRED,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
setDefaultSelectedPaymentMethod() {
|
|
141
|
+
if (!this.selectedPaymentMethodId) {
|
|
142
|
+
if (!this.disableCreditCard) {
|
|
143
|
+
this.selectedPaymentMethodId = PaymentMethodTypes.card;
|
|
144
|
+
}
|
|
145
|
+
else if (!this.disableBankAccount) {
|
|
146
|
+
this.selectedPaymentMethodId = PaymentMethodTypes.bankAccount;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
get availablePaymentMethods() {
|
|
151
|
+
const methods = [];
|
|
152
|
+
if (!this.disableCreditCard) {
|
|
153
|
+
methods.push(PaymentMethodTypes.card);
|
|
154
|
+
}
|
|
155
|
+
if (!this.disableBankAccount) {
|
|
156
|
+
methods.push(PaymentMethodTypes.bankAccount);
|
|
157
|
+
}
|
|
158
|
+
return methods;
|
|
159
|
+
}
|
|
160
|
+
areFormsReady() {
|
|
161
|
+
return !!(this.billingFormRef && this.paymentMethodFormRef);
|
|
162
|
+
}
|
|
163
|
+
emitError(errorData) {
|
|
164
|
+
this.errorEvent.emit(Object.assign(Object.assign({}, errorData), { severity: ComponentErrorSeverity.ERROR }));
|
|
165
|
+
}
|
|
166
|
+
createErrorResponse(code, message) {
|
|
167
|
+
return {
|
|
168
|
+
error: {
|
|
169
|
+
code: code,
|
|
170
|
+
message,
|
|
171
|
+
decline_code: undefined,
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
async resolvePaymentMethod(insuranceValidation) {
|
|
176
|
+
if (!this.areFormsReady()) {
|
|
177
|
+
return this.createErrorResponse('form_not_ready', ERROR_MESSAGES.FORM_NOT_READY);
|
|
178
|
+
}
|
|
179
|
+
try {
|
|
180
|
+
const validation = await this.validate();
|
|
181
|
+
if (!validation.isValid || !insuranceValidation.isValid) {
|
|
182
|
+
const errorMessage = Object.values(validation.errors)[0] || ERROR_MESSAGES.VALIDATION_ERROR;
|
|
183
|
+
return {
|
|
184
|
+
validationError: true,
|
|
185
|
+
error: {
|
|
186
|
+
code: 'validation_error',
|
|
187
|
+
message: String(errorMessage),
|
|
188
|
+
decline_code: undefined,
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
return await this.performTokenization();
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
return { error };
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
async performTokenization() {
|
|
199
|
+
var _a, _b;
|
|
200
|
+
const tokenizeResponse = await this.tokenize();
|
|
201
|
+
if (tokenizeResponse.error) {
|
|
202
|
+
return { error: tokenizeResponse.error };
|
|
203
|
+
}
|
|
204
|
+
const tokenizeResponseData = tokenizeResponse.data;
|
|
205
|
+
return {
|
|
206
|
+
token: ((_a = tokenizeResponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeResponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
207
|
+
data: tokenizeResponseData,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
async tokenize() {
|
|
211
|
+
try {
|
|
212
|
+
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
213
|
+
const config = {
|
|
214
|
+
clientId: this.authToken || checkoutStore.authToken,
|
|
215
|
+
account: this.accountId || checkoutStore.accountId,
|
|
216
|
+
paymentMethodMetadata: this.buildPaymentMethodMetadata(billingFormFieldValues),
|
|
217
|
+
};
|
|
218
|
+
return await this.paymentMethodFormRef.tokenize(config);
|
|
219
|
+
}
|
|
220
|
+
catch (error) {
|
|
221
|
+
return error;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
buildPaymentMethodMetadata(billingFormFieldValues) {
|
|
225
|
+
return this.saveNewPaymentMethodChecked
|
|
226
|
+
? Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId }) : Object.assign({}, billingFormFieldValues);
|
|
227
|
+
}
|
|
228
|
+
get shouldHideRadioInput() {
|
|
229
|
+
const showCard = !this.disableCreditCard;
|
|
230
|
+
const showAch = !this.disableBankAccount;
|
|
231
|
+
return !showAch || !showCard;
|
|
232
|
+
}
|
|
233
|
+
renderPaymentMethodOption(paymentMethodType) {
|
|
234
|
+
const isSelected = this.selectedPaymentMethodId === paymentMethodType;
|
|
235
|
+
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)));
|
|
236
|
+
}
|
|
237
|
+
renderSelectedPaymentMethodForm(paymentMethodId) {
|
|
238
|
+
return (h("div", { class: "mt-4 pb-4" }, this.renderPaymentMethodForm(paymentMethodId), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodId }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
239
|
+
}
|
|
240
|
+
renderPaymentMethodForm(paymentMethodId) {
|
|
241
|
+
return paymentMethodId === PaymentMethodTypes.card ? (h("justifi-card-form", { ref: (el) => (this.paymentMethodFormRef = el) })) : (h("justifi-bank-account-form", { ref: (el) => (this.paymentMethodFormRef = el) }));
|
|
78
242
|
}
|
|
79
243
|
render() {
|
|
80
|
-
return (h(StyledHost, { key: '
|
|
244
|
+
return (h(StyledHost, { key: 'c3c12d1c58540f7fe794bc999e8cc8f47e9e1f8c' }, h("form", { key: 'aeb7843431a96feb79da49f1c28e0de6dc2d65c4' }, h("fieldset", { key: 'e890fbe8bb05bb6d74f8cabc9f4eb4feee4284ee' }, h("div", { key: '5abfab85b050239deea655dc777ff026b6627b8b', class: "row gy-3" }, h("div", { key: '9bb9dd865d6b2162d19a773ca232934da71bd792', class: "col-12" }, this.availablePaymentMethods.map((method) => this.renderPaymentMethodOption(method))), h("div", { key: 'aac644f69aa0e68632b850fc0f5c1442e26979e4', class: "col-12" }, h("justifi-button", { key: 'd2a35bd402b0d45dbcb48fefd44a624d4ab27a64', text: this.submitButtonText, variant: "primary", type: "submit", clickHandler: (e) => this.tokenizePaymentMethod(e), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton })))))));
|
|
81
245
|
}
|
|
82
|
-
|
|
83
|
-
"
|
|
246
|
+
static get watchers() { return {
|
|
247
|
+
"disableCreditCard": ["paymentMethodsChanged"],
|
|
248
|
+
"disableBankAccount": ["paymentMethodsChanged"]
|
|
249
|
+
}; }
|
|
250
|
+
}, [0, "justifi-tokenize-payment-method", {
|
|
84
251
|
"accountId": [1, "account-id"],
|
|
85
|
-
"
|
|
86
|
-
"submitButtonText": [1, "submit-button-text"],
|
|
87
|
-
"disableCreditCard": [4, "disable-credit-card"],
|
|
252
|
+
"authToken": [1, "auth-token"],
|
|
88
253
|
"disableBankAccount": [4, "disable-bank-account"],
|
|
89
|
-
"
|
|
90
|
-
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
254
|
+
"disableCreditCard": [4, "disable-credit-card"],
|
|
91
255
|
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
256
|
+
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
257
|
+
"hideSubmitButton": [4, "hide-submit-button"],
|
|
258
|
+
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
259
|
+
"submitButtonText": [1, "submit-button-text"],
|
|
92
260
|
"isLoading": [32],
|
|
93
|
-
"
|
|
261
|
+
"selectedPaymentMethodId": [32],
|
|
262
|
+
"saveNewPaymentMethodChecked": [32],
|
|
94
263
|
"fillBillingForm": [64],
|
|
264
|
+
"tokenizePaymentMethod": [64],
|
|
95
265
|
"validate": [64]
|
|
266
|
+
}, [[0, "radio-click", "handleRadioClick"], [0, "checkboxChanged", "handleCheckboxChanged"]], {
|
|
267
|
+
"disableCreditCard": ["paymentMethodsChanged"],
|
|
268
|
+
"disableBankAccount": ["paymentMethodsChanged"]
|
|
96
269
|
}]);
|
|
97
270
|
function defineCustomElement$1() {
|
|
98
271
|
if (typeof customElements === "undefined") {
|
|
99
272
|
return;
|
|
100
273
|
}
|
|
101
|
-
const components = ["justifi-tokenize-payment-method", "form-control-help-text", "form-control-radio", "justifi-
|
|
274
|
+
const components = ["justifi-tokenize-payment-method", "custom-popper", "form-control-checkbox", "form-control-help-text", "form-control-radio", "form-control-select", "form-control-text", "form-control-tooltip", "hidden-input", "iframe-input", "justifi-bank-account-form", "justifi-billing-form", "justifi-billing-information-form", "justifi-button", "justifi-card-form", "justifi-header", "justifi-postal-code-form", "justifi-radio-list-item", "justifi-save-new-payment-method"];
|
|
102
275
|
components.forEach(tagName => { switch (tagName) {
|
|
103
276
|
case "justifi-tokenize-payment-method":
|
|
104
277
|
if (!customElements.get(tagName)) {
|
|
105
278
|
customElements.define(tagName, TokenizePaymentMethod);
|
|
106
279
|
}
|
|
107
280
|
break;
|
|
281
|
+
case "custom-popper":
|
|
282
|
+
if (!customElements.get(tagName)) {
|
|
283
|
+
defineCustomElement$j();
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
case "form-control-checkbox":
|
|
287
|
+
if (!customElements.get(tagName)) {
|
|
288
|
+
defineCustomElement$i();
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
108
291
|
case "form-control-help-text":
|
|
109
292
|
if (!customElements.get(tagName)) {
|
|
110
|
-
defineCustomElement$
|
|
293
|
+
defineCustomElement$h();
|
|
111
294
|
}
|
|
112
295
|
break;
|
|
113
296
|
case "form-control-radio":
|
|
297
|
+
if (!customElements.get(tagName)) {
|
|
298
|
+
defineCustomElement$g();
|
|
299
|
+
}
|
|
300
|
+
break;
|
|
301
|
+
case "form-control-select":
|
|
302
|
+
if (!customElements.get(tagName)) {
|
|
303
|
+
defineCustomElement$f();
|
|
304
|
+
}
|
|
305
|
+
break;
|
|
306
|
+
case "form-control-text":
|
|
307
|
+
if (!customElements.get(tagName)) {
|
|
308
|
+
defineCustomElement$e();
|
|
309
|
+
}
|
|
310
|
+
break;
|
|
311
|
+
case "form-control-tooltip":
|
|
312
|
+
if (!customElements.get(tagName)) {
|
|
313
|
+
defineCustomElement$d();
|
|
314
|
+
}
|
|
315
|
+
break;
|
|
316
|
+
case "hidden-input":
|
|
317
|
+
if (!customElements.get(tagName)) {
|
|
318
|
+
defineCustomElement$c();
|
|
319
|
+
}
|
|
320
|
+
break;
|
|
321
|
+
case "iframe-input":
|
|
322
|
+
if (!customElements.get(tagName)) {
|
|
323
|
+
defineCustomElement$b();
|
|
324
|
+
}
|
|
325
|
+
break;
|
|
326
|
+
case "justifi-bank-account-form":
|
|
327
|
+
if (!customElements.get(tagName)) {
|
|
328
|
+
defineCustomElement$a();
|
|
329
|
+
}
|
|
330
|
+
break;
|
|
331
|
+
case "justifi-billing-form":
|
|
332
|
+
if (!customElements.get(tagName)) {
|
|
333
|
+
defineCustomElement$9();
|
|
334
|
+
}
|
|
335
|
+
break;
|
|
336
|
+
case "justifi-billing-information-form":
|
|
337
|
+
if (!customElements.get(tagName)) {
|
|
338
|
+
defineCustomElement$8();
|
|
339
|
+
}
|
|
340
|
+
break;
|
|
341
|
+
case "justifi-button":
|
|
342
|
+
if (!customElements.get(tagName)) {
|
|
343
|
+
defineCustomElement$7();
|
|
344
|
+
}
|
|
345
|
+
break;
|
|
346
|
+
case "justifi-card-form":
|
|
347
|
+
if (!customElements.get(tagName)) {
|
|
348
|
+
defineCustomElement$6();
|
|
349
|
+
}
|
|
350
|
+
break;
|
|
351
|
+
case "justifi-header":
|
|
114
352
|
if (!customElements.get(tagName)) {
|
|
115
353
|
defineCustomElement$5();
|
|
116
354
|
}
|
|
117
355
|
break;
|
|
118
|
-
case "justifi-
|
|
356
|
+
case "justifi-postal-code-form":
|
|
119
357
|
if (!customElements.get(tagName)) {
|
|
120
358
|
defineCustomElement$4();
|
|
121
359
|
}
|
|
122
360
|
break;
|
|
123
|
-
case "justifi-
|
|
361
|
+
case "justifi-radio-list-item":
|
|
124
362
|
if (!customElements.get(tagName)) {
|
|
125
363
|
defineCustomElement$3();
|
|
126
364
|
}
|
|
127
365
|
break;
|
|
128
|
-
case "justifi-
|
|
366
|
+
case "justifi-save-new-payment-method":
|
|
129
367
|
if (!customElements.get(tagName)) {
|
|
130
368
|
defineCustomElement$2();
|
|
131
369
|
}
|
|
@@ -45,7 +45,7 @@ const LegalAddressFormStep = /*@__PURE__*/ proxyCustomElement(class LegalAddress
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("justifi-legal-address-form-step-core", { key: '
|
|
48
|
+
return (h("justifi-legal-address-form-step-core", { key: 'bd286476461181f2e8a435a97bf148d55876b49c', getBusiness: this.getBusiness, patchBusiness: this.patchBusiness, allowOptionalFields: this.allowOptionalFields, ref: el => this.coreComponent = el }));
|
|
49
49
|
}
|
|
50
50
|
static get watchers() { return {
|
|
51
51
|
"authToken": ["propChanged"],
|
|
@@ -24,7 +24,7 @@ const LegalAddressForm = /*@__PURE__*/ proxyCustomElement(class LegalAddressForm
|
|
|
24
24
|
render() {
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
26
26
|
const legalAddressDefaultValue = this.formController.getInitialValues().legal_address;
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '5b21d99717f9b24c0551c7a96acf68e53e7787bf' }, h("fieldset", { key: 'd63cbd20b2648405c50a819724e0f8cf556f7d26' }, h("legend", { key: 'c0acd14073f13f914015f40d39bf22fb58792434', part: heading2 }, "Business Legal Address"), h("div", { key: 'ee4cee6bd662816f822ee209aeda5e9664f6a64d', class: "row gy-3" }, h("div", { key: '86b258fd09e73cbd2475330419274732231f3871', class: "col-12" }, h("form-control-text", { key: '8d898a9ae448f07932afe2d8cfc2314b92d9c597', name: "line1", label: "Legal Address", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line1, errorText: (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a.legal_address) === null || _b === void 0 ? void 0 : _b.line1 })), h("div", { key: '1a50c4b86a754035f71efacd39721219fcd54d60', class: "col-12" }, h("form-control-text", { key: '507b1451685e359a900f0bc7010ff39e3631daf2', name: "line2", label: "Address Line 2", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.line2, errorText: (_d = (_c = this.errors) === null || _c === void 0 ? void 0 : _c.legal_address) === null || _d === void 0 ? void 0 : _d.line2 })), h("div", { key: '1446b4db5f86a3b18e3aceb78274ffe458dbd3db', class: "col-12" }, h("form-control-text", { key: 'e17e4bd95ad4290d18edde79cf05a6b3a105166c', name: "city", label: "City", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.city, errorText: (_f = (_e = this.errors) === null || _e === void 0 ? void 0 : _e.legal_address) === null || _f === void 0 ? void 0 : _f.city })), h("div", { key: '9b880203bad9e104e6d1299ff73c83cba46ab563', class: "col-12" }, h("form-control-select", { key: '24e4df10f688c9a1b5f2af5217f03919bf7abec7', name: "state", label: "State", options: StateOptions, inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.state, errorText: (_h = (_g = this.errors) === null || _g === void 0 ? void 0 : _g.legal_address) === null || _h === void 0 ? void 0 : _h.state })), h("div", { key: '71f21b19602c268e3b6a839ce41ff9d4f8ffb8c4', class: "col-12" }, h("form-control-text", { key: 'ca71d3e21c5a0aea5367fa28ec1a2422ba9b1cf3', name: "postal_code", label: "Postal Code", inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.postal_code, errorText: (_k = (_j = this.errors) === null || _j === void 0 ? void 0 : _j.legal_address) === null || _k === void 0 ? void 0 : _k.postal_code, maxLength: 5, keyDownHandler: numberOnlyHandler })), h("div", { key: 'aaee0bf6a24ba182e002c1ffb49736fb622cde1f', class: "col-12" }, h("form-control-select", { key: '2b6486771818e584dcc195c304e5a6e16850b4a9', name: "country", label: "Country", options: [{ label: 'United States', value: 'USA' }], inputHandler: this.inputHandler, defaultValue: legalAddressDefaultValue === null || legalAddressDefaultValue === void 0 ? void 0 : legalAddressDefaultValue.country, errorText: (_m = (_l = this.errors) === null || _l === void 0 ? void 0 : _l.legal_address) === null || _m === void 0 ? void 0 : _m.country,
|
|
28
28
|
// just for now so we skip handling country specificities
|
|
29
29
|
disabled: true }))))));
|
|
30
30
|
}
|
|
@@ -2,10 +2,9 @@ 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 './
|
|
5
|
+
import './dinero.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Refund.js';
|
|
7
7
|
import './Pagination.js';
|
|
8
|
-
import './Payment.js';
|
|
9
8
|
import './Business.js';
|
|
10
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils4.js';
|
|
11
10
|
import { C as CheckoutService } from './checkout.service.js';
|
|
@@ -146,6 +145,7 @@ const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper e
|
|
|
146
145
|
}
|
|
147
146
|
queryFormRefs() {
|
|
148
147
|
this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
|
|
148
|
+
this.tokenizeComponentRef = this.hostEl.querySelector('justifi-tokenize-payment-method');
|
|
149
149
|
this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
|
|
150
150
|
this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
|
|
151
151
|
this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
@@ -158,6 +158,12 @@ const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper e
|
|
|
158
158
|
if (this.savePaymentMethod) {
|
|
159
159
|
paymentMethodMetadata.payment_method_group_id = checkoutStore.paymentMethodGroupId;
|
|
160
160
|
}
|
|
161
|
+
if (this.tokenizeComponentRef) {
|
|
162
|
+
const tokenizeResult = await this.tokenizeComponentRef.tokenizePaymentMethod();
|
|
163
|
+
if (tokenizeResult.error) {
|
|
164
|
+
return tokenizeResult;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
161
167
|
return this.paymentMethodFormRef.tokenize({
|
|
162
168
|
clientId: this.authToken,
|
|
163
169
|
paymentMethodMetadata,
|
|
@@ -257,7 +263,7 @@ const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper e
|
|
|
257
263
|
checkoutStore.selectedPaymentMethod = paymentMethodId;
|
|
258
264
|
}
|
|
259
265
|
render() {
|
|
260
|
-
return (h(Host, { key: '
|
|
266
|
+
return (h(Host, { key: '6949f68031572493fae333731c78cc07ccd7fafd' }));
|
|
261
267
|
}
|
|
262
268
|
get hostEl() { return this; }
|
|
263
269
|
}, [0, "justifi-modular-checkout", {
|