@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,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-D5bL1DOi.js');
|
|
4
|
-
var skeleton = require('./skeleton-CbZBGO47.js');
|
|
5
|
-
require('./event-types-YOY5TKUN.js');
|
|
6
|
-
var styledHost = require('./styled-host-DXNHOiqW.js');
|
|
7
|
-
var Analytics = require('./Analytics-CLEDjTfr.js');
|
|
8
|
-
var configState = require('./config-state-Dz9bnWHg.js');
|
|
9
|
-
require('./parts-9jMf1erK.js');
|
|
10
|
-
require('./package-D89BDRKu.js');
|
|
11
|
-
require('./Api-c8NBCwu4.js');
|
|
12
|
-
require('./utils-qOon0GWm.js');
|
|
13
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
14
|
-
require('./ComponentError-CEv9ltwy.js');
|
|
15
|
-
require('./Checkout-BsYZoJ0a.js');
|
|
16
|
-
require('./Pagination-Dediz133.js');
|
|
17
|
-
require('./Payment-D5UynU2f.js');
|
|
18
|
-
require('./Dispute-CruQTF6_.js');
|
|
19
|
-
require('./Refund-BFE-2OxN.js');
|
|
20
|
-
require('./Business-DCRzZf0w.js');
|
|
21
|
-
require('./helpers-B5OCqlIM.js');
|
|
22
|
-
require('./state-options-CIT9xdTz.js');
|
|
23
|
-
require('./index-BCtVWU61.js');
|
|
24
|
-
|
|
25
|
-
const CardFormSkeleton = (props) => {
|
|
26
|
-
const { isReady } = props;
|
|
27
|
-
if (isReady) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return (index.h("div", { class: "container-fluid p-0" },
|
|
31
|
-
index.h("div", { class: "mb-3" },
|
|
32
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "100px" }),
|
|
33
|
-
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
34
|
-
index.h("div", { class: "row" },
|
|
35
|
-
index.h("div", { class: "col-4 align-content-end" },
|
|
36
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "80px" }),
|
|
37
|
-
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
38
|
-
index.h("div", { class: "col-4 align-content-end" },
|
|
39
|
-
index.h(skeleton.Skeleton, { height: "36px" })),
|
|
40
|
-
index.h("div", { class: "col-4 align-content-end" },
|
|
41
|
-
index.h(skeleton.Skeleton, { height: "18px", width: "30px" }),
|
|
42
|
-
index.h(skeleton.Skeleton, { height: "36px" })))));
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const JustifiCardForm = class {
|
|
46
|
-
constructor(hostRef) {
|
|
47
|
-
index.registerInstance(this, hostRef);
|
|
48
|
-
this.isReady = false;
|
|
49
|
-
}
|
|
50
|
-
async componentWillLoad() {
|
|
51
|
-
await configState.waitForConfig();
|
|
52
|
-
this.iframeOrigin = configState.configState.iframeOrigin;
|
|
53
|
-
Analytics.checkPkgVersion();
|
|
54
|
-
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
55
|
-
}
|
|
56
|
-
componentDidRender() {
|
|
57
|
-
const elements = [
|
|
58
|
-
this.cardNumberIframeElement,
|
|
59
|
-
this.expirationMonthIframeElement,
|
|
60
|
-
this.expirationYearIframeElement,
|
|
61
|
-
this.cvvIframeElement,
|
|
62
|
-
];
|
|
63
|
-
Promise.all(elements.map((element) => {
|
|
64
|
-
return new Promise((resolve) => {
|
|
65
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
66
|
-
});
|
|
67
|
-
})).then(() => {
|
|
68
|
-
this.isReady = true;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
disconnectedCallback() {
|
|
72
|
-
var _a;
|
|
73
|
-
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
74
|
-
}
|
|
75
|
-
async validate() {
|
|
76
|
-
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
77
|
-
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
78
|
-
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
79
|
-
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
80
|
-
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
81
|
-
}
|
|
82
|
-
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
83
|
-
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
return (index.h(styledHost.StyledHost, { key: '1b42c4a2b0adbd4d98bffc0cc0355ba7b1e10474' }, index.h(CardFormSkeleton, { key: 'ae04801424ca38c3831b951bcb6835ffcc1ccd94', isReady: this.isReady }), index.h("hidden-input", { key: '55396096f088bc5cde3b003ddaa9afda6848dfda' }), index.h("div", { key: '18f68ac5871fcb7ba8ce270bb552871709f468dd', class: "container-fluid p-0", style: {
|
|
87
|
-
opacity: this.isReady ? '1' : '0',
|
|
88
|
-
height: this.isReady ? 'auto' : '0',
|
|
89
|
-
} }, index.h("div", { key: '3c9711c64c5d60a121545394c22c382be93882ed', class: "mb-3" }, index.h("iframe-input", { key: '45401d0f9f8abd4197bd6651c28f531562431989', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), index.h("div", { key: '60bae8a0fb35d86ec46d59f400e86af4a97d4c6a', class: "row" }, index.h("div", { key: '44883bb16cd5bb65fefb8e6b627b52625c2776d3', class: "col-4 align-content-end" }, index.h("iframe-input", { key: 'a9df6d2a23e7f586f08623a9e14c19264252c8e7', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), index.h("div", { key: '5436effb8f457cb4dae945e3d7ca29c9441df724', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '550096ddd5488e3cd11b0ab6985636eedc8f0dda', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), index.h("div", { key: 'a6a207066d6ef70c7c3545d9412eb6be0d252062', class: "col-4 align-content-end" }, index.h("iframe-input", { key: '74a1bec5108a25f6e6f953abf25bc756293dea99', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
exports.justifi_card_form = JustifiCardForm;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-D5bL1DOi.js');
|
|
4
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
5
|
-
var utils = require('./utils-qOon0GWm.js');
|
|
6
|
-
var checkout_store = require('./checkout.store-LEOetpmH.js');
|
|
7
|
-
var styledHost = require('./styled-host-DXNHOiqW.js');
|
|
8
|
-
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
-
require('./index-BCtVWU61.js');
|
|
11
|
-
|
|
12
|
-
const Summary = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (index.h(styledHost.StyledHost, { key: '9a2eea1693287ad73dfedd3ddc24e949e9d75148' }, index.h("section", { key: '1943be6cef0c4a1c830ddfc14d893c3906482534' }, index.h("div", { key: 'cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef' }, index.h("div", { key: 'b5bc944a5310252dc0720e3e7d709f1a57f898c8', part: parts.text }, checkout_store.state === null || checkout_store.state === void 0 ? void 0 : checkout_store.state.paymentDescription), index.h("div", { key: 'dbe53880d7c3ff8d4513a570e1b024f1e2f43028' }, index.h("span", { key: 'd8986a9265463d8f9d7f62598cc4ec3203081c09', part: parts.text }, "Total"), "\u00A0", index.h("span", { key: '32cbc6e259fdee2c71ad72fcf59ab157704c4758', part: parts.text }, utils.formatCurrency(+(checkout_store.state === null || checkout_store.state === void 0 ? void 0 : checkout_store.state.totalAmount))))))));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.justifi_checkout_summary = Summary;
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-D5bL1DOi.js');
|
|
4
|
-
var checkout_store = require('./checkout.store-LEOetpmH.js');
|
|
5
|
-
var Analytics = require('./Analytics-CLEDjTfr.js');
|
|
6
|
-
require('./config-state-Dz9bnWHg.js');
|
|
7
|
-
require('./utils-qOon0GWm.js');
|
|
8
|
-
var ComponentError = require('./ComponentError-CEv9ltwy.js');
|
|
9
|
-
require('./Checkout-BsYZoJ0a.js');
|
|
10
|
-
require('./Pagination-Dediz133.js');
|
|
11
|
-
require('./Payment-D5UynU2f.js');
|
|
12
|
-
require('./Refund-BFE-2OxN.js');
|
|
13
|
-
require('./Business-DCRzZf0w.js');
|
|
14
|
-
require('./Dispute-CruQTF6_.js');
|
|
15
|
-
var checkoutActions = require('./checkout-actions-CRbQgLn0.js');
|
|
16
|
-
var checkout_service = require('./checkout.service-Bln6jCAj.js');
|
|
17
|
-
require('./index-BCtVWU61.js');
|
|
18
|
-
require('./package-D89BDRKu.js');
|
|
19
|
-
require('./Api-c8NBCwu4.js');
|
|
20
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
21
|
-
require('./helpers-B5OCqlIM.js');
|
|
22
|
-
require('./state-options-CIT9xdTz.js');
|
|
23
|
-
require('./utils-IGCnjtqc.js');
|
|
24
|
-
|
|
25
|
-
const CheckoutWrapper = class {
|
|
26
|
-
constructor(hostRef) {
|
|
27
|
-
index.registerInstance(this, hostRef);
|
|
28
|
-
this.errorEvent = index.createEvent(this, "error-event");
|
|
29
|
-
this.checkoutComplete = index.createEvent(this, "checkout-complete-event");
|
|
30
|
-
this.savePaymentMethod = false;
|
|
31
|
-
}
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
this.observer = new MutationObserver(() => {
|
|
34
|
-
this.queryFormRefs();
|
|
35
|
-
});
|
|
36
|
-
this.observer.observe(this.hostEl, {
|
|
37
|
-
childList: true,
|
|
38
|
-
subtree: true
|
|
39
|
-
});
|
|
40
|
-
checkout_store.state.checkoutId = this.checkoutId;
|
|
41
|
-
const config = {
|
|
42
|
-
authToken: this.authToken,
|
|
43
|
-
checkoutId: this.checkoutId,
|
|
44
|
-
service: new checkout_service.CheckoutService()
|
|
45
|
-
};
|
|
46
|
-
this.getCheckout = checkoutActions.makeGetCheckout(config);
|
|
47
|
-
this.completeCheckout = checkoutActions.makeCheckoutComplete(config);
|
|
48
|
-
}
|
|
49
|
-
componentWillLoad() {
|
|
50
|
-
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
51
|
-
Analytics.checkPkgVersion();
|
|
52
|
-
checkout_store.state.authToken = this.authToken;
|
|
53
|
-
checkout_store.state.accountId = this.accountId;
|
|
54
|
-
this.fetchCheckout();
|
|
55
|
-
}
|
|
56
|
-
componentDidLoad() {
|
|
57
|
-
this.queryFormRefs();
|
|
58
|
-
}
|
|
59
|
-
disconnectedCallback() {
|
|
60
|
-
var _a;
|
|
61
|
-
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
62
|
-
}
|
|
63
|
-
fetchCheckout() {
|
|
64
|
-
if (this.getCheckout) {
|
|
65
|
-
this.getCheckout({
|
|
66
|
-
onSuccess: ({ checkout }) => {
|
|
67
|
-
var _a, _b, _c, _d;
|
|
68
|
-
checkout_store.state.paymentMethods = checkout.payment_methods;
|
|
69
|
-
checkout_store.state.paymentMethodGroupId = checkout.payment_method_group_id;
|
|
70
|
-
checkout_store.state.paymentDescription = checkout.payment_description;
|
|
71
|
-
checkout_store.state.totalAmount = checkout.total_amount;
|
|
72
|
-
checkout_store.state.paymentAmount = checkout.payment_amount;
|
|
73
|
-
checkout_store.state.bnplEnabled = checkout.payment_settings.bnpl_payments;
|
|
74
|
-
checkout_store.state.bnplProviderClientId = (_a = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _a === void 0 ? void 0 : _a.provider_client_id;
|
|
75
|
-
checkout_store.state.bnplProviderMode = (_b = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _b === void 0 ? void 0 : _b.provider_mode;
|
|
76
|
-
checkout_store.state.bnplProviderApiVersion = (_c = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _c === void 0 ? void 0 : _c.provider_api_version;
|
|
77
|
-
checkout_store.state.bnplProviderCheckoutUrl = (_d = checkout === null || checkout === void 0 ? void 0 : checkout.bnpl) === null || _d === void 0 ? void 0 : _d.provider_checkout_url;
|
|
78
|
-
},
|
|
79
|
-
onError: (error) => {
|
|
80
|
-
this.errorEvent.emit({
|
|
81
|
-
message: error.message,
|
|
82
|
-
errorCode: ComponentError.ComponentErrorCodes.FETCH_ERROR,
|
|
83
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
queryFormRefs() {
|
|
90
|
-
this.paymentMethodFormRef = this.hostEl.querySelector('justifi-card-form, justifi-bank-account-form');
|
|
91
|
-
this.billingInformationFormRef = this.hostEl.querySelector('justifi-billing-information-form, justifi-postal-code-form');
|
|
92
|
-
this.insuranceFormRef = this.hostEl.querySelector('justifi-season-interruption-insurance');
|
|
93
|
-
this.sezzlePaymentMethodRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
94
|
-
}
|
|
95
|
-
async tokenizePaymentMethod(tokenizeArgs) {
|
|
96
|
-
var _a, _b;
|
|
97
|
-
const billingInfoValues = (_b = await ((_a = this.billingInformationFormRef) === null || _a === void 0 ? void 0 : _a.getValues())) !== null && _b !== void 0 ? _b : {};
|
|
98
|
-
const combinedBillingInfo = Object.assign(Object.assign({}, tokenizeArgs), billingInfoValues);
|
|
99
|
-
const paymentMethodMetadata = Object.assign({ accountId: this.accountId, payment_method_group_id: undefined }, combinedBillingInfo);
|
|
100
|
-
if (this.savePaymentMethod) {
|
|
101
|
-
paymentMethodMetadata.payment_method_group_id = checkout_store.state.paymentMethodGroupId;
|
|
102
|
-
}
|
|
103
|
-
return this.paymentMethodFormRef.tokenize({
|
|
104
|
-
clientId: this.authToken,
|
|
105
|
-
paymentMethodMetadata,
|
|
106
|
-
account: this.accountId,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
async getPaymentMethod(submitCheckoutArgs) {
|
|
110
|
-
if (!this.paymentMethodFormRef) {
|
|
111
|
-
return checkout_store.state.selectedPaymentMethod;
|
|
112
|
-
}
|
|
113
|
-
const { error, id: token } = await this.tokenizePaymentMethod(submitCheckoutArgs);
|
|
114
|
-
if (error) {
|
|
115
|
-
this.errorEvent.emit({
|
|
116
|
-
errorCode: error.code,
|
|
117
|
-
message: error.message,
|
|
118
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
119
|
-
});
|
|
120
|
-
return undefined;
|
|
121
|
-
}
|
|
122
|
-
return token;
|
|
123
|
-
}
|
|
124
|
-
async validate() {
|
|
125
|
-
var _a, _b;
|
|
126
|
-
const promises = [
|
|
127
|
-
(_a = this.paymentMethodFormRef) === null || _a === void 0 ? void 0 : _a.validate(),
|
|
128
|
-
(_b = this.billingInformationFormRef) === null || _b === void 0 ? void 0 : _b.validate()
|
|
129
|
-
];
|
|
130
|
-
if (this.insuranceFormRef) {
|
|
131
|
-
promises.push(this.insuranceFormRef.validate());
|
|
132
|
-
}
|
|
133
|
-
const validationResults = await Promise.all(promises);
|
|
134
|
-
return validationResults.every(result => (result === null || result === void 0 ? void 0 : result.isValid) !== false);
|
|
135
|
-
}
|
|
136
|
-
async submitCheckout(submitCheckoutArgs) {
|
|
137
|
-
var _a;
|
|
138
|
-
const isValid = await this.validate();
|
|
139
|
-
if (!isValid) {
|
|
140
|
-
this.errorEvent.emit({
|
|
141
|
-
message: 'Please fill in all required fields.',
|
|
142
|
-
errorCode: ComponentError.ComponentErrorCodes.VALIDATION_ERROR,
|
|
143
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
144
|
-
});
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
let payment;
|
|
148
|
-
if (checkout_store.state.selectedPaymentMethod === 'sezzle') {
|
|
149
|
-
const insuranceValidation = this.insuranceFormRef ? await this.insuranceFormRef.validate() : { isValid: true };
|
|
150
|
-
const sezzleResult = await this.sezzlePaymentMethodRef.resolvePaymentMethod(insuranceValidation);
|
|
151
|
-
if (sezzleResult.error) {
|
|
152
|
-
this.errorEvent.emit({
|
|
153
|
-
message: sezzleResult.error.message,
|
|
154
|
-
errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
|
|
155
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
156
|
-
});
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
else if (((_a = sezzleResult.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
160
|
-
payment = {
|
|
161
|
-
payment_mode: 'bnpl',
|
|
162
|
-
payment_token: undefined,
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
const paymentMethod = await this.getPaymentMethod(submitCheckoutArgs);
|
|
168
|
-
if (!paymentMethod) {
|
|
169
|
-
this.errorEvent.emit({
|
|
170
|
-
message: 'Payment method tokenization failed.',
|
|
171
|
-
errorCode: ComponentError.ComponentErrorCodes.TOKENIZE_ERROR,
|
|
172
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
173
|
-
});
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
payment = {
|
|
177
|
-
payment_mode: 'ecom',
|
|
178
|
-
payment_token: paymentMethod,
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
this.completeCheckout({
|
|
182
|
-
payment,
|
|
183
|
-
onSuccess: ({ checkout }) => {
|
|
184
|
-
this.checkoutComplete.emit({
|
|
185
|
-
checkout,
|
|
186
|
-
message: 'Checkout completed successfully',
|
|
187
|
-
});
|
|
188
|
-
},
|
|
189
|
-
onError: (error) => {
|
|
190
|
-
this.errorEvent.emit({
|
|
191
|
-
message: error.message,
|
|
192
|
-
errorCode: ComponentError.ComponentErrorCodes.COMPLETE_CHECKOUT_ERROR,
|
|
193
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
194
|
-
});
|
|
195
|
-
},
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
render() {
|
|
199
|
-
return (index.h(index.Host, { key: '12db8b2a4ea3308772604d50e9223e48dda0f26f' }));
|
|
200
|
-
}
|
|
201
|
-
get hostEl() { return index.getElement(this); }
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
exports.justifi_modular_checkout = CheckoutWrapper;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-D5bL1DOi.js');
|
|
4
|
-
var styledHost = require('./styled-host-DXNHOiqW.js');
|
|
5
|
-
require('./event-types-YOY5TKUN.js');
|
|
6
|
-
var utils = require('./utils-DAyWinG2.js');
|
|
7
|
-
var form = require('./form-CWW8IM-X.js');
|
|
8
|
-
var billingFormSchema = require('./billing-form-schema-X1bkxteI.js');
|
|
9
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
-
require('./schema-validations-CllkToCZ.js');
|
|
11
|
-
require('./state-options-CIT9xdTz.js');
|
|
12
|
-
require('./business-form-options-CMII7nIK.js');
|
|
13
|
-
require('./Business-DCRzZf0w.js');
|
|
14
|
-
require('./helpers-B5OCqlIM.js');
|
|
15
|
-
|
|
16
|
-
const PostalCodeForm = class {
|
|
17
|
-
constructor(hostRef) {
|
|
18
|
-
index.registerInstance(this, hostRef);
|
|
19
|
-
this.errors = {};
|
|
20
|
-
this.inputHandler = (name, value) => {
|
|
21
|
-
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
componentWillLoad() {
|
|
25
|
-
this.formController = new form.FormController(billingFormSchema.billingFormSchema(true));
|
|
26
|
-
}
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
29
|
-
this.formController.errors.subscribe(errors => {
|
|
30
|
-
this.errors = Object.assign({}, errors);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
async getValues() {
|
|
34
|
-
return this.formController.values.getValue();
|
|
35
|
-
}
|
|
36
|
-
async fill(fields) {
|
|
37
|
-
this.formController.setInitialValues(fields);
|
|
38
|
-
}
|
|
39
|
-
async validate() {
|
|
40
|
-
let isValid = await this.formController.validate();
|
|
41
|
-
return { isValid: isValid };
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
45
|
-
return (index.h(styledHost.StyledHost, { key: 'e5cdb9b21be1e5f4ee6fd21a2d919b2d9271b163' }, index.h("form", { key: '29c0a3edaad9877d50ecc9e4424ca2f5e667dc30' }, index.h("form-control-text", { key: '00e8688c8a8e9b91df5089e2fb97c8b71673a3fd', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: utils.numberOnlyHandler }))));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
exports.justifi_postal_code_form = PostalCodeForm;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-D5bL1DOi.js');
|
|
4
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
5
|
-
var styledHost = require('./styled-host-DXNHOiqW.js');
|
|
6
|
-
require('./event-types-YOY5TKUN.js');
|
|
7
|
-
var checkout_store = require('./checkout.store-LEOetpmH.js');
|
|
8
|
-
var paymentMethodOptionUtils = require('./payment-method-option-utils-imuSE7KV.js');
|
|
9
|
-
require('./index-BCtVWU61.js');
|
|
10
|
-
require('./utils-qOon0GWm.js');
|
|
11
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
12
|
-
|
|
13
|
-
const SavedPaymentMethods = class {
|
|
14
|
-
constructor(hostRef) {
|
|
15
|
-
index.registerInstance(this, hostRef);
|
|
16
|
-
this.onPaymentMethodOptionClick = (paymentMethodId) => (e) => {
|
|
17
|
-
e.preventDefault();
|
|
18
|
-
checkout_store.state.selectedPaymentMethod = paymentMethodId;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
if (!checkout_store.state.paymentMethods.length) {
|
|
23
|
-
console.warn('No saved payment methods available.');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return (index.h(styledHost.StyledHost, { key: '7bebb3f8ff2a2abe400e1d099154a1729913140c' }, index.h("div", { key: '3a5798c5ceba63160dceecb0dc65f8a211bb5110', class: "saved-payment-methods" }, checkout_store.state.paymentMethods.length ? checkout_store.state.paymentMethods.map((paymentMethod) => (index.h("div", { class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) }, index.h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: checkout_store.state.selectedPaymentMethod === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${paymentMethodOptionUtils.CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
exports.justifi_saved_payment_methods = SavedPaymentMethods;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-D5bL1DOi.js');
|
|
4
|
-
var utils = require('./utils-qOon0GWm.js');
|
|
5
|
-
var parts = require('./parts-9jMf1erK.js');
|
|
6
|
-
var checkout_store = require('./checkout.store-LEOetpmH.js');
|
|
7
|
-
var styledHost = require('./styled-host-DXNHOiqW.js');
|
|
8
|
-
require('./event-types-YOY5TKUN.js');
|
|
9
|
-
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
|
-
require('./index-BCtVWU61.js');
|
|
11
|
-
|
|
12
|
-
const sezzleLogo = (index.h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
13
|
-
display: 'inline',
|
|
14
|
-
width: '80px',
|
|
15
|
-
marginLeft: '5px',
|
|
16
|
-
marginTop: '-5px',
|
|
17
|
-
} }));
|
|
18
|
-
const SezzlePaymentMethod = class {
|
|
19
|
-
constructor(hostRef) {
|
|
20
|
-
index.registerInstance(this, hostRef);
|
|
21
|
-
this.paymentMethodOptionSelected = index.createEvent(this, "paymentMethodOptionSelected");
|
|
22
|
-
this.paymentMethodOptionId = 'sezzle';
|
|
23
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
24
|
-
e.preventDefault();
|
|
25
|
-
checkout_store.state.selectedPaymentMethod = this.paymentMethodOptionId;
|
|
26
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId);
|
|
27
|
-
};
|
|
28
|
-
this.initializeSezzleCheckout = () => {
|
|
29
|
-
let resolveSezzlePromise;
|
|
30
|
-
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
31
|
-
const amount = Number(checkout_store.state.paymentAmount);
|
|
32
|
-
const Checkout = window.Checkout;
|
|
33
|
-
const checkout = new Checkout({
|
|
34
|
-
mode: 'popup',
|
|
35
|
-
publicKey: checkout_store.state.bnplProviderClientId,
|
|
36
|
-
apiMode: checkout_store.state.bnplProviderMode,
|
|
37
|
-
apiVersion: checkout_store.state.bnplProviderApiVersion,
|
|
38
|
-
});
|
|
39
|
-
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
40
|
-
checkout.init({
|
|
41
|
-
onClick: function (event) {
|
|
42
|
-
event.preventDefault();
|
|
43
|
-
checkout.startCheckout({
|
|
44
|
-
checkout_url: checkout_store.state.bnplProviderCheckoutUrl,
|
|
45
|
-
});
|
|
46
|
-
},
|
|
47
|
-
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
48
|
-
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
49
|
-
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
50
|
-
});
|
|
51
|
-
this.sezzleCheckout = checkout;
|
|
52
|
-
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
componentDidRender() {
|
|
56
|
-
if (!this.scriptRef)
|
|
57
|
-
return;
|
|
58
|
-
this.scriptRef.onload = () => {
|
|
59
|
-
this.sezzleButtonRef = document.createElement('button');
|
|
60
|
-
this.initializeSezzleCheckout();
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
64
|
-
if (!insuranceValidation.isValid) {
|
|
65
|
-
return { validationError: true };
|
|
66
|
-
}
|
|
67
|
-
this.sezzleButtonRef.click();
|
|
68
|
-
return this.sezzlePromise;
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
if (!checkout_store.state.bnplEnabled) {
|
|
73
|
-
console.warn('justifi-sezzle-payment-method: BNPL is not enabled for this account.');
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return (index.h(styledHost.StyledHost, { class: "payment-method" }, index.h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { class: "radio-list-item p-3", part: parts.radioListItem, onClick: this.onPaymentMethodOptionClick }, index.h("form-control-radio", { name: "paymentMethodType", value: this.paymentMethodOptionId, checked: checkout_store.state.selectedPaymentMethod === this.paymentMethodOptionId, label: index.h("div", null, index.h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", null, index.h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", index.h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { class: "fw-bold" }, utils.formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents))))) }))));
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
exports.justifi_sezzle_payment_method = SezzlePaymentMethod;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var utils = require('./utils-qOon0GWm.js');
|
|
4
|
-
|
|
5
|
-
class PaymentMethodOption {
|
|
6
|
-
constructor(paymentMethod) {
|
|
7
|
-
this.id = paymentMethod.id;
|
|
8
|
-
this.brand = paymentMethod.brand;
|
|
9
|
-
this.acct_last_four = paymentMethod.acct_last_four;
|
|
10
|
-
this.type = utils.snakeToCamel(paymentMethod.type);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CardBrandLabels = void 0;
|
|
14
|
-
(function (CardBrandLabels) {
|
|
15
|
-
CardBrandLabels["american_express"] = "American Express";
|
|
16
|
-
CardBrandLabels["diners_club"] = "Diners Club";
|
|
17
|
-
CardBrandLabels["discover"] = "Discover";
|
|
18
|
-
CardBrandLabels["jcb"] = "JCB";
|
|
19
|
-
CardBrandLabels["mastercard"] = "Mastercard";
|
|
20
|
-
CardBrandLabels["china_unionpay"] = "UnionPay";
|
|
21
|
-
CardBrandLabels["visa"] = "Visa";
|
|
22
|
-
CardBrandLabels["unknown"] = "Unknown";
|
|
23
|
-
})(exports.CardBrandLabels || (exports.CardBrandLabels = {}));
|
|
24
|
-
|
|
25
|
-
exports.PaymentMethodOption = PaymentMethodOption;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|