@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
|
@@ -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';
|
|
@@ -5,7 +5,6 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Checkou
|
|
|
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';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } 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 { n as numberOnlyHandler } from './utils3.js';
|
|
6
|
+
import { F as FormController } from './form.js';
|
|
7
|
+
import { b as billingFormSchema } from './billing-form-schema.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './custom-popper2.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './form-control-text2.js';
|
|
10
|
+
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
11
|
+
|
|
12
|
+
const PostalCodeForm = /*@__PURE__*/ proxyCustomElement(class PostalCodeForm extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.__attachShadow();
|
|
17
|
+
this.errors = {};
|
|
18
|
+
this.inputHandler = (name, value) => {
|
|
19
|
+
this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [name]: value }));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
this.formController = new FormController(billingFormSchema(true));
|
|
24
|
+
}
|
|
25
|
+
componentDidLoad() {
|
|
26
|
+
this.formController.values.subscribe(values => this.billingInfo = Object.assign({}, values));
|
|
27
|
+
this.formController.errors.subscribe(errors => {
|
|
28
|
+
this.errors = Object.assign({}, errors);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async getValues() {
|
|
32
|
+
return this.formController.values.getValue();
|
|
33
|
+
}
|
|
34
|
+
async fill(fields) {
|
|
35
|
+
this.formController.setInitialValues(fields);
|
|
36
|
+
}
|
|
37
|
+
async validate() {
|
|
38
|
+
let isValid = await this.formController.validate();
|
|
39
|
+
return { isValid: isValid };
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
43
|
+
return (h(StyledHost, { key: 'e5cdb9b21be1e5f4ee6fd21a2d919b2d9271b163' }, h("form", { key: '29c0a3edaad9877d50ecc9e4424ca2f5e667dc30' }, 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: numberOnlyHandler }))));
|
|
44
|
+
}
|
|
45
|
+
}, [1, "justifi-postal-code-form", {
|
|
46
|
+
"formController": [32],
|
|
47
|
+
"billingInfo": [32],
|
|
48
|
+
"errors": [32],
|
|
49
|
+
"getValues": [64],
|
|
50
|
+
"fill": [64],
|
|
51
|
+
"validate": [64]
|
|
52
|
+
}]);
|
|
53
|
+
function defineCustomElement() {
|
|
54
|
+
if (typeof customElements === "undefined") {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const components = ["justifi-postal-code-form", "custom-popper", "form-control-text", "form-control-tooltip"];
|
|
58
|
+
components.forEach(tagName => { switch (tagName) {
|
|
59
|
+
case "justifi-postal-code-form":
|
|
60
|
+
if (!customElements.get(tagName)) {
|
|
61
|
+
customElements.define(tagName, PostalCodeForm);
|
|
62
|
+
}
|
|
63
|
+
break;
|
|
64
|
+
case "custom-popper":
|
|
65
|
+
if (!customElements.get(tagName)) {
|
|
66
|
+
defineCustomElement$3();
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
case "form-control-text":
|
|
70
|
+
if (!customElements.get(tagName)) {
|
|
71
|
+
defineCustomElement$2();
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
case "form-control-tooltip":
|
|
75
|
+
if (!customElements.get(tagName)) {
|
|
76
|
+
defineCustomElement$1();
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
} });
|
|
80
|
+
}
|
|
81
|
+
defineCustomElement();
|
|
82
|
+
|
|
83
|
+
export { PostalCodeForm as P, defineCustomElement as d };
|
|
@@ -13,7 +13,7 @@ const SaveNewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SaveNewPayme
|
|
|
13
13
|
this.checkboxChanged.emit(this.isChecked);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: 'b196a8d34fb4afe1293f4ff9f6eea8bb3ed4c1a6', class: "mt-4 form-check" }, h("form-control-checkbox", { key: '1f35cb80578373e1f77f2a95f08310f0830e1c90', label: "Save new payment method", name: "saveNewPaymentMethod", checked: this.isChecked, inputHandler: this.handleCheckboxChange.bind(this) })));
|
|
17
17
|
}
|
|
18
18
|
}, [0, "justifi-save-new-payment-method", {
|
|
19
19
|
"isChecked": [32]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { W as radioListItem } from './parts.js';
|
|
3
|
+
import { S as StyledHost } from './styled-host.js';
|
|
4
|
+
import './details.js';
|
|
5
|
+
import './event-types.js';
|
|
6
|
+
import { s as state } from './checkout.store.js';
|
|
7
|
+
import { C as CardBrandLabels } from './payment-method-option-utils.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
10
|
+
|
|
11
|
+
const SavedPaymentMethods = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMethods extends HTMLElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
this.__attachShadow();
|
|
16
|
+
this.onPaymentMethodOptionClick = (paymentMethodId) => (e) => {
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
state.selectedPaymentMethod = paymentMethodId;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
if (!state.paymentMethods.length) {
|
|
23
|
+
console.warn('No saved payment methods available.');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(StyledHost, { key: '7bebb3f8ff2a2abe400e1d099154a1729913140c' }, h("div", { key: '3a5798c5ceba63160dceecb0dc65f8a211bb5110', class: "saved-payment-methods" }, state.paymentMethods.length ? state.paymentMethods.map((paymentMethod) => (h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) }, h("form-control-radio", { name: "paymentMethodType", value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id, checked: state.selectedPaymentMethod === (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id), label: `${CardBrandLabels[paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.brand] || ''} *${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.acct_last_four}` })))) : null)));
|
|
28
|
+
}
|
|
29
|
+
}, [1, "justifi-saved-payment-methods"]);
|
|
30
|
+
function defineCustomElement() {
|
|
31
|
+
if (typeof customElements === "undefined") {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const components = ["justifi-saved-payment-methods", "form-control-help-text", "form-control-radio"];
|
|
35
|
+
components.forEach(tagName => { switch (tagName) {
|
|
36
|
+
case "justifi-saved-payment-methods":
|
|
37
|
+
if (!customElements.get(tagName)) {
|
|
38
|
+
customElements.define(tagName, SavedPaymentMethods);
|
|
39
|
+
}
|
|
40
|
+
break;
|
|
41
|
+
case "form-control-help-text":
|
|
42
|
+
if (!customElements.get(tagName)) {
|
|
43
|
+
defineCustomElement$2();
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case "form-control-radio":
|
|
47
|
+
if (!customElements.get(tagName)) {
|
|
48
|
+
defineCustomElement$1();
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
} });
|
|
52
|
+
}
|
|
53
|
+
defineCustomElement();
|
|
54
|
+
|
|
55
|
+
export { SavedPaymentMethods as S, defineCustomElement as d };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { a as create$6
|
|
1
|
+
import { a as create$6 } from './form.js';
|
|
2
2
|
import { S as StateOptions } from './state-options.js';
|
|
3
3
|
import { c as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as bankAccountTypeOptions } from './business-form-options.js';
|
|
4
|
-
import { E as EntityDocumentType } from './Document.js';
|
|
5
4
|
|
|
6
5
|
const transformEmptyString = (value) => {
|
|
7
6
|
return value === '' ? null : value;
|
|
@@ -183,25 +182,5 @@ const routingNumberValidation = create$6()
|
|
|
183
182
|
return validateRoutingNumber(value);
|
|
184
183
|
})
|
|
185
184
|
.transform(transformEmptyString);
|
|
186
|
-
// Document Upload Validations
|
|
187
|
-
const documentUploadValidation = create$8();
|
|
188
|
-
const voidedCheckValidation = (documents, allowOptionalFields) => {
|
|
189
|
-
const existingDoc = documents.some((doc) => doc.document_type === EntityDocumentType.voidedCheck);
|
|
190
|
-
if (existingDoc || allowOptionalFields) {
|
|
191
|
-
return documentUploadValidation.nullable();
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
return documentUploadValidation.required('Please select one or more files');
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
const bankStatementValidation = (documents, allowOptionalFields) => {
|
|
198
|
-
const existingDoc = documents.some((doc) => doc.document_type === EntityDocumentType.bankStatement);
|
|
199
|
-
if (existingDoc || allowOptionalFields) {
|
|
200
|
-
return documentUploadValidation.nullable();
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return documentUploadValidation.required('Please select one or more files');
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
185
|
|
|
207
|
-
export {
|
|
186
|
+
export { accountNumberValidation as A, accountTypeValidation as B, nicknameValidation as C, bankNameValidation as D, revenueValidation as a, recurringPaymentsPercentageValidation as b, postalValidation as c, stateValidation as d, cityValidation as e, lineOneValidation as f, dateOfIncorporationValidation as g, industryValidation as h, identityNameValidation as i, businessClassificationValidation as j, doingBusinessAsValidation as k, lineTwoValidation as l, phoneValidation as m, emailValidation as n, otherPaymentDetailsValidation as o, paymentVolumeValidation as p, websiteUrlValidation as q, recurringPaymentsValidation as r, seasonalBusinessValidation as s, taxIdValidation as t, businessNameValidation as u, ssnValidation as v, whenServiceReceivedValidation as w, dobValidation as x, identityTitleValidation as y, routingNumberValidation as z };
|
|
@@ -116,9 +116,9 @@ const SeasonInterruptionInsuranceCore = /*@__PURE__*/ proxyCustomElement(class S
|
|
|
116
116
|
var _a, _b, _c, _d;
|
|
117
117
|
if (this.isLoading)
|
|
118
118
|
return (h(StyledHost, null, h(SeasonInterruptionInsuranceLoading, null)));
|
|
119
|
-
return (h(StyledHost, null, h(
|
|
119
|
+
return (h(StyledHost, null, h(Header2, { text: (_a = this.quote) === null || _a === void 0 ? void 0 : _a.product.title, class: "fs-5 fw-bold pb-3" }), h("small", { innerHTML: (_b = this.quote) === null || _b === void 0 ? void 0 : _b.product.description, part: text }), h("form-control-radio", { label: `Accept coverage for ${formatCurrency((_c = this.quote) === null || _c === void 0 ? void 0 : _c.total_cents)}`, name: "opt-in", value: 'true', checked: this.accepted === 'true', inputHandler: this.onChangeHandler.bind(this),
|
|
120
120
|
// don't wanna show error message, but need to show the red border
|
|
121
|
-
errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer, part: text })))
|
|
121
|
+
errorText: this.error ? ' ' : undefined }), h("form-control-radio", { label: "Decline coverage", name: "opt-in", value: 'false', checked: this.accepted === 'false', inputHandler: this.onChangeHandler.bind(this), errorText: this.error ? ' ' : undefined }), h("div", { class: "invalid-feedback", style: { display: this.error ? 'block' : 'none' }, part: textDanger }, "Please select an option"), h("small", { innerHTML: (_d = this.quote) === null || _d === void 0 ? void 0 : _d.product.legal_disclaimer, part: text })));
|
|
122
122
|
}
|
|
123
123
|
}, [1, "justifi-season-interruption-insurance-core", {
|
|
124
124
|
"checkoutId": [1, "checkout-id"],
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { h,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { s as state } from './checkout.store
|
|
5
|
-
import { S as StyledHost } from './styled-host
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as formatCurrency } from './utils2.js';
|
|
3
|
+
import { W as radioListItem } from './parts.js';
|
|
4
|
+
import { s as state } from './checkout.store.js';
|
|
5
|
+
import { S as StyledHost } from './styled-host.js';
|
|
6
|
+
import './details.js';
|
|
7
|
+
import './event-types.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
9
10
|
|
|
10
11
|
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
11
12
|
display: 'inline',
|
|
@@ -13,10 +14,12 @@ const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "http
|
|
|
13
14
|
marginLeft: '5px',
|
|
14
15
|
marginTop: '-5px',
|
|
15
16
|
} }));
|
|
16
|
-
const SezzlePaymentMethod = class {
|
|
17
|
-
constructor(
|
|
18
|
-
|
|
19
|
-
this.
|
|
17
|
+
const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePaymentMethod extends HTMLElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
this.__attachShadow();
|
|
22
|
+
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
20
23
|
this.paymentMethodOptionId = 'sezzle';
|
|
21
24
|
this.onPaymentMethodOptionClick = (e) => {
|
|
22
25
|
e.preventDefault();
|
|
@@ -73,6 +76,35 @@ const SezzlePaymentMethod = class {
|
|
|
73
76
|
}
|
|
74
77
|
return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { name: "paymentMethodType", value: this.paymentMethodOptionId, checked: state.selectedPaymentMethod === this.paymentMethodOptionId, label: h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents))))) }))));
|
|
75
78
|
}
|
|
76
|
-
}
|
|
79
|
+
}, [1, "justifi-sezzle-payment-method", {
|
|
80
|
+
"installmentPlan": [32],
|
|
81
|
+
"sezzleCheckout": [32],
|
|
82
|
+
"sezzlePromise": [32],
|
|
83
|
+
"resolvePaymentMethod": [64]
|
|
84
|
+
}]);
|
|
85
|
+
function defineCustomElement() {
|
|
86
|
+
if (typeof customElements === "undefined") {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const components = ["justifi-sezzle-payment-method", "form-control-help-text", "form-control-radio"];
|
|
90
|
+
components.forEach(tagName => { switch (tagName) {
|
|
91
|
+
case "justifi-sezzle-payment-method":
|
|
92
|
+
if (!customElements.get(tagName)) {
|
|
93
|
+
customElements.define(tagName, SezzlePaymentMethod);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case "form-control-help-text":
|
|
97
|
+
if (!customElements.get(tagName)) {
|
|
98
|
+
defineCustomElement$2();
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
case "form-control-radio":
|
|
102
|
+
if (!customElements.get(tagName)) {
|
|
103
|
+
defineCustomElement$1();
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
} });
|
|
107
|
+
}
|
|
108
|
+
defineCustomElement();
|
|
77
109
|
|
|
78
|
-
export { SezzlePaymentMethod as
|
|
110
|
+
export { SezzlePaymentMethod as S, defineCustomElement as d };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { t as text } from './parts.js';
|
|
3
|
+
import { c as formatCurrency } from './utils2.js';
|
|
4
|
+
import { s as state } from './checkout.store.js';
|
|
5
|
+
import { S as StyledHost } from './styled-host.js';
|
|
6
|
+
import './details.js';
|
|
7
|
+
import './event-types.js';
|
|
8
|
+
|
|
9
|
+
const Summary = /*@__PURE__*/ proxyCustomElement(class Summary extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.__attachShadow();
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(StyledHost, { key: '9a2eea1693287ad73dfedd3ddc24e949e9d75148' }, h("section", { key: '1943be6cef0c4a1c830ddfc14d893c3906482534' }, h("div", { key: 'cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef' }, h("div", { key: 'b5bc944a5310252dc0720e3e7d709f1a57f898c8', part: text }, state === null || state === void 0 ? void 0 : state.paymentDescription), h("div", { key: 'dbe53880d7c3ff8d4513a570e1b024f1e2f43028' }, h("span", { key: 'd8986a9265463d8f9d7f62598cc4ec3203081c09', part: text }, "Total"), "\u00A0", h("span", { key: '32cbc6e259fdee2c71ad72fcf59ab157704c4758', part: text }, formatCurrency(+(state === null || state === void 0 ? void 0 : state.totalAmount))))))));
|
|
17
|
+
}
|
|
18
|
+
}, [1, "justifi-checkout-summary"]);
|
|
19
|
+
function defineCustomElement() {
|
|
20
|
+
if (typeof customElements === "undefined") {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const components = ["justifi-checkout-summary"];
|
|
24
|
+
components.forEach(tagName => { switch (tagName) {
|
|
25
|
+
case "justifi-checkout-summary":
|
|
26
|
+
if (!customElements.get(tagName)) {
|
|
27
|
+
customElements.define(tagName, Summary);
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
} });
|
|
31
|
+
}
|
|
32
|
+
defineCustomElement();
|
|
33
|
+
|
|
34
|
+
export { Summary as S, defineCustomElement as d };
|
|
@@ -8,7 +8,6 @@ import './Checkout.js';
|
|
|
8
8
|
import { p as pagingDefaults } from './Pagination.js';
|
|
9
9
|
import './Payment.js';
|
|
10
10
|
import { a as TerminalOrderType } from './Refund.js';
|
|
11
|
-
import './Document.js';
|
|
12
11
|
import './Business.js';
|
|
13
12
|
import { n as tableHeadCell, a8 as getAlternateTableCellPart } from './parts.js';
|
|
14
13
|
import { B as Badge, a as BadgeVariant } from './badge.js';
|
|
@@ -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';
|
|
@@ -28,10 +28,3 @@ export declare const nicknameValidation: import("yup").StringSchema<string, impo
|
|
|
28
28
|
export declare const accountTypeValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
29
29
|
export declare const accountNumberValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
30
30
|
export declare const routingNumberValidation: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
|
|
31
|
-
export declare const ss4Validation: import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
32
|
-
export declare const governmentIdValidation: import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
33
|
-
export declare const otherDocumentValidation: import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
34
|
-
export declare const voidedCheckValidation: (documents: any[], allowOptionalFields: boolean) => import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
35
|
-
export declare const bankStatementValidation: (documents: any[], allowOptionalFields: boolean) => import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
36
|
-
export declare const balanceSheetValidation: (volume: string, documents: any[], allowOptionalFields: boolean) => import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
37
|
-
export declare const profitAndLossStatementValidation: (volume: string, documents: any[], allowOptionalFields: boolean) => import("yup").MixedSchema<{}, import("yup").AnyObject, undefined, "">;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import JustifiAnalytics from '../../api/Analytics';
|
|
3
3
|
import { BillingFormFields } from './billing-form/billing-form-schema';
|
|
4
|
-
import { ILoadedEventResponse } from '../../api';
|
|
5
|
-
import { ComponentErrorEvent } from '../../api/ComponentEvents';
|
|
4
|
+
import { ICheckout, ILoadedEventResponse } from '../../api';
|
|
5
|
+
import { ComponentErrorEvent, ComponentSubmitEvent } from '../../api/ComponentEvents';
|
|
6
6
|
export declare class Checkout {
|
|
7
|
+
modularCheckoutRef?: HTMLJustifiModularCheckoutElement;
|
|
8
|
+
paymentMethodOptionsRef?: HTMLJustifiPaymentMethodOptionsElement;
|
|
9
|
+
analytics: JustifiAnalytics;
|
|
10
|
+
checkout: ICheckout;
|
|
11
|
+
complete: Function;
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
insuranceToggled: boolean;
|
|
14
|
+
renderState: 'loading' | 'error' | 'success';
|
|
15
|
+
serverError: string;
|
|
7
16
|
authToken: string;
|
|
8
17
|
checkoutId: string;
|
|
9
18
|
disableCreditCard?: boolean;
|
|
@@ -12,18 +21,19 @@ export declare class Checkout {
|
|
|
12
21
|
disablePaymentMethodGroup?: boolean;
|
|
13
22
|
hideCardBillingForm?: boolean;
|
|
14
23
|
hideBankAccountBillingForm?: boolean;
|
|
15
|
-
getCheckout: Function;
|
|
16
|
-
complete: Function;
|
|
17
|
-
errorMessage: string;
|
|
18
24
|
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
25
|
+
submitEvent: EventEmitter<ComponentSubmitEvent>;
|
|
19
26
|
loadedEvent: EventEmitter<ILoadedEventResponse>;
|
|
20
|
-
|
|
21
|
-
analytics: JustifiAnalytics;
|
|
27
|
+
propChanged(): void;
|
|
22
28
|
connectedCallback(): void;
|
|
23
29
|
componentWillLoad(): void;
|
|
24
30
|
disconnectedCallback(): void;
|
|
25
|
-
private
|
|
26
|
-
|
|
31
|
+
private fetchData;
|
|
32
|
+
private submit;
|
|
33
|
+
get isLoading(): boolean;
|
|
34
|
+
get summary(): any;
|
|
35
|
+
get paymentTypeHeader(): any;
|
|
36
|
+
get paymentType(): any;
|
|
27
37
|
fillBillingForm(fields: BillingFormFields): Promise<void>;
|
|
28
38
|
validate(): Promise<{
|
|
29
39
|
isValid: boolean;
|
|
@@ -6,6 +6,7 @@ export declare class PaymentMethodOptions {
|
|
|
6
6
|
showCard: boolean;
|
|
7
7
|
showAch: boolean;
|
|
8
8
|
showSavedPaymentMethods: boolean;
|
|
9
|
+
showBnpl: boolean;
|
|
9
10
|
paymentMethodGroupId?: string;
|
|
10
11
|
bnpl: IBnpl;
|
|
11
12
|
insuranceToggled: boolean;
|
|
@@ -15,13 +16,13 @@ export declare class PaymentMethodOptions {
|
|
|
15
16
|
paymentAmount: number;
|
|
16
17
|
hideCardBillingForm?: boolean;
|
|
17
18
|
hideBankAccountBillingForm?: boolean;
|
|
18
|
-
selectedPaymentMethodId: string;
|
|
19
19
|
paymentMethodOptions: PaymentMethodOption[];
|
|
20
20
|
private selectedPaymentMethodOptionRef?;
|
|
21
21
|
fillBillingForm(fields: BillingFormFields): Promise<void>;
|
|
22
22
|
connectedCallback(): void;
|
|
23
23
|
paymentMethodsChanged(): void;
|
|
24
24
|
paymentMethodOptionSelected(event: CustomEvent<PaymentMethodOption>): void;
|
|
25
|
+
private get hiddenRadioInput();
|
|
25
26
|
resolvePaymentMethod(insuranceValidation: any): Promise<PaymentMethodPayload>;
|
|
26
27
|
validate(): Promise<{
|
|
27
28
|
isValid: boolean;
|
|
@@ -26,6 +26,6 @@ export declare class CheckoutWrapper {
|
|
|
26
26
|
private tokenizePaymentMethod;
|
|
27
27
|
private getPaymentMethod;
|
|
28
28
|
validate(): Promise<boolean>;
|
|
29
|
-
submitCheckout(submitCheckoutArgs
|
|
29
|
+
submitCheckout(submitCheckoutArgs?: IBillingInfo): Promise<void>;
|
|
30
30
|
render(): any;
|
|
31
31
|
}
|
|
@@ -572,7 +572,7 @@ export namespace Components {
|
|
|
572
572
|
* @default false
|
|
573
573
|
*/
|
|
574
574
|
"savePaymentMethod"?: boolean;
|
|
575
|
-
"submitCheckout": (submitCheckoutArgs
|
|
575
|
+
"submitCheckout": (submitCheckoutArgs?: IBillingInfo) => Promise<void>;
|
|
576
576
|
"validate": () => Promise<boolean>;
|
|
577
577
|
}
|
|
578
578
|
interface JustifiNewPaymentMethod {
|
|
@@ -634,6 +634,7 @@ export namespace Components {
|
|
|
634
634
|
*/
|
|
635
635
|
"savedPaymentMethods": any[];
|
|
636
636
|
"showAch": boolean;
|
|
637
|
+
"showBnpl": boolean;
|
|
637
638
|
"showCard": boolean;
|
|
638
639
|
"showSavedPaymentMethods": boolean;
|
|
639
640
|
"validate": () => Promise<{ isValid: boolean; errors?: any; }>;
|
|
@@ -1890,6 +1891,7 @@ declare global {
|
|
|
1890
1891
|
};
|
|
1891
1892
|
interface HTMLJustifiCheckoutElementEventMap {
|
|
1892
1893
|
"error-event": ComponentErrorEvent;
|
|
1894
|
+
"submit-event": ComponentSubmitEvent;
|
|
1893
1895
|
"loaded": ILoadedEventResponse;
|
|
1894
1896
|
}
|
|
1895
1897
|
interface HTMLJustifiCheckoutElement extends Components.JustifiCheckout, HTMLStencilElement {
|
|
@@ -3292,6 +3294,7 @@ declare namespace LocalJSX {
|
|
|
3292
3294
|
"hideCardBillingForm"?: boolean;
|
|
3293
3295
|
"onError-event"?: (event: JustifiCheckoutCustomEvent<ComponentErrorEvent>) => void;
|
|
3294
3296
|
"onLoaded"?: (event: JustifiCheckoutCustomEvent<ILoadedEventResponse>) => void;
|
|
3297
|
+
"onSubmit-event"?: (event: JustifiCheckoutCustomEvent<ComponentSubmitEvent>) => void;
|
|
3295
3298
|
}
|
|
3296
3299
|
interface JustifiCheckoutCore {
|
|
3297
3300
|
"authToken"?: string;
|
|
@@ -3509,6 +3512,7 @@ declare namespace LocalJSX {
|
|
|
3509
3512
|
*/
|
|
3510
3513
|
"savedPaymentMethods"?: any[];
|
|
3511
3514
|
"showAch"?: boolean;
|
|
3515
|
+
"showBnpl"?: boolean;
|
|
3512
3516
|
"showCard"?: boolean;
|
|
3513
3517
|
"showSavedPaymentMethods"?: boolean;
|
|
3514
3518
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,c as s}from"./p-Bta_r52Z.js";import{a as i}from"./p-DddGO-XR.js";import{P as o,C as a}from"./p-zucQG3cz.js";import{s as n}from"./p-D_FOQEGU.js";import{r as d}from"./p-C71Mxtso.js";import{S as l}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{f as c}from"./p-9REosSLu.js";import"./p-7MWRbTXI.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";const r={bankAccount:"New bank account",card:"New credit or debit card"},h=class{constructor(t){e(this,t),this.savedPaymentMethods=[],this.paymentMethodOptions=[]}async fillBillingForm(e){const t=this.selectedPaymentMethodOptionRef;t.fillBillingForm&&t.fillBillingForm(e)}connectedCallback(){this.paymentMethodsChanged()}paymentMethodsChanged(){var e,t;this.paymentMethodOptions=this.savedPaymentMethods.map((e=>new o(e))).filter((e=>(this.showCard||e.type!==i.card)&&(this.showAch||e.type!==i.bankAccount))),this.showBnpl&&"sezzle"===(null===(e=this.bnpl)||void 0===e?void 0:e.provider)&&!this.insuranceToggled&&this.paymentMethodOptions.push(new o({id:i.sezzle})),this.showCard&&this.paymentMethodOptions.push(new o({id:i.card})),this.showAch&&this.paymentMethodOptions.push(new o({id:i.bankAccount})),n.selectedPaymentMethod||(n.selectedPaymentMethod=null===(t=this.paymentMethodOptions[0])||void 0===t?void 0:t.id)}paymentMethodOptionSelected(e){n.selectedPaymentMethod=e.detail.id}get hiddenRadioInput(){return!this.showAch||!this.showCard}async resolvePaymentMethod(e){var t;return await(null===(t=this.selectedPaymentMethodOptionRef)||void 0===t?void 0:t.resolvePaymentMethod(e))}async validate(){return this.selectedPaymentMethodOptionRef.validate()}render(){return t("div",{key:"43947388e9c3e84f5af7ebefb379dcb0fc89bae7"},t("div",{key:"203dde4a60f39cfb38408f58670b89047cadd3b3",class:"radio-list-item p-3",part:d,onClick:()=>{n.selectedPaymentMethod=i.card},hidden:this.hiddenRadioInput},t("form-control-radio",{key:"c26d64e69722cbdcdd1d573c93328d322b2db256",name:"paymentMethodType",value:i.card,checked:n.selectedPaymentMethod===i.card,label:r[i.card]})),t("div",{key:"87799dce96c87b24d3f7ecc597021dbfde851a22",class:"radio-list-item p-3",part:d,onClick:()=>{n.selectedPaymentMethod=i.bankAccount},hidden:this.hiddenRadioInput},t("form-control-radio",{key:"22df7be58ce8a58a8ce38a52912234bd313c4d2e",name:"paymentMethodType",value:i.bankAccount,checked:n.selectedPaymentMethod===i.bankAccount,label:r[i.bankAccount]})),t("justifi-sezzle-payment-method",{key:"3ce43229e7268a453e5a2bad83f573105e8a6727"}),t("justifi-saved-payment-methods",{key:"e6de7f6010736a702337dd91defc8bf00604ee34",exportparts:d.split(" ").join(",")}))}static get watchers(){return{savedPaymentMethods:["paymentMethodsChanged"]}}},p=class{constructor(t){e(this,t),this.onPaymentMethodOptionClick=e=>t=>{t.preventDefault(),n.selectedPaymentMethod=e}}componentWillLoad(){n.paymentMethods.length||console.warn("No saved payment methods available.")}render(){return t(l,{key:"7bebb3f8ff2a2abe400e1d099154a1729913140c"},t("div",{key:"3a5798c5ceba63160dceecb0dc65f8a211bb5110",class:"saved-payment-methods"},n.paymentMethods.length?n.paymentMethods.map((e=>t("div",{class:"radio-list-item p-3",part:d,onClick:this.onPaymentMethodOptionClick(null==e?void 0:e.id)},t("form-control-radio",{name:"paymentMethodType",value:null==e?void 0:e.id,checked:n.selectedPaymentMethod===(null==e?void 0:e.id),label:`${a[null==e?void 0:e.brand]||""} *${null==e?void 0:e.acct_last_four}`})))):null))}},m=t("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),u=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId="sezzle",this.onPaymentMethodOptionClick=e=>{e.preventDefault(),n.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let e;this.sezzlePromise=new Promise((t=>{e=t}));const t=Number(n.paymentAmount),s=new(0,window.Checkout)({mode:"popup",publicKey:n.bnplProviderClientId,apiMode:n.bnplProviderMode,apiVersion:n.bnplProviderApiVersion});s.sezzleButtonElement=this.sezzleButtonRef,s.init({onClick:function(e){e.preventDefault(),s.startCheckout({checkout_url:n.bnplProviderCheckoutUrl})},onComplete:t=>e({bnpl:t.data}),onCancel:t=>e({bnpl:t.data}),onFailure:t=>e({bnpl:t.data})}),this.sezzleCheckout=s,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(t)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(e){return e.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var e,s;return n.bnplEnabled?t(l,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:e=>this.scriptRef=e}),t("div",{class:"radio-list-item p-3",part:d,onClick:this.onPaymentMethodOptionClick},t("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:n.selectedPaymentMethod===this.paymentMethodOptionId,label:t("div",null,t("div",null,"Buy now, pay later with ",m),this.installmentPlan&&t("small",null,t("span",null,null===(e=this.installmentPlan)||void 0===e?void 0:e.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},c(null===(s=this.installmentPlan)||void 0===s?void 0:s.installments[0].amountInCents))))}))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}};export{h as justifi_payment_method_options,p as justifi_saved_payment_methods,u as justifi_sezzle_payment_method}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as i}from"./p-Bta_r52Z.js";import{f as e}from"./p-9REosSLu.js";import{C as
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-Bta_r52Z.js";import{f as e}from"./p-9REosSLu.js";import{C as o}from"./p-DX1Drndq.js";import{C as a}from"./p-BhrFjjAs.js";import{v as r,i as d,a as h,H as c}from"./p-BRvTM0jE.js";import{B as n}from"./p-IrS5pxMU.js";import{S as l}from"./p-BEDtXmpq.js";import{S as p}from"./p-C8rAwXW9.js";import{t as m,d as f}from"./p-C71Mxtso.js";import{H as b}from"./p-CGCMYhyV.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const u=class{constructor(i){s(this,i),this.submitEvent=t(this,"submit-event"),this.errorEvent=t(this,"error-event"),this.loaded=t(this,"loaded"),this.hasLoadedFonts=!1,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1,this.completeCheckout=async s=>{this.complete({payment:s,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=s=>{this.submitEvent.emit({response:s}),this.renderState="success"},this.onError=({error:s,code:t,severity:i})=>{this.serverError=s,this.errorEvent.emit({errorCode:t,message:s,severity:i}),this.renderState="error"}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}async validate(){const s=r(),{isValid:t}=await this.paymentMethodOptionsRef.validate();return s.isValid&&t?{isValid:!0}:{isValid:!1}}componentWillLoad(){this.getCheckout&&(this.fetchData(),d("set",(s=>{const t=h[s];void 0!==t&&(this.insuranceToggled=t,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:s})=>{this.checkout=new o(s);const{status:t}=this.checkout;this.loaded.emit({checkout_status:t}),this.renderState="success"},onError:({error:s,code:t,severity:i})=>{this.serverError=s,this.renderState="error",this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}async submit(s){var t;s.preventDefault(),this.renderState="loading";const i=r(),e=await this.paymentMethodOptionsRef.resolvePaymentMethod(i);e.validationError?this.renderState="error":e.error?(this.renderState="error",this.serverError=e.error.message,this.onError({code:e.error.code,error:e.error.message,severity:a.ERROR})):e.token?this.completeCheckout({payment_mode:"ecom",payment_token:e.token}):"success"===(null===(t=e.bnpl)||void 0===t?void 0:t.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var s,t,e,o,a;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(p,{height:"300px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("justifi-payment-method-options",{ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(s=this.checkout)||void 0===s?void 0:s.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,bnpl:null===(t=this.checkout)||void 0===t?void 0:t.bnpl,authToken:this.authToken,"account-id":null===(e=this.checkout)||void 0===e?void 0:e.account_id,savedPaymentMethods:(null===(o=this.checkout)||void 0===o?void 0:o.payment_methods)||[],paymentAmount:null===(a=this.checkout)||void 0===a?void 0:a.payment_amount,insuranceToggled:this.insuranceToggled})))}get summary(){var s,t;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(p,{height:"24px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("div",{part:m},null===(s=this.checkout)||void 0===s?void 0:s.payment_description),i("div",null,i("span",{part:m},"Total")," ",i("span",{part:m},e(+(null===(t=this.checkout)||void 0===t?void 0:t.total_amount))))))}render(){return i(l,{key:"2fb8b2c2b543712023c74cf9b41dc57675c89237"},i("div",{key:"caba36e076e4162d9c92844f7c0632b5bf678de6",class:"row gy-3 jfi-checkout-core"},i("div",{key:"6a27d64005d785815d5567894d6e2a6e1e515cf8",class:"col-12",part:f},i(c,{key:"645fe4250331805e86811700b453458f065188bd",text:"Summary",class:"fs-5 fw-bold pb-3"}),this.summary),i("div",{key:"c49c73eb3462ad17e0344e74be508abe958a9358",class:"col-12"},i("slot",{key:"be626bff57c95b92f9853e2e9b63dd9279834142",name:"insurance"})),i("div",{key:"025b0400164935f10d6c79d445bfdcf157290fd6",class:"col-12 mt-4"},i(c,{key:"483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab",text:"Payment",class:"fs-5 fw-bold pb-3"}),i(b,{key:"21abbd4d669e351c8ad0a87b7b408a4998948b46",text:"Select payment type",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"9441e97e1bd64b796ebcf1404d4ca04964990982",class:"d-flex flex-column"},this.paymentType)),i("div",{key:"9db2e4fccff5b868e7d329d9b0be864942adcc3d",class:"col-12"},i("div",{key:"2eaef4ed6062b27de2516de7b71a056c829f8cab",class:"d-flex justify-content-end"},i(n,{key:"505869afa61094d628b58a32749c44f678e4fda3",type:"submit",variant:"primary",onClick:s=>this.submit(s),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};export{u as justifi_checkout_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as n,h as e}from"./p-Bta_r52Z.js";import{aw as r,ax as i,ay as o}from"./p-C71Mxtso.js";var a="top",u="bottom",f="right",s="left",c="auto",l=[a,u,f,s],d="start",p="end",h="viewport",v="popper",b=l.reduce((function(t,n){return t.concat([n+"-"+d,n+"-"+p])}),[]),m=[].concat(l,[c]).reduce((function(t,n){return t.concat([n,n+"-"+d,n+"-"+p])}),[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function w(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function g(t){return t instanceof x(t).Element||t instanceof Element}function O(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}function k(t){return t.split("-")[0]}var M=Math.max,E=Math.min,q=Math.round;function B(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(B())}function P(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&O(t)&&(i=t.offsetWidth>0&&q(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&q(r.height)/t.offsetHeight||1);var a=(g(t)?x(t):window).visualViewport,u=!A()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,s=(r.top+(u&&a?a.offsetTop:0))/o,c=r.width/i,l=r.height/o;return{width:c,height:l,top:s,right:f+c,bottom:s+l,left:f,x:f,y:s}}function R(t){var n=P(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function C(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&j(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(t){return x(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(w(t))>=0}function W(t){return((g(t)?t.ownerDocument:t.document)||window.document).documentElement}function z(t){return"html"===w(t)?t:t.assignedSlot||t.parentNode||(j(t)?t.host:null)||W(t)}function H(t){return O(t)&&"fixed"!==L(t).position?t.offsetParent:null}function T(t){for(var n=x(t),e=H(t);e&&S(e)&&"static"===L(e).position;)e=H(e);return e&&("html"===w(e)||"body"===w(e)&&"static"===L(e).position)?n:e||function(t){var n=/firefox/i.test(B());if(/Trident/i.test(B())&&O(t)&&"fixed"===L(t).position)return null;var e=z(t);for(j(e)&&(e=e.host);O(e)&&["html","body"].indexOf(w(e))<0;){var r=L(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function _(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function I(t,n,e){return M(t,E(n,e))}function V(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function D(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function F(t){return t.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(t){var n,e=t.popper,r=t.popperRect,i=t.placement,o=t.variation,c=t.offsets,l=t.position,d=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,m=c.x,y=void 0===m?0:m,w=c.y,g=void 0===w?0:w,O="function"==typeof v?v({x:y,y:g}):{x:y,y:g};y=O.x,g=O.y;var j=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),M=s,E=a,B=window;if(h){var A=T(e),P="clientHeight",R="clientWidth";A===x(e)&&"static"!==L(A=W(e)).position&&"absolute"===l&&(P="scrollHeight",R="scrollWidth"),(i===a||(i===s||i===f)&&o===p)&&(E=u,g-=(b&&A===B&&B.visualViewport?B.visualViewport.height:A[P])-r.height,g*=d?1:-1),i!==s&&(i!==a&&i!==u||o!==p)||(M=f,y-=(b&&A===B&&B.visualViewport?B.visualViewport.width:A[R])-r.width,y*=d?1:-1)}var C,S=Object.assign({position:l},h&&U),z=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:q(t.x*r)/r||0,y:q(e*r)/r||0}}({x:y,y:g},x(e)):{x:y,y:g};return y=z.x,g=z.y,Object.assign({},S,d?((C={})[E]=k?"0":"",C[M]=j?"0":"",C.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",C):((n={})[E]=k?g+"px":"",n[M]=j?y+"px":"",n.transform="",n))}var G={passive:!0},J={left:"right",right:"left",bottom:"top",top:"bottom"};function K(t){return t.replace(/left|right|bottom|top/g,(function(t){return J[t]}))}var N={start:"end",end:"start"};function Q(t){return t.replace(/start|end/g,(function(t){return N[t]}))}function X(t){var n=x(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Y(t){return P(W(t)).left+X(t).scrollLeft}function $(t){var n=L(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function tt(t){return["html","body","#document"].indexOf(w(t))>=0?t.ownerDocument.body:O(t)&&$(t)?t:tt(z(t))}function nt(t,n){var e;void 0===n&&(n=[]);var r=tt(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=x(r),a=i?[o].concat(o.visualViewport||[],$(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(nt(z(a)))}function et(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rt(t,n,e){return n===h?et(function(t,n){var e=x(t),r=W(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var s=A();(s||!s&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+Y(t),y:f}}(t,e)):g(n)?function(t,n){var e=P(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):et(function(t){var n,e=W(t),r=X(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=M(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=M(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Y(t),f=-r.scrollTop;return"rtl"===L(i||e).direction&&(u+=M(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(W(t)))}function it(t){var n,e=t.reference,r=t.element,i=t.placement,o=i?k(i):null,c=i?F(i):null,l=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2;switch(o){case a:n={x:l,y:e.y-r.height};break;case u:n={x:l,y:e.y+e.height};break;case f:n={x:e.x+e.width,y:h};break;case s:n={x:e.x-r.width,y:h};break;default:n={x:e.x,y:e.y}}var v=o?_(o):null;if(null!=v){var b="y"===v?"height":"width";switch(c){case d:n[v]=n[v]-(e[b]/2-r[b]/2);break;case p:n[v]=n[v]+(e[b]/2-r[b]/2)}}return n}function ot(t,n){void 0===n&&(n={});var e=n.placement,r=void 0===e?t.placement:e,i=n.strategy,o=void 0===i?t.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,d=n.rootBoundary,p=void 0===d?h:d,b=n.elementContext,m=void 0===b?v:b,y=n.altBoundary,x=void 0!==y&&y,j=n.padding,k=void 0===j?0:j,q=V("number"!=typeof k?k:D(k,l)),B=t.rects.popper,A=t.elements[x?m===v?"reference":v:m],R=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=nt(z(t)),e=["absolute","fixed"].indexOf(L(t).position)>=0&&O(t)?T(t):t;return g(e)?n.filter((function(t){return g(t)&&C(t,e)&&"body"!==w(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=rt(t,e,r);return n.top=M(i.top,n.top),n.right=E(i.right,n.right),n.bottom=E(i.bottom,n.bottom),n.left=M(i.left,n.left),n}),rt(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(g(A)?A:A.contextElement||W(t.elements.popper),c,p,o),S=P(t.elements.reference),H=it({reference:S,element:B,placement:r}),_=et(Object.assign({},B,H)),I=m===v?_:S,F={top:R.top-I.top+q.top,bottom:I.bottom-R.bottom+q.bottom,left:R.left-I.left+q.left,right:I.right-R.right+q.right},U=t.modifiersData.offset;if(m===v&&U){var Z=U[r];Object.keys(F).forEach((function(t){var n=[f,u].indexOf(t)>=0?1:-1,e=[a,u].indexOf(t)>=0?"y":"x";F[t]+=Z[e]*n}))}return F}function at(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,i=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?m:a,f=F(n.placement),s=f?o?b:b.filter((function(t){return F(t)===f})):l,c=s.filter((function(t){return u.indexOf(t)>=0}));0===c.length&&(c=s);var d=c.reduce((function(n,o){return n[o]=ot(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[k(o)],n}),{});return Object.keys(d).sort((function(t,n){return d[t]-d[n]}))}var ut={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name;if(!n.modifiersData[r]._skip){for(var i=e.mainAxis,o=void 0===i||i,l=e.altAxis,p=void 0===l||l,h=e.fallbackPlacements,v=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,w=e.flipVariations,x=void 0===w||w,g=e.allowedAutoPlacements,O=n.options.placement,j=k(O),M=h||(j!==O&&x?function(t){if(k(t)===c)return[];var n=K(t);return[Q(t),n,Q(n)]}(O):[K(O)]),E=[O].concat(M).reduce((function(t,e){return t.concat(k(e)===c?at(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),q=n.rects.reference,B=n.rects.popper,A=new Map,P=!0,R=E[0],C=0;C<E.length;C++){var L=E[C],S=k(L),W=F(L)===d,z=[a,u].indexOf(S)>=0,H=z?"width":"height",T=ot(n,{placement:L,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),_=z?W?f:s:W?u:a;q[H]>B[H]&&(_=K(_));var I=K(_),V=[];if(o&&V.push(T[S]<=0),p&&V.push(T[_]<=0,T[I]<=0),V.every((function(t){return t}))){R=L,P=!1;break}A.set(L,V)}if(P)for(var D=function(t){var n=E.find((function(n){var e=A.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return R=n,"break"},U=x?3:1;U>0&&"break"!==D(U);U--);n.placement!==R&&(n.modifiersData[r]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ft(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function st(t){return[a,f,u,s].some((function(n){return t[n]>=0}))}function ct(t,n,e){void 0===e&&(e=!1);var r,i,o=O(n),a=O(n)&&function(t){var n=t.getBoundingClientRect(),e=q(n.width)/t.offsetWidth||1,r=q(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=W(n),f=P(t,a,e),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!e)&&(("body"!==w(n)||$(u))&&(s=(r=n)!==x(r)&&O(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:X(r)),O(n)?((c=P(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):u&&(c.x=Y(u))),{x:f.left+s.scrollLeft-c.x,y:f.top+s.scrollTop-c.y,width:f.width,height:f.height}}function lt(t){var n=new Map,e=new Set,r=[];function i(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||i(t)})),r}var dt={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ht(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?dt:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,i),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},f=[],s=!1,c={state:u,setOptions:function(r){var o="function"==typeof r?r(u.options):r;l(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:g(t)?nt(t):t.contextElement?nt(t.contextElement):[],popper:nt(n)};var a,s,d=function(t){var n=lt(t);return y.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),s=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return u.orderedModifiers=d.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:c,options:void 0===n?{}:n});f.push(r||function(){})}})),c.update()},forceUpdate:function(){if(!s){var t=u.elements,n=t.reference,e=t.popper;if(pt(n,e)){u.rects={reference:ct(n,T(e),"fixed"===u.options.strategy),popper:R(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options;"function"==typeof o&&(u=o({state:u,options:void 0===a?{}:a,name:i.name,instance:c})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(t){c.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),s=!0}};if(!pt(t,n))return c;function l(){f.forEach((function(t){return t()})),f=[]}return c.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),c}}var vt=ht({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,u=void 0===a||a,f=x(n.elements.popper),s=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&s.forEach((function(t){t.addEventListener("scroll",e.update,G)})),u&&f.addEventListener("resize",e.update,G),function(){o&&s.forEach((function(t){t.removeEventListener("scroll",e.update,G)})),u&&f.removeEventListener("resize",e.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=it({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,u=e.roundOffsets,f=void 0===u||u,s={placement:k(n.placement),variation:F(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Z(Object.assign({},s,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Z(Object.assign({},s,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},i=n.elements[t];O(i)&&w(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?i.removeAttribute(t):i.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],i=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});O(r)&&w(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,o=m.reduce((function(t,e){return t[e]=function(t,n,e){var r=k(t),i=[s,a].indexOf(r)>=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,u=o[0],c=o[1];return u=u||0,c=(c||0)*i,[s,f].indexOf(r)>=0?{x:c,y:u}:{x:u,y:c}}(e,n.rects,i),t}),{}),u=o[n.placement],c=u.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=u.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[e]=o}},ut,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name,i=e.mainAxis,o=void 0===i||i,c=e.altAxis,l=void 0!==c&&c,p=e.tether,h=void 0===p||p,v=e.tetherOffset,b=void 0===v?0:v,m=ot(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=k(n.placement),w=F(n.placement),x=!w,g=_(y),O="x"===g?"y":"x",j=n.modifiersData.popperOffsets,q=n.rects.reference,B=n.rects.popper,A="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,P="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),C=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,L={x:0,y:0};if(j){if(o){var S,W="y"===g?a:s,z="y"===g?u:f,H="y"===g?"height":"width",V=j[g],D=V+m[W],U=V-m[z],Z=h?-B[H]/2:0,G=w===d?q[H]:B[H],J=w===d?-B[H]:-q[H],K=n.elements.arrow,N=h&&K?R(K):{width:0,height:0},Q=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[W],Y=Q[z],$=I(0,q[H],N[H]),tt=x?q[H]/2-Z-$-X-P.mainAxis:G-$-X-P.mainAxis,nt=x?-q[H]/2+Z+$+Y+P.mainAxis:J+$+Y+P.mainAxis,et=n.elements.arrow&&T(n.elements.arrow),rt=null!=(S=null==C?void 0:C[g])?S:0,it=V+nt-rt,at=I(h?E(D,V+tt-rt-(et?"y"===g?et.clientTop||0:et.clientLeft||0:0)):D,V,h?M(U,it):U);j[g]=at,L[g]=at-V}if(l){var ut,ft=j[O],st="y"===O?"height":"width",ct=ft+m["x"===g?a:s],lt=ft-m["x"===g?u:f],dt=-1!==[a,s].indexOf(y),pt=null!=(ut=null==C?void 0:C[O])?ut:0,ht=dt?ct:ft-q[st]-B[st]-pt+P.altAxis,vt=dt?ft+q[st]+B[st]-pt-P.altAxis:lt,bt=h&&dt?function(t,n,e){var r=I(t,n,e);return r>e?e:r}(ht,ft,vt):I(h?ht:ct,ft,h?vt:lt);j[O]=bt,L[O]=bt-ft}n.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,r=t.name,i=t.options,o=e.elements.arrow,c=e.modifiersData.popperOffsets,d=k(e.placement),p=_(d),h=[s,f].indexOf(d)>=0?"height":"width";if(o&&c){var v=function(t,n){return V("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:D(t,l))}(i.padding,e),b=R(o),m="y"===p?a:s,y="y"===p?u:f,w=e.rects.reference[h]+e.rects.reference[p]-c[p]-e.rects.popper[h],x=c[p]-e.rects.reference[p],g=T(o),O=g?"y"===p?g.clientHeight||0:g.clientWidth||0:0,j=O/2-b[h]/2+(w/2-x/2),M=I(v[m],j,O-b[h]-v[y]);e.modifiersData[r]=((n={})[p]=M,n.centerOffset=M-j,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&C(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,i=n.rects.popper,o=n.modifiersData.preventOverflow,a=ot(n,{elementContext:"reference"}),u=ot(n,{altBoundary:!0}),f=ft(a,r),s=ft(u,i,o),c=st(f),l=st(s);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:l},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":l})}}]});const bt=class{constructor(e){t(this,e),this.showEvent=n(this,"showEvent"),this.hideEvent=n(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=vt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const n=t.composedPath(),e=n.includes(this.anchorRef),r=n.includes(this.popperContentRef);!this.isOpen&&e?this.show():(this.isOpen&&!r||this.isOpen&&e)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return e("div",{key:"f0fa57ab03b7b98fbf1f869ebae9410bab1b4e5f"},e("style",{key:"f8e39710d856d83d393713f0dbe42b404e60f1d8"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"74550d809cb22ddc60ab2762c6f0ea7914b05865",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"37b78e823f0bec6ebbe7a4d3dd2f177ec96a647a"})))}},mt=class{constructor(n){t(this,n)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?e("div",{class:"tooltip-container"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:o},e("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),e("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),e("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},e("div",{class:"tooltip bs-tooltip-top",part:r,role:"tooltip",ref:t=>this.tooltip=t},e("div",{class:"tooltip-inner",part:i},this.helpText)))):null}};export{bt as custom_popper,mt as form_control_tooltip}
|