@justifi/webcomponents 5.7.1 → 5.7.3-rc-01
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/{check-pkg-version-BqC8BOhm.js → Analytics-DYN4hp2b.js} +27 -26
- package/dist/cjs/{Api-C8nf_gS9.js → Api-BTdkb3Zh.js} +2 -2
- package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
- package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-BsYZoJ0a.js} +2 -4
- package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
- package/dist/cjs/Document-rXGBUaOh.js +58 -0
- package/dist/cjs/{Document-CL5Zc72Q.js → Payment-D5UynU2f.js} +1 -57
- package/dist/cjs/{Refund-CYxocU06.js → Refund-BDFOEJv_.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -15
- package/dist/cjs/{badge-BxoJOyTJ.js → badge-sO_Hcamo.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +15 -14
- package/dist/cjs/{bank-account-form_9.cjs.entry.js → bank-account-form_7.cjs.entry.js} +51 -210
- package/dist/cjs/billing-form-schema-oZ4GROWP.js +26 -0
- package/dist/cjs/{business-additional-questions-schema-DR8vt11M.js → business-additional-questions-schema-CHOaeZot.js} +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +5 -6
- package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
- package/dist/cjs/{business-identity-schema-BYaCsboD.js → business-identity-schema-DmpEndsx.js} +10 -10
- package/dist/cjs/{business.service-C2rg_zSw.js → business.service-ev-3rHag.js} +7 -6
- package/dist/cjs/{button-BPFSRx4d.js → button-CCZd8WSY.js} +1 -1
- package/dist/cjs/checkout-actions-CRbQgLn0.js +61 -0
- package/dist/cjs/{checkout.service-CyvIIMeq.js → checkout.service-D4hTYr1i.js} +7 -6
- package/dist/cjs/checkout.store-osqdxFMq.js +29 -0
- package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -15
- package/dist/cjs/{checkouts-list-params-state-BvG5Ysrg.js → checkouts-list-params-state-fVsfZZ5G.js} +1 -1
- package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-C1Jv_A7m.js} +3 -3
- package/dist/cjs/{config-state-D7p-XunE.js → config-state-BTfJl-LU.js} +1 -1
- package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
- package/dist/cjs/{dispute.service-CKPR1vFS.js → dispute.service-Dru9NStj.js} +7 -6
- package/dist/cjs/{index.esm-CVuJLXJZ.js → form-CWW8IM-X.js} +10509 -10509
- package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
- 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 +6 -6
- 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/{get-business-DHg5rpse.js → get-business-BiEc-jdH.js} +3 -3
- package/dist/cjs/{get-payment-details-C9HqIv-M.js → get-payment-details-AOibpML7.js} +10 -9
- package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
- package/dist/cjs/{get-subaccounts-BNpIanJ9.js → get-subaccounts-Dw7CbPDi.js} +10 -9
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- 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 +25 -24
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -22
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +43 -43
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +85 -0
- package/dist/cjs/justifi-billing-information-form.cjs.entry.js +51 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +26 -20
- package/dist/cjs/justifi-business-form.cjs.entry.js +29 -28
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +93 -0
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +21 -0
- package/dist/cjs/justifi-checkout.cjs.entry.js +31 -74
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +13 -12
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +22 -21
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +18 -17
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +23 -22
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +17 -16
- package/dist/cjs/justifi-modular-checkout.cjs.entry.js +205 -0
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +22 -21
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +20 -19
- package/dist/cjs/justifi-payment-details.cjs.entry.js +19 -18
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +18 -17
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +21 -20
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payments-list.cjs.entry.js +23 -22
- package/dist/cjs/justifi-payout-details.cjs.entry.js +19 -18
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +21 -20
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +24 -23
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +50 -0
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +28 -27
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +31 -0
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +24 -25
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +80 -0
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +14 -13
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +20 -19
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +13 -12
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +22 -21
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +26 -19
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/{package-Biee4Hdo.js → package-DF9mLjoQ.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +15 -15
- 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-C996aLGw.js → payment.service-rsnscZu7.js} +7 -6
- package/dist/cjs/payments-list-core.cjs.entry.js +17 -16
- 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-BkRhDePE.js → payments-table-BM3AoAJf.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +11 -11
- package/dist/cjs/{payout.service-BwKgEbDo.js → payout.service-BnmI3X4n.js} +7 -6
- package/dist/cjs/payouts-list-core.cjs.entry.js +17 -16
- 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-DJMz3bVh.js → payouts-table-1HL4kk9B.js} +3 -3
- package/dist/cjs/{schema-validations-Bhz09M42.js → schema-validations-C0BNwMBi.js} +36 -37
- 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 +16 -15
- 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-CxY1ykZ7.js → terminal-orders-table-OxMHSAJ1.js} +10 -9
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-D7dxg9ZQ.js → terminal.service--PPaq5xS.js} +7 -6
- package/dist/cjs/terminals-list-core.cjs.entry.js +16 -15
- package/dist/cjs/terminals-list-params-state-fVsfZZ5G.js +22 -0
- package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-yRGsrfBw.js} +3 -3
- 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/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
- package/dist/cjs/webcomponents.cjs.js +4 -5
- package/dist/collection/api/BillingInformation.js +1 -0
- package/dist/collection/api/Business.js +3 -1
- 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 +10 -3
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
- package/dist/collection/components/business-details/business-details-core.js +1 -2
- package/dist/collection/components/business-details/business-details.js +10 -3
- package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
- package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
- package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +11 -2
- package/dist/collection/components/checkout/new-payment-method.js +17 -6
- package/dist/collection/components/checkout/payment-method-options.js +6 -37
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -12
- 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 +13 -7
- 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/details/details.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/collection/utils/utils.js +3 -0
- package/dist/docs.json +1290 -472
- package/dist/esm/{check-pkg-version-DxnKX9GQ.js → Analytics-DR277kvb.js} +28 -27
- package/dist/esm/{Api-KYhsw8Nv.js → Api-CqimcNgb.js} +2 -2
- package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
- package/dist/esm/{Checkout-Dfpql997.js → Checkout-CV6qgU0r.js} +2 -4
- 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-Ct-uNz2r.js +55 -0
- package/dist/esm/{Document-cNXrKmGy.js → Payment-BEvE6jAC.js} +3 -57
- package/dist/esm/{Refund-2YJqP9qX.js → Refund-CwUn_GFj.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +15 -16
- package/dist/esm/{badge-Du9GTXoB.js → badge-D_Q0kAPD.js} +2 -2
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +17 -16
- package/dist/esm/{bank-account-form_9.entry.js → bank-account-form_7.entry.js} +43 -200
- package/dist/esm/billing-form-schema-PFvYpvy4.js +24 -0
- package/dist/esm/{business-additional-questions-schema-GpN_koGK.js → business-additional-questions-schema-0lssJqN7.js} +2 -2
- package/dist/esm/business-details-core.entry.js +6 -7
- package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
- package/dist/esm/{business-identity-schema-BjuQ6ajL.js → business-identity-schema-Bel1K5mu.js} +2 -2
- package/dist/esm/{business.service-ClD_YDeT.js → business.service-BM8hLxHS.js} +8 -7
- package/dist/esm/{button-CjH5C0pG.js → button-BVAxQPpP.js} +2 -2
- package/dist/esm/checkout-actions-UQ6g1s7I.js +58 -0
- package/dist/esm/{checkout.service-DfzkmIe4.js → checkout.service-CuCgG9hv.js} +8 -7
- package/dist/esm/checkout.store-DQrlfeus.js +27 -0
- package/dist/esm/checkouts-list-core.entry.js +18 -17
- package/dist/esm/{checkouts-list-params-state-Bn7pL-8x.js → checkouts-list-params-state-DhPyCV-V.js} +1 -1
- package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-Cc6U-0md.js} +4 -4
- package/dist/esm/{config-state-CkKrqnpZ.js → config-state-BjXhUj2q.js} +1 -1
- package/dist/esm/custom-popper_4.entry.js +9 -9
- package/dist/esm/{dispute.service-BTOWqnmk.js → dispute.service-rB4Hq6ot.js} +8 -7
- package/dist/esm/{index.esm-BCNUj0Dx.js → form-BjGUIqxU.js} +10509 -10509
- package/dist/esm/form-alert_5.entry.js +4 -4
- 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-_SAT-ts2.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-Cjeu_VrV.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/{get-business-CIKToQur.js → get-business-BSRtbTh7.js} +3 -3
- package/dist/esm/{get-payment-details-D-prcfRc.js → get-payment-details-DtkGDTwo.js} +10 -9
- package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
- package/dist/esm/{get-subaccounts-B0uEyOp_.js → get-subaccounts-C-ENQBmY.js} +11 -10
- package/dist/esm/gross-payment-chart-core.entry.js +6 -6
- package/dist/esm/{header-1-D2gZb3iT.js → header-1-5FIT-wD7.js} +2 -2
- package/dist/esm/{header-3-DAg8Vh4B.js → header-3-Ce9WLWBm.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-BcwZy_5w.js} +3 -3
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +19 -18
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +20 -19
- package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
- package/dist/esm/justifi-bank-account-form.entry.js +83 -0
- package/dist/esm/justifi-billing-information-form.entry.js +49 -0
- package/dist/esm/justifi-business-details.entry.js +26 -20
- package/dist/esm/justifi-business-form.entry.js +27 -26
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-card-form.entry.js +91 -0
- package/dist/esm/justifi-checkout-core.entry.js +11 -11
- package/dist/esm/justifi-checkout-summary.entry.js +19 -0
- package/dist/esm/justifi-checkout.entry.js +28 -71
- package/dist/esm/justifi-checkouts-list-filters.entry.js +15 -14
- package/dist/esm/justifi-checkouts-list.entry.js +22 -21
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +3 -3
- package/dist/esm/justifi-dispute-management.entry.js +17 -16
- package/dist/esm/justifi-dispute-notification_3.entry.js +23 -22
- package/dist/esm/justifi-gross-payment-chart.entry.js +17 -16
- package/dist/esm/justifi-modular-checkout.entry.js +203 -0
- package/dist/esm/justifi-order-terminals.entry.js +22 -21
- package/dist/esm/justifi-owner-form_3.entry.js +21 -20
- package/dist/esm/justifi-payment-details.entry.js +19 -18
- package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +17 -16
- package/dist/esm/justifi-payment-transactions-list.entry.js +21 -20
- package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payments-list.entry.js +22 -21
- package/dist/esm/justifi-payout-details.entry.js +19 -18
- package/dist/esm/justifi-payout-transactions-list.entry.js +21 -20
- package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-payouts-list.entry.js +24 -23
- package/dist/esm/justifi-postal-code-form.entry.js +48 -0
- package/dist/esm/justifi-refund-payment.entry.js +22 -21
- package/dist/esm/justifi-saved-payment-methods.entry.js +29 -0
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +7 -7
- package/dist/esm/justifi-season-interruption-insurance.entry.js +23 -24
- package/dist/esm/justifi-sezzle-payment-method.entry.js +78 -0
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +16 -15
- package/dist/esm/justifi-terminal-orders-list.entry.js +20 -19
- package/dist/esm/justifi-terminals-list-filters.entry.js +15 -14
- package/dist/esm/justifi-terminals-list.entry.js +22 -21
- package/dist/esm/justifi-tokenize-payment-method.entry.js +26 -19
- package/dist/esm/loader.js +3 -4
- package/dist/esm/{package-DPiTQ9dr.js → package-CyXXks-Q.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +2 -2
- package/dist/esm/{parts-BrLVc_85.js → parts-_6eQgwfE.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-CgwLo1_s.js → payment.service-DoUv1QsX.js} +8 -7
- package/dist/esm/payments-list-core.entry.js +19 -18
- 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-BeL2gi3P.js} +2 -2
- package/dist/esm/{payments-table-BBf5fV74.js → payments-table-MrDAlH2o.js} +4 -4
- package/dist/esm/payout-details-core.entry.js +12 -12
- package/dist/esm/{payout.service-DYFCNfLa.js → payout.service-B_Fm08zQ.js} +8 -7
- package/dist/esm/payouts-list-core.entry.js +19 -18
- 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-BxbhUjA3.js} +2 -2
- package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-HoX3UYIj.js} +4 -4
- package/dist/esm/{schema-validations-D9YNVLiI.js → schema-validations-DYV7urvw.js} +8 -9
- package/dist/esm/{skeleton-Dlpibtr0.js → skeleton-CPNYhX-V.js} +2 -2
- package/dist/esm/{spinner-onCBxbdo.js → spinner-Cl-6YJPf.js} +2 -2
- package/dist/esm/{styled-host-C7vaWLiB.js → styled-host-BSX_LSdk.js} +1 -1
- package/dist/esm/{table-p4dOlFPi.js → table-RCk8zh4L.js} +3 -3
- package/dist/esm/table-filters-menu.entry.js +4 -4
- package/dist/esm/terminal-orders-list-core.entry.js +18 -17
- 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-BopP465z.js → terminal-orders-table-DxHLNkx_.js} +12 -11
- package/dist/esm/terminal-quantity-selector.entry.js +3 -3
- package/dist/esm/{terminal.service-f-whs_d4.js → terminal.service-2VkdfNas.js} +8 -7
- package/dist/esm/terminals-list-core.entry.js +18 -17
- package/dist/esm/terminals-list-params-state-DhPyCV-V.js +16 -0
- package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-v-LOevYA.js} +4 -4
- package/dist/esm/{utils-BpP_VJGf.js → utils-1WrbuHVR.js} +2 -2
- package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
- package/dist/esm/{utils-BWcTxbSg.js → utils-BjLkBMLe.js} +4 -1
- package/dist/esm/webcomponents.js +4 -5
- package/dist/module/{check-pkg-version.js → Analytics.js} +21 -21
- package/dist/module/Business.js +3 -1
- package/dist/module/Checkout.js +3 -3
- package/dist/module/additional-questions-details2.js +3 -4
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/billing-form-schema.js +24 -0
- package/dist/module/billing-form.js +6 -5
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-details-core2.js +11 -7
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +2 -2
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout-actions.js +58 -0
- package/dist/module/checkout-core.js +32 -38
- package/dist/module/checkout.store.js +27 -0
- package/dist/module/checkouts-list-core2.js +2 -2
- package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
- package/dist/module/core-info-details.js +6 -0
- package/dist/module/core-info-details2.js +34 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/details.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-bank-account-form.d.ts +11 -0
- package/dist/module/justifi-bank-account-form.js +103 -0
- package/dist/module/justifi-billing-information-form.d.ts +11 -0
- package/dist/module/justifi-billing-information-form.js +94 -0
- package/dist/module/justifi-business-details.js +21 -10
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-card-form.d.ts +11 -0
- package/dist/module/justifi-card-form.js +111 -0
- package/dist/module/justifi-checkout-summary.d.ts +11 -0
- package/dist/module/justifi-checkout-summary.js +37 -0
- package/dist/module/justifi-checkout.js +48 -99
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-modular-checkout.d.ts +11 -0
- package/dist/module/justifi-modular-checkout.js +219 -0
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-postal-code-form.d.ts +11 -0
- package/dist/module/justifi-postal-code-form.js +86 -0
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
- package/dist/module/justifi-saved-payment-methods.js +58 -0
- package/dist/module/justifi-season-interruption-insurance.js +9 -11
- package/dist/module/justifi-sezzle-payment-method.js +108 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/justifi-tokenize-payment-method.js +42 -42
- package/dist/module/legal-address-details2.js +3 -3
- package/dist/module/new-payment-method.js +15 -4
- 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 +35 -53
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/representative-details2.js +3 -3
- package/dist/module/saved-payment-method.js +2 -22
- package/dist/module/schema-validations.js +5 -6
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/module/utils2.js +3 -0
- 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-details/business-details.d.ts +1 -0
- package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
- package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
- package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
- 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 +3 -2
- package/dist/types/components.d.ts +449 -42
- 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/types/utils/utils.d.ts +1 -1
- package/dist/webcomponents/p-00900e52.entry.js +1 -0
- package/dist/webcomponents/p-025ae692.entry.js +1 -0
- package/dist/webcomponents/p-02e26641.entry.js +1 -0
- package/dist/webcomponents/p-04c91ec1.entry.js +1 -0
- package/dist/webcomponents/{p-bf3e8295.entry.js → p-0c13f2da.entry.js} +1 -1
- package/dist/webcomponents/p-0d5e93b3.entry.js +1 -0
- package/dist/webcomponents/{p-90c24cda.entry.js → p-15c63931.entry.js} +1 -1
- package/dist/webcomponents/p-19b5f93a.entry.js +1 -0
- package/dist/webcomponents/p-1ac365b4.entry.js +1 -0
- package/dist/webcomponents/{p-b40108c0.entry.js → p-1d59c747.entry.js} +1 -1
- package/dist/webcomponents/p-1d64d86b.entry.js +1 -0
- package/dist/webcomponents/p-20d7db42.entry.js +1 -0
- package/dist/webcomponents/p-25b310f0.entry.js +1 -0
- package/dist/webcomponents/p-271b131d.entry.js +1 -0
- package/dist/webcomponents/p-2882b4e9.entry.js +1 -0
- package/dist/webcomponents/p-2a08ba01.entry.js +1 -0
- package/dist/webcomponents/p-2f027626.entry.js +1 -0
- package/dist/webcomponents/p-2fa36c0e.entry.js +1 -0
- package/dist/webcomponents/p-379584fb.entry.js +1 -0
- package/dist/webcomponents/p-39f31e23.entry.js +1 -0
- package/dist/webcomponents/p-3b6888c5.entry.js +1 -0
- package/dist/webcomponents/p-3d62f9a5.entry.js +1 -0
- package/dist/webcomponents/p-3edd5ebd.entry.js +1 -0
- package/dist/webcomponents/p-4232760b.entry.js +1 -0
- package/dist/webcomponents/p-4be4f7b4.entry.js +1 -0
- package/dist/webcomponents/p-531738ae.entry.js +1 -0
- package/dist/webcomponents/p-54019e68.entry.js +1 -0
- package/dist/webcomponents/{p-3e94cf62.entry.js → p-584ba20d.entry.js} +1 -1
- package/dist/webcomponents/p-5bc6f1e6.entry.js +20 -0
- package/dist/webcomponents/p-5bfbb0f8.entry.js +1 -0
- package/dist/webcomponents/{p-19b9c96a.entry.js → p-5da3ba38.entry.js} +1 -1
- package/dist/webcomponents/{p-bb50155f.entry.js → p-5ea3cfca.entry.js} +1 -1
- package/dist/webcomponents/p-5f9dbaff.entry.js +1 -0
- package/dist/webcomponents/p-6b229318.entry.js +1 -0
- package/dist/webcomponents/p-6fc1ace5.entry.js +1 -0
- package/dist/webcomponents/{p-7733b67b.entry.js → p-712220f9.entry.js} +1 -1
- package/dist/webcomponents/p-716d41f2.entry.js +1 -0
- package/dist/webcomponents/p-7253f1ea.entry.js +1 -0
- package/dist/webcomponents/{p-BH0Xfn-F.js → p-7MWRbTXI.js} +1 -1
- package/dist/webcomponents/p-80b662de.entry.js +1 -0
- package/dist/webcomponents/p-82164a5e.entry.js +1 -0
- package/dist/webcomponents/p-8532c68c.entry.js +1 -0
- package/dist/webcomponents/p-8590c5df.entry.js +1 -0
- package/dist/webcomponents/p-8e555a6e.entry.js +1 -0
- package/dist/webcomponents/p-96f89c69.entry.js +1 -0
- package/dist/webcomponents/p-98a39544.entry.js +1 -0
- package/dist/webcomponents/{p-CpTwq2jw.js → p-9REosSLu.js} +1 -1
- package/dist/webcomponents/{p-b2192f8b.entry.js → p-9a17fd5a.entry.js} +1 -1
- package/dist/webcomponents/p-9a9f9c57.entry.js +1 -0
- package/dist/webcomponents/{p-D5XSsLKb.js → p-B4MIwTdb.js} +1 -1
- package/dist/webcomponents/{p-n2YROtpe.js → p-B7VsiIW-.js} +1 -1
- package/dist/webcomponents/p-B8Ovjy6S.js +1 -0
- package/dist/webcomponents/p-BE5Nvydk.js +1 -0
- package/dist/webcomponents/{p-DuYlA4lj.js → p-BEDtXmpq.js} +1 -1
- package/dist/webcomponents/p-BGHVK-vQ.js +1 -0
- package/dist/webcomponents/{p-BzPi8Ea_.js → p-BPCw4WEY.js} +1 -1
- package/dist/webcomponents/p-BSUCBhkJ.js +1 -0
- package/dist/webcomponents/{p-DvHZ2jYI.js → p-BhLPwu1L.js} +1 -1
- package/dist/webcomponents/p-BhrFjjAs.js +1 -0
- package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
- package/dist/webcomponents/p-BoGb-Wsw.js +1 -0
- package/dist/webcomponents/p-Bond4qGX.js +1 -0
- package/dist/webcomponents/p-BpEw7AJl.js +1 -0
- package/dist/webcomponents/p-Bta_r52Z.js +2 -0
- package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
- package/dist/webcomponents/p-C-WgCIei.js +1 -0
- package/dist/webcomponents/p-CBs671Ol.js +1 -0
- package/dist/webcomponents/p-CCpqJxzB.js +1 -0
- package/dist/webcomponents/p-CDTncSrX.js +1 -0
- package/dist/webcomponents/p-CLpgfEbx.js +1 -0
- package/dist/webcomponents/p-CRYPNa2o.js +1 -0
- package/dist/webcomponents/p-CbGBEkk3.js +1 -0
- package/dist/webcomponents/p-CeNlJX4-.js +1 -0
- package/dist/webcomponents/p-CnnRWu7z.js +1 -0
- package/dist/webcomponents/{p-C0WFYqwq.js → p-CqVelcDt.js} +1 -1
- package/dist/webcomponents/p-Ct-uNz2r.js +1 -0
- package/dist/webcomponents/{p-82kiZkHt.js → p-Ctw40vkk.js} +1 -1
- package/dist/webcomponents/p-CvChBLtI.js +1 -0
- package/dist/webcomponents/{p-D0ptm6-3.js → p-CwHYDF33.js} +1 -1
- package/dist/webcomponents/p-CyXXks-Q.js +1 -0
- package/dist/webcomponents/p-Czro_9VO.js +1 -0
- package/dist/webcomponents/{p-Cd06j2SL.js → p-D3BIZZrc.js} +1 -1
- package/dist/webcomponents/{p-ByRPlUBS.js → p-D3SYNGyb.js} +1 -1
- package/dist/webcomponents/{p-BjB_yKBJ.js → p-D7js9xfx.js} +1 -1
- package/dist/webcomponents/p-DKClunJd.js +1 -0
- package/dist/webcomponents/p-DOB09NZD.js +1 -0
- package/dist/webcomponents/p-DUdzWNqB.js +1 -0
- package/dist/webcomponents/p-D_FOQEGU.js +1 -0
- package/dist/webcomponents/p-DaS3t0DL.js +1 -0
- package/dist/webcomponents/p-DddGO-XR.js +1 -0
- package/dist/webcomponents/p-Dge4w7_c.js +1 -0
- package/dist/webcomponents/p-DkWBoLsd.js +1 -0
- package/dist/webcomponents/p-DknV-QPT.js +1 -0
- package/dist/webcomponents/p-DnX5CZFd.js +1 -0
- package/dist/webcomponents/p-DuiQuWNq.js +1 -0
- package/dist/webcomponents/p-Dw6NWKHn.js +1 -0
- package/dist/webcomponents/p-DzPrenCi.js +1 -0
- package/dist/webcomponents/p-NqdaxjDT.js +1 -0
- package/dist/webcomponents/p-YDuIVoos.js +1 -0
- package/dist/webcomponents/{p-OSmuQKbK.js → p-Yj41tobi.js} +1 -1
- package/dist/webcomponents/{p-BrLVc_85.js → p-_6eQgwfE.js} +1 -1
- package/dist/webcomponents/p-a2db11b5.entry.js +1 -0
- package/dist/webcomponents/p-a31913e3.entry.js +1 -0
- package/dist/webcomponents/p-a4d457e9.entry.js +1 -0
- package/dist/webcomponents/{p-24792e8e.entry.js → p-b3e6d27c.entry.js} +1 -1
- package/dist/webcomponents/p-b8ee41c1.entry.js +1 -0
- package/dist/webcomponents/p-bde749ac.entry.js +1 -0
- package/dist/webcomponents/{p-82515f70.entry.js → p-be51c7c5.entry.js} +1 -1
- package/dist/webcomponents/p-bf16b11c.entry.js +1 -0
- package/dist/webcomponents/p-ce291c6a.entry.js +1 -0
- package/dist/webcomponents/p-d82b509a.entry.js +1 -0
- package/dist/webcomponents/p-d9b06582.entry.js +1 -0
- package/dist/webcomponents/p-dbc02ba8.entry.js +1 -0
- package/dist/webcomponents/p-dcad0df5.entry.js +1 -0
- package/dist/webcomponents/{p-59abf1de.entry.js → p-df2ad580.entry.js} +1 -1
- package/dist/webcomponents/p-e03630ec.entry.js +1 -0
- package/dist/webcomponents/p-e07sVz4Z.js +1 -0
- package/dist/webcomponents/p-e563df65.entry.js +1 -0
- package/dist/webcomponents/p-e8294f7e.entry.js +1 -0
- package/dist/webcomponents/p-ea664ada.entry.js +1 -0
- package/dist/webcomponents/p-ec9bb3f6.entry.js +1 -0
- package/dist/webcomponents/p-ecf6a315.entry.js +1 -0
- package/dist/webcomponents/p-ef9dcfe1.entry.js +1 -0
- package/dist/webcomponents/p-f71b1ff0.entry.js +1 -0
- package/dist/webcomponents/{p-99b080d9.entry.js → p-f7e24a51.entry.js} +1 -1
- package/dist/webcomponents/{p-5e467788.entry.js → p-ff223825.entry.js} +1 -1
- package/dist/webcomponents/p-hDoH7hHP.js +1 -0
- package/dist/webcomponents/p-pGzabKc7.js +1 -0
- package/dist/webcomponents/p-uLUlLQpP.js +1 -0
- package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
- 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/iframe-input-styles-state-D9vhHzZQ.js +0 -26
- package/dist/cjs/terminals-list-params-state-BvG5Ysrg.js +0 -22
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
- package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- 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/generic-info-details.js +0 -6
- package/dist/module/generic-info-details2.js +0 -34
- package/dist/module/sezzle-payment-method.js +0 -104
- package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
- package/dist/webcomponents/p-0ab2f675.entry.js +0 -1
- package/dist/webcomponents/p-0b57ecc3.entry.js +0 -1
- package/dist/webcomponents/p-0deb6a38.entry.js +0 -1
- package/dist/webcomponents/p-16adfe77.entry.js +0 -1
- package/dist/webcomponents/p-1a85f26f.entry.js +0 -1
- package/dist/webcomponents/p-1b22572d.entry.js +0 -1
- package/dist/webcomponents/p-22a0b397.entry.js +0 -1
- package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
- package/dist/webcomponents/p-25ea4450.entry.js +0 -1
- package/dist/webcomponents/p-2adda453.entry.js +0 -1
- package/dist/webcomponents/p-2b8ac00a.entry.js +0 -1
- package/dist/webcomponents/p-2dbc4b19.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-3abc8eab.entry.js +0 -1
- package/dist/webcomponents/p-3babed12.entry.js +0 -1
- package/dist/webcomponents/p-40541e0c.entry.js +0 -1
- package/dist/webcomponents/p-4194214c.entry.js +0 -1
- package/dist/webcomponents/p-43d6bbed.entry.js +0 -1
- package/dist/webcomponents/p-44d8c2b1.entry.js +0 -1
- package/dist/webcomponents/p-4749e0d0.entry.js +0 -1
- package/dist/webcomponents/p-4ee0cd96.entry.js +0 -1
- package/dist/webcomponents/p-54281359.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-799000c1.entry.js +0 -1
- package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
- package/dist/webcomponents/p-83154291.entry.js +0 -1
- package/dist/webcomponents/p-84d27581.entry.js +0 -1
- package/dist/webcomponents/p-9105f700.entry.js +0 -1
- package/dist/webcomponents/p-916ea4fc.entry.js +0 -1
- package/dist/webcomponents/p-935bbc62.entry.js +0 -1
- package/dist/webcomponents/p-935fa555.entry.js +0 -1
- package/dist/webcomponents/p-947239a6.entry.js +0 -1
- package/dist/webcomponents/p-B0cQ2RjH.js +0 -1
- package/dist/webcomponents/p-B190pN0v.js +0 -1
- package/dist/webcomponents/p-BM5lviat.js +0 -1
- package/dist/webcomponents/p-BWJ7zamv.js +0 -1
- package/dist/webcomponents/p-BiPRf6d2.js +0 -1
- package/dist/webcomponents/p-BmWpHZ-Z.js +0 -1
- package/dist/webcomponents/p-C0IqfGFc.js +0 -1
- package/dist/webcomponents/p-C0UUR9CN.js +0 -1
- package/dist/webcomponents/p-C5RuuShs.js +0 -1
- package/dist/webcomponents/p-CCGhF18e.js +0 -1
- package/dist/webcomponents/p-CQdeVKF8.js +0 -1
- package/dist/webcomponents/p-CffckWWF.js +0 -1
- package/dist/webcomponents/p-CgxzrbM_.js +0 -1
- package/dist/webcomponents/p-D4Mv5jCp.js +0 -1
- package/dist/webcomponents/p-D5Sh88BE.js +0 -1
- package/dist/webcomponents/p-D6FDxSyt.js +0 -2
- package/dist/webcomponents/p-DDEz7_ad.js +0 -1
- package/dist/webcomponents/p-DJzjeg3x.js +0 -1
- package/dist/webcomponents/p-DNt_pMGt.js +0 -1
- package/dist/webcomponents/p-DPiTQ9dr.js +0 -1
- package/dist/webcomponents/p-DQuL1Twl.js +0 -1
- package/dist/webcomponents/p-DVnVdicA.js +0 -1
- package/dist/webcomponents/p-DZfxGQ1I.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-DuBhW0xA.js +0 -1
- package/dist/webcomponents/p-M61ygz6l.js +0 -1
- package/dist/webcomponents/p-SdntD1xf.js +0 -1
- package/dist/webcomponents/p-U30-0DaA.js +0 -1
- package/dist/webcomponents/p-ZE1NEnP3.js +0 -1
- package/dist/webcomponents/p-a46730eb.entry.js +0 -1
- package/dist/webcomponents/p-a4dd3835.entry.js +0 -1
- package/dist/webcomponents/p-ad85bd0d.entry.js +0 -1
- package/dist/webcomponents/p-af2c38f7.entry.js +0 -1
- package/dist/webcomponents/p-afa54e39.entry.js +0 -1
- package/dist/webcomponents/p-cNABKY0P.js +0 -1
- package/dist/webcomponents/p-cab175e9.entry.js +0 -1
- package/dist/webcomponents/p-ceefc483.entry.js +0 -1
- package/dist/webcomponents/p-d-_oUZor.js +0 -1
- package/dist/webcomponents/p-d1331dbb.entry.js +0 -1
- package/dist/webcomponents/p-d2dc6f22.entry.js +0 -20
- package/dist/webcomponents/p-d9c70010.entry.js +0 -1
- package/dist/webcomponents/p-dd05cce1.entry.js +0 -1
- package/dist/webcomponents/p-e00aeb33.entry.js +0 -1
- package/dist/webcomponents/p-e1c5ee0a.entry.js +0 -1
- package/dist/webcomponents/p-ea8dd3e7.entry.js +0 -1
- package/dist/webcomponents/p-f389c2aa.entry.js +0 -1
- package/dist/webcomponents/p-f8b205f7.entry.js +0 -1
- package/dist/webcomponents/p-l3o3Ndc0.js +0 -1
- package/dist/webcomponents/p-o_73WSki.js +0 -1
- package/dist/webcomponents/p-um3YdOwW.js +0 -1
- package/dist/webcomponents/p-vb3fTJEZ.js +0 -1
- package/dist/webcomponents/p-wqUvt1PB.js +0 -1
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { formatCurrency } from "../../utils/utils";
|
|
3
|
-
import { radioListItem } from "../../styles/parts";
|
|
4
|
-
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
5
|
-
display: 'inline',
|
|
6
|
-
width: '80px',
|
|
7
|
-
marginLeft: '5px',
|
|
8
|
-
marginTop: '-5px',
|
|
9
|
-
} }));
|
|
10
|
-
export class SezzlePaymentMethod {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
13
|
-
e.preventDefault();
|
|
14
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
15
|
-
};
|
|
16
|
-
this.initializeSezzleCheckout = () => {
|
|
17
|
-
let resolveSezzlePromise;
|
|
18
|
-
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
19
|
-
const bnpl = this.bnpl;
|
|
20
|
-
const amount = +this.paymentAmount; // convert to number
|
|
21
|
-
const Checkout = window.Checkout;
|
|
22
|
-
const checkout = new Checkout({
|
|
23
|
-
mode: 'popup',
|
|
24
|
-
publicKey: bnpl.provider_client_id,
|
|
25
|
-
apiMode: bnpl.provider_mode,
|
|
26
|
-
apiVersion: bnpl.provider_api_version,
|
|
27
|
-
});
|
|
28
|
-
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
29
|
-
checkout.init({
|
|
30
|
-
onClick: function (event) {
|
|
31
|
-
event.preventDefault();
|
|
32
|
-
checkout.startCheckout({
|
|
33
|
-
checkout_url: bnpl.provider_checkout_url
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
37
|
-
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
38
|
-
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
39
|
-
});
|
|
40
|
-
this.sezzleCheckout = checkout;
|
|
41
|
-
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
componentDidRender() {
|
|
45
|
-
this.scriptRef.onload = () => {
|
|
46
|
-
this.sezzleButtonRef = document.createElement('button');
|
|
47
|
-
this.initializeSezzleCheckout();
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
51
|
-
if (!insuranceValidation.isValid) {
|
|
52
|
-
return { validationError: true };
|
|
53
|
-
}
|
|
54
|
-
this.sezzleButtonRef.click();
|
|
55
|
-
return this.sezzlePromise;
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
var _a, _b, _c;
|
|
59
|
-
return (h(Host, { key: '4ae50e7bbb15d0049d069edacd0d95ba7c13dbe5', class: "payment-method" }, h("script", { key: '42a0590d89626ba7a93852e421eb121626b48375', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '31a2a72650486c258267c6d4de3723f7afa5b063', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: 'eac1adbcd82fcb4f9c440c53c40ce34af6092991', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_c = this.installmentPlan) === null || _c === void 0 ? void 0 : _c.installments[0].amountInCents))))) }))));
|
|
60
|
-
}
|
|
61
|
-
static get is() { return "justifi-sezzle-payment-method"; }
|
|
62
|
-
static get properties() {
|
|
63
|
-
return {
|
|
64
|
-
"bnpl": {
|
|
65
|
-
"type": "any",
|
|
66
|
-
"attribute": "bnpl",
|
|
67
|
-
"mutable": false,
|
|
68
|
-
"complexType": {
|
|
69
|
-
"original": "any",
|
|
70
|
-
"resolved": "any",
|
|
71
|
-
"references": {}
|
|
72
|
-
},
|
|
73
|
-
"required": false,
|
|
74
|
-
"optional": false,
|
|
75
|
-
"docs": {
|
|
76
|
-
"tags": [],
|
|
77
|
-
"text": ""
|
|
78
|
-
},
|
|
79
|
-
"getter": false,
|
|
80
|
-
"setter": false,
|
|
81
|
-
"reflect": false
|
|
82
|
-
},
|
|
83
|
-
"clientId": {
|
|
84
|
-
"type": "string",
|
|
85
|
-
"attribute": "client-id",
|
|
86
|
-
"mutable": false,
|
|
87
|
-
"complexType": {
|
|
88
|
-
"original": "string",
|
|
89
|
-
"resolved": "string",
|
|
90
|
-
"references": {}
|
|
91
|
-
},
|
|
92
|
-
"required": false,
|
|
93
|
-
"optional": false,
|
|
94
|
-
"docs": {
|
|
95
|
-
"tags": [],
|
|
96
|
-
"text": ""
|
|
97
|
-
},
|
|
98
|
-
"getter": false,
|
|
99
|
-
"setter": false,
|
|
100
|
-
"reflect": false
|
|
101
|
-
},
|
|
102
|
-
"accountId": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"attribute": "account-id",
|
|
105
|
-
"mutable": false,
|
|
106
|
-
"complexType": {
|
|
107
|
-
"original": "string",
|
|
108
|
-
"resolved": "string",
|
|
109
|
-
"references": {}
|
|
110
|
-
},
|
|
111
|
-
"required": false,
|
|
112
|
-
"optional": false,
|
|
113
|
-
"docs": {
|
|
114
|
-
"tags": [],
|
|
115
|
-
"text": ""
|
|
116
|
-
},
|
|
117
|
-
"getter": false,
|
|
118
|
-
"setter": false,
|
|
119
|
-
"reflect": false
|
|
120
|
-
},
|
|
121
|
-
"paymentMethodOption": {
|
|
122
|
-
"type": "unknown",
|
|
123
|
-
"attribute": "payment-method-option",
|
|
124
|
-
"mutable": false,
|
|
125
|
-
"complexType": {
|
|
126
|
-
"original": "PaymentMethodOption",
|
|
127
|
-
"resolved": "PaymentMethodOption",
|
|
128
|
-
"references": {
|
|
129
|
-
"PaymentMethodOption": {
|
|
130
|
-
"location": "import",
|
|
131
|
-
"path": "./payment-method-option-utils",
|
|
132
|
-
"id": "src/components/checkout/payment-method-option-utils.ts::PaymentMethodOption"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"required": false,
|
|
137
|
-
"optional": false,
|
|
138
|
-
"docs": {
|
|
139
|
-
"tags": [],
|
|
140
|
-
"text": ""
|
|
141
|
-
},
|
|
142
|
-
"getter": false,
|
|
143
|
-
"setter": false
|
|
144
|
-
},
|
|
145
|
-
"isSelected": {
|
|
146
|
-
"type": "boolean",
|
|
147
|
-
"attribute": "is-selected",
|
|
148
|
-
"mutable": false,
|
|
149
|
-
"complexType": {
|
|
150
|
-
"original": "boolean",
|
|
151
|
-
"resolved": "boolean",
|
|
152
|
-
"references": {}
|
|
153
|
-
},
|
|
154
|
-
"required": false,
|
|
155
|
-
"optional": false,
|
|
156
|
-
"docs": {
|
|
157
|
-
"tags": [],
|
|
158
|
-
"text": ""
|
|
159
|
-
},
|
|
160
|
-
"getter": false,
|
|
161
|
-
"setter": false,
|
|
162
|
-
"reflect": false
|
|
163
|
-
},
|
|
164
|
-
"paymentAmount": {
|
|
165
|
-
"type": "number",
|
|
166
|
-
"attribute": "payment-amount",
|
|
167
|
-
"mutable": false,
|
|
168
|
-
"complexType": {
|
|
169
|
-
"original": "number",
|
|
170
|
-
"resolved": "number",
|
|
171
|
-
"references": {}
|
|
172
|
-
},
|
|
173
|
-
"required": false,
|
|
174
|
-
"optional": false,
|
|
175
|
-
"docs": {
|
|
176
|
-
"tags": [],
|
|
177
|
-
"text": ""
|
|
178
|
-
},
|
|
179
|
-
"getter": false,
|
|
180
|
-
"setter": false,
|
|
181
|
-
"reflect": false
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
static get states() {
|
|
186
|
-
return {
|
|
187
|
-
"installmentPlan": {},
|
|
188
|
-
"sezzleCheckout": {},
|
|
189
|
-
"sezzlePromise": {}
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
static get events() {
|
|
193
|
-
return [{
|
|
194
|
-
"method": "paymentMethodOptionSelected",
|
|
195
|
-
"name": "paymentMethodOptionSelected",
|
|
196
|
-
"bubbles": true,
|
|
197
|
-
"cancelable": true,
|
|
198
|
-
"composed": true,
|
|
199
|
-
"docs": {
|
|
200
|
-
"tags": [],
|
|
201
|
-
"text": ""
|
|
202
|
-
},
|
|
203
|
-
"complexType": {
|
|
204
|
-
"original": "any",
|
|
205
|
-
"resolved": "any",
|
|
206
|
-
"references": {}
|
|
207
|
-
}
|
|
208
|
-
}];
|
|
209
|
-
}
|
|
210
|
-
static get methods() {
|
|
211
|
-
return {
|
|
212
|
-
"resolvePaymentMethod": {
|
|
213
|
-
"complexType": {
|
|
214
|
-
"signature": "(insuranceValidation: any) => Promise<PaymentMethodPayload>",
|
|
215
|
-
"parameters": [{
|
|
216
|
-
"name": "insuranceValidation",
|
|
217
|
-
"type": "any",
|
|
218
|
-
"docs": ""
|
|
219
|
-
}],
|
|
220
|
-
"references": {
|
|
221
|
-
"Promise": {
|
|
222
|
-
"location": "global",
|
|
223
|
-
"id": "global::Promise"
|
|
224
|
-
},
|
|
225
|
-
"PaymentMethodPayload": {
|
|
226
|
-
"location": "import",
|
|
227
|
-
"path": "./payment-method-payload",
|
|
228
|
-
"id": "src/components/checkout/payment-method-payload.ts::PaymentMethodPayload"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
"return": "Promise<PaymentMethodPayload>"
|
|
232
|
-
},
|
|
233
|
-
"docs": {
|
|
234
|
-
"text": "",
|
|
235
|
-
"tags": []
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { c as createStore } from './index-Cc3u0uDC.js';
|
|
2
|
-
|
|
3
|
-
const iframeInputStylesStore = createStore({
|
|
4
|
-
focused: {
|
|
5
|
-
boxShadow: '',
|
|
6
|
-
border: '',
|
|
7
|
-
},
|
|
8
|
-
focusedAndInvalid: {
|
|
9
|
-
boxShadow: '',
|
|
10
|
-
border: '',
|
|
11
|
-
},
|
|
12
|
-
fontStyles: {
|
|
13
|
-
fontFamily: '',
|
|
14
|
-
fontSize: '',
|
|
15
|
-
fontWeight: '',
|
|
16
|
-
lineHeight: '',
|
|
17
|
-
margin: '',
|
|
18
|
-
padding: '',
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
const { state: iframeInputStyles, set: iframeInputStylesSet, } = iframeInputStylesStore;
|
|
22
|
-
|
|
23
|
-
export { iframeInputStylesSet as a, iframeInputStyles as i };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { c as createStore } from './index-Cc3u0uDC.js';
|
|
2
|
-
|
|
3
|
-
const filterParamsInitialState = {};
|
|
4
|
-
const propsParamsInitialState = {};
|
|
5
|
-
const filterParamsStore = createStore(() => filterParamsInitialState);
|
|
6
|
-
const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
|
|
7
|
-
const propsParamsStore = createStore(() => propsParamsInitialState);
|
|
8
|
-
const { state: propsParams } = propsParamsStore;
|
|
9
|
-
const getRequestParams = () => {
|
|
10
|
-
return Object.assign(Object.assign({}, filterParams), propsParams);
|
|
11
|
-
};
|
|
12
|
-
const clearParams = () => {
|
|
13
|
-
filterParamsStore.reset();
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { clearParams as c, filterParams as f, getRequestParams as g, onQueryParamsChange as o, propsParams as p };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { D as DetailSectionTitle, a as DetailItem } from './utils.js';
|
|
3
|
-
import { s as snakeCaseToHumanReadable } from './utils2.js';
|
|
4
|
-
|
|
5
|
-
const GenericInfoDetails = /*@__PURE__*/ proxyCustomElement(class GenericInfoDetails extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
12
|
-
if (!this.business)
|
|
13
|
-
return null;
|
|
14
|
-
return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.classification) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
|
|
15
|
-
}
|
|
16
|
-
}, [0, "generic-info-details", {
|
|
17
|
-
"business": [16]
|
|
18
|
-
}]);
|
|
19
|
-
function defineCustomElement() {
|
|
20
|
-
if (typeof customElements === "undefined") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const components = ["generic-info-details"];
|
|
24
|
-
components.forEach(tagName => { switch (tagName) {
|
|
25
|
-
case "generic-info-details":
|
|
26
|
-
if (!customElements.get(tagName)) {
|
|
27
|
-
customElements.define(tagName, GenericInfoDetails);
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
} });
|
|
31
|
-
}
|
|
32
|
-
defineCustomElement();
|
|
33
|
-
|
|
34
|
-
export { GenericInfoDetails as G, defineCustomElement as d };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as formatCurrency } from './utils2.js';
|
|
3
|
-
import { W as radioListItem } from './parts.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './form-control-help-text2.js';
|
|
5
|
-
import { d as defineCustomElement$1 } from './form-control-radio2.js';
|
|
6
|
-
|
|
7
|
-
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
8
|
-
display: 'inline',
|
|
9
|
-
width: '80px',
|
|
10
|
-
marginLeft: '5px',
|
|
11
|
-
marginTop: '-5px',
|
|
12
|
-
} }));
|
|
13
|
-
const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePaymentMethod extends HTMLElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.paymentMethodOptionSelected = createEvent(this, "paymentMethodOptionSelected", 7);
|
|
18
|
-
this.onPaymentMethodOptionClick = (e) => {
|
|
19
|
-
e.preventDefault();
|
|
20
|
-
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
21
|
-
};
|
|
22
|
-
this.initializeSezzleCheckout = () => {
|
|
23
|
-
let resolveSezzlePromise;
|
|
24
|
-
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
25
|
-
const bnpl = this.bnpl;
|
|
26
|
-
const amount = +this.paymentAmount; // convert to number
|
|
27
|
-
const Checkout = window.Checkout;
|
|
28
|
-
const checkout = new Checkout({
|
|
29
|
-
mode: 'popup',
|
|
30
|
-
publicKey: bnpl.provider_client_id,
|
|
31
|
-
apiMode: bnpl.provider_mode,
|
|
32
|
-
apiVersion: bnpl.provider_api_version,
|
|
33
|
-
});
|
|
34
|
-
checkout.sezzleButtonElement = this.sezzleButtonRef;
|
|
35
|
-
checkout.init({
|
|
36
|
-
onClick: function (event) {
|
|
37
|
-
event.preventDefault();
|
|
38
|
-
checkout.startCheckout({
|
|
39
|
-
checkout_url: bnpl.provider_checkout_url
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
43
|
-
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
44
|
-
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
45
|
-
});
|
|
46
|
-
this.sezzleCheckout = checkout;
|
|
47
|
-
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
componentDidRender() {
|
|
51
|
-
this.scriptRef.onload = () => {
|
|
52
|
-
this.sezzleButtonRef = document.createElement('button');
|
|
53
|
-
this.initializeSezzleCheckout();
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
async resolvePaymentMethod(insuranceValidation) {
|
|
57
|
-
if (!insuranceValidation.isValid) {
|
|
58
|
-
return { validationError: true };
|
|
59
|
-
}
|
|
60
|
-
this.sezzleButtonRef.click();
|
|
61
|
-
return this.sezzlePromise;
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
var _a, _b, _c;
|
|
65
|
-
return (h(Host, { key: '4ae50e7bbb15d0049d069edacd0d95ba7c13dbe5', class: "payment-method" }, h("script", { key: '42a0590d89626ba7a93852e421eb121626b48375', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '31a2a72650486c258267c6d4de3723f7afa5b063', class: "radio-list-item p-3", part: radioListItem, onClick: this.onPaymentMethodOptionClick }, h("form-control-radio", { key: 'eac1adbcd82fcb4f9c440c53c40ce34af6092991', name: "paymentMethodType", value: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, checked: this.isSelected, label: h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_c = this.installmentPlan) === null || _c === void 0 ? void 0 : _c.installments[0].amountInCents))))) }))));
|
|
66
|
-
}
|
|
67
|
-
}, [0, "justifi-sezzle-payment-method", {
|
|
68
|
-
"bnpl": [8],
|
|
69
|
-
"clientId": [1, "client-id"],
|
|
70
|
-
"accountId": [1, "account-id"],
|
|
71
|
-
"paymentMethodOption": [16, "payment-method-option"],
|
|
72
|
-
"isSelected": [4, "is-selected"],
|
|
73
|
-
"paymentAmount": [2, "payment-amount"],
|
|
74
|
-
"installmentPlan": [32],
|
|
75
|
-
"sezzleCheckout": [32],
|
|
76
|
-
"sezzlePromise": [32],
|
|
77
|
-
"resolvePaymentMethod": [64]
|
|
78
|
-
}]);
|
|
79
|
-
function defineCustomElement() {
|
|
80
|
-
if (typeof customElements === "undefined") {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
const components = ["justifi-sezzle-payment-method", "form-control-help-text", "form-control-radio"];
|
|
84
|
-
components.forEach(tagName => { switch (tagName) {
|
|
85
|
-
case "justifi-sezzle-payment-method":
|
|
86
|
-
if (!customElements.get(tagName)) {
|
|
87
|
-
customElements.define(tagName, SezzlePaymentMethod);
|
|
88
|
-
}
|
|
89
|
-
break;
|
|
90
|
-
case "form-control-help-text":
|
|
91
|
-
if (!customElements.get(tagName)) {
|
|
92
|
-
defineCustomElement$2();
|
|
93
|
-
}
|
|
94
|
-
break;
|
|
95
|
-
case "form-control-radio":
|
|
96
|
-
if (!customElements.get(tagName)) {
|
|
97
|
-
defineCustomElement$1();
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
} });
|
|
101
|
-
}
|
|
102
|
-
defineCustomElement();
|
|
103
|
-
|
|
104
|
-
export { SezzlePaymentMethod as S, defineCustomElement as d };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./p-D6FDxSyt.js";import{A as r}from"./p-OSmuQKbK.js";import{C as s,a as o}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{g as n,a}from"./p-C5RuuShs.js";import{c,J as p}from"./p-BiPRf6d2.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DPiTQ9dr.js";const d=r();class u{async fetchQuote(t,i){return d.post({endpoint:"insurance/quotes",body:i,authToken:t})}async toggleCoverage(t,i,e){return d.post({endpoint:`insurance/quotes/${i}/toggle`,body:e,authToken:t})}}const h=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event")}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){c(),this.analytics=new p(this),this.initializeServiceMethods()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:e,onSuccess:r,onError:o})=>{var c;try{const p=await i.fetchQuote(t,e);if(p.error)return o({error:a(p.error),code:n(null===(c=p.error)||void 0===c?void 0:c.code),severity:s.ERROR});r({quote:p.data})}catch(t){const i=n(null==t?void 0:t.code);return o({error:t.message||t,code:i,severity:s.ERROR})}})({authToken:this.authToken,service:new u}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:e,payload:r,onSuccess:o,onError:c})=>{var p;try{const d=await i.toggleCoverage(t,e,r);if(d.error)return c({error:a(d.error),code:n(null===(p=d.error)||void 0===p?void 0:p.code),severity:s.ERROR});o({quote:d.data})}catch(t){const i=n(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:s.ERROR})}})({authToken:this.authToken,service:new u})):this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:s.ERROR})}render(){return e("justifi-season-interruption-insurance-core",{key:"e6c2083c20b0f29301d5d8eafc1d269280e96de7",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{h as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-D6FDxSyt.js";import{c as i}from"./p-D4Mv5jCp.js";import{a as s}from"./p-CpTwq2jw.js";import{C as o,a as r}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import{d as n}from"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{c as p,J as d}from"./p-BiPRf6d2.js";import{g as h,a as l}from"./p-C5RuuShs.js";import{P as f}from"./p-DZfxGQ1I.js";import{T as u,l as m,a as b,b as y,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-n2YROtpe.js";import{S as P}from"./p-DuYlA4lj.js";import{T as S}from"./p-CZfYo5-1.js";import{P as I,Q as B}from"./p-BrLVc_85.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DPiTQ9dr.js";import"./p-OSmuQKbK.js";import"./p-CQdeVKF8.js";const q={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},F={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"},O={id:e=>t("td",{part:B(e.id)},e.id),account_id:e=>t("td",{part:B(e.account_id)},e.account_id),payout_id:e=>t("td",{part:B(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:B(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:B(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:B(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:B(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:B(e.currency)},e.currency),description:e=>t("td",{part:B(e.description)},e.description),source_id:e=>t("td",{part:B(e.source_id)},e.source_id),txn_type:e=>t("td",{part:B(e.txn_type)},F[e.txn_type]),created_at:e=>t("td",{part:B(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:B(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:B(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})))},x=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:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.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:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new u(this.balanceTransactions,this.columns,q,O),p(),this.analytics=new d(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 p;try{const c=await a.fetchPayoutTransactions(t,e,i);c.error?r({error:l(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.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:"d37f96bf4e1d40607d3190791f513df5c1ce02d1"},t(m,{key:"a6d2b2c342b6286630acb804b93c846ac42eff9b"},t(b,{key:"abcb7a3bbca27973bafdf0a0a1d9316d9e668aa9"},t(y,{key:"e79c0ee71e45ca1379e354f939368cacbf1bd74e"},t(_,{key:"c64962612a826a5e53c921f43170f1d1ba16399a"},this.transactionsTable.columnData.map((t=>t)))),t(j,{key:"7b33c299ac42c4e668cb4c967ecc5324ec56ede3"},t(w,{key:"096000771b0ce2fe37db3329315bd780af9977a1",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"48ff70675d33875b8fdcf7c7ddf9ceed413ca2e8",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(v,{key:"4ffffbd73a18ef281209adbe870383f744d51da5",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:"8ba623495a597e10bc8708b9984c9da92e3750a4"},t(D,{key:"01f6405cef206cbaf487013370ccd7c312eca3b5"},t(C,{key:"0b94346d3ed5f431393e2df93f0baa81b8804d2b",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"c7a24d435a90c4f8db5c0f71b1a120b11cd01b7b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{x as justifi_payout_transactions_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as i,r as s,c as t}from"./p-D6FDxSyt.js";import{ak as e,ah as r,ad as o,A as l}from"./p-BrLVc_85.js";import{S as d}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-BiPRf6d2.js";import{C as h,a as c}from"./p-SdntD1xf.js";import{B as p}from"./p-ZE1NEnP3.js";import{B as u}from"./p-BrvbVMVq.js";import{m as v}from"./p-D5Sh88BE.js";import{S as m}from"./p-U30-0DaA.js";import"./p-D4Mv5jCp.js";import{j as f}from"./p-CpTwq2jw.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import{f as j,e as w,a as b}from"./p-BzPi8Ea_.js";import"./p-BH0Xfn-F.js";import{g as x,a as y}from"./p-C5RuuShs.js";import{T as g}from"./p-BmWpHZ-Z.js";import"./p-DPiTQ9dr.js";import"./p-OSmuQKbK.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";const S=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),B=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(S,null)),k=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),C=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?b.boardingShipping:b.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){v({id:this.businessId,authToken:this.authToken,service:new p})({onSuccess:({business:i})=>{this.business=new u(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:y(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new j(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new g})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:y(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new g});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(B,null),this.loading.terminals&&i("div",{class:"mt-5"},i(k,null),i(k,null),i(k,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,f(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"95d4b374036e4713216ce61e87571a607b8c3f0a"},i("div",{key:"3e57b055db0d1bf26b9eb38a78fa57493afd3af3",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{C as justifi_order_terminals}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-D6FDxSyt.js";import{C as r,a as e}from"./p-SdntD1xf.js";import{c as o,J as p}from"./p-BiPRf6d2.js";import{D as a}from"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-C5RuuShs.js";import{D as d}from"./p-M61ygz6l.js";import"./p-DPiTQ9dr.js";import"./p-OSmuQKbK.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=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(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:i})=>async({onSuccess:e,onError:o})=>{var p;try{const d=await i.fetchDispute(t,s);if(d.error)return o({error:h(d.error),code:n(null===(p=d.error)||void 0===p?void 0:p.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({dispute:new a(d.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new d}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"5abe4c29317f9baa7fc40d82e2cd533de321d58f",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-D6FDxSyt.js";import{C as s,a as r}from"./p-SdntD1xf.js";import{g as o,a as c}from"./p-C5RuuShs.js";import{C as a}from"./p-vb3fTJEZ.js";import{c as n,J as h}from"./p-BiPRf6d2.js";import"./p-OSmuQKbK.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BH0Xfn-F.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DPiTQ9dr.js";const d=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event"),this.loadedEvent=e(this,"loaded"),this.errorMessage=""}componentWillLoad(){n(),this.analytics=new h(this),this.initializeGetCheckout()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:r,onError:a})=>{var n;try{const h=await i.fetchCheckout(t,e);if(h.error)return a({error:c(h.error),code:o(null===(n=h.error)||void 0===n?void 0:n.code),severity:s.ERROR});r({checkout:h.data})}catch(t){const e=o(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new a}),this.complete=(({authToken:t,checkoutId:e,service:i})=>async({payment:r,onSuccess:a,onError:n})=>{var h;try{const d=await i.complete(t,e,r);if(d.error)return n({error:c(d.error),code:o(null===(h=d.error)||void 0===h?void 0:h.code),severity:s.ERROR});a(d)}catch(t){const e=o(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new a})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:r.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(t){this.checkoutCoreRef.fillBillingForm(t)}async validate(){const{isValid:t}=await this.checkoutCoreRef.validate();return{isValid:t}}render(){return i("justifi-checkout-core",{key:"c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,ref:t=>{t&&(this.checkoutCoreRef=t)}},i("div",{key:"7a4be7220e5eb199f94c5086c23e10dce68d4854",slot:"insurance"},i("slot",{key:"f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{d as justifi_checkout}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-D6FDxSyt.js";import"./p-D4Mv5jCp.js";import{a as i}from"./p-CpTwq2jw.js";import{C as s,a as r}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import{c as o}from"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{c,J as p}from"./p-BiPRf6d2.js";import{g as h,a as d}from"./p-C5RuuShs.js";import{P as f}from"./p-BWJ7zamv.js";import{T as l,l as u,a as m,b,c as y,d as _,e as j,f as T,g,h as k,i as w,j as v,k as C}from"./p-n2YROtpe.js";import{S as D}from"./p-DuYlA4lj.js";import{T as S}from"./p-CZfYo5-1.js";import{P as F,Q as B}from"./p-BrLVc_85.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DPiTQ9dr.js";import"./p-OSmuQKbK.js";import"./p-CQdeVKF8.js";const R={created_at:()=>t("th",{part:F,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:F,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:F,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:F,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:F,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:F,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:F,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},x={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"},P={created_at:(e,a)=>t("td",{part:B(a)},t("div",{class:"fw-bold"},i(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},i(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:B(a)},x[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:B(a)},e.id),amount:(e,a)=>t("td",{part:B(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:B(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:B(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:B(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:B(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:B(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:B(a)},e.source_id),source_type:(e,a)=>t("td",{part:B(a)},e.source_type)},I=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:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.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:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new l(this.balanceTransactions,this.columns,R,P),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:i,onSuccess:r,onError:n,final:c})=>{var p;try{const c=await a.fetchPaymentTransactions(t,e,i);c.error?n({error:d(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.code),severity:s.ERROR}):r({balanceTransactions:c.data.map((t=>new o(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);n({error:d(t),code:e,severity:s.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new f})({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,s.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:"5afad0e2e8dc4f37660b09c434fa1e69014194f6"},t(u,{key:"90b657d1a31077ccfee1c494e5bde526572d86b1"},t(m,{key:"c25fd7f2cb00dff6e7d1e5102660c28c08735439"},t(b,{key:"a6a9bfd9dff7aa5c82e2dbe5c3c5674b4e6a5c04"},t(y,{key:"a7e136e48933ae4f7dabc3cb70bda5f2016b400f"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"921169d43283f1b13921f3972e4ff912a92a27eb"},t(j,{key:"69e6d2c8df07e0acb657ab0f7997b6576be86c91",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"6a8a44d407bc4cb75e003ce68b174eed3aee885f",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"599552617b6e9f4dc6451a4fbbb5fe2c402849e4",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:"c2cadba24db21209557443e598ae2fbb1f4f1ffa"},t(v,{key:"ffa9e9f6bf3dd7bb6bb5b8626756edf7ee249074"},t(C,{key:"7d6a900f2aac9483004c4eda42b3592db4495cca",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"028b35bc60ff879529a10ef43de4f45ba2aeb584",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{I as justifi_payment_transactions_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i}from"./p-D6FDxSyt.js";import{Z as a,_ as r,$ as h,a0 as c,a1 as o,l as f}from"./p-BrLVc_85.js";const l=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?a:this.isFocused&&this.checked?r:this.checked?h:this.isFocused?c:o}render(){return e(i,{key:"c509c9fa1e33816ade27c55f3053cd964f1f1144",class:"form-group d-flex flex-column"},e("div",{key:"7067e770576550bc9627cc57dfff24a7f6f6951c",class:"form-check"},e("input",{key:"9a6d01184eb3be812728dc92ad40d14c1f3e465d",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"7f54b31c722389a5397e907cc1a400f5da181d21",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),e("form-control-help-text",{key:"1424f36dfba3af3573fa844d86192428afde1082",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"4e3d2d14f8f328c8c6278cf474bfc5858c3954f1",errorText:this.errorText,name:this.name}))}};export{l as form_control_radio}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,F as t,r as l,c as i}from"./p-D6FDxSyt.js";import{E as r}from"./p-l3o3Ndc0.js";import{S as e}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-U30-0DaA.js";import"./p-BrLVc_85.js";const n=()=>{const l=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(t,null,s(l,null),s(l,null),s(l,null),s(l,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){l(this,s),this.errorEvent=i(this,"error-event"),this.renderState=a.LOADING,this.errorMessage="An error ocurred."}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:t,severity:l})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:t,message:s,severity:l})}})}render(){return this.renderState===a.LOADING?s(e,null,s(n,null)):this.renderState===a.ERROR?s(e,null,r(this.errorMessage)):s(e,null,s("generic-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))}};export{d as business_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-D6FDxSyt.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BrvbVMVq.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as p,e as c,f as n,g as f,h as d,i as m,j,k as b,l as y}from"./p-n2YROtpe.js";import{T as u}from"./p-CZfYo5-1.js";import{p as g,a as k}from"./p-d-_oUZor.js";import{o as l,g as C}from"./p-um3YdOwW.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-CQdeVKF8.js";import"./p-C0WFYqwq.js";import"./p-D5XSsLKb.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,g,k),this.getPayments&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(y,{key:"ebc89e8b55258a1442edad51d5238b8734aa345e"},e(r,{key:"b90635548604f5d486a38421e5228c61ec47c033"},e(h,{key:"3106e6ac62fc9df004a8dc1c4fa6b07763ec9d7a"},e(o,{key:"68c7767762899d3ee229835d93eb9221c8b097e9"},this.paymentsTable.columnData.map((t=>t)))),e(p,{key:"5ffee99d7437590c48f766d5bde24385ea31fdc5"},e(c,{key:"4170ce391f84c65286f358d4e1c03f67c2f9ffcc",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"8f47428d403e763179e071756582065351fa7c63",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(f,{key:"5857f210589dd16232338ad39897ecd4581dc7db",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"1cb054a34b99150f33cf1a008a64451e85af4700"},e(j,{key:"d203e8a928713108cbfbde297ed18bf60cd5cb8e"},e(b,{key:"710c8b5915f08f14892a04c16ac069039804b4f9",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"f9f40a23e8bcbce6adf93f66e2a97f15f91f4f15",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as s,c as e}from"./p-D6FDxSyt.js";import{a as i,b as r}from"./p-CCGhF18e.js";import{F as o,c as n}from"./p-DVnVdicA.js";import{A as a,C as l,R as h,c}from"./p-BrvbVMVq.js";import{C as d,P as u}from"./p-B-iV5cYd.js";import{D as m}from"./p-BrLVc_85.js";import{S as p}from"./p-U30-0DaA.js";import"./p-CZfYo5-1.js";import{a as f,r as v,s as y,b}from"./p-IA90llLO.js";import{a as g,B as w}from"./p-XYgDHrVL.js";import{z as _,A as x,B as j,C as S,D as T,y as C,E as L,F as O}from"./p-DNt_pMGt.js";import"./p-D4Mv5jCp.js";import"./p-CpTwq2jw.js";import{C as k,a as D}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import{a as H,b as V}from"./p-CffckWWF.js";import"./p-BzPi8Ea_.js";import"./p-BH0Xfn-F.js";import{n as B}from"./p-BnjCmwMr.js";import{B as E}from"./p-cNABKY0P.js";import{i as A,a as P}from"./p-o_73WSki.js";import{S as W}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-Cd06j2SL.js";class I{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const F=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(p,{width:"25%"})),t("div",{class:"col-12"},t(p,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(p,{width:"50%"}),t(p,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(p,{width:"65%"}),t(p,{width:"35%"}))),N=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(p,{width:"40%",height:"40px"})),t(F,null),t(F,null),t(F,null)),U=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new a(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new a(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new a(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:m},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:d.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:d.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:f,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:v,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},q=(t,s)=>{const e=n({bank_name:O.required("Enter bank name"),nickname:L.required("Enter nickname"),account_owner_name:C.required("Enter account owner name"),account_type:T.required("Select account type"),account_number:S.required("Enter account number"),routing_number:j.required("Enter routing number"),voided_check:x(t,s),bank_statement:_(t,s)}),i=n({bank_name:O.nullable(),nickname:L.nullable(),account_owner_name:C.nullable(),account_type:T.nullable(),account_number:S.nullable(),routing_number:j.nullable(),voided_check:x(t,s),bank_statement:_(t,s)});return s?i:e},M=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new H,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(q(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new V({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new I(t.data.bank_accounts[0]):(this.bankAccount=new I({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:D.POST_ERROR,message:s.error.message,severity:k.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await fetch(t.presigned_url,{method:"PUT",body:t.fileString});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:D.POST_ERROR,message:t.error.message,severity:k.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(q(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new I(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:D.POST_ERROR,severity:k.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:m},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:m},"Document Uploads"),t("form-control-tooltip",{helpText:"These documents are required for underwriting purposes. Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},R=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new l(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new l(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:m},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:b,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:B,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:u.US})))))}},Y=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:w.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(N,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:m},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(E,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},X=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new h(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new h(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(A("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(N,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},G=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new c(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(N,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:m},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:W,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:B})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{U as justifi_additional_questions_form_step_core,M as justifi_business_bank_account_form_step_core,R as justifi_business_core_info_form_step_core,Y as justifi_business_owners_form_step_core,X as justifi_business_representative_form_step_core,G as justifi_legal_address_form_step_core}
|