@justifi/webcomponents 5.7.3-rc-01 → 5.7.3-rc-02
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-BTgAlgVL.js} +3 -3
- package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +3 -4
- package/dist/cjs/{justifi-bank-account-form.cjs.entry.js → bank-account-form.cjs.entry.js} +8 -30
- package/dist/cjs/{business-additional-questions-schema-CHOaeZot.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-DmpEndsx.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-ev-3rHag.js → business.service-DNoCHqtI.js} +2 -3
- package/dist/cjs/{justifi-card-form.cjs.entry.js → card-form.cjs.entry.js} +9 -31
- package/dist/cjs/{Analytics-DYN4hp2b.js → check-pkg-version-CgQ8N_ta.js} +22 -23
- package/dist/cjs/{checkout.service-D4hTYr1i.js → checkout.service-C3R0uykH.js} +2 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper_2.cjs.entry.js} +0 -100
- package/dist/cjs/{dispute.service-Dru9NStj.js → dispute.service-CaA-mq-i.js} +2 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +105 -0
- package/dist/cjs/{get-payment-details-AOibpML7.js → get-payment-details-CnPsEZA8.js} +2 -3
- package/dist/cjs/{get-subaccounts-Dw7CbPDi.js → get-subaccounts-CgOAdXG4.js} +2 -3
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- 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 +49 -23
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -10
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +34 -34
- package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +234 -0
- package/dist/cjs/{justifi-billing-information-form.cjs.entry.js → justifi-billing-information-form_2.cjs.entry.js} +58 -6
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +13 -14
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-modular-checkout.cjs.entry.js → justifi-checkout-summary_2.cjs.entry.js} +23 -11
- package/dist/cjs/justifi-checkout.cjs.entry.js +92 -48
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +7 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -9
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +166 -0
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +15 -16
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -8
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +6 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DF9mLjoQ.js → package-wSbEFwqE.js} +1 -1
- package/dist/cjs/{payment.service-rsnscZu7.js → payment.service-C-HKmIG6.js} +2 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{payout.service-BnmI3X4n.js → payout.service-BHU3EPR2.js} +2 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{schema-validations-C0BNwMBi.js → schema-validations-BSeMee-o.js} +31 -54
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
- package/dist/cjs/{terminal-orders-table-OxMHSAJ1.js → terminal-orders-table-C3KZTeE5.js} +2 -3
- package/dist/cjs/{terminal.service--PPaq5xS.js → terminal.service-Bc1YJWi0.js} +2 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +36 -8
- package/dist/collection/components/business-forms/schemas/schema-validations.js +1 -47
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
- package/dist/collection/components/checkout/checkout.js +102 -37
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.js +37 -26
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -2
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -2
- package/dist/docs.json +177 -203
- package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-CH19cJxH.js} +3 -3
- package/dist/esm/{Refund-CwUn_GFj.js → Refund-BKe90wSq.js} +55 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-D_Q0kAPD.js → badge-BoemLewg.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +5 -6
- package/dist/{module/bank-account-form2.js → esm/bank-account-form.entry.js} +12 -36
- package/dist/esm/{business-additional-questions-schema-0lssJqN7.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-Bel1K5mu.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BM8hLxHS.js → business.service-wY8gOZQr.js} +2 -3
- package/dist/esm/{button-BVAxQPpP.js → button-BcLzheaP.js} +1 -1
- package/dist/esm/{justifi-card-form.entry.js → card-form.entry.js} +12 -34
- package/dist/esm/{Analytics-DR277kvb.js → check-pkg-version-BmebRZ4u.js} +22 -23
- package/dist/esm/{checkout.service-CuCgG9hv.js → checkout.service-Ci9Zkxiz.js} +2 -3
- package/dist/esm/checkouts-list-core.entry.js +7 -8
- package/dist/esm/{checkouts-table-Cc6U-0md.js → checkouts-table-ub2cX2KR.js} +2 -2
- package/dist/esm/{custom-popper_4.entry.js → custom-popper_2.entry.js} +3 -101
- package/dist/esm/{dispute.service-rB4Hq6ot.js → dispute.service-D3IjL7Z8.js} +2 -3
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-_SAT-ts2.js → form-control-error-text-C4vfc3el.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +2 -2
- package/dist/esm/{form-control-help-text-Cjeu_VrV.js → form-control-help-text-Dsr1zpTw.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number-masked_2.entry.js +2 -2
- package/dist/esm/form-control-number.entry.js +3 -3
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +102 -0
- package/dist/esm/{get-payment-details-DtkGDTwo.js → get-payment-details-CmVKt1jR.js} +2 -3
- package/dist/esm/{get-subaccounts-C-ENQBmY.js → get-subaccounts-BRX7HFGO.js} +2 -3
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-5FIT-wD7.js → header-1-CmImLcLi.js} +1 -1
- package/dist/esm/{header-3-Ce9WLWBm.js → header-3-BMoxz2Hr.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +3 -3
- package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
- package/dist/esm/{insurance-state-BcwZy_5w.js → insurance-state-DMexHdvO.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +43 -17
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -7
- package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
- package/dist/esm/justifi-bank-account-form_4.entry.js +229 -0
- package/dist/esm/justifi-billing-information-form_2.entry.js +100 -0
- package/dist/esm/justifi-business-details.entry.js +7 -8
- package/dist/esm/justifi-business-form.entry.js +13 -14
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +7 -7
- package/dist/esm/{justifi-modular-checkout.entry.js → justifi-checkout-summary_2.entry.js} +22 -11
- package/dist/esm/justifi-checkout.entry.js +91 -47
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -4
- package/dist/esm/justifi-checkouts-list.entry.js +10 -11
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +5 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +8 -9
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -7
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +8 -9
- package/dist/esm/justifi-owner-form_3.entry.js +8 -9
- package/dist/esm/justifi-payment-details.entry.js +8 -9
- package/dist/esm/justifi-payment-method-options_3.entry.js +162 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -9
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +9 -10
- package/dist/esm/justifi-payout-details.entry.js +7 -8
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -9
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +10 -11
- package/dist/esm/justifi-refund-payment.entry.js +10 -11
- package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +5 -5
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -6
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminals-list.entry.js +9 -10
- package/dist/esm/justifi-tokenize-payment-method.entry.js +6 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CyXXks-Q.js → package-CJdXAC5R.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-_6eQgwfE.js → parts-C71Mxtso.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +5 -5
- package/dist/esm/{payment.service-DoUv1QsX.js → payment.service-ddFQWXPn.js} +2 -3
- package/dist/esm/payments-list-core.entry.js +8 -9
- package/dist/esm/{payments-status-BeL2gi3P.js → payments-status-DvsFQolO.js} +1 -1
- package/dist/esm/{payments-table-MrDAlH2o.js → payments-table-CCKeaI5x.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +6 -6
- package/dist/esm/{payout.service-B_Fm08zQ.js → payout.service-Ws4Pebcz.js} +2 -3
- package/dist/esm/payouts-list-core.entry.js +8 -9
- package/dist/esm/{payouts-status-BxbhUjA3.js → payouts-status-BkM4Gvme.js} +1 -1
- package/dist/esm/{payouts-table-HoX3UYIj.js → payouts-table-CqBOvPOo.js} +2 -2
- package/dist/esm/{schema-validations-DYV7urvw.js → schema-validations-DLWfpHyI.js} +2 -23
- package/dist/esm/{skeleton-CPNYhX-V.js → skeleton-BVM4XTj9.js} +1 -1
- package/dist/esm/{spinner-Cl-6YJPf.js → spinner-BsxFRVXW.js} +1 -1
- package/dist/esm/{table-RCk8zh4L.js → table-DxdC1lXb.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +7 -8
- package/dist/esm/{terminal-orders-table-DxHLNkx_.js → terminal-orders-table-DV7nRYuE.js} +4 -5
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-2VkdfNas.js → terminal.service-DH8gRG1H.js} +2 -3
- package/dist/esm/terminals-list-core.entry.js +7 -8
- package/dist/esm/{terminals-table-v-LOevYA.js → terminals-table-DUHel128.js} +2 -2
- package/dist/esm/{utils-1WrbuHVR.js → utils-B-aPFy3u.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +0 -1
- package/dist/module/Refund.js +55 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- package/dist/module/bank-account-form.js +83 -1
- package/dist/{esm/justifi-bank-account-form.entry.js → module/bank-account.js} +44 -27
- package/dist/module/billing-form.js +25 -19
- package/dist/{esm/justifi-billing-information-form.entry.js → module/billing-form2.js} +61 -19
- package/dist/module/business-bank-account-form-step-core.js +37 -11
- package/dist/module/business-bank-account-form-step.js +0 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/button.js +1 -1
- package/dist/module/card-form.js +91 -1
- package/dist/module/card-form2.js +30 -15
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkouts-list-core2.js +0 -1
- package/dist/module/dispute-response-actions.js +0 -1
- package/dist/module/form.js +1 -1
- package/dist/module/get-payment-details.js +0 -1
- package/dist/module/get-subaccounts.js +0 -1
- package/dist/module/header-3.js +8 -0
- package/dist/module/justifi-bank-account-form.js +1 -98
- package/dist/module/justifi-billing-information-form.js +1 -89
- package/dist/module/justifi-business-form.js +0 -1
- package/dist/module/justifi-card-form.js +1 -106
- package/dist/module/justifi-checkout-core.js +201 -1
- package/dist/module/justifi-checkout-summary.js +1 -32
- package/dist/module/justifi-checkout.js +104 -109
- package/dist/module/justifi-checkouts-list-filters.js +0 -1
- package/dist/module/justifi-checkouts-list.js +0 -1
- package/dist/module/justifi-gross-payment-chart.js +0 -1
- package/dist/module/justifi-modular-checkout.js +1 -214
- package/dist/module/justifi-new-payment-method.js +214 -1
- package/dist/module/justifi-order-terminals.js +2 -3
- package/dist/module/justifi-payment-provisioning.js +0 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -2
- package/dist/module/justifi-payments-list.js +0 -1
- package/dist/module/justifi-payout-details.js +0 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -2
- package/dist/module/justifi-payouts-list.js +0 -1
- package/dist/module/justifi-postal-code-form.js +1 -81
- package/dist/module/justifi-refund-payment.js +1 -2
- package/dist/module/justifi-saved-payment-method.js +57 -1
- package/dist/module/justifi-saved-payment-methods.js +1 -53
- package/dist/module/justifi-season-interruption-insurance.js +2 -4
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- package/dist/module/justifi-terminal-orders-list-filters.js +0 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -2
- package/dist/module/justifi-terminals-list-filters.js +0 -1
- package/dist/module/justifi-terminals-list.js +1 -2
- package/dist/module/justifi-tokenize-payment-method.js +8 -75
- package/dist/module/modular-checkout.js +269 -0
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-method-options.js +27 -100
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +0 -1
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +0 -1
- package/dist/module/postal-code-form.js +83 -0
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-methods.js +55 -0
- package/dist/module/schema-validations.js +2 -23
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/{esm/justifi-sezzle-payment-method.entry.js → module/sezzle-payment-method.js} +46 -14
- package/dist/module/summary.js +34 -0
- package/dist/module/terminal-orders-list-core2.js +0 -1
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +0 -1
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
- package/dist/types/components/checkout/checkout.d.ts +19 -9
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -1
- package/dist/types/components.d.ts +5 -1
- package/dist/webcomponents/p-07e8c50a.entry.js +1 -0
- package/dist/webcomponents/{p-be51c7c5.entry.js → p-0d038c74.entry.js} +1 -1
- package/dist/webcomponents/p-0d24f707.entry.js +1 -0
- package/dist/webcomponents/p-0f07e5d2.entry.js +1 -0
- package/dist/webcomponents/{p-ff223825.entry.js → p-114d2d7e.entry.js} +1 -1
- package/dist/webcomponents/p-16c567ac.entry.js +1 -0
- package/dist/webcomponents/{p-20d7db42.entry.js → p-1debe4fc.entry.js} +1 -1
- package/dist/webcomponents/p-1tXUo5Ef.js +1 -0
- package/dist/webcomponents/{p-ce291c6a.entry.js → p-20ac139f.entry.js} +1 -1
- package/dist/webcomponents/{p-b3e6d27c.entry.js → p-28190487.entry.js} +1 -1
- package/dist/webcomponents/p-30b1b0d4.entry.js +1 -0
- package/dist/webcomponents/{p-1d64d86b.entry.js → p-31b3575b.entry.js} +1 -1
- package/dist/webcomponents/p-32d41de6.entry.js +1 -0
- package/dist/webcomponents/p-3523e4d2.entry.js +1 -0
- package/dist/webcomponents/p-3c172b0a.entry.js +1 -0
- package/dist/webcomponents/{p-5ea3cfca.entry.js → p-498ef7fe.entry.js} +1 -1
- package/dist/webcomponents/p-4cdc323c.entry.js +1 -0
- package/dist/webcomponents/p-54487455.entry.js +1 -0
- package/dist/webcomponents/p-55b2ccd4.entry.js +1 -0
- package/dist/webcomponents/p-56368e10.entry.js +1 -0
- package/dist/webcomponents/{p-712220f9.entry.js → p-62308de3.entry.js} +1 -1
- package/dist/webcomponents/p-655e9c99.entry.js +1 -0
- package/dist/webcomponents/p-6ae0dad9.entry.js +1 -0
- package/dist/webcomponents/p-6ed72565.entry.js +1 -0
- package/dist/webcomponents/{p-8532c68c.entry.js → p-7982b38b.entry.js} +1 -1
- package/dist/webcomponents/p-7efbe6e6.entry.js +1 -0
- package/dist/webcomponents/p-803b249d.entry.js +1 -0
- package/dist/webcomponents/p-819c5da9.entry.js +1 -0
- package/dist/webcomponents/p-85b73bd5.entry.js +1 -0
- package/dist/webcomponents/p-8a2d963a.entry.js +1 -0
- package/dist/webcomponents/p-90521984.entry.js +1 -0
- package/dist/webcomponents/p-93564eb7.entry.js +1 -0
- package/dist/webcomponents/p-95aada97.entry.js +1 -0
- package/dist/webcomponents/{p-df2ad580.entry.js → p-9a4b9734.entry.js} +1 -1
- package/dist/webcomponents/{p-BSUCBhkJ.js → p-B1jCcGW-.js} +1 -1
- package/dist/webcomponents/{p-CwHYDF33.js → p-BRvTM0jE.js} +1 -1
- package/dist/webcomponents/p-BZAglFez.js +1 -0
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/p-BeOlrj_S.js +1 -0
- package/dist/webcomponents/p-BjIcn6FF.js +1 -0
- package/dist/webcomponents/{p-B7VsiIW-.js → p-BvkP2v3x.js} +1 -1
- package/dist/webcomponents/{p-_6eQgwfE.js → p-C71Mxtso.js} +1 -1
- package/dist/webcomponents/{p-Ctw40vkk.js → p-C8EG4ZSX.js} +1 -1
- package/dist/webcomponents/p-C8rAwXW9.js +1 -0
- package/dist/webcomponents/p-CA9D3qnA.js +1 -0
- package/dist/webcomponents/p-CFpYbRwn.js +1 -0
- package/dist/webcomponents/p-CGCMYhyV.js +1 -0
- package/dist/webcomponents/p-CJdXAC5R.js +1 -0
- package/dist/webcomponents/p-CO90ONTY.js +1 -0
- package/dist/webcomponents/{p-Dw6NWKHn.js → p-Cl-Q3cHB.js} +1 -1
- package/dist/webcomponents/p-DFPGAF4g.js +1 -0
- package/dist/webcomponents/p-DHP6oxsO.js +1 -0
- package/dist/webcomponents/{p-D3SYNGyb.js → p-DLr6u3Be.js} +1 -1
- package/dist/webcomponents/p-DT6jDcoi.js +1 -0
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DX1Drndq.js +1 -0
- package/dist/webcomponents/p-Db-JSm6-.js +1 -0
- package/dist/webcomponents/p-Dc10zfEZ.js +1 -0
- package/dist/webcomponents/p-Dw516k9e.js +1 -0
- package/dist/webcomponents/p-DwxSNAz7.js +1 -0
- package/dist/webcomponents/{p-CnnRWu7z.js → p-Fa3dQnb9.js} +1 -1
- package/dist/webcomponents/p-IrS5pxMU.js +1 -0
- package/dist/webcomponents/p-JOSiCHl7.js +1 -0
- package/dist/webcomponents/p-RadC5UjV.js +1 -0
- package/dist/webcomponents/p-SuXHDcwL.js +1 -0
- package/dist/webcomponents/p-_P2I6GdZ.js +1 -0
- package/dist/webcomponents/p-a3245777.entry.js +1 -0
- package/dist/webcomponents/{p-f7e24a51.entry.js → p-a8f1165e.entry.js} +1 -1
- package/dist/webcomponents/p-abcde13f.entry.js +1 -0
- package/dist/webcomponents/{p-e563df65.entry.js → p-b0c7f45a.entry.js} +1 -1
- package/dist/webcomponents/p-b122d960.entry.js +1 -0
- package/dist/webcomponents/{p-f71b1ff0.entry.js → p-badf50e2.entry.js} +1 -1
- package/dist/webcomponents/p-be676a47.entry.js +1 -0
- package/dist/webcomponents/p-bf9afbe6.entry.js +1 -0
- package/dist/webcomponents/p-c1dabcc9.entry.js +20 -0
- package/dist/webcomponents/p-c4989fc1.entry.js +1 -0
- package/dist/webcomponents/p-c6f6cca0.entry.js +1 -0
- package/dist/webcomponents/{p-d82b509a.entry.js → p-cbfb26e2.entry.js} +1 -1
- package/dist/webcomponents/p-cc26a8fa.entry.js +1 -0
- package/dist/webcomponents/p-cc5dfa3d.entry.js +1 -0
- package/dist/webcomponents/{p-ef9dcfe1.entry.js → p-cc7d0b8c.entry.js} +1 -1
- package/dist/webcomponents/p-d039c1ea.entry.js +1 -0
- package/dist/webcomponents/p-d5f95784.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/p-dad85acd.entry.js +1 -0
- package/dist/webcomponents/{p-3edd5ebd.entry.js → p-db13afe8.entry.js} +1 -1
- package/dist/webcomponents/{p-9a17fd5a.entry.js → p-dd5c8738.entry.js} +1 -1
- package/dist/webcomponents/{p-6b229318.entry.js → p-e2ac6f48.entry.js} +1 -1
- package/dist/webcomponents/{p-1ac365b4.entry.js → p-e2adbafd.entry.js} +1 -1
- package/dist/webcomponents/p-ea883d7c.entry.js +1 -0
- package/dist/webcomponents/{p-15c63931.entry.js → p-ed8eb110.entry.js} +1 -1
- package/dist/webcomponents/{p-e8294f7e.entry.js → p-f0a849be.entry.js} +1 -1
- package/dist/webcomponents/p-f165c5fc.entry.js +1 -0
- package/dist/webcomponents/p-f1dcc9c2.entry.js +1 -0
- package/dist/webcomponents/p-f21e1351.entry.js +1 -0
- package/dist/webcomponents/p-f2d283e5.entry.js +1 -0
- package/dist/webcomponents/p-f55f054a.entry.js +1 -0
- package/dist/webcomponents/p-f7ae2df8.entry.js +1 -0
- package/dist/webcomponents/p-f7ef66ba.entry.js +1 -0
- package/dist/webcomponents/p-f8750427.entry.js +1 -0
- package/dist/webcomponents/p-fa781ff0.entry.js +1 -0
- package/dist/webcomponents/p-fe5b7b4c.entry.js +1 -0
- package/dist/webcomponents/{p-CqVelcDt.js → p-kfHhaHAJ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Document-rXGBUaOh.js +0 -58
- package/dist/cjs/bank-account-form_7.cjs.entry.js +0 -411
- package/dist/cjs/billing-form-schema-oZ4GROWP.js +0 -26
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -50
- 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/esm/Document-Ct-uNz2r.js +0 -55
- package/dist/esm/bank-account-form_7.entry.js +0 -403
- package/dist/esm/billing-form-schema-PFvYpvy4.js +0 -24
- package/dist/esm/justifi-checkout-summary.entry.js +0 -19
- package/dist/esm/justifi-postal-code-form.entry.js +0 -48
- package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
- package/dist/module/Document.js +0 -55
- package/dist/module/checkout-actions.js +0 -58
- package/dist/module/checkout-core.js +0 -268
- package/dist/module/new-payment-method.js +0 -204
- package/dist/module/saved-payment-method.js +0 -59
- package/dist/webcomponents/p-00900e52.entry.js +0 -1
- package/dist/webcomponents/p-025ae692.entry.js +0 -1
- package/dist/webcomponents/p-02e26641.entry.js +0 -1
- package/dist/webcomponents/p-04c91ec1.entry.js +0 -1
- package/dist/webcomponents/p-0d5e93b3.entry.js +0 -1
- package/dist/webcomponents/p-19b5f93a.entry.js +0 -1
- package/dist/webcomponents/p-25b310f0.entry.js +0 -1
- package/dist/webcomponents/p-271b131d.entry.js +0 -1
- package/dist/webcomponents/p-2882b4e9.entry.js +0 -1
- package/dist/webcomponents/p-2a08ba01.entry.js +0 -1
- package/dist/webcomponents/p-2f027626.entry.js +0 -1
- package/dist/webcomponents/p-2fa36c0e.entry.js +0 -1
- package/dist/webcomponents/p-379584fb.entry.js +0 -1
- package/dist/webcomponents/p-39f31e23.entry.js +0 -1
- package/dist/webcomponents/p-3b6888c5.entry.js +0 -1
- package/dist/webcomponents/p-3d62f9a5.entry.js +0 -1
- package/dist/webcomponents/p-4232760b.entry.js +0 -1
- package/dist/webcomponents/p-4be4f7b4.entry.js +0 -1
- package/dist/webcomponents/p-531738ae.entry.js +0 -1
- package/dist/webcomponents/p-54019e68.entry.js +0 -1
- package/dist/webcomponents/p-584ba20d.entry.js +0 -1
- package/dist/webcomponents/p-5bc6f1e6.entry.js +0 -20
- package/dist/webcomponents/p-5bfbb0f8.entry.js +0 -1
- package/dist/webcomponents/p-5da3ba38.entry.js +0 -1
- package/dist/webcomponents/p-5f9dbaff.entry.js +0 -1
- package/dist/webcomponents/p-6fc1ace5.entry.js +0 -1
- package/dist/webcomponents/p-716d41f2.entry.js +0 -1
- package/dist/webcomponents/p-7253f1ea.entry.js +0 -1
- package/dist/webcomponents/p-80b662de.entry.js +0 -1
- package/dist/webcomponents/p-82164a5e.entry.js +0 -1
- package/dist/webcomponents/p-8590c5df.entry.js +0 -1
- package/dist/webcomponents/p-8e555a6e.entry.js +0 -1
- package/dist/webcomponents/p-96f89c69.entry.js +0 -1
- package/dist/webcomponents/p-98a39544.entry.js +0 -1
- package/dist/webcomponents/p-9a9f9c57.entry.js +0 -1
- package/dist/webcomponents/p-B4MIwTdb.js +0 -1
- package/dist/webcomponents/p-B8Ovjy6S.js +0 -1
- package/dist/webcomponents/p-BE5Nvydk.js +0 -1
- package/dist/webcomponents/p-BGHVK-vQ.js +0 -1
- package/dist/webcomponents/p-BPCw4WEY.js +0 -1
- package/dist/webcomponents/p-BhLPwu1L.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BpEw7AJl.js +0 -1
- package/dist/webcomponents/p-C-WgCIei.js +0 -1
- package/dist/webcomponents/p-CCpqJxzB.js +0 -1
- package/dist/webcomponents/p-CLpgfEbx.js +0 -1
- package/dist/webcomponents/p-CRYPNa2o.js +0 -1
- package/dist/webcomponents/p-CeNlJX4-.js +0 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
- package/dist/webcomponents/p-CvChBLtI.js +0 -1
- package/dist/webcomponents/p-CyXXks-Q.js +0 -1
- package/dist/webcomponents/p-Czro_9VO.js +0 -1
- package/dist/webcomponents/p-D7js9xfx.js +0 -1
- package/dist/webcomponents/p-DOB09NZD.js +0 -1
- package/dist/webcomponents/p-DUdzWNqB.js +0 -1
- package/dist/webcomponents/p-DaS3t0DL.js +0 -1
- package/dist/webcomponents/p-Dge4w7_c.js +0 -1
- package/dist/webcomponents/p-DkWBoLsd.js +0 -1
- package/dist/webcomponents/p-DknV-QPT.js +0 -1
- package/dist/webcomponents/p-DuiQuWNq.js +0 -1
- package/dist/webcomponents/p-DzPrenCi.js +0 -1
- package/dist/webcomponents/p-YDuIVoos.js +0 -1
- package/dist/webcomponents/p-a2db11b5.entry.js +0 -1
- package/dist/webcomponents/p-a31913e3.entry.js +0 -1
- package/dist/webcomponents/p-a4d457e9.entry.js +0 -1
- package/dist/webcomponents/p-b8ee41c1.entry.js +0 -1
- package/dist/webcomponents/p-bde749ac.entry.js +0 -1
- package/dist/webcomponents/p-bf16b11c.entry.js +0 -1
- package/dist/webcomponents/p-d9b06582.entry.js +0 -1
- package/dist/webcomponents/p-dbc02ba8.entry.js +0 -1
- package/dist/webcomponents/p-dcad0df5.entry.js +0 -1
- package/dist/webcomponents/p-e03630ec.entry.js +0 -1
- package/dist/webcomponents/p-e07sVz4Z.js +0 -1
- package/dist/webcomponents/p-ec9bb3f6.entry.js +0 -1
- package/dist/webcomponents/p-ecf6a315.entry.js +0 -1
|
@@ -1,25 +1,11 @@
|
|
|
1
|
-
import { h,
|
|
2
|
-
import { S as StyledHost } from './styled-host
|
|
3
|
-
import './
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './config-state-BjXhUj2q.js';
|
|
10
|
-
import './index-Cf8VXyXg.js';
|
|
11
|
-
import './utils-BjLkBMLe.js';
|
|
12
|
-
import './_commonjsHelpers-BFTU3MAI.js';
|
|
13
|
-
import './ComponentError-BhrFjjAs.js';
|
|
14
|
-
import './Checkout-CV6qgU0r.js';
|
|
15
|
-
import './Pagination-CLHwhyvu.js';
|
|
16
|
-
import './Payment-BEvE6jAC.js';
|
|
17
|
-
import './Dispute-7MWRbTXI.js';
|
|
18
|
-
import './Refund-CwUn_GFj.js';
|
|
19
|
-
import './Document-Ct-uNz2r.js';
|
|
20
|
-
import './Business-BCoP0TAV.js';
|
|
21
|
-
import './helpers-Mu7LQT-w.js';
|
|
22
|
-
import './state-options-BX8GieXu.js';
|
|
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 { d as defineCustomElement$2 } from './hidden-input2.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './iframe-input2.js';
|
|
23
9
|
|
|
24
10
|
const BankAccountFormSkeleton = (props) => {
|
|
25
11
|
const { isReady } = props;
|
|
@@ -37,9 +23,11 @@ const BankAccountFormSkeleton = (props) => {
|
|
|
37
23
|
h(Skeleton, { height: "36px" })))));
|
|
38
24
|
};
|
|
39
25
|
|
|
40
|
-
const BankAccountForm = class {
|
|
41
|
-
constructor(
|
|
42
|
-
|
|
26
|
+
const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm extends HTMLElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.__registerHost();
|
|
30
|
+
this.__attachShadow();
|
|
43
31
|
this.iframeOrigin = "https://components.justifi.ai";
|
|
44
32
|
this.isReady = false;
|
|
45
33
|
}
|
|
@@ -78,6 +66,35 @@ const BankAccountForm = class {
|
|
|
78
66
|
height: this.isReady ? 'auto' : '0',
|
|
79
67
|
} }, h("div", { key: 'bad1c793767232d22139f06e91c63fecb75d5e6b', class: "row mb-3" }, h("iframe-input", { key: '2e015f0d5e526f309d63b122f0ea900224b0eb91', inputId: "accountNumber", ref: (el) => (this.accountNumberIframeElement = el), label: "Account Number", iframeOrigin: `${this.iframeOrigin}/v2/accountNumber` })), h("div", { key: '7f2c7e8ca7675c3f936702f605a26f4698addf65', class: "row" }, h("iframe-input", { key: '21eb81b7e69f3e1b376b38e7d533992d977cc2c7', inputId: "routingNumber", ref: (el) => (this.routingNumberIframeElement = el), label: "Routing Number", iframeOrigin: `${this.iframeOrigin}/v2/routingNumber` })))));
|
|
80
68
|
}
|
|
81
|
-
}
|
|
69
|
+
}, [1, "justifi-bank-account-form", {
|
|
70
|
+
"iframeOrigin": [1, "iframe-origin"],
|
|
71
|
+
"isReady": [32],
|
|
72
|
+
"validate": [64],
|
|
73
|
+
"tokenize": [64]
|
|
74
|
+
}]);
|
|
75
|
+
function defineCustomElement() {
|
|
76
|
+
if (typeof customElements === "undefined") {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const components = ["justifi-bank-account-form", "hidden-input", "iframe-input"];
|
|
80
|
+
components.forEach(tagName => { switch (tagName) {
|
|
81
|
+
case "justifi-bank-account-form":
|
|
82
|
+
if (!customElements.get(tagName)) {
|
|
83
|
+
customElements.define(tagName, BankAccountForm);
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case "hidden-input":
|
|
87
|
+
if (!customElements.get(tagName)) {
|
|
88
|
+
defineCustomElement$2();
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
case "iframe-input":
|
|
92
|
+
if (!customElements.get(tagName)) {
|
|
93
|
+
defineCustomElement$1();
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
} });
|
|
97
|
+
}
|
|
98
|
+
defineCustomElement();
|
|
82
99
|
|
|
83
|
-
export { BankAccountForm as
|
|
100
|
+
export { BankAccountForm as B, defineCustomElement as d };
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, F as FormController } from './form.js';
|
|
3
3
|
import { c as postalValidation, d as stateValidation, e as cityValidation, l as lineTwoValidation, f as lineOneValidation, i as identityNameValidation } from './schema-validations.js';
|
|
4
|
-
import {
|
|
4
|
+
import { V as billingForm } from './parts.js';
|
|
5
|
+
import { H as Header3 } from './header-3.js';
|
|
5
6
|
import './details.js';
|
|
6
7
|
import './event-types.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { d as defineCustomElement$4 } from './
|
|
10
|
-
import { d as defineCustomElement$3 } from './form-control-
|
|
11
|
-
import { d as defineCustomElement$2 } from './
|
|
12
|
-
import { d as defineCustomElement$1 } from './
|
|
13
|
-
|
|
14
|
-
const Header3 = (props) => {
|
|
15
|
-
return h("h3", { class: `header-3 ${props === null || props === void 0 ? void 0 : props.class}`, part: heading3 }, props.text);
|
|
16
|
-
};
|
|
8
|
+
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
9
|
+
import { d as defineCustomElement$5 } from './form-control-select2.js';
|
|
10
|
+
import { d as defineCustomElement$4 } from './form-control-text2.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './form-control-tooltip2.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './billing-form2.js';
|
|
13
|
+
import { d as defineCustomElement$1 } from './postal-code-form.js';
|
|
17
14
|
|
|
18
15
|
const billingFormSchema = (postalOnly) => {
|
|
19
16
|
const fullBillingForm = create$3({
|
|
@@ -72,9 +69,8 @@ const BillingForm = /*@__PURE__*/ proxyCustomElement(class BillingForm extends H
|
|
|
72
69
|
return { isValid, errors };
|
|
73
70
|
}
|
|
74
71
|
render() {
|
|
75
|
-
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
76
72
|
const showHeader = !this.isPostalOnlyMode && !this.hideAllBillingFields;
|
|
77
|
-
return (h(
|
|
73
|
+
return (h("div", { key: 'e1834cb4638e0b5ea99c55e7a2f73542d2e5ea8d', part: billingForm, class: "mt-4", hidden: this.hideAllBillingFields }, showHeader && h(Header3, { key: '9936d16177d2c83219872c44b9ca91c264ae7052', text: "Billing address", class: "fs-6 fw-bold lh-lg mb-4" }), this.legend && h("legend", { key: 'c467223d7571122ea5c17885eed658c6cd6faf36' }, this.legend), this.isPostalOnlyMode ? (h("justifi-postal-code-form", null)) : (h("justifi-billing-information-form", null))));
|
|
78
74
|
}
|
|
79
75
|
}, [0, "justifi-billing-form", {
|
|
80
76
|
"legend": [1025],
|
|
@@ -92,7 +88,7 @@ function defineCustomElement() {
|
|
|
92
88
|
if (typeof customElements === "undefined") {
|
|
93
89
|
return;
|
|
94
90
|
}
|
|
95
|
-
const components = ["justifi-billing-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip"];
|
|
91
|
+
const components = ["justifi-billing-form", "custom-popper", "form-control-select", "form-control-text", "form-control-tooltip", "justifi-billing-information-form", "justifi-postal-code-form"];
|
|
96
92
|
components.forEach(tagName => { switch (tagName) {
|
|
97
93
|
case "justifi-billing-form":
|
|
98
94
|
if (!customElements.get(tagName)) {
|
|
@@ -101,20 +97,30 @@ function defineCustomElement() {
|
|
|
101
97
|
break;
|
|
102
98
|
case "custom-popper":
|
|
103
99
|
if (!customElements.get(tagName)) {
|
|
104
|
-
defineCustomElement$
|
|
100
|
+
defineCustomElement$6();
|
|
105
101
|
}
|
|
106
102
|
break;
|
|
107
103
|
case "form-control-select":
|
|
108
104
|
if (!customElements.get(tagName)) {
|
|
109
|
-
defineCustomElement$
|
|
105
|
+
defineCustomElement$5();
|
|
110
106
|
}
|
|
111
107
|
break;
|
|
112
108
|
case "form-control-text":
|
|
113
109
|
if (!customElements.get(tagName)) {
|
|
114
|
-
defineCustomElement$
|
|
110
|
+
defineCustomElement$4();
|
|
115
111
|
}
|
|
116
112
|
break;
|
|
117
113
|
case "form-control-tooltip":
|
|
114
|
+
if (!customElements.get(tagName)) {
|
|
115
|
+
defineCustomElement$3();
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
case "justifi-billing-information-form":
|
|
119
|
+
if (!customElements.get(tagName)) {
|
|
120
|
+
defineCustomElement$2();
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
case "justifi-postal-code-form":
|
|
118
124
|
if (!customElements.get(tagName)) {
|
|
119
125
|
defineCustomElement$1();
|
|
120
126
|
}
|
|
@@ -123,4 +129,4 @@ function defineCustomElement() {
|
|
|
123
129
|
}
|
|
124
130
|
defineCustomElement();
|
|
125
131
|
|
|
126
|
-
export { BillingForm as B,
|
|
132
|
+
export { BillingForm as B, defineCustomElement as d };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as billingFormSchema } from './billing-form-schema
|
|
3
|
-
import {
|
|
4
|
-
import { n as numberOnlyHandler } from './
|
|
5
|
-
import { S as StateOptions } from './state-options
|
|
6
|
-
import { F as FormController } from './form
|
|
7
|
-
import { S as StyledHost } from './styled-host
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './_commonjsHelpers-BFTU3MAI.js';
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { b as billingFormSchema } from './billing-form-schema.js';
|
|
3
|
+
import { V 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$4 } from './custom-popper2.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './form-control-select2.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
13
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
15
14
|
|
|
16
|
-
const BillingInformationForm = class {
|
|
17
|
-
constructor(
|
|
18
|
-
|
|
15
|
+
const BillingInformationForm = /*@__PURE__*/ proxyCustomElement(class BillingInformationForm extends HTMLElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.__registerHost();
|
|
19
|
+
this.__attachShadow();
|
|
19
20
|
this.errors = {};
|
|
20
21
|
this.inputHandler = (name, value) => {
|
|
21
22
|
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
@@ -44,6 +45,47 @@ const BillingInformationForm = class {
|
|
|
44
45
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
45
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 }))))))));
|
|
46
47
|
}
|
|
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() {
|
|
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$4();
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "form-control-select":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
defineCustomElement$3();
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "form-control-text":
|
|
78
|
+
if (!customElements.get(tagName)) {
|
|
79
|
+
defineCustomElement$2();
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
case "form-control-tooltip":
|
|
83
|
+
if (!customElements.get(tagName)) {
|
|
84
|
+
defineCustomElement$1();
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
} });
|
|
88
|
+
}
|
|
89
|
+
defineCustomElement();
|
|
48
90
|
|
|
49
|
-
export { BillingInformationForm as
|
|
91
|
+
export { BillingInformationForm as B, defineCustomElement as d };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as create$3, F as FormController } from './form.js';
|
|
3
|
-
import {
|
|
2
|
+
import { c as create$3, d as create$8, F as FormController } from './form.js';
|
|
3
|
+
import { E as EntityDocumentType, b as EntityDocumentStorage, c as EntityDocument } from './Refund.js';
|
|
4
|
+
import { z as routingNumberValidation, A as accountNumberValidation, B as accountTypeValidation, i as identityNameValidation, C as nicknameValidation, D as bankNameValidation } from './schema-validations.js';
|
|
4
5
|
import './Business.js';
|
|
5
6
|
import { B as BusinessFormStep } from './event-types2.js';
|
|
6
7
|
import { h as heading2 } from './parts.js';
|
|
@@ -10,8 +11,6 @@ import './utils2.js';
|
|
|
10
11
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkout.js';
|
|
11
12
|
import './Pagination.js';
|
|
12
13
|
import './Payment.js';
|
|
13
|
-
import './Refund.js';
|
|
14
|
-
import { a as EntityDocumentStorage, b as EntityDocument } from './Document.js';
|
|
15
14
|
import { d as defineCustomElement$8 } from './bank-account-document-inputs.js';
|
|
16
15
|
import { d as defineCustomElement$7 } from './bank-account-form-inputs2.js';
|
|
17
16
|
import { d as defineCustomElement$6 } from './business-documents-on-file2.js';
|
|
@@ -54,17 +53,44 @@ class BankAccount {
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
56
|
+
const checkExistingDocs = (documents, documentType) => {
|
|
57
|
+
return documents.some((doc) => doc.document_type === documentType);
|
|
58
|
+
};
|
|
59
|
+
const documentErrorText = 'Please upload either a voided check or a bank statement. Only one is required.';
|
|
57
60
|
const businessBankAccountSchema = (documents, allowOptionalFields) => {
|
|
58
|
-
const
|
|
61
|
+
const existingVoidedCheck = checkExistingDocs(documents, EntityDocumentType.voidedCheck);
|
|
62
|
+
const existingBankStatement = checkExistingDocs(documents, EntityDocumentType.bankStatement);
|
|
63
|
+
const existingDocument = existingVoidedCheck || existingBankStatement;
|
|
64
|
+
const schema = create$3().shape({
|
|
59
65
|
bank_name: bankNameValidation.required('Enter bank name'),
|
|
60
66
|
nickname: nicknameValidation.required('Enter nickname'),
|
|
61
67
|
account_owner_name: identityNameValidation.required('Enter account owner name'),
|
|
62
68
|
account_type: accountTypeValidation.required('Select account type'),
|
|
63
69
|
account_number: accountNumberValidation.required('Enter account number'),
|
|
64
70
|
routing_number: routingNumberValidation.required('Enter routing number'),
|
|
65
|
-
voided_check:
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
voided_check: create$8().when('bank_statement', {
|
|
72
|
+
is: (val) => {
|
|
73
|
+
return !val && !existingDocument;
|
|
74
|
+
},
|
|
75
|
+
then: (schema) => {
|
|
76
|
+
return schema.required(documentErrorText);
|
|
77
|
+
},
|
|
78
|
+
otherwise: (schema) => {
|
|
79
|
+
return schema.notRequired();
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
bank_statement: create$8().when('voided_check', {
|
|
83
|
+
is: (val) => {
|
|
84
|
+
return !val && !existingDocument;
|
|
85
|
+
},
|
|
86
|
+
then: (schema) => {
|
|
87
|
+
return schema.required(documentErrorText);
|
|
88
|
+
},
|
|
89
|
+
otherwise: (schema) => {
|
|
90
|
+
return schema.notRequired();
|
|
91
|
+
}
|
|
92
|
+
}),
|
|
93
|
+
}, [['voided_check', 'bank_statement']]);
|
|
68
94
|
const easySchema = create$3({
|
|
69
95
|
bank_name: bankNameValidation.nullable(),
|
|
70
96
|
nickname: nicknameValidation.nullable(),
|
|
@@ -72,8 +98,8 @@ const businessBankAccountSchema = (documents, allowOptionalFields) => {
|
|
|
72
98
|
account_type: accountTypeValidation.nullable(),
|
|
73
99
|
account_number: accountNumberValidation.nullable(),
|
|
74
100
|
routing_number: routingNumberValidation.nullable(),
|
|
75
|
-
voided_check:
|
|
76
|
-
bank_statement:
|
|
101
|
+
voided_check: create$8().nullable(),
|
|
102
|
+
bank_statement: create$8().nullable(),
|
|
77
103
|
});
|
|
78
104
|
return allowOptionalFields ? easySchema : schema;
|
|
79
105
|
};
|
|
@@ -297,7 +323,7 @@ const BusinessBankAccountFormStepCore = /*@__PURE__*/ proxyCustomElement(class B
|
|
|
297
323
|
if (this.isLoading) {
|
|
298
324
|
return h(PaymentProvisioningLoading, null);
|
|
299
325
|
}
|
|
300
|
-
return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.existingBankAccount })), h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "
|
|
326
|
+
return (h("form", null, h("fieldset", { class: "mb-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Bank Account Info"), h("form-control-tooltip", { helpText: "This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship." })), h("hr", { class: "mt-2" }), h("bank-account-form-inputs", { defaultValue: bankAccountDefaultValue, errors: this.errors, inputHandler: this.inputHandler, formDisabled: this.existingBankAccount })), h("fieldset", { class: "mt-4" }, h("div", { class: "d-flex align-items-center gap-2" }, h("legend", { class: "mb-0", part: heading2 }, "Document Uploads"), h("form-control-tooltip", { helpText: "One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category." })), h("hr", { class: "mt-2" }), h("business-documents-on-file", { documents: this.existingDocuments, isLoading: this.isLoading }), h("bank-account-document-form-inputs", { inputHandler: this.inputHandler, errors: this.errors, storeFiles: this.storeFiles }))));
|
|
301
327
|
}
|
|
302
328
|
static get watchers() { return {
|
|
303
329
|
"isLoading": ["watchHandler"]
|
|
@@ -5,7 +5,6 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkou
|
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Refund.js';
|
|
8
|
-
import './Document.js';
|
|
9
8
|
import './Business.js';
|
|
10
9
|
import { m as makeGetBusiness, b as makePostBankAccount, c as makePostDocumentRecord } from './payment-provisioning-actions.js';
|
|
11
10
|
import { B as BusinessService, a as BusinessBankAccountService, D as DocumentRecordService } from './business.service.js';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as create$3,
|
|
2
|
+
import { c as create$3, b as create$7, F as FormController } from './form.js';
|
|
3
3
|
import { A as Api } from './Api.js';
|
|
4
4
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkout.js';
|
|
5
5
|
import './Pagination.js';
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Refund.js';
|
|
8
|
-
import './Document.js';
|
|
9
8
|
import './Business.js';
|
|
10
9
|
import { h as heading2 } from './parts.js';
|
|
11
10
|
import { B as BusinessFormStep } from './event-types2.js';
|
package/dist/module/button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { $ as buttonSecondary, a0 as buttonPrimary, a1 as buttonLoading } from './parts.js';
|
|
3
3
|
|
|
4
4
|
const ButtonSpinner = () => (h("div", { class: "spinner-border spinner-border-sm", role: "status", part: "button-spinner" },
|
|
5
5
|
h("span", { class: "visually-hidden" }, "Loading...")));
|
package/dist/module/card-form.js
CHANGED
|
@@ -1,4 +1,94 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { S as Skeleton } from './skeleton.js';
|
|
3
|
+
import { w as waitForConfig, c as configState } from './config-state.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './iframe-input2.js';
|
|
5
|
+
|
|
6
|
+
const CardFormSkeleton = (props) => {
|
|
7
|
+
const { isReady } = props;
|
|
8
|
+
if (isReady) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
return (h("div", { class: "container-fluid p-0" },
|
|
12
|
+
h("div", { class: "mb-3" },
|
|
13
|
+
h(Skeleton, { height: "18px", width: "100px" }),
|
|
14
|
+
h(Skeleton, { height: "36px" })),
|
|
15
|
+
h("div", { class: "row" },
|
|
16
|
+
h("div", { class: "col-4 align-content-end" },
|
|
17
|
+
h(Skeleton, { height: "18px", width: "80px" }),
|
|
18
|
+
h(Skeleton, { height: "36px" })),
|
|
19
|
+
h("div", { class: "col-4 align-content-end" },
|
|
20
|
+
h(Skeleton, { height: "36px" })),
|
|
21
|
+
h("div", { class: "col-4 align-content-end" },
|
|
22
|
+
h(Skeleton, { height: "18px", width: "30px" }),
|
|
23
|
+
h(Skeleton, { height: "36px" })))));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const CardForm$1 = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.__registerHost();
|
|
30
|
+
this.isReady = false;
|
|
31
|
+
}
|
|
32
|
+
async componentWillLoad() {
|
|
33
|
+
await waitForConfig();
|
|
34
|
+
this.iframeOrigin = configState.iframeOrigin;
|
|
35
|
+
}
|
|
36
|
+
componentDidRender() {
|
|
37
|
+
const elements = [
|
|
38
|
+
this.cardNumberIframeElement,
|
|
39
|
+
this.expirationMonthIframeElement,
|
|
40
|
+
this.expirationYearIframeElement,
|
|
41
|
+
this.cvvIframeElement,
|
|
42
|
+
];
|
|
43
|
+
Promise.all(elements.map((element) => {
|
|
44
|
+
return new Promise((resolve) => {
|
|
45
|
+
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
46
|
+
});
|
|
47
|
+
})).then(() => {
|
|
48
|
+
this.isReady = true;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async validate() {
|
|
52
|
+
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
53
|
+
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
54
|
+
const expirationYearIsValid = await this.expirationYearIframeElement.validate();
|
|
55
|
+
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
56
|
+
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
57
|
+
}
|
|
58
|
+
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
59
|
+
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return (h(Host, { key: 'c43351c7ab1eb6bf413f162634f55007798bb076' }, h(CardFormSkeleton, { key: 'f0a29497de2270108868e892d666b552dea27a1e', isReady: this.isReady }), h("div", { key: '2734b111c1f2f2275435d2141445ac30482946be', class: "container-fluid p-0", style: {
|
|
63
|
+
opacity: this.isReady ? '1' : '0',
|
|
64
|
+
height: this.isReady ? 'auto' : '0',
|
|
65
|
+
} }, h("div", { key: '036c359caaf8fc36fa6ba56bbcad5d01de1fe9c9', class: "mb-3" }, h("iframe-input", { key: '9baf7dc76ff18f8dee6e6cd08b93e1ba155d5cf2', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: 'cd54e4a30da50cfe5151b557fe1d92ebb483ad7e', class: "row" }, h("div", { key: '6b3e84079d606a6ffd5580deae0d6e4563d4c7ef', class: "col-4 align-content-end" }, h("iframe-input", { key: '9ea2ad1c93ca90bbb4bc7a4c83a72e8f4cc9da61', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '9478f77f64decfcdfd77f888d54cb37f46ad8ab7', class: "col-4 align-content-end" }, h("iframe-input", { key: '43191d41eb743e0c509236ea316c1afb180b8fbb', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: '65599647fc750e6c62fb2866190ffa87689d8a5b', class: "col-4 align-content-end" }, h("iframe-input", { key: 'df367f3143aaff25ba9147698090ccbcea902cbf', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
66
|
+
}
|
|
67
|
+
}, [0, "card-form", {
|
|
68
|
+
"isReady": [32],
|
|
69
|
+
"iframeOrigin": [32],
|
|
70
|
+
"validate": [64],
|
|
71
|
+
"tokenize": [64]
|
|
72
|
+
}]);
|
|
73
|
+
function defineCustomElement$1() {
|
|
74
|
+
if (typeof customElements === "undefined") {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const components = ["card-form", "iframe-input"];
|
|
78
|
+
components.forEach(tagName => { switch (tagName) {
|
|
79
|
+
case "card-form":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
customElements.define(tagName, CardForm$1);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
case "iframe-input":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
defineCustomElement$2();
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
} });
|
|
90
|
+
}
|
|
91
|
+
defineCustomElement$1();
|
|
2
92
|
|
|
3
93
|
const CardForm = CardForm$1;
|
|
4
94
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
2
|
import { S as Skeleton } from './skeleton.js';
|
|
3
|
-
import
|
|
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 { d as defineCustomElement$2 } from './hidden-input2.js';
|
|
4
8
|
import { d as defineCustomElement$1 } from './iframe-input2.js';
|
|
5
9
|
|
|
6
10
|
const CardFormSkeleton = (props) => {
|
|
@@ -23,15 +27,17 @@ const CardFormSkeleton = (props) => {
|
|
|
23
27
|
h(Skeleton, { height: "36px" })))));
|
|
24
28
|
};
|
|
25
29
|
|
|
26
|
-
const
|
|
30
|
+
const JustifiCardForm = /*@__PURE__*/ proxyCustomElement(class JustifiCardForm extends HTMLElement {
|
|
27
31
|
constructor() {
|
|
28
32
|
super();
|
|
29
33
|
this.__registerHost();
|
|
34
|
+
this.__attachShadow();
|
|
35
|
+
this.iframeOrigin = "https://components.justifi.ai";
|
|
30
36
|
this.isReady = false;
|
|
31
37
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.
|
|
38
|
+
componentWillLoad() {
|
|
39
|
+
checkPkgVersion();
|
|
40
|
+
this.analytics = new JustifiAnalytics(this);
|
|
35
41
|
}
|
|
36
42
|
componentDidRender() {
|
|
37
43
|
const elements = [
|
|
@@ -48,6 +54,10 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
48
54
|
this.isReady = true;
|
|
49
55
|
});
|
|
50
56
|
}
|
|
57
|
+
disconnectedCallback() {
|
|
58
|
+
var _a;
|
|
59
|
+
(_a = this.analytics) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
60
|
+
}
|
|
51
61
|
async validate() {
|
|
52
62
|
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
53
63
|
const expirationMonthIsValid = await this.expirationMonthIframeElement.validate();
|
|
@@ -55,18 +65,18 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
55
65
|
const cvvIsValid = await this.cvvIframeElement.validate();
|
|
56
66
|
return cardNumberIsValid && expirationMonthIsValid && expirationYearIsValid && cvvIsValid;
|
|
57
67
|
}
|
|
58
|
-
async tokenize(clientId, paymentMethodMetadata, account) {
|
|
68
|
+
async tokenize({ clientId, paymentMethodMetadata, account, }) {
|
|
59
69
|
return this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
60
70
|
}
|
|
61
71
|
render() {
|
|
62
|
-
return (h(
|
|
72
|
+
return (h(StyledHost, { key: '44aa8e7da60f3dc8408e53f1ca4bf1ec98e838be' }, h(CardFormSkeleton, { key: 'eaea67379e10386d215284de04cd140ac0af0274', isReady: this.isReady }), h("hidden-input", { key: '6bdd3a8aef52e4d2bb7e5a7855578af5e491d04f' }), h("div", { key: '8e271c01ecd6c178f44f9cd9d331d6fc6240bce4', class: "container-fluid p-0", style: {
|
|
63
73
|
opacity: this.isReady ? '1' : '0',
|
|
64
74
|
height: this.isReady ? 'auto' : '0',
|
|
65
|
-
} }, h("div", { key: '
|
|
75
|
+
} }, h("div", { key: '568ac8e93eac648b43d047b2ba149230f7bd2e2f', class: "mb-3" }, h("iframe-input", { key: '5dde288003664ba6fb768a9e5837e4069e749ae5', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber` })), h("div", { key: '57d7153ff9f21fbbfe2fbf41d664fbbc05fd72db', class: "row" }, h("div", { key: 'a6f2dcd5a98428f2af8773c7ebf76ea3c232a2a9', class: "col-4 align-content-end" }, h("iframe-input", { key: 'ac7ef13f9c9e788a065f6fe3485f8aeb20a3f6e8', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth` })), h("div", { key: '36c7531f0f7f4a5c98eb36f1c3c395d392567041', class: "col-4 align-content-end" }, h("iframe-input", { key: '2c04a8aa66b73e1e485dd124b27ebf8d9da043d8', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear` })), h("div", { key: 'e413f4a9232c6c8f21fd9738d6b641d2ff9c547f', class: "col-4 align-content-end" }, h("iframe-input", { key: 'bf1204c99ec33e349fe07a741a4ba80d20def1f8', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV` }))))));
|
|
66
76
|
}
|
|
67
|
-
}, [
|
|
77
|
+
}, [1, "justifi-card-form", {
|
|
78
|
+
"iframeOrigin": [1, "iframe-origin"],
|
|
68
79
|
"isReady": [32],
|
|
69
|
-
"iframeOrigin": [32],
|
|
70
80
|
"validate": [64],
|
|
71
81
|
"tokenize": [64]
|
|
72
82
|
}]);
|
|
@@ -74,11 +84,16 @@ function defineCustomElement() {
|
|
|
74
84
|
if (typeof customElements === "undefined") {
|
|
75
85
|
return;
|
|
76
86
|
}
|
|
77
|
-
const components = ["card-form", "iframe-input"];
|
|
87
|
+
const components = ["justifi-card-form", "hidden-input", "iframe-input"];
|
|
78
88
|
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "card-form":
|
|
89
|
+
case "justifi-card-form":
|
|
90
|
+
if (!customElements.get(tagName)) {
|
|
91
|
+
customElements.define(tagName, JustifiCardForm);
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
94
|
+
case "hidden-input":
|
|
80
95
|
if (!customElements.get(tagName)) {
|
|
81
|
-
|
|
96
|
+
defineCustomElement$2();
|
|
82
97
|
}
|
|
83
98
|
break;
|
|
84
99
|
case "iframe-input":
|
|
@@ -90,4 +105,4 @@ function defineCustomElement() {
|
|
|
90
105
|
}
|
|
91
106
|
defineCustomElement();
|
|
92
107
|
|
|
93
|
-
export {
|
|
108
|
+
export { JustifiCardForm as J, defineCustomElement as d };
|
|
@@ -5,7 +5,6 @@ import './Checkout.js';
|
|
|
5
5
|
import { p as pagingDefaults } from './Pagination.js';
|
|
6
6
|
import './Payment.js';
|
|
7
7
|
import './Refund.js';
|
|
8
|
-
import './Document.js';
|
|
9
8
|
import './Business.js';
|
|
10
9
|
import './details.js';
|
|
11
10
|
import { T as Table, a as TableWrapper, b as TableComponent, c as TableHead, d as TableHeadRow, e as TableBody, f as TableLoadingState, g as TableEmptyState, h as TableErrorState, i as TableRow, j as TableFoot, k as TableFootRow, l as TableFootCell } from './table.js';
|