@justifi/webcomponents 6.6.0 → 6.7.1
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/{Refund-BX0mjsAQ.js → GooglePay-BwiJ_80p.js} +415 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-_nY1l5Rq.js → badge-Cc87HAsf.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_8.cjs.entry.js +9 -8
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business.service-Dffp64u6.js → business.service-q93NsTG_.js} +1 -1
- package/dist/cjs/{button-CARQPDm-.js → button-fUPGXjU_.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-DZC7jOGP.js → check-pkg-version-cLAIX_H6.js} +2 -2
- package/dist/cjs/{checkout.service-C1HcsrjQ.js → checkout.service-CwelwhrT.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -7
- package/dist/cjs/{checkouts-table-Bgqkaez4.js → checkouts-table-BBtqxG2F.js} +2 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-CJsWYMYk.js → dispute.service-q5ha39uN.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-mhOq2Edp.js → form-control-error-text-Dg_65HGK.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-BoRpAoX6.js → form-control-help-text-tB5u1-5M.js} +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-BblcGN2B.js → get-payment-details-DidIAK2i.js} +2 -2
- package/dist/cjs/{get-subaccounts-z4dNQDjx.js → get-subaccounts-BE_wcfM7.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-CBO8uDuZ.js → header-1-Bqejh9no.js} +1 -1
- package/dist/cjs/{header-3-CPWtI1t0.js → header-3-DQ649Me2.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +7 -7
- package/dist/cjs/{index-C2ITzalN.js → index-CajjbB9t.js} +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{insurance-state-BMHITXoD.js → insurance-state-DsGnIHMM.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +25 -26
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -11
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/{justifi-apple-pay_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +905 -258
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +15 -16
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +26 -12
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -5
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -7
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -11
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -12
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -11
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +13 -12
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -8
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -10
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/owner-form-core_2.cjs.entry.js +2 -2
- package/dist/cjs/{package-CkO7M9IQ.js → package-C9E_BIbT.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-Pb06tUMp.js → parts-BVbaniVM.js} +6 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +16 -15
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-BZatGHKc.js → payment.service-CyHFdJ7n.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{payments-status-t4fVj8f9.js → payments-status-BP4u31jU.js} +1 -1
- package/dist/cjs/{payments-table-CaJt-yMH.js → payments-table-CWXVhECV.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +9 -9
- package/dist/cjs/{payout.service-DbgLWhwh.js → payout.service-Half-hdB.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -8
- package/dist/cjs/{payouts-status-pIO9qZG6.js → payouts-status-CM5Zy-0J.js} +1 -1
- package/dist/cjs/{payouts-table-DZv0WnTS.js → payouts-table-ZLTcfkUm.js} +2 -2
- package/dist/cjs/{skeleton-BF3HGL9X.js → skeleton-B8dzxFFr.js} +1 -1
- package/dist/cjs/{spinner-BBdv3Iq1.js → spinner-jHyLNCGO.js} +1 -1
- package/dist/cjs/{table-CfBpaApw.js → table-CrtpRwGN.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -7
- package/dist/cjs/{terminal-orders-table-F-ZFUBwH.js → terminal-orders-table-DT53anT3.js} +5 -5
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-KC8wBTJJ.js → terminal.service-CFt55QNO.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -7
- package/dist/cjs/{terminals-table-D7sf_DBN.js → terminals-table-DahpSz98.js} +2 -2
- package/dist/cjs/{utils-Cjq3ZCad.js → utils-CMiA4X7s.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/GooglePay.js +181 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/google-pay.service.js +241 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +72 -2
- 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 +2 -2
- 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/modular-checkout/ModularCheckout.js +1 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +44 -6
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/google-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +609 -0
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- 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/internal-tokenize-payment-method.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/store/checkout.store.js +4 -0
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/google-pay-button.js +251 -0
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +727 -102
- package/dist/esm/{Refund-DDWRtCuX.js → GooglePay-NNHE-OLJ.js} +405 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-BWd10d-w.js → badge-DtrH25ss.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_8.entry.js +8 -7
- package/dist/esm/bank-account-form.entry.js +4 -4
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-CmSijtcP.js → business.service-BrUSam2T.js} +1 -1
- package/dist/esm/{button-BDwVDLs-.js → button-Bpf3VX8Q.js} +1 -1
- package/dist/esm/card-form.entry.js +4 -4
- package/dist/esm/{check-pkg-version-B83yUQEx.js → check-pkg-version-o2X_8wJ4.js} +2 -2
- package/dist/esm/{checkout.service-E60GnrZv.js → checkout.service-Bxt1qPaY.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +8 -7
- package/dist/esm/{checkouts-table-BVWL1wN9.js → checkouts-table-CB4GdlcZ.js} +2 -2
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{dispute.service-CAZJigrO.js → dispute.service-DYRYxxaT.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-BYooqu0N.js → form-control-error-text-BZYykCDp.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-CF1UA5Sl.js → form-control-help-text-D-p66Yxr.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_3.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +6 -6
- package/dist/esm/{get-payment-details-Dg5WRkOM.js → get-payment-details-BJ1PLhJZ.js} +1 -1
- package/dist/esm/{get-subaccounts-CbxzednA.js → get-subaccounts-CzGHjlUF.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-CzkA4zNY.js → header-1-WwkF5F9y.js} +1 -1
- package/dist/esm/{header-3-eIE1RpMN.js → header-3-C5jS39cE.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{index-DCIW8z1f.js → index-DkoufM1t.js} +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{insurance-state-By2QaBZo.js → insurance-state-C11WKZU6.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +14 -15
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -5
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/{justifi-apple-pay_7.entry.js → justifi-apple-pay_8.entry.js} +788 -142
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +7 -6
- package/dist/esm/justifi-business-form.entry.js +9 -8
- package/dist/esm/justifi-checkout.entry.js +8 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +19 -5
- package/dist/esm/justifi-checkouts-list.entry.js +10 -9
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +6 -5
- package/dist/esm/justifi-dispute-notification_3.entry.js +12 -11
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -5
- package/dist/esm/justifi-order-terminals.entry.js +9 -8
- package/dist/esm/justifi-payment-details.entry.js +8 -7
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +9 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -9
- package/dist/esm/justifi-payout-details.entry.js +7 -6
- package/dist/esm/justifi-payout-transactions-list.entry.js +9 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +11 -10
- package/dist/esm/justifi-refund-payment.entry.js +9 -8
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -8
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +8 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -3
- package/dist/esm/justifi-terminals-list.entry.js +10 -9
- package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/owner-form-core_2.entry.js +2 -2
- package/dist/esm/{package-CdVle3mx.js → package-Dr8Z8wfP.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-QmGrQis7.js → parts-sA8HBfkI.js} +4 -1
- package/dist/esm/payment-details-core.entry.js +15 -14
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment.service-CWc5BPv-.js → payment.service-BoGemgMw.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +9 -8
- package/dist/esm/{payments-status-BdCVusHE.js → payments-status-CADg1cD0.js} +1 -1
- package/dist/esm/{payments-table-9rC3BvV0.js → payments-table-C6zHWwGO.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +9 -9
- package/dist/esm/{payout.service-iBVqRzf_.js → payout.service-BSG50wqN.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +9 -8
- package/dist/esm/{payouts-status-DhowllYh.js → payouts-status-4VDQvaYV.js} +1 -1
- package/dist/esm/{payouts-table-Ci_J6mmU.js → payouts-table-BU5XbzB9.js} +2 -2
- package/dist/esm/{skeleton-BX70wCwq.js → skeleton-Dtt56Fl3.js} +1 -1
- package/dist/esm/{spinner-CcDNFgNu.js → spinner-DikooWuI.js} +1 -1
- package/dist/esm/{table-KZoMaoUh.js → table-1hqe6s5m.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +8 -7
- package/dist/esm/{terminal-orders-table-BGiWS5cM.js → terminal-orders-table-BsVBelxB.js} +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-CxSKhtwB.js → terminal.service-YKfi6Mr9.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +8 -7
- package/dist/esm/{terminals-table-DROFEdyn.js → terminals-table-CXJTn-0I.js} +2 -2
- package/dist/esm/{utils-C1PX_3uA.js → utils-CgFsPVsv.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -0
- package/dist/module/ApplePay.js +121 -0
- package/dist/module/GooglePay.js +184 -0
- package/dist/module/ModularCheckout.js +1 -0
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +1 -120
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +2 -0
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account.js +2 -2
- package/dist/module/business-bank-account-form-step.js +2 -0
- package/dist/module/business-terms-conditions-form-step.js +2 -0
- package/dist/module/business.service.js +2 -0
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkout.store.js +4 -0
- package/dist/module/checkouts-list-core2.js +4 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +2 -0
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- 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/get-payment-details.js +2 -0
- package/dist/module/get-subaccounts.js +2 -0
- package/dist/module/google-pay.js +782 -0
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method2.js +3 -1
- package/dist/module/justifi-business-form.js +2 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +46 -40
- package/dist/module/justifi-checkouts-list-filters.js +37 -8
- package/dist/module/justifi-checkouts-list.js +3 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-google-pay.d.ts +11 -0
- package/dist/module/justifi-google-pay.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -1
- package/dist/module/justifi-payment-provisioning.js +2 -0
- package/dist/module/justifi-payment-transactions-list.js +5 -3
- package/dist/module/justifi-payments-list-filters.js +4 -4
- package/dist/module/justifi-payments-list.js +3 -1
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payout-transactions-list.js +5 -3
- package/dist/module/justifi-payouts-list-filters.js +4 -4
- package/dist/module/justifi-payouts-list.js +3 -1
- package/dist/module/justifi-refund-payment.js +2 -0
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +2 -0
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +6 -4
- package/dist/module/justifi-terminal-orders-list.js +3 -1
- package/dist/module/justifi-terminals-list-filters.js +4 -2
- package/dist/module/justifi-terminals-list.js +3 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/modular-checkout.js +46 -6
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +4 -1
- package/dist/module/payment-details-core2.js +10 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment.service.js +2 -0
- package/dist/module/payments-list-core2.js +5 -3
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payout.service.js +2 -0
- package/dist/module/payouts-list-core2.js +5 -3
- package/dist/module/plaid.service.js +2 -0
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +5 -3
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminal.service.js +2 -0
- package/dist/module/terminals-list-core2.js +4 -2
- package/dist/module/utils2.js +1 -1
- package/dist/types/api/Checkout.d.ts +5 -0
- package/dist/types/api/GooglePay.d.ts +271 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/google-pay.service.d.ts +60 -0
- package/dist/types/components/checkout/checkout.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +5 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +2 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +5 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +59 -0
- package/dist/types/components.d.ts +146 -0
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +3 -0
- package/dist/types/ui-components/google-pay-button.d.ts +18 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-016b3e4c.entry.js +1 -0
- package/dist/webcomponents/{p-fdcb24aa.entry.js → p-062fcfd5.entry.js} +1 -1
- package/dist/webcomponents/p-06cae9e2.entry.js +1 -0
- package/dist/webcomponents/p-06f81525.entry.js +1 -0
- package/dist/webcomponents/{p-3482ab40.entry.js → p-0b7c4ed5.entry.js} +1 -1
- package/dist/webcomponents/{p-9c7c60f3.entry.js → p-0bb616fc.entry.js} +1 -1
- package/dist/webcomponents/p-1575ca68.entry.js +1 -0
- package/dist/webcomponents/{p-8740871d.entry.js → p-1a327b0e.entry.js} +1 -1
- package/dist/webcomponents/p-1df660a9.entry.js +1 -0
- package/dist/webcomponents/p-1e761d96.entry.js +1 -0
- package/dist/webcomponents/{p-0eb7abed.entry.js → p-20e85114.entry.js} +1 -1
- package/dist/webcomponents/p-262e4b23.entry.js +1 -0
- package/dist/webcomponents/p-296bd0b6.entry.js +1 -0
- package/dist/webcomponents/{p-5490e39c.entry.js → p-368b37ad.entry.js} +1 -1
- package/dist/webcomponents/{p-d41ad7a8.entry.js → p-36a0af30.entry.js} +1 -1
- package/dist/webcomponents/p-3a3935a3.entry.js +1 -0
- package/dist/webcomponents/p-3fb1cf2b.entry.js +1 -0
- package/dist/webcomponents/p-3fbe8ac3.entry.js +1 -0
- package/dist/webcomponents/p-4d2589b2.entry.js +1 -0
- package/dist/webcomponents/p-4dc358aa.entry.js +1 -0
- package/dist/webcomponents/{p-99c1059c.entry.js → p-511e80a4.entry.js} +1 -1
- package/dist/webcomponents/p-5996879d.entry.js +1 -0
- package/dist/webcomponents/p-5a7207c0.entry.js +1 -0
- package/dist/webcomponents/p-5a748e49.entry.js +1 -0
- package/dist/webcomponents/p-5e6f2128.entry.js +1 -0
- package/dist/webcomponents/p-6454626a.entry.js +1 -0
- package/dist/webcomponents/p-66713269.entry.js +1 -0
- package/dist/webcomponents/p-679b36b5.entry.js +1 -0
- package/dist/webcomponents/{p-c9920e22.entry.js → p-725319f3.entry.js} +1 -1
- package/dist/webcomponents/p-77754a65.entry.js +1 -0
- package/dist/webcomponents/p-7bb7aaca.entry.js +1 -0
- package/dist/webcomponents/p-8884e000.entry.js +1 -0
- package/dist/webcomponents/p-88a8741b.entry.js +1 -0
- package/dist/webcomponents/{p-c3a625ec.entry.js → p-897b794b.entry.js} +4 -4
- package/dist/webcomponents/p-899b981b.entry.js +1 -0
- package/dist/webcomponents/p-8c4b502d.entry.js +1 -0
- package/dist/webcomponents/p-8df30672.entry.js +1 -0
- package/dist/webcomponents/p-911b3d63.entry.js +1 -0
- package/dist/webcomponents/p-97b8bf5c.entry.js +1 -0
- package/dist/webcomponents/p-9b74a642.entry.js +1 -0
- package/dist/webcomponents/p-9b8aee30.entry.js +1 -0
- package/dist/webcomponents/p-9e94c9ef.entry.js +1 -0
- package/dist/webcomponents/{p-B69TWr1K.js → p-B4xdk4mG.js} +1 -1
- package/dist/webcomponents/{p-MFnmyvti.js → p-BEu9YFnf.js} +1 -1
- package/dist/webcomponents/{p-gcRtE71H.js → p-BMJe4lzg.js} +1 -1
- package/dist/webcomponents/p-BhqSAzpT.js +1 -0
- package/dist/webcomponents/p-BrRsgB8S.js +1 -0
- package/dist/webcomponents/{p-DUQxAYW4.js → p-C2Senazf.js} +1 -1
- package/dist/webcomponents/p-C9VmfRis.js +1 -0
- package/dist/webcomponents/{p-BDRSfgZJ.js → p-CBbwdoSa.js} +1 -1
- package/dist/webcomponents/{p-C0FpWzgU.js → p-CCxsFwC4.js} +1 -1
- package/dist/webcomponents/p-CK_XkZku.js +1 -0
- package/dist/webcomponents/p-CQGIjIgZ.js +1 -0
- package/dist/webcomponents/{p-Qmo430x1.js → p-CV8xqdt6.js} +1 -1
- package/dist/webcomponents/p-CZ3F1ZAT.js +1 -0
- package/dist/webcomponents/p-CgiDds_u.js +1 -0
- package/dist/webcomponents/p-CsgUIrv8.js +1 -0
- package/dist/webcomponents/{p-BIzMmHpn.js → p-D6bKoyRc.js} +1 -1
- package/dist/webcomponents/{p-E8uzhk39.js → p-DATDsXcA.js} +1 -1
- package/dist/webcomponents/{p-H_emngUs.js → p-DGGjRqDa.js} +1 -1
- package/dist/webcomponents/{p-CJ4viNrp.js → p-DUmUUj9r.js} +1 -1
- package/dist/webcomponents/p-DY_3dcgR.js +1 -0
- package/dist/webcomponents/{p-DircQtPA.js → p-Dit3fZpU.js} +1 -1
- package/dist/webcomponents/p-DkoufM1t.js +1 -0
- package/dist/webcomponents/{p-DcHTywGe.js → p-Dlrq1iZf.js} +1 -1
- package/dist/webcomponents/p-DmdEjScI.js +1 -0
- package/dist/webcomponents/p-Dr8Z8wfP.js +1 -0
- package/dist/webcomponents/p-RTAZ4tdd.js +1 -0
- package/dist/webcomponents/p-Ty7R7tsw.js +1 -0
- package/dist/webcomponents/{p-CYz0Hubu.js → p-U3nU15el.js} +1 -1
- package/dist/webcomponents/{p-CjfgyxBN.js → p-VRubcA-q.js} +1 -1
- package/dist/webcomponents/{p-KS3Bf_2D.js → p-W9WWoLzT.js} +1 -1
- package/dist/webcomponents/p-a0b4c42b.entry.js +1 -0
- package/dist/webcomponents/p-abcb4945.entry.js +1 -0
- package/dist/webcomponents/p-ad3a73af.entry.js +1 -0
- package/dist/webcomponents/p-b0f0d53c.entry.js +1 -0
- package/dist/webcomponents/p-c8a5a2a9.entry.js +1 -0
- package/dist/webcomponents/p-c920dc54.entry.js +1 -0
- package/dist/webcomponents/p-ca0d1c6c.entry.js +1 -0
- package/dist/webcomponents/p-cbd52897.entry.js +1 -0
- package/dist/webcomponents/p-cc0c722c.entry.js +1 -0
- package/dist/webcomponents/p-cc2a1c7c.entry.js +1 -0
- package/dist/webcomponents/{p-b31bf32a.entry.js → p-cdf1e61c.entry.js} +1 -1
- package/dist/webcomponents/p-cf644e46.entry.js +1 -0
- package/dist/webcomponents/{p-d79f9a54.entry.js → p-d0c4b0ea.entry.js} +1 -1
- package/dist/webcomponents/p-d5765545.entry.js +1 -0
- package/dist/webcomponents/p-def84700.entry.js +1 -0
- package/dist/webcomponents/p-e2d33311.entry.js +1 -0
- package/dist/webcomponents/{p-dd0c456f.entry.js → p-e4335938.entry.js} +1 -1
- package/dist/webcomponents/{p-c8bd7e0d.entry.js → p-e805b011.entry.js} +1 -1
- package/dist/webcomponents/p-f30c939f.entry.js +1 -0
- package/dist/webcomponents/{p-50308873.entry.js → p-f99403d8.entry.js} +1 -1
- package/dist/webcomponents/p-fb644da6.entry.js +1 -0
- package/dist/webcomponents/p-fc4b27ec.entry.js +1 -0
- package/dist/webcomponents/p-fe43449c.entry.js +1 -0
- package/dist/webcomponents/p-sA8HBfkI.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/checkout.store-BA6h-dp2.js +0 -107
- package/dist/esm/checkout.store-CaS_htQd.js +0 -101
- package/dist/webcomponents/p-0867547d.entry.js +0 -1
- package/dist/webcomponents/p-091d6a7e.entry.js +0 -1
- package/dist/webcomponents/p-0d4bea62.entry.js +0 -1
- package/dist/webcomponents/p-1634262a.entry.js +0 -1
- package/dist/webcomponents/p-1a4d0ad6.entry.js +0 -1
- package/dist/webcomponents/p-25e3cb85.entry.js +0 -1
- package/dist/webcomponents/p-278988e8.entry.js +0 -1
- package/dist/webcomponents/p-3b5a9e94.entry.js +0 -1
- package/dist/webcomponents/p-44efe4ca.entry.js +0 -1
- package/dist/webcomponents/p-49a0ef9d.entry.js +0 -1
- package/dist/webcomponents/p-4bff1285.entry.js +0 -1
- package/dist/webcomponents/p-4d87be74.entry.js +0 -1
- package/dist/webcomponents/p-51107c8f.entry.js +0 -1
- package/dist/webcomponents/p-51d7b9f7.entry.js +0 -1
- package/dist/webcomponents/p-5c60ba00.entry.js +0 -1
- package/dist/webcomponents/p-5d56a293.entry.js +0 -1
- package/dist/webcomponents/p-654d91d7.entry.js +0 -1
- package/dist/webcomponents/p-68c2ce90.entry.js +0 -1
- package/dist/webcomponents/p-69b0be17.entry.js +0 -1
- package/dist/webcomponents/p-6e99cd4c.entry.js +0 -1
- package/dist/webcomponents/p-7e4bfba1.entry.js +0 -1
- package/dist/webcomponents/p-87d23cf8.entry.js +0 -1
- package/dist/webcomponents/p-9065f077.entry.js +0 -1
- package/dist/webcomponents/p-908f6b79.entry.js +0 -1
- package/dist/webcomponents/p-93d98b07.entry.js +0 -1
- package/dist/webcomponents/p-94b2d6a1.entry.js +0 -1
- package/dist/webcomponents/p-980db13b.entry.js +0 -1
- package/dist/webcomponents/p-B10U2_Sw.js +0 -1
- package/dist/webcomponents/p-BqXh8qSb.js +0 -1
- package/dist/webcomponents/p-CA9okQxT.js +0 -1
- package/dist/webcomponents/p-CMTxbXEr.js +0 -1
- package/dist/webcomponents/p-CdVle3mx.js +0 -1
- package/dist/webcomponents/p-CiMKKjGV.js +0 -1
- package/dist/webcomponents/p-CjxyejYl.js +0 -1
- package/dist/webcomponents/p-CpP3EZBK.js +0 -1
- package/dist/webcomponents/p-DCIW8z1f.js +0 -1
- package/dist/webcomponents/p-DQKNMVh7.js +0 -1
- package/dist/webcomponents/p-DU8dqq9U.js +0 -1
- package/dist/webcomponents/p-Dp2W4Eq3.js +0 -1
- package/dist/webcomponents/p-GenVH2BR.js +0 -1
- package/dist/webcomponents/p-InCWAej0.js +0 -1
- package/dist/webcomponents/p-QmGrQis7.js +0 -1
- package/dist/webcomponents/p-VodztElu.js +0 -1
- package/dist/webcomponents/p-a4a647bd.entry.js +0 -1
- package/dist/webcomponents/p-abcbfb22.entry.js +0 -1
- package/dist/webcomponents/p-af29e819.entry.js +0 -1
- package/dist/webcomponents/p-b6286d7b.entry.js +0 -1
- package/dist/webcomponents/p-b8c816fe.entry.js +0 -1
- package/dist/webcomponents/p-bcec4201.entry.js +0 -1
- package/dist/webcomponents/p-c6ee5aa7.entry.js +0 -1
- package/dist/webcomponents/p-c900ccca.entry.js +0 -1
- package/dist/webcomponents/p-ca3733e5.entry.js +0 -1
- package/dist/webcomponents/p-cb61af93.entry.js +0 -1
- package/dist/webcomponents/p-d29ce58e.entry.js +0 -1
- package/dist/webcomponents/p-d34f5a20.entry.js +0 -1
- package/dist/webcomponents/p-d8ec7cfc.entry.js +0 -1
- package/dist/webcomponents/p-dda50611.entry.js +0 -1
- package/dist/webcomponents/p-df7e2530.entry.js +0 -1
- package/dist/webcomponents/p-e4a43e31.entry.js +0 -1
- package/dist/webcomponents/p-ea75759b.entry.js +0 -1
- package/dist/webcomponents/p-edcb6de1.entry.js +0 -1
- package/dist/webcomponents/p-faaba66d.entry.js +0 -1
- package/dist/webcomponents/p-fc680b08.entry.js +0 -1
- package/dist/webcomponents/p-fcaaed23.entry.js +0 -1
- package/dist/webcomponents/p-fefc4dea.entry.js +0 -1
- package/dist/webcomponents/p-ff1bc3de.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as a,g as i}from"./p-DwYM91AU.js";import{F as r}from"./p-CpP3EZBK.js";import{i as o,b as l,a as h,U as n,c,l as f}from"./p-QmGrQis7.js";const b=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return s(a,{key:"18db0d27493416cbba3112d5eb3b517534463b5e",exportparts:"label,input,input-invalid"},s("div",{key:"05d3269920dee47ee1895208ea2def7dfc21fd76",class:"form-group d-flex flex-column"},s("div",{key:"ea521871188ec3df8841add01219d581c0ef225c",class:"d-flex align-items-start gap-2"},s("label",{key:"2f6bbebbffc027c4b26ca1b8bffba41f4e14a048",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"18ad9727a6ec2ba8bc32f610a6fb403f02c6cb65",helpText:this.helpText})),s("input",{key:"3527b426dcb8e9158635999bb14519ba89b58958",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),s(r,{key:"5978fc20f0935746f5ade33a3a1626a2f7387272",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?n:c}render(){return s(a,{key:"b741c3a1b3bf044b47e06910fb5bde9ab029721d"},s("div",{key:"196b903bf5d5521d32f940a6a996638265d51060",class:"form-group d-flex flex-column"},s("label",{key:"3ed923b4fedfbcb9ff4ab3f30186150be607ab47",part:f,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"e51c01f30a1622c107917d2cc3577550c280aec7",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),s("form-control-help-text",{key:"6e73ab2e6726eaeb98355aa38071d96e4a9a818a",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"b1155c177d342edd01df9c1e992ea7cf0c744c20",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{b as form_control_file_v2,d as form_control_textarea}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-DwYM91AU.js";import{A as e}from"./p-yyedWKWX.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c,J as l}from"./p-MFnmyvti.js";import{c as h}from"./p-DU8dqq9U.js";import{p as d,f as p,r as u,j as v}from"./p-B09GVew-.js";import{v as m,i as y,a as f,H as j}from"./p-CiMKKjGV.js";import{D as g,E as _}from"./p-QmGrQis7.js";import{S as C}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-CjxyejYl.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-CdVle3mx.js";import"./p-DCIW8z1f.js";import"./p-HXpYMWUU.js";const b=e();class k{async fetchQuote(s,t){return b.post({endpoint:"insurance/quotes",body:t,authToken:s})}async toggleCoverage(s,t,i){return b.post({endpoint:`insurance/quotes/${t}/toggle`,body:i,authToken:s})}}const T=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(w,{width:"35%",height:"30px"})),s("div",{class:"col-12"},s(w,{width:"70%"})),s("div",{class:"col-12"},s(w,{width:"40%"})),s("div",{class:"col-12"},s(w,{width:"40%"})),s("div",{class:"col-12"},s(w,{width:"100%"})),s("div",{class:"col-12"},s(w,{width:"80%"}))),H=class{constructor(s){t(this,s),this.insuranceUpdated=i(this,"insurance-updated"),this.errorEvent=i(this,"error-event"),this.isLoading=!0}async validate(){return m()}processHTMLContent(s){return d(s,[s=>u(s,"style"),s=>v(s,"a","part",g),s=>v(s,"p","part",g)])}componentWillLoad(){c(),this.analytics=new l(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeServiceMethods(){const s=this.authToken||h.authToken;if(!s)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const t={authToken:s,service:new k};this.getQuote=(({authToken:s,service:t})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await t.fetchQuote(s,i);if(l.error)return o({error:n(l.error),code:a(null===(c=l.error)||void 0===c?void 0:c.code),severity:r.ERROR});e({quote:l.data})}catch(s){const t=a(null==s?void 0:s.code);return o({error:s.message||s,code:t,severity:r.ERROR})}})(t),this.toggleCoverage=(({authToken:s,service:t})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await t.toggleCoverage(s,i,e);if(h.error)return c({error:n(h.error),code:a(null===(l=h.error)||void 0===l?void 0:l.code),severity:r.ERROR});o({quote:h.data})}catch(s){const t=a(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:r.ERROR})}})(t)}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId||h.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:s})=>{this.quote=s,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[s.policy_type]=s.accepted,this.isLoading=!1},onError:({error:s,code:t,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}onChangeHandler(s,t){this.accepted=t,f[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),y[this.quote.policy_type]=this.accepted},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}get error(){var s;return f[null===(s=this.quote)||void 0===s?void 0:s.policy_type]}render(){var t,i,e,r;return h&&!1===h.insuranceEnabled?(console.warn("[justifi-season-interruption-insurance] Insurance is disabled for this checkout (payment_settings.insurance_payments=false)."),null):s(C,null,this.isLoading?s(T,null):s("div",null,s(j,{text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),s("small",{part:g,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),s("form-control-radio",{label:`Accept coverage for ${p(null===(e=this.quote)||void 0===e?void 0:e.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),s("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:_},"Please select an option"),s("small",{part:g,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-DwYM91AU.js";import{E as i}from"./p-CJ4viNrp.js";import"./p-QmGrQis7.js";const a=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?i(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{a as justifi_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as a,c as s,g as l}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as i}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{a as o}from"./p-CPpUGsw5.js";import"./p-XYgDHrVL.js";import{n}from"./p-BnjCmwMr.js";import{D as r,Z as c,G as d,am as u,S as b,av as f,c as h,l as m,b as p,U as v,a as y,ae as k}from"./p-QmGrQis7.js";import{s as x,e as T,d as _}from"./p-B09GVew-.js";import{S as w}from"./p-CjxyejYl.js";import"./p-CZfYo5-1.js";import{F as g}from"./p-CpP3EZBK.js";import{u as j,a as H,b as N}from"./p-C77ElQ41.js";import{P as V,I as A}from"./p-CVaOFfrI.js";import{c as C}from"./p-DfKxeSrC.js";import{c as D,d as F,e as B}from"./p-5aA7gjr5.js";import{I as O}from"./p-DcHTywGe.js";import"./p-BYsgavgS.js";import"./p-D2muobcE.js";import"./p-yyedWKWX.js";const I=class{constructor(t){e(this,t)}render(){return t("div",{key:"86e292154357fdee7348377c1c640135bdab2bea",class:"row gy-3"},t("div",{key:"f35d977767de04b8d2be2886dcdb6158aa39e582",class:"col-12"},t("form-control-file",{key:"f78667ccdc39d1337f806a77e24b14ef9d59467e",name:"voided_check",label:"Voided Check",documentType:i.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"caaee3e795369cf8ba6e3c1bbe2fae7421b2ac80",class:"col-12"},t("form-control-file",{key:"67bbe7631b48b4f851a33d63949b8e77d3b1c82d",name:"bank_statement",label:"Bank Statement",documentType:i.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},L=class{constructor(t){e(this,t)}render(){var e,a,s,l,i,r;return t("div",{key:"2f29b1fd967a5eb4d0d3e19b2cbefb9c6e182935",class:"row gy-3"},t("div",{key:"46250c36ba140f5a63f90afa51581ee3cea5f5e8",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"09c95c14e82f12d1e86ab65debb3e066fcd161ce",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"86c2932fdfeae789dc4cb48e255977fb981396c8",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"4ab380b55f4078dd4ed7d3909e8d7206a4cbfc8e",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(l=this.defaultValue)||void 0===l?void 0:l.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:o,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"a61023b07e4550ffcafbbd49c6214db5e8102644",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(i=this.defaultValue)||void 0===i?void 0:i.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:n,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"dcbef312084dcfbe405e18bba854b56837ee6f26",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Routing Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.routing_number)||""}):t("form-control-text",{name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:n,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},S=class{constructor(t){e(this,t)}render(){var e,a,s,l,i,r,c;return t("div",{key:"b2fac559526f427194abe9533683cffc333cad11",class:"row gy-3"},t("div",{key:"694356efd7ab3b60ff50b56b727d02b240a0f3d5",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"a05e978c9d2612b5709c9d1c5c498e360aba374e",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"a54b15dfa039697fe69c1a138cafb78ae632f83c",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"56f458eea6ed6d7a8108fcced3038b83c621d34e",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(l=this.defaultValue)||void 0===l?void 0:l.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:o,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"f42406ade05d7b3fbf58f11c56f8668c9370f038",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Transit Number",value:(null===(i=this.defaultValue)||void 0===i?void 0:i.transit_number)||""}):t("form-control-text",{name:"transit_number",label:"Transit Number",defaultValue:this.defaultValue.transit_number,maxLength:5,errorText:this.errors.transit_number,inputHandler:this.inputHandler,keyDownHandler:n,helpText:"5 digits"})),t("div",{key:"d5d3c2e4a63281725abf693f161a97723b5e049c",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Institution Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.institution_number)||""}):t("form-control-text",{name:"institution_number",label:"Institution Number",defaultValue:this.defaultValue.institution_number,maxLength:3,errorText:this.errors.institution_number,inputHandler:this.inputHandler,keyDownHandler:n,helpText:"3 digits"})),t("div",{key:"0d293c70faf73945ff36b021b708bfe0fa58739d",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(c=this.defaultValue)||void 0===c?void 0:c.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:n,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},P=class{constructor(t){e(this,t)}render(){return t("div",{key:"5b20bad2f4b01597f33221541248681fc08ab59d"},t("label",{key:"e0c297e57f2d5f6863b42c9549ee2b869380f128",class:"form-label",part:r},this.label),t("div",{key:"ac0512bbf49b43a9ca4a8c47d1f05d36e01fd655",part:r},this.value||""))}},E=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(w,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:c},t("div",{class:"card-body"},t("h5",{class:"card-title",part:d},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:u},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:b,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:b,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:b,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:b,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:f},e.file_name),t("td",{part:f},e.file_type),t("td",{part:f},x(e.document_type)),t("td",{part:f},`${T(e.created_at)} - ${_(e.created_at)}`))))))))),t("hr",null)):null}},U=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=h;return this.errorText&&(e=p),this.disabled&&(e=v),this.isFocused&&(e=y),e}render(){return t(a,{key:"80b1f75b69956b28615ebfc4f224702f38bdb03f"},t("div",{key:"5934d7d48e9ac1ceee7804b477aa3ad2f27ca0ab",class:"form-group d-flex flex-column"},t("div",{key:"521ca740b92a6177bd5ce355374496108398b4d5",class:"d-flex align-items-start gap-2"},t("label",{key:"4bada23b536d6013aad85ee9cafd66abbf44af51",part:m,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"86af9d0e6ff35b81d53f32d5055a4814986b9447",helpText:this.helpText})),t("input",{key:"60bd9e5f25181ddf6607e0b4411a62215ff6e10e",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(g,{key:"f1b4f498aa60b2dff655f11af579cf2916ad4d51",errorText:this.errorText,name:this.name})))}get el(){return l(this)}},Y=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{j(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{H(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,a,s,l,i,o,n,r,c;return t("form",{key:"a8c9c71dfc532cbaccb93e1e7fe9f5ed58d40be9"},t("fieldset",{key:"53c46c01bcd3548aaaa898ff5e63811beaed8538"},t("div",{key:"63eef8979e6a650d48625b5ac851e6604ba24d03",class:"d-flex align-items-center gap-2"},t("legend",{key:"2f3ed670ae2a807e391c96ef1847f77b088ce4e6",class:"mb-0",part:d},"Representative"),t("form-control-tooltip",{key:"a05b200fd0e59e13dd7582509f8d45231a570dc5",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),t("hr",{key:"f3f74109eea8175e79033bd7e6dc8716c4661b45",class:"mt-2"}),t("div",{key:"b6c9b108849fd4b5c6437a2a252ccd28793aaf54",class:"row gy-3"},t("div",{key:"cf48fed5f8c489c1457610f92527fac6f1fc956d",class:"col-12 col-md-8"},t("form-control-text",{key:"a2284f90773a3acc17cfa36ff0ff5da3431e9fb1",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{key:"9d975f2c69ed84d60404223e80ba8980bfe20b2a",class:"col-12 col-md-4"},t("form-control-text",{key:"80805abffa658b8b6c4952e5be7af371ca73c615",name:"title",label:"Title",defaultValue:null===(a=this.representativeDefaultValue)||void 0===a?void 0:a.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),t("div",{key:"a62f04413d413545104fe541ebebfd11fb88bc1a",class:"col-12 col-md-6"},t("form-control-text",{key:"d3cae6a0a143790a236a5822051a002238105c0b",name:"email",label:"Email Address",defaultValue:null===(s=this.representativeDefaultValue)||void 0===s?void 0:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"7941c5d512ec57ab94f86066f80b0a5c19479040",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"3d117c5457a8b95ee1d8dcfbfba743eeabadb288",name:"phone",label:"Phone Number",defaultValue:null===(l=this.representativeDefaultValue)||void 0===l?void 0:l.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:V.US})),t("div",{key:"807b7ac6e655d854536a7e770e9d5bcc0388e6c3",class:"col-12 col-md-4"},t("form-control-date",{key:"ce18de4b882dae9b02a11c1f1ad7420604f49e54",name:"dob_full",label:"Birth Date",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>N(e,this.formController),helpText:"Must be 18 or older."})),t("div",{key:"ae2f1dca7ecc64e67d1faaf0e2bdb7bfb233f862",class:"col-12 col-md-8"},!(null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.ssn_last4)||this.isEditingIdentification?t("form-control-number-masked",{name:"identification_number",label:C[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:A[this.country],helpText:C[this.country].identityHelpText}):t("div",null,t("label",{class:"form-label",part:m},C[this.country].idNumberLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:v,value:`****${null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.ssn_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:k,onClick:()=>{this.isEditingIdentification=!0,j(this.formController,{identification_number:"",ssn_last4:null})}},"Change")))),t("div",{key:"755e3bf64ad60ff7801041bf17bdf96763a3153e",class:"col-12"},t("justifi-identity-address-form",{key:"a39d586db59a3f2072f66a22f5f4671c07a6b560",errors:this.errors.address,defaultValues:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},G=class{constructor(t){e(this,t),this.errorEvent=s(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=D({authToken:this.authToken,identityId:this.ownerId,service:new O}),this.patchOwner=F({authToken:this.authToken,identityId:this.ownerId,service:new O}),this.postOwner=B({authToken:this.authToken,service:new O}))}render(){return t("owner-form-core",{key:"d3765b80461f8222189643b378ae5d63886163c3",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,country:this.country,ref:e=>this.coreComponent=e})}};export{I as bank_account_document_form_inputs,L as bank_account_form_inputs,S as bank_account_form_inputs_canada,P as bank_account_read_only_value,E as business_documents_on_file,U as form_control_file,Y as justifi_business_representative_form_inputs,G as justifi_owner_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as a}from"./p-DwYM91AU.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-CVaOFfrI.js";import{_ as h,l as o,V as c,b as n,U as l,a as f}from"./p-QmGrQis7.js";import{F as p}from"./p-DQKNMVh7.js";import{F as d}from"./p-CpP3EZBK.js";import"./p-CZfYo5-1.js";const m=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=n),this.disabled&&(t=l),this.isFocused&&(t=f),t}render(){return i(a,{key:"5dc9ad5ec4f9af9bb4afec0d5265a35c52167721"},i("div",{key:"03efd5093d0176772bbcb070b8e580c1c027ed0e",class:"form-group d-flex flex-column"},i("label",{key:"153721fcb4f29fca302512ecc29b8bc30e5f6aa3",part:o,class:"form-label",htmlFor:this.name},this.label),i("div",{key:"16250c5429d1047febcdd056b55a38a09441fcbd",class:"input-group"},i("span",{key:"12d29ec8820f21bfa2ba7ae25217cb9bf3944cb8",class:"input-group-text",part:c},"$"),i("input",{key:"9eb4547dba64f8979b30e8d212b7e0576c3b4491",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),i(p,{key:"c6601c7cc606c915bf3c01535bd907d4990ea0ca",helpText:this.helpText,name:this.name}),i(d,{key:"89634f2156d5aae538e700f16554451120ec8a6d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{c as o,J as a}from"./p-MFnmyvti.js";import{T as n}from"./p-C0FpWzgU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{e as p}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as c,a as m}from"./p-D2muobcE.js";import{m as h,S as d}from"./p-Dp2W4Eq3.js";import{S as u}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-Qmo430x1.js";import"./p-CdVle3mx.js";import"./p-yyedWKWX.js";import"./p-B09GVew-.js";import"./p-BYsgavgS.js";import"./p-CYz0Hubu.js";import"./p-QmGrQis7.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:e,onSuccess:o,onError:a})=>{var n,h;try{const d=await i.fetchTerminals(t,s,e);if(d.error)return a({error:m(d.error),code:c(null===(h=d.error)||void 0===h?void 0:h.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);o({terminals:(null===(n=d.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=h({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"90d4ec28b49f0cca424bd1557d46600798455464"},i("terminals-list-core",{key:"b0b70bf95fa460d62a83e3b1182ec612c74fde8a",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e}from"./p-DwYM91AU.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-Uqevvbqm.js";import{y as l,z as d,A as o,B as p}from"./p-QmGrQis7.js";import{S as c}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{c as b}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";const n=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{s[a]=e}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([a,e])=>{e&&(i[a]=e)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:b.connected},{label:"Disconnected",value:b.disconnected},{label:"Unknown",value:b.unknown},{label:"Pending Configuration",value:b.pending_configuration},{label:"Archived",value:b.archived}]}render(){const a=Object.assign({},s);return e(c,{key:"08766d9dcbaa11721e3a56fb80347fea4f39cea6"},e("table-filters-menu",{key:"644b5a1e15536b7d047b681ebd0f2d95a4312723",params:a,clearParams:r,part:l},e("div",{key:"e97749c06d6d9ec620e312c0f7878bb427a6cf40",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"2b7946bac76d2f319f1c0b256f1fd1598c4c1cbd",class:"p-2"},e("form-control-text",{key:"4ad0250fa8c01a11be8ad617e21337b9b6d9b28d",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:d})),e("div",{key:"d0149ecb5a924affa4ea73a5662ebc1c5ef5f1b7",class:"p-2"},e("form-control-text",{key:"57c4b7357d3cabe20bb9389dcd68958e58c2269e",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:o})),e("div",{key:"9ebd5c80e05374f756f37881723159a45af24833",class:"p-2"},e("form-control-select",{key:"599d6db4f14233dd80a0a28436fbc6863f238047",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status||"",disabled:!!this.terminalStatus,part:p})))))}};export{n as justifi_terminals_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as r}from"./p-DwYM91AU.js";import{A as o}from"./p-yyedWKWX.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{E as p}from"./p-CJ4viNrp.js";import{c as h,J as c}from"./p-MFnmyvti.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-QmGrQis7.js";import"./p-CdVle3mx.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var p;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:n(h.error),code:a(null===(p=h.error)||void 0===p?void 0:p.code),severity:i.ERROR}):o(h.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:n(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{E as r}from"./p-CJ4viNrp.js";import{B as o}from"./p-DcHTywGe.js";import{m as e}from"./p-sCHf--Vc.js";import{C as p,a as m}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-MFnmyvti.js";import"./p-QmGrQis7.js";import"./p-yyedWKWX.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-CMTxbXEr.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-CdVle3mx.js";const a=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:p.ERROR});this.getBusiness=e({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-DwYM91AU.js";import{S as e}from"./p-BP2sTIQV.js";import{S as r}from"./p-CjxyejYl.js";import"./p-QmGrQis7.js";const a=class{constructor(t){s(this,t)}render(){return t(e,{key:"c7a5358801bf9e48ae87197b247c3e076967da3c"},t(r,{key:"6eedc5f6c918abc5ce1475aa9eb3fa4cd39a62d3",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{a as justifi_skeleton}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-CMTxbXEr.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as h,a as o,b as c,c as n,d as p,e as d,f as u,g as b,h as m,i as f,j as g,k as y,l as j}from"./p-gcRtE71H.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-BIzMmHpn.js";import{o as w,g as S}from"./p-BOqOio4U.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-QmGrQis7.js";import"./p-B10U2_Sw.js";import"./p-DUQxAYW4.js";import"./p-CYz0Hubu.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new h(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),w("set",(()=>{this.pagingParams={}})),w("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=S();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"94062c5bc5a174759e0705fa089c20c34ee61b8f"},e(o,{key:"5217dda6d11a02b302a40af4e190b3db6706a4ad"},e(c,{key:"1f8bd5d0cdb9e69dbcb89ef347be2011efe785e9"},e(n,{key:"32bc0417ea2249fe6563e9cd48e648ccfa681b5e"},this.payoutsTable.columnData.map((t=>t)))),e(p,{key:"0ff284085e9d4c740cc1fb39427666d7915208f0"},e(d,{key:"121ac7af0d7fda44557f8c76ae8092759f5b435b",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(u,{key:"55c7b0e941ce07936e89fa66583a44e9108cd036",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"ae9b7c0a9303eb35361c65abb986e3151c189d6d",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"ec4564de9797ca5a4b245c3133972b266a3ca5ad"},e(g,{key:"afe5d424d814b97721523e7f08846aa6af051ed7"},e(y,{key:"f0b90d96ccdbb4f5aac1948a49442fb96426e882",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"040d7d516bb82af3b37944f4f8503dc9e86581cb",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{v as payouts_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-DwYM91AU.js";import{i as s,e as i,d}from"./p-B09GVew-.js";import{a as c,b as f,D as o,c as r,C as l,E as b}from"./p-CJ4viNrp.js";import{B as h}from"./p-VodztElu.js";import{S as n}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{M as p}from"./p-DUQxAYW4.js";import{S as u}from"./p-CjxyejYl.js";import{a as y,B as v}from"./p-CYz0Hubu.js";import"./p-HXpYMWUU.js";import"./p-QmGrQis7.js";const m=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(u,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(u,{width:"70%"})),e("div",{class:"col-12"},e(u,{width:"40%"})),e("div",{class:"col-12"},e(u,{width:"40%"})),e("div",{class:"col-12"},e(u,{width:"100%"})),e("div",{class:"col-12"},e(u,{width:"80%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.recordClickEvent=a(this,"record-click-event"),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":s(e)}render(){var t;return e(n,{key:"e7f305bd19637c4bc8c1b706aa0b49437599641b"},this.loading&&e(m,{key:"355072c2a2c7c62aabcc54ffcee76ce2a2cdfc1b"}),!this.loading&&this.errorMessage&&b(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"fbd4cc39eff557f20cf3991324602a88838b3bdc","error-message":this.errorMessage},e(c,{key:"96ae2fe00aa26b55134c892be366f215d79efbf9",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},p(null===(t=this.payout)||void 0===t?void 0:t.status),e(y,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(f,{key:"9118e0cb814cd59163ad2674a04977dd1f926681",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${d(this.payout.updated_at)}`}),e(f,{key:"99175c520d6d82fdcc8bbfa16060ea641946cb97",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${d(this.payout.created_at)}`}),e(f,{key:"f2e114603965210a94039ea0cd665fa00dc695a6",title:"ID",value:this.payout.id}),e("div",{key:"20de4de0adf2ee5b57bbf2c3832dd9e7a5ccab55",class:"m-4"},e(h,{key:"0afbd4a8a284645c387038b666b7352ec5707d6e",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"d887b4b41b6fc0428dc0e8f91121fc868874ab74",slot:"detail-sections"},e(o,{key:"a33af330d6ce805d6ecdc8963f83d7fd01eef2ea",sectionTitle:"Details"}),e("div",{key:"636e75fde884baf783f369e760fbb7b62750f2f6",class:"d-flex flex-column gap-2 w-100"},e(r,{key:"0d598f8b58566c59284c2f76e2239a3a7545fcca",title:"Date paid",value:i(this.payout.deposits_at)}),e(r,{key:"3d0fa1a604679334cfe181a644f9741378cdada3",title:"Statement Description",value:this.payout.description}),e(r,{key:"dac3a81061ebb3b3070175b842c7d4fe1baf73ab",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(r,{key:"2961e9228da5691d0b692b4ea1eaf54467e8500a",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(r,{key:"6a40e96a1522eed74f237ffde99abe02051dbb5f",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(o,{key:"d5fd3d7cd562cc31d048c837ba36e747103c610a",sectionTitle:"Account"}),e("div",{key:"bb58759831060ed59f6fbe50db820298381d98b2",class:"d-flex flex-column gap-2 w-100"},e(r,{key:"2adf0597f9a487e8ad7bdd57f4c5fcdc05f69bde",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(r,{key:"a3addff1a01ed4dbc53e68dea5fd03ace767c23a",title:"Account Type",value:this.payout.bank_account.account_type}),e(r,{key:"97947b7cc511146f4c828afaef8b42301a9e08a6",title:"Institution",value:this.payout.bank_account.account_type}),e(r,{key:"e39face75b13ba3a13aad457410cffbdfdaaa030",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(r,{key:"c5022de4ad24fc4ea8b7f9d76c1aa4debaba64af",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(o,{key:"f064b3b64636ab4b152a497a5d8089d5e41c6f2b",sectionTitle:"Metadata"}),e("div",{key:"539c05f90549d9e21a6db627cdb1261a532e4916",class:"d-table gap-2 w-100"},e(l,{key:"a256c287df06c984d3abcb564e6c5de389534c58",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{k as payout_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as t,c as e,H as i}from"./p-DwYM91AU.js";import{C as r,a as n}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as c}from"./p-5aA7gjr5.js";import{B as d,a as l,D as u}from"./p-DcHTywGe.js";import{a as m,c as p,b as f}from"./p-giyZ3C4E.js";import{F as b,c as v,a as y,b as g,d as w}from"./p-DiJD6Iqx.js";import{A as _,C as k,e as j,R as C,f as x}from"./p-B5rtFhtR.js";import{C as T,P as O}from"./p-CVaOFfrI.js";import{G as S,ae as A,l as E,U as I}from"./p-QmGrQis7.js";import{S as L}from"./p-CjxyejYl.js";import"./p-CZfYo5-1.js";import{b as D,c as B}from"./p-CPpUGsw5.js";import{a as P,B as H}from"./p-XYgDHrVL.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{E as V,l as F,m as W}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{z as q,A as M,u as R,B as U,C as Y,D as z,E as G}from"./p-D032AB34.js";import{B as X}from"./p-VodztElu.js";import{c as N}from"./p-DfKxeSrC.js";import{i as Q,e as J}from"./p-DOcRWTul.js";import{A as K}from"./p-yyedWKWX.js";import"./p-D2muobcE.js";import"./p-BFTU3MAI.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";class Z{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.account_number=s.account_number,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.institution_number=s.institution_number,this.transit_number=s.transit_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.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||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const $=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(L,{width:"25%"})),s("div",{class:"col-12"},s(L,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(L,{width:"50%"}),s(L,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(L,{width:"65%"}),s(L,{width:"35%"}))),ss=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(L,{width:"40%",height:"40px"})),s($,null),s($,null),s($,null)),ts=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-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:s=>{this.additional_questions=new _(s.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t})),this.additional_questions=new _(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}recurringPaymentsWatcher(s){this.recurringPayments="Yes"===(null==s?void 0:s.business_recurring_payments)}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{additional_questions:new _(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new b(m(this.allowOptionalFields))}componentDidLoad(){this.getBusiness&&this.getData(),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var t,e,i,r;const n=this.formController.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Additional Questions"),s("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},s("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===(t=this.errors)||void 0===t?void 0:t.business_revenue,defaultValue:null==n?void 0:n.business_revenue,maskOptions:T.WHOLE})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{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==n?void 0:n.business_payment_volume})),s("div",{class:"col-12"},s("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:D,defaultValue:null==n?void 0:n.business_when_service_received})),s("div",{class:"col-12"},s("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===(r=this.errors)||void 0===r?void 0:r.business_other_payment_details,defaultValue:null==n?void 0:n.business_other_payment_details})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],additional_questions:["recurringPaymentsWatcher"]}}},es=(s,t)=>s.some((s=>s.document_type===t)),is=s=>s?{bank_name:Y.nullable(),nickname:U.nullable(),account_owner_name:R.nullable(),account_type:M.nullable(),account_number:q.nullable()}:{bank_name:Y.required("Enter bank name"),nickname:U.required("Enter nickname"),account_owner_name:R.required("Enter account owner name"),account_type:M.required("Select account type"),account_number:q.required("Enter account number")},rs=(s,t)=>{if(t)return{voided_check:g().nullable(),bank_statement:g().nullable()};const e=es(s,V.voidedCheck),i=es(s,V.bankStatement),r=e||i,n="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:g().when("bank_statement",{is:s=>!s&&!r,then:s=>s.required(n),otherwise:s=>s.notRequired()}),bank_statement:g().when("voided_check",{is:s=>!s&&!r,then:s=>s.required(n),otherwise:s=>s.notRequired()})}},ns={[k.USA]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},is(t)),(s=>s?{routing_number:G.nullable()}:{routing_number:G.required("Enter routing number")})(t)),rs(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s),[k.CAN]:(s,t=[])=>((s,t)=>{const e=Object.assign(Object.assign(Object.assign({},is(t)),(s=>{const t=y().length(3,"Institution number must be 3 digits").matches(z,"Enter valid institution number"),e=y().length(5,"Transit number must be 5 digits").matches(z,"Enter valid transit number");return s?{institution_number:t.nullable(),transit_number:e.nullable()}:{institution_number:t.required("Enter institution number"),transit_number:e.required("Enter transit number")}})(t)),rs(s,t));return v().shape(e,[["voided_check","bank_statement"]])})(t,s)},os=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new F,this.isLoading=!1,this.isAddingNewBankAccount=!0,this.getSchema=()=>(0,ns[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new b(this.getSchema()),this.formController.setInitialValues(this.isAddingNewBankAccount?{business_id:this.businessId}:Object.assign({},this.bankAccount)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new W({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{if(s.data.bank_accounts.length>0){const t=s.data.bank_accounts;this.bankAccount=new Z(t[t.length-1]),this.isAddingNewBankAccount=!1}else this.bankAccount=new Z({}),this.bankAccount.business_id=this.businessId;this.existingDocuments=s.data.documents},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.handleChangeBankAccount=()=>{this.isAddingNewBankAccount=!0,this.documentData=new F,this.initializeFormController()},this.handleCancel=()=>{this.isAddingNewBankAccount=!1,this.documentData=new F,this.initializeFormController()},this.handleSaveBankAccount=async()=>{this.formController.validateAndSubmit((()=>{this.sendData((()=>{}))}))},this.postDocumentRecordData=async s=>{this.isLoading=!0;const t=s.record_data;return new Promise((e=>{this.postDocumentRecord({payload:t,onSuccess:t=>{e(this.handleDocRecordResponse(s,t))},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:r.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await s.getFileData(),e=await fetch(s.presigned_url,{method:"PUT",body:t});return this.handleUploadResponse(e)},this.handleUploadResponse=s=>!s.error||(this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.error.message,severity:r.ERROR,data:s.error}),!1)}propChanged(){this.initializeApi()}watchHandler(s){this.formLoading.emit(s)}async validateAndSubmit({onSuccess:s}){this.existingBankAccount&&!this.isAddingNewBankAccount?this.sendData(s):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData(),this.formController=new b(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.postBankAccount=h({authToken:this.authToken,service:new l}),this.postDocumentRecord=c({authToken:this.authToken,service:new u})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}get postPayload(){const s=this.formController.values.getValue();return new Z(s).payload}get existingBankAccount(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}get showReadOnlyView(){return this.existingBankAccount&&!this.isAddingNewBankAccount}async sendData(s){try{if(this.isAddingNewBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;this.isAddingNewBankAccount&&(this.isAddingNewBankAccount=!1,await this.refreshBankAccountData()),s()}catch(s){this.errorEvent.emit({message:s,errorCode:n.POST_ERROR,severity:r.ERROR})}}async postBankAccountData(){let s;return this.isLoading=!0,new Promise((t=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:t=>{s=t,e=!0},onError:({error:s,code:t,severity:i})=>{e=!1,this.errorEvent.emit({message:s,errorCode:t,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:P.bankAccount}),this.isLoading=!1,t(e)}})}))}async refreshBankAccountData(){return new Promise((s=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{if(s.data.bank_accounts.length>0){const t=s.data.bank_accounts;this.bankAccount=new Z(t[t.length-1])}this.existingDocuments=s.data.documents,this.initializeFormController()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.isLoading=!1,s()}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const s=Object.values(this.documentData).flat();return!s.length||!(await Promise.all(s.map((s=>this.postDocumentRecordData(s))))).includes(!1)&&!(await Promise.all(s.map((s=>this.uploadDocument(s))))).includes(!1)}finally{this.isLoading=!1}}render(){const t=this.formController.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",{class:"mb-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Bank Account Info"),s("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."})),s("hr",{class:"mt-2"}),s(this.country===k.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:t,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.showReadOnlyView}),this.showReadOnlyView&&s("div",{class:"mt-3"},s(X,{variant:"secondary",type:"button",onClick:this.handleChangeBankAccount,disabled:this.isLoading,part:A},"Change Bank Account")),(!this.existingBankAccount||this.isAddingNewBankAccount)&&s("div",{class:"mt-3 d-flex gap-2"},this.isAddingNewBankAccount&&s(X,{variant:"secondary",type:"button",onClick:this.handleCancel,disabled:this.isLoading,part:A},"Cancel"),s(X,{variant:"primary",type:"button",onClick:this.handleSaveBankAccount,disabled:this.isLoading,isLoading:this.isLoading},"Save Bank Account"))),s("fieldset",{class:"mt-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Document Uploads"),s("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),s("hr",{class:"mt-2"}),s("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),s("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],isLoading:["watchHandler"]}}},as=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.coreInfo=new j(s.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s(),this.isEditingTaxId=!1},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return new j(this.formController.values.getValue()).payload}componentWillLoad(){this.initializeApi();const s=this.country===k.CAN?p(this.allowOptionalFields):f(this.allowOptionalFields);this.formController=new b(s),this.getData()}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var t,e;const i=this.formController.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Business Information")),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12"},s("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:i.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)."})),s("div",{class:"col-12"},s("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:i.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)"})),s("div",{class:"col-12 col-md-8"},s("form-control-select",{name:"classification",label:"Business Classification",options:B,defaultValue:i.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-4"},s("form-control-date",{name:"date_of_incorporation",label:"Date of Registration",defaultValue:i.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"industry",label:"Industry",defaultValue:i.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),s("div",{class:"col-12 col-md-6"},!(null===(t=this.coreInfo)||void 0===t?void 0:t.tax_id_last4)||this.isEditingTaxId?s("form-control-number-masked",{name:"tax_id",label:N[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:N[this.country].taxIdHelpText}):s("div",null,s("label",{class:"form-label",part:E},N[this.country].taxIdLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:I,value:`****${null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:A,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:"",tax_id_last4:null}))}},"Change")))),s("div",{class:"col-12"},s("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:i.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."})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"email",label:"Business Email Address",defaultValue:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:O.US})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},hs=class{constructor(s){t(this,s),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=(s,t)=>{const e=this.refs.findIndex((s=>s===t));-1!==e&&(this.refs[e]=s)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{s.data.owners.length?this.ownersPayload=s.data.owners.map((s=>({id:s.id}))):this.addOwnerForm()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=s=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],s&&this.clickEvent.emit({name:H.addOwnerForm})},this.removeOwnerForm=s=>{this.ownersPayload=this.ownersPayload.filter((t=>t.id!==s)),this.newFormOpen&&(this.newFormOpen=!1)}}propChanged(){this.initializeApi()}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((s=>s.id))}async validateAndSubmit({onSuccess:s}){const t=this.refs.map((s=>s.validate()));if(!(await Promise.all(t)).every((s=>s)))return;const e=this.refs.map((s=>s.submit()));(await Promise.all(e)).every((s=>s))&&this.sendData(s)}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(s){const t=s.detail,e=this.ownersPayload.map((s=>s.id===t.id?t:s));e.includes(t)||(e[this.ownersPayload.findIndex((s=>!s.id))]=t,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return s(i,null,this.isLoading?s(ss,null):s("div",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Owners"),s("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."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},this.ownersPayload.map((t=>s("justifi-owner-form",{key:t.id,authToken:this.authToken,businessId:this.businessId,ownerId:t.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,country:this.country,allowOptionalFields:this.allowOptionalFields,ref:s=>this.matchRef(s,t.id)})))),s("div",{class:"d-flex justify-content-start"},s("div",{class:"gap-2"},s(X,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner")))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],ownersPayload:["ownersWatcher"]}}},cs=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&this.formController&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.representative=new C(s.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.representative}),this.formLoading.emit(!1)}})}}propChanged(){this.initializeApi(),this.getData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.initializeApi(),this.initializeForm()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}initializeForm(){const s=Q[this.country];s?(this.formController=new b(s("representative",this.allowOptionalFields)),this.getData()):this.errorEvent.emit({message:"Missing schema for selected country",errorCode:n.MISSING_PROPS,severity:r.ERROR})}componentDidLoad(){this.formController&&this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get patchPayload(){return{representative:new C(this.formController.values.getValue()).payload}}render(){return!this.formController||this.isLoading?s(ss,null):s("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},ds=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:s.message,severity:r.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.termsPayload,e=await this.api.post({endpoint:this.termsConditionsEndpoint,body:t,authToken:this.authToken});this.handleResponse(e,s)}catch(s){this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.message,severity:r.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.acceptedTerms=t,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=K(),this.formController=new b((s=>{const t=v({accepted:w().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),e=v({accepted:w().nullable()});return s?e:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:n.POST_ERROR,message:s.error.message,severity:r.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:P.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:P.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return s("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return s("form",{key:"721f3c171358f9450a8b460dafac3c9f7f27727b"},s("fieldset",{key:"e151086c528d5e359e4ecd2c33feb01c5571a6ca"},s("legend",{key:"ff4ba3bead3ec50cf9736d6a864740e542f42b2d",part:S},"Terms and Conditions"),s("hr",{key:"c076bfe230bafbe8db7280f5f708de893c970bf2"}),s("div",{key:"d2a1e0f4e15077d07fe7de2cb847252990b44bde"},s("p",{key:"559c4c6d6e27b5fb800984e87097fe080482462d"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),s("br",{key:"014b3a7be231c81bd23c35ab212d7ac4e4c1d107"}),s("div",{key:"3ef38ecffd678c36c564836434f0a0da341116af",class:"row-gy-3"},s("div",{key:"e715723e19a212628d29fec46ca494b7080dac66",class:"col-12"},s("form-control-checkbox",{key:"6054f012fa3abacf6b9f6ffe7d7e88444d8a1066",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},ls=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{const t=new x((s.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},t),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:P.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{legal_address:new x(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new b((0,J[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){var t;const e=null===(t=this.formController)||void 0===t?void 0:t.getInitialValues();return this.isLoading?s(ss,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:S},"Legal Address of your Business"),s("form-control-tooltip",{helpText:"No PO Boxes."})),s("hr",{class:"mt-2"}),s("justifi-form-address-fields",{country:this.country,errors:this.errors,defaultValues:e,inputHandler:this.inputHandler})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},us=class{constructor(s){t(this,s)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return s("div",{key:"e13d3613af061d0067d1dbd84b6c3aebfc782aad",class:"d-flex gap-2"},s(X,{key:"7b422ce77e13872f3dbd622574bce0e3e6e9c2ed",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),s(X,{key:"ea1242fdccb0b0af2438f4aaab91e3e17a607ef7",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,H.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),s(X,{key:"0c323f533ea84608dcdabb885f69d71a81ec684b",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,H.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},ms=class{constructor(e){t(this,e),this.allowOptionalFields=!1,this.country=k.USA,this.componentStepMapping={0:()=>s("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>s("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>s("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>s("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>s("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>s("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),6:()=>s("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return s("div",{key:"dcf3f283bae7de00311f35e41b8d803196f50d49",class:"col-12 mb-4"},this.currentStepComponent)}};export{ts as justifi_additional_questions_form_step,os as justifi_business_bank_account_form_step,as as justifi_business_core_info_form_step,hs as justifi_business_owners_form_step,cs as justifi_business_representative_form_step,ds as justifi_business_terms_conditions_form_step,ls as justifi_legal_address_form_step,us as justifi_payment_provisioning_form_buttons,ms as justifi_payment_provisioning_form_steps}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-DwYM91AU.js";import{R as r}from"./p-QmGrQis7.js";const t=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:r},s("span",{class:"visually-hidden"},"Loading...")));export{t as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as r}from"./p-DwYM91AU.js";import{W as s}from"./p-QmGrQis7.js";const o=o=>r("h3",{class:`header-3 ${null==o?void 0:o.class}`,part:s},o.text);export{o as H}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as t}from"./p-yyedWKWX.js";import"./p-Cjcsf8ku.js";import"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const a=t();class n{async fetchPayouts(t,n,s){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:s})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,s){return a.get({authToken:n,endpoint:"balance_transactions",params:s,headers:{"sub-account":t}})}}export{n as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./p-B09GVew-.js";import{a as s}from"./p-BH0Xfn-F.js";class i{constructor(t){this.payment_mode=h[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class e{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=a[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var t,s,i,e,n,a;let r;if(!this.completions||0===this.completions.length)return h.unknown;const o=this.completions.sort(((t,s)=>new Date(s.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return o.payment_mode?r=o.payment_mode:(null===(i=null===(s=null===(t=o.payment_response)||void 0===t?void 0:t.data)||void 0===s?void 0:s.payment_method)||void 0===i?void 0:i.card)?r=h.card:(null===(a=null===(n=null===(e=o.payment_response)||void 0===e?void 0:e.data)||void 0===n?void 0:n.payment_method)||void 0===a?void 0:a.bank_account)&&(r=h.bank_account),r}formattedPaymentAmount(s){return t(s,this.payment_currency)}}var h,n,a,r,o,d,c,u,l,f,p,m,_,y,v,g,w,b,P,A,k,C,F,j;!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.apple_pay="Apple Pay",t.unknown=""}(h||(h={})),function(t){t.bnpl="bnpl",t.ecom="ecom",t.apple_pay="apple_pay"}(n||(n={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(a||(a={})),function(t){t.failed="failed",t.succeeded="succeeded"}(r||(r={})),function(t){t.automatic="automatic",t.manual="manual"}(o||(o={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.plaid="plaid",t.applePay="applePay"}(d||(d={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(c||(c={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(u||(u={})),function(t){t.usd="usd",t.cad="cad"}(l||(l={}));class B{constructor(t){this.card=t.card?new E(t.card):void 0,this.bank_account=t.bank_account?new D(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class D{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class E{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class T{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new B(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===s.lost));return this.disputed?t?s.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?c.card:c.bankAccount:c.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(f||(f={}));class x{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===f.paymentFee||this.payment_balance_txn_type===f.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(p||(p={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(m||(m={}));class z{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(_||(_={}));class I{constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration",t.archived="archived"}(y||(y={})),function(t){t.verifone="verifone"}(v||(v={}));class S{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(g||(g={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(w||(w={}));class q{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||v.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,s)=>t+s.quantity),0)}updateTerminal(t,s){if(0===s)return void(this.order_items=this.order_items.filter((s=>s.model_name!==t)));const i=this.order_items.find((s=>s.model_name===t));i?i.quantity=s:this.order_items.push({model_name:t,quantity:s})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(b||(b={}));class H{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(P||(P={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(A||(A={}));class N{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other"}(k||(k={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(C||(C={}));class R{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class U{constructor(t,s){this.fileData=null,this.file=t.file,this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:s,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}async getFileData(){if(this.fileData)return this.fileData;const t=new Promise(((t,s)=>{const i=new FileReader;i.onload=s=>{this.fileData=s.target.result,t(this.fileData)},i.onerror=()=>{s(new Error("Error reading file"))},i.readAsArrayBuffer(this.file)}));return await t}setPresignedUrl(t){this.presigned_url=t}}!function(t){t.succeeded="succeeded",t.failed="failed"}(F||(F={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(j||(j={}));class ${constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}export{e as C,k as E,a as I,T as P,j as R,N as S,w as T,n as a,g as b,y as c,z as d,S as e,u as f,x as g,I as h,q as i,H as j,$ as k,R as l,U as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"@justifi/webcomponents",version:"6.6.0"};export{e as p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-DwYM91AU.js";import{G as t}from"./p-QmGrQis7.js";import{c as a}from"./p-BYsgavgS.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:e,on:i}=o,n=a({}),{state:p}=n,l={},m=()=>{let s=!0;return Object.keys(e).forEach((t=>{null===e[t]?(p[t]=!0,s=!1):p[t]=!1})),{isValid:s}},c=(s,t)=>{const a=l.hasOwnProperty(s),r=l[s];if(!a)return l[s]=t,!1;const o=r!==t;return o&&(l[s]=t),o};export{r as H,p as a,i as b,c as h,e as i,m as v}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{C as s}from"./p-QmGrQis7.js";const e=({component:e="div",height:r,width:i,className:o,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:i,height:r});return t(e,{class:`${o} skeleton`,style:c,part:s,"aria-hidden":"true"})};export{e as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as r}from"./p-DwYM91AU.js";import{E as t}from"./p-QmGrQis7.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a,t,s;!function(a){a.ECOM="ecom",a.BNPL="bnpl",a.APPLE_PAY="apple_pay"}(a||(a={})),function(a){a.CARD="card",a.BANK_ACCOUNT="bank_account",a.APPLE_PAY="apple_pay",a.GOOGLE_PAY="google_pay",a.SEZZLE="sezzle",a.PLAID="plaid"}(t||(t={})),function(a){a.SAVED_CARD="saved_card",a.NEW_CARD="new_card",a.SAVED_BANK_ACCOUNT="saved_bank_account",a.NEW_BANK_ACCOUNT="new_bank_account",a.APPLE_PAY="apple_pay",a.GOOGLE_PAY="google_pay",a.SEZZLE="sezzle",a.PLAID="plaid"}(s||(s={}));class e{constructor(a){this.id=a.id,this.type=(a=>{switch(a){case t.CARD:return s.SAVED_CARD;case t.BANK_ACCOUNT:return s.SAVED_BANK_ACCOUNT;default:return a}})(a.type),this.status=a.status,this.invalid_reason=a.invalid_reason,this.name=a.name,this.brand=a.brand,this.acct_last_four=a.acct_last_four,this.account_type=a.account_type,this.month=a.month,this.year=a.year,this.address_line1_check=a.address_line1_check,this.address_postal_code_check=a.address_postal_code_check,this.bin_details=a.bin_details}}export{s as P,e as a,a as b}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{D as r}from"./p-QmGrQis7.js";const e=e=>{const{helpText:m,name:s}=e;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${s}`,part:r},m):null};export{e as F}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./p-BYsgavgS.js";import{P as n}from"./p-DCIW8z1f.js";const a={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,applePayEnabled:!1,insuranceEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",checkoutLoaded:!1,bankAccountVerification:void 0,disableBankAccount:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,paymentCurrency:"USD",paymentDescription:"",paymentMethodGroupId:void 0,paymentMethods:[],paymentToken:void 0,savePaymentMethod:!1,selectedPaymentMethod:void 0,totalAmount:0,plaidPublicToken:void 0,plaidLinkTokenId:void 0},{state:o,onChange:t}=e(a);function d(){var e;const a=[];if(!o.disablePaymentMethodGroup&&(null===(e=o.paymentMethods)||void 0===e?void 0:e.length)){const e=o.paymentMethods.some((e=>e.type===n.SAVED_CARD)),t=o.paymentMethods.some((e=>e.type===n.SAVED_BANK_ACCOUNT));e&&!o.disableCreditCard&&a.push(n.SAVED_CARD),t&&!o.disableBankAccount&&a.push(n.SAVED_BANK_ACCOUNT)}return o.disableCreditCard||a.push(n.NEW_CARD),o.disableBankAccount||a.push(n.NEW_BANK_ACCOUNT),o.bnplEnabled&&a.push(n.SEZZLE),o.applePayEnabled&&a.push(n.APPLE_PAY),!0!==o.bankAccountVerification||o.disableBankAccount||a.push(n.PLAID),a}function i(){var e;return{selectedPaymentMethod:o.selectedPaymentMethod,paymentAmount:o.paymentAmount,totalAmount:o.totalAmount,paymentCurrency:o.paymentCurrency,paymentDescription:o.paymentDescription,savedPaymentMethods:o.paymentMethods,savePaymentMethod:o.savePaymentMethod,bnplEnabled:o.bnplEnabled,applePayEnabled:o.applePayEnabled,insuranceEnabled:o.insuranceEnabled,disableBankAccount:o.disableBankAccount,disableCreditCard:o.disableCreditCard,disablePaymentMethodGroup:o.disablePaymentMethodGroup,paymentToken:null!==(e=o.paymentToken)&&void 0!==e?e:void 0}}function r(e){Object.keys(a).forEach((n=>{t(n,(a=>e(n,a)))}))}Object.keys(a).forEach((e=>{t(e,(n=>{o[e]=n}))}));export{i as a,t as b,o as c,d as g,r as o}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as o}from"./p-yyedWKWX.js";import{C as r}from"./p-Cjcsf8ku.js";import{S as s}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{g as t,a as c}from"./p-D2muobcE.js";const n=o();class a{async fetchSubAccounts(o,r,s){return n.get({authToken:r,endpoint:"sub_accounts",params:s,headers:{Account:o}})}}const e=({accountId:o,authToken:n,service:a})=>async({params:e,onSuccess:p,onError:i})=>{var u,m;try{const d=await a.fetchSubAccounts(o,n,e);if(d.error){return i({error:c(d.error),code:t(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR})}{const o=Object.assign({},d.page_info);p({subAccounts:(null===(u=d.data)||void 0===u?void 0:u.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const s=t(null==o?void 0:o.code);return i({error:o.message||o,code:s,severity:r.ERROR})}};export{a as S,e as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{M as a}from"./p-KS3Bf_2D.js";import{a as e}from"./p-B09GVew-.js";import{S as r,T as o}from"./p-QmGrQis7.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={created_at:()=>t("th",{part:r,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:r,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:r,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:r,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:r,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:r,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:r,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:r,scope:"col",title:"The brand of the payment method"},"Card Brand")},n={created_at:(a,r)=>t("td",{part:o(r)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:o(e)},a.formattedPaymentAmount(a.amount)),status:(e,r)=>t("td",{part:o(r)},a(e.status)),payment_type:(a,e)=>t("td",{part:o(e)},a.payment_type),description:(a,e)=>t("td",{part:o(e)},a.description),payers_name:(a,e)=>t("td",{part:o(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:o(e)},a.last_four_digits),card_brand:(a,e)=>{var r,s,p;return t("td",{part:o(e)},(p=(null===(r=a.payment_method.card)||void 0===r?void 0:r.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as r}from"./p-DwYM91AU.js";import{F as s}from"./p-QmGrQis7.js";const o=o=>r("h1",{class:`header-1 ${null==o?void 0:o.class}`,part:s},o.text);export{o as H}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`link text ${a}`,p=`button ${e}`,m=`button-primary ${p}`,u=`button-secondary ${p}`,c=`button-link ${p}`,b="button-loading",f=`label ${e}`,g=`input ${e} ${t}`,h=`input-group ${g}`,y=`input-invalid ${g}`,k=`input-disabled ${g}`,x=`input-focused ${g}`,v=`input-invalid-and-focused ${g}`,w="input-radio",j=`input-radio-focused ${w}`,q=`input-radio-checked ${w}`,z=`input-radio-checked-focused ${w}`,A=`input-radio-invalid ${w}`,B="input-checkbox",C=`input-checkbox-invalid ${B}`,D=`input-checkbox-focused ${B}`,E=`input-checkbox-checked ${B}`,F=`input-checkbox-checked-focused ${B}`,G=`input-adornment ${e}`,H=`alert-danger alert ${e}`,I=`tooltip ${e}`,J=`tooltip-icon ${e}`,K=`tooltip-inner ${e}`,L=`card ${e} ${t}`,M=`table ${e} ${t}`,N=`table-row ${e} ${t}`,O=`table-cell ${e} ${t}`,P="table-head",Q=`table-head-row ${e} ${t}`,R=`table-head-cell ${O}`,S="table-foot",T=`table-foot-row ${e} ${t}`,U=`table-foot-cell ${O}`,V=`table-cell-even ${O}`,W=`table-cell-odd ${O}`,X=a=>a%2?V:W,Y=`table-empty ${e} ${t}`,Z=`table-error ${e} ${t}`,_=`pagination-button ${p}`,aa=`pagination-button-disabled button-disabled ${p}`,ta=`pagination-button-text ${e}`,ea=`pagination-button-icon ${e}`,sa=`pagination-button-icon-next ${ea}`,ia=`pagination-button-icon-previous ${ea}`,ra="loading-spinner",la=`badge ${a}`,na=`${la} badge-primary`,oa=`${la} badge-secondary`,$a=`${la} badge-success`,da=`${la} badge-danger`,pa=`${la} badge-warning`,ma=`${la} badge-info`,ua=`${la} badge-light`,ca=`${la} badge-dark`,ba=`dropdown-menu ${e}`,fa=`dropdown-menu-button ${m}`,ga=`radio-list-item ${e}`,ha="skeleton",ya="image",ka="billing-form",xa="checkout-summary",va="filter-menu",wa=`${va} payments-list-filter-menu`,ja="payments-list-filter-param",qa=`${ja} payment-id-payments-list-filter-param`,za=`${ja} terminal-id-payments-list-filter-param`,Aa=`${ja} payment-status-payments-list-filter-param`,Ba=`${ja} created-after-payments-list-filter-param`,Ca=`${ja} created-before-payments-list-filter-param`,Da=`${va} payouts-list-filter-menu`,Ea="payouts-list-filter-param",Fa=`${Ea} created-after-payouts-list-filter-param`,Ga=`${Ea} created-before-payouts-list-filter-param`,Ha=`${va} checkouts-list-filter-menu`,Ia="checkouts-list-filter-param",Ja=`${Ia} checkout-status-checkouts-list-filter-param`,Ka=`${Ia} payment-mode-checkouts-list-filter-param`,La=`${va} terminals-list-filter-menu`,Ma="terminals-list-filter-param",Na=`${Ma} terminal-id-terminals-list-filter-param`,Oa=`${Ma} terminal-order-id-terminals-list-filter-param`,Pa=`${Ma} terminal-status-terminals-list-filter-param`,Qa=`${va} terminal-orders-list-filter-menu`,Ra="terminal-orders-list-filter-param",Sa=`${Ra} order-status-terminal-orders-list-filter-param`,Ta=`${Ra} order-type-terminal-orders-list-filter-param`,Ua=`${Ra} created-after-terminal-orders-list-filter-param`,Va=`${Ra} created-before-terminal-orders-list-filter-param`;export{C as $,Oa as A,Pa as B,ha as C,e as D,s as E,r as F,l as G,d as H,ca as I,ua as J,ma as K,pa as L,da as M,$a as N,oa as O,na as P,la as Q,ra as R,R as S,X as T,k as U,G as V,n as W,ya as X,c as Y,L as Z,h as _,x as a,F as a0,D as a1,E as a2,B as a3,A as a4,z as a5,q as a6,j as a7,w as a8,_ as a9,aa,ia as ab,ta as ac,sa as ad,u as ae,m as af,b as ag,fa as ah,ba as ai,o as aj,ka as ak,$ as al,M as am,P as an,Q as ao,N as ap,S as aq,T as ar,U as as,Y as at,Z as au,O as av,H as aw,I as ax,K as ay,J as az,y as b,g as c,xa as d,Ha as e,wa as f,qa as g,Aa as h,v as i,Ba as j,Ca as k,f as l,Da as m,Fa as n,Ga as o,Ka as p,Qa as q,ga as r,Ja as s,za as t,Sa as u,Ta as v,Ua as w,Va as x,La as y,Na as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-DwYM91AU.js";import{ae as r,af as a,ag as n}from"./p-QmGrQis7.js";const t=(t,o)=>s("button",Object.assign({class:`btn btn-${t.variant}`,onClick:t.clickHandler,part:`${{primary:a,secondary:r}[t.variant]} ${t.isLoading?n:""}`},t),t.isLoading?s("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},s("span",{class:"visually-hidden"},"Loading...")):o);export{t as B}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as i,r as s,c as t}from"./p-DwYM91AU.js";import{al as e,aj as r,af as o,D as l}from"./p-QmGrQis7.js";import{S as d}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-MFnmyvti.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as v}from"./p-DcHTywGe.js";import{B as u}from"./p-B5rtFhtR.js";import{m as p}from"./p-sCHf--Vc.js";import{S as m}from"./p-CjxyejYl.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{j as f,i as w,b as x}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as y,a as g}from"./p-D2muobcE.js";import{T as j}from"./p-C0FpWzgU.js";import{k as b}from"./p-B09GVew-.js";import"./p-CdVle3mx.js";import"./p-yyedWKWX.js";import"./p-BYsgavgS.js";const C=()=>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%"}))),S=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(C,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)))))),T=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?x.boardingShipping:x.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(){p({id:this.businessId,authToken:this.authToken,service:new v})({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:g(a.error),code:y(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 f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=y(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 j})({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:g(d.error),code:y(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=y(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new j});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(S,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,b(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:"d51dd6f3d59f987c8c8ee53f6f3b708f589c952b"},i("div",{key:"15f682c9b0026e66a46644f5c6564c32f9a11636",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{T as justifi_order_terminals}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CMTxbXEr.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as b,j as u,k as f,l as g}from"./p-gcRtE71H.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-Qmo430x1.js";import{o as k,g as C}from"./p-Uqevvbqm.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-QmGrQis7.js";import"./p-B10U2_Sw.js";import"./p-CYz0Hubu.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"88b4eb0cd55f0a1fbad0c5e877fb3619b50c2723"},e(r,{key:"a36263fde8baf22dd073ad4d4f068eb277e83ee8"},e(h,{key:"549b77d4a69e1db447faed7fa080342d64d965d7"},e(o,{key:"f317872464002efdccba4c4d7f674c74bbfcbbd0"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"c7ab98aaef3ff495b34bb8a656ebd722e256343c"},e(n,{key:"90e3b87dab3d29c48fc893d5bfc68c0961e42b9c",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"c0a19d89566128a1456c4a069519da694f034947",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"9f684369eb17da5ceefc2f49a8930213eb49c37a",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"1e6024f718571717156c0856175529236453c394"},e(u,{key:"f44d637589cd1ede9a7417b3b66ae70999e8bdf9"},e(f,{key:"ed68613d20c6a6f01d54b31613e598825703f99e",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"7b071169c52042eea2352608ad67cc6d8470dc8b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as r}from"./p-DwYM91AU.js";import{P as i}from"./p-H_emngUs.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{P as p}from"./p-CMTxbXEr.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c as m,J as d}from"./p-MFnmyvti.js";import{S as c}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{d as h}from"./p-GenVH2BR.js";import"./p-yyedWKWX.js";import"./p-B09GVew-.js";import"./p-BYsgavgS.js";import"./p-CdVle3mx.js";import"./p-KS3Bf_2D.js";import"./p-CYz0Hubu.js";import"./p-QmGrQis7.js";const u=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.columns=h,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){m(),this.analytics=new d(this),this.initializeGetPayments()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:s,authToken:t,service:r})=>async({params:i,onSuccess:e,onError:m,final:d})=>{var c,h;try{const d=await r.fetchPayments(s,t,i);if(d.error)return m({error:n(d.error),code:a(null===(h=d.error)||void 0===h?void 0:h.code),severity:o.ERROR});{const s=Object.assign({},d.page_info);e({payments:(null===(c=d.data)||void 0===c?void 0:c.map((s=>new p(s))))||[],pagingInfo:s})}}catch(s){const t=a(null==s?void 0:s.code);return m({error:s.message||s,code:t,severity:o.ERROR})}finally{return d()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(c,{key:"dd147d100660d274dded274c741df2d64e17ab1b"},r("payments-list-core",{key:"51473c93dea52b21200816f3a56495a1760ade3b",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payments_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-DwYM91AU.js";import{c as t,a as i,F as c}from"./p-DiJD6Iqx.js";import{al as d}from"./p-QmGrQis7.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"3c0edd8c0d1b4e20b4673e721ae05c34e070e2c6"},a("div",{key:"e95625382e55164401b28c6d3d253d775b7ccc87",class:"row gy-3"},a("div",{key:"bce8e334130812bb6d896e48d72f8a7347a58753",class:"col-12"},a("h2",{key:"d6d11c29baf12c36d90505f44cbba6139828cc41",class:"h5",part:d},"Additional Evidence")),a("div",{key:"11cba2151220a3bb5dc39c231792b2733033f2ee",class:"col-12"},a("form-control-textarea",{key:"e60e1810cb82b6daf8c61aa4ae21ead48d6794f5",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"e745eabe5b5a38485877904d7b0e3fc16583e00e",class:"col-12"},a("form-control-file-v2",{key:"f88b588cfe46d4d4f904b8c7008272ee0b0fffed",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"7388c0a12447da31a25aeb4d374a4bcca26ae664"},a("div",{key:"adcc0256ebec43aac7ba65a8e35daf6e6923de25",class:"row gy-3"},a("div",{key:"f8f12898acdd5dadac559d9c967af69cbb071147",class:"col-12"},a("h2",{key:"546b58f9ef57f21743625a54c960762b990977eb",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"10032390cfca9d783ee71c4546f7562b59596806",class:"col-12"},a("form-control-textarea",{key:"62afbd3d92193e954ec72808eafb8643e0d8c8d3",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"df29b379fdacf3c74111952eb9ed7c20b6fbb1ed",class:"col-12"},a("form-control-textarea",{key:"8c34fddf37bd4f03e1ff8f974e35dc88a865a3cf",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"89dd8b79755ae4ab2ad203887cd928b4a9ce35e2",class:"col-12"},a("form-control-file-v2",{key:"0818e57a22be5a73f74a02575ac802cfe3b4de35",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"539e3799c613e2220ef11e3bd19457fa04610c4b"},a("div",{key:"9f612621bd98060cb407cf2d628903733d6517f2",class:"row gy-3"},a("div",{key:"de829fd15e9ae4b044a96c8addaabb8cd63224c4",class:"col-12"},a("h2",{key:"a4805da605e259ca9450da2c7fc652848ae58c80",class:"h5",part:d},"Customer Details")),a("div",{key:"1cf94d2b9a71c4728ebf4b8c92a8e91eba490e16",class:"col-12"},a("form-control-text",{key:"bf1c4eaf372b919dea002c4a7a15c6748e12adff",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"8b7b472e818795a015984ce06d3a44c9a6bf3bfb",class:"col-12"},a("form-control-text",{key:"845cc2af35390837d63f628f78d4c866f1bbae85",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"2e7122420d04961f5cc48d4dffc4eb3a881f2727",class:"col-12"},a("form-control-textarea",{key:"80177b3e9b57cc750ab02e30694e33fbf3ef526a",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"96c32ff3b76326f54cc2462ef6c47c87ba46504a",class:"col-12"},a("form-control-file-v2",{key:"3aec29d7e7e05a3d796ba7e57ec153b05267eec6",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"7d519c613f67229f2785511f4e16c4a74ceba73f",class:"col-12"},a("form-control-file-v2",{key:"0fbf23107e1a61f47b2ea16ecf3cdffcb64a1294",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"1fe6bcfa95691c4d41a0e79ce27b88acd827f9fa"},a("div",{key:"7700ba0630b46af2150c3b1ca838b19d67da1fd7",class:"row gy-3"},a("div",{key:"eb9662311f410d86ceb123b246e8b5ea792833de",class:"col-12"},a("h2",{key:"2e087f69f8204296316a0c2c1a60ebbbeadc876b",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"b5b6b23d6612151a53d2c199bf9f88ecd8c62f14",class:"col-12"},a("form-control-text",{key:"5d523482e67118204327a7cc5a9c807ac19b6ea0",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"656420be3d4d40375313be0261c718c32a14f9ef",class:"col-12"},a("form-control-textarea",{key:"dd1b5b86d5f5d8a89b36b3dce0bb7edf37331af5",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"d44f26e1ad785a2cc562506b451fbd1bd3695cf2",class:"col-12"},a("form-control-file-v2",{key:"c1f49fcee8b4a74c097ebed3153cdccf546ae886",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"be4423ae29984754d400422e27b56c6b7bdff386"},a("div",{key:"d07d55b631f4daf63f775a9e4afb06958c6186e6",class:"row gy-3"},a("div",{key:"ed012d7b827c7764e691723129ee758c249f4000",class:"col-12"},a("h2",{key:"6a55a9f39eb70b923cae3e5bd28fb8690628371f",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"c6745caeac03e79e14cb24568b624ddfaf8d2daf",class:"col-12"},a("form-control-text",{key:"388e03ac3a0b870343446f54525c046611f79e95",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"3830fc3a579d5aef3a7089a119c36f4dd8fe3a90",class:"col-12"},a("form-control-file-v2",{key:"6d52bb2b80d20794465e07a8cc5292ffd8c4130f",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"f7b24599316e8545d61370c50d28cbf5e0d90985"},a("div",{key:"d1edc60194b573078d5701a14e16ef0dd8f6b45d",class:"row gy-3"},a("div",{key:"4b7e12eb4a9b41b30d7c85334691136280679210",class:"col-12"},a("h2",{key:"b9e3721e4ff6610da877f49e263ef84b86cd81ea",class:"h5",part:d},"Product & Service Details")),a("div",{key:"3c41a068f079d52b88dec1cbe99769be2d793479",class:"col-12"},a("form-control-text",{key:"6419cf35e1d66d332c9dd1fde772446ef4a640f8",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"813b82430e9e4d4a4fb4a025c7eb5eb1d348fb5d",class:"col-12"},a("form-control-date",{key:"2ed13c96f745e792728c11df4a443a26eb48cbc3",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"139ed67db44d68e1da8c6b702b5ea2d292c2635b",class:"col-12"},a("form-control-file-v2",{key:"19affd0336fa51e9c61321047589b8e8ea4b977e",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"0c86a73ee59ff870697d7cf13960f5019a24e2f6"},a("div",{key:"c7f62c366ea4a58512e7c358102defc1c39d50e8",class:"row gy-3"},a("div",{key:"a1a3ba7c17fa360c1ae3831067c75ed3f0bb523e",class:"col-12"},a("h2",{key:"b62d1a0d7901d708cb1ee6225cab267957339c19",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"49ad044dc2881fbcba27edb55e078bd3552411b8",class:"col-12"},a("form-control-textarea",{key:"91e4ac8355528c7d120008efec472555865ea0e1",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"610629a4df918fd3679c7286a2d7ed97755ec4c6",class:"col-12"},a("form-control-textarea",{key:"1b4206d54188e8d1134780394c6af28ed9d41297",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"bdf898c3fd62a4c838f242c289428f2ecad5046b",class:"col-12"},a("form-control-file-v2",{key:"cf319792746ac3e3046aa03a651f0a364c78c992",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"1e4941fe09fba3fe8f0b143d1be0c421a4d076e4",class:"col-12"},a("form-control-file-v2",{key:"e297ef6d361fd57ca990df8ff48dd7840a460153",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"02607c4291d3eac86ca3d81c60c1c6bfa3f01aea"},a("div",{key:"c00430c399836af38a5af6aaa137e1aa4c81ee5d",class:"row gy-3"},a("div",{key:"981183064fd9cb7f26356b4df4ec2ef92b9a786d",class:"col-12"},a("h2",{key:"0b56af4d68b1198bd8bd8e2b3dd3f1fa2712f671",class:"h5",part:d},"Shipping Details")),a("div",{key:"a46018576927e599614156f003c2f6c8f4c16f78",class:"col-12"},a("form-control-text",{key:"30dd796ebe55b8b6923a113014dc198463973e29",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"99d3d0866a39c1317f2ab0e0a9f9a78d97740821",class:"col-12"},a("form-control-text",{key:"86099d14d243209f856b7810c5ff1077160a2ba8",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"6b8ea2ce1b82befc9d4e3ba99a01a41ffaaf4b77",class:"col-12"},a("form-control-date",{key:"aa351477f4ed239ab4957950566f8ba0f3f3d801",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"e0382bc7aec5a61bdaf92946b62c55288a658329",class:"col-12"},a("form-control-textarea",{key:"12ef3ad5e0d988acc001de5f24fa4f2933b4325d",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"a8752e33ee9ad628075815c9c6ddbb98dc56adca",class:"col-12"},a("form-control-file-v2",{key:"4366911f74af44c5950e8e4870d5b5aac3927f62",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as e}from"./p-H_emngUs.js";import{m as r}from"./p-E8uzhk39.js";import{E as o}from"./p-CJ4viNrp.js";import{C as p,a as h}from"./p-Cjcsf8ku.js";import{c as a,J as m}from"./p-MFnmyvti.js";import"./p-yyedWKWX.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-B09GVew-.js";import"./p-HXpYMWUU.js";import"./p-CMTxbXEr.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-QmGrQis7.js";import"./p-CdVle3mx.js";const n=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.recordClickEvent=s(this,"record-click-event"),this.errorMessage=null,this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){a(),this.analytics=new m(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=r({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
|