@justifi/webcomponents 5.7.2 → 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/{Api-Dp4CW5K6.js → Api-BTdkb3Zh.js} +1 -1
- package/dist/cjs/{Checkout-TZnRz3-3.js → Checkout-BTgAlgVL.js} +4 -6
- package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
- package/dist/cjs/{Document-Qt0qiXeh.js → Payment-D5UynU2f.js} +0 -56
- package/dist/cjs/{Refund-BDFOEJv_.js → Refund-BFE-2OxN.js} +56 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-BxoJOyTJ.js → badge-sO_Hcamo.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -12
- package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
- package/dist/cjs/{business-additional-questions-schema-JlysTRE3.js → business-additional-questions-schema-e3GCIHk5.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business-identity-schema-BksYFWls.js → business-identity-schema-Diqj_WVQ.js} +1 -1
- package/dist/cjs/{business.service-DMIMZpx4.js → business.service-DNoCHqtI.js} +5 -5
- package/dist/cjs/{button-BPFSRx4d.js → button-CCZd8WSY.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +71 -0
- package/dist/cjs/{check-pkg-version-hqYwYpQq.js → check-pkg-version-CgQ8N_ta.js} +6 -6
- package/dist/cjs/checkout-actions-CRbQgLn0.js +61 -0
- package/dist/cjs/{checkout.service-DKH8NODe.js → checkout.service-C3R0uykH.js} +5 -5
- package/dist/cjs/checkout.store-osqdxFMq.js +29 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +13 -13
- package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{checkouts-table-Cj2iSB_P.js → checkouts-table-C1Jv_A7m.js} +2 -2
- package/dist/cjs/{config-state-D7p-XunE.js → config-state-BTfJl-LU.js} +1 -1
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper_2.cjs.entry.js} +3 -103
- package/dist/cjs/{dispute.service-8j6tLV4i.js → dispute.service-CaA-mq-i.js} +5 -5
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-D9XDyFoW.js → form-control-error-text-DPDsFdAT.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-J_boqSMc.js → form-control-help-text-CT5HzEnX.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +105 -0
- package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
- package/dist/cjs/{get-payment-details-MM1u5jMc.js → get-payment-details-CnPsEZA8.js} +7 -7
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
- package/dist/cjs/{get-subaccounts-CkjWYxIU.js → get-subaccounts-CgOAdXG4.js} +7 -7
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-auSUfIpO.js → header-1--wdCXxjA.js} +1 -1
- package/dist/cjs/{header-3-B-bXHCpC.js → header-3-DxUQJ7TT.js} +1 -1
- package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +112 -15
- package/dist/cjs/{index-BYd8IvAa.js → index-2GwnTbNA.js} +22 -4
- package/dist/cjs/{index-B8ljHEN1.js → index-DEMVrrsF.js} +1 -1
- package/dist/cjs/{insurance-state-CFxbKNWH.js → insurance-state-BmAF1Sef.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +48 -21
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-bank-account-form_4.cjs.entry.js +234 -0
- package/dist/cjs/justifi-billing-information-form_2.cjs.entry.js +103 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-business-form.cjs.entry.js +20 -20
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +9 -9
- package/dist/cjs/justifi-checkout-summary_2.cjs.entry.js +217 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +100 -99
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -13
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +18 -18
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +12 -12
- package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +17 -17
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payment-method-options_3.cjs.entry.js +166 -0
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -18
- package/dist/cjs/justifi-payout-details.cjs.entry.js +14 -14
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -19
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -16
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +7 -7
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +19 -21
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -11
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +15 -15
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +17 -17
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +20 -13
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{package-BCOEGxFC.js → package-wSbEFwqE.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
- package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
- package/dist/cjs/{payment.service-CCxGhTwZ.js → payment.service-C-HKmIG6.js} +5 -5
- package/dist/cjs/payments-list-core.cjs.entry.js +14 -14
- package/dist/cjs/{payments-list-params-state-BvG5Ysrg.js → payments-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{payments-status-BTykBx8i.js → payments-status-DPqU5v9h.js} +2 -2
- package/dist/cjs/{payments-table-BR97ybd6.js → payments-table-BM3AoAJf.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
- package/dist/cjs/{payout.service-CtphIhUK.js → payout.service-BHU3EPR2.js} +5 -5
- package/dist/cjs/payouts-list-core.cjs.entry.js +14 -14
- package/dist/cjs/{payouts-list-params-state-BvG5Ysrg.js → payouts-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{payouts-status-YCqmbd4K.js → payouts-status-CU8aqIhH.js} +2 -2
- package/dist/cjs/{payouts-table-DMcQiC1g.js → payouts-table-1HL4kk9B.js} +2 -2
- package/dist/cjs/{schema-validations-BUor-ySb.js → schema-validations-BSeMee-o.js} +0 -23
- package/dist/cjs/{skeleton-aMh0RMHq.js → skeleton-ByLavxr1.js} +1 -1
- package/dist/cjs/{spinner-BTyIjlMM.js → spinner-DOC4Ab7M.js} +1 -1
- package/dist/cjs/{styled-host-udkBJV5h.js → styled-host-IMxk64cc.js} +1 -1
- package/dist/cjs/{table-DKVauFHc.js → table-BgQP2M2-.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +13 -13
- package/dist/cjs/{terminal-orders-list-params-state-BvG5Ysrg.js → terminal-orders-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{terminal-orders-table-D-CLcZws.js → terminal-orders-table-C3KZTeE5.js} +7 -7
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-Dv_WJkue.js → terminal.service-Bc1YJWi0.js} +5 -5
- package/dist/cjs/terminals-list-core.cjs.entry.js +13 -13
- package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +22 -0
- package/dist/cjs/{terminals-table-BEJ6sF7w.js → terminals-table-yRGsrfBw.js} +2 -2
- package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
- package/dist/cjs/{utils-5lco6NzU.js → utils-bn0fXuc-.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +4 -5
- package/dist/collection/api/BillingInformation.js +1 -0
- package/dist/collection/api/Checkout.js +1 -3
- package/dist/collection/api/ComponentError.js +2 -0
- package/dist/collection/api/PaymentMethod.js +1 -0
- package/dist/collection/collection-manifest.json +9 -2
- 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/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +109 -35
- package/dist/collection/components/checkout/new-payment-method.js +2 -2
- package/dist/collection/components/checkout/payment-method-options.js +18 -37
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -13
- package/dist/collection/components/modular-checkout/modular-checkout.js +345 -0
- package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout-parts/bank-account.js +119 -0
- package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +21 -0
- package/dist/collection/components/modular-checkout-parts/billing-form.js +116 -0
- package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout-parts/card-form.js +123 -0
- package/dist/collection/components/modular-checkout-parts/postal-code-form.js +114 -0
- package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +23 -0
- package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +127 -0
- package/dist/collection/components/modular-checkout-parts/summary.js +12 -0
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
- package/dist/collection/store/checkout.store.js +25 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +10 -5
- package/dist/docs.json +1239 -454
- package/dist/esm/{Api-cgKcLG0y.js → Api-CqimcNgb.js} +2 -2
- package/dist/esm/{Checkout-B9LrTq63.js → Checkout-CH19cJxH.js} +5 -7
- package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
- package/dist/esm/{Dispute-BH0Xfn-F.js → Dispute-7MWRbTXI.js} +1 -1
- package/dist/esm/{Document-DvWsQBM6.js → Payment-BEvE6jAC.js} +3 -57
- package/dist/esm/{Refund-zZewCvey.js → Refund-BKe90wSq.js} +56 -2
- package/dist/esm/additional-questions-details_5.entry.js +4 -4
- package/dist/esm/{badge-Du9GTXoB.js → badge-BoemLewg.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +14 -14
- package/dist/esm/bank-account-form.entry.js +61 -0
- package/dist/esm/{business-additional-questions-schema-CBUm3D7O.js → business-additional-questions-schema-uQlQ8fXQ.js} +1 -1
- package/dist/esm/business-details-core.entry.js +5 -5
- package/dist/esm/{business-identity-schema-CntGz8jo.js → business-identity-schema-BsrgqgDl.js} +1 -1
- package/dist/esm/{business.service-BWivPbyO.js → business.service-wY8gOZQr.js} +6 -6
- package/dist/esm/{button-CjH5C0pG.js → button-BcLzheaP.js} +2 -2
- package/dist/esm/card-form.entry.js +69 -0
- package/dist/esm/{check-pkg-version-BykGn7tx.js → check-pkg-version-BmebRZ4u.js} +7 -7
- package/dist/esm/checkout-actions-UQ6g1s7I.js +58 -0
- package/dist/esm/{checkout.service-Bh-Q24Cr.js → checkout.service-Ci9Zkxiz.js} +6 -6
- package/dist/esm/checkout.store-DQrlfeus.js +27 -0
- package/dist/esm/checkouts-list-core.entry.js +16 -16
- package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{checkouts-table-DcVkD83l.js → checkouts-table-ub2cX2KR.js} +4 -4
- package/dist/esm/{config-state-CkKrqnpZ.js → config-state-BjXhUj2q.js} +1 -1
- package/dist/esm/{custom-popper_4.entry.js → custom-popper_2.entry.js} +5 -103
- package/dist/esm/{dispute.service-1AYcALSg.js → dispute.service-D3IjL7Z8.js} +6 -6
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox.entry.js +6 -6
- package/dist/esm/form-control-date.entry.js +5 -5
- package/dist/esm/{form-control-error-text-tGFxd6kW.js → form-control-error-text-C4vfc3el.js} +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +6 -6
- package/dist/esm/{form-control-help-text-2DawN8-N.js → form-control-help-text-Dsr1zpTw.js} +2 -2
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +4 -4
- package/dist/esm/form-control-monetary.entry.js +7 -7
- package/dist/esm/form-control-number-masked_2.entry.js +5 -5
- package/dist/esm/form-control-number.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +4 -4
- package/dist/esm/form-control-select_2.entry.js +102 -0
- package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
- package/dist/esm/{get-payment-details-DXhXxFPr.js → get-payment-details-CmVKt1jR.js} +8 -8
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
- package/dist/esm/{get-subaccounts-CtHj1UM6.js → get-subaccounts-BRX7HFGO.js} +9 -9
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-D2gZb3iT.js → header-1-CmImLcLi.js} +2 -2
- package/dist/esm/{header-3-DAg8Vh4B.js → header-3-BMoxz2Hr.js} +2 -2
- package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
- package/dist/esm/{index-D6FDxSyt.js → index-Bta_r52Z.js} +22 -5
- package/dist/esm/{index-Cc3u0uDC.js → index-Cf8VXyXg.js} +1 -1
- package/dist/esm/{insurance-state-CsZbKSgm.js → insurance-state-DMexHdvO.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +50 -23
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +15 -15
- package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
- 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 +17 -17
- package/dist/esm/justifi-business-form.entry.js +23 -23
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +12 -12
- package/dist/esm/justifi-checkout-summary_2.entry.js +214 -0
- package/dist/esm/justifi-checkout.entry.js +101 -100
- package/dist/esm/justifi-checkouts-list-filters.entry.js +13 -13
- package/dist/esm/justifi-checkouts-list.entry.js +21 -21
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +15 -15
- package/dist/esm/justifi-dispute-notification_3.entry.js +21 -21
- package/dist/esm/justifi-gross-payment-chart.entry.js +15 -15
- package/dist/esm/justifi-new-payment-method.entry.js +97 -0
- package/dist/esm/justifi-order-terminals.entry.js +20 -20
- package/dist/esm/justifi-owner-form_3.entry.js +17 -17
- package/dist/esm/justifi-payment-details.entry.js +17 -17
- package/dist/esm/justifi-payment-method-options_3.entry.js +162 -0
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +15 -15
- package/dist/esm/justifi-payment-transactions-list.entry.js +19 -19
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +20 -20
- package/dist/esm/justifi-payout-details.entry.js +17 -17
- package/dist/esm/justifi-payout-transactions-list.entry.js +19 -19
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +22 -22
- package/dist/esm/justifi-refund-payment.entry.js +19 -19
- package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +9 -9
- package/dist/esm/justifi-season-interruption-insurance.entry.js +21 -23
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +14 -14
- package/dist/esm/justifi-terminal-orders-list.entry.js +18 -18
- package/dist/esm/justifi-terminals-list-filters.entry.js +13 -13
- package/dist/esm/justifi-terminals-list.entry.js +20 -20
- package/dist/esm/justifi-tokenize-payment-method.entry.js +23 -16
- package/dist/esm/loader.js +3 -4
- package/dist/esm/{package-BjMTOtI1.js → package-CJdXAC5R.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-BrLVc_85.js → parts-C71Mxtso.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +16 -16
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
- package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
- package/dist/esm/{payment.service-2afJc31y.js → payment.service-ddFQWXPn.js} +6 -6
- package/dist/esm/payments-list-core.entry.js +17 -17
- package/dist/esm/{payments-list-params-state-Bn7pL-8x.js → payments-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{payments-status-CIUXcA0w.js → payments-status-DvsFQolO.js} +2 -2
- package/dist/esm/{payments-table-B8316Kqz.js → payments-table-CCKeaI5x.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-Bd8Tc7-Q.js → payout.service-Ws4Pebcz.js} +6 -6
- package/dist/esm/payouts-list-core.entry.js +17 -17
- package/dist/esm/{payouts-list-params-state-Bn7pL-8x.js → payouts-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{payouts-status-Clo03qUI.js → payouts-status-BkM4Gvme.js} +2 -2
- package/dist/esm/{payouts-table-Ip10eH4Q.js → payouts-table-CqBOvPOo.js} +4 -4
- package/dist/esm/{schema-validations-C7D5tPzq.js → schema-validations-DLWfpHyI.js} +2 -23
- package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-BVM4XTj9.js} +2 -2
- package/dist/esm/{spinner-onCBxbdo.js → spinner-BsxFRVXW.js} +2 -2
- package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-BSX_LSdk.js} +1 -1
- package/dist/esm/{table-p4dOlFPi.js → table-DxdC1lXb.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +16 -16
- package/dist/esm/{terminal-orders-list-params-state-Bn7pL-8x.js → terminal-orders-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{terminal-orders-table-CCJT7oq4.js → terminal-orders-table-DV7nRYuE.js} +10 -10
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-8kwGru35.js → terminal.service-DH8gRG1H.js} +6 -6
- package/dist/esm/terminals-list-core.entry.js +16 -16
- package/dist/esm/terminals-list-params-state-DhPyCV-V.js +16 -0
- package/dist/esm/{terminals-table-cMkKUVff.js → terminals-table-DUHel128.js} +4 -4
- package/dist/esm/{utils-BpP_VJGf.js → utils-B-aPFy3u.js} +2 -2
- package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
- package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
- package/dist/esm/webcomponents.js +4 -5
- package/dist/module/{check-pkg-version.js → Analytics.js} +21 -22
- package/dist/module/Checkout.js +3 -3
- package/dist/module/Refund.js +55 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -2
- package/dist/module/bank-account-form.js +83 -1
- package/dist/module/{bank-account-form2.js → bank-account.js} +27 -12
- package/dist/module/billing-form-schema.js +24 -0
- package/dist/module/billing-form.js +26 -20
- package/dist/module/billing-form2.js +91 -0
- package/dist/module/business-address-schema.js +1 -1
- 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-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -2
- package/dist/module/business.service.js +0 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form.js +91 -1
- package/dist/module/card-form2.js +30 -15
- package/dist/module/checkout.service.js +0 -1
- package/dist/module/checkout.store.js +27 -0
- package/dist/module/checkouts-list-core2.js +2 -3
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-actions.js +0 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/form.js +1 -1
- package/dist/module/get-payment-details.js +0 -1
- package/dist/module/get-subaccounts.js +0 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/header-3.js +8 -0
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-bank-account-form.d.ts +11 -0
- package/dist/module/justifi-bank-account-form.js +6 -0
- package/dist/module/justifi-billing-information-form.d.ts +11 -0
- package/dist/module/justifi-billing-information-form.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -2
- package/dist/module/justifi-card-form.d.ts +11 -0
- package/dist/module/justifi-card-form.js +6 -0
- package/dist/module/justifi-checkout-core.js +201 -1
- package/dist/module/justifi-checkout-summary.d.ts +11 -0
- package/dist/module/justifi-checkout-summary.js +6 -0
- package/dist/module/justifi-checkout.js +112 -168
- package/dist/module/justifi-checkouts-list-filters.js +2 -3
- package/dist/module/justifi-checkouts-list.js +2 -3
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-modular-checkout.d.ts +11 -0
- package/dist/module/justifi-modular-checkout.js +6 -0
- package/dist/module/justifi-new-payment-method.js +214 -1
- package/dist/module/justifi-order-terminals.js +3 -4
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payment-transactions-list.js +4 -5
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payout-transactions-list.js +4 -5
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-postal-code-form.d.ts +11 -0
- package/dist/module/justifi-postal-code-form.js +6 -0
- package/dist/module/justifi-refund-payment.js +2 -3
- package/dist/module/justifi-saved-payment-method.js +57 -1
- package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
- package/dist/module/justifi-saved-payment-methods.js +6 -0
- package/dist/module/justifi-season-interruption-insurance.js +10 -14
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -4
- package/dist/module/justifi-terminal-orders-list.js +3 -4
- package/dist/module/justifi-terminals-list-filters.js +2 -3
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +17 -83
- package/dist/module/modular-checkout.js +269 -0
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option-utils.js +23 -0
- package/dist/module/payment-method-options.js +22 -112
- package/dist/module/payment.service.js +0 -1
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +0 -1
- package/dist/module/payouts-list-core2.js +2 -3
- package/dist/module/postal-code-form.js +83 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +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/module/sezzle-payment-method.js +23 -17
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +34 -0
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +2 -3
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +0 -1
- package/dist/module/terminals-list-core2.js +2 -3
- package/dist/types/api/BillingInformation.d.ts +13 -0
- package/dist/types/api/Checkout.d.ts +14 -13
- package/dist/types/api/ComponentError.d.ts +3 -1
- package/dist/types/api/PaymentMethod.d.ts +21 -0
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +0 -7
- package/dist/types/components/checkout/checkout.d.ts +20 -9
- package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +31 -0
- package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +18 -0
- package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +23 -0
- package/dist/types/components/modular-checkout-parts/billing-form.d.ts +16 -0
- package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +20 -0
- package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +16 -0
- package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +5 -0
- package/dist/types/components/{checkout → modular-checkout-parts}/sezzle-payment-method.d.ts +2 -8
- package/dist/types/components/modular-checkout-parts/summary.d.ts +3 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +431 -20
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/store/checkout.store.d.ts +19 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
- package/dist/webcomponents/p-07e8c50a.entry.js +1 -0
- package/dist/webcomponents/{p-bf3e8295.entry.js → p-0c13f2da.entry.js} +1 -1
- package/dist/webcomponents/{p-a136ff22.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-5e467788.entry.js → p-114d2d7e.entry.js} +1 -1
- package/dist/webcomponents/p-16c567ac.entry.js +1 -0
- package/dist/webcomponents/{p-b40108c0.entry.js → p-1d59c747.entry.js} +1 -1
- package/dist/webcomponents/p-1debe4fc.entry.js +1 -0
- package/dist/webcomponents/p-1tXUo5Ef.js +1 -0
- package/dist/webcomponents/p-20ac139f.entry.js +1 -0
- package/dist/webcomponents/{p-a8119fda.entry.js → p-28190487.entry.js} +1 -1
- package/dist/webcomponents/{p-4b51a896.entry.js → p-30b1b0d4.entry.js} +1 -1
- package/dist/webcomponents/p-31b3575b.entry.js +1 -0
- 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-bb50155f.entry.js → p-498ef7fe.entry.js} +1 -1
- package/dist/webcomponents/{p-5df5aa41.entry.js → p-4cdc323c.entry.js} +1 -1
- 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-7733b67b.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-7982b38b.entry.js +1 -0
- package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
- package/dist/webcomponents/{p-c01544c3.entry.js → p-7efbe6e6.entry.js} +1 -1
- 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-a0662195.entry.js → p-93564eb7.entry.js} +1 -1
- package/dist/webcomponents/{p-77896e7b.entry.js → p-95aada97.entry.js} +1 -1
- package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
- package/dist/webcomponents/{p-59abf1de.entry.js → p-9a4b9734.entry.js} +1 -1
- package/dist/webcomponents/p-B1jCcGW-.js +1 -0
- package/dist/webcomponents/{p-DuYlA4lj.js → p-BEDtXmpq.js} +1 -1
- package/dist/webcomponents/{p-D0ptm6-3.js → p-BRvTM0jE.js} +1 -1
- package/dist/webcomponents/{p-clwP6zk3.js → p-BZAglFez.js} +1 -1
- package/dist/webcomponents/{p-DR89sFne.js → p-BdTK0wi9.js} +1 -1
- package/dist/webcomponents/p-BeOlrj_S.js +1 -0
- package/dist/webcomponents/p-BhrFjjAs.js +1 -0
- package/dist/webcomponents/p-BjIcn6FF.js +1 -0
- package/dist/webcomponents/p-BoGb-Wsw.js +1 -0
- package/dist/webcomponents/p-Bta_r52Z.js +2 -0
- package/dist/webcomponents/{p-n2YROtpe.js → p-BvkP2v3x.js} +1 -1
- package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
- package/dist/webcomponents/{p-BrLVc_85.js → p-C71Mxtso.js} +1 -1
- package/dist/webcomponents/{p-uSM1EMk-.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-CBs671Ol.js +1 -0
- package/dist/webcomponents/p-CDTncSrX.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-r__elyG4.js → p-CO90ONTY.js} +1 -1
- package/dist/webcomponents/p-CbGBEkk3.js +1 -0
- package/dist/webcomponents/p-Cl-Q3cHB.js +1 -0
- package/dist/webcomponents/{p-Cd06j2SL.js → p-D3BIZZrc.js} +1 -1
- package/dist/webcomponents/p-DFPGAF4g.js +1 -0
- package/dist/webcomponents/p-DHP6oxsO.js +1 -0
- package/dist/webcomponents/p-DKClunJd.js +1 -0
- package/dist/webcomponents/{p-DnB1x5JE.js → p-DLr6u3Be.js} +1 -1
- package/dist/webcomponents/p-DT6jDcoi.js +1 -0
- package/dist/webcomponents/p-DX1Drndq.js +1 -0
- package/dist/webcomponents/p-D_FOQEGU.js +1 -0
- package/dist/webcomponents/p-Db-JSm6-.js +1 -0
- package/dist/webcomponents/{p-BR7flk4G.js → p-Dc10zfEZ.js} +1 -1
- package/dist/webcomponents/p-DddGO-XR.js +1 -0
- package/dist/webcomponents/p-DnX5CZFd.js +1 -0
- package/dist/webcomponents/p-Dw516k9e.js +1 -0
- package/dist/webcomponents/p-DwxSNAz7.js +1 -0
- package/dist/webcomponents/p-Fa3dQnb9.js +1 -0
- package/dist/webcomponents/p-IrS5pxMU.js +1 -0
- package/dist/webcomponents/p-JOSiCHl7.js +1 -0
- package/dist/webcomponents/p-NqdaxjDT.js +1 -0
- package/dist/webcomponents/p-RadC5UjV.js +1 -0
- package/dist/webcomponents/p-SuXHDcwL.js +1 -0
- package/dist/webcomponents/{p-D2ZiLcDE.js → p-Yj41tobi.js} +1 -1
- package/dist/webcomponents/{p-DvhDilDP.js → p-_P2I6GdZ.js} +1 -1
- package/dist/webcomponents/{p-70c498d4.entry.js → p-a3245777.entry.js} +1 -1
- package/dist/webcomponents/{p-99b080d9.entry.js → p-a8f1165e.entry.js} +1 -1
- package/dist/webcomponents/p-abcde13f.entry.js +1 -0
- package/dist/webcomponents/p-b0c7f45a.entry.js +1 -0
- package/dist/webcomponents/{p-abdae97a.entry.js → p-b122d960.entry.js} +1 -1
- package/dist/webcomponents/{p-33b23638.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-758ce5e5.entry.js → p-c1dabcc9.entry.js} +3 -3
- package/dist/webcomponents/p-c4989fc1.entry.js +1 -0
- package/dist/webcomponents/{p-5d81f36e.entry.js → p-c6f6cca0.entry.js} +1 -1
- package/dist/webcomponents/p-cbfb26e2.entry.js +1 -0
- package/dist/webcomponents/p-cc26a8fa.entry.js +1 -0
- package/dist/webcomponents/p-cc5dfa3d.entry.js +1 -0
- package/dist/webcomponents/{p-2c7ae3ac.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-eHhqPyVW.js → p-d6tXI5Iw.js} +1 -1
- package/dist/webcomponents/p-dad85acd.entry.js +1 -0
- package/dist/webcomponents/p-db13afe8.entry.js +1 -0
- package/dist/webcomponents/{p-1678e9e3.entry.js → p-dd5c8738.entry.js} +1 -1
- package/dist/webcomponents/p-e2ac6f48.entry.js +1 -0
- package/dist/webcomponents/p-e2adbafd.entry.js +1 -0
- package/dist/webcomponents/p-ea664ada.entry.js +1 -0
- package/dist/webcomponents/{p-292da2d4.entry.js → p-ea883d7c.entry.js} +1 -1
- package/dist/webcomponents/{p-90c24cda.entry.js → p-ed8eb110.entry.js} +1 -1
- package/dist/webcomponents/{p-57c89023.entry.js → p-f0a849be.entry.js} +1 -1
- package/dist/webcomponents/p-f165c5fc.entry.js +1 -0
- package/dist/webcomponents/{p-a94952f6.entry.js → p-f1dcc9c2.entry.js} +1 -1
- package/dist/webcomponents/{p-10d41e17.entry.js → p-f21e1351.entry.js} +1 -1
- 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-c5628e09.entry.js → p-fa781ff0.entry.js} +1 -1
- package/dist/webcomponents/p-fe5b7b4c.entry.js +1 -0
- package/dist/webcomponents/p-hDoH7hHP.js +1 -0
- package/dist/webcomponents/{p-C0WFYqwq.js → p-kfHhaHAJ.js} +1 -1
- package/dist/webcomponents/p-pGzabKc7.js +1 -0
- package/dist/webcomponents/p-uLUlLQpP.js +1 -0
- package/dist/webcomponents/p-zucQG3cz.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
- package/dist/cjs/iframe-input-styles-state-D9vhHzZQ.js +0 -26
- package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
- package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/bank-account-form_9.entry.js +0 -571
- package/dist/esm/iframe-input-styles-state-ibYqbF--.js +0 -23
- package/dist/esm/terminals-list-params-state-Bn7pL-8x.js +0 -16
- package/dist/module/Document.js +0 -55
- package/dist/module/checkout-core.js +0 -274
- package/dist/module/new-payment-method.js +0 -204
- package/dist/module/saved-payment-method.js +0 -79
- package/dist/webcomponents/p-16d29d0b.entry.js +0 -1
- package/dist/webcomponents/p-19b9c96a.entry.js +0 -1
- package/dist/webcomponents/p-22a0b397.entry.js +0 -1
- package/dist/webcomponents/p-2c8d7aa9.entry.js +0 -1
- package/dist/webcomponents/p-3368d3d5.entry.js +0 -1
- package/dist/webcomponents/p-3a979295.entry.js +0 -1
- package/dist/webcomponents/p-3e94cf62.entry.js +0 -1
- package/dist/webcomponents/p-40f7e3af.entry.js +0 -1
- package/dist/webcomponents/p-4680f931.entry.js +0 -1
- package/dist/webcomponents/p-4a070b7a.entry.js +0 -1
- package/dist/webcomponents/p-4f8b9b99.entry.js +0 -1
- package/dist/webcomponents/p-57fc593a.entry.js +0 -1
- package/dist/webcomponents/p-639baa7d.entry.js +0 -1
- package/dist/webcomponents/p-6429afb4.entry.js +0 -1
- package/dist/webcomponents/p-6n7viK-J.js +0 -1
- package/dist/webcomponents/p-722c5e42.entry.js +0 -1
- package/dist/webcomponents/p-77ac321c.entry.js +0 -1
- package/dist/webcomponents/p-7d3cf734.entry.js +0 -1
- package/dist/webcomponents/p-8183c2d1.entry.js +0 -1
- package/dist/webcomponents/p-8ad67f87.entry.js +0 -1
- package/dist/webcomponents/p-8c107267.entry.js +0 -1
- package/dist/webcomponents/p-935bbc62.entry.js +0 -1
- package/dist/webcomponents/p-93df56e1.entry.js +0 -1
- package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
- package/dist/webcomponents/p-B190pN0v.js +0 -1
- package/dist/webcomponents/p-BjMTOtI1.js +0 -1
- package/dist/webcomponents/p-Bk4gk-f7.js +0 -1
- package/dist/webcomponents/p-C0IqfGFc.js +0 -1
- package/dist/webcomponents/p-C1sOJl-_.js +0 -1
- package/dist/webcomponents/p-C5RuuShs.js +0 -1
- package/dist/webcomponents/p-COcul8pX.js +0 -1
- package/dist/webcomponents/p-CQdeVKF8.js +0 -1
- package/dist/webcomponents/p-CaGOSFHG.js +0 -1
- package/dist/webcomponents/p-CgxzrbM_.js +0 -1
- package/dist/webcomponents/p-Cm_0sqXz.js +0 -1
- package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
- package/dist/webcomponents/p-Cx60eQXT.js +0 -1
- package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
- package/dist/webcomponents/p-D5XSsLKb.js +0 -1
- package/dist/webcomponents/p-D6FDxSyt.js +0 -2
- package/dist/webcomponents/p-DClC2nMO.js +0 -1
- package/dist/webcomponents/p-DDEz7_ad.js +0 -1
- package/dist/webcomponents/p-DJzjeg3x.js +0 -1
- package/dist/webcomponents/p-DQuL1Twl.js +0 -1
- package/dist/webcomponents/p-DgfzEZny.js +0 -1
- package/dist/webcomponents/p-DjGTAHJM.js +0 -1
- package/dist/webcomponents/p-DniQ6yo6.js +0 -1
- package/dist/webcomponents/p-DzFysjCc.js +0 -1
- package/dist/webcomponents/p-HBDBB6lL.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-U30-0DaA.js +0 -1
- package/dist/webcomponents/p-_pH3Hg4P.js +0 -1
- package/dist/webcomponents/p-a33cfcfe.entry.js +0 -1
- package/dist/webcomponents/p-a6722f44.entry.js +0 -1
- package/dist/webcomponents/p-af09b6ee.entry.js +0 -1
- package/dist/webcomponents/p-b0d3aab7.entry.js +0 -1
- package/dist/webcomponents/p-b1586aa2.entry.js +0 -1
- package/dist/webcomponents/p-c3c7be24.entry.js +0 -1
- package/dist/webcomponents/p-c5b6b76f.entry.js +0 -1
- package/dist/webcomponents/p-c6490254.entry.js +0 -1
- package/dist/webcomponents/p-cNABKY0P.js +0 -1
- package/dist/webcomponents/p-ceefc483.entry.js +0 -1
- package/dist/webcomponents/p-d8b8b17c.entry.js +0 -1
- package/dist/webcomponents/p-e2bfdba5.entry.js +0 -1
- package/dist/webcomponents/p-e73fe424.entry.js +0 -1
- package/dist/webcomponents/p-f23d4fdb.entry.js +0 -1
- package/dist/webcomponents/p-ffd197c2.entry.js +0 -1
- package/dist/webcomponents/p-gZGxqQgQ.js +0 -1
- package/dist/webcomponents/p-l3o3Ndc0.js +0 -1
- package/dist/webcomponents/p-l3uWWMRW.js +0 -1
- package/dist/webcomponents/p-um3YdOwW.js +0 -1
- package/dist/webcomponents/p-wqUvt1PB.js +0 -1
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as formatCurrency } from './utils2.js';
|
|
3
|
-
import { b as Checkout, C as ComponentErrorSeverity } from './Checkout.js';
|
|
4
|
-
import { v as validateInsuranceValues, i as insuranceValuesOn, a as insuranceValues, H as Header2 } from './insurance-state.js';
|
|
5
|
-
import { B as Button } from './button.js';
|
|
6
|
-
import { S as StyledHost } from './styled-host.js';
|
|
7
|
-
import { S as Skeleton } from './skeleton.js';
|
|
8
|
-
import { t as text, V as checkoutSummary } from './parts.js';
|
|
9
|
-
import { d as defineCustomElement$6, H as Header3 } from './billing-form.js';
|
|
10
|
-
import './details.js';
|
|
11
|
-
import './event-types.js';
|
|
12
|
-
import { d as defineCustomElement$h } from './bank-account-form2.js';
|
|
13
|
-
import { d as defineCustomElement$g } from './card-form2.js';
|
|
14
|
-
import { d as defineCustomElement$f } from './custom-popper2.js';
|
|
15
|
-
import { d as defineCustomElement$e } from './form-control-checkbox2.js';
|
|
16
|
-
import { d as defineCustomElement$d } from './form-control-help-text2.js';
|
|
17
|
-
import { d as defineCustomElement$c } from './form-control-radio2.js';
|
|
18
|
-
import { d as defineCustomElement$b } from './form-control-select2.js';
|
|
19
|
-
import { d as defineCustomElement$a } from './form-control-text2.js';
|
|
20
|
-
import { d as defineCustomElement$9 } from './form-control-tooltip2.js';
|
|
21
|
-
import { d as defineCustomElement$8 } from './hidden-input2.js';
|
|
22
|
-
import { d as defineCustomElement$7 } from './iframe-input2.js';
|
|
23
|
-
import { d as defineCustomElement$5 } from './new-payment-method.js';
|
|
24
|
-
import { d as defineCustomElement$4 } from './payment-method-options.js';
|
|
25
|
-
import { d as defineCustomElement$3 } from './save-new-payment-method.js';
|
|
26
|
-
import { d as defineCustomElement$2 } from './saved-payment-method.js';
|
|
27
|
-
import { d as defineCustomElement$1 } from './sezzle-payment-method.js';
|
|
28
|
-
|
|
29
|
-
const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends HTMLElement {
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
this.__registerHost();
|
|
33
|
-
this.__attachShadow();
|
|
34
|
-
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
35
|
-
this.errorEvent = createEvent(this, "error-event", 7);
|
|
36
|
-
this.loaded = createEvent(this, "loaded", 7);
|
|
37
|
-
this.hasLoadedFonts = false;
|
|
38
|
-
this.renderState = 'loading';
|
|
39
|
-
this.creatingNewPaymentMethod = false;
|
|
40
|
-
this.insuranceToggled = false;
|
|
41
|
-
this.completeCheckout = async (payment) => {
|
|
42
|
-
this.complete({
|
|
43
|
-
payment,
|
|
44
|
-
onSuccess: this.onSubmitted,
|
|
45
|
-
onError: this.onError,
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
this.onSubmitted = (response) => {
|
|
49
|
-
this.submitEvent.emit({ response: response });
|
|
50
|
-
this.renderState = 'success';
|
|
51
|
-
};
|
|
52
|
-
this.onError = ({ error, code, severity }) => {
|
|
53
|
-
this.serverError = error;
|
|
54
|
-
this.errorEvent.emit({
|
|
55
|
-
errorCode: code,
|
|
56
|
-
message: error,
|
|
57
|
-
severity,
|
|
58
|
-
});
|
|
59
|
-
this.renderState = 'error';
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
async fillBillingForm(fields) {
|
|
63
|
-
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
64
|
-
}
|
|
65
|
-
async validate() {
|
|
66
|
-
const insuranceValidation = validateInsuranceValues();
|
|
67
|
-
const { isValid } = await this.paymentMethodOptionsRef.validate();
|
|
68
|
-
if (!insuranceValidation.isValid || !isValid) {
|
|
69
|
-
return { isValid: false };
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return { isValid: true };
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
componentWillLoad() {
|
|
76
|
-
if (this.getCheckout) {
|
|
77
|
-
this.fetchData();
|
|
78
|
-
// Refresh the checkout data when insurance is added or removed
|
|
79
|
-
insuranceValuesOn('set', (key) => {
|
|
80
|
-
const value = insuranceValues[key];
|
|
81
|
-
if (value !== undefined) {
|
|
82
|
-
this.insuranceToggled = value;
|
|
83
|
-
this.fetchData();
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
fetchData() {
|
|
89
|
-
this.renderState = 'loading';
|
|
90
|
-
this.getCheckout({
|
|
91
|
-
onSuccess: ({ checkout }) => {
|
|
92
|
-
this.checkout = new Checkout(checkout);
|
|
93
|
-
const { status } = this.checkout;
|
|
94
|
-
this.loaded.emit({ checkout_status: status });
|
|
95
|
-
this.renderState = 'success';
|
|
96
|
-
},
|
|
97
|
-
onError: ({ error, code, severity }) => {
|
|
98
|
-
this.serverError = error;
|
|
99
|
-
this.renderState = 'error';
|
|
100
|
-
this.errorEvent.emit({
|
|
101
|
-
errorCode: code,
|
|
102
|
-
message: error,
|
|
103
|
-
severity,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
;
|
|
109
|
-
async submit(event) {
|
|
110
|
-
var _a;
|
|
111
|
-
event.preventDefault();
|
|
112
|
-
this.renderState = 'loading';
|
|
113
|
-
const insuranceValidation = validateInsuranceValues();
|
|
114
|
-
const payload = await this.paymentMethodOptionsRef.resolvePaymentMethod(insuranceValidation);
|
|
115
|
-
if (payload.validationError) {
|
|
116
|
-
this.renderState = 'error';
|
|
117
|
-
}
|
|
118
|
-
else if (payload.error) {
|
|
119
|
-
this.renderState = 'error';
|
|
120
|
-
this.serverError = payload.error.message;
|
|
121
|
-
this.onError({
|
|
122
|
-
code: payload.error.code,
|
|
123
|
-
error: payload.error.message,
|
|
124
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
else if (payload.token) {
|
|
128
|
-
this.completeCheckout({ payment_mode: 'ecom', payment_token: payload.token });
|
|
129
|
-
}
|
|
130
|
-
else if (((_a = payload.bnpl) === null || _a === void 0 ? void 0 : _a.status) === 'success') {
|
|
131
|
-
this.completeCheckout({ payment_mode: 'bnpl' });
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
this.renderState = 'error';
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
get isLoading() {
|
|
138
|
-
return this.renderState === 'loading';
|
|
139
|
-
}
|
|
140
|
-
get isError() {
|
|
141
|
-
return this.renderState === 'error';
|
|
142
|
-
}
|
|
143
|
-
get paymentType() {
|
|
144
|
-
var _a, _b, _c, _d, _e;
|
|
145
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
146
|
-
}
|
|
147
|
-
get summary() {
|
|
148
|
-
var _a, _b;
|
|
149
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { part: text }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", null, h("span", { part: text }, "Total"), "\u00A0", h("span", { part: text }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
150
|
-
}
|
|
151
|
-
render() {
|
|
152
|
-
return (h(StyledHost, { key: '2fb8b2c2b543712023c74cf9b41dc57675c89237' }, h("div", { key: 'caba36e076e4162d9c92844f7c0632b5bf678de6', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '6a27d64005d785815d5567894d6e2a6e1e515cf8', class: "col-12", part: checkoutSummary }, h(Header2, { key: '645fe4250331805e86811700b453458f065188bd', text: "Summary", class: "fs-5 fw-bold pb-3" }), this.summary), h("div", { key: 'c49c73eb3462ad17e0344e74be508abe958a9358', class: "col-12" }, h("slot", { key: 'be626bff57c95b92f9853e2e9b63dd9279834142', name: "insurance" })), h("div", { key: '025b0400164935f10d6c79d445bfdcf157290fd6', class: "col-12 mt-4" }, h(Header2, { key: '483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab', text: "Payment", class: "fs-5 fw-bold pb-3" }), h(Header3, { key: '21abbd4d669e351c8ad0a87b7b408a4998948b46', text: "Select payment type", class: "fs-6 fw-bold lh-lg" }), h("div", { key: '9441e97e1bd64b796ebcf1404d4ca04964990982', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9db2e4fccff5b868e7d329d9b0be864942adcc3d', class: "col-12" }, h("div", { key: '2eaef4ed6062b27de2516de7b71a056c829f8cab', class: "d-flex justify-content-end" }, h(Button, { key: '505869afa61094d628b58a32749c44f678e4fda3', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
153
|
-
}
|
|
154
|
-
}, [1, "justifi-checkout-core", {
|
|
155
|
-
"authToken": [1, "auth-token"],
|
|
156
|
-
"getCheckout": [16, "get-checkout"],
|
|
157
|
-
"complete": [16],
|
|
158
|
-
"checkoutId": [1, "checkout-id"],
|
|
159
|
-
"disableCreditCard": [4, "disable-credit-card"],
|
|
160
|
-
"disableBankAccount": [4, "disable-bank-account"],
|
|
161
|
-
"disableBnpl": [4, "disable-bnpl"],
|
|
162
|
-
"disablePaymentMethodGroup": [4, "disable-payment-method-group"],
|
|
163
|
-
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
164
|
-
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
165
|
-
"hasLoadedFonts": [32],
|
|
166
|
-
"checkout": [32],
|
|
167
|
-
"serverError": [32],
|
|
168
|
-
"renderState": [32],
|
|
169
|
-
"creatingNewPaymentMethod": [32],
|
|
170
|
-
"insuranceToggled": [32],
|
|
171
|
-
"fillBillingForm": [64],
|
|
172
|
-
"validate": [64]
|
|
173
|
-
}]);
|
|
174
|
-
function defineCustomElement() {
|
|
175
|
-
if (typeof customElements === "undefined") {
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
const components = ["justifi-checkout-core", "bank-account-form", "card-form", "custom-popper", "form-control-checkbox", "form-control-help-text", "form-control-radio", "form-control-select", "form-control-text", "form-control-tooltip", "hidden-input", "iframe-input", "justifi-billing-form", "justifi-new-payment-method", "justifi-payment-method-options", "justifi-save-new-payment-method", "justifi-saved-payment-method", "justifi-sezzle-payment-method"];
|
|
179
|
-
components.forEach(tagName => { switch (tagName) {
|
|
180
|
-
case "justifi-checkout-core":
|
|
181
|
-
if (!customElements.get(tagName)) {
|
|
182
|
-
customElements.define(tagName, CheckoutCore);
|
|
183
|
-
}
|
|
184
|
-
break;
|
|
185
|
-
case "bank-account-form":
|
|
186
|
-
if (!customElements.get(tagName)) {
|
|
187
|
-
defineCustomElement$h();
|
|
188
|
-
}
|
|
189
|
-
break;
|
|
190
|
-
case "card-form":
|
|
191
|
-
if (!customElements.get(tagName)) {
|
|
192
|
-
defineCustomElement$g();
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
case "custom-popper":
|
|
196
|
-
if (!customElements.get(tagName)) {
|
|
197
|
-
defineCustomElement$f();
|
|
198
|
-
}
|
|
199
|
-
break;
|
|
200
|
-
case "form-control-checkbox":
|
|
201
|
-
if (!customElements.get(tagName)) {
|
|
202
|
-
defineCustomElement$e();
|
|
203
|
-
}
|
|
204
|
-
break;
|
|
205
|
-
case "form-control-help-text":
|
|
206
|
-
if (!customElements.get(tagName)) {
|
|
207
|
-
defineCustomElement$d();
|
|
208
|
-
}
|
|
209
|
-
break;
|
|
210
|
-
case "form-control-radio":
|
|
211
|
-
if (!customElements.get(tagName)) {
|
|
212
|
-
defineCustomElement$c();
|
|
213
|
-
}
|
|
214
|
-
break;
|
|
215
|
-
case "form-control-select":
|
|
216
|
-
if (!customElements.get(tagName)) {
|
|
217
|
-
defineCustomElement$b();
|
|
218
|
-
}
|
|
219
|
-
break;
|
|
220
|
-
case "form-control-text":
|
|
221
|
-
if (!customElements.get(tagName)) {
|
|
222
|
-
defineCustomElement$a();
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
case "form-control-tooltip":
|
|
226
|
-
if (!customElements.get(tagName)) {
|
|
227
|
-
defineCustomElement$9();
|
|
228
|
-
}
|
|
229
|
-
break;
|
|
230
|
-
case "hidden-input":
|
|
231
|
-
if (!customElements.get(tagName)) {
|
|
232
|
-
defineCustomElement$8();
|
|
233
|
-
}
|
|
234
|
-
break;
|
|
235
|
-
case "iframe-input":
|
|
236
|
-
if (!customElements.get(tagName)) {
|
|
237
|
-
defineCustomElement$7();
|
|
238
|
-
}
|
|
239
|
-
break;
|
|
240
|
-
case "justifi-billing-form":
|
|
241
|
-
if (!customElements.get(tagName)) {
|
|
242
|
-
defineCustomElement$6();
|
|
243
|
-
}
|
|
244
|
-
break;
|
|
245
|
-
case "justifi-new-payment-method":
|
|
246
|
-
if (!customElements.get(tagName)) {
|
|
247
|
-
defineCustomElement$5();
|
|
248
|
-
}
|
|
249
|
-
break;
|
|
250
|
-
case "justifi-payment-method-options":
|
|
251
|
-
if (!customElements.get(tagName)) {
|
|
252
|
-
defineCustomElement$4();
|
|
253
|
-
}
|
|
254
|
-
break;
|
|
255
|
-
case "justifi-save-new-payment-method":
|
|
256
|
-
if (!customElements.get(tagName)) {
|
|
257
|
-
defineCustomElement$3();
|
|
258
|
-
}
|
|
259
|
-
break;
|
|
260
|
-
case "justifi-saved-payment-method":
|
|
261
|
-
if (!customElements.get(tagName)) {
|
|
262
|
-
defineCustomElement$2();
|
|
263
|
-
}
|
|
264
|
-
break;
|
|
265
|
-
case "justifi-sezzle-payment-method":
|
|
266
|
-
if (!customElements.get(tagName)) {
|
|
267
|
-
defineCustomElement$1();
|
|
268
|
-
}
|
|
269
|
-
break;
|
|
270
|
-
} });
|
|
271
|
-
}
|
|
272
|
-
defineCustomElement();
|
|
273
|
-
|
|
274
|
-
export { CheckoutCore as C, defineCustomElement as d };
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { W as radioListItem } from './parts.js';
|
|
3
|
-
import { d as defineCustomElement$d } from './bank-account-form2.js';
|
|
4
|
-
import { d as defineCustomElement$c } from './card-form2.js';
|
|
5
|
-
import { d as defineCustomElement$b } from './custom-popper2.js';
|
|
6
|
-
import { d as defineCustomElement$a } from './form-control-checkbox2.js';
|
|
7
|
-
import { d as defineCustomElement$9 } from './form-control-help-text2.js';
|
|
8
|
-
import { d as defineCustomElement$8 } from './form-control-radio2.js';
|
|
9
|
-
import { d as defineCustomElement$7 } from './form-control-select2.js';
|
|
10
|
-
import { d as defineCustomElement$6 } from './form-control-text2.js';
|
|
11
|
-
import { d as defineCustomElement$5 } from './form-control-tooltip2.js';
|
|
12
|
-
import { d as defineCustomElement$4 } from './hidden-input2.js';
|
|
13
|
-
import { d as defineCustomElement$3 } from './iframe-input2.js';
|
|
14
|
-
import { d as defineCustomElement$2 } from './billing-form.js';
|
|
15
|
-
import { d as defineCustomElement$1 } from './save-new-payment-method.js';
|
|
16
|
-
|
|
17
|
-
const PaymentMethodTypeLabels = {
|
|
18
|
-
bankAccount: 'New bank account',
|
|
19
|
-
card: 'New credit or debit card',
|
|
20
|
-
};
|
|
21
|
-
const NewPaymentMethod = /*@__PURE__*/ proxyCustomElement(class NewPaymentMethod extends HTMLElement {
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this.__registerHost();
|
|
25
|
-
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
26
|
-
this.saveNewPaymentMethodChecked = false;
|
|
27
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
28
|
-
e.preventDefault();
|
|
29
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
handleCheckboxChanged(event) {
|
|
33
|
-
this.saveNewPaymentMethodChecked = event.detail;
|
|
34
|
-
}
|
|
35
|
-
async fillBillingForm(fields) {
|
|
36
|
-
this.billingFormRef.fill(fields);
|
|
37
|
-
}
|
|
38
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
39
|
-
var _a, _b;
|
|
40
|
-
if (!this.paymentMethodFormRef || !this.billingFormRef)
|
|
41
|
-
return;
|
|
42
|
-
try {
|
|
43
|
-
const { isValid, errors } = await this.validate();
|
|
44
|
-
if (!isValid || !insuranceValidation.isValid) {
|
|
45
|
-
// get propety value from first property in errors object
|
|
46
|
-
const message = `${Object.values(errors)[0] || 'Validation error'}`;
|
|
47
|
-
return {
|
|
48
|
-
validationError: true,
|
|
49
|
-
error: {
|
|
50
|
-
code: 'validation_error',
|
|
51
|
-
message,
|
|
52
|
-
decline_code: undefined
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
const tokenizeResponse = await this.tokenize();
|
|
57
|
-
if (tokenizeResponse.error) {
|
|
58
|
-
return { error: tokenizeResponse.error };
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
const tokenizeRessponseData = tokenizeResponse.data;
|
|
62
|
-
return {
|
|
63
|
-
token: ((_a = tokenizeRessponseData.card) === null || _a === void 0 ? void 0 : _a.token) || ((_b = tokenizeRessponseData.bank_account) === null || _b === void 0 ? void 0 : _b.token),
|
|
64
|
-
data: tokenizeRessponseData
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
catch (error) {
|
|
69
|
-
return { error };
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
async validate() {
|
|
73
|
-
const billingFormValidation = await this.billingFormRef.validate();
|
|
74
|
-
const paymentMethodFormValidation = await this.paymentMethodFormRef.validate();
|
|
75
|
-
const isValid = billingFormValidation.isValid && paymentMethodFormValidation.isValid;
|
|
76
|
-
const errors = Object.assign(Object.assign({}, billingFormValidation.errors), paymentMethodFormValidation.errors);
|
|
77
|
-
return { isValid, errors };
|
|
78
|
-
}
|
|
79
|
-
async tokenize() {
|
|
80
|
-
try {
|
|
81
|
-
const billingFormFieldValues = await this.billingFormRef.getValues();
|
|
82
|
-
let paymentMethodData;
|
|
83
|
-
if (this.saveNewPaymentMethodChecked) {
|
|
84
|
-
paymentMethodData = Object.assign(Object.assign({}, billingFormFieldValues), { payment_method_group_id: this.paymentMethodGroupId });
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
paymentMethodData = Object.assign({}, billingFormFieldValues);
|
|
88
|
-
}
|
|
89
|
-
const clientId = this.authToken;
|
|
90
|
-
const tokenizeResponse = await this.paymentMethodFormRef.tokenize(clientId, paymentMethodData, this.accountId);
|
|
91
|
-
return tokenizeResponse;
|
|
92
|
-
}
|
|
93
|
-
catch (error) {
|
|
94
|
-
return error;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
showNewPaymentMethodForm() {
|
|
98
|
-
var _a;
|
|
99
|
-
const paymentMethodType = (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
100
|
-
return (h("div", { class: "mt-4 pb-4" }, h("hidden-input", null), paymentMethodType === 'card' ? (h("card-form", { ref: (el) => this.paymentMethodFormRef = el })) : (h("bank-account-form", { ref: (el) => this.paymentMethodFormRef = el })), h("justifi-billing-form", { ref: (el) => (this.billingFormRef = el), hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, paymentMethodType: paymentMethodType }), h("justifi-save-new-payment-method", { hidden: !this.paymentMethodGroupId })));
|
|
101
|
-
}
|
|
102
|
-
get hiddenRadioInput() {
|
|
103
|
-
return !this.showAch || !this.showCard;
|
|
104
|
-
}
|
|
105
|
-
render() {
|
|
106
|
-
var _a, _b;
|
|
107
|
-
return (h(Host, { key: '137378e62a729bd2287b1bdf89cb85c702cd4e12', class: "payment-method" }, h("div", { key: 'dabfcf5c56169708a8968a16aeaafefb43ca3ab8', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick, hidden: this.hiddenRadioInput }, h("form-control-radio", { key: 'd098e2b8f6e1230fc16fdc2cbfd616559bcf2b89', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: PaymentMethodTypeLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id] })), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
108
|
-
}
|
|
109
|
-
}, [0, "justifi-new-payment-method", {
|
|
110
|
-
"authToken": [1, "auth-token"],
|
|
111
|
-
"accountId": [1, "account-id"],
|
|
112
|
-
"paymentMethodOption": [16, "payment-method-option"],
|
|
113
|
-
"paymentMethodGroupId": [1, "payment-method-group-id"],
|
|
114
|
-
"isSelected": [4, "is-selected"],
|
|
115
|
-
"showCard": [4, "show-card"],
|
|
116
|
-
"showAch": [4, "show-ach"],
|
|
117
|
-
"hideCardBillingForm": [4, "hide-card-billing-form"],
|
|
118
|
-
"hideBankAccountBillingForm": [4, "hide-bank-account-billing-form"],
|
|
119
|
-
"saveNewPaymentMethodChecked": [32],
|
|
120
|
-
"fillBillingForm": [64],
|
|
121
|
-
"resolvePaymentMethod": [64],
|
|
122
|
-
"validate": [64]
|
|
123
|
-
}, [[0, "checkboxChanged", "handleCheckboxChanged"]]]);
|
|
124
|
-
function defineCustomElement() {
|
|
125
|
-
if (typeof customElements === "undefined") {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const components = ["justifi-new-payment-method", "bank-account-form", "card-form", "custom-popper", "form-control-checkbox", "form-control-help-text", "form-control-radio", "form-control-select", "form-control-text", "form-control-tooltip", "hidden-input", "iframe-input", "justifi-billing-form", "justifi-save-new-payment-method"];
|
|
129
|
-
components.forEach(tagName => { switch (tagName) {
|
|
130
|
-
case "justifi-new-payment-method":
|
|
131
|
-
if (!customElements.get(tagName)) {
|
|
132
|
-
customElements.define(tagName, NewPaymentMethod);
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
case "bank-account-form":
|
|
136
|
-
if (!customElements.get(tagName)) {
|
|
137
|
-
defineCustomElement$d();
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
case "card-form":
|
|
141
|
-
if (!customElements.get(tagName)) {
|
|
142
|
-
defineCustomElement$c();
|
|
143
|
-
}
|
|
144
|
-
break;
|
|
145
|
-
case "custom-popper":
|
|
146
|
-
if (!customElements.get(tagName)) {
|
|
147
|
-
defineCustomElement$b();
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
case "form-control-checkbox":
|
|
151
|
-
if (!customElements.get(tagName)) {
|
|
152
|
-
defineCustomElement$a();
|
|
153
|
-
}
|
|
154
|
-
break;
|
|
155
|
-
case "form-control-help-text":
|
|
156
|
-
if (!customElements.get(tagName)) {
|
|
157
|
-
defineCustomElement$9();
|
|
158
|
-
}
|
|
159
|
-
break;
|
|
160
|
-
case "form-control-radio":
|
|
161
|
-
if (!customElements.get(tagName)) {
|
|
162
|
-
defineCustomElement$8();
|
|
163
|
-
}
|
|
164
|
-
break;
|
|
165
|
-
case "form-control-select":
|
|
166
|
-
if (!customElements.get(tagName)) {
|
|
167
|
-
defineCustomElement$7();
|
|
168
|
-
}
|
|
169
|
-
break;
|
|
170
|
-
case "form-control-text":
|
|
171
|
-
if (!customElements.get(tagName)) {
|
|
172
|
-
defineCustomElement$6();
|
|
173
|
-
}
|
|
174
|
-
break;
|
|
175
|
-
case "form-control-tooltip":
|
|
176
|
-
if (!customElements.get(tagName)) {
|
|
177
|
-
defineCustomElement$5();
|
|
178
|
-
}
|
|
179
|
-
break;
|
|
180
|
-
case "hidden-input":
|
|
181
|
-
if (!customElements.get(tagName)) {
|
|
182
|
-
defineCustomElement$4();
|
|
183
|
-
}
|
|
184
|
-
break;
|
|
185
|
-
case "iframe-input":
|
|
186
|
-
if (!customElements.get(tagName)) {
|
|
187
|
-
defineCustomElement$3();
|
|
188
|
-
}
|
|
189
|
-
break;
|
|
190
|
-
case "justifi-billing-form":
|
|
191
|
-
if (!customElements.get(tagName)) {
|
|
192
|
-
defineCustomElement$2();
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
case "justifi-save-new-payment-method":
|
|
196
|
-
if (!customElements.get(tagName)) {
|
|
197
|
-
defineCustomElement$1();
|
|
198
|
-
}
|
|
199
|
-
break;
|
|
200
|
-
} });
|
|
201
|
-
}
|
|
202
|
-
defineCustomElement();
|
|
203
|
-
|
|
204
|
-
export { NewPaymentMethod as N, defineCustomElement as d };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as snakeToCamel } from './utils2.js';
|
|
3
|
-
import { W as radioListItem } from './parts.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
5
|
-
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
6
|
-
|
|
7
|
-
class PaymentMethodOption {
|
|
8
|
-
constructor(paymentMethod) {
|
|
9
|
-
this.id = paymentMethod.id;
|
|
10
|
-
this.brand = paymentMethod.brand;
|
|
11
|
-
this.acct_last_four = paymentMethod.acct_last_four;
|
|
12
|
-
this.type = snakeToCamel(paymentMethod.type);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
var CardBrandLabels;
|
|
16
|
-
(function (CardBrandLabels) {
|
|
17
|
-
CardBrandLabels["american_express"] = "American Express";
|
|
18
|
-
CardBrandLabels["diners_club"] = "Diners Club";
|
|
19
|
-
CardBrandLabels["discover"] = "Discover";
|
|
20
|
-
CardBrandLabels["jcb"] = "JCB";
|
|
21
|
-
CardBrandLabels["mastercard"] = "Mastercard";
|
|
22
|
-
CardBrandLabels["china_unionpay"] = "UnionPay";
|
|
23
|
-
CardBrandLabels["visa"] = "Visa";
|
|
24
|
-
CardBrandLabels["unknown"] = "Unknown";
|
|
25
|
-
})(CardBrandLabels || (CardBrandLabels = {}));
|
|
26
|
-
|
|
27
|
-
const SavedPaymentMethod = /*@__PURE__*/ proxyCustomElement(class SavedPaymentMethod extends HTMLElement {
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
this.__registerHost();
|
|
31
|
-
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
32
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
33
|
-
e.preventDefault();
|
|
34
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
38
|
-
var _a;
|
|
39
|
-
if (!insuranceValidation.isValid) {
|
|
40
|
-
return { validationError: true };
|
|
41
|
-
}
|
|
42
|
-
return { token: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id };
|
|
43
|
-
}
|
|
44
|
-
;
|
|
45
|
-
render() {
|
|
46
|
-
var _a, _b, _c;
|
|
47
|
-
return (h(Host, { key: '78487e52f549547f4c89f48a238a8916d77d4f1c', class: "payment-method" }, h("div", { key: 'd437a5f9e79356b1177703da2b5d7f4ca98072ce', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: '0dd03b9ebae98c441c63717aba310d77e587b1c8', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: `${CardBrandLabels[(_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.brand] || ''} *${(_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.acct_last_four}` }))));
|
|
48
|
-
}
|
|
49
|
-
}, [0, "justifi-saved-payment-method", {
|
|
50
|
-
"paymentMethodOption": [16, "payment-method-option"],
|
|
51
|
-
"isSelected": [4, "is-selected"],
|
|
52
|
-
"resolvePaymentMethod": [64]
|
|
53
|
-
}]);
|
|
54
|
-
function defineCustomElement() {
|
|
55
|
-
if (typeof customElements === "undefined") {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const components = ["justifi-saved-payment-method", "form-control-help-text", "form-control-radio"];
|
|
59
|
-
components.forEach(tagName => { switch (tagName) {
|
|
60
|
-
case "justifi-saved-payment-method":
|
|
61
|
-
if (!customElements.get(tagName)) {
|
|
62
|
-
customElements.define(tagName, SavedPaymentMethod);
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
case "form-control-help-text":
|
|
66
|
-
if (!customElements.get(tagName)) {
|
|
67
|
-
defineCustomElement$2();
|
|
68
|
-
}
|
|
69
|
-
break;
|
|
70
|
-
case "form-control-radio":
|
|
71
|
-
if (!customElements.get(tagName)) {
|
|
72
|
-
defineCustomElement$1();
|
|
73
|
-
}
|
|
74
|
-
break;
|
|
75
|
-
} });
|
|
76
|
-
}
|
|
77
|
-
defineCustomElement();
|
|
78
|
-
|
|
79
|
-
export { PaymentMethodOption as P, SavedPaymentMethod as S, defineCustomElement as d };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-D6FDxSyt.js";import"./p-D4Mv5jCp.js";import"./p-BnE7qgLh.js";import{C as o,a as r}from"./p-SdntD1xf.js";import{C as e}from"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-CaGOSFHG.js";import"./p-Bk4gk-f7.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a as c}from"./p-C5RuuShs.js";import{c as a,J as n}from"./p-BR7flk4G.js";import{C as h}from"./p-DClC2nMO.js";import{m,S as u}from"./p-_pH3Hg4P.js";import{S as j}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{d}from"./p-DnB1x5JE.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BjMTOtI1.js";import"./p-D2ZiLcDE.js";import"./p-D5XSsLKb.js";import"./p-BrLVc_85.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:a,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:c(u.error),code:p(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);a({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7"},i("checkouts-list-core",{key:"484d31c0b0434181b3bd69cb9c3b6810aa0f2983",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_checkouts_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,H as i,g as r}from"./p-D6FDxSyt.js";import{c as o,l as a,b as s,R as f,a as c,aw as u,ax as l,ay as h}from"./p-BrLVc_85.js";import{F as d}from"./p-C0IqfGFc.js";import"./p-CZfYo5-1.js";var p="top",v="bottom",b="right",m="left",y="auto",x=[p,v,b,m],w="start",g="end",O="viewport",j="popper",k=x.reduce((function(t,e){return t.concat([e+"-"+w,e+"-"+g])}),[]),C=[].concat(x,[y]).reduce((function(t,e){return t.concat([e,e+"-"+w,e+"-"+g])}),[]),M=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(t){return t?(t.nodeName||"").toLowerCase():null}function D(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function q(t){return t instanceof D(t).Element||t instanceof Element}function E(t){return t instanceof D(t).HTMLElement||t instanceof HTMLElement}function L(t){return"undefined"!=typeof ShadowRoot&&(t instanceof D(t).ShadowRoot||t instanceof ShadowRoot)}function V(t){return t.split("-")[0]}var I=Math.max,T=Math.min,_=Math.round;function A(){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 F(){return!/^((?!chrome|android).)*safari/i.test(A())}function P(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&E(t)&&(r=t.offsetWidth>0&&_(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&_(i.height)/t.offsetHeight||1);var a=(q(t)?D(t):window).visualViewport,s=!F()&&n,f=(i.left+(s&&a?a.offsetLeft:0))/r,c=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,l=i.height/o;return{width:u,height:l,top:c,right:f+u,bottom:c+l,left:f,x:f,y:c}}function R(t){var e=P(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function S(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&L(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function H(t){return D(t).getComputedStyle(t)}function W(t){return["table","td","th"].indexOf(B(t))>=0}function z(t){return((q(t)?t.ownerDocument:t.document)||window.document).documentElement}function G(t){return"html"===B(t)?t:t.assignedSlot||t.parentNode||(L(t)?t.host:null)||z(t)}function K(t){return E(t)&&"fixed"!==H(t).position?t.offsetParent:null}function U(t){for(var e=D(t),n=K(t);n&&W(n)&&"static"===H(n).position;)n=K(n);return n&&("html"===B(n)||"body"===B(n)&&"static"===H(n).position)?e:n||function(t){var e=/firefox/i.test(A());if(/Trident/i.test(A())&&E(t)&&"fixed"===H(t).position)return null;var n=G(t);for(L(n)&&(n=n.host);E(n)&&["html","body"].indexOf(B(n))<0;){var i=H(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z(t,e,n){return I(t,T(e,n))}function J(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function N(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Q(t){return t.split("-")[1]}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=t.isFixed,h=a.x,d=void 0===h?0:h,y=a.y,x=void 0===y?0:y,w="function"==typeof u?u({x:d,y:x}):{x:d,y:x};d=w.x,x=w.y;var O=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),k=m,C=p,M=window;if(c){var B=U(n),q="clientHeight",E="clientWidth";B===D(n)&&"static"!==H(B=z(n)).position&&"absolute"===s&&(q="scrollHeight",E="scrollWidth"),(r===p||(r===m||r===b)&&o===g)&&(C=v,x-=(l&&B===M&&M.visualViewport?M.visualViewport.height:B[q])-i.height,x*=f?1:-1),r!==m&&(r!==p&&r!==v||o!==g)||(k=b,d-=(l&&B===M&&M.visualViewport?M.visualViewport.width:B[E])-i.width,d*=f?1:-1)}var L,V=Object.assign({position:s},c&&X),I=!0===u?function(t,e){var n=t.y,i=e.devicePixelRatio||1;return{x:_(t.x*i)/i||0,y:_(n*i)/i||0}}({x:d,y:x},D(n)):{x:d,y:x};return d=I.x,x=I.y,Object.assign({},V,f?((L={})[C]=j?"0":"",L[k]=O?"0":"",L.transform=(M.devicePixelRatio||1)<=1?"translate("+d+"px, "+x+"px)":"translate3d("+d+"px, "+x+"px, 0)",L):((e={})[C]=j?x+"px":"",e[k]=O?d+"px":"",e.transform="",e))}var tt={passive:!0},et={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(t){return t.replace(/left|right|bottom|top/g,(function(t){return et[t]}))}var it={start:"end",end:"start"};function rt(t){return t.replace(/start|end/g,(function(t){return it[t]}))}function ot(t){var e=D(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function at(t){return P(z(t)).left+ot(t).scrollLeft}function st(t){var e=H(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ft(t){return["html","body","#document"].indexOf(B(t))>=0?t.ownerDocument.body:E(t)&&st(t)?t:ft(G(t))}function ct(t,e){var n;void 0===e&&(e=[]);var i=ft(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=D(i),a=r?[o].concat(o.visualViewport||[],st(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ct(G(a)))}function ut(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lt(t,e,n){return e===O?ut(function(t,e){var n=D(t),i=z(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,f=0;if(r){o=r.width,a=r.height;var c=F();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:o,height:a,x:s+at(t),y:f}}(t,n)):q(e)?function(t,e){var n=P(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ut(function(t){var e,n=z(t),i=ot(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=I(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=I(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+at(t),f=-i.scrollTop;return"rtl"===H(r||n).direction&&(s+=I(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}(z(t)))}function ht(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?V(r):null,a=r?Q(r):null,s=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2;switch(o){case p:e={x:s,y:n.y-i.height};break;case v:e={x:s,y:n.y+n.height};break;case b:e={x:n.x+n.width,y:f};break;case m:e={x:n.x-i.width,y:f};break;default:e={x:n.x,y:n.y}}var c=o?Y(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case w:e[c]=e[c]-(n[u]/2-i[u]/2);break;case g:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function dt(t,e){void 0===e&&(e={});var n=e.placement,i=void 0===n?t.placement:n,r=e.strategy,o=void 0===r?t.strategy:r,a=e.boundary,s=void 0===a?"clippingParents":a,f=e.rootBoundary,c=void 0===f?O:f,u=e.elementContext,l=void 0===u?j:u,h=e.altBoundary,d=void 0!==h&&h,m=e.padding,y=void 0===m?0:m,w=J("number"!=typeof y?y:N(y,x)),g=t.rects.popper,k=t.elements[d?l===j?"reference":j:l],C=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=ct(G(t)),n=["absolute","fixed"].indexOf(H(t).position)>=0&&E(t)?U(t):t;return q(n)?e.filter((function(t){return q(t)&&S(t,n)&&"body"!==B(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o.reduce((function(e,n){var r=lt(t,n,i);return e.top=I(r.top,e.top),e.right=T(r.right,e.right),e.bottom=T(r.bottom,e.bottom),e.left=I(r.left,e.left),e}),lt(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(q(k)?k:k.contextElement||z(t.elements.popper),s,c,o),M=P(t.elements.reference),D=ht({reference:M,element:g,placement:i}),L=ut(Object.assign({},g,D)),V=l===j?L:M,_={top:C.top-V.top+w.top,bottom:V.bottom-C.bottom+w.bottom,left:C.left-V.left+w.left,right:V.right-C.right+w.right},A=t.modifiersData.offset;if(l===j&&A){var F=A[i];Object.keys(_).forEach((function(t){var e=[b,v].indexOf(t)>=0?1:-1,n=[p,v].indexOf(t)>=0?"y":"x";_[t]+=F[n]*e}))}return _}function pt(t,e){void 0===e&&(e={});var n=e.boundary,i=e.rootBoundary,r=e.padding,o=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?C:a,f=Q(e.placement),c=f?o?k:k.filter((function(t){return Q(t)===f})):x,u=c.filter((function(t){return s.indexOf(t)>=0}));0===u.length&&(u=c);var l=u.reduce((function(e,o){return e[o]=dt(t,{placement:o,boundary:n,rootBoundary:i,padding:r})[V(o)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}var vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,l=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,x=void 0===d||d,g=n.allowedAutoPlacements,O=e.options.placement,j=V(O),k=f||(j!==O&&x?function(t){if(V(t)===y)return[];var e=nt(t);return[rt(t),e,rt(e)]}(O):[nt(O)]),C=[O].concat(k).reduce((function(t,n){return t.concat(V(n)===y?pt(e,{placement:n,boundary:u,rootBoundary:l,padding:c,flipVariations:x,allowedAutoPlacements:g}):n)}),[]),M=e.rects.reference,B=e.rects.popper,D=new Map,q=!0,E=C[0],L=0;L<C.length;L++){var I=C[L],T=V(I),_=Q(I)===w,A=[p,v].indexOf(T)>=0,F=A?"width":"height",P=dt(e,{placement:I,boundary:u,rootBoundary:l,altBoundary:h,padding:c}),R=A?_?b:m:_?v:p;M[F]>B[F]&&(R=nt(R));var S=nt(R),H=[];if(o&&H.push(P[T]<=0),s&&H.push(P[R]<=0,P[S]<=0),H.every((function(t){return t}))){E=I,q=!1;break}D.set(I,H)}if(q)for(var W=function(t){var e=C.find((function(e){var n=D.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return E=e,"break"},z=x?3:1;z>0&&"break"!==W(z);z--);e.placement!==E&&(e.modifiersData[i]._skip=!0,e.placement=E,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function mt(t){return[p,b,v,m].some((function(e){return t[e]>=0}))}function yt(t,e,n){void 0===n&&(n=!1);var i,r,o=E(e),a=E(e)&&function(t){var e=t.getBoundingClientRect(),n=_(e.width)/t.offsetWidth||1,i=_(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=z(e),f=P(t,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==B(e)||st(s))&&(c=(i=e)!==D(i)&&E(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:ot(i)),E(e)?((u=P(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=at(s))),{x:f.left+c.scrollLeft-u.x,y:f.top+c.scrollTop-u.y,width:f.width,height:f.height}}function xt(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var wt={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ot(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,i=t.defaultOptions,r=void 0===i?wt:i;return function(t,e,i){void 0===i&&(i=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},wt,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},f=[],c=!1,u={state:s,setOptions:function(i){var o="function"==typeof i?i(s.options):i;l(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:q(t)?ct(t):t.contextElement?ct(t.contextElement):[],popper:ct(e)};var a,c,h=function(t){var e=xt(t);return M.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var i=n({state:s,name:t.name,instance:u,options:void 0===e?{}:e});f.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(gt(e,n)){s.rects={reference:yt(e,U(n),"fixed"===s.options.strategy),popper:R(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options;"function"==typeof o&&(s=o({state:s,options:void 0===a?{}:a,name:r.name,instance:u})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),c=!0}};if(!gt(t,e))return u;function l(){f.forEach((function(t){return t()})),f=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var jt=Ot({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,f=D(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,tt)})),s&&f.addEventListener("resize",n.update,tt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,tt)})),s&&f.removeEventListener("resize",n.update,tt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=ht({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,f=void 0===s||s,c={placement:V(e.placement),variation:Q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,$(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,$(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];E(r)&&B(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});E(i)&&B(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,i=t.options.offset,r=void 0===i?[0,0]:i,o=C.reduce((function(t,n){return t[n]=function(t,e,n){var i=V(t),r=[m,p].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[m,b].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t}),{}),a=o[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[n]=o}},vt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,f=n.tether,c=void 0===f||f,u=n.tetherOffset,l=void 0===u?0:u,h=dt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),d=V(e.placement),y=Q(e.placement),x=!y,g=Y(d),O="x"===g?"y":"x",j=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,M="function"==typeof l?l(Object.assign({},e.rects,{placement:e.placement})):l,B="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(j){if(o){var E,L="y"===g?p:m,_="y"===g?v:b,A="y"===g?"height":"width",F=j[g],P=F+h[L],S=F-h[_],H=c?-C[A]/2:0,W=y===w?k[A]:C[A],z=y===w?-C[A]:-k[A],G=e.elements.arrow,K=c&&G?R(G):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=J[L],X=J[_],$=Z(0,k[A],K[A]),tt=x?k[A]/2-H-$-N-B.mainAxis:W-$-N-B.mainAxis,et=x?-k[A]/2+H+$+X+B.mainAxis:z+$+X+B.mainAxis,nt=e.elements.arrow&&U(e.elements.arrow),it=null!=(E=null==D?void 0:D[g])?E:0,rt=F+et-it,ot=Z(c?T(P,F+tt-it-(nt?"y"===g?nt.clientTop||0:nt.clientLeft||0:0)):P,F,c?I(S,rt):S);j[g]=ot,q[g]=ot-F}if(s){var at,st=j[O],ft="y"===O?"height":"width",ct=st+h["x"===g?p:m],ut=st-h["x"===g?v:b],lt=-1!==[p,m].indexOf(d),ht=null!=(at=null==D?void 0:D[O])?at:0,pt=lt?ct:st-k[ft]-C[ft]-ht+B.altAxis,vt=lt?st+k[ft]+C[ft]-ht-B.altAxis:ut,bt=c&<?function(t,e,n){var i=Z(t,e,n);return i>n?n:i}(pt,st,vt):Z(c?pt:ct,st,c?vt:ut);j[O]=bt,q[O]=bt-st}e.modifiersData[i]=q}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=V(n.placement),f=Y(s),c=[m,b].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(t,e){return J("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:N(t,x))}(r.padding,n),l=R(o),h="y"===f?p:m,d="y"===f?v:b,y=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],w=a[f]-n.rects.reference[f],g=U(o),O=g?"y"===f?g.clientHeight||0:g.clientWidth||0:0,j=O/2-l[c]/2+(y/2-w/2),k=Z(u[h],j,O-l[c]-u[d]);n.modifiersData[i]=((e={})[f]=k,e.centerOffset=k-j,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&S(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=dt(e,{elementContext:"reference"}),s=dt(e,{altBoundary:!0}),f=bt(a,i),c=bt(s,r,o),u=mt(f),l=mt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}}]});const kt=class{constructor(n){t(this,n),this.showEvent=e(this,"showEvent"),this.hideEvent=e(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=jt(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 e=t.composedPath(),n=e.includes(this.anchorRef),i=e.includes(this.popperContentRef);!this.isOpen&&n?this.show():(this.isOpen&&!i||this.isOpen&&n)&&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 n("div",{key:"7ef56b941bf884c5a1416b373372748374bb204a"},n("style",{key:"ac2a710bea0939dd7f279968cfd33d789eba3a08"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),n("div",{key:"f34a15bd8122833ed8b188cd0519588f2da78bb9",class:"popper-content",ref:t=>this.popperContentRef=t},n("slot",{key:"54d97c9be7fe9c33584156569c927e2108cab331"})))}},Ct=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=s),this.disabled&&(t=f),this.isFocused&&(t=c),t}render(){var t;return n(i,{key:"f55283c73225466b10cec78e6e5ff1c268142d1b"},n("div",{key:"48beb377ca664b867598f8e472a3bb4825aecf9b",class:"form-group d-flex flex-column"},n("div",{key:"13debfb6a725d7f247eb5601e3361a3964b826e9",class:"d-flex align-items-start gap-2"},n("label",{key:"15ac64fb03a5c1cb8f55c18bd7eb41d66328e599",part:a,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"3d8b43ed6e997234f7c64daf41b2286bec93340e",helpText:this.helpText})),n("select",{key:"1c3eb5699a0b76c694a02fe50e8070483b2960e6",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>n("option",{value:t.value},t.label)))),n(d,{key:"d223fd1fad44de99812b0e3a3429e3931b798c2c",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Mt=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit({name:n,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?s:this.disabled?f:this.isFocused?c:o}render(){return n(i,{key:"9ceda4ac9f8bd1ab572652b1818672948ad7d66f"},n("div",{key:"da631a05be3b84ca86a91a360eb7f6a3a3468b78",class:"form-group d-flex flex-column"},n("div",{key:"d5c5b7fe29e611806c63e43aa99c9831d4e8ba35",class:"d-flex align-items-start gap-2"},n("label",{key:"327ca9d8520ba4814104667da7cd8275489431ee",part:a,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"32678aefb28b06734c80e1f37b5c4b546ad0770b",helpText:this.helpText})),n("input",{key:"85152fdebfa1081e84e2c8adf760e4f7f6a94ea0",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),n(d,{key:"d0d8bd801df53a377010b89167d30ded49bc2cdc",errorText:this.errorText,name:this.name})))}get el(){return r(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Bt=class{constructor(e){t(this,e)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?n("div",{class:"tooltip-container"},n("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:h},n("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"}),n("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"})),n("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},n("div",{class:"tooltip bs-tooltip-top",part:u,role:"tooltip",ref:t=>this.tooltip=t},n("div",{class:"tooltip-inner",part:l},this.helpText)))):null}};export{kt as custom_popper,Ct as form_control_select,Mt as form_control_text,Bt as form_control_tooltip}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i}from"./p-D6FDxSyt.js";import{Z as a,_ as r,$ as h,a0 as c,a1 as o,l as f}from"./p-BrLVc_85.js";const l=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?a:this.isFocused&&this.checked?r:this.checked?h:this.isFocused?c:o}render(){return e(i,{key:"c509c9fa1e33816ade27c55f3053cd964f1f1144",class:"form-group d-flex flex-column"},e("div",{key:"7067e770576550bc9627cc57dfff24a7f6f6951c",class:"form-check"},e("input",{key:"9a6d01184eb3be812728dc92ad40d14c1f3e465d",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"7f54b31c722389a5397e907cc1a400f5da181d21",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),e("form-control-help-text",{key:"1424f36dfba3af3573fa844d86192428afde1082",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"4e3d2d14f8f328c8c6278cf474bfc5858c3954f1",errorText:this.errorText,name:this.name}))}};export{l as form_control_radio}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-D6FDxSyt.js";import{C as r,a as o}from"./p-SdntD1xf.js";import{c as e,J as p}from"./p-BR7flk4G.js";import{T as a}from"./p-DvhDilDP.js";import"./p-D4Mv5jCp.js";import"./p-BnE7qgLh.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-CaGOSFHG.js";import{b as n}from"./p-Bk4gk-f7.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-C5RuuShs.js";import{m,S as j}from"./p-_pH3Hg4P.js";import{S as u}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-uSM1EMk-.js";import"./p-BjMTOtI1.js";import"./p-D2ZiLcDE.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D5XSsLKb.js";import"./p-BrLVc_85.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:p})=>{var a,m;try{const j=await i.fetchTerminals(t,s,o);if(j.error)return p({error:h(j.error),code:c(null===(m=j.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},j.page_info);e({terminals:(null===(a=j.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new a}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new j}))}render(){return i(u,{key:"8c81823f7a3c613fc1725a8c4fe3438f6186f4fe"},i("terminals-list-core",{key:"13c38992d9e101955d39065985b6c6b22b5ace9e",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_terminals_list}
|