@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
|
@@ -1601,7 +1601,7 @@ export declare namespace JSXBase {
|
|
|
1601
1601
|
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1602
1602
|
onKeyUpCapture?: (event: KeyboardEvent) => void;
|
|
1603
1603
|
onAuxClick?: (event: MouseEvent) => void;
|
|
1604
|
-
onClick?: (event:
|
|
1604
|
+
onClick?: (event: PointerEvent) => void;
|
|
1605
1605
|
onClickCapture?: (event: MouseEvent) => void;
|
|
1606
1606
|
onContextMenu?: (event: MouseEvent) => void;
|
|
1607
1607
|
onContextMenuCapture?: (event: MouseEvent) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICheckoutPaymentMethod } from '../api';
|
|
2
|
+
interface IInitialState {
|
|
3
|
+
authToken: string;
|
|
4
|
+
accountId: string;
|
|
5
|
+
paymentMethods: ICheckoutPaymentMethod[];
|
|
6
|
+
paymentMethodGroupId: string;
|
|
7
|
+
paymentDescription: string;
|
|
8
|
+
totalAmount: number;
|
|
9
|
+
paymentAmount: number;
|
|
10
|
+
selectedPaymentMethod: string;
|
|
11
|
+
checkoutId: string;
|
|
12
|
+
bnplEnabled: boolean;
|
|
13
|
+
bnplProviderClientId: string;
|
|
14
|
+
bnplProviderMode: string;
|
|
15
|
+
bnplProviderApiVersion: string;
|
|
16
|
+
bnplProviderCheckoutUrl: string;
|
|
17
|
+
}
|
|
18
|
+
declare const state: IInitialState;
|
|
19
|
+
export default state;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { IPaymentMethodMetadata } from "../../api/PaymentMethod";
|
|
2
3
|
export declare class IframeInput {
|
|
3
4
|
private iframeElement;
|
|
4
5
|
private frameService;
|
|
@@ -12,7 +13,7 @@ export declare class IframeInput {
|
|
|
12
13
|
iframeOrigin: string;
|
|
13
14
|
disconnectedCallback(): void;
|
|
14
15
|
validate(): Promise<any>;
|
|
15
|
-
tokenize(clientId: string, paymentMethodMetadata:
|
|
16
|
+
tokenize(clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string): Promise<any>;
|
|
16
17
|
private initializeFrameCommunicationService;
|
|
17
18
|
private dispatchMessageEvent;
|
|
18
19
|
private get part();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,c as s}from"./p-Bta_r52Z.js";import{a as i}from"./p-DddGO-XR.js";import{P as o,C as a}from"./p-zucQG3cz.js";import{s as n}from"./p-D_FOQEGU.js";import{r as d}from"./p-C71Mxtso.js";import{S as l}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{f as c}from"./p-9REosSLu.js";import"./p-7MWRbTXI.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";const r={bankAccount:"New bank account",card:"New credit or debit card"},h=class{constructor(t){e(this,t),this.savedPaymentMethods=[],this.paymentMethodOptions=[]}async fillBillingForm(e){const t=this.selectedPaymentMethodOptionRef;t.fillBillingForm&&t.fillBillingForm(e)}connectedCallback(){this.paymentMethodsChanged()}paymentMethodsChanged(){var e,t;this.paymentMethodOptions=this.savedPaymentMethods.map((e=>new o(e))).filter((e=>(this.showCard||e.type!==i.card)&&(this.showAch||e.type!==i.bankAccount))),this.showBnpl&&"sezzle"===(null===(e=this.bnpl)||void 0===e?void 0:e.provider)&&!this.insuranceToggled&&this.paymentMethodOptions.push(new o({id:i.sezzle})),this.showCard&&this.paymentMethodOptions.push(new o({id:i.card})),this.showAch&&this.paymentMethodOptions.push(new o({id:i.bankAccount})),n.selectedPaymentMethod||(n.selectedPaymentMethod=null===(t=this.paymentMethodOptions[0])||void 0===t?void 0:t.id)}paymentMethodOptionSelected(e){n.selectedPaymentMethod=e.detail.id}get hiddenRadioInput(){return!this.showAch||!this.showCard}async resolvePaymentMethod(e){var t;return await(null===(t=this.selectedPaymentMethodOptionRef)||void 0===t?void 0:t.resolvePaymentMethod(e))}async validate(){return this.selectedPaymentMethodOptionRef.validate()}render(){return t("div",{key:"43947388e9c3e84f5af7ebefb379dcb0fc89bae7"},t("div",{key:"203dde4a60f39cfb38408f58670b89047cadd3b3",class:"radio-list-item p-3",part:d,onClick:()=>{n.selectedPaymentMethod=i.card},hidden:this.hiddenRadioInput},t("form-control-radio",{key:"c26d64e69722cbdcdd1d573c93328d322b2db256",name:"paymentMethodType",value:i.card,checked:n.selectedPaymentMethod===i.card,label:r[i.card]})),t("div",{key:"87799dce96c87b24d3f7ecc597021dbfde851a22",class:"radio-list-item p-3",part:d,onClick:()=>{n.selectedPaymentMethod=i.bankAccount},hidden:this.hiddenRadioInput},t("form-control-radio",{key:"22df7be58ce8a58a8ce38a52912234bd313c4d2e",name:"paymentMethodType",value:i.bankAccount,checked:n.selectedPaymentMethod===i.bankAccount,label:r[i.bankAccount]})),t("justifi-sezzle-payment-method",{key:"3ce43229e7268a453e5a2bad83f573105e8a6727"}),t("justifi-saved-payment-methods",{key:"e6de7f6010736a702337dd91defc8bf00604ee34",exportparts:d.split(" ").join(",")}))}static get watchers(){return{savedPaymentMethods:["paymentMethodsChanged"]}}},p=class{constructor(t){e(this,t),this.onPaymentMethodOptionClick=e=>t=>{t.preventDefault(),n.selectedPaymentMethod=e}}componentWillLoad(){n.paymentMethods.length||console.warn("No saved payment methods available.")}render(){return t(l,{key:"7bebb3f8ff2a2abe400e1d099154a1729913140c"},t("div",{key:"3a5798c5ceba63160dceecb0dc65f8a211bb5110",class:"saved-payment-methods"},n.paymentMethods.length?n.paymentMethods.map((e=>t("div",{class:"radio-list-item p-3",part:d,onClick:this.onPaymentMethodOptionClick(null==e?void 0:e.id)},t("form-control-radio",{name:"paymentMethodType",value:null==e?void 0:e.id,checked:n.selectedPaymentMethod===(null==e?void 0:e.id),label:`${a[null==e?void 0:e.brand]||""} *${null==e?void 0:e.acct_last_four}`})))):null))}},m=t("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),u=class{constructor(t){e(this,t),this.paymentMethodOptionSelected=s(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId="sezzle",this.onPaymentMethodOptionClick=e=>{e.preventDefault(),n.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let e;this.sezzlePromise=new Promise((t=>{e=t}));const t=Number(n.paymentAmount),s=new(0,window.Checkout)({mode:"popup",publicKey:n.bnplProviderClientId,apiMode:n.bnplProviderMode,apiVersion:n.bnplProviderApiVersion});s.sezzleButtonElement=this.sezzleButtonRef,s.init({onClick:function(e){e.preventDefault(),s.startCheckout({checkout_url:n.bnplProviderCheckoutUrl})},onComplete:t=>e({bnpl:t.data}),onCancel:t=>e({bnpl:t.data}),onFailure:t=>e({bnpl:t.data})}),this.sezzleCheckout=s,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(t)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(e){return e.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var e,s;return n.bnplEnabled?t(l,{class:"payment-method"},t("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:e=>this.scriptRef=e}),t("div",{class:"radio-list-item p-3",part:d,onClick:this.onPaymentMethodOptionClick},t("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:n.selectedPaymentMethod===this.paymentMethodOptionId,label:t("div",null,t("div",null,"Buy now, pay later with ",m),this.installmentPlan&&t("small",null,t("span",null,null===(e=this.installmentPlan)||void 0===e?void 0:e.installments.length)," ",t("span",null,this.installmentPlan.schedule," payments of")," ",t("span",{class:"fw-bold"},c(null===(s=this.installmentPlan)||void 0===s?void 0:s.installments[0].amountInCents))))}))):(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null)}};export{h as justifi_payment_method_options,p as justifi_saved_payment_methods,u as justifi_sezzle_payment_method}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i}from"./p-
|
|
1
|
+
import{r as i}from"./p-Bta_r52Z.js";import{s as t}from"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";const s=class{constructor(t){i(this,t),this.apiOrigin="https://wc-proxy.justifi.ai",this.iframeOrigin="https://components.justifi.ai",this.accountId=""}componentWillLoad(){t({apiOrigin:this.apiOrigin,iframeOrigin:this.iframeOrigin,accountId:this.accountId})}render(){return null}};export{s as justifi_config_provider}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as i}from"./p-
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-Bta_r52Z.js";import{f as e}from"./p-9REosSLu.js";import{C as o}from"./p-DX1Drndq.js";import{C as a}from"./p-BhrFjjAs.js";import{v as r,i as d,a as h,H as c}from"./p-BRvTM0jE.js";import{B as n}from"./p-IrS5pxMU.js";import{S as l}from"./p-BEDtXmpq.js";import{S as p}from"./p-C8rAwXW9.js";import{t as m,d as f}from"./p-C71Mxtso.js";import{H as b}from"./p-CGCMYhyV.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const u=class{constructor(i){s(this,i),this.submitEvent=t(this,"submit-event"),this.errorEvent=t(this,"error-event"),this.loaded=t(this,"loaded"),this.hasLoadedFonts=!1,this.renderState="loading",this.creatingNewPaymentMethod=!1,this.insuranceToggled=!1,this.completeCheckout=async s=>{this.complete({payment:s,onSuccess:this.onSubmitted,onError:this.onError})},this.onSubmitted=s=>{this.submitEvent.emit({response:s}),this.renderState="success"},this.onError=({error:s,code:t,severity:i})=>{this.serverError=s,this.errorEvent.emit({errorCode:t,message:s,severity:i}),this.renderState="error"}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}async validate(){const s=r(),{isValid:t}=await this.paymentMethodOptionsRef.validate();return s.isValid&&t?{isValid:!0}:{isValid:!1}}componentWillLoad(){this.getCheckout&&(this.fetchData(),d("set",(s=>{const t=h[s];void 0!==t&&(this.insuranceToggled=t,this.fetchData())})))}fetchData(){this.renderState="loading",this.getCheckout({onSuccess:({checkout:s})=>{this.checkout=new o(s);const{status:t}=this.checkout;this.loaded.emit({checkout_status:t}),this.renderState="success"},onError:({error:s,code:t,severity:i})=>{this.serverError=s,this.renderState="error",this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}async submit(s){var t;s.preventDefault(),this.renderState="loading";const i=r(),e=await this.paymentMethodOptionsRef.resolvePaymentMethod(i);e.validationError?this.renderState="error":e.error?(this.renderState="error",this.serverError=e.error.message,this.onError({code:e.error.code,error:e.error.message,severity:a.ERROR})):e.token?this.completeCheckout({payment_mode:"ecom",payment_token:e.token}):"success"===(null===(t=e.bnpl)||void 0===t?void 0:t.status)?this.completeCheckout({payment_mode:"bnpl"}):this.renderState="error"}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get paymentType(){var s,t,e,o,a;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(p,{height:"300px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("justifi-payment-method-options",{ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!this.disableBnpl,paymentMethodGroupId:null===(s=this.checkout)||void 0===s?void 0:s.payment_method_group_id,"show-saved-payment-methods":!this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,bnpl:null===(t=this.checkout)||void 0===t?void 0:t.bnpl,authToken:this.authToken,"account-id":null===(e=this.checkout)||void 0===e?void 0:e.account_id,savedPaymentMethods:(null===(o=this.checkout)||void 0===o?void 0:o.payment_methods)||[],paymentAmount:null===(a=this.checkout)||void 0===a?void 0:a.payment_amount,insuranceToggled:this.insuranceToggled})))}get summary(){var s,t;return i("section",null,i("div",{class:!this.isLoading&&"visually-hidden"},i(p,{height:"24px"})),i("div",{class:this.isLoading&&"visually-hidden"},i("div",{part:m},null===(s=this.checkout)||void 0===s?void 0:s.payment_description),i("div",null,i("span",{part:m},"Total")," ",i("span",{part:m},e(+(null===(t=this.checkout)||void 0===t?void 0:t.total_amount))))))}render(){return i(l,{key:"2fb8b2c2b543712023c74cf9b41dc57675c89237"},i("div",{key:"caba36e076e4162d9c92844f7c0632b5bf678de6",class:"row gy-3 jfi-checkout-core"},i("div",{key:"6a27d64005d785815d5567894d6e2a6e1e515cf8",class:"col-12",part:f},i(c,{key:"645fe4250331805e86811700b453458f065188bd",text:"Summary",class:"fs-5 fw-bold pb-3"}),this.summary),i("div",{key:"c49c73eb3462ad17e0344e74be508abe958a9358",class:"col-12"},i("slot",{key:"be626bff57c95b92f9853e2e9b63dd9279834142",name:"insurance"})),i("div",{key:"025b0400164935f10d6c79d445bfdcf157290fd6",class:"col-12 mt-4"},i(c,{key:"483b5d53b5cea3ae6fccfbb3aa9d3efe0dc8fcab",text:"Payment",class:"fs-5 fw-bold pb-3"}),i(b,{key:"21abbd4d669e351c8ad0a87b7b408a4998948b46",text:"Select payment type",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"9441e97e1bd64b796ebcf1404d4ca04964990982",class:"d-flex flex-column"},this.paymentType)),i("div",{key:"9db2e4fccff5b868e7d329d9b0be864942adcc3d",class:"col-12"},i("div",{key:"2eaef4ed6062b27de2516de7b71a056c829f8cab",class:"d-flex justify-content-end"},i(n,{key:"505869afa61094d628b58a32749c44f678e4fda3",type:"submit",variant:"primary",onClick:s=>this.submit(s),disabled:this.isLoading,isLoading:this.isLoading,style:{width:"100%"}},"Pay")))))}};export{u as justifi_checkout_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as n,h as e}from"./p-Bta_r52Z.js";import{aw as r,ax as i,ay as o}from"./p-C71Mxtso.js";var a="top",u="bottom",f="right",s="left",c="auto",l=[a,u,f,s],d="start",p="end",h="viewport",v="popper",b=l.reduce((function(t,n){return t.concat([n+"-"+d,n+"-"+p])}),[]),m=[].concat(l,[c]).reduce((function(t,n){return t.concat([n,n+"-"+d,n+"-"+p])}),[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function w(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function g(t){return t instanceof x(t).Element||t instanceof Element}function O(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function j(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}function k(t){return t.split("-")[0]}var M=Math.max,E=Math.min,q=Math.round;function B(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(B())}function P(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&O(t)&&(i=t.offsetWidth>0&&q(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&q(r.height)/t.offsetHeight||1);var a=(g(t)?x(t):window).visualViewport,u=!A()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,s=(r.top+(u&&a?a.offsetTop:0))/o,c=r.width/i,l=r.height/o;return{width:c,height:l,top:s,right:f+c,bottom:s+l,left:f,x:f,y:s}}function R(t){var n=P(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function C(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&j(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(t){return x(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(w(t))>=0}function W(t){return((g(t)?t.ownerDocument:t.document)||window.document).documentElement}function z(t){return"html"===w(t)?t:t.assignedSlot||t.parentNode||(j(t)?t.host:null)||W(t)}function H(t){return O(t)&&"fixed"!==L(t).position?t.offsetParent:null}function T(t){for(var n=x(t),e=H(t);e&&S(e)&&"static"===L(e).position;)e=H(e);return e&&("html"===w(e)||"body"===w(e)&&"static"===L(e).position)?n:e||function(t){var n=/firefox/i.test(B());if(/Trident/i.test(B())&&O(t)&&"fixed"===L(t).position)return null;var e=z(t);for(j(e)&&(e=e.host);O(e)&&["html","body"].indexOf(w(e))<0;){var r=L(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function _(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function I(t,n,e){return M(t,E(n,e))}function V(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function D(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function F(t){return t.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(t){var n,e=t.popper,r=t.popperRect,i=t.placement,o=t.variation,c=t.offsets,l=t.position,d=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,m=c.x,y=void 0===m?0:m,w=c.y,g=void 0===w?0:w,O="function"==typeof v?v({x:y,y:g}):{x:y,y:g};y=O.x,g=O.y;var j=c.hasOwnProperty("x"),k=c.hasOwnProperty("y"),M=s,E=a,B=window;if(h){var A=T(e),P="clientHeight",R="clientWidth";A===x(e)&&"static"!==L(A=W(e)).position&&"absolute"===l&&(P="scrollHeight",R="scrollWidth"),(i===a||(i===s||i===f)&&o===p)&&(E=u,g-=(b&&A===B&&B.visualViewport?B.visualViewport.height:A[P])-r.height,g*=d?1:-1),i!==s&&(i!==a&&i!==u||o!==p)||(M=f,y-=(b&&A===B&&B.visualViewport?B.visualViewport.width:A[R])-r.width,y*=d?1:-1)}var C,S=Object.assign({position:l},h&&U),z=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:q(t.x*r)/r||0,y:q(e*r)/r||0}}({x:y,y:g},x(e)):{x:y,y:g};return y=z.x,g=z.y,Object.assign({},S,d?((C={})[E]=k?"0":"",C[M]=j?"0":"",C.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",C):((n={})[E]=k?g+"px":"",n[M]=j?y+"px":"",n.transform="",n))}var G={passive:!0},J={left:"right",right:"left",bottom:"top",top:"bottom"};function K(t){return t.replace(/left|right|bottom|top/g,(function(t){return J[t]}))}var N={start:"end",end:"start"};function Q(t){return t.replace(/start|end/g,(function(t){return N[t]}))}function X(t){var n=x(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Y(t){return P(W(t)).left+X(t).scrollLeft}function $(t){var n=L(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function tt(t){return["html","body","#document"].indexOf(w(t))>=0?t.ownerDocument.body:O(t)&&$(t)?t:tt(z(t))}function nt(t,n){var e;void 0===n&&(n=[]);var r=tt(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=x(r),a=i?[o].concat(o.visualViewport||[],$(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(nt(z(a)))}function et(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rt(t,n,e){return n===h?et(function(t,n){var e=x(t),r=W(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var s=A();(s||!s&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+Y(t),y:f}}(t,e)):g(n)?function(t,n){var e=P(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):et(function(t){var n,e=W(t),r=X(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=M(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=M(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Y(t),f=-r.scrollTop;return"rtl"===L(i||e).direction&&(u+=M(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(W(t)))}function it(t){var n,e=t.reference,r=t.element,i=t.placement,o=i?k(i):null,c=i?F(i):null,l=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2;switch(o){case a:n={x:l,y:e.y-r.height};break;case u:n={x:l,y:e.y+e.height};break;case f:n={x:e.x+e.width,y:h};break;case s:n={x:e.x-r.width,y:h};break;default:n={x:e.x,y:e.y}}var v=o?_(o):null;if(null!=v){var b="y"===v?"height":"width";switch(c){case d:n[v]=n[v]-(e[b]/2-r[b]/2);break;case p:n[v]=n[v]+(e[b]/2-r[b]/2)}}return n}function ot(t,n){void 0===n&&(n={});var e=n.placement,r=void 0===e?t.placement:e,i=n.strategy,o=void 0===i?t.strategy:i,s=n.boundary,c=void 0===s?"clippingParents":s,d=n.rootBoundary,p=void 0===d?h:d,b=n.elementContext,m=void 0===b?v:b,y=n.altBoundary,x=void 0!==y&&y,j=n.padding,k=void 0===j?0:j,q=V("number"!=typeof k?k:D(k,l)),B=t.rects.popper,A=t.elements[x?m===v?"reference":v:m],R=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=nt(z(t)),e=["absolute","fixed"].indexOf(L(t).position)>=0&&O(t)?T(t):t;return g(e)?n.filter((function(t){return g(t)&&C(t,e)&&"body"!==w(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=rt(t,e,r);return n.top=M(i.top,n.top),n.right=E(i.right,n.right),n.bottom=E(i.bottom,n.bottom),n.left=M(i.left,n.left),n}),rt(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(g(A)?A:A.contextElement||W(t.elements.popper),c,p,o),S=P(t.elements.reference),H=it({reference:S,element:B,placement:r}),_=et(Object.assign({},B,H)),I=m===v?_:S,F={top:R.top-I.top+q.top,bottom:I.bottom-R.bottom+q.bottom,left:R.left-I.left+q.left,right:I.right-R.right+q.right},U=t.modifiersData.offset;if(m===v&&U){var Z=U[r];Object.keys(F).forEach((function(t){var n=[f,u].indexOf(t)>=0?1:-1,e=[a,u].indexOf(t)>=0?"y":"x";F[t]+=Z[e]*n}))}return F}function at(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,i=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?m:a,f=F(n.placement),s=f?o?b:b.filter((function(t){return F(t)===f})):l,c=s.filter((function(t){return u.indexOf(t)>=0}));0===c.length&&(c=s);var d=c.reduce((function(n,o){return n[o]=ot(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[k(o)],n}),{});return Object.keys(d).sort((function(t,n){return d[t]-d[n]}))}var ut={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name;if(!n.modifiersData[r]._skip){for(var i=e.mainAxis,o=void 0===i||i,l=e.altAxis,p=void 0===l||l,h=e.fallbackPlacements,v=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,w=e.flipVariations,x=void 0===w||w,g=e.allowedAutoPlacements,O=n.options.placement,j=k(O),M=h||(j!==O&&x?function(t){if(k(t)===c)return[];var n=K(t);return[Q(t),n,Q(n)]}(O):[K(O)]),E=[O].concat(M).reduce((function(t,e){return t.concat(k(e)===c?at(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:g}):e)}),[]),q=n.rects.reference,B=n.rects.popper,A=new Map,P=!0,R=E[0],C=0;C<E.length;C++){var L=E[C],S=k(L),W=F(L)===d,z=[a,u].indexOf(S)>=0,H=z?"width":"height",T=ot(n,{placement:L,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),_=z?W?f:s:W?u:a;q[H]>B[H]&&(_=K(_));var I=K(_),V=[];if(o&&V.push(T[S]<=0),p&&V.push(T[_]<=0,T[I]<=0),V.every((function(t){return t}))){R=L,P=!1;break}A.set(L,V)}if(P)for(var D=function(t){var n=E.find((function(n){var e=A.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return R=n,"break"},U=x?3:1;U>0&&"break"!==D(U);U--);n.placement!==R&&(n.modifiersData[r]._skip=!0,n.placement=R,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ft(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function st(t){return[a,f,u,s].some((function(n){return t[n]>=0}))}function ct(t,n,e){void 0===e&&(e=!1);var r,i,o=O(n),a=O(n)&&function(t){var n=t.getBoundingClientRect(),e=q(n.width)/t.offsetWidth||1,r=q(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=W(n),f=P(t,a,e),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!e)&&(("body"!==w(n)||$(u))&&(s=(r=n)!==x(r)&&O(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:X(r)),O(n)?((c=P(n,!0)).x+=n.clientLeft,c.y+=n.clientTop):u&&(c.x=Y(u))),{x:f.left+s.scrollLeft-c.x,y:f.top+s.scrollTop-c.y,width:f.width,height:f.height}}function lt(t){var n=new Map,e=new Set,r=[];function i(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||i(t)})),r}var dt={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ht(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?dt:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,i),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},f=[],s=!1,c={state:u,setOptions:function(r){var o="function"==typeof r?r(u.options):r;l(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:g(t)?nt(t):t.contextElement?nt(t.contextElement):[],popper:nt(n)};var a,s,d=function(t){var n=lt(t);return y.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),s=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(s).map((function(t){return s[t]}))));return u.orderedModifiers=d.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:c,options:void 0===n?{}:n});f.push(r||function(){})}})),c.update()},forceUpdate:function(){if(!s){var t=u.elements,n=t.reference,e=t.popper;if(pt(n,e)){u.rects={reference:ct(n,T(e),"fixed"===u.options.strategy),popper:R(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options;"function"==typeof o&&(u=o({state:u,options:void 0===a?{}:a,name:i.name,instance:c})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(t){c.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),s=!0}};if(!pt(t,n))return c;function l(){f.forEach((function(t){return t()})),f=[]}return c.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),c}}var vt=ht({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,u=void 0===a||a,f=x(n.elements.popper),s=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&s.forEach((function(t){t.addEventListener("scroll",e.update,G)})),u&&f.addEventListener("resize",e.update,G),function(){o&&s.forEach((function(t){t.removeEventListener("scroll",e.update,G)})),u&&f.removeEventListener("resize",e.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=it({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,u=e.roundOffsets,f=void 0===u||u,s={placement:k(n.placement),variation:F(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,Z(Object.assign({},s,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,Z(Object.assign({},s,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},i=n.elements[t];O(i)&&w(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?i.removeAttribute(t):i.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],i=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});O(r)&&w(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,o=m.reduce((function(t,e){return t[e]=function(t,n,e){var r=k(t),i=[s,a].indexOf(r)>=0?-1:1,o="function"==typeof e?e(Object.assign({},n,{placement:t})):e,u=o[0],c=o[1];return u=u||0,c=(c||0)*i,[s,f].indexOf(r)>=0?{x:c,y:u}:{x:u,y:c}}(e,n.rects,i),t}),{}),u=o[n.placement],c=u.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=u.x,n.modifiersData.popperOffsets.y+=c),n.modifiersData[e]=o}},ut,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,r=t.name,i=e.mainAxis,o=void 0===i||i,c=e.altAxis,l=void 0!==c&&c,p=e.tether,h=void 0===p||p,v=e.tetherOffset,b=void 0===v?0:v,m=ot(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=k(n.placement),w=F(n.placement),x=!w,g=_(y),O="x"===g?"y":"x",j=n.modifiersData.popperOffsets,q=n.rects.reference,B=n.rects.popper,A="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,P="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),C=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,L={x:0,y:0};if(j){if(o){var S,W="y"===g?a:s,z="y"===g?u:f,H="y"===g?"height":"width",V=j[g],D=V+m[W],U=V-m[z],Z=h?-B[H]/2:0,G=w===d?q[H]:B[H],J=w===d?-B[H]:-q[H],K=n.elements.arrow,N=h&&K?R(K):{width:0,height:0},Q=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=Q[W],Y=Q[z],$=I(0,q[H],N[H]),tt=x?q[H]/2-Z-$-X-P.mainAxis:G-$-X-P.mainAxis,nt=x?-q[H]/2+Z+$+Y+P.mainAxis:J+$+Y+P.mainAxis,et=n.elements.arrow&&T(n.elements.arrow),rt=null!=(S=null==C?void 0:C[g])?S:0,it=V+nt-rt,at=I(h?E(D,V+tt-rt-(et?"y"===g?et.clientTop||0:et.clientLeft||0:0)):D,V,h?M(U,it):U);j[g]=at,L[g]=at-V}if(l){var ut,ft=j[O],st="y"===O?"height":"width",ct=ft+m["x"===g?a:s],lt=ft-m["x"===g?u:f],dt=-1!==[a,s].indexOf(y),pt=null!=(ut=null==C?void 0:C[O])?ut:0,ht=dt?ct:ft-q[st]-B[st]-pt+P.altAxis,vt=dt?ft+q[st]+B[st]-pt-P.altAxis:lt,bt=h&&dt?function(t,n,e){var r=I(t,n,e);return r>e?e:r}(ht,ft,vt):I(h?ht:ct,ft,h?vt:lt);j[O]=bt,L[O]=bt-ft}n.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,r=t.name,i=t.options,o=e.elements.arrow,c=e.modifiersData.popperOffsets,d=k(e.placement),p=_(d),h=[s,f].indexOf(d)>=0?"height":"width";if(o&&c){var v=function(t,n){return V("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:D(t,l))}(i.padding,e),b=R(o),m="y"===p?a:s,y="y"===p?u:f,w=e.rects.reference[h]+e.rects.reference[p]-c[p]-e.rects.popper[h],x=c[p]-e.rects.reference[p],g=T(o),O=g?"y"===p?g.clientHeight||0:g.clientWidth||0:0,j=O/2-b[h]/2+(w/2-x/2),M=I(v[m],j,O-b[h]-v[y]);e.modifiersData[r]=((n={})[p]=M,n.centerOffset=M-j,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&C(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,i=n.rects.popper,o=n.modifiersData.preventOverflow,a=ot(n,{elementContext:"reference"}),u=ot(n,{altBoundary:!0}),f=ft(a,r),s=ft(u,i,o),c=st(f),l=st(s);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:l},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":l})}}]});const bt=class{constructor(e){t(this,e),this.showEvent=n(this,"showEvent"),this.hideEvent=n(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=vt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const n=t.composedPath(),e=n.includes(this.anchorRef),r=n.includes(this.popperContentRef);!this.isOpen&&e?this.show():(this.isOpen&&!r||this.isOpen&&e)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return e("div",{key:"f0fa57ab03b7b98fbf1f869ebae9410bab1b4e5f"},e("style",{key:"f8e39710d856d83d393713f0dbe42b404e60f1d8"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"74550d809cb22ddc60ab2762c6f0ea7914b05865",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"37b78e823f0bec6ebbe7a4d3dd2f177ec96a647a"})))}},mt=class{constructor(n){t(this,n)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?e("div",{class:"tooltip-container"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:o},e("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),e("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),e("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},e("div",{class:"tooltip bs-tooltip-top",part:r,role:"tooltip",ref:t=>this.tooltip=t},e("div",{class:"tooltip-inner",part:i},this.helpText)))):null}};export{bt as custom_popper,mt as form_control_tooltip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-Bta_r52Z.js";import{f as t,p as s,c as r}from"./p-uLUlLQpP.js";import{n as c,o,q as f}from"./p-C71Mxtso.js";import{S as d}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{c as p,a as i}from"./p-9REosSLu.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";const l=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=p(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(d,{key:"05c16ac0eda9f43a8fea014e92788a9d1dd5726b"},a("table-filters-menu",{key:"4ff930a4cf5410fcdee019be664f7f56992f293e",params:e,clearParams:r,part:c},a("div",{key:"2cecc576a4fd6779ea866b56e7623351de3cf6e8",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"34864c377740cb9415259c893a18b13d15a98534",class:"p-2"},a("form-control-date",{key:"72481e53e0aac0b9e2cffdc22c59da302b5a638d",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter,{showInputDate:!0})||i(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:o})),a("div",{key:"8edb0b5a2693211f9acf608d3ed8f101c4315648",class:"p-2"},a("form-control-date",{key:"520f02a76b921590e3b43cd8e2a17f120278c90a",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore,{showInputDate:!0})||i(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:f})))))}};export{l as justifi_payouts_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as e,H as s}from"./p-
|
|
1
|
+
import{r as a,h as e,H as s}from"./p-Bta_r52Z.js";import{E as t}from"./p-CLHwhyvu.js";import{a8 as c,a9 as i,aa as b,ab as d,ac as f}from"./p-C71Mxtso.js";const n=class{constructor(e){a(this,e),this.paging=t,this.params={}}render(){return e(s,{key:"7b821154b627026ef8624af6e4759e2176004676"},e("nav",{key:"7990aee285d0cc3e6f83cb59bb216439e5364df5","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"02c68163934ce1aabf4abd607cc28e549e20ebe1",class:"pagination m-0"},e("li",{key:"aab661ae85fc61eecd230d058f135483796769c0",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"ef42a41831a9890186c333418b161877761674e1",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?c:i},e("span",{key:"a898a92687e4a5fec37d9dab4208430260a9f274",class:"me-1",part:b},"«"),e("span",{key:"ecc2eeedc064d405ad178b9a98ed088e12f1b2fb",part:d},"Previous"))),e("li",{key:"56569cd9f9803ead8b1180e2f982a98d7009be1f",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"c39d389ab89609e8ce11b3dd81eb5c4a50d3521f",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?c:i},e("span",{key:"6a01458a048a524931b03df6a964fa4a0ac403ac",part:d},"Next"),e("span",{key:"f4cb3d084647c00dff30b99f751180564463443f",class:"ms-1",part:f},"»"))))))}};export{n as pagination_menu}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import{a as s}from"./p-9REosSLu.js";import{C as i,a as r}from"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{c as o}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c,J as p}from"./p-Dc10zfEZ.js";import{g as d,a as h}from"./p-NqdaxjDT.js";import{P as l}from"./p-DHP6oxsO.js";import{T as f,l as u,a as m,b as y,c as b,d as _,e as j,f as T,g,h as k,i as w,j as v,k as C}from"./p-BvkP2v3x.js";import{S as D}from"./p-BEDtXmpq.js";import{T as R}from"./p-CZfYo5-1.js";import{O as x,P as S}from"./p-C71Mxtso.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-RadC5UjV.js";const F={created_at:()=>t("th",{part:x,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:x,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:x,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:x,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:x,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:x,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:x,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:x,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},I={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},B={created_at:(e,a)=>t("td",{part:S(a)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:S(a)},I[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:S(a)},e.id),amount:(e,a)=>t("td",{part:S(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:S(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:S(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:S(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:S(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:S(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:S(a)},e.source_id),source_type:(e,a)=>t("td",{part:S(a)},e.source_type)},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:R.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:R.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:R.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,F,B),c(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:r,onError:n,final:c})=>{var p;try{const c=await a.fetchPaymentTransactions(t,e,s);c.error?n({error:h(c.error),code:d(null===(p=c.error)||void 0===p?void 0:p.code),severity:i.ERROR}):r({balanceTransactions:c.data.map((t=>new o(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=d(null==t?void 0:t.code);n({error:h(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new l})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(D,{key:"2e6911991eb1fc44421771f3eaeaab5b56a428a7"},t(u,{key:"316b7fbfd053e46cf13867e339af620348a9eab6"},t(m,{key:"fb9e5747d296827057127ba02b129813acdf8697"},t(y,{key:"e18cb6967b4fc7a87e6446331b749a661152ae15"},t(b,{key:"e6826933dda843935998e30de46c282822f52015"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"25ec99be29c6cfd4c73268ba9bdd3bd27dd111d3"},t(j,{key:"d4543307e31e2c697958118c7cce3175a04a23da",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"729b803595deed86cb03fee9bce764a7652f167f",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"a774dd4abc6d1d0f36e9bf5d5a9c851cca632181",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(w,{key:"f986ae746e06bf1ec934a6adc5149a9ced344c1e"},t(v,{key:"622645b9ca816156183d08f71806bca804ddbc8b"},t(C,{key:"672fa0fd592029908aaa88dddbfb5db90d14f7e6",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"60538e822fbf8279ec428c82e2fd9cf53a9d1b44",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payment_transactions_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as r}from"./p-
|
|
1
|
+
import{r as t,h as r}from"./p-Bta_r52Z.js";const s=class{constructor(r){t(this,r)}render(){return this.helpText?r("small",{class:"form-text text-muted",id:`form-help-text-${this.name}`},this.helpText):null}};export{s as form_control_help_text}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-Bta_r52Z.js";import{B as a}from"./p-IrS5pxMU.js";import{ag as r,ah as s}from"./p-C71Mxtso.js";const o=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length},d=class{constructor(t){e(this,t),this.showClearButton=!1}watchParamsHandler(e){this.showClearButton=o(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=o(this.params)}render(){return t("div",{key:"e205ff268a099beae125bbe8a85a6ae5e34924af",class:"d-flex gap-2"},t("div",{key:"e61fcbc31cfa97093771ad99b1f4bc088a2a6b98",class:"dropdown pb-3"},t("button",{key:"3c4425f10ebb39b011d2783c5ef88ebbd34b8e65",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle",part:r,"data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"03692eaae9d340c0f204f55e8c26b8353c4caa74",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"ed80b52e0cabbba44d09798b3b8bd4ab99d72659",class:"dropdown-menu",part:s,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"6cc0bf4f7fd5fa16b431b21933b36f75035221c7"})))),t("div",{key:"13f401ce7926aaf678021ed7dc768b967987b0ec"},t(a,{key:"d6a16f4e5b31e5602d6729e39fccfa4dbfdd8336",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{d as table_filters_menu}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as s}from"./p-Yj41tobi.js";import"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";const e=s();class p{async fetchDispute(s,p){return e.get({endpoint:`disputes/${s}`,authToken:p})}async updateDisputeResponse(s,p,t){return e.patch({endpoint:`disputes/${s}/response`,body:t,authToken:p})}async submitDisputeResponse(s,p,t){return e.post({endpoint:`disputes/${s}/response`,body:t,authToken:p})}async createDisputeEvidence(s,p,t){return e.put({endpoint:`disputes/${s}/evidence`,body:t,authToken:p})}}export{p as D}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as a,H as e}from"./p-Bta_r52Z.js";import{a3 as i,a4 as r,a5 as h,a6 as o,a7 as c,l}from"./p-C71Mxtso.js";const n=class{constructor(a){t(this,a),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?i:this.isFocused&&this.checked?r:this.checked?h:this.isFocused?o:c}render(){return a(e,{key:"6407ba394e0a5e35ce8f9a488942eaff2a6524bf",class:"form-group d-flex flex-column"},a("div",{key:"079639b8cd67ea1e68786e051a6248729cc6d9ac",class:"form-check"},a("input",{key:"40e1e492de6a55f22de384a9e246aa810709b84c",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}),a("label",{key:"7df3ada6721528e7a1e0895b4b8c018c55fa6c86",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:l},this.label)),a("form-control-help-text",{key:"70e2e3794604d2a1c7b5f4a363742a784b515b37",helpText:this.helpText,name:this.name}),a("form-control-error-text",{key:"b54b84856b46406fe7f978ad85514b20e4a1ba40",errorText:this.errorText,name:this.name}))}};export{n as form_control_radio}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as s,c as i}from"./p-
|
|
1
|
+
import{h as t,r as s,c as i}from"./p-Bta_r52Z.js";import{p as e,f as r,r as o,h as a}from"./p-9REosSLu.js";import{v as l,a as h,b as n,H as d}from"./p-BRvTM0jE.js";import{t as c,A as p}from"./p-C71Mxtso.js";import{S as v}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{S as u}from"./p-C8rAwXW9.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";const m=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(u,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(u,{width:"70%"})),t("div",{class:"col-12"},t(u,{width:"40%"})),t("div",{class:"col-12"},t(u,{width:"40%"})),t("div",{class:"col-12"},t(u,{width:"100%"})),t("div",{class:"col-12"},t(u,{width:"80%"}))),f=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return l()}componentWillLoad(){this.getQuote&&this.fetchData()}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=e(this.quote.product.description,[t=>o(t,"style"),t=>a(t,"a","part",c)]),this.quote.product.legal_disclaimer=e(this.quote.product.legal_disclaimer,[t=>o(t,"style"),t=>a(t,"a","part",c)]),h[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,n[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),h[this.quote.policy_type]=this.accepted},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return n[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,i,e,o;return this.isLoading?t(v,null,t(m,null)):t(v,null,t(d,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description,part:c}),t("form-control-radio",{label:`Accept coverage for ${r(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:p},"Please select an option"),t("small",{innerHTML:null===(o=this.quote)||void 0===o?void 0:o.product.legal_disclaimer,part:c}))}};export{f as justifi_season_interruption_insurance_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-Bta_r52Z.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as f,i as b,j as u,k as m,l as j}from"./p-BvkP2v3x.js";import{T as g}from"./p-CZfYo5-1.js";import{c as k,a as y}from"./p-DLr6u3Be.js";import{o as l,g as C}from"./p-CbGBEkk3.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C71Mxtso.js";import"./p-RadC5UjV.js";import"./p-DwxSNAz7.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,k,y),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"c496328d1840fb1f823f233c04c78525b5f12553"},e(r,{key:"f994cfed9bf75a299fc94dd22306911d84b44541"},e(h,{key:"0ffb6ce97ebe1a35eb0143b43767223d844a70e0"},e(o,{key:"d063eaafc44bf75be0de5463a1f9b2789ec8b76e"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"624a316c1631070a999c48342e71c55207b51be3"},e(n,{key:"0f7444acf626537bf2179fdb64a435550bcf20d3",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"ea68f85498d3bcbb44c8d9158d5cc6a228867e6c",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"db72f0190431182f410f246ad00fceb51901fd66",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"855184d90f85a1dd299c372b5b065e1af2151a99"},e(u,{key:"b216c505abd04f79c0a733312fc5babdb35f2b77"},e(m,{key:"efa83af6ee8543443826ccfe4efc230afc5d05f6",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"70664e167672a40b63c7fdd2603c52e8584870e9",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as checkouts_list_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as a}from"./p-Bta_r52Z.js";import{d as s,b as i}from"./p-9REosSLu.js";import{a as d,b as c,D as f,c as r,C as o,E as l}from"./p-Fa3dQnb9.js";import{B as b}from"./p-IrS5pxMU.js";import{S as h}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{M as n}from"./p-B1jCcGW-.js";import{S as p}from"./p-C8rAwXW9.js";import{a as y,B as u}from"./p-DwxSNAz7.js";import"./p-BFTU3MAI.js";import"./p-C71Mxtso.js";const v=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(p,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(p,{width:"70%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"100%"})),e("div",{class:"col-12"},e(p,{width:"80%"}))),m=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var t;return e(h,{key:"f6b9b84a740d3e5196eca16df2f34a1b225edbc8"},this.loading&&e(v,{key:"3d24389cb52696810d93b0047f02dd44ee8a1386"}),!this.loading&&this.errorMessage&&l(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"159849ab2d24fd2c08812dffc2323194b9cb5bbc","error-message":this.errorMessage},e(d,{key:"e42544c3d30edd29b79028d3e47e7e1fc25e2a8c",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},n(null===(t=this.payout)||void 0===t?void 0:t.status),e(y,"expedited"===this.payout.settlement_priority?{variant:u.WARNING,title:"Expedited",text:"Expedited"}:{variant:u.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(c,{key:"665e463415c851fd5198cf1ce6cbbd3e777a60ee",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${i(this.payout.updated_at)}`}),e(c,{key:"434c279f54780b4ef3a59c4a4ab5e84a0fbc536a",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${i(this.payout.created_at)}`}),e(c,{key:"76f7fcc47a5014a4f20dc8686b45a72eb0888228",title:"ID",value:this.payout.id}),e("div",{key:"da0272c9aa553ec71d6e65f3865f6ce643f79092",class:"m-4"},e(b,{key:"9037551eba246803a623654a88f7f8cfbe210de3",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"b7b6f40493db4db7e1defe66f4f510c32e0fab9e",slot:"detail-sections"},e(f,{key:"460e4a6bafc65e6c83dc955b99f75ed589f9ba42",sectionTitle:"Details"}),e("div",{key:"cdb8280c872e55410f24b6a90ba17f64ae0414d4",class:"d-table gap-2 w-100"},e(r,{key:"f401e006c82aa38c2b390668b3905bb10bf92d88",title:"Date paid",value:s(this.payout.deposits_at)}),e(r,{key:"95fa773958f9ad5950432cba9f0f8821b87183c7",title:"Statement Description",value:this.payout.description}),e(r,{key:"70930d62905c51939b33e6e5341a66eff7f1f80d",title:"Payout Method",value:this.payout.delivery_method}),e(r,{key:"f7203ba0a060df09a86fe47bb7354ba4440de247",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(r,{key:"9937a4bb3cf00943ff719e2851e06066960cd518",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(f,{key:"60988e407834a87285a8203e53053ebec0d109ae",sectionTitle:"Account"}),e("div",{key:"d30c4e5ee64658b9ecefe9720c1a8266d1af7314",class:"d-table gap-2 w-100"},e(r,{key:"a60f91b7dc0b6edf4ccad3437358f70ef8a97b2e",title:"ID",value:this.payout.account_id}),e(r,{key:"81da5682023ce4ad02b30688859262931b6d319c",title:"Account Type",value:this.payout.bank_account.account_type}),e(r,{key:"21ced58dd4f97df5b9839f49cce50162405416fe",title:"Institution",value:this.payout.bank_account.account_type}),e(r,{key:"73191d6ffabdf08536f4699c3f2ba4fa867a3992",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(r,{key:"d9ea68ef61a0cb63b1056f753a957927cf3204f7",title:"Account Number",value:this.payout.bank_account.account_number_last4})),this.payout.metadata&&[e(f,{key:"1eaca03125f7e50c62c7f731a7442c088858a317",sectionTitle:"Metadata"}),e("div",{key:"1368c90f240c2ea2e6711603d8599025dce2dd82",class:"d-table gap-2 w-100"},e(o,{key:"52ec68588672ffa71ff98139e9d7ae193fbd55bd",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{m as payout_details_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{P as r}from"./p-BeOlrj_S.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import{C as o,a as e}from"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{P as p}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as h}from"./p-NqdaxjDT.js";import{E as n}from"./p-Fa3dQnb9.js";import{c as m,J as d}from"./p-Dc10zfEZ.js";import{m as c}from"./p-pGzabKc7.js";import"./p-Yj41tobi.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C71Mxtso.js";import"./p-CJdXAC5R.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new d(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:r,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:o.ERROR}):r(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:o.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new r}),this.getPayoutCSV=c({authToken:this.authToken,service:new r})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payout_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as e,h as t,H as a}from"./p-Bta_r52Z.js";import{Z as i,_ as h,$ as r,a0 as o,a1 as c,l as f}from"./p-C71Mxtso.js";import{F as m}from"./p-SuXHDcwL.js";import{F as n}from"./p-DT6jDcoi.js";import"./p-CZfYo5-1.js";const b=class{constructor(t){s(this,t),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const e=s.target,t=e.getAttribute("name");this.inputHandler(t,e.checked),this.formControlInput.emit({name:t,value:e.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?i:this.isFocused&&this.checked?h:this.isFocused?r:this.checked?o:c}render(){return t(a,{key:"a3b0fd8435bde51d1e2e0aaa0e322f10c599d60b"},t("div",{key:"1bf5c142fc98a80f66bb51343bcd2aa8ece2376a",class:"form-group d-flex flex-column"},t("div",{key:"7e006d94b3716d4a93239e4f5e9e5f0058e5f460",class:"form-check"},t("input",{key:"29d7b5552ce996fea4b71be9745372aa6804890f",ref:s=>this.checkboxElement=s,type:"checkbox",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-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),t("label",{key:"9731752e9eabd937800492a9ae9f64a96deebb5a",class:"form-check-label",htmlFor:this.name,part:f},this.label)),t(m,{key:"d333c061d00a23f0ef368e54094989cd7b892229",helpText:this.helpText,name:this.name}),t(n,{key:"ec2734c748e851499d6699e7acb32bb74a04e256",errorText:this.errorText,name:this.name})))}};export{b as form_control_checkbox}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-Bta_r52Z.js";import{c as i}from"./p-CBs671Ol.js";import{a as s}from"./p-9REosSLu.js";import{C as o,a as r}from"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{d as n}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d,J as p}from"./p-Dc10zfEZ.js";import{g as h,a as l}from"./p-NqdaxjDT.js";import{P as f}from"./p-BeOlrj_S.js";import{T as u,l as m,a as y,b,c as _,d as j,e as w,f as T,g as v,h as g,i as k,j as D,k as C}from"./p-BvkP2v3x.js";import{S as P}from"./p-BEDtXmpq.js";import{T as I}from"./p-CZfYo5-1.js";import{O as S,P as O}from"./p-C71Mxtso.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-RadC5UjV.js";const q={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},B={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},A={id:e=>t("td",{part:O(e.id)},e.id),account_id:e=>t("td",{part:O(e.account_id)},e.account_id),payout_id:e=>t("td",{part:O(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:O(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:O(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:O(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:O(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:O(e.currency)},e.currency),description:e=>t("td",{part:O(e.description)},e.description),source_id:e=>t("td",{part:O(e.source_id)},e.source_id),txn_type:e=>t("td",{part:O(e.txn_type)},B[e.txn_type]),created_at:e=>t("td",{part:O(e.created_at)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:O(e.available_on)},t("div",{class:"fw-bold"},s(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:O(e.updated_at)},t("div",{class:"fw-bold"},s(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.updated_at,{showTime:!0})))},E=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:I.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:I.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:I.row,data:a})}}componentWillLoad(){this.transactionsTable=new u(this.balanceTransactions,this.columns,q,A),d(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:s,onError:r,final:c})=>{var d;try{const c=await a.fetchPayoutTransactions(t,e,i);c.error?r({error:l(c.error),code:h(null===(d=c.error)||void 0===d?void 0:d.code),severity:o.ERROR}):s({balanceTransactions:c.data.map((t=>new n(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);r({error:l(t),code:e,severity:o.ERROR})}finally{c()}})({accountId:i.accountId,authToken:this.authToken,service:new f})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(P,{key:"6c624e5edba69e17a4cab229b90beb9d2ecda69d"},t(m,{key:"449f93393a5e2b1aa2dd0f4f136e264fde27a9a4"},t(y,{key:"de857828525be5df2e383859ac51e8b0719422fd"},t(b,{key:"c3f2ae5ff5ae6f78a587bee899d68b3e7934cf41"},t(_,{key:"57ddf8fcaafa22cf3e6137a3de82550748ac9288"},this.transactionsTable.columnData.map((t=>t)))),t(j,{key:"9f634545f5afd44dab4b2a16ec630efeeee18f52"},t(w,{key:"12ffb167f61de13a91c05f6c93304ff1b688d734",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"5453befdfcd1764163cc9c1a9c51f5f35e7c2c62",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(v,{key:"19f22366e49c1022f0bf96839bac88c76892d62d",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(g,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"e86e144a90d9010e866bd48d96d24c613ebeb8ef"},t(D,{key:"6e4bee39a0c426332331128b27560218adc888e4"},t(C,{key:"9becbcedb44ad9f9d1ed7ef5725af087178b6829",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"17582aa7347e31457c8f29af49ccc4dcc60d3d04",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{E as justifi_payout_transactions_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as e}from"./p-
|
|
1
|
+
import{r as s,c as t,h as e}from"./p-Bta_r52Z.js";import{C as i,a as r}from"./p-BhrFjjAs.js";import{c as o}from"./p-Dt-vy9Le.js";import{t as h}from"./p-C71Mxtso.js";import{S as n}from"./p-BEDtXmpq.js";import{H as a}from"./p-BjIcn6FF.js";import"./p-CZfYo5-1.js";import{B as p}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const c=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:p.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"e195b19df4d1061ecf8b305005faf0ffce68221e"},e("div",{key:"17d42ba0a22567dce6760e2047478eb1bc36a794",class:"row gap-3"},e(a,{key:"507788c4af5572cbb09037443ae51b505567d825",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"4b7e73217ff8230756542c3b0c069e18b7f23356",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2ae1e8386114181cbd6f7999ac047b7709daa4fb",class:"d-flex justify-content-between align-items-center"},e("div",{key:"a126b618a3028c4c7a9c12145ab63e222a17e51f",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"a66e1ac554e0dffa78be59df6a74d8175ba0376c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{c as justifi_payment_provisioning_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{P as r}from"./p-DHP6oxsO.js";import{m as p}from"./p-Dw516k9e.js";import{E as o}from"./p-Fa3dQnb9.js";import{C as e,a}from"./p-BhrFjjAs.js";import{c as m,J as n}from"./p-Dc10zfEZ.js";import"./p-Yj41tobi.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-NqdaxjDT.js";import"./p-C71Mxtso.js";import"./p-CJdXAC5R.js";const h=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=p({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:e.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{h as justifi_payment_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-Bta_r52Z.js";import{f as t,p as s,c as r}from"./p-BoGb-Wsw.js";import{u as l,v as d,w as i,x as o,y as p}from"./p-C71Mxtso.js";import{S as c}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import"./p-CBs671Ol.js";import{c as f,a as m}from"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{T as n,a as b}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:b.boardingOnly},{label:"Boarding Shipping",value:b.boardingShipping}]}render(){const e=Object.assign({},t);return a(c,{key:"87569a0fbda61171597ae34502830a7689576c83"},a("table-filters-menu",{key:"7fefbf17edeef40d13f34bd634e19afc1c3da9d7",params:e,clearParams:r,part:l},a("div",{key:"450de24e20ce880d93045c1d549e996db865d1d4",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"c3092da2cf616bea443603cfbca4924e58d281ee",class:"p-2"},a("form-control-select",{key:"19746e7161033e740eb587cecf091b65e8d59246",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:d})),a("div",{key:"4cde261675fe5295798905ae6da64ef63d0b85d4",class:"p-2"},a("form-control-select",{key:"1ca5fd3cdac0af84dff9e58afe73584d62e049d3",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:i})),a("div",{key:"001ec15d42b32b24e43f60a8e863f16539c272ea",class:"p-2"},a("form-control-date",{key:"eac9a1727d07629210952c1f25bd8ef5536c2a83",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"1ca6e942ed3ae19693542d73b074398e9b342005",class:"p-2"},a("form-control-date",{key:"fa02bc32fae8e9b3fa5cade5e20839062b64c754",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,c as s,H as e,a as o}from"./p-Bta_r52Z.js";import{t as r}from"./p-C71Mxtso.js";import{f as a}from"./p-9REosSLu.js";import{s as d}from"./p-D_FOQEGU.js";import{S as c}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{J as n,c as h}from"./p-Dc10zfEZ.js";import"./p-CBs671Ol.js";import{C as m,a as p}from"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{m as l,a as u}from"./p-hDoH7hHP.js";import{C as f}from"./p-DFPGAF4g.js";import"./p-BFTU3MAI.js";import"./p-D3BIZZrc.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-NqdaxjDT.js";const v=class{constructor(i){t(this,i)}render(){return i(c,{key:"9a2eea1693287ad73dfedd3ddc24e949e9d75148"},i("section",{key:"1943be6cef0c4a1c830ddfc14d893c3906482534"},i("div",{key:"cf3f41d3dd3c9829d93d7e56e3d2dfabbd99ccef"},i("div",{key:"b5bc944a5310252dc0720e3e7d709f1a57f898c8",part:r},null==d?void 0:d.paymentDescription),i("div",{key:"dbe53880d7c3ff8d4513a570e1b024f1e2f43028"},i("span",{key:"d8986a9265463d8f9d7f62598cc4ec3203081c09",part:r},"Total")," ",i("span",{key:"32cbc6e259fdee2c71ad72fcf59ab157704c4758",part:r},a(+(null==d?void 0:d.totalAmount)))))))}},j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.checkoutComplete=s(this,"checkout-complete-event"),this.savePaymentMethod=!1}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),d.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new f};this.getCheckout=l(t),this.completeCheckout=u(t)}componentWillLoad(){this.analytics=new n(this),h(),d.authToken=this.authToken,d.accountId=this.accountId,this.fetchCheckout()}componentDidLoad(){this.queryFormRefs()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}fetchCheckout(){this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{var i,s,e,o;d.paymentMethods=t.payment_methods,d.paymentMethodGroupId=t.payment_method_group_id,d.paymentDescription=t.payment_description,d.totalAmount=t.total_amount,d.paymentAmount=t.payment_amount,d.bnplEnabled=t.payment_settings.bnpl_payments,d.bnplProviderClientId=null===(i=null==t?void 0:t.bnpl)||void 0===i?void 0:i.provider_client_id,d.bnplProviderMode=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_mode,d.bnplProviderApiVersion=null===(e=null==t?void 0:t.bnpl)||void 0===e?void 0:e.provider_api_version,d.bnplProviderCheckoutUrl=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_checkout_url},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:p.FETCH_ERROR,severity:m.ERROR})}})}queryFormRefs(){this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form"),this.billingInformationFormRef=this.hostEl.querySelector("justifi-billing-information-form, justifi-postal-code-form"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance"),this.sezzlePaymentMethodRef=this.hostEl.querySelector("justifi-sezzle-payment-method")}async tokenizePaymentMethod(t){var i,s;const e=null!==(s=await(null===(i=this.billingInformationFormRef)||void 0===i?void 0:i.getValues()))&&void 0!==s?s:{},o=Object.assign(Object.assign({},t),e),r=Object.assign({accountId:this.accountId,payment_method_group_id:void 0},o);return this.savePaymentMethod&&(r.payment_method_group_id=d.paymentMethodGroupId),this.paymentMethodFormRef.tokenize({clientId:this.authToken,paymentMethodMetadata:r,account:this.accountId})}async getPaymentMethod(t){if(!this.paymentMethodFormRef)return d.selectedPaymentMethod;const{error:i,id:s}=await this.tokenizePaymentMethod(t);if(!i)return s;this.errorEvent.emit({errorCode:i.code,message:i.message,severity:m.ERROR})}async validate(){var t,i;const s=[null===(t=this.paymentMethodFormRef)||void 0===t?void 0:t.validate(),null===(i=this.billingInformationFormRef)||void 0===i?void 0:i.validate()];return this.insuranceFormRef&&s.push(this.insuranceFormRef.validate()),(await Promise.all(s)).every((t=>!1!==(null==t?void 0:t.isValid)))}async submitCheckout(t){var i;if(!await this.validate())return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:p.VALIDATION_ERROR,severity:m.ERROR});let s;if("sezzle"===d.selectedPaymentMethod){const t=this.insuranceFormRef?await this.insuranceFormRef.validate():{isValid:!0},e=await this.sezzlePaymentMethodRef.resolvePaymentMethod(t);if(e.error)return void this.errorEvent.emit({message:e.error.message,errorCode:p.TOKENIZE_ERROR,severity:m.ERROR});"success"===(null===(i=e.bnpl)||void 0===i?void 0:i.status)&&(s={payment_mode:"bnpl",payment_token:void 0})}else{const i=await this.getPaymentMethod(t);if(!i)return void this.errorEvent.emit({message:"Payment method tokenization failed.",errorCode:p.TOKENIZE_ERROR,severity:m.ERROR});s={payment_mode:"ecom",payment_token:i}}this.completeCheckout({payment:s,onSuccess:({checkout:t})=>{this.checkoutComplete.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:p.COMPLETE_CHECKOUT_ERROR,severity:m.ERROR})}})}render(){return i(e,{key:"8e15946406121bf7ac6a37f225a96728413ff334"})}get hostEl(){return o(this)}};export{v as justifi_checkout_summary,j as justifi_modular_checkout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as a,H as i}from"./p-Bta_r52Z.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{a2 as o,l as h,V as c,b as n,U as f,a as l}from"./p-C71Mxtso.js";import{F as d}from"./p-SuXHDcwL.js";import{F as p}from"./p-DT6jDcoi.js";import"./p-CZfYo5-1.js";const m=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=o;return this.errorText&&(t=n),this.disabled&&(t=f),this.isFocused&&(t=l),t}render(){return a(i,{key:"950019f15743434eaa378b48338e73157525d677"},a("div",{key:"9a4dab257ec7a62f3f3f1ba1cc2c4aad3f823c17",class:"form-group d-flex flex-column"},a("label",{key:"19d046ba0d9f5d2b8fc7c3d8c1b9dc893a5834e5",part:h,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"ba7df233aa5965ee0a7f5c01dfd84aabd3cecf70",class:"input-group"},a("span",{key:"e325e64173d5d7c260b824ef492f02f2333bdb8f",class:"input-group-text",part:c},"$"),a("input",{key:"5b1632e00657f9aa31139a9869ab63ad9388612e",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(d,{key:"cb7f04dc7e6849d335eb0cfecfb05d7e0c26ff1f",helpText:this.helpText,name:this.name}),a(p,{key:"6ad1b947a48e8c97a2f5a1c4c2c1094679ce25cd",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-D6FDxSyt.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{ak as d}from"./p-BrLVc_85.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa"},a("div",{key:"90870dc58e0eab72e64ae03bdaa25bb1749d8e23",class:"row gy-3"},a("div",{key:"cc3b6f19687d02e047744e8a53d22a2f91a8b968",class:"col-12"},a("h2",{key:"230c20dc3f75e48afa4008369374fd8c175cb7ea",class:"h5",part:d},"Additional Evidence")),a("div",{key:"7b49c8012cfc07c44399969f8505db786389b38b",class:"col-12"},a("form-control-textarea",{key:"349a8a2ebda338e170c90266801ae93b6f9482ea",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"01cd368a2278c5de462f0998a50ba4ca5889be26",class:"col-12"},a("form-control-file-v2",{key:"f95d0b78704f9a1fd154003edbbffb062659ae27",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"6dc5100426e8e4124d19a375250f85f8e15b28d4"},a("div",{key:"fb950108be5fd4096a7717c88943938261787f99",class:"row gy-3"},a("div",{key:"08f85a06288e19939a16d3fa52ef3b3199c56f36",class:"col-12"},a("h2",{key:"a585b93921814b1ffbb95c6f9c1de37d4104049b",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"3b7c620518006738d2e36863b62a72142f167733",class:"col-12"},a("form-control-textarea",{key:"70a76160b0d29648a9e0598dd5b867a382935e03",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e06d4c794bad47e366ca702e764307fdab5e33a8",class:"col-12"},a("form-control-textarea",{key:"1b783920c5a5b94bff60d4b061cc7cc6666cc184",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"3cb3371c1d3727e55140ea60a0cff96bc0f42702",class:"col-12"},a("form-control-file-v2",{key:"738a456bf4653240180963fa7e5ab20a7a4add7c",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"70e29d650d5304522f927c15b4eb5e62e203c5e0"},a("div",{key:"f50422b29cb2a4f3bca911ced94dc681adb3fc41",class:"row gy-3"},a("div",{key:"f29816d9281ea4c4db5018d3b7edb1600569357a",class:"col-12"},a("h2",{key:"a2889c95c293bf0bbf97c16e4486e307ca87729c",class:"h5",part:d},"Customer Details")),a("div",{key:"9cd45719434a1740f67b73c13fd08e0fe562168e",class:"col-12"},a("form-control-text",{key:"5a30a3aef7fbe2d3013c46e43a437724dae41213",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7",class:"col-12"},a("form-control-text",{key:"10b146053a399039e8dbd42c3cab53b4b55c0ec3",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"2742a0922a223bd60d6e3d08a55190742ecf5112",class:"col-12"},a("form-control-textarea",{key:"41491e238c75716520d747cbf9f1bcc329a2d686",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"71074f31e565c24107b91b04d9aa16da77ba618c",class:"col-12"},a("form-control-file-v2",{key:"17f70cf96927b01e65430e13c2d21209e9170603",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"ec696695191e68c7ceb0cc41f99f9e53f2d59da1",class:"col-12"},a("form-control-file-v2",{key:"562ff8b3819f536d491f2e2e55a85a55fcda0e1c",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0b0d73b396b32f29fa389d3981d48c3f30f96fd7"},a("div",{key:"2fd16a4cf964c863a59789a2be60d94b27a95de8",class:"row gy-3"},a("div",{key:"48c15f7db3285caa9164d815615b82a84283fbfe",class:"col-12"},a("h2",{key:"397b3026311bf57588b172146fc9822f99ede63e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"c825b6efd428bee298b9b0ddf2265378cf999de9",class:"col-12"},a("form-control-text",{key:"b43283087a10826bf8e582a1e863ed4982b5c000",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"66d5cefa16c341f5c523eaa46de5c11f5b16e619",class:"col-12"},a("form-control-textarea",{key:"f83573136fc2ce108f186f9434f46a3f157bd102",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"cc47dc1d9dbac962d27494b5ff3fef572c98c7b4",class:"col-12"},a("form-control-file-v2",{key:"3cf06b6d61edd6ac96d02b12639d040f698b2526",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"1a4a1d78529c48b8f32029a3efa05b4430c6d271"},a("div",{key:"593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91",class:"row gy-3"},a("div",{key:"39440c3a2802b823c85f251c4393ba76bad287c0",class:"col-12"},a("h2",{key:"f5ec8cce1bbadb772ac6dbe668cf54187d2690d7",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"b9020a773c45a8f59a31ffef44b32253fdb4a551",class:"col-12"},a("form-control-text",{key:"56122eafb7f138f4472a5818cddd32cb0e17fc7e",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"0737f585271838dd60ab9ee1e6ac83d0c6362b96",class:"col-12"},a("form-control-file-v2",{key:"63590d574ee151cbf82638002dfe513cea471035",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"0e2648d399af18f7959bed2e0fff56fd63b541df"},a("div",{key:"4322c227617147721ab7cf33a5e75a09bc370a0c",class:"row gy-3"},a("div",{key:"e2bc9f0642356a864e7fa323262ead13d4825fdc",class:"col-12"},a("h2",{key:"88af660c9add83da7edc7758d4645db796c80fdf",class:"h5",part:d},"Product & Service Details")),a("div",{key:"dcfb0f64e1b611eb8d53f97950d5922f7358a64c",class:"col-12"},a("form-control-text",{key:"42959d4b7c03d14fdef29a656a5f18d0d89d3b2e",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2",class:"col-12"},a("form-control-date",{key:"6e8bab228b3a23655cbf71fe6dc72a850b38947c",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"2e32f65cc5388302d067fb1a8db34e3e529435c2",class:"col-12"},a("form-control-file-v2",{key:"f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"882eb01880bcfdde30abe10465fecd7390654ed6"},a("div",{key:"de2f238310e4b80976888d147e90047688ad5ada",class:"row gy-3"},a("div",{key:"305af62aa762ae6abff0678998132e8f56707550",class:"col-12"},a("h2",{key:"6e224996b82639c426d129bfd28633f3d3839f6f",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"b2b8d444c594bf92d04fed6640230745c5fb49ba",class:"col-12"},a("form-control-textarea",{key:"f75c6c360c485ac5253164be5d4941d859deb902",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"1788d1e6ba1ddbe82795ce1a41b901a81c055f6d",class:"col-12"},a("form-control-textarea",{key:"f47fac9b8e0d6b9766311b13c760129bb6335ddd",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"d96552fee8b4cdddf31148b2d3783a4e1dfb031b",class:"col-12"},a("form-control-file-v2",{key:"3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"ec2271dd9646596df3106f56c6e96f618196046a",class:"col-12"},a("form-control-file-v2",{key:"48f956f2580187fc7baecc5426d5ed0a1050150b",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"90641cea619de697d7a90e6e397790f79ceb9376"},a("div",{key:"52d939e26bd26e99240d100897a530b89553e727",class:"row gy-3"},a("div",{key:"01755fbca3430bd3066377e9481038370c49b2d8",class:"col-12"},a("h2",{key:"d273fbe6ff8b7815ba5c2369748a3a20548b0a4d",class:"h5",part:d},"Shipping Details")),a("div",{key:"595f4e63dff85591713a4c895acb6628c8ef8214",class:"col-12"},a("form-control-text",{key:"958169d07544237a72facdc016d4d12ac64a4c48",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"1d3020a30f95c5ced652871a635aba0152bbc4e3",class:"col-12"},a("form-control-text",{key:"088af20353ec2efcb65a4e597a1fb4aec23cfcbb",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"536ee74c42d326d7f7f698274c846bfebf0d34dd",class:"col-12"},a("form-control-date",{key:"71ef44bd4c810a567162b7fe92199eceff9be470",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"8887e0daf44be31486563e85cd989eef1da5f5ce",class:"col-12"},a("form-control-textarea",{key:"c34093bc4ee65f4fb092c377a98e01cd69bdbc7c",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"469a5d8c7e28fa2ad430f104f08f387448f70048",class:"col-12"},a("form-control-file-v2",{key:"a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
1
|
+
import{r as e,h as a}from"./p-Bta_r52Z.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{am as d}from"./p-C71Mxtso.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){let e="";const a=new Promise(((a,t)=>{const i=new FileReader;i.onload=t=>{e=t.target.result,a(e)},i.onerror=()=>{t(new Error("Error reading file"))},i.readAsDataURL(this._file)}));return await a,e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"f407dba7be750c75d9bd3163647e62b57f7b32df"},a("div",{key:"5d690bf3227112c1d6f86d956bb98dd5bb2d585d",class:"row gy-3"},a("div",{key:"e12ecbe52d9383b449cde0ffafe32b952c293ad8",class:"col-12"},a("h2",{key:"aaeeeed0024985d9be89ce02f252ef999dd9d197",class:"h5",part:d},"Additional Evidence")),a("div",{key:"aedfe85e833e387998815246faa21f46184ddcdb",class:"col-12"},a("form-control-textarea",{key:"affa35eb587e6b70546f18414d7436bc267c0201",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"ec650c06058b30773dacf1c1f9cafedb526ced90",class:"col-12"},a("form-control-file-v2",{key:"d9a75a49a8ada0dfe0b2466ec03a8842c75bddf8",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53b8b9ca5ef0b2fbb3801aeed7c442517b54ffa8"},a("div",{key:"e122c095d856545b52d5958db10b8e982de73073",class:"row gy-3"},a("div",{key:"9ddc0fa91765209b3fa393c0ebf17598af90b3b9",class:"col-12"},a("h2",{key:"a7e3001dbc2b36e20e2a1dd1d16b44a023610010",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"7b5481566998713ba87519b999e5acdf3eb0ef52",class:"col-12"},a("form-control-textarea",{key:"c67604fa2133a3ed9b5b67a7150e488673d21478",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"4b96c57d15060a0a6c42bede64110d67be557060",class:"col-12"},a("form-control-textarea",{key:"60ddac4a5c2574461dbb28281b89851d0e89600c",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"42015bc3bbcbf208d39906d7b270776e3e90ddac",class:"col-12"},a("form-control-file-v2",{key:"76365a80cd7068267a8a40c6be608a9344e884ce",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"a8fde002d56a1c5ff7bace9e7ad8282b3e8396c1"},a("div",{key:"b1ec9e406e26de2bdb179afbfa3a9a7ad7612fe9",class:"row gy-3"},a("div",{key:"a0a31924c5cc7f0a35859899851e003eec970c50",class:"col-12"},a("h2",{key:"de62f11cc36fbf96a0a1d409cc35adba2e997bb8",class:"h5",part:d},"Customer Details")),a("div",{key:"65cd3d78b510ad95f97dcadcbb60d91caf950f22",class:"col-12"},a("form-control-text",{key:"e539cbbac218f3d1927f3ddccca4c0c0e958eec1",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a6eca53da11014123325064fe09b6df37709f113",class:"col-12"},a("form-control-text",{key:"9b874331a62dffb2f00af002b0637fdd0f1a8d2c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"69be313a715c3fe9a78ecffaca75b3a4dff5bed2",class:"col-12"},a("form-control-textarea",{key:"e366f5ebed7a117c2e1f4e1c3c3a740aa9e5475a",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"3b177078766a8b04f3de68889cb991b23c15752c",class:"col-12"},a("form-control-file-v2",{key:"0d2cc6edded1211028460ef506ef470d14a09718",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"4a624251414dcfad4b5e2b6d34b99dc2ef9b59dc",class:"col-12"},a("form-control-file-v2",{key:"442dc7cc2f851879ebb1504d761e2315c6f45141",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"fcf2b846ac2f612a53895836df0a5287da15b20a"},a("div",{key:"953be0fa8732b94991d1c078a9102666e5a91a81",class:"row gy-3"},a("div",{key:"60f7ef7802a5f3ff7cd2167ba747d37e258e3f99",class:"col-12"},a("h2",{key:"3e1336abfca85298ee392459dfa22401a8e47259",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"75fa5b181b617cd68010e01f91a8513c9c828acb",class:"col-12"},a("form-control-text",{key:"b54f2d3d86aabc2072acaf2b961de118934bedcd",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"614f070bd6d0aad1e2e64c2e2f9c447402fd161a",class:"col-12"},a("form-control-textarea",{key:"a0653f81b9e237b669bfc47e7788b9027a1d5a6a",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"f358128dbb1715a40841521f9602e30bb6c7d702",class:"col-12"},a("form-control-file-v2",{key:"ad7f1b8219560600ef3fba20a0b968a9d3930b3d",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"fb40a53ecb355271bfdff95eed90e6b5e4827ae9"},a("div",{key:"fcbcdd6a8bb4891ac5a3cb26d54d26d6f317f401",class:"row gy-3"},a("div",{key:"b605ae860e8e6efd21ee21ed851d23af5e813c04",class:"col-12"},a("h2",{key:"a7c8d699c79f92334f159025acbbe65969452594",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"1a623a273c2e6a82ffcb9c709d6953ba01590a02",class:"col-12"},a("form-control-text",{key:"7d8b0ee30a8c7b6bef84f19fe7734484ba84b0e1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"d50d372a0881ce648fa61ba96e61f3f28d4136ae",class:"col-12"},a("form-control-file-v2",{key:"e635514b9a48cfabb7d16c53293585ad1740c608",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53894694d5f6c1cfe7d8d699af69e4dc6c496fb8"},a("div",{key:"c1cb70ef48be5e50bdb1fd0d47416b48342f7620",class:"row gy-3"},a("div",{key:"837aa7683621d26ee08a1f8f3b1f5ae65b63bd94",class:"col-12"},a("h2",{key:"9c51ee3f6df442237cd3c23306f79b7e15fed133",class:"h5",part:d},"Product & Service Details")),a("div",{key:"259ea001a1896c34088a6a03a725564c5cd48a74",class:"col-12"},a("form-control-text",{key:"f237fc051614689b9b8c8227d6a6d7266a9adeaa",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"a0f7a0cb813c7ee2a4423abc1506f7c775ad9e07",class:"col-12"},a("form-control-date",{key:"fca7aef52b721fa472b5459b9dc47f95dca1ce76",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"f285bfe4242cc1179c5a7b4864b907101edeaebb",class:"col-12"},a("form-control-file-v2",{key:"9ad064a5be5381cccbe33e4dc1e00879996ad513",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"839a9b7ea7f978987e44f643af2d2aa8ac9557ff"},a("div",{key:"410211fe20a2e9ab23ec1e3f172b200afb2db8ae",class:"row gy-3"},a("div",{key:"9e6121b760cf47feaeffdc231780490ce47342f7",class:"col-12"},a("h2",{key:"fe64c8a2be67d179ddc4157c4fa8876937c2e4b8",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"db91b2f1c102026cc6998f9f8163761d1bf85024",class:"col-12"},a("form-control-textarea",{key:"199cd5d32ff726681a918ced7f1790bd292e0cf7",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"e48e83b580182698374627889cf0cff69dd3779f",class:"col-12"},a("form-control-textarea",{key:"627faade4d3afaad7d700494652d559ede4f69af",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"bdfca2b3878de2a665961fd6cd4fc10833f385bc",class:"col-12"},a("form-control-file-v2",{key:"a8d0d09bf0d8298ba85ead4b643d5ea774336ba0",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"41f43575895d15f34bfa2f6095462068cd6ad5d6",class:"col-12"},a("form-control-file-v2",{key:"aceae6c113bc38019bc20125eb3e8be0d111c15f",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"9e142fde27da140959115d1acf4a64d7420f90ba"},a("div",{key:"bf322d6ec351e67bd4f3fdfec759e1f5c5d381a6",class:"row gy-3"},a("div",{key:"165a55dc932d0110728c87726231d0cb4b962650",class:"col-12"},a("h2",{key:"43f318effe869349595025a76ced5ea39093a0ef",class:"h5",part:d},"Shipping Details")),a("div",{key:"1de38ece17aa8b93cfc00858a4d495a950d46239",class:"col-12"},a("form-control-text",{key:"d9cfd173732a42abf831ee632ca05d3db78b7135",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5b298a18d97e06904c22c9a918c6f9ebc25f8219",class:"col-12"},a("form-control-text",{key:"c164c2bfc1772498f3e21c51e2979479021cf86d",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"82128f9527e8061ecf2897af65d908af03c46bbe",class:"col-12"},a("form-control-date",{key:"13e602a61a85978f129890423a36a95a8b055258",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"5591510c56724f58567c88792cbbeb3cd15e1d0e",class:"col-12"},a("form-control-textarea",{key:"1e7cbc326345feebd0ffae9b6ec56bfbc36a8193",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"d2d1026fd1c7c3b32a6988fb940c431948630b08",class:"col-12"},a("form-control-file-v2",{key:"21abf54f6a64980c73200ae89130626316917aa7",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-Bta_r52Z.js";import{C as o,a as r}from"./p-BhrFjjAs.js";import{c as e,J as p}from"./p-Dc10zfEZ.js";import{P as a}from"./p-BeOlrj_S.js";import"./p-CBs671Ol.js";import"./p-9REosSLu.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import{P as n}from"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as h}from"./p-NqdaxjDT.js";import{m}from"./p-pGzabKc7.js";import{m as j,S as u}from"./p-CA9D3qnA.js";import{S as d}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-Db-JSm6-.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-D3BIZZrc.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B1jCcGW-.js";import"./p-DwxSNAz7.js";import"./p-C71Mxtso.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleOnError=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.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const j=await i.fetchPayouts(t,s,r);if(j.error)return p({error:h(j.error),code:c(null===(m=j.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},j.page_info);e({payouts:(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:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else 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=j({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"cb3d9f45b26f10dcb3e4f230655e3dbcb9169e66"},i("payouts-list-core",{key:"0099531b4747cc5b04741ed7fc12cf5f2add028e",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as i}from"./p-Bta_r52Z.js";import{S as s}from"./p-BEDtXmpq.js";import"./p-CZfYo5-1.js";import{S as a}from"./p-C8rAwXW9.js";import{c as d,J as c}from"./p-Dc10zfEZ.js";import{c as n,F as r}from"./p-DVnVdicA.js";import{k as o,l as f,m as h,n as l,q as p,y as m}from"./p-JOSiCHl7.js";import{ai as b}from"./p-C71Mxtso.js";import{H as u}from"./p-CGCMYhyV.js";import"./p-CJdXAC5R.js";import"./p-Yj41tobi.js";import"./p-CBs671Ol.js";import"./p-D3BIZZrc.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-BhrFjjAs.js";import"./p-DX1Drndq.js";import"./p-CLHwhyvu.js";import"./p-DddGO-XR.js";import"./p-7MWRbTXI.js";import"./p-CFpYbRwn.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";const y=t=>{const{isReady:i}=t;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(a,{height:"18px",width:"120px"}),e(a,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(a,{height:"18px",width:"110px"}),e(a,{height:"36px"}))))},g=class{constructor(e){t(this,e),this.iframeOrigin="https://components.justifi.ai",this.isReady=!1}componentWillLoad(){d(),this.analytics=new c(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return e&&t}async tokenize({clientId:e,paymentMethodMetadata:t,account:i}){return this.accountNumberIframeElement.tokenize(e,t,i)}render(){return e(s,{key:"e0a71dff66a2786c0f182595758c2fc7a36c940e"},e(y,{key:"b8e530e282ff062f53e196782c49855aed5084d3",isReady:this.isReady}),e("hidden-input",{key:"9b877adccc33cfa1151c6fcc0a847fddd7459875"}),e("div",{key:"6fc462b4aea6d7a3d469eda6c077c09202ac5066",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"bad1c793767232d22139f06e91c63fecb75d5e6b",class:"row mb-3"},e("iframe-input",{key:"2e015f0d5e526f309d63b122f0ea900224b0eb91",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),e("div",{key:"7f2c7e8ca7675c3f936702f605a26f4698addf65",class:"row"},e("iframe-input",{key:"21eb81b7e69f3e1b376b38e7d533992d977cc2c7",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},j=class{constructor(e){t(this,e),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new r((e=>{const t=n({name:m.required("Enter full name"),address_line1:p.required("Enter street address"),address_line2:l.nullable(),address_city:h.required("Enter city"),address_state:f.required("Select state"),address_postal_code:o.required("Enter postal code")}),i=n({name:m.nullable(),address_line1:p.nullable(),address_line2:l.nullable(),address_city:h.nullable(),address_state:f.nullable(),address_postal_code:o.required("Enter postal code")});return e?i:t})(this.isPostalOnlyMode))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}get isPostalOnlyMode(){return"card"===this.paymentMethodType&&this.hideCardBillingForm}get hideAllBillingFields(){return"bankAccount"===this.paymentMethodType&&this.hideBankAccountBillingForm}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){return e("div",{key:"e1834cb4638e0b5ea99c55e7a2f73542d2e5ea8d",part:b,class:"mt-4",hidden:this.hideAllBillingFields},!this.isPostalOnlyMode&&!this.hideAllBillingFields&&e(u,{key:"9936d16177d2c83219872c44b9ca91c264ae7052",text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),this.legend&&e("legend",{key:"c467223d7571122ea5c17885eed658c6cd6faf36"},this.legend),e(this.isPostalOnlyMode?"justifi-postal-code-form":"justifi-billing-information-form",null))}},v=t=>{const{isReady:i}=t;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"mb-3"},e(a,{height:"18px",width:"100px"}),e(a,{height:"36px"})),e("div",{class:"row"},e("div",{class:"col-4 align-content-end"},e(a,{height:"18px",width:"80px"}),e(a,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(a,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(a,{height:"18px",width:"30px"}),e(a,{height:"36px"}))))},k=class{constructor(e){t(this,e),this.iframeOrigin="https://components.justifi.ai",this.isReady=!1}componentWillLoad(){d(),this.analytics=new c(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.cardNumberIframeElement.validate(),t=await this.expirationMonthIframeElement.validate(),i=await this.expirationYearIframeElement.validate(),s=await this.cvvIframeElement.validate();return e&&t&&i&&s}async tokenize({clientId:e,paymentMethodMetadata:t,account:i}){return this.cardNumberIframeElement.tokenize(e,t,i)}render(){return e(s,{key:"44aa8e7da60f3dc8408e53f1ca4bf1ec98e838be"},e(v,{key:"eaea67379e10386d215284de04cd140ac0af0274",isReady:this.isReady}),e("hidden-input",{key:"6bdd3a8aef52e4d2bb7e5a7855578af5e491d04f"}),e("div",{key:"8e271c01ecd6c178f44f9cd9d331d6fc6240bce4",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"568ac8e93eac648b43d047b2ba149230f7bd2e2f",class:"mb-3"},e("iframe-input",{key:"5dde288003664ba6fb768a9e5837e4069e749ae5",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),e("div",{key:"57d7153ff9f21fbbfe2fbf41d664fbbc05fd72db",class:"row"},e("div",{key:"a6f2dcd5a98428f2af8773c7ebf76ea3c232a2a9",class:"col-4 align-content-end"},e("iframe-input",{key:"ac7ef13f9c9e788a065f6fe3485f8aeb20a3f6e8",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),e("div",{key:"36c7531f0f7f4a5c98eb36f1c3c395d392567041",class:"col-4 align-content-end"},e("iframe-input",{key:"2c04a8aa66b73e1e485dd124b27ebf8d9da043d8",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),e("div",{key:"e413f4a9232c6c8f21fd9738d6b641d2ff9c547f",class:"col-4 align-content-end"},e("iframe-input",{key:"bf1204c99ec33e349fe07a741a4ba80d20def1f8",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}},w=class{constructor(e){t(this,e),this.checkboxChanged=i(this,"checkboxChanged"),this.isChecked=!1}handleCheckboxChange(e,t){this.isChecked=t,this.checkboxChanged.emit(this.isChecked)}render(){return e("div",{key:"b196a8d34fb4afe1293f4ff9f6eea8bb3ed4c1a6",class:"mt-4 form-check"},e("form-control-checkbox",{key:"1f35cb80578373e1f77f2a95f08310f0830e1c90",label:"Save new payment method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange.bind(this)}))}};export{g as justifi_bank_account_form,j as justifi_billing_form,k as justifi_card_form,w as justifi_save_new_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,H as r}from"./p-Bta_r52Z.js";import{r as a}from"./p-C71Mxtso.js";const s={bankAccount:"New bank account",card:"New credit or debit card"},o=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.saveNewPaymentMethodChecked=!1,this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}handleCheckboxChanged(t){this.saveNewPaymentMethodChecked=t.detail}async fillBillingForm(t){this.billingFormRef.fill(t)}async resolvePaymentMethod(t){var i,e;if(this.paymentMethodFormRef&&this.billingFormRef)try{const{isValid:r,errors:a}=await this.validate();if(!r||!t.isValid)return{validationError:!0,error:{code:"validation_error",message:`${Object.values(a)[0]||"Validation error"}`,decline_code:void 0}};const s=await this.tokenize();if(s.error)return{error:s.error};{const t=s.data;return{token:(null===(i=t.card)||void 0===i?void 0:i.token)||(null===(e=t.bank_account)||void 0===e?void 0:e.token),data:t}}}catch(t){return{error:t}}}async validate(){const t=await this.billingFormRef.validate(),i=await this.paymentMethodFormRef.validate();return{isValid:t.isValid&&i.isValid,errors:Object.assign(Object.assign({},t.errors),i.errors)}}async tokenize(){try{const t=await this.billingFormRef.getValues();let i;i=this.saveNewPaymentMethodChecked?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupId}):Object.assign({},t);const e=this.authToken;return await this.paymentMethodFormRef.tokenize(e,i,this.accountId)}catch(t){return t}}showNewPaymentMethodForm(){var t;const i=null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id;return e("div",{class:"mt-4 pb-4"},e("hidden-input",null),e("card"===i?"justifi-card-form":"justifi-bank-account-form",null),e("justifi-billing-form",{hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:i}),e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupId}))}get hiddenRadioInput(){return!this.showAch||!this.showCard}render(){var t,i;return e(r,{key:"86a50eecba10706b674e3517c7b1e5ba6674035a",class:"payment-method"},e("div",{key:"54ec6ea1d0eb1f1bcbb0b5c145858a270dc7ccf4",class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick,hidden:this.hiddenRadioInput},e("form-control-radio",{key:"348ab53888c29f3b942f2698dcb72450d73ed90d",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:s[null===(i=this.paymentMethodOption)||void 0===i?void 0:i.id]})),this.isSelected?this.showNewPaymentMethodForm():null)}};export{o as justifi_new_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as a,a as i}from"./p-Bta_r52Z.js";import{F as r}from"./p-DT6jDcoi.js";import{i as o,b as l,a as h,U as n,c,l as f}from"./p-C71Mxtso.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return s(a,{key:"0e05130899c474fe1cae7da51a3e1c9d284c8188",exportparts:"label,input,input-invalid"},s("div",{key:"81aac7c81010283a17ae6f95958260739ba8f521",class:"form-group d-flex flex-column"},s("div",{key:"50be24013b6a998714524a974e4a4118d8fe9b1e",class:"d-flex align-items-start gap-2"},s("label",{key:"8094b17e38012c757647fe050a3d2d4680db31d9",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"e2e1307070cfd4ebdf99396eb974e514b0e86de2",helpText:this.helpText})),s("input",{key:"784a515fbd7dd9a33e6631e1b98e599aa58c7e8c",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),s(r,{key:"e657fffc7079bc83ebbcf4468026401221ef6796",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?n:c}render(){return s(a,{key:"9e8752d26a1b81e14a2666b1eeca224355ac7bc6"},s("div",{key:"1db9d60d316f7d17a0e08fa6859e1b05ad0f325d",class:"form-group d-flex flex-column"},s("label",{key:"7d955df10cd4fa6324911ee015e87881562aa528",part:f,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"3f12740611c14799405a2e070f74022cbb17edfa",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",disabled:this.disabled}),s("form-control-help-text",{key:"30a25e257d36cf691e19dcb3cb14e1fbdab66c69",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"f74b90c9621eb993d62b8417bb14c31a62153843",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
|