@justifi/webcomponents 5.7.4-rc-01 → 5.7.5
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/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
- package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
- package/dist/cjs/{Refund-BFE-2OxN.js → Refund-DN-yzFgy.js} +17 -8
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
- package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -19
- package/dist/cjs/{business-additional-questions-schema-C1Ot5vrv.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-BjlK8M6t.js → business.service-U2eLTrq9.js} +3 -3
- package/dist/cjs/{Analytics-CLEDjTfr.js → check-pkg-version-DuL7lRe2.js} +23 -23
- package/dist/cjs/{checkout.service-Bln6jCAj.js → checkout.service-DtMzeEwi.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
- package/dist/cjs/{dispute.service-Bo84yh33.js → dispute.service-CGVAs-5M.js} +3 -3
- 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.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- 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/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
- package/dist/cjs/{get-payment-details-OrAuseBX.js → get-payment-details-CdVEiscr.js} +4 -4
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
- package/dist/cjs/{get-subaccounts-CoC0XYqj.js → get-subaccounts-fBIoOr7m.js} +4 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +26 -0
- package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
- package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +21 -20
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +46 -49
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +67 -23
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
- 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 +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -16
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D89BDRKu.js → package-o4g7MDiy.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
- package/dist/cjs/{payment.service-C0t9DRcu.js → payment.service-DmpOOPu1.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-DGeLS8BN.js → payout.service-BfO6L79f.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{schema-validations-CllkToCZ.js → schema-validations-BSeMee-o.js} +31 -31
- 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-Dw6uHG1R.js → terminal-orders-table-DMjFmuxk.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-Ck6PIO3G.js → terminal.service-h-LWztbo.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +3 -1
- package/dist/collection/api/ComponentError.js +0 -2
- package/dist/collection/api/DisputeEvidenceDocument.js +4 -7
- package/dist/collection/api/Document.js +17 -8
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -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 +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -11
- package/dist/collection/components/checkout/payment-method-options.js +33 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
- 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 +12 -10
- 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 +3 -10
- 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 +5 -10
- package/dist/docs.json +255 -786
- package/dist/esm/{Api-C3T8XYbb.js → Api-69eVlLFc.js} +1 -1
- package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
- package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
- package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
- package/dist/esm/{Refund-BKe90wSq.js → Refund-f_BCgcDa.js} +18 -9
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-DHaTxWwu.js → badge-VWumlkvS.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
- package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -17
- package/dist/esm/{business-additional-questions-schema-D00MNMDJ.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-pxSsAdgG.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BMABw2vX.js → business.service-BviUFOjP.js} +5 -5
- package/dist/esm/{button-5hc5r__m.js → button-BfT7Ex96.js} +1 -1
- package/dist/esm/{Analytics-B3nThWuq.js → check-pkg-version-phOwcSQM.js} +25 -25
- package/dist/esm/{checkout.service-jmweME4d.js → checkout.service-B8W_W-lc.js} +5 -5
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-table-BS_UiHaT.js → checkouts-table-zIrBvmQp.js} +3 -3
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-DWQ8DPZa.js → dispute.service-1e9677RK.js} +5 -5
- package/dist/esm/form-alert_5.entry.js +1 -1
- 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-C93L7yFm.js → form-control-error-text-CYWqNNkG.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-p28euWGX.js → form-control-help-text-DMdU5_la.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +6 -6
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
- package/dist/esm/{get-payment-details-PSdVeuGc.js → get-payment-details-B5-Hzdrg.js} +6 -6
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
- package/dist/esm/{get-subaccounts-CownROrO.js → get-subaccounts-Cv7zn0lA.js} +7 -7
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-CUc5m0Ge.js → header-1-84nZCcj4.js} +1 -1
- package/dist/esm/{header-3-BXU3iN46.js → header-3-DpBr7qOY.js} +1 -1
- package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +23 -0
- package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
- package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
- package/dist/esm/{insurance-state-Br0fBMFI.js → insurance-state-BDLlv3CM.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -13
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
- package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
- package/dist/esm/justifi-business-details.entry.js +13 -13
- package/dist/esm/justifi-business-form.entry.js +19 -19
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +66 -22
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
- package/dist/esm/justifi-order-terminals.entry.js +15 -15
- package/dist/esm/justifi-owner-form_3.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +13 -13
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +13 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-refund-payment.entry.js +15 -15
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -17
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -18
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-rzqedGq4.js → package-B0XIc_FO.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +14 -14
- package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
- package/dist/esm/{payment.service-u8UGq6gX.js → payment.service-BMbF1Svr.js} +5 -5
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-status-BMqVM0kB.js → payments-status-_qXPu883.js} +1 -1
- package/dist/esm/{payments-table-BMIALfY5.js → payments-table-CrCdh5OV.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-CXW3oJqI.js → payout.service-HKpmn5XB.js} +5 -5
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-status-BGGBJaXG.js → payouts-status-C1XLgtWW.js} +1 -1
- package/dist/esm/{payouts-table-BNPc0Z6X.js → payouts-table-DIqsk6Oa.js} +3 -3
- package/dist/esm/{schema-validations-C7pC-de1.js → schema-validations-DLWfpHyI.js} +2 -2
- package/dist/esm/{skeleton-C0KgFH0Z.js → skeleton-CdD_FIeP.js} +1 -1
- package/dist/esm/{spinner-Dtab-HTx.js → spinner-DIlSUUzM.js} +1 -1
- package/dist/esm/{table-wp341KhD.js → table-DjsimZwr.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-table-CzEC1eXm.js → terminal-orders-table-BnXCVH7W.js} +7 -7
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Cw0RbYs3.js → terminal.service-XpfOXoFl.js} +5 -5
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/{terminals-table-CcKZ_9re.js → terminals-table-CCLlefFA.js} +3 -3
- package/dist/esm/{utils-BGp_IJEa.js → utils-6CI1OiOE.js} +1 -1
- package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
- package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +3 -3
- package/dist/module/Refund.js +17 -8
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +3 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/{Analytics.js → check-pkg-version.js} +21 -21
- package/dist/module/checkout-core.js +38 -32
- package/dist/module/checkouts-list-core2.js +2 -2
- 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 +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/file-input-handler.js +4 -7
- 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/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-checkout.js +99 -48
- 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 +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- 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 +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +11 -9
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- 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/justifi-tokenize-payment-method.js +40 -41
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +51 -34
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/saved-payment-method.js +22 -2
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/sezzle-payment-method.js +104 -0
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- 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 +2 -2
- package/dist/types/api/Checkout.d.ts +13 -14
- package/dist/types/api/ComponentError.d.ts +1 -3
- package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
- package/dist/types/api/Document.d.ts +2 -2
- package/dist/types/components/checkout/checkout.d.ts +0 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
- package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +22 -149
- package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
- package/dist/webcomponents/{p-a76e0f42.entry.js → p-0da7c7e5.entry.js} +1 -1
- package/dist/webcomponents/p-111535c9.entry.js +1 -0
- package/dist/webcomponents/{p-41dffb12.entry.js → p-18ddc883.entry.js} +1 -1
- package/dist/webcomponents/p-1ANZF89K.js +1 -0
- package/dist/webcomponents/p-1CYqfEKd.js +1 -0
- package/dist/webcomponents/{p-8bb3513f.entry.js → p-249d9a7f.entry.js} +1 -1
- package/dist/webcomponents/p-2b5a7776.entry.js +1 -0
- package/dist/webcomponents/{p-0fc4a0df.entry.js → p-30415c7f.entry.js} +1 -1
- package/dist/webcomponents/{p-7c6f2fad.entry.js → p-312b81a6.entry.js} +1 -1
- package/dist/webcomponents/{p-0ed08f7b.entry.js → p-36c99fce.entry.js} +1 -1
- package/dist/webcomponents/{p-9c6479a4.entry.js → p-39d3df56.entry.js} +1 -1
- package/dist/webcomponents/{p-bac895b4.entry.js → p-3bf842ea.entry.js} +1 -1
- package/dist/webcomponents/p-3dc2d47c.entry.js +1 -0
- package/dist/webcomponents/p-40bbb25c.entry.js +1 -0
- package/dist/webcomponents/{p-1a0f21d1.entry.js → p-40fb2439.entry.js} +1 -1
- package/dist/webcomponents/{p-acdf6a5f.entry.js → p-412805ce.entry.js} +1 -1
- package/dist/webcomponents/{p-783b70b5.entry.js → p-43c3a433.entry.js} +1 -1
- package/dist/webcomponents/{p-feea4bfd.entry.js → p-4ac8d9d4.entry.js} +4 -4
- package/dist/webcomponents/{p-1301a9ae.entry.js → p-5436c41f.entry.js} +1 -1
- package/dist/webcomponents/p-5576322e.entry.js +1 -0
- package/dist/webcomponents/p-59db70c0.entry.js +1 -0
- package/dist/webcomponents/p-600da1ee.entry.js +1 -0
- package/dist/webcomponents/{p-ef520bb8.entry.js → p-6daf7df0.entry.js} +1 -1
- package/dist/webcomponents/{p-9fe2281c.entry.js → p-7d324f45.entry.js} +1 -1
- package/dist/webcomponents/p-867a4a55.entry.js +1 -0
- package/dist/webcomponents/{p-6d5833b4.entry.js → p-878f26f7.entry.js} +1 -1
- package/dist/webcomponents/p-8c0162b3.entry.js +1 -0
- package/dist/webcomponents/p-8e201c63.entry.js +1 -0
- package/dist/webcomponents/p-91b5da99.entry.js +1 -0
- package/dist/webcomponents/{p-17727dd3.entry.js → p-95d99ffc.entry.js} +1 -1
- package/dist/webcomponents/p-989f51bc.entry.js +1 -0
- package/dist/webcomponents/{p-83037fd2.entry.js → p-9f9002c1.entry.js} +1 -1
- package/dist/webcomponents/p-B0XIc_FO.js +1 -0
- package/dist/webcomponents/{p-Dqx8L05_.js → p-B3AHoKpE.js} +1 -1
- package/dist/webcomponents/{p-CAdO_ZNx.js → p-BLWOT0S7.js} +1 -1
- package/dist/webcomponents/{p-Cf4TMP3p.js → p-BOQVwCyQ.js} +1 -1
- package/dist/webcomponents/{p-BaoXNxnc.js → p-BSl0X3r8.js} +1 -1
- package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/{p-BmgpToYI.js → p-Bgdp97Tl.js} +1 -1
- package/dist/webcomponents/{p-DhyQbCOq.js → p-BkDN6yJN.js} +1 -1
- package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
- package/dist/webcomponents/{p-Rx3SLAbu.js → p-Bnrk5pzA.js} +1 -1
- package/dist/webcomponents/p-BqoTJ9CO.js +1 -0
- package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
- package/dist/webcomponents/p-C5RuuShs.js +1 -0
- package/dist/webcomponents/p-C9oyC18r.js +1 -0
- package/dist/webcomponents/{p-C39xg5_f.js → p-CNSeavdR.js} +1 -1
- package/dist/webcomponents/p-CSO7ljYx.js +1 -0
- package/dist/webcomponents/{p-XTXkuHkQ.js → p-CYTPbCLN.js} +1 -1
- package/dist/webcomponents/p-CgEahdBL.js +1 -0
- package/dist/webcomponents/p-Ckf8pUs-.js +1 -0
- package/dist/webcomponents/{p-MNmf3fQL.js → p-Clv1feia.js} +1 -1
- package/dist/webcomponents/p-Cm9gh1Sz.js +1 -0
- package/dist/webcomponents/p-CraCsD1A.js +1 -0
- package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
- package/dist/webcomponents/{p-CdkOB2ri.js → p-Cw3BMq7G.js} +1 -1
- package/dist/webcomponents/{p-DHvfrLVU.js → p-D9lioyBA.js} +1 -1
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DgIkDBGX.js +1 -0
- package/dist/webcomponents/p-DniQ6yo6.js +1 -0
- package/dist/webcomponents/p-DpbCEDZ3.js +1 -0
- package/dist/webcomponents/p-Ds11n2AD.js +1 -0
- package/dist/webcomponents/p-DvuraFxP.js +1 -0
- package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
- package/dist/webcomponents/{p-C8Zhkgm5.js → p-JOSiCHl7.js} +1 -1
- package/dist/webcomponents/{p-CFpYbRwn.js → p-KoNvNGKV.js} +1 -1
- package/dist/webcomponents/p-SdntD1xf.js +1 -0
- package/dist/webcomponents/p-Zuu7wsNB.js +1 -0
- package/dist/webcomponents/p-a151a347.entry.js +1 -0
- package/dist/webcomponents/{p-02e39fe2.entry.js → p-a23dfac9.entry.js} +1 -1
- package/dist/webcomponents/{p-cdc71a77.entry.js → p-a38b3d9a.entry.js} +1 -1
- package/dist/webcomponents/p-a48f8ec2.entry.js +1 -0
- package/dist/webcomponents/{p-042c6784.entry.js → p-a7e9a1d1.entry.js} +1 -1
- package/dist/webcomponents/{p-9b1992ef.entry.js → p-a87c50de.entry.js} +1 -1
- package/dist/webcomponents/{p-de969ec7.entry.js → p-aa72125e.entry.js} +1 -1
- package/dist/webcomponents/p-b648fca4.entry.js +1 -0
- package/dist/webcomponents/p-b92737c4.entry.js +1 -0
- package/dist/webcomponents/p-bbf264c6.entry.js +1 -0
- package/dist/webcomponents/{p-60abac93.entry.js → p-bdbd0c8e.entry.js} +1 -1
- package/dist/webcomponents/p-be89720e.entry.js +1 -0
- package/dist/webcomponents/{p-03ed0703.entry.js → p-c18a5ebf.entry.js} +1 -1
- package/dist/webcomponents/p-c87WhXVB.js +1 -0
- package/dist/webcomponents/p-d3a2fa7e.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/{p-6286917e.entry.js → p-d768d814.entry.js} +1 -1
- package/dist/webcomponents/p-d7883a41.entry.js +1 -0
- package/dist/webcomponents/{p-4ed62ecf.entry.js → p-d9a9279b.entry.js} +1 -1
- package/dist/webcomponents/p-d9ae1fea.entry.js +1 -0
- package/dist/webcomponents/p-da872abc.entry.js +1 -0
- package/dist/webcomponents/p-db86c150.entry.js +1 -0
- package/dist/webcomponents/{p-d5ada96f.entry.js → p-dbcc1a8e.entry.js} +1 -1
- package/dist/webcomponents/p-e0345315.entry.js +1 -0
- package/dist/webcomponents/{p-6f6d7a87.entry.js → p-e21ba107.entry.js} +1 -1
- package/dist/webcomponents/p-e2867ef6.entry.js +1 -0
- package/dist/webcomponents/{p-46c0aa2e.entry.js → p-e4fa3f41.entry.js} +1 -1
- package/dist/webcomponents/{p-c4d2ff85.entry.js → p-edfcb58d.entry.js} +1 -1
- package/dist/webcomponents/p-f37bb6d6.entry.js +1 -0
- package/dist/webcomponents/p-f5eeb11d.entry.js +1 -0
- package/dist/webcomponents/p-f6d5f392.entry.js +1 -0
- package/dist/webcomponents/p-f6debdb8.entry.js +1 -0
- package/dist/webcomponents/{p-6ff96203.entry.js → p-fcb85a8e.entry.js} +1 -1
- package/dist/webcomponents/p-hBHbB3i6.js +1 -0
- package/dist/webcomponents/{p-Smvec9tp.js → p-pOQo1ck9.js} +1 -1
- package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/billing-form-schema-X1bkxteI.js +0 -26
- package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
- package/dist/cjs/checkout.store-LEOetpmH.js +0 -29
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
- package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -50
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
- package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -204
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -49
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
- package/dist/collection/api/BillingInformation.js +0 -1
- package/dist/collection/api/PaymentMethod.js +0 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
- package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -98
- package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
- package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
- package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/card-form.js +0 -102
- package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
- package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
- package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
- package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
- package/dist/collection/store/checkout.store.js +0 -25
- package/dist/esm/billing-form-schema-BQf2Ydp0.js +0 -24
- package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
- package/dist/esm/checkout.store-Ffl2B_i4.js +0 -27
- package/dist/esm/justifi-bank-account-form.entry.js +0 -83
- package/dist/esm/justifi-billing-information-form.entry.js +0 -48
- package/dist/esm/justifi-card-form.entry.js +0 -91
- package/dist/esm/justifi-checkout-summary.entry.js +0 -19
- package/dist/esm/justifi-modular-checkout.entry.js +0 -202
- package/dist/esm/justifi-postal-code-form.entry.js +0 -47
- package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
- package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
- package/dist/module/billing-form-schema.js +0 -24
- package/dist/module/checkout-actions.js +0 -58
- package/dist/module/checkout.store.js +0 -27
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -105
- package/dist/module/justifi-billing-information-form.d.ts +0 -11
- package/dist/module/justifi-billing-information-form.js +0 -94
- package/dist/module/justifi-card-form.d.ts +0 -11
- package/dist/module/justifi-card-form.js +0 -113
- package/dist/module/justifi-checkout-summary.d.ts +0 -11
- package/dist/module/justifi-checkout-summary.js +0 -37
- package/dist/module/justifi-modular-checkout.d.ts +0 -11
- package/dist/module/justifi-modular-checkout.js +0 -218
- package/dist/module/justifi-postal-code-form.d.ts +0 -11
- package/dist/module/justifi-postal-code-form.js +0 -86
- package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
- package/dist/module/justifi-saved-payment-methods.js +0 -58
- package/dist/module/payment-method-option-utils.js +0 -23
- package/dist/types/api/BillingInformation.d.ts +0 -13
- package/dist/types/api/PaymentMethod.d.ts +0 -21
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
- package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
- package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
- package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
- package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
- package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
- package/dist/types/store/checkout.store.d.ts +0 -19
- package/dist/webcomponents/p-05ab99e7.entry.js +0 -1
- package/dist/webcomponents/p-05d92d45.entry.js +0 -1
- package/dist/webcomponents/p-0977a99a.entry.js +0 -1
- package/dist/webcomponents/p-0a7c3741.entry.js +0 -1
- package/dist/webcomponents/p-0d8ebb69.entry.js +0 -1
- package/dist/webcomponents/p-0lkrqFgg.js +0 -1
- package/dist/webcomponents/p-0wMiAwXe.js +0 -1
- package/dist/webcomponents/p-15db3b15.entry.js +0 -1
- package/dist/webcomponents/p-31a9d45e.entry.js +0 -1
- package/dist/webcomponents/p-33bf5d85.entry.js +0 -1
- package/dist/webcomponents/p-4126de9e.entry.js +0 -1
- package/dist/webcomponents/p-4e38dfac.entry.js +0 -1
- package/dist/webcomponents/p-5f33350c.entry.js +0 -1
- package/dist/webcomponents/p-631bbd5a.entry.js +0 -1
- package/dist/webcomponents/p-63e5e6f6.entry.js +0 -1
- package/dist/webcomponents/p-64f047ea.entry.js +0 -1
- package/dist/webcomponents/p-716dc79c.entry.js +0 -1
- package/dist/webcomponents/p-738ee098.entry.js +0 -1
- package/dist/webcomponents/p-7c466cc9.entry.js +0 -1
- package/dist/webcomponents/p-7e484d46.entry.js +0 -1
- package/dist/webcomponents/p-8ba23f7f.entry.js +0 -1
- package/dist/webcomponents/p-8fefebd7.entry.js +0 -1
- package/dist/webcomponents/p-93a843db.entry.js +0 -1
- package/dist/webcomponents/p-9ba825c5.entry.js +0 -1
- package/dist/webcomponents/p-BByypogb.js +0 -1
- package/dist/webcomponents/p-BI7GlCtv.js +0 -1
- package/dist/webcomponents/p-BJatoeR1.js +0 -1
- package/dist/webcomponents/p-BKatPL5G.js +0 -1
- package/dist/webcomponents/p-BXeHgiPz.js +0 -1
- package/dist/webcomponents/p-BgiXKaf2.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-BnvoOeKL.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BooprPq0.js +0 -1
- package/dist/webcomponents/p-CCPoezRw.js +0 -1
- package/dist/webcomponents/p-D5ny0x8_.js +0 -1
- package/dist/webcomponents/p-D7uH6T8P.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DLopwJ61.js +0 -1
- package/dist/webcomponents/p-DRKOMqbX.js +0 -1
- package/dist/webcomponents/p-DXJXAroG.js +0 -1
- package/dist/webcomponents/p-DyvT8iXz.js +0 -1
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-bc05e051.entry.js +0 -1
- package/dist/webcomponents/p-c102dea5.entry.js +0 -1
- package/dist/webcomponents/p-cb84a2e6.entry.js +0 -1
- package/dist/webcomponents/p-ce242f4c.entry.js +0 -1
- package/dist/webcomponents/p-d0d83153.entry.js +0 -1
- package/dist/webcomponents/p-d81f30f6.entry.js +0 -1
- package/dist/webcomponents/p-d90e981c.entry.js +0 -1
- package/dist/webcomponents/p-da961813.entry.js +0 -1
- package/dist/webcomponents/p-dadd593a.entry.js +0 -1
- package/dist/webcomponents/p-e3437894.entry.js +0 -1
- package/dist/webcomponents/p-eb6f1a3f.entry.js +0 -1
- package/dist/webcomponents/p-ebc0b06d.entry.js +0 -1
- package/dist/webcomponents/p-ecfab304.entry.js +0 -1
- package/dist/webcomponents/p-efa7aef1.entry.js +0 -1
- package/dist/webcomponents/p-eilUGO3o.js +0 -1
- package/dist/webcomponents/p-fd7c5ac5.entry.js +0 -1
- package/dist/webcomponents/p-hDoH7hHP.js +0 -1
- package/dist/webcomponents/p-jA8bbxkp.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-rzqedGq4.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
|
-
import { S as StyledHost } from './styled-host.js';
|
|
3
|
-
import './details.js';
|
|
4
|
-
import './event-types.js';
|
|
5
|
-
import { S as Skeleton } from './skeleton.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
7
|
-
import { w as waitForConfig, c as configState } from './config-state.js';
|
|
8
|
-
import { d as defineCustomElement$3 } from './hidden-input2.js';
|
|
9
|
-
import { d as defineCustomElement$2 } from './iframe-input2.js';
|
|
10
|
-
|
|
11
|
-
const BankAccountFormSkeleton = (props) => {
|
|
12
|
-
const { isReady } = props;
|
|
13
|
-
if (isReady) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return (h("div", { class: "container-fluid p-0" },
|
|
17
|
-
h("div", { class: "row mb-3" },
|
|
18
|
-
h("div", { class: "col-12 align-content-end" },
|
|
19
|
-
h(Skeleton, { height: "18px", width: "120px" }),
|
|
20
|
-
h(Skeleton, { height: "36px" }))),
|
|
21
|
-
h("div", { class: "row" },
|
|
22
|
-
h("div", { class: "col-12 align-content-end" },
|
|
23
|
-
h(Skeleton, { height: "18px", width: "110px" }),
|
|
24
|
-
h(Skeleton, { height: "36px" })))));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm extends HTMLElement {
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
this.__registerHost();
|
|
31
|
-
this.__attachShadow();
|
|
32
|
-
this.isReady = false;
|
|
33
|
-
}
|
|
34
|
-
async componentWillLoad() {
|
|
35
|
-
await waitForConfig();
|
|
36
|
-
this.iframeOrigin = configState.iframeOrigin;
|
|
37
|
-
checkPkgVersion();
|
|
38
|
-
this.analytics = new JustifiAnalytics(this);
|
|
39
|
-
}
|
|
40
|
-
componentDidRender() {
|
|
41
|
-
const elements = [
|
|
42
|
-
this.accountNumberIframeElement,
|
|
43
|
-
this.routingNumberIframeElement,
|
|
44
|
-
];
|
|
45
|
-
Promise.all(elements.map((element) => {
|
|
46
|
-
return new Promise((resolve) => {
|
|
47
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
48
|
-
});
|
|
49
|
-
})).then(() => {
|
|
50
|
-
this.isReady = true;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
disconnectedCallback() {
|
|
54
|
-
var _a;
|
|
55
|
-
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
56
|
-
}
|
|
57
|
-
async validate() {
|
|
58
|
-
const accountNumberIsValid = await this.accountNumberIframeElement.validate();
|
|
59
|
-
const routingNumberIsValid = await this.routingNumberIframeElement.validate();
|
|
60
|
-
return accountNumberIsValid && routingNumberIsValid;
|
|
61
|
-
}
|
|
62
|
-
async tokenize({ clientId, paymentMethodMetadata, account }) {
|
|
63
|
-
return this.accountNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return (h(StyledHost, { key: '4c176e2293be710024294860fa0be41f36395f72' }, h(BankAccountFormSkeleton, { key: 'c86a619edf7d99ce572a104ddde18598b057ebce', isReady: this.isReady }), h("hidden-input", { key: '0c8e152754b1746e7533d14450e3559df5a3c8cd' }), h("div", { key: '291c1adf2f8152fc13ed9296245fbbabd719bec7', class: "container-fluid p-0", style: {
|
|
67
|
-
opacity: this.isReady ? '1' : '0',
|
|
68
|
-
height: this.isReady ? 'auto' : '0',
|
|
69
|
-
} }, h("div", { key: '53a755a4b1f9bf844c3dc68fa0a3343d415d7048', class: "row mb-3" }, h("iframe-input", { key: '369109cd12f6efd9768420cff1993f7b22d7cb76', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: 'd1ab53be0be78e24d0cfd3b93a0e94661f61f990', class: "row" }, h("iframe-input", { key: '96913caa7a1a2b338bf2fd63717fc8ad1d5fbcc5', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
70
|
-
}
|
|
71
|
-
}, [1, "justifi-bank-account-form", {
|
|
72
|
-
"iframeOrigin": [32],
|
|
73
|
-
"isReady": [32],
|
|
74
|
-
"validate": [64],
|
|
75
|
-
"tokenize": [64]
|
|
76
|
-
}]);
|
|
77
|
-
function defineCustomElement$1() {
|
|
78
|
-
if (typeof customElements === "undefined") {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
const components = ["justifi-bank-account-form", "hidden-input", "iframe-input"];
|
|
82
|
-
components.forEach(tagName => { switch (tagName) {
|
|
83
|
-
case "justifi-bank-account-form":
|
|
84
|
-
if (!customElements.get(tagName)) {
|
|
85
|
-
customElements.define(tagName, BankAccountForm);
|
|
86
|
-
}
|
|
87
|
-
break;
|
|
88
|
-
case "hidden-input":
|
|
89
|
-
if (!customElements.get(tagName)) {
|
|
90
|
-
defineCustomElement$3();
|
|
91
|
-
}
|
|
92
|
-
break;
|
|
93
|
-
case "iframe-input":
|
|
94
|
-
if (!customElements.get(tagName)) {
|
|
95
|
-
defineCustomElement$2();
|
|
96
|
-
}
|
|
97
|
-
break;
|
|
98
|
-
} });
|
|
99
|
-
}
|
|
100
|
-
defineCustomElement$1();
|
|
101
|
-
|
|
102
|
-
const JustifiBankAccountForm = BankAccountForm;
|
|
103
|
-
const defineCustomElement = defineCustomElement$1;
|
|
104
|
-
|
|
105
|
-
export { JustifiBankAccountForm, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JustifiBillingInformationForm extends Components.JustifiBillingInformationForm, HTMLElement {}
|
|
4
|
-
export const JustifiBillingInformationForm: {
|
|
5
|
-
prototype: JustifiBillingInformationForm;
|
|
6
|
-
new (): JustifiBillingInformationForm;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { b as billingFormSchema } from './billing-form-schema.js';
|
|
3
|
-
import { $ as billingForm } from './parts.js';
|
|
4
|
-
import { n as numberOnlyHandler } from './utils3.js';
|
|
5
|
-
import { S as StateOptions } from './state-options.js';
|
|
6
|
-
import { F as FormController } from './form.js';
|
|
7
|
-
import { S as StyledHost } from './styled-host.js';
|
|
8
|
-
import './details.js';
|
|
9
|
-
import './event-types.js';
|
|
10
|
-
import { d as defineCustomElement$5 } from './custom-popper2.js';
|
|
11
|
-
import { d as defineCustomElement$4 } from './form-control-select2.js';
|
|
12
|
-
import { d as defineCustomElement$3 } from './form-control-text2.js';
|
|
13
|
-
import { d as defineCustomElement$2 } from './form-control-tooltip2.js';
|
|
14
|
-
|
|
15
|
-
const BillingInformationForm = /*@__PURE__*/ proxyCustomElement(class BillingInformationForm extends HTMLElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this.__registerHost();
|
|
19
|
-
this.__attachShadow();
|
|
20
|
-
this.errors = {};
|
|
21
|
-
this.inputHandler = (name, value) => {
|
|
22
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
componentWillLoad() {
|
|
26
|
-
this.formController = new FormController(billingFormSchema());
|
|
27
|
-
}
|
|
28
|
-
componentDidLoad() {
|
|
29
|
-
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
30
|
-
this.formController.errors.subscribe(errors => {
|
|
31
|
-
this.errors = Object.assign({}, errors);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
async getValues() {
|
|
35
|
-
return this.formController.values.getValue();
|
|
36
|
-
}
|
|
37
|
-
async fill(fields) {
|
|
38
|
-
this.formController.setInitialValues(fields);
|
|
39
|
-
}
|
|
40
|
-
async validate() {
|
|
41
|
-
let isValid = await this.formController.validate();
|
|
42
|
-
return { isValid: isValid };
|
|
43
|
-
}
|
|
44
|
-
render() {
|
|
45
|
-
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
46
|
-
return (h(StyledHost, { key: '69c50df0f08e367aeb924bdde683793a542179d5' }, h("div", { key: 'de669a4fc15f3041672d9a093ce6cc80cef65d9e', part: billingForm }, h("form", { key: 'fb079f46703caaed345a9d7cadd380eba599a972' }, h("fieldset", { key: '8ebed9ab4c21b4c4bd490df6654287ac5dd301c8' }, h("div", { key: 'a5a9d27770724af4ea4e2ffed03b26a1d12773f9', class: "row gy-3" }, h("div", { key: 'e5ed5cca7c1bee4033df78c86c8e992b6851ed10', class: "col-12" }, h("form-control-text", { key: '427c31a6f1344a2786dbde7288a0f958957fdd22', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '6e222b1644b34f20f11f516d6de5e8e85f8277ac', class: "col-12" }, h("form-control-text", { key: '011574712b4ae735bfee96c7d6739e23ddd7318c', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: 'ecddd8f79102ef471053b5920072350e39ac313d', class: "col-12" }, h("form-control-text", { key: '95a37ac3c37c4c717bbefe9fa1b172e84027422e', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '3b14bb063904e57a5e2b1112b6f719875bbf33b7', class: "col-12" }, h("form-control-text", { key: 'cfaf3a8bd3c7ce50f47d721170829e2bfb92fff6', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '5613add4617df1e292ed0b0ea3a8cefc619c71e2', class: "col-12" }, h("form-control-select", { key: '698b66f67beb9bb5d3501e23f49655e2b3a0a4f1', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '5dd514ba36bb2e1f398c88053dbb35356f3ef811', class: "col-12" }, h("form-control-text", { key: '8825a1a2c2235ee83461a626b0ccdfeb9adbb74a', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler }))))))));
|
|
47
|
-
}
|
|
48
|
-
}, [1, "justifi-billing-information-form", {
|
|
49
|
-
"formController": [32],
|
|
50
|
-
"billingInfo": [32],
|
|
51
|
-
"errors": [32],
|
|
52
|
-
"getValues": [64],
|
|
53
|
-
"fill": [64],
|
|
54
|
-
"validate": [64]
|
|
55
|
-
}]);
|
|
56
|
-
function defineCustomElement$1() {
|
|
57
|
-
if (typeof customElements === "undefined") {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const components = ["justifi-billing-information-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
61
|
-
components.forEach(tagName => { switch (tagName) {
|
|
62
|
-
case "justifi-billing-information-form":
|
|
63
|
-
if (!customElements.get(tagName)) {
|
|
64
|
-
customElements.define(tagName, BillingInformationForm);
|
|
65
|
-
}
|
|
66
|
-
break;
|
|
67
|
-
case "custom-popper":
|
|
68
|
-
if (!customElements.get(tagName)) {
|
|
69
|
-
defineCustomElement$5();
|
|
70
|
-
}
|
|
71
|
-
break;
|
|
72
|
-
case "form-control-select":
|
|
73
|
-
if (!customElements.get(tagName)) {
|
|
74
|
-
defineCustomElement$4();
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
case "form-control-text":
|
|
78
|
-
if (!customElements.get(tagName)) {
|
|
79
|
-
defineCustomElement$3();
|
|
80
|
-
}
|
|
81
|
-
break;
|
|
82
|
-
case "form-control-tooltip":
|
|
83
|
-
if (!customElements.get(tagName)) {
|
|
84
|
-
defineCustomElement$2();
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
} });
|
|
88
|
-
}
|
|
89
|
-
defineCustomElement$1();
|
|
90
|
-
|
|
91
|
-
const JustifiBillingInformationForm = BillingInformationForm;
|
|
92
|
-
const defineCustomElement = defineCustomElement$1;
|
|
93
|
-
|
|
94
|
-
export { JustifiBillingInformationForm, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JustifiCardForm extends Components.JustifiCardForm, HTMLElement {}
|
|
4
|
-
export const JustifiCardForm: {
|
|
5
|
-
prototype: JustifiCardForm;
|
|
6
|
-
new (): JustifiCardForm;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
|
-
import { S as Skeleton } from './skeleton.js';
|
|
3
|
-
import './details.js';
|
|
4
|
-
import './event-types.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './Analytics.js';
|
|
7
|
-
import { w as waitForConfig, c as configState } from './config-state.js';
|
|
8
|
-
import { d as defineCustomElement$3 } from './hidden-input2.js';
|
|
9
|
-
import { d as defineCustomElement$2 } from './iframe-input2.js';
|
|
10
|
-
|
|
11
|
-
const CardFormSkeleton = (props) => {
|
|
12
|
-
const { isReady } = props;
|
|
13
|
-
if (isReady) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
return (h("div", { class: "container-fluid p-0" },
|
|
17
|
-
h("div", { class: "mb-3" },
|
|
18
|
-
h(Skeleton, { height: "18px", width: "100px" }),
|
|
19
|
-
h(Skeleton, { height: "36px" })),
|
|
20
|
-
h("div", { class: "row" },
|
|
21
|
-
h("div", { class: "col-4 align-content-end" },
|
|
22
|
-
h(Skeleton, { height: "18px", width: "80px" }),
|
|
23
|
-
h(Skeleton, { height: "36px" })),
|
|
24
|
-
h("div", { class: "col-4 align-content-end" },
|
|
25
|
-
h(Skeleton, { height: "36px" })),
|
|
26
|
-
h("div", { class: "col-4 align-content-end" },
|
|
27
|
-
h(Skeleton, { height: "18px", width: "30px" }),
|
|
28
|
-
h(Skeleton, { height: "36px" })))));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const JustifiCardForm$1 = /*@__PURE__*/ proxyCustomElement(class JustifiCardForm extends HTMLElement {
|
|
32
|
-
constructor() {
|
|
33
|
-
super();
|
|
34
|
-
this.__registerHost();
|
|
35
|
-
this.__attachShadow();
|
|
36
|
-
this.isReady = false;
|
|
37
|
-
}
|
|
38
|
-
async componentWillLoad() {
|
|
39
|
-
await waitForConfig();
|
|
40
|
-
this.iframeOrigin = configState.iframeOrigin;
|
|
41
|
-
checkPkgVersion();
|
|
42
|
-
this.analytics = new JustifiAnalytics(this);
|
|
43
|
-
}
|
|
44
|
-
componentDidRender() {
|
|
45
|
-
const elements = [
|
|
46
|
-
this.cardNumberIframeElement,
|
|
47
|
-
this.expirationMonthIframeElement,
|
|
48
|
-
this.expirationYearIframeElement,
|
|
49
|
-
this.cvvIframeElement,
|
|
50
|
-
];
|
|
51
|
-
Promise.all(elements.map((element) => {
|
|
52
|
-
return new Promise((resolve) => {
|
|
53
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
54
|
-
});
|
|
55
|
-
})).then(() => {
|
|
56
|
-
this.isReady = true;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
disconnectedCallback() {
|
|
60
|
-
var _a;
|
|
61
|
-
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
62
|
-
}
|
|
63
|
-
async validate() {
|
|
64
|
-
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
65
|
-
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
66
|
-
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
67
|
-
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
68
|
-
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
69
|
-
}
|
|
70
|
-
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
71
|
-
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
72
|
-
}
|
|
73
|
-
render() {
|
|
74
|
-
return (h(StyledHost, { key: '1b42c4a2b0adbd4d98bffc0cc0355ba7b1e10474' }, h(CardFormSkeleton, { key: 'ae04801424ca38c3831b951bcb6835ffcc1ccd94', isReady: this.isReady }), h("hidden-input", { key: '55396096f088bc5cde3b003ddaa9afda6848dfda' }), h("div", { key: '18f68ac5871fcb7ba8ce270bb552871709f468dd', class: "container-fluid p-0", style: {
|
|
75
|
-
opacity: this.isReady ? '1' : '0',
|
|
76
|
-
height: this.isReady ? 'auto' : '0',
|
|
77
|
-
} }, h("div", { key: '3c9711c64c5d60a121545394c22c382be93882ed', class: "mb-3" }, h("iframe-input", { key: '45401d0f9f8abd4197bd6651c28f531562431989', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '60bae8a0fb35d86ec46d59f400e86af4a97d4c6a', class: "row" }, h("div", { key: '44883bb16cd5bb65fefb8e6b627b52625c2776d3', class: "col-4 align-content-end" }, h("iframe-input", { key: 'a9df6d2a23e7f586f08623a9e14c19264252c8e7', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '5436effb8f457cb4dae945e3d7ca29c9441df724', class: "col-4 align-content-end" }, h("iframe-input", { key: '550096ddd5488e3cd11b0ab6985636eedc8f0dda', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'a6a207066d6ef70c7c3545d9412eb6be0d252062', class: "col-4 align-content-end" }, h("iframe-input", { key: '74a1bec5108a25f6e6f953abf25bc756293dea99', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
78
|
-
}
|
|
79
|
-
}, [1, "justifi-card-form", {
|
|
80
|
-
"isReady": [32],
|
|
81
|
-
"iframeOrigin": [32],
|
|
82
|
-
"validate": [64],
|
|
83
|
-
"tokenize": [64]
|
|
84
|
-
}]);
|
|
85
|
-
function defineCustomElement$1() {
|
|
86
|
-
if (typeof customElements === "undefined") {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
const components = ["justifi-card-form", "hidden-input", "iframe-input"];
|
|
90
|
-
components.forEach(tagName => { switch (tagName) {
|
|
91
|
-
case "justifi-card-form":
|
|
92
|
-
if (!customElements.get(tagName)) {
|
|
93
|
-
customElements.define(tagName, JustifiCardForm$1);
|
|
94
|
-
}
|
|
95
|
-
break;
|
|
96
|
-
case "hidden-input":
|
|
97
|
-
if (!customElements.get(tagName)) {
|
|
98
|
-
defineCustomElement$3();
|
|
99
|
-
}
|
|
100
|
-
break;
|
|
101
|
-
case "iframe-input":
|
|
102
|
-
if (!customElements.get(tagName)) {
|
|
103
|
-
defineCustomElement$2();
|
|
104
|
-
}
|
|
105
|
-
break;
|
|
106
|
-
} });
|
|
107
|
-
}
|
|
108
|
-
defineCustomElement$1();
|
|
109
|
-
|
|
110
|
-
const JustifiCardForm = JustifiCardForm$1;
|
|
111
|
-
const defineCustomElement = defineCustomElement$1;
|
|
112
|
-
|
|
113
|
-
export { JustifiCardForm, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JustifiCheckoutSummary extends Components.JustifiCheckoutSummary, HTMLElement {}
|
|
4
|
-
export const JustifiCheckoutSummary: {
|
|
5
|
-
prototype: JustifiCheckoutSummary;
|
|
6
|
-
new (): JustifiCheckoutSummary;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { t as text } from './parts.js';
|
|
3
|
-
import { c as formatCurrency } from './utils2.js';
|
|
4
|
-
import { s as state } from './checkout.store.js';
|
|
5
|
-
import { S as StyledHost } from './styled-host.js';
|
|
6
|
-
import './details.js';
|
|
7
|
-
import './event-types.js';
|
|
8
|
-
|
|
9
|
-
const Summary = /*@__PURE__*/ proxyCustomElement(class Summary extends HTMLElement {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.__registerHost();
|
|
13
|
-
this.__attachShadow();
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (h(StyledHost, { key: '9a2eea1693287ad73dfedd3ddc24e949e9d75148' }, h("section", { key: '1943be6cef0c4a1c830ddfc14d893c3906482534' }, h("div", { key: 'cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef' }, h("div", { key: 'b5bc944a5310252dc0720e3e7d709f1a57f898c8', part: text }, state === null || state === void 0 ? void 0 : state.paymentDescription), h("div", { key: 'dbe53880d7c3ff8d4513a570e1b024f1e2f43028' }, h("span", { key: 'd8986a9265463d8f9d7f62598cc4ec3203081c09', part: text }, "Total"), "\u00A0", h("span", { key: '32cbc6e259fdee2c71ad72fcf59ab157704c4758', part: text }, formatCurrency(+(state === null || state === void 0 ? void 0 : state.totalAmount))))))));
|
|
17
|
-
}
|
|
18
|
-
}, [1, "justifi-checkout-summary"]);
|
|
19
|
-
function defineCustomElement$1() {
|
|
20
|
-
if (typeof customElements === "undefined") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const components = ["justifi-checkout-summary"];
|
|
24
|
-
components.forEach(tagName => { switch (tagName) {
|
|
25
|
-
case "justifi-checkout-summary":
|
|
26
|
-
if (!customElements.get(tagName)) {
|
|
27
|
-
customElements.define(tagName, Summary);
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
} });
|
|
31
|
-
}
|
|
32
|
-
defineCustomElement$1();
|
|
33
|
-
|
|
34
|
-
const JustifiCheckoutSummary = Summary;
|
|
35
|
-
const defineCustomElement = defineCustomElement$1;
|
|
36
|
-
|
|
37
|
-
export { JustifiCheckoutSummary, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JustifiModularCheckout extends Components.JustifiModularCheckout, HTMLElement {}
|
|
4
|
-
export const JustifiModularCheckout: {
|
|
5
|
-
prototype: JustifiModularCheckout;
|
|
6
|
-
new (): JustifiModularCheckout;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { s as state } from './checkout.store.js';
|
|
3
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './Analytics.js';
|
|
4
|
-
import './config-state.js';
|
|
5
|
-
import './utils2.js';
|
|
6
|
-
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkout.js';
|
|
7
|
-
import './Pagination.js';
|
|
8
|
-
import './Payment.js';
|
|
9
|
-
import './Refund.js';
|
|
10
|
-
import './Business.js';
|
|
11
|
-
import { m as makeGetCheckout, a as makeCheckoutComplete } from './checkout-actions.js';
|
|
12
|
-
import { C as CheckoutService } from './checkout.service.js';
|
|
13
|
-
|
|
14
|
-
const CheckoutWrapper = /*@__PURE__*/ proxyCustomElement(class CheckoutWrapper extends HTMLElement {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
this.__registerHost();
|
|
18
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
19
|
-
this.checkoutComplete = createEvent(this, "checkout-complete-event", 7);
|
|
20
|
-
this.savePaymentMethod = false;
|
|
21
|
-
}
|
|
22
|
-
connectedCallback() {
|
|
23
|
-
this.observer = new MutationObserver(() => {
|
|
24
|
-
this.queryFormRefs();
|
|
25
|
-
});
|
|
26
|
-
this.observer.observe(this.hostEl, {
|
|
27
|
-
childList: true,
|
|
28
|
-
subtree: true
|
|
29
|
-
});
|
|
30
|
-
state.checkoutId = this.checkoutId;
|
|
31
|
-
const config = {
|
|
32
|
-
authToken: this.authToken,
|
|
33
|
-
checkoutId: this.checkoutId,
|
|
34
|
-
service: new CheckoutService()
|
|
35
|
-
};
|
|
36
|
-
this.getCheckout = makeGetCheckout(config);
|
|
37
|
-
this.completeCheckout = makeCheckoutComplete(config);
|
|
38
|
-
}
|
|
39
|
-
componentWillLoad() {
|
|
40
|
-
this.analytics = new JustifiAnalytics(this);
|
|
41
|
-
checkPkgVersion();
|
|
42
|
-
state.authToken = this.authToken;
|
|
43
|
-
state.accountId = this.accountId;
|
|
44
|
-
this.fetchCheckout();
|
|
45
|
-
}
|
|
46
|
-
componentDidLoad() {
|
|
47
|
-
this.queryFormRefs();
|
|
48
|
-
}
|
|
49
|
-
disconnectedCallback() {
|
|
50
|
-
var _a;
|
|
51
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
52
|
-
}
|
|
53
|
-
fetchCheckout() {
|
|
54
|
-
if (this.getCheckout) {
|
|
55
|
-
this.getCheckout({
|
|
56
|
-
onSuccess: ({ checkout }) => {
|
|
57
|
-
var _a, _b, _c, _d;
|
|
58
|
-
state.paymentMethods = checkout.payment_methods;
|
|
59
|
-
state.paymentMethodGroupId = checkout.payment_method_group_id;
|
|
60
|
-
state.paymentDescription = checkout.payment_description;
|
|
61
|
-
state.totalAmount = checkout.total_amount;
|
|
62
|
-
state.paymentAmount = checkout.payment_amount;
|
|
63
|
-
state.bnplEnabled = checkout.payment_settings.bnpl_payments;
|
|
64
|
-
state.bnplProviderClientId = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _a === void 0 ? void 0 : _a.provider_client_id;
|
|
65
|
-
state.bnplProviderMode = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_mode;
|
|
66
|
-
state.bnplProviderApiVersion = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_api_version;
|
|
67
|
-
state.bnplProviderCheckoutUrl = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_checkout_url;
|
|
68
|
-
},
|
|
69
|
-
onError: (error) => {
|
|
70
|
-
this.errorEvent.emit({
|
|
71
|
-
message: error.message,
|
|
72
|
-
errorCode: ComponentErrorCodes.FETCH_ERROR,
|
|
73
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
queryFormRefs() {
|
|
80
|
-
this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
|
|
81
|
-
this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
|
|
82
|
-
this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
|
|
83
|
-
this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
84
|
-
}
|
|
85
|
-
async tokenizePaymentMethod(tokenizeArgs) {
|
|
86
|
-
var _a, _b;
|
|
87
|
-
const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
|
|
88
|
-
const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
|
|
89
|
-
const paymentMethodMetadata = Object.assign({ accountId: this.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
|
|
90
|
-
if (this.savePaymentMethod) {
|
|
91
|
-
paymentMethodMetadata.payment_method_group_id = state.paymentMethodGroupId;
|
|
92
|
-
}
|
|
93
|
-
return this.paymentMethodFormRef.tokenize({
|
|
94
|
-
clientId: this.authToken,
|
|
95
|
-
paymentMethodMetadata,
|
|
96
|
-
account: this.accountId,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
async getPaymentMethod(submitCheckoutArgs) {
|
|
100
|
-
if (!this.paymentMethodFormRef) {
|
|
101
|
-
return state.selectedPaymentMethod;
|
|
102
|
-
}
|
|
103
|
-
const { error, id: token } = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
104
|
-
if (error) {
|
|
105
|
-
this.errorEvent.emit({
|
|
106
|
-
errorCode: error.code,
|
|
107
|
-
message: error.message,
|
|
108
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
109
|
-
});
|
|
110
|
-
return undefined;
|
|
111
|
-
}
|
|
112
|
-
return token;
|
|
113
|
-
}
|
|
114
|
-
async validate() {
|
|
115
|
-
var _a, _b;
|
|
116
|
-
const promises = [
|
|
117
|
-
(_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
|
|
118
|
-
(_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
|
|
119
|
-
];
|
|
120
|
-
if (this.insuranceFormRef) {
|
|
121
|
-
promises.push(this.insuranceFormRef.validate());
|
|
122
|
-
}
|
|
123
|
-
const validationResults = await Promise.all(promises);
|
|
124
|
-
return validationResults.every(result => (result === null || result === void 0 ? void 0 : result.isValid) !== false);
|
|
125
|
-
}
|
|
126
|
-
async submitCheckout(submitCheckoutArgs) {
|
|
127
|
-
var _a;
|
|
128
|
-
const isValid = await this.validate();
|
|
129
|
-
if (!isValid) {
|
|
130
|
-
this.errorEvent.emit({
|
|
131
|
-
message: 'Please fill in all required fields.',
|
|
132
|
-
errorCode: ComponentErrorCodes.VALIDATION_ERROR,
|
|
133
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
134
|
-
});
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
let payment;
|
|
138
|
-
if (state.selectedPaymentMethod === 'sezzle') {
|
|
139
|
-
const insuranceValidation = this.insuranceFormRef ? await this.insuranceFormRef.validate() : { isValid: true };
|
|
140
|
-
const sezzleResult = await this.sezzlePaymentMethodRef.resolvePaymentMethod(insuranceValidation);
|
|
141
|
-
if (sezzleResult.error) {
|
|
142
|
-
this.errorEvent.emit({
|
|
143
|
-
message: sezzleResult.error.message,
|
|
144
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
145
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
146
|
-
});
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
else if (((_a = sezzleResult.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
150
|
-
payment = {
|
|
151
|
-
payment_mode: 'bnpl',
|
|
152
|
-
payment_token: undefined,
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
const paymentMethod = await this.getPaymentMethod(submitCheckoutArgs);
|
|
158
|
-
if (!paymentMethod) {
|
|
159
|
-
this.errorEvent.emit({
|
|
160
|
-
message: 'Payment method tokenization failed.',
|
|
161
|
-
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
162
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
163
|
-
});
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
payment = {
|
|
167
|
-
payment_mode: 'ecom',
|
|
168
|
-
payment_token: paymentMethod,
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
this.completeCheckout({
|
|
172
|
-
payment,
|
|
173
|
-
onSuccess: ({ checkout }) => {
|
|
174
|
-
this.checkoutComplete.emit({
|
|
175
|
-
checkout,
|
|
176
|
-
message: 'Checkout completed successfully',
|
|
177
|
-
});
|
|
178
|
-
},
|
|
179
|
-
onError: (error) => {
|
|
180
|
-
this.errorEvent.emit({
|
|
181
|
-
message: error.message,
|
|
182
|
-
errorCode: ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
|
|
183
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
184
|
-
});
|
|
185
|
-
},
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
render() {
|
|
189
|
-
return (h(Host, { key: '12db8b2a4ea3308772604d50e9223e48dda0f26f' }));
|
|
190
|
-
}
|
|
191
|
-
get hostEl() { return this; }
|
|
192
|
-
}, [0, "justifi-modular-checkout", {
|
|
193
|
-
"authToken": [1, "auth-token"],
|
|
194
|
-
"accountId": [1, "account-id"],
|
|
195
|
-
"checkoutId": [1, "checkout-id"],
|
|
196
|
-
"savePaymentMethod": [4, "save-payment-method"],
|
|
197
|
-
"validate": [64],
|
|
198
|
-
"submitCheckout": [64]
|
|
199
|
-
}]);
|
|
200
|
-
function defineCustomElement$1() {
|
|
201
|
-
if (typeof customElements === "undefined") {
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
const components = ["justifi-modular-checkout"];
|
|
205
|
-
components.forEach(tagName => { switch (tagName) {
|
|
206
|
-
case "justifi-modular-checkout":
|
|
207
|
-
if (!customElements.get(tagName)) {
|
|
208
|
-
customElements.define(tagName, CheckoutWrapper);
|
|
209
|
-
}
|
|
210
|
-
break;
|
|
211
|
-
} });
|
|
212
|
-
}
|
|
213
|
-
defineCustomElement$1();
|
|
214
|
-
|
|
215
|
-
const JustifiModularCheckout = CheckoutWrapper;
|
|
216
|
-
const defineCustomElement = defineCustomElement$1;
|
|
217
|
-
|
|
218
|
-
export { JustifiModularCheckout, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface JustifiPostalCodeForm extends Components.JustifiPostalCodeForm, HTMLElement {}
|
|
4
|
-
export const JustifiPostalCodeForm: {
|
|
5
|
-
prototype: JustifiPostalCodeForm;
|
|
6
|
-
new (): JustifiPostalCodeForm;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|