@justifi/webcomponents 6.12.0 → 6.12.1-rc.2
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/{Analytics-DZCXB2Za.js → Analytics-DN1vWC6J.js} +2 -3
- package/dist/cjs/{Plaid-DR9WDZ98.js → Plaid-6JK8xPnG.js} +47 -14
- package/dist/cjs/{additional-questions-form-step_9.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +451 -58
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-read-only-value.cjs.entry.js +15 -0
- package/dist/cjs/{business.service-mliLE8kX.js → business.service-XXjIL3rT.js} +1 -2
- package/dist/cjs/card-form.cjs.entry.js +4 -4
- package/dist/cjs/{check-pkg-version-CUhnNGii.js → check-pkg-version-DKEv2rPI.js} +1 -1
- package/dist/cjs/{checkout.service-Cok0vRot.js → checkout.service-BUpGS3Nm.js} +1 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +2 -3
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-DEH_I2G9.js → dispute.service-BC_bJL60.js} +1 -2
- package/dist/cjs/form-address-fields_3.cjs.entry.js +3 -3
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +59 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-DF-XBH8G.js → get-business-Dk1gjO4B.js} +4 -4
- package/dist/cjs/{get-payment-details-DNpOyUyR.js → get-payment-details-Cvi1hHGJ.js} +4 -5
- package/dist/cjs/{get-payout-csv-DE_D9y08.js → get-payout-csv-CFsWBUNg.js} +3 -3
- package/dist/cjs/{get-subaccounts-BQW_RPW5.js → get-subaccounts-BPJ2-LBo.js} +4 -5
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +60 -59
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -7
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -13
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +13 -14
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +19 -20
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +9 -10
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -15
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +134 -18
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -15
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -14
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -12
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CJg8qLYd.js → package-EwQYAMPH.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -10
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-J6TGZZb9.js → payment-provisioning-actions-DscyasDY.js} +18 -18
- package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +52 -0
- package/dist/cjs/{payment.service-Dl9UExDw.js → payment.service-DC2FVlv-.js} +1 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +2 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-kaFewwx4.js → payout.service-Bjbt6USA.js} +1 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -5
- package/dist/cjs/{plaid.service-CK1ouCBC.js → plaid.service-C0ZgOkwL.js} +1 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -4
- package/dist/cjs/{terminal-orders-table-07fV7wGh.js → terminal-orders-table-j_IoYD-2.js} +1 -2
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-UUoIe0IR.js → terminal.service-YAuPfEGz.js} +1 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +2 -3
- package/dist/cjs/{utils-DvUQQLmR.js → utils-C4CgQd55.js} +4 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/ApplePay.js +4 -0
- package/dist/collection/api/services/apple-pay.service.js +1 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +181 -10
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/justifi-checkout.js +2 -2
- package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-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 +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.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/justifi-additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/justifi-shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-notification.js +2 -2
- 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/justifi-modular-checkout.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -0
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/order-terminals/justifi-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/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- 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/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- 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 +11 -320
- package/dist/esm/{Analytics-C2EVi4Am.js → Analytics-Ds-ogIwt.js} +3 -4
- package/dist/esm/{Api-DI0-itk3.js → Api-BrYhtpEh.js} +1 -1
- package/dist/esm/{Plaid-vwPGZ5y4.js → Plaid-D40pFwwP.js} +36 -3
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{additional-questions-form-step_9.entry.js → additional-questions-form-step_14.entry.js} +423 -35
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +2 -2
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/bank-account-read-only-value.entry.js +13 -0
- package/dist/esm/{business.service-M3YvwC-d.js → business.service-Bt68Uk7V.js} +2 -3
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-qIHmWcbI.js → check-pkg-version-Bd_MOwNP.js} +1 -1
- package/dist/esm/{checkout.service-DdIBmfsp.js → checkout.service-B7K5LRx2.js} +2 -3
- package/dist/esm/checkouts-list-core.entry.js +4 -5
- package/dist/esm/{checkouts-table-4iLy6mvH.js → checkouts-table-BXm9GGFI.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/{dispute.service-BzzA0DeT.js → dispute.service-BPA0V42p.js} +2 -3
- package/dist/esm/form-address-fields_3.entry.js +3 -3
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-file.entry.js +57 -0
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number_3.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-BtJWpVs_.js → get-business-CijoB3Df.js} +2 -2
- package/dist/esm/{get-payment-details-CN7gUjBc.js → get-payment-details-B9JipaKX.js} +2 -3
- package/dist/esm/{get-payout-csv-D-Lnooki.js → get-payout-csv-CzWaTjoV.js} +2 -2
- package/dist/esm/{get-subaccounts-Mwx-aVcG.js → get-subaccounts-Dfo7wGVE.js} +3 -4
- package/dist/esm/gross-payment-chart-core.entry.js +2 -2
- package/dist/esm/hidden-input_2.entry.js +5 -5
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/justifi-additional-statement_8.entry.js +8 -8
- package/dist/esm/justifi-apple-pay_11.entry.js +16 -15
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +7 -8
- package/dist/esm/justifi-bank-account-form.entry.js +7 -8
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +10 -11
- package/dist/esm/justifi-business-form.entry.js +9 -10
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +7 -8
- package/dist/esm/justifi-checkout.entry.js +8 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-checkouts-list.entry.js +11 -12
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +10 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +13 -14
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -8
- package/dist/esm/justifi-order-terminals.entry.js +11 -12
- package/dist/esm/justifi-payment-details.entry.js +10 -11
- package/dist/esm/justifi-payment-provisioning.entry.js +133 -17
- package/dist/esm/justifi-payment-transactions-list.entry.js +9 -10
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +9 -10
- package/dist/esm/justifi-payout-transactions-list.entry.js +9 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
- package/dist/esm/justifi-payouts-list.entry.js +12 -13
- package/dist/esm/justifi-refund-payment.entry.js +9 -10
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -8
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +9 -10
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
- package/dist/esm/justifi-terminals-list.entry.js +11 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CIYOQWsL.js → package-B5w1e9rb.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +10 -11
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-CBvplwPf.js → payment-provisioning-actions-Bv2HP9Cx.js} +3 -3
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +49 -0
- package/dist/esm/{payment.service-0k8z2rOV.js → payment.service-J7iQtC5z.js} +2 -3
- package/dist/esm/payments-list-core.entry.js +4 -5
- package/dist/esm/{payments-table-Bz7LmU_J.js → payments-table-n1VrIKIR.js} +1 -1
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/{payout.service-C14YvCWQ.js → payout.service-Dsz8f37z.js} +2 -3
- package/dist/esm/payouts-list-core.entry.js +4 -5
- package/dist/esm/{payouts-table-Bpt__avQ.js → payouts-table-CbzI90ci.js} +1 -1
- package/dist/esm/{plaid.service-Dtxfrsm8.js → plaid.service-D1nDrcPY.js} +2 -3
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +1 -1
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +4 -5
- package/dist/esm/{terminal-orders-table-DRnRR4zn.js → terminal-orders-table-DlVbBgNh.js} +2 -3
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-rxvEhqqF.js → terminal.service-Sg45obrZ.js} +2 -3
- package/dist/esm/terminals-list-core.entry.js +4 -5
- package/dist/esm/{terminals-table-DSDZgJ77.js → terminals-table-Bja7MP5H.js} +1 -1
- package/dist/esm/{utils-C_8ZxLti.js → utils-De6tr4ug.js} +1 -1
- package/dist/esm/{utils-BeQLScSm.js → utils-jaFbbifV.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/ApplePay.js +4 -0
- package/dist/module/Business.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/bank-account-document-form-inputs2.js +1 -1
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/business-representative-form-inputs2.js +2 -2
- package/dist/module/business-terms-conditions-form-step2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/form-address-fields2.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-number2.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-additional-statement2.js +1 -1
- package/dist/module/justifi-apple-pay2.js +2 -0
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-billing-form.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-cancellation-policy2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-customer-details2.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-dispute-notification2.js +2 -2
- package/dist/module/justifi-dispute-response2.js +1 -1
- package/dist/module/justifi-duplicate-charge2.js +1 -1
- package/dist/module/justifi-electronic-evidence2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +182 -65
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-product-or-service2.js +1 -1
- package/dist/module/justifi-refund-policy2.js +1 -1
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-shipping-details2.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payment-provisioning-form-buttons2.js +1 -1
- package/dist/module/payment-provisioning-form-steps2.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/module/utils2.js +1 -1
- package/dist/types/api/ApplePay.d.ts +3 -0
- package/dist/types/components/business-forms/payment-provisioning/justifi-payment-provisioning.d.ts +26 -4
- package/dist/types/components.d.ts +4 -51
- package/dist/webcomponents/p-0b95dd8f.entry.js +1 -0
- package/dist/webcomponents/p-0ee11ceb.entry.js +1 -0
- package/dist/webcomponents/p-15377f17.entry.js +1 -0
- package/dist/webcomponents/p-15dfb893.entry.js +1 -0
- package/dist/webcomponents/{p-6372a42a.entry.js → p-15f43759.entry.js} +1 -1
- package/dist/webcomponents/p-1628613b.entry.js +1 -0
- package/dist/webcomponents/p-17fb6153.entry.js +1 -0
- package/dist/webcomponents/p-18fc10ca.entry.js +1 -0
- package/dist/webcomponents/{p-90f2c769.entry.js → p-1b92fb9a.entry.js} +1 -1
- package/dist/webcomponents/p-1c54dc53.entry.js +1 -0
- package/dist/webcomponents/p-1f2129ec.entry.js +1 -0
- package/dist/webcomponents/p-1fe99fde.entry.js +1 -0
- package/dist/webcomponents/p-20b0f88b.entry.js +1 -0
- package/dist/webcomponents/p-257597f1.entry.js +1 -0
- package/dist/webcomponents/{p-b31c9979.entry.js → p-26c419f3.entry.js} +1 -1
- package/dist/webcomponents/p-2f71285a.entry.js +1 -0
- package/dist/webcomponents/p-30662daa.entry.js +1 -0
- package/dist/webcomponents/p-30f61950.entry.js +1 -0
- package/dist/webcomponents/{p-3d135aee.entry.js → p-39bb134c.entry.js} +1 -1
- package/dist/webcomponents/p-3O6JkTxx.js +1 -0
- package/dist/webcomponents/p-3c50f7aa.entry.js +1 -0
- package/dist/webcomponents/p-3c59fe06.entry.js +1 -0
- package/dist/webcomponents/p-3e74bd93.entry.js +1 -0
- package/dist/webcomponents/p-45212820.entry.js +1 -0
- package/dist/webcomponents/p-46d8145c.entry.js +1 -0
- package/dist/webcomponents/{p-9838b5a7.entry.js → p-4db2e291.entry.js} +1 -1
- package/dist/webcomponents/{p-c07069f1.entry.js → p-55e7e239.entry.js} +1 -1
- package/dist/webcomponents/p-58e811cc.entry.js +1 -0
- package/dist/webcomponents/{p-534881d8.entry.js → p-5d2bcf39.entry.js} +1 -1
- package/dist/webcomponents/p-6ae9b2c5.entry.js +1 -0
- package/dist/webcomponents/p-6ba76fc2.entry.js +1 -0
- package/dist/webcomponents/p-6e5ec134.entry.js +1 -0
- package/dist/webcomponents/p-707e1e27.entry.js +1 -0
- package/dist/webcomponents/p-70a7c529.entry.js +1 -0
- package/dist/webcomponents/p-71de86bf.entry.js +1 -0
- package/dist/webcomponents/p-799e1a2f.entry.js +1 -0
- package/dist/webcomponents/p-80a9216a.entry.js +1 -0
- package/dist/webcomponents/p-8d215ad8.entry.js +1 -0
- package/dist/webcomponents/p-8d5138d8.entry.js +1 -0
- package/dist/webcomponents/p-8d88556f.entry.js +1 -0
- package/dist/webcomponents/p-8dc0e73a.entry.js +1 -0
- package/dist/webcomponents/p-8e9407a1.entry.js +1 -0
- package/dist/webcomponents/p-90d106c7.entry.js +1 -0
- package/dist/webcomponents/{p-d667138d.entry.js → p-938e4dc8.entry.js} +1 -1
- package/dist/webcomponents/p-99f3e1e0.entry.js +1 -0
- package/dist/webcomponents/{p-534833ca.entry.js → p-9a00cde1.entry.js} +1 -1
- package/dist/webcomponents/{p-J7WCmj-J.js → p-B--wlcf0.js} +1 -1
- package/dist/webcomponents/p-B2OPgLr1.js +1 -0
- package/dist/webcomponents/p-B5w1e9rb.js +1 -0
- package/dist/webcomponents/p-BIiEPAAI.js +1 -0
- package/dist/webcomponents/p-BMdYr88u.js +1 -0
- package/dist/webcomponents/p-BisDKGW5.js +1 -0
- package/dist/webcomponents/p-BlW92We8.js +1 -0
- package/dist/webcomponents/{p-D2muobcE.js → p-C-Uj-u5r.js} +1 -1
- package/dist/webcomponents/{p-D2TJwp13.js → p-C6IaNDXe.js} +1 -1
- package/dist/webcomponents/{p-DL0R5vDy.js → p-C95_YBmG.js} +1 -1
- package/dist/webcomponents/p-CASlE7cE.js +1 -0
- package/dist/webcomponents/{p-CMB3sNMT.js → p-CEnTtUmd.js} +1 -1
- package/dist/webcomponents/{p-Bwzxu5wV.js → p-CSW_ZzE9.js} +1 -1
- package/dist/webcomponents/{p-MkDHT9M4.js → p-CTwm3w6I.js} +1 -1
- package/dist/webcomponents/p-ChUBhd2W.js +1 -0
- package/dist/webcomponents/p-CpPclqiT.js +1 -0
- package/dist/webcomponents/{p-D0BjjvYt.js → p-DKzki_Iz.js} +1 -1
- package/dist/webcomponents/p-DtDYtwHR.js +1 -0
- package/dist/webcomponents/p-ZiYybdMz.js +1 -0
- package/dist/webcomponents/p-a00ccf58.entry.js +1 -0
- package/dist/webcomponents/p-a511a246.entry.js +1 -0
- package/dist/webcomponents/p-a9edf63a.entry.js +1 -0
- package/dist/webcomponents/p-ad785edd.entry.js +1 -0
- package/dist/webcomponents/p-afe956d9.entry.js +1 -0
- package/dist/webcomponents/p-b822ab7e.entry.js +1 -0
- package/dist/webcomponents/{p-1c95ec74.entry.js → p-bbcaa5cc.entry.js} +2 -2
- package/dist/webcomponents/p-bd3f7117.entry.js +1 -0
- package/dist/webcomponents/{p-2bec5dca.entry.js → p-c499a613.entry.js} +1 -1
- package/dist/webcomponents/p-c4d50650.entry.js +1 -0
- package/dist/webcomponents/p-c7ecb7d3.entry.js +1 -0
- package/dist/webcomponents/p-ce8de71b.entry.js +1 -0
- package/dist/webcomponents/{p-252a4f75.entry.js → p-d072a65f.entry.js} +1 -1
- package/dist/webcomponents/{p-ea84c544.entry.js → p-d34f497c.entry.js} +1 -1
- package/dist/webcomponents/p-d791e38e.entry.js +1 -0
- package/dist/webcomponents/p-d8918d5a.entry.js +1 -0
- package/dist/webcomponents/{p-42129686.entry.js → p-de4c796a.entry.js} +1 -1
- package/dist/webcomponents/p-e204efea.entry.js +1 -0
- package/dist/webcomponents/p-e70602bd.entry.js +1 -0
- package/dist/webcomponents/p-e751e2c3.entry.js +1 -0
- package/dist/webcomponents/{p-744f57f0.entry.js → p-ef30afd5.entry.js} +1 -1
- package/dist/webcomponents/p-f7522364.entry.js +1 -0
- package/dist/webcomponents/p-fNBks3-O.js +1 -0
- package/dist/webcomponents/p-facdac1b.entry.js +1 -0
- package/dist/webcomponents/p-g6a7Gl9y.js +1 -0
- package/dist/webcomponents/p-lFx33NDk.js +1 -0
- package/dist/webcomponents/p-x7WGc-xR.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/LICENSE +0 -21
- package/dist/cjs/ComponentError-D4OLnOkg.js +0 -31
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +0 -525
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +0 -151
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +0 -353
- package/dist/esm/ComponentError-Cjcsf8ku.js +0 -31
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +0 -515
- package/dist/esm/justifi-payment-provisioning-core.entry.js +0 -149
- package/dist/module/justifi-payment-provisioning-core.d.ts +0 -11
- package/dist/module/justifi-payment-provisioning-core.js +0 -6
- package/dist/module/payment-provisioning-core.js +0 -367
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -43
- package/dist/webcomponents/p-08424d71.entry.js +0 -1
- package/dist/webcomponents/p-089bc927.entry.js +0 -1
- package/dist/webcomponents/p-0b7fa323.entry.js +0 -1
- package/dist/webcomponents/p-16ae88d0.entry.js +0 -1
- package/dist/webcomponents/p-179fe9a0.entry.js +0 -1
- package/dist/webcomponents/p-1a9aecbf.entry.js +0 -1
- package/dist/webcomponents/p-1d1c48c3.entry.js +0 -1
- package/dist/webcomponents/p-1da3ba0f.entry.js +0 -1
- package/dist/webcomponents/p-26062991.entry.js +0 -1
- package/dist/webcomponents/p-26074643.entry.js +0 -1
- package/dist/webcomponents/p-2719f4db.entry.js +0 -1
- package/dist/webcomponents/p-2a0ce169.entry.js +0 -1
- package/dist/webcomponents/p-2b8df3c0.entry.js +0 -1
- package/dist/webcomponents/p-358f7121.entry.js +0 -1
- package/dist/webcomponents/p-383798ab.entry.js +0 -1
- package/dist/webcomponents/p-485a8795.entry.js +0 -1
- package/dist/webcomponents/p-4d222f42.entry.js +0 -1
- package/dist/webcomponents/p-53dd8569.entry.js +0 -1
- package/dist/webcomponents/p-56d58041.entry.js +0 -1
- package/dist/webcomponents/p-61784c6a.entry.js +0 -1
- package/dist/webcomponents/p-7108eead.entry.js +0 -1
- package/dist/webcomponents/p-729c9798.entry.js +0 -1
- package/dist/webcomponents/p-7742cf61.entry.js +0 -1
- package/dist/webcomponents/p-774b69a0.entry.js +0 -1
- package/dist/webcomponents/p-77600a47.entry.js +0 -1
- package/dist/webcomponents/p-783580d4.entry.js +0 -1
- package/dist/webcomponents/p-83fd4eae.entry.js +0 -1
- package/dist/webcomponents/p-848ae146.entry.js +0 -1
- package/dist/webcomponents/p-865d4604.entry.js +0 -1
- package/dist/webcomponents/p-8Kt4Rhcq.js +0 -1
- package/dist/webcomponents/p-8c52d10a.entry.js +0 -1
- package/dist/webcomponents/p-8df335d4.entry.js +0 -1
- package/dist/webcomponents/p-9639d9d0.entry.js +0 -1
- package/dist/webcomponents/p-97d16844.entry.js +0 -1
- package/dist/webcomponents/p-B6sIVWJW.js +0 -1
- package/dist/webcomponents/p-BmEX2SfZ.js +0 -1
- package/dist/webcomponents/p-C1olhiO9.js +0 -1
- package/dist/webcomponents/p-CAl_N2gi.js +0 -1
- package/dist/webcomponents/p-CBqZge6m.js +0 -1
- package/dist/webcomponents/p-CIYOQWsL.js +0 -1
- package/dist/webcomponents/p-CMqX6btO.js +0 -1
- package/dist/webcomponents/p-CWv3GX8X.js +0 -1
- package/dist/webcomponents/p-Cjcsf8ku.js +0 -1
- package/dist/webcomponents/p-CmXujxGp.js +0 -1
- package/dist/webcomponents/p-DLmWCafe.js +0 -1
- package/dist/webcomponents/p-DYGIC0QH.js +0 -1
- package/dist/webcomponents/p-Dvcgmvfg.js +0 -1
- package/dist/webcomponents/p-MLfmcsbZ.js +0 -1
- package/dist/webcomponents/p-R0FDNhyd.js +0 -1
- package/dist/webcomponents/p-a53fae42.entry.js +0 -1
- package/dist/webcomponents/p-a5640aa4.entry.js +0 -1
- package/dist/webcomponents/p-b21e5a85.entry.js +0 -1
- package/dist/webcomponents/p-b2d7a9dd.entry.js +0 -1
- package/dist/webcomponents/p-b596cbb3.entry.js +0 -1
- package/dist/webcomponents/p-b7ffdb30.entry.js +0 -1
- package/dist/webcomponents/p-bac16c16.entry.js +0 -1
- package/dist/webcomponents/p-bb4cc829.entry.js +0 -1
- package/dist/webcomponents/p-bbdae5b7.entry.js +0 -1
- package/dist/webcomponents/p-c4da12e0.entry.js +0 -1
- package/dist/webcomponents/p-c5be6300.entry.js +0 -1
- package/dist/webcomponents/p-c63b8c8f.entry.js +0 -1
- package/dist/webcomponents/p-d6350138.entry.js +0 -1
- package/dist/webcomponents/p-d6c2d51d.entry.js +0 -1
- package/dist/webcomponents/p-def798df.entry.js +0 -1
- package/dist/webcomponents/p-e2650fe5.entry.js +0 -1
- package/dist/webcomponents/p-e4ba0754.entry.js +0 -1
- package/dist/webcomponents/p-e939affa.entry.js +0 -1
- package/dist/webcomponents/p-e9c20b52.entry.js +0 -1
- package/dist/webcomponents/p-rz2BF2Sz.js +0 -1
|
@@ -780,17 +780,6 @@ export namespace Components {
|
|
|
780
780
|
*/
|
|
781
781
|
"formTitle"?: string;
|
|
782
782
|
}
|
|
783
|
-
interface JustifiPaymentProvisioningCore {
|
|
784
|
-
/**
|
|
785
|
-
* @default false
|
|
786
|
-
*/
|
|
787
|
-
"allowOptionalFields"?: boolean;
|
|
788
|
-
"authToken": string;
|
|
789
|
-
"businessId": string;
|
|
790
|
-
"formTitle": string;
|
|
791
|
-
"getBusiness": Function;
|
|
792
|
-
"postProvisioning": Function;
|
|
793
|
-
}
|
|
794
783
|
interface JustifiPaymentTransactionsList {
|
|
795
784
|
"authToken": string;
|
|
796
785
|
/**
|
|
@@ -1321,10 +1310,6 @@ export interface JustifiPaymentProvisioningCustomEvent<T> extends CustomEvent<T>
|
|
|
1321
1310
|
detail: T;
|
|
1322
1311
|
target: HTMLJustifiPaymentProvisioningElement;
|
|
1323
1312
|
}
|
|
1324
|
-
export interface JustifiPaymentProvisioningCoreCustomEvent<T> extends CustomEvent<T> {
|
|
1325
|
-
detail: T;
|
|
1326
|
-
target: HTMLJustifiPaymentProvisioningCoreElement;
|
|
1327
|
-
}
|
|
1328
1313
|
export interface JustifiPaymentTransactionsListCustomEvent<T> extends CustomEvent<T> {
|
|
1329
1314
|
detail: T;
|
|
1330
1315
|
target: HTMLJustifiPaymentTransactionsListElement;
|
|
@@ -2393,7 +2378,9 @@ declare global {
|
|
|
2393
2378
|
new (): HTMLJustifiPaymentDetailsElement;
|
|
2394
2379
|
};
|
|
2395
2380
|
interface HTMLJustifiPaymentProvisioningElementEventMap {
|
|
2381
|
+
"click-event": ComponentClickEvent;
|
|
2396
2382
|
"error-event": ComponentErrorEvent;
|
|
2383
|
+
"submit-event": ComponentSubmitEvent;
|
|
2397
2384
|
}
|
|
2398
2385
|
interface HTMLJustifiPaymentProvisioningElement extends Components.JustifiPaymentProvisioning, HTMLStencilElement {
|
|
2399
2386
|
addEventListener<K extends keyof HTMLJustifiPaymentProvisioningElementEventMap>(type: K, listener: (this: HTMLJustifiPaymentProvisioningElement, ev: JustifiPaymentProvisioningCustomEvent<HTMLJustifiPaymentProvisioningElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2409,25 +2396,6 @@ declare global {
|
|
|
2409
2396
|
prototype: HTMLJustifiPaymentProvisioningElement;
|
|
2410
2397
|
new (): HTMLJustifiPaymentProvisioningElement;
|
|
2411
2398
|
};
|
|
2412
|
-
interface HTMLJustifiPaymentProvisioningCoreElementEventMap {
|
|
2413
|
-
"click-event": ComponentClickEvent;
|
|
2414
|
-
"error-event": ComponentErrorEvent;
|
|
2415
|
-
"submit-event": ComponentSubmitEvent;
|
|
2416
|
-
}
|
|
2417
|
-
interface HTMLJustifiPaymentProvisioningCoreElement extends Components.JustifiPaymentProvisioningCore, HTMLStencilElement {
|
|
2418
|
-
addEventListener<K extends keyof HTMLJustifiPaymentProvisioningCoreElementEventMap>(type: K, listener: (this: HTMLJustifiPaymentProvisioningCoreElement, ev: JustifiPaymentProvisioningCoreCustomEvent<HTMLJustifiPaymentProvisioningCoreElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2419
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2420
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2421
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2422
|
-
removeEventListener<K extends keyof HTMLJustifiPaymentProvisioningCoreElementEventMap>(type: K, listener: (this: HTMLJustifiPaymentProvisioningCoreElement, ev: JustifiPaymentProvisioningCoreCustomEvent<HTMLJustifiPaymentProvisioningCoreElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2423
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2424
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2425
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2426
|
-
}
|
|
2427
|
-
var HTMLJustifiPaymentProvisioningCoreElement: {
|
|
2428
|
-
prototype: HTMLJustifiPaymentProvisioningCoreElement;
|
|
2429
|
-
new (): HTMLJustifiPaymentProvisioningCoreElement;
|
|
2430
|
-
};
|
|
2431
2399
|
interface HTMLJustifiPaymentTransactionsListElementEventMap {
|
|
2432
2400
|
"click-event": ComponentClickEvent1;
|
|
2433
2401
|
"error-event": ComponentErrorEvent1;
|
|
@@ -3117,7 +3085,6 @@ declare global {
|
|
|
3117
3085
|
"justifi-order-terminals": HTMLJustifiOrderTerminalsElement;
|
|
3118
3086
|
"justifi-payment-details": HTMLJustifiPaymentDetailsElement;
|
|
3119
3087
|
"justifi-payment-provisioning": HTMLJustifiPaymentProvisioningElement;
|
|
3120
|
-
"justifi-payment-provisioning-core": HTMLJustifiPaymentProvisioningCoreElement;
|
|
3121
3088
|
"justifi-payment-transactions-list": HTMLJustifiPaymentTransactionsListElement;
|
|
3122
3089
|
"justifi-payments-list": HTMLJustifiPaymentsListElement;
|
|
3123
3090
|
"justifi-payments-list-filters": HTMLJustifiPaymentsListFiltersElement;
|
|
@@ -3948,21 +3915,9 @@ declare namespace LocalJSX {
|
|
|
3948
3915
|
* @default 'Business Information'
|
|
3949
3916
|
*/
|
|
3950
3917
|
"formTitle"?: string;
|
|
3918
|
+
"onClick-event"?: (event: JustifiPaymentProvisioningCustomEvent<ComponentClickEvent>) => void;
|
|
3951
3919
|
"onError-event"?: (event: JustifiPaymentProvisioningCustomEvent<ComponentErrorEvent>) => void;
|
|
3952
|
-
|
|
3953
|
-
interface JustifiPaymentProvisioningCore {
|
|
3954
|
-
/**
|
|
3955
|
-
* @default false
|
|
3956
|
-
*/
|
|
3957
|
-
"allowOptionalFields"?: boolean;
|
|
3958
|
-
"authToken": string;
|
|
3959
|
-
"businessId": string;
|
|
3960
|
-
"formTitle": string;
|
|
3961
|
-
"getBusiness": Function;
|
|
3962
|
-
"onClick-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentClickEvent>) => void;
|
|
3963
|
-
"onError-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentErrorEvent>) => void;
|
|
3964
|
-
"onSubmit-event"?: (event: JustifiPaymentProvisioningCoreCustomEvent<ComponentSubmitEvent>) => void;
|
|
3965
|
-
"postProvisioning": Function;
|
|
3920
|
+
"onSubmit-event"?: (event: JustifiPaymentProvisioningCustomEvent<ComponentSubmitEvent>) => void;
|
|
3966
3921
|
}
|
|
3967
3922
|
interface JustifiPaymentTransactionsList {
|
|
3968
3923
|
"authToken": string;
|
|
@@ -4433,7 +4388,6 @@ declare namespace LocalJSX {
|
|
|
4433
4388
|
"justifi-order-terminals": JustifiOrderTerminals;
|
|
4434
4389
|
"justifi-payment-details": JustifiPaymentDetails;
|
|
4435
4390
|
"justifi-payment-provisioning": JustifiPaymentProvisioning;
|
|
4436
|
-
"justifi-payment-provisioning-core": JustifiPaymentProvisioningCore;
|
|
4437
4391
|
"justifi-payment-transactions-list": JustifiPaymentTransactionsList;
|
|
4438
4392
|
"justifi-payments-list": JustifiPaymentsList;
|
|
4439
4393
|
"justifi-payments-list-filters": JustifiPaymentsListFilters;
|
|
@@ -4572,7 +4526,6 @@ declare module "@stencil/core" {
|
|
|
4572
4526
|
"justifi-order-terminals": LocalJSX.JustifiOrderTerminals & JSXBase.HTMLAttributes<HTMLJustifiOrderTerminalsElement>;
|
|
4573
4527
|
"justifi-payment-details": LocalJSX.JustifiPaymentDetails & JSXBase.HTMLAttributes<HTMLJustifiPaymentDetailsElement>;
|
|
4574
4528
|
"justifi-payment-provisioning": LocalJSX.JustifiPaymentProvisioning & JSXBase.HTMLAttributes<HTMLJustifiPaymentProvisioningElement>;
|
|
4575
|
-
"justifi-payment-provisioning-core": LocalJSX.JustifiPaymentProvisioningCore & JSXBase.HTMLAttributes<HTMLJustifiPaymentProvisioningCoreElement>;
|
|
4576
4529
|
"justifi-payment-transactions-list": LocalJSX.JustifiPaymentTransactionsList & JSXBase.HTMLAttributes<HTMLJustifiPaymentTransactionsListElement>;
|
|
4577
4530
|
"justifi-payments-list": LocalJSX.JustifiPaymentsList & JSXBase.HTMLAttributes<HTMLJustifiPaymentsListElement>;
|
|
4578
4531
|
"justifi-payments-list-filters": LocalJSX.JustifiPaymentsListFilters & JSXBase.HTMLAttributes<HTMLJustifiPaymentsListFiltersElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as a}from"./p-D50Rx76J.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(t){e(this,t)}render(){return t(o,{key:"cdf49c9446ea5fd6316523ecaf4f0f14be644e71",class:"payment-method"},t("div",{key:"7de753f710389cbbb1d604ca5af97e1dfc5af2af",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"7a3bb855c441031d7685aa23212cc471947108ec",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{s as payment_method_option}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as s,c as i}from"./p-CV0Pyo1O.js";import{A as e}from"./p-CEnTtUmd.js";import{C as r,a as o}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-C-Uj-u5r.js";import{J as c}from"./p-x7WGc-xR.js";import{c as l}from"./p-DKzki_Iz.js";import{c as h}from"./p-EBsfAkrP.js";import{p as d,f as p,r as u,k as v}from"./p-CTwm3w6I.js";import{v as m,i as y,a as f,H as j}from"./p-_fynNk40.js";import{t as _,B as g}from"./p-D50Rx76J.js";import{S as k}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-BrO0HEFJ.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-B5w1e9rb.js";import"./p-DkoufM1t.js";import"./p-HXpYMWUU.js";const b=e();class C{async fetchQuote(t,s){return b.post({endpoint:"insurance/quotes",body:s,authToken:t})}async toggleCoverage(t,s,i){return b.post({endpoint:`insurance/quotes/${s}/toggle`,body:i,authToken:t})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"35%",height:"30px"})),t("div",{class:"col-12"},t(w,{width:"70%"})),t("div",{class:"col-12"},t(w,{width:"40%"})),t("div",{class:"col-12"},t(w,{width:"40%"})),t("div",{class:"col-12"},t(w,{width:"100%"})),t("div",{class:"col-12"},t(w,{width:"80%"}))),H=class{constructor(t){s(this,t),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.isLoading=!0}async validate(){return m()}processHTMLContent(t){return d(t,[t=>u(t,"style"),t=>v(t,"a","part",_),t=>v(t,"p","part",_)])}componentWillLoad(){l(),this.analytics=new c(this),this.initializeServiceMethods(),this.getQuote&&this.fetchData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||h.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR});const s={authToken:t,service:new C};this.getQuote=(({authToken:t,service:s})=>async({payload:i,onSuccess:e,onError:o})=>{var c;try{const l=await s.fetchQuote(t,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(t){const s=a(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})(s),this.toggleCoverage=(({authToken:t,service:s})=>async({quoteId:i,payload:e,onSuccess:o,onError:c})=>{var l;try{const h=await s.toggleCoverage(t,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(t){const s=a(null==t?void 0:t.code);return c({error:t.message||t,code:s,severity:r.ERROR})}})(s)}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:t})=>{this.quote=t,this.quote.product.description=this.processHTMLContent(this.quote.product.description),this.quote.product.legal_disclaimer=this.processHTMLContent(this.quote.product.legal_disclaimer),y[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:s,severity:i})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}onChangeHandler(t,s){this.accepted=s,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:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i})}})}get error(){var t;return f[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var s,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):t(k,null,this.isLoading?t(T,null):t("div",null,t(j,{text:null===(s=this.quote)||void 0===s?void 0:s.product.title,class:"fs-5 fw-bold pb-3"}),t("small",{part:_,innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description}),t("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}),t("form-control-radio",{label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this),errorText:this.error?" ":void 0}),t("div",{class:"invalid-feedback",style:{display:this.error?"block":"none"},part:g},"Please select an option"),t("small",{part:_,innerHTML:null===(r=this.quote)||void 0===r?void 0:r.product.legal_disclaimer})))}};export{H as justifi_season_interruption_insurance}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-CV0Pyo1O.js";import{E as r}from"./p-CjuaXEuI.js";import{B as o}from"./p-lFx33NDk.js";import{m as p}from"./p-CASlE7cE.js";import{C as e,a as m}from"./p-g6a7Gl9y.js";import{J as n}from"./p-x7WGc-xR.js";import{c as a}from"./p-DKzki_Iz.js";import"./p-D50Rx76J.js";import"./p-CEnTtUmd.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CTwm3w6I.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-C-Uj-u5r.js";import"./p-B5w1e9rb.js";const h=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){a(),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:e.ERROR});this.getBusiness=p({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{h as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{h as s,d as i,b as d}from"./p-CTwm3w6I.js";import{a as c,b as o,D as r,c as f,C as l,E as h}from"./p-CjuaXEuI.js";import{B as b}from"./p-C-QiUcEa.js";import{S as n}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{M as u}from"./p-BJtvT9BX.js";import{S as p}from"./p-BrO0HEFJ.js";import{a as y,B as v}from"./p-Da4efjxw.js";import"./p-HXpYMWUU.js";import"./p-D50Rx76J.js";const m=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(p,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(p,{width:"70%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"100%"})),e("div",{class:"col-12"},e(p,{width:"80%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),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:"5331ce4651dd61c74b44010b88f272db42bbac16"},this.loading&&e(m,{key:"09f7bfcf6a4b9f34a9ef6f2600c4f3755b4abe84"}),!this.loading&&this.errorMessage&&h(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"d76eaca9611e7c03d6d7d90d5bfcdc951cc626da",errorMessage:this.errorMessage},e(c,{key:"099f51fbdb7a97e0d894437a945822d71973d322",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},u(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(o,{key:"214a3726416272452258345d04d05792ad90115c",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${d(this.payout.updated_at)}`}),e(o,{key:"9b6354d8a9e4b0eeec25a98047a0ab0748a5a3a2",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${d(this.payout.created_at)}`}),e(o,{key:"91a07437ba0c01c1ff8d65309bfac5d2376fd693",title:"ID",value:this.payout.id}),e("div",{key:"e73f76a1d3c6027eefe17ab1312948cdd5e1a958",class:"m-4"},e(b,{key:"e64df6ed69aa41984a42ceda86fa3636fd90c6e8",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"f95c3ab2d35aaf44577aafd63d8179e8de592b58",slot:"detail-sections"},e(r,{key:"d0aae2552c2dc391d3b15971aa894a484fccbc2b",sectionTitle:"Details"}),e("div",{key:"22fee577f33a1e004d41ac81b478201637d96637",class:"d-flex flex-column gap-2 w-100"},e(f,{key:"d9bec4d7732334c2434b1e22954f85ad4a7af5d3",title:"Date paid",value:i(this.payout.deposits_at)}),e(f,{key:"9e5fed1e45d2a532102bd47209036faddd38158e",title:"Statement Description",value:this.payout.description}),e(f,{key:"5313693f696e36f850b9f606ab9de8e4d24a0372",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(f,{key:"101f2d983df8e548391dc762ea06ed0c5979e466",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(f,{key:"900b5dd485dd8b9ff6e5e49261afe742406c3f4c",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(r,{key:"ba09532b05fe7c3ef19f80908966a2ed1aec753c",sectionTitle:"Account"}),e("div",{key:"1322b4fb4868fbbad73a23ac534a66848e34e135",class:"d-flex flex-column gap-2 w-100"},e(f,{key:"87e877e09482023959e09fdb30e1c339ecc195ef",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(f,{key:"3457500267dc994aad32c675544fe6adc599c114",title:"Account Type",value:this.payout.bank_account.account_type}),e(f,{key:"32204b3a5448f2ad9c6cc3cfd621fe8076051f4b",title:"Institution",value:this.payout.bank_account.account_type}),e(f,{key:"87d31d5a177a5da328e653ea036ae16ec66838e3",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(f,{key:"12b7c34a74afe9e54516f19d6ec5b344bf84b74f",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(r,{key:"73d264aa4b0e2fe8d980246dc35d78c350cf1c85",sectionTitle:"Metadata"}),e("div",{key:"c405ec9594ddc8eb474f75837e4d5ef1b81f786b",class:"d-table gap-2 w-100"},e(l,{key:"bfff7ebf154e20f3c35fb415de21ed80eb6f4ae9",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{k as payout_details_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{F as r}from"./p-N60pPiy5.js";import{a7 as o,v as h,x as l,w as c,y as n,z as f}from"./p-D50Rx76J.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.errorText="",this.inputHandler=()=>{},this.disabled=!1}render(){return s(a,{key:"
|
|
1
|
+
import{r as t,c as e,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{F as r}from"./p-N60pPiy5.js";import{a7 as o,v as h,x as l,w as c,y as n,z as f}from"./p-D50Rx76J.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.errorText="",this.inputHandler=()=>{},this.disabled=!1}render(){return s(a,{key:"8f1a2e7469bf052321e464d3d7d4434a8e1b94eb",exportparts:"label,input,input-invalid"},s("div",{key:"a930b47727ba05e965ec5df7b042d2416d38db2c",class:"form-group d-flex flex-column"},s("div",{key:"e1040ac692c0f597c0461bcaa27f562c69056c30",class:"d-flex align-items-start gap-2"},s("label",{key:"387e3d18da10274de2cf9ef680d9483d7855e77e",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"4bc4aab440ec7cca2eb6af7105d2d9078922376a",helpText:this.helpText})),s("input",{key:"4050a93b51b5b1ecadfe9cff53c5794321c77d13",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:"aee21aa5cd54e48f2e7eca3763a07051dd942653",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},m=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.helpText="",this.errorText="",this.inputHandler=()=>{},this.disabled=!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?h:this.isFocused?l:this.disabled?c:n}render(){return s(a,{key:"c23d0ccb0e033048012cb1e1110f785a6270b163"},s("div",{key:"971db0fe032afae7ea976e0fa3845040a39aab28",class:"form-group d-flex flex-column"},s("label",{key:"b733fd61b5421aea811e3b9423d85c6c682493f0",part:f,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"fa13e420ffdfa28d139418ebfa48bf9108710438",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:"787e9ecc2833c827880c7a44c9a577c56f258375",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"0f0915db581aee8672f6089d681596c9650b09c2",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,m as form_control_textarea}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as i}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const l=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.billingFormFullRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.billingFormFullRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(e,{key:"227d77e5fe6e938fef36149f4212c362b78ad9b4"},i("billing-form-full",{key:"48db37e4e4097383d4f6982c82dd897dc27ed5c0",legend:this.legend,ref:r=>this.billingFormFullRef=r}))}};export{l as justifi_billing_form_full}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as s,h as t}from"./p-CV0Pyo1O.js";import{S as i}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as e}from"./p-DKzki_Iz.js";import{d as o}from"./p-ZiYybdMz.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{l as a,C as n,a as c}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as m}from"./p-C-Uj-u5r.js";import{A as d}from"./p-CEnTtUmd.js";import{J as l}from"./p-x7WGc-xR.js";import"./p-B5w1e9rb.js";import"./p-D50Rx76J.js";import"./p-CTwm3w6I.js";import"./p-Da4efjxw.js";import"./p-D8GTwl9v.js";const h=d();class f{async fetchTerminalOrders(r,s,t){return h.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const j=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=o,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new l(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:c})=>{var d,l;try{const c=await t.fetchTerminalOrders(r,s,i);if(c.error)return o({error:m(c.error),code:p(null===(l=c.error)||void 0===l?void 0:l.code),severity:n.ERROR});{const r=Object.assign({},c.page_info);e({terminalOrders:(null===(d=c.data)||void 0===d?void 0:d.map((r=>new a(r))))||[],pagingInfo:r})}}catch(r){const s=p(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new f}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"f505fd0cb18cae37cf0896883acd93212c45cc88"},t("terminal-orders-list-core",{key:"2eaf2c82b43a0fd8106b8ccfe76ebcdef01f75e8",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{j as justifi_terminal_orders_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{S as a}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const o=class{constructor(s){e(this,s),this.checkboxChanged=t(this,"checkboxChanged",7),this.label="Save New Payment Method"}render(){return s(a,{key:"9a8f3c570df476801a903c8591ad955c6e20bdcf"},s("save-new-payment-method",{key:"c5651023d045273b885df866ac0532d80db429aa",label:this.label,hidden:this.hidden,onCheckboxChanged:e=>this.checkboxChanged.emit(e.detail)}))}};export{o as justifi_save_new_payment_method}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as r}from"./p-CV0Pyo1O.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(r){i(this,r)}async getValues(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.getValues())&&void 0!==r?r:{}}async validate(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.validate())&&void 0!==r?r:{isValid:!1,errors:{}}}render(){return r(o,{key:"
|
|
1
|
+
import{r as i,h as r}from"./p-CV0Pyo1O.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(r){i(this,r)}async getValues(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.getValues())&&void 0!==r?r:{}}async validate(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.validate())&&void 0!==r?r:{isValid:!1,errors:{}}}render(){return r(o,{key:"3dd5b300e9c156a7f848cb94600d40d554791a93"},r("billing-form",{key:"92d70269b12e5c3fea236553343085f1a8a37c19",legend:this.legend,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:this.paymentMethodType,ref:i=>this.billingFormRef=i}))}};export{s as justifi_billing_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as i}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(e,{key:"2d6a2664e7b47349f7b01e4d832c2c848cd9ba61"},i("card-billing-form-simple",{key:"eefdf487575b2e094cde682cd118502b5b5bdbf3",legend:this.legend,ref:r=>this.cardBillingFormSimpleRef=r}))}};export{s as justifi_card_billing_form_simple}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as r}from"./p-CV0Pyo1O.js";import{P as i}from"./p-ChUBhd2W.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{c as o,C as e,a as p}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-C-Uj-u5r.js";import{J as m}from"./p-x7WGc-xR.js";import{c}from"./p-DKzki_Iz.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d}from"./p-CSW_ZzE9.js";import"./p-CEnTtUmd.js";import"./p-CTwm3w6I.js";import"./p-D8GTwl9v.js";import"./p-B5w1e9rb.js";import"./p-CzdAS9Jo.js";import"./p-Da4efjxw.js";import"./p-D50Rx76J.js";const j=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:p,onError:m,final:c})=>{var h,d;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:n(c.error),code:a(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);p({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new o(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:e.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR}))}render(){return r(h,{key:"1eb44d7abbd8ad6964538435786007fcd1792b41"},r("payments-list-core",{key:"6e178dfa35e107c2d0653a9fc1e0d1247ef99bb0",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{c as s,a as i}from"./p-CTwm3w6I.js";import{f as d,p as r,c as l}from"./p-Dw63wyhO.js";import{f as c,a as b}from"./p-D50Rx76J.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{e as f}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-D8GTwl9v.js";const p=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{d[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId,provider_id:this.providerId,serial_number:this.serialNumber,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:f.connected},{label:"Disconnected",value:f.disconnected},{label:"Unknown",value:f.unknown},{label:"Pending Configuration",value:f.pending_configuration},{label:"Archived",value:f.archived}]}render(){const e=Object.assign({},d);return a(o,{key:"4b6ba70d8a8581d78facb0a2f262c7f11baf971b"},a("table-filters-menu",{key:"38f0bfb11c9887a612c3dba55ae22fc3848e16ea",params:e,clearParams:l,part:c},a("div",{key:"b9ba8adf4e258310bb5c250c4d47d10157101007",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"d6c3a5b11c0def890980eacac4690accd73abf68",class:"p-2"},a("form-control-text",{key:"e3657ae3f8a875a865a66e652ecf7ea86f3e768e",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||d.terminal_id,disabled:!!this.terminalId,part:b})),a("div",{key:"5991ea46b3e887bd600041ed1cc6dd522adb92c2",class:"p-2"},a("form-control-text",{key:"36a007337309b04d89f4754b07ffb535e8806033",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||d.terminal_order_id,disabled:!!this.terminalOrderId,part:b})),a("div",{key:"6089e2751f0fadc14b899510972b00eb7b1cf3cd",class:"p-2"},a("form-control-text",{key:"430eeeeb1adfdc50f83b35fa662d08b7387ee699",name:"provider_id",label:"Device ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.providerId||d.provider_id,disabled:!!this.providerId,part:b})),a("div",{key:"e82b272ebcd175a68a39b19acc033213422ee07f",class:"p-2"},a("form-control-text",{key:"38829262c19e3281e3c0e96d6287d35ed4110f75",name:"serial_number",label:"Serial Number",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.serialNumber||d.serial_number,disabled:!!this.serialNumber,part:b})),a("div",{key:"fcdb9be89ea287c91bcd1ca64bb81adae03912ff",class:"p-2"},a("form-control-select",{key:"0555fdc74f33ce2589de7e7695256c15e4f21ed5",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||d.status||"",disabled:!!this.terminalStatus,part:b})),a("div",{key:"9bdb42ed941298a2b4f42f85cec7469c3dba7301",class:"p-2"},a("form-control-date",{key:"8366403642c6394822c324b249307760a7ba2b1c",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter||d.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"d1a02ac27ede585547d29082d41b7dab30e1bf04",class:"p-2"},a("form-control-date",{key:"62b86c28b87a179dbd3ad8a85d9d2eb3d06fff9c",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore||d.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{p as justifi_terminals_list_filters}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as i}from"./p-CV0Pyo1O.js";import{C as a,a as n,E as r,y as o,z as h,v as l,w as c,x as d}from"./p-g6a7Gl9y.js";import{m as u,a as m,c as p,d as b,e as f,f as v,g as y}from"./p-B2OPgLr1.js";import{B as g,a as k,D as w,I as _}from"./p-lFx33NDk.js";import{a as x,c as T,b as L}from"./p-BovgIz83.js";import{F as C,c as j,a as O,b as E,d as A}from"./p-CKiAlBsU.js";import{A as I,C as H,e as S,R as V,f as D}from"./p-BcNb9bVO.js";import{C as P,P as B,I as N}from"./p-CVaOFfrI.js";import{b as M,a2 as F,E as R,z as q,w as W,F as U,aa as z,q as Z,aj as Y,am as G,a3 as $}from"./p-D50Rx76J.js";import{P as X}from"./p-CbM9cuX_.js";import{b as J,a as Q,c as K}from"./p-Bt4GjEWL.js";import{a as tt,B as et}from"./p-XYgDHrVL.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as st}from"./p-BnjCmwMr.js";import{A as it,B as at,v as nt,C as rt,D as ot,E as ht,F as lt}from"./p-HT_4DkD0.js";import{B as ct}from"./p-C-QiUcEa.js";import"./p-CZfYo5-1.js";import{c as dt}from"./p-_-2E_vYf.js";import{s as ut,d as mt,b as pt}from"./p-CTwm3w6I.js";import{S as bt}from"./p-BrO0HEFJ.js";import{u as ft,a as vt,b as yt}from"./p-C6o0liMT.js";import{d as gt,e as kt}from"./p-D8EGHc_m.js";import{A as wt}from"./p-CEnTtUmd.js";import{S as _t}from"./p-BqNNwq6C.js";import{P as xt}from"./p-CpPclqiT.js";import"./p-C-Uj-u5r.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";class Tt{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.institution_number=t.institution_number,this.transit_number=t.transit_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",institution_number:this.institution_number||"",transit_number:this.transit_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const Lt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new I(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e})),this.additional_questions=new I(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}propChanged(){this.initializeApi()}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new I(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new C(x(this.allowOptionalFields))}componentDidLoad(){this.getBusiness&&this.getData(),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}render(){var t,e,i,a,n;const r=this.formController.getInitialValues();return this.isLoading?s(X,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"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==r?void 0:r.business_revenue,maskOptions:P.WHOLE})),s("div",{class:"col-12 col-md-6"},s("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==r?void 0:r.business_payment_volume,maskOptions:P.WHOLE})),s("div",{class:"col-12"},s("form-control-text",{name:"business_average_transaction_amount",label:"What is your average transaction size?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_average_transaction_amount,defaultValue:null==r?void 0:r.business_average_transaction_amount})),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===(a=this.errors)||void 0===a?void 0:a.business_when_service_received,options:J,defaultValue:null==r?void 0:r.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===(n=this.errors)||void 0===n?void 0:n.business_other_payment_details,defaultValue:null==r?void 0:r.business_other_payment_details})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],additional_questions:["recurringPaymentsWatcher"]}}},Ct=class{constructor(e){t(this,e)}render(){return s("div",{key:"e578f34f963b144c3121b1c1b3822d70b960aa79",class:"row gy-3"},s("div",{key:"cfb038a81afcd9f8c35e3145ddb77d5edf4e6c83",class:"col-12"},s("form-control-file",{key:"23ff12d7fe707a5761e13ee71dd801c563cfdd54",name:"voided_check",label:"Voided Check",documentType:r.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),s("div",{key:"107353c687412a90890901f9a37743fa222bdba5",class:"col-12"},s("form-control-file",{key:"99223848b8937bb332b47f12245a9ef9467c8f93",name:"bank_statement",label:"Bank Statement",documentType:r.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},jt=class{constructor(e){t(this,e)}render(){var t,e,i,a,n,r;return s("div",{key:"735c8fd61c0dbf8f9ff51d284af45170b5660224",class:"row gy-3"},s("div",{key:"894209630dd0abb597a6c67a56f8100e4d746d49",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Bank Name",value:null===(t=this.defaultValue)||void 0===t?void 0:t.bank_name}):s("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),s("div",{key:"35c0f042f315c6ab4b0f8fdcac0e41cc765c17d6",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Nickname",value:null===(e=this.defaultValue)||void 0===e?void 0:e.nickname}):s("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),s("div",{key:"0633bcb39aacf43b924af203f8e359f984eb0714",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):s("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})),s("div",{key:"aa31611fbc5abf27411f9057826c7371bc5775d3",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Type",value:null===(a=this.defaultValue)||void 0===a?void 0:a.account_type}):s("form-control-select",{name:"account_type",label:"Account Type",options:Q,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),s("div",{key:"1c05be48c83e85a16991875c367f9d853c8ec6e7",class:"col-6"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Number",value:(null===(n=this.defaultValue)||void 0===n?void 0:n.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):s("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:st,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),s("div",{key:"da84ea19a3eea3b40b3d32d0135e1fda9163427e",class:"col-6"},this.formDisabled?s("bank-account-read-only-value",{label:"Routing Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.routing_number)||""}):s("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:st,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},Ot=class{constructor(e){t(this,e)}render(){var t,e,i,a,n,r,o;return s("div",{key:"aea608cdca19fc3adac323404606aa7c56a18572",class:"row gy-3"},s("div",{key:"ef177cde388fb2c353a7e99088f59fa7add65a95",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Bank Name",value:null===(t=this.defaultValue)||void 0===t?void 0:t.bank_name}):s("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),s("div",{key:"28371c86ce49071b8ba0326468124b5de5709548",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Nickname",value:null===(e=this.defaultValue)||void 0===e?void 0:e.nickname}):s("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),s("div",{key:"d6d822d223d29f266ceed47ced4b8938f39b9655",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):s("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})),s("div",{key:"4c895bf0d84692d64fb79a597216913cd16e9fa9",class:"col-12"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Type",value:null===(a=this.defaultValue)||void 0===a?void 0:a.account_type}):s("form-control-select",{name:"account_type",label:"Account Type",options:Q,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),s("div",{key:"4b37594d23e84228d347e1ee2747aa4712f4258c",class:"col-3"},this.formDisabled?s("bank-account-read-only-value",{label:"Transit Number",value:(null===(n=this.defaultValue)||void 0===n?void 0:n.transit_number)||""}):s("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:st,helpText:"5 digits"})),s("div",{key:"7a1f042244ba0f3f20ad20c5b95771128c03174c",class:"col-3"},this.formDisabled?s("bank-account-read-only-value",{label:"Institution Number",value:(null===(r=this.defaultValue)||void 0===r?void 0:r.institution_number)||""}):s("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:st,helpText:"3 digits"})),s("div",{key:"9af8cc4227238851ca63b75fb00210ce19210b48",class:"col-6"},this.formDisabled?s("bank-account-read-only-value",{label:"Account Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):s("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:st,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},Et=(t,e)=>t.some((t=>t.document_type===e)),At=t=>t?{bank_name:ot.nullable(),nickname:rt.nullable(),account_owner_name:nt.nullable(),account_type:at.nullable(),account_number:it.nullable()}:{bank_name:ot.required("Enter bank name"),nickname:rt.required("Enter nickname"),account_owner_name:nt.required("Enter account owner name"),account_type:at.required("Select account type"),account_number:it.required("Enter account number")},It=(t,e)=>{if(e)return{voided_check:E().nullable(),bank_statement:E().nullable()};const s=Et(t,r.voidedCheck),i=Et(t,r.bankStatement),a=s||i,n="Please upload either a voided check or a bank statement. Only one is required.";return{voided_check:E().when("bank_statement",{is:t=>!t&&!a,then:t=>t.required(n),otherwise:t=>t.notRequired()}),bank_statement:E().when("voided_check",{is:t=>!t&&!a,then:t=>t.required(n),otherwise:t=>t.notRequired()})}},Ht={[H.USA]:(t,e=[])=>((t,e)=>{const s=Object.assign(Object.assign(Object.assign({},At(e)),(t=>t?{routing_number:lt.nullable()}:{routing_number:lt.required("Enter routing number")})(e)),It(t,e));return j().shape(s,[["voided_check","bank_statement"]])})(e,t),[H.CAN]:(t,e=[])=>((t,e)=>{const s=Object.assign(Object.assign(Object.assign({},At(e)),(t=>{const e=O().length(3,"Institution number must be 3 digits").matches(ht,"Enter valid institution number"),s=O().length(5,"Transit number must be 5 digits").matches(ht,"Enter valid transit number");return t?{institution_number:e.nullable(),transit_number:s.nullable()}:{institution_number:e.required("Enter institution number"),transit_number:s.required("Enter transit number")}})(e)),It(t,e));return j().shape(s,[["voided_check","bank_statement"]])})(e,t)},St=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new o,this.isLoading=!1,this.viewMode="manual",this.bankAccountVerification=!1,this.platformAccountId=null,this.getSchema=()=>(0,Ht[this.country])(this.allowOptionalFields,this.existingDocuments),this.initializeFormController=()=>{this.formController=new C(this.getSchema()),this.formController.setInitialValues("readonly"===this.viewMode?Object.assign({},this.bankAccount):{business_id:this.businessId}),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))},this.storeFiles=t=>{const e=Array.from(t.detail.fileList),s=t.detail.document_type,i=e.map((t=>new h({file:t,document_type:s},this.businessId)));this.documentData[s]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.processBusinessResponse(t.data),this.determineViewMode()},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.handleChangeBankAccount=()=>{this.viewMode=this.plaidAvailable?"plaid":"manual",this.documentData=new o,this.initializeFormController()},this.handleCancel=()=>{this.viewMode=this.existingBankAccount?"readonly":"plaid",this.documentData=new o,this.initializeFormController()},this.handleToggleToManualEntry=()=>{this.viewMode="manual"},this.handleToggleToPlaidVerification=()=>{this.viewMode="plaid"},this.handleSaveBankAccount=async()=>{this.formController.validateAndSubmit((()=>{this.sendData((()=>{}))}))},this.postDocumentRecordData=async t=>{this.isLoading=!0;const e=t.record_data;return new Promise((s=>{this.postDocumentRecord({payload:e,onSuccess:e=>{s(this.handleDocRecordResponse(t,e))},onError:({error:t,code:e,severity:i})=>{this.errorEvent.emit({message:t,errorCode:e,severity:i}),s(!1)}})}))},this.handleDocRecordResponse=(t,e)=>e.error?(this.errorEvent.emit({errorCode:n.POST_ERROR,message:e.error.message,severity:a.ERROR,data:e.error}),!1):(t.setPresignedUrl(e.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const e=await t.getFileData(),s=await fetch(t.presigned_url,{method:"PUT",body:e});return this.handleUploadResponse(s)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:a.ERROR,data:t.error}),!1)}propChanged(){this.initializeApi()}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){"readonly"===this.viewMode?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData(),this.formController=new C(this.getSchema())}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.postBankAccount=p({authToken:this.authToken,service:new k}),this.postDocumentRecord=b({authToken:this.authToken,service:new w})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}get postPayload(){const t=this.formController.values.getValue();return new Tt(t).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}get plaidAvailable(){return this.bankAccountVerification&&!!this.platformAccountId}get showCancel(){return this.bankAccountVerification||this.existingBankAccount}processBusinessResponse(t){const{bank_accounts:e,documents:s,settings:i,platform_account_id:a}=t;e.length>0?this.bankAccount=new Tt(e[e.length-1]):(this.bankAccount=new Tt({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=s,this.bankAccountVerification=!0===i.bank_account_verification,this.platformAccountId=a}determineViewMode(){this.viewMode=this.existingBankAccount?"readonly":this.plaidAvailable?"plaid":"manual"}async sendData(t){try{if("manual"===this.viewMode&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;"manual"===this.viewMode&&(this.viewMode="readonly",await this.refreshBankAccountData()),t()}catch(t){this.errorEvent.emit({message:t,errorCode:n.POST_ERROR,severity:a.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((e=>{let s=!1;this.postBankAccount({payload:this.postPayload,onSuccess:e=>{t=e,s=!0},onError:({error:t,code:e,severity:i})=>{s=!1,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:tt.bankAccount}),this.isLoading=!1,e(s)}})}))}async refreshBankAccountData(){return new Promise((t=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.processBusinessResponse(t.data),this.determineViewMode(),this.initializeFormController()},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.isLoading=!1,t()}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}renderBankAccountInputs(t){const e=this.formController.getInitialValues();return s(this.country===H.CAN?"bank-account-form-inputs-canada":"bank-account-form-inputs",{defaultValue:e,errors:this.errors,inputHandler:this.inputHandler,formDisabled:t})}renderReadonlyView(){return s("div",null,this.renderBankAccountInputs(!0),s("div",{class:"mt-3"},s(ct,{variant:"secondary",type:"button",onClick:this.handleChangeBankAccount,disabled:this.isLoading,part:F},"Change Bank Account")))}renderPlaidView(){return s("div",{class:"mt-3"},s("plaid-verification",{authToken:this.authToken,accountId:this.platformAccountId,businessId:this.businessId,onPlaidVerificationSuccess:()=>{this.viewMode="readonly",this.refreshBankAccountData()}}),s("div",{class:"mt-3"},s(ct,{type:"button",variant:"link",className:"p-0",onClick:this.handleToggleToManualEntry,disabled:this.isLoading,part:R},"Enter bank details manually (document upload required)")))}renderManualEntryView(){return s("div",null,this.plaidAvailable&&s("div",{class:"mb-3"},s(ct,{type:"button",variant:"secondary",onClick:this.handleToggleToPlaidVerification,disabled:this.isLoading,part:F},"Link bank account with Plaid instead")),this.renderBankAccountInputs(!1),s("div",{class:"mt-3 d-flex gap-2"},this.showCancel&&s(ct,{variant:"secondary",type:"button",onClick:this.handleCancel,disabled:this.isLoading,part:F},"Cancel"),s(ct,{variant:"primary",type:"button",onClick:this.handleSaveBankAccount,disabled:this.isLoading,isLoading:this.isLoading},"Save Bank Account")))}renderDocumentUploads(){return s("fieldset",{class:"mt-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"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}))}render(){return this.isLoading?s(X,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:M},"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"}),"readonly"===this.viewMode&&this.renderReadonlyView(),"plaid"===this.viewMode&&this.renderPlaidView(),"manual"===this.viewMode&&this.renderManualEntryView()),"plaid"!==this.viewMode&&this.renderDocumentUploads())}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],isLoading:["watchHandler"]}}},Vt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.coreInfo={},this.isLoading=!1,this.isEditingTaxId=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new S(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t(),this.isEditingTaxId=!1},onError:({error:t,code:s,severity:i,rawError:a})=>{e=t,a&&"object"==typeof a&&a.param&&this.formController.setFieldError(a.param,a.message),this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,e)=>{this.errors[t]&&this.formController.clearFieldError(t),this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new S(this.formController.values.getValue()).payload}componentWillLoad(){this.initializeApi();const t=this.country===H.CAN?T(this.allowOptionalFields):L(this.allowOptionalFields);this.formController=new C(t),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}render(){var t,e;const i=this.formController.getInitialValues();return this.isLoading?s(X,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Business Information")),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},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 col-md-6"},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:K,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:dt[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":i.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:"000000000",helpText:dt[this.country].taxIdHelpText}):s("div",null,s("label",{class:"form-label",part:q},dt[this.country].taxIdLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:W,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:F,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:B.US})))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Dt=class{constructor(e){t(this,e),this.documents=[],this.isLoading=!1}render(){return this.isLoading?s(bt,{height:"50px"}):this.documents.length?s(i,null,s("div",{class:"card",part:U},s("div",{class:"card-body"},s("h5",{class:"card-title",part:M},"Documents Already on File"),s("div",{class:"table-responsive"},s("table",{class:"table table-sm table-borderless",part:z},s("thead",null,s("tr",null,s("th",{style:{width:"25%"},part:Z,scope:"col"},"File Name"),s("th",{style:{width:"25%"},part:Z,scope:"col"},"File Type"),s("th",{style:{width:"25%"},part:Z,scope:"col"},"Document Type"),s("th",{style:{width:"25%"},part:Z,scope:"col"},"Date Uploaded"))),s("tbody",null,this.documents.sort(((t,e)=>t.document_type.localeCompare(e.document_type))).map(((t,e)=>s("tr",{class:0===e?"border-bottom border-top":"border-bottom"},s("td",{part:Y},t.file_name),s("td",{part:Y},t.file_type),s("td",{part:Y},ut(t.document_type)),s("td",{part:Y},`${mt(t.created_at)} - ${pt(t.created_at)}`))))))))),s("hr",null)):null}},Pt=class{constructor(s){t(this,s),this.clickEvent=e(this,"click-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.representativeIsOwner=null,this.matchRef=(t,e)=>{if(null===t)return;const s=this.ownersPayload.findIndex((t=>t.id===e));-1!==s&&(this.refs.length!==this.ownersPayload.length&&this.manageRefs(),this.refs[s]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new V(t.data.representative||{}),t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:et.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((e=>e.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)},this.handleRepresentativeIsOwnerChange=t=>{this.representativeIsOwner=t,this.representativeIsOwner&&(this.formLoading.emit(!0),this.isLoading=!0,this.ownersPayload=this.ownersPayload.filter((t=>""!==t.id)),this.patchBusiness({payload:{owners:[{id:this.representative.id},...this.ownersPayload]},onSuccess:()=>{this.getData(),this.newFormOpen=!1},finally:()=>{this.isLoading=!1,this.formLoading.emit(!1)}}))}}propChanged(){this.initializeApi()}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const e=this.refs.map((t=>t.validate()));if(!(await Promise.all(e)).every((t=>t)))return;const s=this.refs.map((t=>t.submit()));(await Promise.all(s)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.initializeApi(),this.getBusiness&&this.getData()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const e=t.detail,s=this.ownersPayload.map((t=>t.id===e.id?e:t));s.includes(e)||(s[this.ownersPayload.findIndex((t=>!t.id))]=e,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=s}render(){if(this.isLoading)return s(i,null,s(X,null));const t=this.ownersPayload.some((t=>t.id===this.representative.id)),e=null===this.representativeIsOwner&&!t;return s(i,null,s("div",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"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"}),e&&s("div",{class:"alert alert-warning mb-3",part:G},s("div",{class:"card-body"},s("div",{class:"d-flex align-items-center mb-3"},s("strong",null,"Is the representative of this business also an owner?")),s("div",{class:"d-flex gap-2"},s(ct,{variant:"primary",onClick:()=>this.handleRepresentativeIsOwnerChange(!0)},"Yes"),s(ct,{variant:"secondary",onClick:()=>this.handleRepresentativeIsOwnerChange(!1)},"No")))),s("div",{class:"row gy-3"},this.ownersPayload.map((t=>s("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:e=>this.matchRef(e,t.id)})))),s("div",{class:"d-flex justify-content-start"},s("div",{class:"gap-2"},s(ct,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner")))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"],ownersPayload:["ownersWatcher"]}}},Bt=class{constructor(e){t(this,e),this.isEditingIdentification=!1,this.inputHandler=(t,e)=>{ft(this.formController,{[t]:e})},this.onAddressFormUpdate=t=>{vt(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),t))}}render(){var t,e,i,a,n,r,o,h,l;return s("form",{key:"042455d68a432e0e218d5b8750fb1d22b0d202fc"},s("fieldset",{key:"d8949e76f0a2185438382868e36ef6a79bbbb214"},s("div",{key:"1471d4089c04b42408769ae5e964fe362c569205",class:"d-flex align-items-center gap-2"},s("legend",{key:"a59f689369a27f98dacab659f6f9c386475e9913",class:"mb-0",part:M},"Representative"),s("form-control-tooltip",{key:"404259ace28a8bd64c8f43a630d60992c35c996c",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."})),s("hr",{key:"bee8121f5a19680292259fba7a692a318c0d1c1e",class:"mt-2"}),s("div",{key:"f7976d2ec594ff07016dccb9fcc4909ba6cabc71",class:"row gy-3"},s("div",{key:"9a518fab2dd269e15afe05d8ca40157f97ca57db",class:"col-12 col-md-8"},s("form-control-text",{key:"1340ac078c18d464a88b5ca6de92d887cb0b3913",name:"name",label:"Full Name",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c680cdcab436875dde00c5ea68ab0bad9c56851e",class:"col-12 col-md-4"},s("form-control-text",{key:"ff9f6656c1147478b93f564774baa296fbb64922",name:"title",label:"Title",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"e6dcbe8bbe574db2756e5421e5fbcda41c7789cc",class:"col-12 col-md-6"},s("form-control-text",{key:"9f42434ec29b41da77eb1c87723d6483fa5c0ebf",name:"email",label:"Email Address",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"1e423be80b728506ec23b69df39d58ebd2a17313",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"e5694e680d8a6b022978a358a524c2163a82549f",name:"phone",label:"Phone Number",defaultValue:null===(a=this.representativeDefaultValue)||void 0===a?void 0:a.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:B.US})),s("div",{key:"362dc639f0d046372a35201bfdc0ea24db87fb7c",class:"col-12 col-md-4"},s("form-control-date",{key:"8d41cfc3ab11a373a42445542964d5a59f6c3f41",name:"dob_full",label:"Birth Date",defaultValue:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:t=>yt(t,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"ddafa094b5d67ef9ad8312f412a8032ce708d221",class:"col-12 col-md-8"},!(null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:dt[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:N[this.country],helpText:dt[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:q},dt[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:W,value:`****${null===(h=this.representativeDefaultValue)||void 0===h?void 0:h.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:F,onClick:()=>{this.isEditingIdentification=!0,ft(this.formController,{identification_number:"",ssn_last4:null})}},"Change")))),s("div",{key:"d4c54dbda49e4a141d82340f1162e1b27460d474",class:"col-12"},s("identity-address-form",{key:"1d70077d2d36e5f447353cbdb78900dfec903d0c",errors:this.errors.address,defaultValues:null===(l=this.representativeDefaultValue)||void 0===l?void 0:l.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},Nt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&this.formController&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new V(t.data.representative||{}),this.representative.address.country=this.country,this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.representative}),this.formLoading.emit(!1)}})}}propChanged(){this.initializeApi(),this.getData()}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.initializeApi(),this.initializeForm()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}initializeForm(){const t=gt[this.country];t?(this.formController=new C(t("representative",this.allowOptionalFields)),this.getData()):this.errorEvent.emit({message:"Missing schema for selected country",errorCode:n.MISSING_PROPS,severity:a.ERROR})}componentDidLoad(){this.formController&&this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get patchPayload(){return{representative:new V(this.formController.values.getValue()).payload}}render(){return!this.formController||this.isLoading?s(X,null):s("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"]}}},Mt=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.formCompleted=e(this,"formCompleted",7),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const t=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=t.data.terms_conditions_accepted}catch(t){this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:t.message,severity:a.ERROR,data:t})}finally{this.formLoading.emit(!1)}},this.sendData=async t=>{this.formLoading.emit(!0);try{const e=this.termsPayload,s=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(s,t)}catch(t){this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.message,severity:a.ERROR,data:t})}finally{this.formLoading.emit(!1)}},this.inputHandler=(t,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}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=wt(),this.formController=new C((t=>{const e=j({accepted:A().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),s=j({accepted:A().nullable()});return t?s:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(t,e){t.error?this.errorEvent.emit({errorCode:n.POST_ERROR,message:t.error.message,severity:a.ERROR,data:t.error}):e(),this.stepCompleteEvent.emit({response:t,formStep:tt.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:t}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:tt.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),t()):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get merchantAgreementLink(){return s("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return s("form",{key:"bd5117e6c5206dbbac772e6e9cbcb23f0dd3e8ad"},s("fieldset",{key:"ae9e0a6a5296a0fbad5ad1282a18ac3fd3d4445e"},s("legend",{key:"86dd2cfd7c8c0114cee2c5cfe83c9dc8f9b113df",part:M},"Terms and Conditions"),s("hr",{key:"c3747ca0ecaf68734a9335e14730471130d1a428"}),s("div",{key:"c5e1858326c6805c9cb16b84f224f95bb764b241"},s("p",{key:"352e14efc77677ce445e6437f27d68b864ec500b"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),s("br",{key:"b94cae3d132d7d211b0bbff5f0070717b034b256"}),s("div",{key:"ab728d134034552b02f74228746785e209776172",class:"row-gy-3"},s("div",{key:"645592f8eb929766c4c12f743a46c6ce03ae7459",class:"col-12"},s("form-control-checkbox",{key:"9fe09f38e66c2b1d879f620ab860ea2eee284889",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})))))}},Ft=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.formLoading=e(this,"formLoading",7),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.getBusiness&&(this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{const e=new D((t.data||{}).legal_address||{});this.legal_address=Object.assign(Object.assign({},e),{country:this.country}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:e,severity:s})=>{this.errorEvent.emit({message:t,errorCode:e,severity:s})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}}))},this.sendData=t=>{let e;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:s=>{e=s,t()},onError:({error:t,code:s,severity:i})=>{e=t,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:e,formStep:tt.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new D(this.formController.values.getValue()).payload}}componentWillLoad(){this.initializeApi(),this.formController=new C((0,kt[this.country])(this.allowOptionalFields)),this.getData()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=u({authToken:this.authToken,businessId:this.businessId,service:new g}),this.patchBusiness=m({authToken:this.authToken,businessId:this.businessId,service:new g})):this.errorEvent.emit({message:"Missing required props",errorCode:n.MISSING_PROPS,severity:a.ERROR})}render(){var t;const e=null===(t=this.formController)||void 0===t?void 0:t.getInitialValues();return this.isLoading?s(X,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:M},"Legal Address of your Business"),s("form-control-tooltip",{helpText:"No PO Boxes."})),s("hr",{class:"mt-2"}),s("form-address-fields",{country:this.country,errors:this.errors,defaultValues:e,inputHandler:this.inputHandler})))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},Rt=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event",7)}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:t}){this.coreComponent.validateAndSubmit({onSuccess:t})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=f({authToken:this.authToken,identityId:this.ownerId,service:new _}),this.patchOwner=v({authToken:this.authToken,identityId:this.ownerId,service:new _}),this.postOwner=y({authToken:this.authToken,service:new _}))}render(){return s("owner-form-core",{key:"82a1976007db4371de3c8da1cff48f27a9c7795e",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:t=>this.coreComponent=t})}},qt=class{constructor(s){t(this,s),this.plaidVerificationSuccess=e(this,"plaidVerificationSuccess",7),this.plaidVerificationError=e(this,"plaidVerificationError",7),this.linkToken=null,this.linkTokenId=null,this.plaidLink=null,this.isAuthenticating=!1,this.isSuccess=!1,this.error=null,this.isLoading=!1,this.plaidService=new xt,this.abortController=null,this.timeoutId=null,this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:d.PLAID_SDK_LOAD_FAILED,message:c[d.PLAID_SDK_LOAD_FAILED],severity:l[d.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:d.PLAID_LINK_TOKEN_FAILED,message:c[d.PLAID_LINK_TOKEN_FAILED],severity:l[d.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const t=window.Plaid;this.plaidLink=t.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(t){this.handleError({code:d.PLAID_LINK_INIT_FAILED,message:c[d.PLAID_LINK_INIT_FAILED],severity:l[d.PLAID_LINK_INIT_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var t,e,s,i;try{if(!this.authToken||!this.accountId)return void this.handleError({code:d.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please provide authToken and accountId.",severity:a.ERROR,retryable:!1,userAction:"Provide required props"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort()}),3e4);const t=await this.plaidService.getLinkTokenForVerification(this.authToken,this.businessId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),t.error)throw new Error("string"==typeof t.error?t.error:t.error.message||"Failed to get link token");this.linkToken=t.data.link_token,this.linkTokenId=t.data.id}catch(a){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let n=d.PLAID_LINK_TOKEN_FAILED,r=c[n],o=!0;"AbortError"===a.name?(n=d.PLAID_TIMEOUT,r=c[n],o=!0):(null===(t=a.message)||void 0===t?void 0:t.includes("network"))||(null===(e=a.message)||void 0===e?void 0:e.includes("fetch"))?(n=d.PLAID_NETWORK_ERROR,r=c[n],o=!0):((null===(s=a.message)||void 0===s?void 0:s.includes("401"))||(null===(i=a.message)||void 0===i?void 0:i.includes("unauthorized")))&&(n=d.PLAID_INVALID_CREDENTIALS,r="Authentication failed. Please check your credentials.",o=!1),this.handleError({code:n,message:r,severity:l[n],originalError:a,retryable:o,userAction:o?"Click to try again":"Check your credentials"})}},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=async t=>{var e;this.isAuthenticating=!1,this.isLoading=!0,this.clearError();try{const s=await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken,this.businessId,{public_token:t,link_token_id:this.linkTokenId},null===(e=this.abortController)||void 0===e?void 0:e.signal);if(s.error)throw new Error("string"==typeof s.error?s.error:s.error.message||"Failed to verify bank account");this.isSuccess=!0,this.isLoading=!1,this.plaidVerificationSuccess.emit({publicToken:t,bankAccount:s.data})}catch(t){this.isLoading=!1,this.handleError({code:d.PLAID_AUTHENTICATION_FAILED,message:(null==t?void 0:t.message)||"Failed to verify bank account",severity:l[d.PLAID_AUTHENTICATION_FAILED],originalError:t,retryable:!0,userAction:"Click to try again"})}},this.handlePlaidExit=t=>{this.isAuthenticating=!1,t&&this.handlePlaidError(t)},this.handlePlaidEvent=(t,e)=>{switch(t){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(e)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=t=>{let e=d.PLAID_AUTHENTICATION_FAILED,s=c[e],i=!0,a="Click to try again";if(t.error_code)switch(t.error_code){case"INVALID_CREDENTIALS":e=d.PLAID_INVALID_CREDENTIALS,s=c[e],i=!0;break;case"ITEM_LOGIN_REQUIRED":e=d.PLAID_INVALID_CREDENTIALS,s="Your bank requires re-authentication. Please try again.",i=!0;break;case"ITEM_LOCKED":e=d.PLAID_ACCOUNT_LOCKED,s=c[e],i=!1,a="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":e=d.PLAID_MAINTENANCE,s=c[e],i=!0;break;case"RATE_LIMIT_EXCEEDED":e=d.PLAID_RATE_LIMITED,s=c[e],i=!0;break;default:t.error_message&&(s=t.error_message)}this.handleError({code:e,message:s,severity:l[e],originalError:t,retryable:i,userAction:a}),this.isAuthenticating=!1},this.handleError=t=>{this.error=t,this.isLoading=!1,this.plaidVerificationError.emit(t),console.error("Plaid verification error:",t)},this.clearError=()=>{this.error&&(this.error=null)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.initializePlaidLink()},this.scriptRef.onerror=()=>{this.handleError({code:d.PLAID_SDK_LOAD_FAILED,message:c[d.PLAID_SDK_LOAD_FAILED],severity:l[d.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}disconnectedCallback(){this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){const t=s("svg",{class:"plaid-logo-img",height:"20",width:"20",viewBox:"0 0 28 29",xmlns:"http://www.w3.org/2000/svg",style:{display:"inline",marginLeft:"5px",marginRight:"5px",marginTop:"-2px"}},s("g",{fill:"#fff","fill-rule":"evenodd"},s("path",{d:"M25.7629 26.2628L28 17.5309L24.9691 14.5001L27.9999 11.4691L25.7628 2.73706L17.0309 0.5L14.0001 3.531L10.969 0.50014L2.23706 2.73734L0 11.4691L3.03128 14.4999L0.00014 17.531L2.2372 26.2629L10.9691 28.5L14.0001 25.469L17.031 28.4999L25.7629 26.2628ZM15.7321 23.7371L18.6186 20.8505L22.2912 24.5233L17.6956 25.7007L15.7321 23.7371ZM11.1136 9.88154L14.0003 6.99502L16.8868 9.8814L14.0001 12.7679L11.1136 9.88154ZM12.2682 14.5L9.38154 17.3865L6.49502 14.5L9.38154 11.6135L12.2682 14.5ZM18.6187 11.6133L21.5053 14.5L18.6186 17.3865L15.7321 14.5L18.6187 11.6133ZM16.8867 19.1186L14.0001 22.0051L11.1135 19.1185L14.0001 16.2319L16.8867 19.1186ZM10.3044 25.7007L5.70864 24.5233L9.38154 20.8504L12.2682 23.7371L10.3044 25.7007ZM4.76308 16.2319L7.6496 19.1185L3.9767 22.7914L2.7993 18.1957L4.76308 16.2319ZM3.9767 6.20836L7.64974 9.8814L4.76308 12.7681L2.7993 10.8041L3.9767 6.20836ZM12.2683 5.26294L9.38168 8.1496L5.70892 4.4767L10.3047 3.2993L12.2683 5.26294ZM17.6959 3.2993L22.2915 4.4767L18.6186 8.14946L15.7321 5.26294L17.6959 3.2993ZM23.2372 12.7681L20.3505 9.8814L24.0233 6.20878L25.2007 10.8046L23.2372 12.7681ZM24.0233 22.7914L20.3505 19.1186L23.2372 16.2321L25.2007 18.1957L24.0233 22.7914Z"})));return s(_t,null,s("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:t=>this.scriptRef=t}),s("div",null,s("div",{class:"mb-3"},s(ct,{variant:"primary",type:"button",onClick:t=>{t.preventDefault(),this.openPlaidLink()},disabled:this.isLoading,part:$},"Connect with Plaid ",t," (instant verification)")),(()=>this.error?s("div",{class:(this.error.severity===a.ERROR?"text-danger":this.error.severity===a.WARNING?"text-warning":"text-info")+" mt-2"},s("small",null,this.error.message),s("br",null),this.error.userAction&&s("small",{class:"text-muted"},this.error.userAction)):null)(),(()=>this.error?null:this.isLoading?s("div",{class:"text-info mt-2"},s("small",null,"Verifying bank account...")):this.isSuccess?s("div",{class:"text-success mt-2"},s("small",null,"✓ Bank account verified successfully")):this.isAuthenticating?s("div",{class:"text-info mt-2"},s("small",null,"Connecting to your bank...")):null)()))}};export{Lt as additional_questions_form_step,Ct as bank_account_document_form_inputs,jt as bank_account_form_inputs,Ot as bank_account_form_inputs_canada,St as business_bank_account_form_step,Vt as business_core_info_form_step,Dt as business_documents_on_file,Pt as business_owners_form_step,Bt as business_representative_form_inputs,Nt as business_representative_form_step,Mt as business_terms_conditions_form_step,Ft as legal_address_form_step,Rt as owner_form,qt as plaid_verification}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as a}from"./p-CV0Pyo1O.js";import{y as i,z as r,v as o,w as h,x as d}from"./p-D50Rx76J.js";import{F as l}from"./p-N60pPiy5.js";import"./p-CZfYo5-1.js";const n=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=d),t}render(){return s(a,{key:"7dedd8129ac03b8a6e4377eeb85d7d11fbd725c4"},s("div",{key:"3c8b4fe0d6a754467f6a160264243e4dd4820584",class:"form-group d-flex flex-column"},s("div",{key:"3c354acfc613ee7eb7f7237c6ae5c7555ad0590d",class:"d-flex gap-2"},s("label",{key:"978b8a6d2ebb30d6013f9a8546bcb023f997d614",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"830c65877ffe20c5d8b9854d550bde324f8a6d5a",helpText:this.helpText})),s("input",{key:"bc1bb45b9766dbf84b1d449b09b62a48a1beea28",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(l,{key:"e6fb1187611b553021e2d25212249b413f72a930",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{n as form_control_date}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import{S as r}from"./p-BrO0HEFJ.js";import"./p-D50Rx76J.js";const o=class{constructor(t){s(this,t)}render(){return t(e,{key:"
|
|
1
|
+
import{r as s,h as t}from"./p-CV0Pyo1O.js";import{S as e}from"./p-BqNNwq6C.js";import{S as r}from"./p-BrO0HEFJ.js";import"./p-D50Rx76J.js";const o=class{constructor(t){s(this,t)}render(){return t(e,{key:"aae82594ed1833982d7bb06ea0808e56e06b11f8"},t(r,{key:"52c5680b1dc298b75646e5409b9c5c5b83f53eae",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{o as justifi_skeleton}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import{d as s,b as d,s as i}from"./p-CTwm3w6I.js";import{i as c}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{a as f}from"./p-BH0Xfn-F.js";import{P as l,M as b}from"./p-CzdAS9Jo.js";import{a as r,b as o,D as h,c as p,C as y,E as n}from"./p-CjuaXEuI.js";import{S as m}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as u}from"./p-BrO0HEFJ.js";import{a as v,B as k}from"./p-Da4efjxw.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-D50Rx76J.js";const j=()=>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%"}))),w=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.loading=!0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===c.disputed&&this.payment.disputes.some((e=>e.status===f.lost))?l.DISPUTE_LOST:this.payment.status}render(){return e(m,{key:"92ef6c638768adc01e3682fb486dc2f988c677cd"},this.loading&&e(j,{key:"8fe108114498a6aa3c515f64bd1503b8bcd1bfb8"}),!this.loading&&this.errorMessage&&n(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"a47c503739269d4c0f429540268e93eb3e4594b3",errorMessage:this.errorMessage},e(r,{key:"98b968f9568403995a6581d1504691707251a1cb",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},b(this.PaymentStatus),this.payment.expedited?e(v,{variant:k.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(o,{key:"8269b38c09e7b0904d49cbecedede97fea33525e",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${d(this.payment.updated_at)}`}),e(o,{key:"4595b47217d10510b2999c1911d9705f7b9d2279",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${d(this.payment.created_at)}`}),e(o,{key:"d85ff59ce766dd40a852aca41554b67bc9399060",title:"ID",value:this.payment.id})),e("div",{key:"f3d19819c8adf1c0fb22aaec41835b6591ddbb21",slot:"detail-sections"},e(h,{key:"362ece2a9a5b7297e0c6f9e60f617146fab29ef8",sectionTitle:"Details"}),e("div",{key:"7d4f1ceeb5d2b76b1dff3be0e4931c1b184b4c64",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"addc59665a77d044f134627d79a0c1194cf462f0",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(p,{key:"17422ecc90e0847b6eb340d30c36299542f235da",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(p,{key:"b51e5fdd7c166fcfa837776602d4de69785c89b7",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(p,{key:"d6d3155f1a874f65126211bcab62b81f24fd57f3",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(p,{key:"7e1598c0bf56a6edc90d180377f734aae586eca0",title:"Status",value:b(this.PaymentStatus)}),e(p,{key:"be12abf332c2e9f67623e63a517ea23f231289ca",title:"Payment ID",value:this.payment.id}),e(p,{key:"3781968bb4c2a463623101007cefdf8c6ea6bcc4",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(p,{key:"6ebe10c76ada3fe1dd5f05c58a52fa0604f185df",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(p,{key:"dc9df4e19723689e619a543815919e2044bd5511",title:"Description",value:this.payment.description}),e(p,{key:"52dcd8984dda1115b53a9567e79a0d86d8117f0a",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(h,{key:"0a5595ced3b093b930e262415592c373109a95dc",sectionTitle:"Payment Method"}),e("div",{key:"0c8a056b36babb831b5d684ccf8d76a498878b16",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"e321d0b86c58fd62c7df5d12cb02a10f364058f7",title:"ID",value:this.payment.payment_method.card.id}),e(p,{key:"fcabccc2c569dc9990d8f2c38853dedbe4a5f6e4",title:"Payment Type",value:"Card"}),e(p,{key:"5aece8dd14247b1cf5dc6f42ae07c508df0509a6",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(p,{key:"b31e5a5f532d128168f3ec7b394e853bad0d5a1f",title:"Brand",value:i(this.payment.payment_method.card.brand)}),e(p,{key:"0527fd97d660f293d557ee89230e9f79a5565e44",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(h,{key:"9c7478beff791dcdd02744b83ae9d9f556e88133",sectionTitle:"Payment Method"}),e("div",{key:"09057810c9c5a091c4bd2d4f44f4ba034aeacb5e",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"b3a4d4e3404fbe85c27bfc1d00394ca87c668516",title:"ID",value:this.payment.payment_method.bank_account.id}),e(p,{key:"d1422c95907ef5a4889c2993db38b12ce0511435",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(p,{key:"b915ccece34ddb429c7f3809b7bd843f5cc85b5d",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(p,{key:"5cddb813c21797f33a2c50fd9d76c5e02823147f",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(h,{key:"75e1a474ef6d9290c8556345757ac5a69f72d615",sectionTitle:"Metadata"}),e("div",{key:"26482e1a90fa4b0e21fbefabd8c1d2d7a50d4e5a",class:"d-table gap-2 w-100"},e(y,{key:"2d1dd8a6d4fbb47c6dd13aa9c3f9508a984b3bf8",metadata:this.payment.metadata}))])))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{w as payment_details_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{T as a,a as i,b as r,c as h,d as o,e as n,f as c,g as p,h as d,i as f,j as b,k as m,l as g}from"./p-CwdQ1VdH.js";import{T as l}from"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-g6a7Gl9y.js";import{p as j}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{t as u,a as y}from"./p-ZiYybdMz.js";import{o as k,g as w}from"./p-BPTtWj7E.js";import"./p-D50Rx76J.js";import"./p-Df9FVwA7.js";import"./p-D8GTwl9v.js";import"./p-CTwm3w6I.js";import"./p-Da4efjxw.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.terminalOrders=[],this.loading=!0,this.paging=j,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.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new a(this.terminalOrders,this.columns,u,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=w();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"e515fe632488abfd755515d04a4bc8c481cb9083"},e(i,{key:"a15495309f335656cfbb1c518bb9d95eda2af86b"},e(r,{key:"a6f2bcfa3b981d244a640f3a2ced4fb98aa04774"},e(h,{key:"cf2ec3f36d53566f7fc4aadbd79d357ac1267f94"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"927ee10502d41c18b6950e447f3352edf765fdc9"},e(n,{key:"94c51d3ed02b72068b0bed02f0e1bb69024fffaf",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(c,{key:"a0e9d76f1340ddd33009d46682243863ff0509b2",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"7f209a130ebf67d59e6f4b9719225c1b087f44f5",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"1c714b7fe310a70b74f254eb36b126d3623b499a"},e(b,{key:"46d0b99409bd8611d7c1fb564aeaa236736a7947"},e(m,{key:"55215a040d58a64196013e0e831c35e1ccbb3309",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"a75512753bf06cfc6e1595ea8ed2e2081d06c3f9",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as terminal_orders_list_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e}from"./p-CV0Pyo1O.js";import{t as r}from"./p-D50Rx76J.js";const s=class{constructor(e){a(this,e)}render(){return e("div",{key:"00324bedfc493145fa318532ce8efac12fad1823"},e("label",{key:"0585ba26a000e3e761d7f7f212349392b692720b",class:"form-label",part:r},this.label),e("div",{key:"448c97ef256388d8541a7b96d34d972ce41b824a",part:r},this.value||""))}};export{s as bank_account_read_only_value}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as e,c as t,h as s,H as i,g as a}from"./p-CV0Pyo1O.js";import{a7 as r,x as d,v as o,y as h,z as n,C as l,w as c,a2 as f}from"./p-D50Rx76J.js";import{F as b}from"./p-D5MdA21U.js";import{F as m}from"./p-N60pPiy5.js";import"./p-CZfYo5-1.js";import{F as u}from"./p-CKiAlBsU.js";import{O as p}from"./p-BcNb9bVO.js";import{d as y}from"./p-D8EGHc_m.js";import{B as k}from"./p-C-QiUcEa.js";import{B as v}from"./p-XYgDHrVL.js";import{I as g,P as w}from"./p-CVaOFfrI.js";import{u as j,a as x,b as C}from"./p-C6o0liMT.js";import{c as T}from"./p-_-2E_vYf.js";import"./p-BFTU3MAI.js";import"./p-HT_4DkD0.js";import"./p-Bt4GjEWL.js";const V=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.isFocused=!1,this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,s=t.getAttribute("name");this.inputHandler(s,t.value),this.formControlInput.emit({name:s,value:t.value})},this.updateInput=e=>{const t=this.el.querySelector("input");t&&(t.value=e||"")}}handleDefaultValueChange(e){this.updateInput(e)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?d:this.errorText?o:h}render(){return s(i,{key:"e21694c1c7611df6ede999aa75fece02977f66f3"},s("div",{key:"8ea4a38832865e82ffeebcceaabc704d10403966",class:"form-group d-flex flex-column"},s("label",{key:"396ab2f79a7168080538ae46da735506b0797311",part:n,class:"form-label",htmlFor:this.name},this.label),s("input",{key:"715cb6bfbf439fdd4f659e6d21091b047cbca94d",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),s(b,{key:"f8695d85c9b447644b5bdf02d4df9e1c1e3e5da7",helpText:this.helpText,name:this.name}),s(m,{key:"e736f720d89f5d5aeee6982cb15ea11f63c5dd93",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},_=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownerSubmitted=t(this,"ownerSubmitted",7),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new p(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?v.updateOwner:v.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:v.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new p(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new u((0,y[this.country])("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"6705c84411498ae63ac74d8e1591244ad4aad1e2",onSubmit:this.validateAndSubmit},s("fieldset",{key:"d07a5ebef58a3324dd122da2b0cdebdee10ad2e5"},s("legend",{key:"dc334d9a75b88a887d393e2c6fd50fcea3b15d22",class:"fw-semibold fs-5",part:l},this.formTitle),s("br",{key:"54e3d33a5ce1399d0f35196d80ae3261016d2cd6"}),s("div",{key:"a9f23ec75a53751db207e1bdb1e55afc53b28e4e",class:"row gy-3"},s("owner-form-inputs",{key:"37b6df39ba21b4238790f4e8707514931c24c525",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController,country:this.country}),s("div",{key:"f057d4176ddd6e07074bedffed5c46ee67c3d492",class:"d-flex gap-2 justify-content-start"},s(k,{key:"3a5060f48638d82c5df9fbae449717dbee3315ae",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(k,{key:"02608516d0ebc2df452c0f592b62cebd7033a88b",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"842817aafad086dd27357e0050ccd8cacd2055ff"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},O=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{j(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{x(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,t,i;return s("div",{key:"23441b62bcb42f0ca9d8e361242310564b8a3ed7",class:"row gy-3"},s("div",{key:"ae42abf0f8edda6bd715278857657029a2855336",class:"col-12 col-md-8"},s("form-control-text",{key:"b83f35442a6354461cf583dd23b48d047656ffd6",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"15ab3b55445533d65553e075e8471a95556702e9",class:"col-12 col-md-4"},s("form-control-text",{key:"eff52904d3c8eadbafe1e6ca0dc29894846e74ad",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"0f2d385f6aaede51cc519c9e2fac75f041d5ab42",class:"col-12 col-md-6"},s("form-control-text",{key:"5b27e9343f3d3ca5706d2d294d7ab9fe5e15ab28",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"811751b44ff2290f95d9fb9874c5bd2c6ca89a42",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"07f32b1711d2977fa5e7abd2aad21d4c6b47bb1e",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:w.US})),s("div",{key:"db8254d91e059fb610f607d5e905a970509497f7",class:"col-12 col-md-3"},s("form-control-date",{key:"7f3001fa6e204f7307d758f595594838c792a301",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>C(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"90e1846c32df8b94dd0ea13950daf0bebaf81c13",class:"col-12 col-md-3"},s("form-control-number",{key:"6c43d8dcb99b411b02f67f6100db5ce85b750eb9",name:"ownership_percentage",label:"% of Ownership",defaultValue:null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ownership_percentage,errorText:this.errors.ownership_percentage,inputHandler:this.inputHandler})),s("div",{key:"4e28b49a6bf1eee3fa78422dd5f7d88917b87a75",class:"col-12 col-md-6"},!(null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:T[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:g[this.country],helpText:T[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:n},T[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:c,value:`****${null===(i=this.ownerDefaultValue)||void 0===i?void 0:i.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:f,onClick:()=>{this.isEditingIdentification=!0,j(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),s("div",{key:"61203d0283d7e335dd559629bab77640e73202a4",class:"col-12"},s("identity-address-form",{key:"d3f349ba237f771520369198da9e76126498a536",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{V as form_control_number,_ as owner_form_core,O as owner_form_inputs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as o}from"./p-CEnTtUmd.js";import{S as r,C as s}from"./p-g6a7Gl9y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{g as t,a as n}from"./p-C-Uj-u5r.js";const c=o();class a{async fetchSubAccounts(o,r,s){return c.get({authToken:r,endpoint:"sub_accounts",params:s,headers:{Account:o}})}}const e=({primaryAccountId:o,authToken:c,service:a})=>async({params:e,onSuccess:p,onError:i})=>{var u,m;try{const d=await a.fetchSubAccounts(o,c,e);if(d.error){return i({error:n(d.error),code:t(null===(m=d.error)||void 0===m?void 0:m.code),severity:s.ERROR})}{const o=Object.assign({},d.page_info);p({subAccounts:(null===(u=d.data)||void 0===u?void 0:u.map((o=>new r(o))))||[],pagingInfo:o})}}catch(o){const r=t(null==o?void 0:o.code);return i({error:o.message||o,code:r,severity:s.ERROR})}};export{a as S,e as m}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-CV0Pyo1O.js";import{y as o,z as r,v as h,w as f,x as l}from"./p-D50Rx76J.js";import{F as c}from"./p-N60pPiy5.js";import"./p-CZfYo5-1.js";const n=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.fileSelected=s(this,"fileSelected",7),this.isFocused=!1,this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit({name:i,value:s.value})},this.changeHandler=()=>{const t=this.fileInput.files;t&&this.fileSelected.emit({fileList:t,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let t=o;return this.errorText&&(t=h),this.disabled&&(t=f),this.isFocused&&(t=l),t}render(){return i(e,{key:"9ea17017850bd5e83a213b5247af2fe64f11db6c"},i("div",{key:"6cb7715a542d193a1ef1579dad6889fb0191e195",class:"form-group d-flex flex-column"},i("div",{key:"c643268b004611f98b4d24c341a46d0bce9a8944",class:"d-flex align-items-start gap-2"},i("label",{key:"3541f24060c2279f0cfb604f7bdec355462196a8",part:r,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"66f62e7d0ab51765fefc92d8674402a439671792",helpText:this.helpText})),i("input",{key:"564819ed2423c923f16329dc4ccb7a96f50e7ddd",ref:t=>this.fileInput=t,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()}}),i(c,{key:"2bbc1831fa7aaf773c24860ac47a8318b2eef93d",errorText:this.errorText,name:this.name})))}get el(){return a(this)}};export{n as form_control_file}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-CV0Pyo1O.js";import{J as a}from"./p-x7WGc-xR.js";import{c as s}from"./p-DKzki_Iz.js";import{c as d}from"./p-EBsfAkrP.js";import{c}from"./p-D50Rx76J.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{P as h}from"./p-DkoufM1t.js";import"./p-B5w1e9rb.js";import"./p-CEnTtUmd.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-CTwm3w6I.js";import"./p-HXpYMWUU.js";import"./p-g6a7Gl9y.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const r=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.submitEvent=t(this,"submit-event",7),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){s(),this.analytics=new a(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){console.error("[justifi-checkout] error-event received",null==e?void 0:e.detail),this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==h.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){d.billingFormFields=e}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"73b79b014b6531a63beeb8344ff60d2b7c471843"},i("justifi-modular-checkout",{key:"073ad54ce7f410a0ab30f2cb4e8bbf4249eccd83",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"220624a67095dd6c5e45e38165adc0d91387de8b",class:"row gy-3 jfi-checkout-core"},i("div",{key:"874c39887dd3e6f7a375b962274f5b24b4376d4c",class:"col-12",part:c},i("justifi-header",{key:"08a25616916d84d085af3c105e1c3a7a1805c4d3",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"d4163febcd194252dd6e3aae1aa03b9b9cc0d1c7"},i("justifi-checkout-summary",{key:"22777a669b904b7dd3af1ff703639859ffc9f93a"}))),i("div",{key:"97b42c19e8efd21a41d6e87974fb4fafcfe70c77",class:"col-12 mt-4"},i("slot",{key:"4b4458ccf0239b1d5e97847ed9eac168285c077f",name:"insurance"})),i("div",{key:"33b48b7b71539faf11b0f5c53a1f6e0b93069dbb",class:"col-12 mt-4"},i("justifi-header",{key:"6a5af57eacc4874731d056b8f01074d7f8cb27a5",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"a7f5a0370e68069bab7e6bd1e5c09b175a77a44c",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"9c4ae3ad92e1bee55295a070306f2fd22e309fc0",class:"d-flex flex-column"},i("section",{key:"6e450dbf66ea4f096860fdcc8b3bf1d170814d64"},i("div",{key:"5b82e3ce72a8344916f05bc2213db4f2ebd54172"},this.availablePaymentMethods.includes(h.APPLE_PAY)&&i("div",{key:"9eaa37fe8d386d7d23e4b6c86b9206c96fdf8c69",class:"mb-3"},i("justifi-apple-pay",{key:"9c9abe2bdc3803323f00e0a958a86b9496a29cb6"})),this.availablePaymentMethods.includes(h.GOOGLE_PAY)&&i("div",{key:"9566ce9d4911303bf7236cd112bc125b1129607e",class:"mb-3"},i("justifi-google-pay",{key:"0a4a00992788daba39d5d1ee029d75975aaeaa31",ref:e=>this.googlePayRef=e})),i("justifi-saved-payment-methods",{key:"942357d2f3c15a0cfb8052d6982626d883a6d021"}),this.availablePaymentMethods.includes(h.SEZZLE)&&i("justifi-radio-list-item",{key:"2e9c45192f554c086a70d26bef34813a83032684",name:"paymentMethodType",value:h.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===h.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(h.PLAID)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"3cd456040d3027ca3c4a1986a871ca2c60b73809",name:"paymentMethodType",value:h.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===h.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"89ed477b53199fc45da3c933b6185eb9590ffcde",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"4d5adc74fcbe92a1b1ade900efb82c38a729f790",class:"mt-4"},i("justifi-button",{key:"7bae24117b1537457b335dc7583d8897cd3b48b0",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{r as justifi_checkout}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as c,F as i}from"./p-CKiAlBsU.js";import{a9 as d}from"./p-D50Rx76J.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:c().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,c=t.name,i=t.files;a[c]=[];for(const e of i)a[c].push(new n(e,c))},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 i(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"52a3582921131f503e686dc1e4e414ecbe2d3436"},a("div",{key:"b1ed7dd8700f9a23b8192cedad71c1f6d7cdbd81",class:"row gy-3"},a("div",{key:"57a4468b76e542c5a4e69f7f6f9a5e798a3deee6",class:"col-12"},a("h2",{key:"718743cea661a339cc5eafd6d7dfae0b8b04756c",class:"h5",part:d},"Additional Evidence")),a("div",{key:"0a7dcb294cdc2a2184e4001965527ba29c9729d2",class:"col-12"},a("form-control-textarea",{key:"cb8a64aaaa7959210f920133d1dd77796df6fa18",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:"f4807fb4a58f89cc87ea90279abd35024460db55",class:"col-12"},a("form-control-file-v2",{key:"35ec01b9fd4025701aaf933a2a9cf03735d734d6",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:c().nullable(),cancellation_rebuttal:c().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 i(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"b91b53561920d566bc508a2356159b6f0883eb0a"},a("div",{key:"1a579081d289314528ca63c7aa8cc14d61a0458a",class:"row gy-3"},a("div",{key:"99804ed2e0018dbc0749fbe0101b328dbdba8208",class:"col-12"},a("h2",{key:"27e080e43f0f8b0aa665dfeab527bdd34a9b3c69",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"ae8ef97b796d26c1bd961a0480cc855d04b6c05a",class:"col-12"},a("form-control-textarea",{key:"9c62ef0af2425d0d611b6bdeeab79649debe0847",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:"ad26b16f585ac4a99a74893b90a76a66154fb96d",class:"col-12"},a("form-control-textarea",{key:"4cd3adee3b01393d83b8b60829c46343ef116a95",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:"f015b6667576149bf68831f25a3f28f83c58b222",class:"col-12"},a("form-control-file-v2",{key:"d309d1340359ae4435d94711cac9653e64cf68cb",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.cancellation_policy}))))}},u=t({customer_name:c().nullable(),customer_email_address:c().nullable(),customer_billing_address:c().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 i(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"aaedcbb7cca35c4ef511a0bb9407604cff6932cb"},a("div",{key:"e1138d89b2d4cb674f01593148ba48801949f932",class:"row gy-3"},a("div",{key:"1436a7c55837514d85e556eab03fe52f97b73b95",class:"col-12"},a("h2",{key:"29381277f0becb71a3969c7f31d1248cdbcda970",class:"h5",part:d},"Customer Details")),a("div",{key:"16e9380af72e2a6f39030a4ec3d2b564ee65d23b",class:"col-12"},a("form-control-text",{key:"7638809db83c50c177f4c5578034fc8f395f8be0",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:"29706beee1719d5ac66c04770080856334503835",class:"col-12"},a("form-control-text",{key:"d1ef9f86f2d2e312cc1fd80fac912310c6488b09",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:"a873ceeaf0471ff593999497a0b4dc0c9be35b1b",class:"col-12"},a("form-control-textarea",{key:"27a95f325650a5e2e2dacf769613301ad27d23a7",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"f964670531ca817ca0eda3929d5ad76b561c19ef",class:"col-12"},a("form-control-file-v2",{key:"78dc9ac5f501e89b597b7f2f4398e724ca0790d1",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.customer_signature})),a("div",{key:"f85ad27eeaeffcd8312b75878774d46fb8a1066d",class:"col-12"},a("form-control-file-v2",{key:"fa62e438857f097a1e91dc2e568beccf593f5a74",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:c().nullable(),duplicate_charge_explanation:c().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 i(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"25b4e50ccd4f038c40d8d0c2664776b13ba4481b"},a("div",{key:"7839487ade69bcc397ae61f3d615e67c3e386a94",class:"row gy-3"},a("div",{key:"9e00178320d3f1f70b978df5ec4dcf7a7c3e10d3",class:"col-12"},a("h2",{key:"0fbd5c1f4a5cfd063ee02d9a7242b3bf021ce2ed",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"dd354e2249e8d636725ea8deb8123db8723aff95",class:"col-12"},a("form-control-text",{key:"ca1f6e2ce644068c93f39ca27010aad6f8f1a741",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:"8286c187d0ae51e5100e85c64433aa62f2d87b91",class:"col-12"},a("form-control-textarea",{key:"e1aea8da88793aa9e78578e52444cfd30afc7f41",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:"165ec84127b9fdb6a085c50c3d9957fa77bdd8ec",class:"col-12"},a("form-control-file-v2",{key:"cdf0b17d75e369276608905181cf531c9387be56",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:c().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 i(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"a56362880cb16ffabf24b062215ee30b4e0fca4b"},a("div",{key:"48649b812efd04d2656cccb983568b9139928dd5",class:"row gy-3"},a("div",{key:"751a083f76c07a434ab42ad3a62a3fb884af8f46",class:"col-12"},a("h2",{key:"9e48b060b3e03d073683defdaf1f8dca721dc9b5",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"d784cc0078952f5a403460f85916da8391aa7216",class:"col-12"},a("form-control-text",{key:"38f1a8c8a2b775ff48cb69af9c89979fc6cff19e",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:"5c3f9dd0c5036e8f0284d86b58a1549ef7f65ae2",class:"col-12"},a("form-control-file-v2",{key:"61104caa120f25a620eed712d37414976063b950",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:c().nullable(),service_date:c().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 i(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c;return a("div",{key:"7cb338a69707254cc2c0ccf7cea598380331dd5b"},a("div",{key:"8cc05bbd74be050d887964c20a336d58e6bccd31",class:"row gy-3"},a("div",{key:"7fd7d75e46a3e76a5421d217c52681fbaef47e40",class:"col-12"},a("h2",{key:"6cc302087f7eb8d785522420678ff5b1a2f96df0",class:"h5",part:d},"Product & Service Details")),a("div",{key:"d4bba967bc346c1bf8240bdd50421643b5bd36d5",class:"col-12"},a("form-control-text",{key:"45870cd9aa42f5cc2906e34e7f24d9e1dfa81bfd",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:"e4ee19663d28921208736a09b5a697bc4d8a17ea",class:"col-12"},a("form-control-date",{key:"3ef6bb94b0a10f882d566a2a432ba3d6ce482cd1",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:"63d88212fa98935068d7ef0e9f1ec0ca5192dd4c",class:"col-12"},a("form-control-file-v2",{key:"231b87e6b4d1a8ee530edc6d21701df21c82c91d",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.service_documentation}))))}},x=t({refund_policy_disclosure:c().nullable(),refund_refusal_explanation:c().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 i(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i;return a("div",{key:"c63cdc18f30fd294af7ecf0b4ea7d587f06abaea"},a("div",{key:"c9f68730fbe832982d626ab897e407d67c570942",class:"row gy-3"},a("div",{key:"b3932aea5591f932613af951f15917e14a35b28c",class:"col-12"},a("h2",{key:"d7493a5e9a477ba02e70c26b8e2bbd344662d2c7",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"490750c83185595252908047595ba23b5f705801",class:"col-12"},a("form-control-textarea",{key:"511931f7c55bc173b891770c6e5d89df30e37b08",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:"8028af10e59f016a54d1639aad49c3ecbd063c70",class:"col-12"},a("form-control-textarea",{key:"22f0e873729a3a83c62824d2695304775d96d986",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:"7492b589d4717ac0d478109797d80fdc2c56b8fc",class:"col-12"},a("form-control-file-v2",{key:"3a9297c083a93f813be357b21cd09dd213c420a9",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.refund_policy})),a("div",{key:"6f7db6c147c577427c11aca96a2944a493b037c1",class:"col-12"},a("form-control-file-v2",{key:"ddc5cca9e50bb01aec30cc0b666cca722bd6acca",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.receipt}))))}},O=t({shipping_carrier:c().nullable(),shipping_tracking_number:c().nullable(),shipping_date:c().nullable(),shipping_address:c().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 i(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,c,i,s;return a("div",{key:"66ab4f496a037d4724fcc127803d2fd4c72ad2a8"},a("div",{key:"a650a56e124ecc55aaa383a32e27cad862801d01",class:"row gy-3"},a("div",{key:"aedaacba104b8540eedafcbc8f7c776fa99ab387",class:"col-12"},a("h2",{key:"b4e2dc10ef6cbdab47143f2cc64a484050bfc416",class:"h5",part:d},"Shipping Details")),a("div",{key:"7110551e0ecf98b149f008eb7105235b8d601454",class:"col-12"},a("form-control-text",{key:"2c17294567ff47b181c8d11cfda7651671adac92",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:"031476a2435c80b8ae27fb50303f14797d84a801",class:"col-12"},a("form-control-text",{key:"67441fbba00af48235867763561cf8adf66b9e69",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:"1fcc1bf129d3ec577f4f36a2801422044ec0a59e",class:"col-12"},a("form-control-date",{key:"aa0464427d083dceba8e1604e045c707366d6046",label:"Date Shipped",name:"shipping_date",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"f61850943df4c9d6605cde9d86b2e8275ced0af4",class:"col-12"},a("form-control-textarea",{key:"a1d4997810348a93f26a9f4932890ffd911ea062",label:"Shipping Address",name:"shipping_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"9dd41ee3436d63e0c89318129e811630e4aad75d",class:"col-12"},a("form-control-file-v2",{key:"fe1879caad49f44f1abd312a3925a20e6bdc11bf",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}
|