@justifi/webcomponents 6.10.4 → 6.11.0
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/{Plaid-B_UkFjIV.js → Plaid-DR9WDZ98.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-Bd6H9TX2.js → badge-GBNtUypt.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +9 -9
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business.service-Kplx8w_D.js → business.service-mliLE8kX.js} +1 -1
- package/dist/cjs/{button-DAbSQPoU.js → button-CR9Rl1-o.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-Mv0ez8Cf.js → check-pkg-version-Di4JmtKX.js} +2 -2
- package/dist/cjs/{checkout.service-B2toaeKY.js → checkout.service-Cok0vRot.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +6 -6
- package/dist/cjs/{checkouts-table-KuNixae0.js → checkouts-table-CCxrsy0x.js} +2 -2
- package/dist/cjs/custom-popper_2.cjs.entry.js +3 -3
- package/dist/cjs/{dispute.service-C4n1SOsu.js → dispute.service-DEH_I2G9.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-C4Wqr79O.js → form-control-error-text-BO58Y6zF.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-Bo9d_mCH.js → form-control-help-text-BdbTxD5g.js} +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number_3.cjs.entry.js +6 -6
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_2.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-Atcodhcd.js → get-payment-details-DNpOyUyR.js} +1 -1
- package/dist/cjs/{get-subaccounts-BUyf9EhG.js → get-subaccounts-BQW_RPW5.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
- package/dist/cjs/{header-1-DR-eAlp1.js → header-1-CsBQoo1f.js} +1 -1
- package/dist/cjs/{header-3-kgnQtxEu.js → header-3-DCYJhPro.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +7 -7
- package/dist/cjs/{insurance-state-CRhLwPxQ.js → insurance-state-Xe2auE-N.js} +1 -1
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +12 -12
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +6 -6
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +14 -14
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +11 -11
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -6
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-OpgJzVo3.js → package-D8NG-zuY.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-WjOn_TIy.js → parts-BXshb_S-.js} +3 -70
- package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment-provisioning-loading-BHAFHTuI.js → payment-provisioning-loading-tM9WWmxv.js} +1 -1
- package/dist/cjs/{payment.service-CxSGTv_O.js → payment.service-Dl9UExDw.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{payments-status-BngaUiWA.js → payments-status-Bj_bCKUP.js} +1 -1
- package/dist/cjs/{payments-table-DFOF8yrM.js → payments-table-CUxpxNnc.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +9 -9
- package/dist/cjs/{payout.service-CO2wDM6M.js → payout.service-kaFewwx4.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{payouts-status-CP5T9uAc.js → payouts-status-DXZ5fl4v.js} +1 -1
- package/dist/cjs/{payouts-table-CHNRLZ3K.js → payouts-table-Dex2W8r1.js} +2 -2
- package/dist/cjs/{plaid.service-DvbLnuph.js → plaid.service-CK1ouCBC.js} +1 -1
- package/dist/cjs/{skeleton-BfN_sjaY.js → skeleton-DvRCiQlA.js} +1 -1
- package/dist/cjs/{spinner-51BOfCoS.js → spinner-C6ZGOB2P.js} +1 -1
- package/dist/cjs/{table-CimkSek7.js → table-DjbNv28p.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +7 -7
- package/dist/cjs/{terminal-orders-table-DDLvv83x.js → terminal-orders-table-07fV7wGh.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-CUVwCH-a.js → terminal.service-UUoIe0IR.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +7 -7
- package/dist/cjs/{terminals-table-BU73whCF.js → terminals-table-DmnAuog5.js} +2 -2
- package/dist/cjs/{utils-CowQ4GdN.js → utils-8RGQVADu.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Terminal.js +1 -1
- package/dist/collection/api/services/apple-pay.service.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +24 -4
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +4 -4
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +4 -4
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +27 -5
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +42 -2
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +1 -40
- package/dist/collection/ui-components/custom-popper/custom-popper.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/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 +104 -3
- package/dist/esm/{Plaid-Cmyilr-q.js → Plaid-DOdR_CNb.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-BfWXAKIJ.js → badge-guwZ0VTf.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +9 -9
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business.service-CS-wQJoN.js → business.service-DSolii9Q.js} +1 -1
- package/dist/esm/{button-DoF-zpiW.js → button-CdXktiZq.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-QOngucT4.js → check-pkg-version-Dn83YYz_.js} +2 -2
- package/dist/esm/{checkout.service-BcQ_onZq.js → checkout.service-BTXHVtxI.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +6 -6
- package/dist/esm/{checkouts-table-XjFiAWCw.js → checkouts-table-Bf6gjMf8.js} +2 -2
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/{dispute.service-B_oe0uFV.js → dispute.service-CpDEYnHy.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-D5B0Wy4Q.js → form-control-error-text-JYoDicr0.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-XuRclELV.js → form-control-help-text-DxL7yVgi.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_3.entry.js +4 -4
- package/dist/esm/form-control-number_3.entry.js +6 -6
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_2.entry.js +6 -6
- package/dist/esm/{get-payment-details-BdewJSTH.js → get-payment-details-VEzqfeuZ.js} +1 -1
- package/dist/esm/{get-subaccounts-BFALCYFr.js → get-subaccounts-DUdsxExJ.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +4 -4
- package/dist/esm/{header-1-BIaO3iDb.js → header-1-CU8Erek9.js} +1 -1
- package/dist/esm/{header-3-UswhFvUr.js → header-3-BwJ-9MsW.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-MpA7uaXF.js → insurance-state-gsU4kKgc.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +12 -12
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +6 -6
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-apple-pay_8.entry.js +14 -14
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -5
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +5 -5
- package/dist/esm/justifi-dispute-notification_3.entry.js +11 -11
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +8 -8
- package/dist/esm/justifi-payment-details.entry.js +7 -7
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +9 -9
- package/dist/esm/justifi-payout-details.entry.js +6 -6
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-refund-payment.entry.js +8 -8
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +5 -3
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/justifi-tokenize-payment-method.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Cc6518FT.js → package-qNXIkzDE.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/parts-D3V9AE6o.js +110 -0
- package/dist/esm/payment-details-core.entry.js +14 -14
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment-provisioning-loading-DRFgrvp1.js → payment-provisioning-loading-CQfDKCwy.js} +1 -1
- package/dist/esm/{payment.service-Nvz1TYZB.js → payment.service-BjU4B__W.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +8 -8
- package/dist/esm/{payments-status-Dkt38hpB.js → payments-status-DT4VNKKg.js} +1 -1
- package/dist/esm/{payments-table-ghXGJ-N6.js → payments-table-BJ1F2ZZU.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +9 -9
- package/dist/esm/{payout.service-tTxsxoqF.js → payout.service-CzCd8AaC.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +8 -8
- package/dist/esm/{payouts-status-B4iry-1w.js → payouts-status-LTNE_gQc.js} +1 -1
- package/dist/esm/{payouts-table-CBsTdL9_.js → payouts-table-Yp2d9OgA.js} +2 -2
- package/dist/esm/{plaid.service-C59iS7tB.js → plaid.service-D61Eq14d.js} +1 -1
- package/dist/esm/{skeleton-DzBAY0bs.js → skeleton-CV6EpBqb.js} +1 -1
- package/dist/esm/{spinner-DQpyMqKv.js → spinner-CG3aWl8K.js} +1 -1
- package/dist/esm/{table-BwxLvetJ.js → table-DZ6rurWg.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +7 -7
- package/dist/esm/{terminal-orders-table-Cy0qV96Y.js → terminal-orders-table-CJg6dKsL.js} +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Dv1-CZ4Y.js → terminal.service-BBdRhDxm.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +7 -7
- package/dist/esm/{terminals-table-BQQs_JoR.js → terminals-table-iGSICJeZ.js} +2 -2
- package/dist/esm/{utils-BGbtbDiV.js → utils-DUArY3am.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Plaid.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/apple-pay.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/cancellation-policy.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/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-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 +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method2.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkouts-list-filters.js +6 -4
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +2 -2
- package/dist/module/justifi-payments-list-filters.js +4 -4
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +2 -2
- package/dist/module/justifi-payouts-list-filters.js +4 -4
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +22 -12
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +6 -2
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/modular-checkout.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +2 -41
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/types/api/Checkout.d.ts +1 -0
- package/dist/types/api/Terminal.d.ts +3 -1
- package/dist/types/api/TerminalOrder.d.ts +1 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +2 -0
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/styles/parts.d.ts +1 -35
- package/dist/webcomponents/{p-DqtDbB8E.js → p--UanYWb-.js} +1 -1
- package/dist/webcomponents/p-03b913e8.entry.js +1 -0
- package/dist/webcomponents/{p-fa876b02.entry.js → p-12b662e3.entry.js} +1 -1
- package/dist/webcomponents/{p-d07748fa.entry.js → p-132c8d4c.entry.js} +4 -4
- package/dist/webcomponents/{p-ec9f527d.entry.js → p-15919744.entry.js} +1 -1
- package/dist/webcomponents/{p-c5540693.entry.js → p-19e82b02.entry.js} +1 -1
- package/dist/webcomponents/p-19f22078.entry.js +1 -0
- package/dist/webcomponents/p-1ddbbba8.entry.js +1 -0
- package/dist/webcomponents/p-1fc96f35.entry.js +1 -0
- package/dist/webcomponents/{p-3cfc202a.entry.js → p-251f6c90.entry.js} +1 -1
- package/dist/webcomponents/p-2758d129.entry.js +1 -0
- package/dist/webcomponents/p-2V38oZhe.js +1 -0
- package/dist/webcomponents/{p-DrSNQm-e.js → p-2xM1wp0u.js} +1 -1
- package/dist/webcomponents/p-320aac60.entry.js +1 -0
- package/dist/webcomponents/{p-cb09959d.entry.js → p-337fb232.entry.js} +1 -1
- package/dist/webcomponents/p-3490ede8.entry.js +1 -0
- package/dist/webcomponents/{p-393c9065.entry.js → p-368d8543.entry.js} +1 -1
- package/dist/webcomponents/{p-b3675b20.entry.js → p-3bf56699.entry.js} +1 -1
- package/dist/webcomponents/p-3cd30c7a.entry.js +1 -0
- package/dist/webcomponents/{p-a75bc18b.entry.js → p-3f9c7b04.entry.js} +1 -1
- package/dist/webcomponents/p-426fd524.entry.js +1 -0
- package/dist/webcomponents/{p-e0cca91e.entry.js → p-4ae0227a.entry.js} +1 -1
- package/dist/webcomponents/p-50a34a13.entry.js +1 -0
- package/dist/webcomponents/{p-43c70ddf.entry.js → p-5148f836.entry.js} +1 -1
- package/dist/webcomponents/{p-a6d56b36.entry.js → p-541da1ed.entry.js} +1 -1
- package/dist/webcomponents/{p-fe0feef1.entry.js → p-55605664.entry.js} +1 -1
- package/dist/webcomponents/p-55b478bc.entry.js +1 -0
- package/dist/webcomponents/{p-9eeaf2f9.entry.js → p-57e09f09.entry.js} +1 -1
- package/dist/webcomponents/p-5b4dfe0e.entry.js +1 -0
- package/dist/webcomponents/p-5c70a772.entry.js +1 -0
- package/dist/webcomponents/{p-bafe9deb.entry.js → p-60df1c18.entry.js} +1 -1
- package/dist/webcomponents/p-6Nv8l5n8.js +1 -0
- package/dist/webcomponents/{p-5d5e26f7.entry.js → p-6cdea3ef.entry.js} +1 -1
- package/dist/webcomponents/p-7703ada7.entry.js +1 -0
- package/dist/webcomponents/{p-319ac08d.entry.js → p-77d0f2e2.entry.js} +1 -1
- package/dist/webcomponents/{p-df110446.entry.js → p-7cb910cf.entry.js} +1 -1
- package/dist/webcomponents/p-8ed651b1.entry.js +1 -0
- package/dist/webcomponents/{p-e4ef4a19.entry.js → p-97e27e4a.entry.js} +1 -1
- package/dist/webcomponents/{p-a0134f5a.entry.js → p-9ed5d349.entry.js} +1 -1
- package/dist/webcomponents/p-BPpqjhPu.js +1 -0
- package/dist/webcomponents/p-BU9iZ8OM.js +1 -0
- package/dist/webcomponents/p-BXT1uJVr.js +1 -0
- package/dist/webcomponents/p-BYLHkONM.js +1 -0
- package/dist/webcomponents/{p-DvptzT44.js → p-BrcAwFqw.js} +1 -1
- package/dist/webcomponents/p-C0tps2ph.js +1 -0
- package/dist/webcomponents/{p-CV5ZI_qC.js → p-C5CtnV8A.js} +1 -1
- package/dist/webcomponents/{p-b4MDVEve.js → p-CMLfjWil.js} +1 -1
- package/dist/webcomponents/p-COZ-9O53.js +1 -0
- package/dist/webcomponents/p-C_WlV7F_.js +1 -0
- package/dist/webcomponents/p-Csh7hxly.js +1 -0
- package/dist/webcomponents/{p-CMq8FpAG.js → p-D-cvuqv1.js} +1 -1
- package/dist/webcomponents/p-D3V9AE6o.js +1 -0
- package/dist/webcomponents/p-DSmuL_bZ.js +1 -0
- package/dist/webcomponents/{p-B_KHnbK8.js → p-DdR4lBzU.js} +1 -1
- package/dist/webcomponents/{p-6V4e6Fb_.js → p-DnZY6aQX.js} +1 -1
- package/dist/webcomponents/p-DzeWzcho.js +1 -0
- package/dist/webcomponents/{p-CkX7qWsc.js → p-ERB63T7J.js} +1 -1
- package/dist/webcomponents/p-FcERM7LF.js +1 -0
- package/dist/webcomponents/{p-CemnnRdZ.js → p-XxcNbSyO.js} +1 -1
- package/dist/webcomponents/p-_BHErKTQ.js +1 -0
- package/dist/webcomponents/{p-941eac67.entry.js → p-a109b3a1.entry.js} +1 -1
- package/dist/webcomponents/{p-06af9f9f.entry.js → p-a5db7147.entry.js} +1 -1
- package/dist/webcomponents/p-b08bca2b.entry.js +1 -0
- package/dist/webcomponents/p-b2c237c6.entry.js +1 -0
- package/dist/webcomponents/p-b2d5f105.entry.js +1 -0
- package/dist/webcomponents/p-b8fc6dff.entry.js +1 -0
- package/dist/webcomponents/p-c595d3fb.entry.js +1 -0
- package/dist/webcomponents/{p-277bc549.entry.js → p-c751bb5f.entry.js} +1 -1
- package/dist/webcomponents/p-c9f94919.entry.js +1 -0
- package/dist/webcomponents/{p-6b6d8263.entry.js → p-ca307ba0.entry.js} +1 -1
- package/dist/webcomponents/p-ca7e369f.entry.js +1 -0
- package/dist/webcomponents/p-cab4c787.entry.js +1 -0
- package/dist/webcomponents/p-cd220f6c.entry.js +1 -0
- package/dist/webcomponents/{p-f2110cd2.entry.js → p-cd2c2256.entry.js} +1 -1
- package/dist/webcomponents/p-cd7a4048.entry.js +1 -0
- package/dist/webcomponents/p-d5d8ccd9.entry.js +1 -0
- package/dist/webcomponents/p-e646422f.entry.js +1 -0
- package/dist/webcomponents/p-e72d05b1.entry.js +1 -0
- package/dist/webcomponents/p-e86c713b.entry.js +1 -0
- package/dist/webcomponents/p-e9d7f988.entry.js +1 -0
- package/dist/webcomponents/p-ef98982e.entry.js +1 -0
- package/dist/webcomponents/p-f1562dab.entry.js +1 -0
- package/dist/webcomponents/p-f23b4474.entry.js +1 -0
- package/dist/webcomponents/{p-79d76cd4.entry.js → p-f4074e9a.entry.js} +1 -1
- package/dist/webcomponents/p-f44008d9.entry.js +1 -0
- package/dist/webcomponents/{p-5d4e607a.entry.js → p-f657995a.entry.js} +1 -1
- package/dist/webcomponents/p-fa3b5072.entry.js +1 -0
- package/dist/webcomponents/p-fb58eb13.entry.js +1 -0
- package/dist/webcomponents/{p-dbf2ba9e.entry.js → p-fff25a5f.entry.js} +1 -1
- package/dist/webcomponents/p-o83Uy7sW.js +1 -0
- package/dist/webcomponents/p-qNXIkzDE.js +1 -0
- package/dist/webcomponents/{p-BHA4oSi3.js → p-rgpO5xc3.js} +1 -1
- package/dist/webcomponents/p-t6eP44Li.js +1 -0
- package/dist/webcomponents/{p-C47u26qr.js → p-vIYW-hye.js} +1 -1
- package/dist/webcomponents/p-xvmoHDSy.js +1 -0
- package/dist/webcomponents/{p-3kNggPyP.js → p-zGGZEiGQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm/parts-c8J1gsDg.js +0 -149
- package/dist/webcomponents/p-01a84bc8.entry.js +0 -1
- package/dist/webcomponents/p-02cf51ab.entry.js +0 -1
- package/dist/webcomponents/p-0559b9c1.entry.js +0 -1
- package/dist/webcomponents/p-09401e56.entry.js +0 -1
- package/dist/webcomponents/p-2531ee6c.entry.js +0 -1
- package/dist/webcomponents/p-27518699.entry.js +0 -1
- package/dist/webcomponents/p-2b60c926.entry.js +0 -1
- package/dist/webcomponents/p-32bf8202.entry.js +0 -1
- package/dist/webcomponents/p-3469a272.entry.js +0 -1
- package/dist/webcomponents/p-37407a7f.entry.js +0 -1
- package/dist/webcomponents/p-392c431d.entry.js +0 -1
- package/dist/webcomponents/p-4556535d.entry.js +0 -1
- package/dist/webcomponents/p-559ff95b.entry.js +0 -1
- package/dist/webcomponents/p-56362fb6.entry.js +0 -1
- package/dist/webcomponents/p-5895654d.entry.js +0 -1
- package/dist/webcomponents/p-64d78daf.entry.js +0 -1
- package/dist/webcomponents/p-654573c2.entry.js +0 -1
- package/dist/webcomponents/p-6986bd9d.entry.js +0 -1
- package/dist/webcomponents/p-6b6195c9.entry.js +0 -1
- package/dist/webcomponents/p-71b6fdd9.entry.js +0 -1
- package/dist/webcomponents/p-77CuiIig.js +0 -1
- package/dist/webcomponents/p-79975b5d.entry.js +0 -1
- package/dist/webcomponents/p-81b3f90f.entry.js +0 -1
- package/dist/webcomponents/p-8Wa_-5QM.js +0 -1
- package/dist/webcomponents/p-91bf7445.entry.js +0 -1
- package/dist/webcomponents/p-91ee58e0.entry.js +0 -1
- package/dist/webcomponents/p-9438f755.entry.js +0 -1
- package/dist/webcomponents/p-95b78da8.entry.js +0 -1
- package/dist/webcomponents/p-98a1b12a.entry.js +0 -1
- package/dist/webcomponents/p-BBNT9yj5.js +0 -1
- package/dist/webcomponents/p-BMqYkvp1.js +0 -1
- package/dist/webcomponents/p-BiNakvsa.js +0 -1
- package/dist/webcomponents/p-BnVuFEgH.js +0 -1
- package/dist/webcomponents/p-BylxH1fV.js +0 -1
- package/dist/webcomponents/p-CVa33GsE.js +0 -1
- package/dist/webcomponents/p-CVkk7TvR.js +0 -1
- package/dist/webcomponents/p-Cc6518FT.js +0 -1
- package/dist/webcomponents/p-CmRrs0bo.js +0 -1
- package/dist/webcomponents/p-CmYy5XDp.js +0 -1
- package/dist/webcomponents/p-CncaMWc8.js +0 -1
- package/dist/webcomponents/p-CtxSp8dd.js +0 -1
- package/dist/webcomponents/p-DL3PPUGZ.js +0 -1
- package/dist/webcomponents/p-DmrpBh4P.js +0 -1
- package/dist/webcomponents/p-PtJwUDIK.js +0 -1
- package/dist/webcomponents/p-abc769fa.entry.js +0 -1
- package/dist/webcomponents/p-b9248f88.entry.js +0 -1
- package/dist/webcomponents/p-bb4da414.entry.js +0 -1
- package/dist/webcomponents/p-c8J1gsDg.js +0 -1
- package/dist/webcomponents/p-d0abe57d.entry.js +0 -1
- package/dist/webcomponents/p-d47909f1.entry.js +0 -1
- package/dist/webcomponents/p-d6bf1592.entry.js +0 -1
- package/dist/webcomponents/p-eEJMJXTG.js +0 -1
- package/dist/webcomponents/p-ee06f2fa.entry.js +0 -1
- package/dist/webcomponents/p-f01cdb9f.entry.js +0 -1
- package/dist/webcomponents/p-f9f0a5c8.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,h as i,H as t}from"./p-CV0Pyo1O.js";import{c as e,D as s}from"./p-
|
|
1
|
+
import{r as l,h as i,H as t}from"./p-CV0Pyo1O.js";import{c as e,D as s}from"./p-COZ-9O53.js";import{n as o,s as d,o as v}from"./p-MeSAYDNh.js";import"./p-D3V9AE6o.js";import"./p-HXpYMWUU.js";const u=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||o(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},a=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:d(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,d,v,u,a,n;return!this.legalAddress||o(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(v=this.legalAddress)||void 0===v?void 0:v.city}),i(e,{title:"State",value:null===(u=this.legalAddress)||void 0===u?void 0:u.state}),i(e,{title:"Postal Code",value:null===(n=null===(a=this.legalAddress)||void 0===a?void 0:a.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,o,d,u,a;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"col-md-6"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:v(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(o=null==l?void 0:l.address)||void 0===o?void 0:o.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.state}),i(e,{title:"Zip",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.postal_code})))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,d,u,a,n,r,c,h,m,p,f,D,g;return!this.representative||o(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-flex flex-column gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(u=null===(d=this.representative)||void 0===d?void 0:d.address)||void 0===u?void 0:u.line1}),i(e,{title:"Created At",value:(null===(a=this.representative)||void 0===a?void 0:a.created_at)&&v(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&v(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(f=this.representative)||void 0===f?void 0:f.email}),i(e,{title:"Phone",value:null===(D=this.representative)||void 0===D?void 0:D.phone}),i(e,{title:"Updated At",value:this.representative&&v(null===(g=this.representative)||void 0===g?void 0:g.updated_at)})))))}};export{u as additional_questions_details,a as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-zGGZEiGQ.js";import{D as a}from"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as c}from"./p-XxcNbSyO.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const m=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:e})=>async({onSuccess:r,onError:o})=>{var p;try{const c=await e.fetchDispute(t,s);if(c.error)return o({error:h(c.error),code:n(null===(p=c.error)||void 0===p?void 0:p.code),severity:i.ERROR});{const t=Object.assign({},c.page_info);r({dispute:new a(c.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:i.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new c}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:i.ERROR}))}render(){return e("justifi-dispute-management-core",{key:"98ecb17d1cedefd5f7845f647aea099e966b495b",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as i,r as s,c as t}from"./p-CV0Pyo1O.js";import{aa as e,a8 as r,a3 as o,t as l}from"./p-D3V9AE6o.js";import{S as a}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as d,J as n}from"./p-zGGZEiGQ.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p--UanYWb-.js";import{B as v}from"./p-BcNb9bVO.js";import{m as p}from"./p-CMqX6btO.js";import{S as m}from"./p-C0tps2ph.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{k as f,j as w,c as b}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as j,a as x}from"./p-D2muobcE.js";import{T as y}from"./p-DnZY6aQX.js";import{l as g}from"./p-MeSAYDNh.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-D8GTwl9v.js";const k=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),S=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(k,null)),C=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),E=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submit-event",7),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?b.boardingShipping:b.boardingOnly}),d(),this.analytics=new n(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,a,d;try{const n=await t.fetchTerminalModels(i,s);if(n.error)return r({error:x(n.error),code:j(null===(d=n.error)||void 0===d?void 0:d.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=n.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(a=n.data)||void 0===a?void 0:a.order_limit})}catch(i){const s=j(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const a=await s.orderTerminals(i,e,t);if(a.error)return o({error:x(a.error),code:j(null===(l=a.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=a;r({data:i})}}catch(i){const s=j(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(S,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,null)))}renderBusinessDetails(){var s,t,o,l,a,d,n,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(d=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===d?void 0:d.email),i("div",null,g(null===(h=null===(n=this.business)||void 0===n?void 0:n.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(a,{key:"e4a5a56a6876cbe10a51c95a24eaa7e8681916e0"},i("div",{key:"094fce0c3c71c1bd09bb8a3052a3a484a20cd421",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{E as justifi_order_terminals}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.js";import{p as a}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as i,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as u,i as f,j as m,k as b,l as g}from"./p-Csh7hxly.js";import{T as y}from"./p-CZfYo5-1.js";import{c as j,a as k}from"./p-C5CtnV8A.js";import{o as l,g as C}from"./p-CpGEMRkH.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-D3V9AE6o.js";import"./p-BYLHkONM.js";import"./p-BPpqjhPu.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=a,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new i(this.checkouts,this.columns,j,k),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"54239d9ac3afe4d4594d523f9b84b5bf852190b7"},e(r,{key:"0c466e435625f08326fc521690c055648a0d3a6e"},e(h,{key:"6ac0b1a9bf3d42eb5bac5910f341c84a75d15eaa"},e(o,{key:"171cc43a933be88dcfe2385414d6368755a66a00"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"238b814cfb2e27fa0ae0aee319da04fb7a9da477"},e(n,{key:"3e73b173a14edea582ee06caa248dd31bf7e8971",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"cd2ec244aa3663f4255f245727790c30c28438f7",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"e2f458e70836a01cca79aa6e43c7d8a89bfa593d",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"97d1c34429fba943a752e9ece7348dd19d742c68"},e(m,{key:"252e8f76070a8a6a531c710cf36117a04625271a"},e(b,{key:"a3fcfa5e6a90cac15348a387f65fa5b7ed2517f8",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"e4fa2774647748fd12c3742b3dd078aee8fdf483",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as checkouts_list_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{D as a,E as d,F as c}from"./p-D3V9AE6o.js";const i=class{constructor(s){e(this,s),this.selectedQuantityChange=t(this,"selectedQuantityChange",7),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return s("div",{key:"94b37f690afbe452cda9d074d97b3e6c7b91c096",class:"rounded shadow-sm card p-2",part:c},s("div",{key:"7913be88b93a02e7499a59b416867c81e736a6cd",class:"d-flex gap-3"},s("div",{key:"55f8b57b980689ed799c6a6ed798dd4c4ad0bd89",class:"d-flex align-items-center"},s("img",{key:"8068f7f20ff719bed021f88e644dde9f8903de05",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:a})),s("div",{key:"d86a6301ca11bcbe33920e5608bfb948dffdae6e",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},s("div",{key:"154c785be7d7785458eaeed6a9a516d4677b544c",class:"row"},s("div",{key:"2adc08a9d50ca00c73317024ad1bde393d82efa0",class:"col-6 d-flex gap-2"},this.modelName,s("form-control-tooltip",{key:"21ea5803e18053463d343254d9ed29c98c76757f",helpText:this.description})),s("div",{key:"e862c0de5720cfb876fcc47792c0e12a0266babd",class:"col-6 d-flex justify-content-end align-items-center"},s("button",{key:"50bb2dc585b0f49591871d6ae993eb2850892ffb",class:"p-0 minus btn",onClick:this.removeUnit,part:d},"-"),s("div",{key:"ceba1a29cb4779b9e057e3066072b21cef86dcfd",class:"w-25 text-center"},this.selectedQuantity),s("button",{key:"00dfc649818d014f065ee07da3b71c61c7cda03d",class:"p-0 plus btn",onClick:this.addUnit,part:d},"+"))))))}};export{i as terminal_quantity_selector}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as i,F as c}from"./p-CKiAlBsU.js";import{aC as d}from"./p-c8J1gsDg.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"d52503cf5815f53c655754d07b1bc1cc7401d07f"},a("div",{key:"b7c4c06c3bd77afbd5cd9f96158eaf3161425f0b",class:"row gy-3"},a("div",{key:"33836b54b773763a8657afc90331cc67045d4b71",class:"col-12"},a("h2",{key:"fef897d53f97e665210ead7210041dcf5ce816a1",class:"h5",part:d},"Additional Evidence")),a("div",{key:"26afd31b03e4d399e4c6032ea9c1bdee54d830be",class:"col-12"},a("form-control-textarea",{key:"4fd907f2de7d8239d9665583d88b656aa0e0a311",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:"7775cf2e4ee5d27a1c703a9bd3710f6ec2b2f09f",class:"col-12"},a("form-control-file-v2",{key:"7155276e45b54d1c70ba37a778d8ebc69a626b8f",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"7e324ceb101b39f115b802eaaba72bc1244d944f"},a("div",{key:"09051fac8c49c6ffc52e37d5027a353a8e4fe8ae",class:"row gy-3"},a("div",{key:"6c8c50593dca3155a708ec25f3189be54df3e3b9",class:"col-12"},a("h2",{key:"bdffa3a4ea564d715c377ffe2b97c7ec59600ed5",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"376a234708050ff8079db49dd42e28eabbd2d5ce",class:"col-12"},a("form-control-textarea",{key:"2b6a803b276cf3c73e2a3745cd09c9b797265127",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:"52d22aae6cca0dd3215d545957d130564ae673e5",class:"col-12"},a("form-control-textarea",{key:"170191a065345416f68bb0abfa72b59318c65ed6",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:"cb5e7e12104574a061139fd882c9da41e8ffadbb",class:"col-12"},a("form-control-file-v2",{key:"7c09d5592ac3584e134f8a1a3d0aeca0c2cf4373",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"2a284179b0e885a49328aea3de640ac89a721a50"},a("div",{key:"aa7da787c2438af27988aa66ee14a980f3b06b9b",class:"row gy-3"},a("div",{key:"7866c966658406e25a7a96f8b625dff4cd01fae9",class:"col-12"},a("h2",{key:"16232b46708a785c70fb1160d45f71457517f146",class:"h5",part:d},"Customer Details")),a("div",{key:"fa470479d54a9c68543f01f5aa8168b31345c558",class:"col-12"},a("form-control-text",{key:"b0908d5cf478b70081ae376f52f37539cfe6cd4f",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:"a74a0dc1a29526fc24a4ed85b51152679f6cf557",class:"col-12"},a("form-control-text",{key:"e212808991ff68e64ef07fe216b30d9ef53f1876",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:"588cd9e061aeb50c7b1a427cf961a594b20543e2",class:"col-12"},a("form-control-textarea",{key:"03792e2bd58e6f83605bd6d8694ecd52c69f7bf9",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"e82bcb4a124a371349a61446ed80bfc2ddff6447",class:"col-12"},a("form-control-file-v2",{key:"177fd69a1d5fd956e875651f28f3b52673ca7b3b",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"0e1b09ec74a570e5eae6378c0789147b2a8a9f41",class:"col-12"},a("form-control-file-v2",{key:"07eaaa242425f54482c5bf1c45bbb64b7b0eb032",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"bfd32a0d9ae4fb268939513d5206912e6e60b499"},a("div",{key:"2c41e7c7b33d711a7a4c76c4a3fccb569e9e9a44",class:"row gy-3"},a("div",{key:"5cc774a79845c5899c1d34e402db5876cbf3e438",class:"col-12"},a("h2",{key:"4f26c3cd1e6035100d9837bfbc9e8fda96b4b04e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"e8f259b79ad4b0378ba9608499407e1f5506e962",class:"col-12"},a("form-control-text",{key:"abe5a8f45e4839d6c22e7a43b2561148226fa3f9",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:"73f01e8f48b828b4469bd9a12ed20373e3a68ffe",class:"col-12"},a("form-control-textarea",{key:"9d2779988e2fc60c4284a874b512a214a2f84831",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:"77393e15774fbce72f9051414a8d92c07a7b8a00",class:"col-12"},a("form-control-file-v2",{key:"c89b9fe51f969e0eeaf34a0a1d5aa3e94374d26d",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"6d2edd78d7560d7f4c1b649b6682d9565642a471"},a("div",{key:"943bb135558ddd1b77584348e1dc7a78eea9bf95",class:"row gy-3"},a("div",{key:"114e921a4f2cfdb130c9a8fde298a8ffe2744662",class:"col-12"},a("h2",{key:"d2e5515b640557162bb8856fdc1bbd778b4cdab1",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"99e45755978c66b8ba8bd4ac3c57015900fc4aaf",class:"col-12"},a("form-control-text",{key:"f2d9724bfdd36297a72240d0709b777acc41566d",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:"fedc63aa2a66f0b65dd10bdb80973031813a5106",class:"col-12"},a("form-control-file-v2",{key:"4c83a23b83af34e14575673377a1ed5ec6af0c63",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"39e0aa0809a7f31075914992db63b4692e90c8f7"},a("div",{key:"22ac8468a1f393d953674eb9df6ad8b8b841c809",class:"row gy-3"},a("div",{key:"b1f46f086d396273166299dd8bd529e79107f13a",class:"col-12"},a("h2",{key:"e1fdc1f37af032ae5f5616339e314185d9934f3d",class:"h5",part:d},"Product & Service Details")),a("div",{key:"1a23b1efc62e0d3b9d024794839fd471a50386ff",class:"col-12"},a("form-control-text",{key:"309456cdc1d555c6a650701fbea26e86f6c361e8",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:"d4ca284ae38f394ee2ab89133648bf8948ccd4db",class:"col-12"},a("form-control-date",{key:"af3d48ac5b43ece0163f6ea35f5da50894790167",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:"fd55750e38937249a235870dd447efa9be17f19b",class:"col-12"},a("form-control-file-v2",{key:"c8c8bd2bb80a4dfc4b28907433673ed60bfedf8d",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"7cee5ba256884cd7c605ecf15bb053491638d152"},a("div",{key:"532fbf2796589fa07689891b645689251775fdd4",class:"row gy-3"},a("div",{key:"3b09609d869fc9e88759cedb6dcf1f8a568e0d93",class:"col-12"},a("h2",{key:"0322bce2a6c761e4c49f5c0fd7a200b3255c5dee",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"260dec4ba14d062998001f13ed26108b0eb45e56",class:"col-12"},a("form-control-textarea",{key:"0ed21b81a6a708708179b3a163bb816b9d0a497e",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:"2c1877075ada904c565f4556c7fe00021d85b137",class:"col-12"},a("form-control-textarea",{key:"58b3c47e543a2f7a82010b47772b22329de8ed0e",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:"990fe61c90b2be5d198d31fb0c5165fbbcc8d96e",class:"col-12"},a("form-control-file-v2",{key:"6f725675ab78150e3005754475577f96d796a0d0",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"65eb12d67c8d84e55bc590454222b0cb8c17512f",class:"col-12"},a("form-control-file-v2",{key:"f8dae47642c8c41c079180075f89ebc9ca7812a7",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"42e223f71b2bbb47452c42ef5fa3461c33fb1f05"},a("div",{key:"202b32fe04059d34bbcc422a4d8a426148fffa4c",class:"row gy-3"},a("div",{key:"4508298a411269d447989c859b9f916f3d288c38",class:"col-12"},a("h2",{key:"732705ee8f3e8d3ebce839e33b7ef3a5ca108224",class:"h5",part:d},"Shipping Details")),a("div",{key:"c373e96c63ed7398315f000250749fed7ee6b2ef",class:"col-12"},a("form-control-text",{key:"7e4ce2f7ad55c07f4c67b8f80940e94d76d16f43",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:"08e2067843ce83058c73c4673c88b8d1968d81a0",class:"col-12"},a("form-control-text",{key:"5ed369c9064edd5fafc3c3a0142bcace1c3beaee",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:"fcfe5349a3f9d61039c61de7b1f70e517d479b09",class:"col-12"},a("form-control-date",{key:"fecafa215e1f4c042e54f34db584503fed7fbe35",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"d87378a61c76bf5fb331f02fe6960abbed4d3d59",class:"col-12"},a("form-control-textarea",{key:"1acffdfd447400ef9627359c0a892b93d4ba1a1c",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"28ebefe8f6db158dc76ca9b8ab86f12a7a968b82",class:"col-12"},a("form-control-file-v2",{key:"7f4ba4acd413eb070a6126f43ab4bb77f3ac12ba",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as i,F as c}from"./p-CKiAlBsU.js";import{aa as d}from"./p-D3V9AE6o.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"4c6f6740b3ad7c063f3275dad9d74feb360b36a7"},a("div",{key:"4eeb3d2aae2df266e95ea80ed97bf00b63fe2952",class:"row gy-3"},a("div",{key:"ca0c7efc3186ba84e648fd2432fd36862ca7e704",class:"col-12"},a("h2",{key:"26236264d2dd37545092b15b8164b109b9738bfe",class:"h5",part:d},"Additional Evidence")),a("div",{key:"84e74149369dcfab9f31dd2a079044911b8af9f4",class:"col-12"},a("form-control-textarea",{key:"1aa5ffee7bcf19d56b34708cdac36bcda9bb4d03",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:"7145211db8aaaba540670c7d67cf2d1075f1fc69",class:"col-12"},a("form-control-file-v2",{key:"64b82123ff0697fdca198363417582bb6079fbbe",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"f9b93b3dd8c73dcf878c3a4ff0bf1644a853b7bb"},a("div",{key:"520759d6b31b86035d1e60a9c8b1353e764291ef",class:"row gy-3"},a("div",{key:"3afe7011e77eb9c864e8b26e93edccc917f42658",class:"col-12"},a("h2",{key:"57fe3c49c3d2634525c2d6c6dc04031ff73a8a3f",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"dd6b7bb8a608940d213e55224de3410f51c5b78d",class:"col-12"},a("form-control-textarea",{key:"05596adee9001ca673e0c61ffa1245ea45ae944d",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:"75dca392cfee3a5c571acb0ed1526623be0eb7e8",class:"col-12"},a("form-control-textarea",{key:"9bf96784519d39c9961b2741da358b0112275c71",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:"d9995887e3791f54730d84a598869dce7cabd8b4",class:"col-12"},a("form-control-file-v2",{key:"40fb6492e3db57e1d9b5b77d37229579bee4de5e",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"ac1c08881bf4f5288aa6841d3f87ba1d8e9dd6e4"},a("div",{key:"148296af222d038e8e9ab3e318d210b7638074d2",class:"row gy-3"},a("div",{key:"e3e3635454797465b08b0df10023f66899d8dd04",class:"col-12"},a("h2",{key:"d65767d3d3b091afc8b9b4798e639214ede14726",class:"h5",part:d},"Customer Details")),a("div",{key:"258f8dadcb6aec223c1a039ee0100ed91d0b2896",class:"col-12"},a("form-control-text",{key:"e2206e72a7603ca15ea1d6a70593667e1eaf5132",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:"792028d6ae5ee85765b91188e20330489cfd7bb3",class:"col-12"},a("form-control-text",{key:"a7288afe499a39a6c78bf8b1fe5f5e1a5bc6af27",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:"82f8bfaa81e727226e013e94712928a5cdb03841",class:"col-12"},a("form-control-textarea",{key:"bd2410564783f6ae8acf1d1fb820bcbe4aea3aa5",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"84442373f62efaf5a1e14623d61eff0bc81f6751",class:"col-12"},a("form-control-file-v2",{key:"4575df27d749c4520fa55d7f1fc901296ec2ed45",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"f1c9f81104d1e080be993d0af29343c5d540cb43",class:"col-12"},a("form-control-file-v2",{key:"8b8e4eefba1e84551645229204108bfe007012cf",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"3a6188603e8cfdd1b24db55703f63b2199dc9e71"},a("div",{key:"68cac9c229db9641e3f71e42e9f96d4b6437e9b9",class:"row gy-3"},a("div",{key:"2060793e27c759d8fdf21765fcfbf0253ca9a016",class:"col-12"},a("h2",{key:"21fb843b28af8fe9cfc2ef4aa297541fb3d9d61b",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"9743e65ce74307e5d4544c46f2507f4815d0a413",class:"col-12"},a("form-control-text",{key:"213e56620c428e214d3b937a45fee4a0c2116caf",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:"ca7963f7cbc63caece9d0ff91fd6ae04a45bc9a7",class:"col-12"},a("form-control-textarea",{key:"9edf3135b2cbbc61017fa1fd74f06da34982c4d6",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:"e0fe338e2bec5bc1889eeb72f8138f2f0fce497b",class:"col-12"},a("form-control-file-v2",{key:"86851806bb69be1da6334376a44da6cddfa013e7",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"2938a2cebbc08938a88af9848f674727c2925473"},a("div",{key:"fc85fd26921d9ffc0ed547bd4c4facb40cfbcd5f",class:"row gy-3"},a("div",{key:"b737248f4ffc77483816c80192b3b957ed899f67",class:"col-12"},a("h2",{key:"4ee8776884ba4527e4ab6acf9255bc24ceda264c",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"6343a2a36120fd60a46c4a0d72096db778298d43",class:"col-12"},a("form-control-text",{key:"26d4b151d39d0fcc100fa4494a5efca07905d152",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:"d9f2a4a6c66c32765a36378669b02faecbca070c",class:"col-12"},a("form-control-file-v2",{key:"f3284b4fc35f68e1120960e4728f0e8f472920fa",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"05fccd72cd4c7d22cd23e8f14518f0e70dacb3e5"},a("div",{key:"464b6335fb494bbd13a4eb8ab8be0e73b7658a6b",class:"row gy-3"},a("div",{key:"446a4650edee4c7b5caa8709afce2826484d1f28",class:"col-12"},a("h2",{key:"f2414eb4ea879136177702367591cb45542a6cdb",class:"h5",part:d},"Product & Service Details")),a("div",{key:"5ce3d90815b48a94f7aadc104aa02d3c04ef423d",class:"col-12"},a("form-control-text",{key:"721d1376342972cb9a2a932c7a710231435905a5",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:"f3580d06b1e390c3f769177091aa93b9b82e5b26",class:"col-12"},a("form-control-date",{key:"9166a295b843c890100a41d33d38c69aaaa69950",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:"d67631887c3178f05ae85112f71bcefb5807496c",class:"col-12"},a("form-control-file-v2",{key:"8e9f0b2a8ffb264e3d89a36a452477a72482eb8a",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"b0b610c20e194b94743d99212e2efffef56520f9"},a("div",{key:"0a17bc79f6a07aba4cf9e5f5ef0ee4a6d484bf51",class:"row gy-3"},a("div",{key:"517679d918a832bdf8b21554cc9e4121c304cdff",class:"col-12"},a("h2",{key:"c49dfd3f5072031b1ff07e51df4149548e79d83a",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"5d7af624762783c0151d31e4c9600381b8a8fa3a",class:"col-12"},a("form-control-textarea",{key:"fb4ca818378fa6d674ba7c389f906145b9d11627",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:"0591b80676048c52034b0571ac94a1daad70f102",class:"col-12"},a("form-control-textarea",{key:"1ce0a48f04f12a8d4bc91d01e90dd6caa32018af",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:"d02a401923e4c38427cff3245767441ef4b9f779",class:"col-12"},a("form-control-file-v2",{key:"772aefaf3e0a54768ef9163df0de8ba6cfdb28b5",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"d113a7eacf5a4aee4132baed5fd6a76bd670ba30",class:"col-12"},a("form-control-file-v2",{key:"8a3c5f1d006e97ff6bb385a76818a325686ff1de",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"180df6d9062459eec271f148828a2dd57f18d271"},a("div",{key:"406e8870df739225b547ada975dbd83085ea97d2",class:"row gy-3"},a("div",{key:"44c088ffe6b0eb7cbe072069821de8c9d3e1892d",class:"col-12"},a("h2",{key:"208bc93626a900b414ce3df5a8c3d7dfc5d1d75a",class:"h5",part:d},"Shipping Details")),a("div",{key:"27cf473cefd457cc3c802cef99ace1584881bf16",class:"col-12"},a("form-control-text",{key:"6dfa9be914863103a6362c6b9efd81c5be99b0f2",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:"7b6f0e1d14698442a98df75f5635cbafc8172ddb",class:"col-12"},a("form-control-text",{key:"a5424f340602b3a1b3ccbe38a14ac36d0a6a74d2",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:"1c956a0ef4ca9d3fbc61af14bcb6bca058aed8f7",class:"col-12"},a("form-control-date",{key:"32c52e9178e9f54ef4f4695ffae0c124e025d354",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"34eed46e9dce3dffa3b8547ee2e601927a6b239b",class:"col-12"},a("form-control-textarea",{key:"f873c9a4c9d4518e35d76a61000d99e26e25f4a4",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"025fb202955938d89d6990eac237b1be66cf1945",class:"col-12"},a("form-control-file-v2",{key:"135edc3fcaef1a07dde5c175a11b8c3f833b93c9",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{c as s,a as d}from"./p-MeSAYDNh.js";import{f as i,p as r,c as l}from"./p-Dw63wyhO.js";import{f,a as o}from"./p-D3V9AE6o.js";import{S as b}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import"./p-Cjcsf8ku.js";import{d as c}from"./p-_BHErKTQ.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)=>{i[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:c.connected},{label:"Disconnected",value:c.disconnected},{label:"Unknown",value:c.unknown},{label:"Pending Configuration",value:c.pending_configuration},{label:"Archived",value:c.archived}]}render(){const e=Object.assign({},i);return a(b,{key:"ea9cfa8869d60008543e9ede0bc59ab6a6609fa4"},a("table-filters-menu",{key:"2d72b1ead7a4d0bb039b940c90503ca55b69bdcb",params:e,clearParams:l,part:f},a("div",{key:"91494def7efaf06c16bfd6f2d8ffa4e6239b40dd",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"ea22abc671da4fad410be76055b2d7a3af98ae31",class:"p-2"},a("form-control-text",{key:"053d7fda60174f71f35094bd11603ad00bfa8a76",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||i.terminal_id,disabled:!!this.terminalId,part:o})),a("div",{key:"531a673018101150063bf4a5c29be3bbd3a47d46",class:"p-2"},a("form-control-text",{key:"01c0bcfcd4a8b45fc6d804d025bd2f99c96815a5",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||i.terminal_order_id,disabled:!!this.terminalOrderId,part:o})),a("div",{key:"3993c108c61dcc898f9feb965277d00fb6583de7",class:"p-2"},a("form-control-text",{key:"c28496ee67ed5e2d954b970fd1e8b4802f4f2847",name:"provider_id",label:"Device ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.providerId||i.provider_id,disabled:!!this.providerId,part:o})),a("div",{key:"8e7022438f266b7bfaf182593e32b7f85646e093",class:"p-2"},a("form-control-text",{key:"855d524235f46809d236d0d8d4e11d5a0553114d",name:"serial_number",label:"Serial Number",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.serialNumber||i.serial_number,disabled:!!this.serialNumber,part:o})),a("div",{key:"48e099d2a8b600b11919945e99fd17559ba1b019",class:"p-2"},a("form-control-select",{key:"4789b9f39ad91d7b8ca2e6614b8196ed48a4615a",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||i.status||"",disabled:!!this.terminalStatus,part:o})),a("div",{key:"4a07808567f36acfa238709f41f8642a83c54b7f",class:"p-2"},a("form-control-date",{key:"1f35753ff8c241555adfbfff02af8a2640ad3905",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:d(this.createdAfter||i.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"e9a3d3687026fb492c1b3bb33201f942a7cd07bc",class:"p-2"},a("form-control-date",{key:"0fd59dce1c8cd1d44f1f2f1524c75f459f59e54b",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:d(this.createdBefore||i.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:o})))))}};export{p as justifi_terminals_list_filters}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as t}from"./p-55QcjheA.js";import"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const a=t();class n{async fetchPayouts(t,n,s){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:s})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,s){return a.get({authToken:n,endpoint:"balance_transactions",params:s,headers:{"sub-account":t}})}}export{n as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s}from"./p-CV0Pyo1O.js";import{
|
|
1
|
+
import{h as s}from"./p-CV0Pyo1O.js";import{b as t}from"./p-D3V9AE6o.js";import{c as a}from"./p-D8GTwl9v.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:e,on:n}=o,i=a({}),{state:l}=i,p={},c=()=>{let s=!0;return Object.keys(e).forEach((t=>{null===e[t]?(l[t]=!0,s=!1):l[t]=!1})),{isValid:s}},m=(s,t)=>{const a=p.hasOwnProperty(s),r=p[s];if(!a)return p[s]=t,!1;const o=r!==t;return o&&(p[s]=t),o};export{r as H,l as a,n as b,m as h,e as i,c as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as e}from"./p-DdR4lBzU.js";import{m as r}from"./p-ERB63T7J.js";import{E as o}from"./p-COZ-9O53.js";import{C as p,a as h}from"./p-Cjcsf8ku.js";import{c as a,J as n}from"./p-zGGZEiGQ.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-HXpYMWUU.js";import"./p-_BHErKTQ.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D2muobcE.js";import"./p-D3V9AE6o.js";import"./p-qNXIkzDE.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.recordClickEvent=s(this,"record-click-event",7),this.errorMessage=null,this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=r({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payment_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as
|
|
1
|
+
import{r as t,h as i}from"./p-CV0Pyo1O.js";const e=class{constructor(i){t(this,i),this.submitButtonText="Submit"}async tokenizePaymentMethod(t){return this.tokenizePaymentMethodRef.tokenizePaymentMethod(t)}async fillBillingForm(t){return this.tokenizePaymentMethodRef.fillBillingForm(t)}async validate(){return this.tokenizePaymentMethodRef.validate()}render(){return i("internal-tokenize-payment-method",{key:"136cf8d3b079e2c0fb08fd55900a0c540ad43497",ref:t=>this.tokenizePaymentMethodRef=t,authToken:this.authToken,accountId:this.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:this.hideSubmitButton,paymentMethodGroupId:this.paymentMethodGroupId})}};export{e as justifi_tokenize_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{C as r,a as o}from"./p-Cjcsf8ku.js";import{c as e,J as a}from"./p-zGGZEiGQ.js";import{T as n}from"./p-DnZY6aQX.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{f as p}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as h,a as c}from"./p-D2muobcE.js";import{m,S as d}from"./p-6Nv8l5n8.js";import{S as u}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-vIYW-hye.js";import"./p-qNXIkzDE.js";import"./p-55QcjheA.js";import"./p-MeSAYDNh.js";import"./p-D8GTwl9v.js";import"./p-BPpqjhPu.js";import"./p-D3V9AE6o.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=l,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var n,m;try{const d=await i.fetchTerminals(t,s,o);if(d.error)return a({error:c(d.error),code:h(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},d.page_info);e({terminals:(null===(n=d.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=h(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(u,{key:"dbcf761d5519eb8d0170a7ff63dbba9e86a80931"},i("terminals-list-core",{key:"6c74ff8e53cd94168a8d67bdea937be2c058d791",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{D as e}from"./p-Bg2SZArf.js";import{D as r,a as o}from"./p-BH0Xfn-F.js";const h=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===e.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===e.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==o.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({errorCode:s,message:t,severity:i}),this.isLoading=!1}})}render(){return i("div",{key:"a4b8f312c4da129036d1725a6792b7e07f1dddc3"},this.showDisputeResponseForm?i("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):i("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{h as justifi_dispute_management_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as o}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-CV0Pyo1O.js";import{P as o}from"./p-2V38oZhe.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{e as a}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as p,a as h}from"./p-D2muobcE.js";import{E as n}from"./p-COZ-9O53.js";import{c,J as m}from"./p-zGGZEiGQ.js";import{m as d}from"./p-DYGIC0QH.js";import"./p-55QcjheA.js";import"./p-MeSAYDNh.js";import"./p-D8GTwl9v.js";import"./p-D3V9AE6o.js";import"./p-qNXIkzDE.js";const u=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.enableRecordClick=!1,this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const c=await i.fetchPayout(t,s);c.error?e({error:h(c.error),code:p(null===(n=c.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new a(c.data))}catch(t){e({error:h(t),code:p(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent,enableRecordClick:this.enableRecordClick})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{u as justifi_payout_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-_BHErKTQ.js";import{p as a}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{T as i,a as r,b as h,c as o,d as c,e as p,f as n,g as d,h as f,i as m,j as b,k as j,l as u}from"./p-Csh7hxly.js";import{T as y}from"./p-CZfYo5-1.js";import{p as g,a as l}from"./p-CMLfjWil.js";import{o as k,g as C}from"./p-Dm07nLGs.js";import"./p-D8GTwl9v.js";import"./p-MeSAYDNh.js";import"./p-D3V9AE6o.js";import"./p-BYLHkONM.js";import"./p-BrcAwFqw.js";import"./p-BPpqjhPu.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.payments=[],this.loading=!0,this.paging=a,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new i(this.payments,this.columns,g,l),this.getPayments&&this.fetchData(),k("set",(()=>{this.pagingParams={},this.errorMessage=""})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"da09dd4ecfc3048f2d0167fc0e3b42178557fc44"},e(r,{key:"d07a431c7e29d29f006ab660f97c19df9daaf109"},e(h,{key:"a93ddd63aaf27fe28771dce7acfc8a857f8092d3"},e(o,{key:"dc9247cd47f9a37fc972cdcec9e7f4cd1958c69d"},this.paymentsTable.columnData.map((t=>t)))),e(c,{key:"db8bf40a9c558207ae3f8fed0fe11a1e4d58a9d2"},e(p,{key:"a77bb76a189c53878b472b31dd5aea4790cbea71",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"09e14570f600a78e609bb11de576ba51f086bf01",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(d,{key:"352ba81460e793f4cea14f35720d8239604efd82",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"765ea2360d2badc2a55b01799734b5255e133e54"},e(b,{key:"e0bf3fb8035c327cacef570aefe131fac9d24b90"},e(j,{key:"8d1507b8f05530801f08433af98ae5978d3a05ab",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"5e3276e46de888323c3268910e2f5f2d9268b4ca",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
|
|
@@ -1 +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-
|
|
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-BU9iZ8OM.js";import{a7 as o,v as h,x as l,w as c,y as f,z as n}from"./p-D3V9AE6o.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:"852cd7deb91a1305b0941c90f1ea0b00ee2a9f69",exportparts:"label,input,input-invalid"},s("div",{key:"d1c094c73bb6414137f5e1acfd38c0048debef27",class:"form-group d-flex flex-column"},s("div",{key:"da46f17f893e4c9557725294404e2451f001ffec",class:"d-flex align-items-start gap-2"},s("label",{key:"1197fab50023e2028d8eb18a40e7675c3cb88283",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"e0834b634350912a26ce08f0d5f1a2dca824cd9f",helpText:this.helpText})),s("input",{key:"98fad302f019cc8abd081834ae006f406d457d5b",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:"71c5a49575314fca8a6f4434c0634a3cdf82b084",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=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:f}render(){return s(a,{key:"c2f4587d1cbfdfea257b5a6649f6cf4f59bedff9"},s("div",{key:"381c1aab5057b7ba2c736fb4fecdccfe40ee2d5e",class:"form-group d-flex flex-column"},s("label",{key:"4bb62b512792bd76d9dc3ebadf06c2a35cf474f7",part:n,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"50e0c18dd7d18675f6c947ee8136856dc535c580",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:"f90c3f3ccf76277c433b93d14196b41e9447246d",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"281a97d333c2e383a73aa016cb88ee71dcb85b2a",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as r}from"./p-CV0Pyo1O.js";import{P as i}from"./p-DdR4lBzU.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{b as p}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as n,a}from"./p-D2muobcE.js";import{c,J as m}from"./p-zGGZEiGQ.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d}from"./p-CMLfjWil.js";import"./p-55QcjheA.js";import"./p-MeSAYDNh.js";import"./p-D8GTwl9v.js";import"./p-qNXIkzDE.js";import"./p-BrcAwFqw.js";import"./p-BPpqjhPu.js";import"./p-D3V9AE6o.js";const j=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.columns=d,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPayments()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:s,authToken:t,service:r})=>async({params:i,onSuccess:e,onError:c,final:m})=>{var h,d;try{const m=await r.fetchPayments(s,t,i);if(m.error)return c({error:a(m.error),code:n(null===(d=m.error)||void 0===d?void 0:d.code),severity:o.ERROR});{const s=Object.assign({},m.page_info);e({payments:(null===(h=m.data)||void 0===h?void 0:h.map((s=>new p(s))))||[],pagingInfo:s})}}catch(s){const t=n(null==s?void 0:s.code);return c({error:s.message||s,code:t,severity:o.ERROR})}finally{return m()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(h,{key:"bd9c796ee69445e241256843411b451e572d5321"},r("payments-list-core",{key:"9521c57de8fbc5e854de042ce720841e769446af",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payments_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a,H as t}from"./p-CV0Pyo1O.js";import{aN as s,J as i,$ as l,Y as d,au as c}from"./p-c8J1gsDg.js";import{b as o,r,s as n,c as b}from"./p-Bt4GjEWL.js";import{C as f,I as u,P as h}from"./p-CVaOFfrI.js";import{e as m,d as v}from"./p-BcNb9bVO.js";import{c as p}from"./p-_-2E_vYf.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:s},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},k=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,s,l,d,c,b,u,h,m,v,p,y,k,j;const _=this.formController.getInitialValues().additional_questions;return a(t,{key:"825ad2a859cacac1b9ba7be60ade5f3bb108abee"},a("fieldset",{key:"be913775846b09d99c0c5809a93dfc2779bbae9c"},a("legend",{key:"52db62eb99455247f317f3dfce9ed260139d9b92",part:i},"Additional Questions"),a("div",{key:"9bca42f1668874643cb2c46f3ac39df85fb0cc45",class:"row gy-3"},a("div",{key:"4f5cfbb11109a00d5427096503bceeb443349925",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"8d467c76af23e7aaa0a437a6b8631f8966dd7c41",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===s?void 0:s.business_revenue,defaultValue:null==_?void 0:_.business_revenue,maskOptions:f.WHOLE})),a("div",{key:"4e5ed2a46af18734a97e498fe03d0b39b6d64895",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"5dac6143381928fa469e610a51c680dc2d6458ba",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(d=null===(l=this.errors)||void 0===l?void 0:l.additional_questions)||void 0===d?void 0:d.business_payment_volume,defaultValue:null==_?void 0:_.business_payment_volume,maskOptions:f.WHOLE})),a("div",{key:"7ffc0942f4aa7a28fe5cb647af3fb4d0fbdfb19f",class:"col-12"},a("form-control-select",{key:"dd323dcdb5152040737ad91715e5f1eba17afaed",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===(b=null===(c=this.errors)||void 0===c?void 0:c.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:o,defaultValue:null==_?void 0:_.business_when_service_received})),a("div",{key:"f7d98dcddaee8beb583b7436007660012c856d06",class:"col-12"},a("form-control-select",{key:"c3dd0af43353221f0b6f34555afc6627eb6e4805",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:r,defaultValue:null==_?void 0:_.business_recurring_payments})),a("div",{key:"6afac5b74ebf3f833f3a773c4c364ec805c827ee",class:"col-12"},a("form-control-text",{key:"8730d4945250eaf2aee10e2eb2327876f98e07f3",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==_?void 0:_.business_recurring_payments_percentage})),a("div",{key:"4e13389f89aad6598817c4a45e5a8125ae21b9a4",class:"col-12"},a("form-control-select",{key:"5cb9f4af9b1a1a707f6110073356474397b46489",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(y=null===(p=this.errors)||void 0===p?void 0:p.additional_questions)||void 0===y?void 0:y.business_seasonal,options:n,defaultValue:null==_?void 0:_.business_seasonal})),a("div",{key:"705affae85c29fe6d5270ad32a2af9bdeed9b6e9",class:"col-12"},a("form-control-text",{key:"08807d448e5a4f1865a22d06d9e1e34d27bb5f5f",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(j=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===j?void 0:j.business_other_payment_details,defaultValue:null==_?void 0:_.business_other_payment_details})))))}},j=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.isEditingTaxId=!1,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new m(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){var e,s;const o=this.formController.getInitialValues();return a(t,{key:"d60b250bd327a8f49ac2854ef90a50149952d91f"},a("fieldset",{key:"99523dc8f944bbbd51fd1cd660fcd2908658a5b8"},a("legend",{key:"f709a73ed08970d75e83617d9d4927a33fc8bcc4",part:i},"General Info"),a("div",{key:"7519e5f5b18247f63010edb6b15994413a1349f1",class:"row gy-3"},a("div",{key:"d11c9b6bc5f91ed3c521eeee88ee866ec81cb363",class:"col-12"},a("form-control-text",{key:"8d346946db7275e1f64c84019dc2e202be77f8f7",name:"legal_name",label:"Legal Name",defaultValue:o.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"4bdfff98f5652dfd22c04a4340b1ac882bf3ce65",class:"col-12"},a("form-control-text",{key:"97055ec207286cb931e04f301fb6a0abef8e1085",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:o.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"aa43935a6d369a3f7c7fea36805fe2b15b908e06",class:"col-12 col-md-8"},a("form-control-select",{key:"fe958c7152cc3da4f33f666c4f57e692119fda18",name:"classification",label:"Business Classification",options:b,defaultValue:o.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"c6c3233c998973732545d3f9623ee0e7f2606ead",class:"col-12 col-md-4"},a("form-control-date",{key:"a87ac87813b6fe6c84cafbda1977c4ba93741342",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:o.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"5046bf2e0c9e2bbc6bbb6c8809b7147acab1ee1f",class:"col-12 col-md-6"},a("form-control-text",{key:"1771cd9caf5e29d4e03666e3cebed92dcdaa686a",name:"industry",label:"Industry",defaultValue:o.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"1a9beb47f729497275e15ad8d4910ad5b4c9951d",class:"col-12 col-md-6"},!(null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4)||this.isEditingTaxId?a("form-control-number-masked",{name:"tax_id",label:p[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":o.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:u[this.country],helpText:p[this.country].taxIdHelpText}):a("div",null,a("label",{class:"form-label",part:l},p[this.country].taxIdLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:d,value:`****${null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:c,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:""}))}},"Change")))),a("div",{key:"94b23160df7686b910628f02451c12a7752b72cd",class:"col-12"},a("form-control-text",{key:"40faf5a4b4f9c8d21385ee078ed9f4aaa9f47583",name:"website_url",label:"Website URL",defaultValue:o.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"36a7c80684f7fb5259f3e9385393a2787bbd1516",class:"col-12 col-md-6"},a("form-control-text",{key:"a3bf801d4789e2b6328842b4bb1dfe8758f946b6",name:"email",label:"Email Address",defaultValue:o.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"437eeff1d27957a77b7bf4c9e4aa2fc4fa436867",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"0780f85cedacda3b8288ba54b5b40b86338ce877",name:"phone",label:"Phone Number",defaultValue:o.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:h.US})))))}},_=class{constructor(a){e(this,a),this.errors={},this.representative={},this.isEditingIdentification=!1,this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=v(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){var e;return(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)?p[this.country].idNumberLabelOptional:p[this.country].idNumberLabel}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){var e,s;const o=this.formController.getInitialValues().representative;return a(t,{key:"23d11271b1ec0b5a36222cf972b3cbb94a436a99"},a("fieldset",{key:"9062abcf81faf8c1bd136a7ad28ee9f21831b4fb"},a("legend",{key:"61cf510c63cfe30278e1a07a0186a4feac0c31ec",part:i},"Representative"),a("div",{key:"431ab7681cc1dc022d251dd4caaf4fc6a7def9b1",class:"row gy-3"},a("div",{key:"d94add92e02afa9dbb7cc617fea60bd0bc37db9c",class:"col-12 col-md-8"},a("form-control-text",{key:"2cdf16e8f5984de4db422fde0b0e353fb6029912",name:"name",label:"Full Name",defaultValue:null==o?void 0:o.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"cff4220ba8704a02a7f8642b562116ef63400bd8",class:"col-12 col-md-4"},a("form-control-text",{key:"949b4eea179738a03ff0b9336e8325320da56473",name:"title",label:"Title",defaultValue:null==o?void 0:o.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"dc21ee17586cce9b39a924df668ad9c5be1ab84b",class:"col-12 col-md-6"},a("form-control-text",{key:"0470770dbe028c8247bd8405d68d4d1690b5e4e4",name:"email",label:"Email Address",defaultValue:null==o?void 0:o.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"6625e7fda86feabad127a97b7c06a40d19903b34",name:"phone",label:"Phone Number",defaultValue:null==o?void 0:o.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:h.US})),a("div",{key:"6f9df4495d3fea041a643eb6bb0560b1747b094a",class:"col-12 col-md-4"},a("form-control-date",{key:"a8c3cbc3d2c075e82e82c8fd4a123eade5a64e5c",name:"dob_full",label:"Birth Date",defaultValue:null==o?void 0:o.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"a5be0388dbfa97375cedaf059e51b680170d806f",class:"col-12 col-md-8"},!(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?a("form-control-number-masked",{name:"identification_number",label:this.identificationNumberLabel,defaultValue:this.isEditingIdentification?"":null==o?void 0:o.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:u[this.country],helpText:p[this.country].identityHelpText}):a("div",null,a("label",{class:"form-label",part:l},this.identificationNumberLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:d,value:`****${null===(s=this.representative)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:c,onClick:()=>{this.isEditingIdentification=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{ssn_last4:null,identification_number:""})}))}},"Change")))),a("div",{key:"be522af99631fad573411bc5415fd6a712bc5486",class:"col-12"},a("justifi-identity-address-form",{key:"145c76eb8c16fdd113dcd61faff219f852b22214",errors:this.errors.address,defaultValues:null==o?void 0:o.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},x=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e;const s=this.formController.getInitialValues().legal_address;return a(t,{key:"11d54eb58574e9afdeed03b357f4c5b89752b48b"},a("fieldset",{key:"3608fc95fb7d60fcd5485394fc1a8210f91d13a8"},a("legend",{key:"ffe6b8794039b1df22e0bd1775cf497edac543d7",part:i},"Business Legal Address"),a("justifi-form-address-fields",{key:"34adccfea54d0603d3e8899df048f3aab1b8b64c",country:this.country,errors:null===(e=this.errors)||void 0===e?void 0:e.legal_address,defaultValues:s,inputHandler:this.inputHandler})))}};export{y as form_alert,k as justifi_additional_questions,j as justifi_business_core_info,_ as justifi_business_representative,x as justifi_legal_address_form}
|
|
1
|
+
import{r as e,h as a,H as t}from"./p-CV0Pyo1O.js";import{al as s,b as i,z as l,w as d,a2 as c}from"./p-D3V9AE6o.js";import{b as o,r,s as n,c as b}from"./p-Bt4GjEWL.js";import{C as f,I as u,P as h}from"./p-CVaOFfrI.js";import{e as m,d as v}from"./p-BcNb9bVO.js";import{c as p}from"./p-_-2E_vYf.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:s},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},k=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,s,l,d,c,b,u,h,m,v,p,y,k,j;const _=this.formController.getInitialValues().additional_questions;return a(t,{key:"825ad2a859cacac1b9ba7be60ade5f3bb108abee"},a("fieldset",{key:"be913775846b09d99c0c5809a93dfc2779bbae9c"},a("legend",{key:"52db62eb99455247f317f3dfce9ed260139d9b92",part:i},"Additional Questions"),a("div",{key:"9bca42f1668874643cb2c46f3ac39df85fb0cc45",class:"row gy-3"},a("div",{key:"4f5cfbb11109a00d5427096503bceeb443349925",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"8d467c76af23e7aaa0a437a6b8631f8966dd7c41",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===s?void 0:s.business_revenue,defaultValue:null==_?void 0:_.business_revenue,maskOptions:f.WHOLE})),a("div",{key:"4e5ed2a46af18734a97e498fe03d0b39b6d64895",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"5dac6143381928fa469e610a51c680dc2d6458ba",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(d=null===(l=this.errors)||void 0===l?void 0:l.additional_questions)||void 0===d?void 0:d.business_payment_volume,defaultValue:null==_?void 0:_.business_payment_volume,maskOptions:f.WHOLE})),a("div",{key:"7ffc0942f4aa7a28fe5cb647af3fb4d0fbdfb19f",class:"col-12"},a("form-control-select",{key:"dd323dcdb5152040737ad91715e5f1eba17afaed",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===(b=null===(c=this.errors)||void 0===c?void 0:c.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:o,defaultValue:null==_?void 0:_.business_when_service_received})),a("div",{key:"f7d98dcddaee8beb583b7436007660012c856d06",class:"col-12"},a("form-control-select",{key:"c3dd0af43353221f0b6f34555afc6627eb6e4805",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:r,defaultValue:null==_?void 0:_.business_recurring_payments})),a("div",{key:"6afac5b74ebf3f833f3a773c4c364ec805c827ee",class:"col-12"},a("form-control-text",{key:"8730d4945250eaf2aee10e2eb2327876f98e07f3",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==_?void 0:_.business_recurring_payments_percentage})),a("div",{key:"4e13389f89aad6598817c4a45e5a8125ae21b9a4",class:"col-12"},a("form-control-select",{key:"5cb9f4af9b1a1a707f6110073356474397b46489",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(y=null===(p=this.errors)||void 0===p?void 0:p.additional_questions)||void 0===y?void 0:y.business_seasonal,options:n,defaultValue:null==_?void 0:_.business_seasonal})),a("div",{key:"705affae85c29fe6d5270ad32a2af9bdeed9b6e9",class:"col-12"},a("form-control-text",{key:"08807d448e5a4f1865a22d06d9e1e34d27bb5f5f",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(j=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===j?void 0:j.business_other_payment_details,defaultValue:null==_?void 0:_.business_other_payment_details})))))}},j=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.isEditingTaxId=!1,this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new m(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){var e,s;const o=this.formController.getInitialValues();return a(t,{key:"d60b250bd327a8f49ac2854ef90a50149952d91f"},a("fieldset",{key:"99523dc8f944bbbd51fd1cd660fcd2908658a5b8"},a("legend",{key:"f709a73ed08970d75e83617d9d4927a33fc8bcc4",part:i},"General Info"),a("div",{key:"7519e5f5b18247f63010edb6b15994413a1349f1",class:"row gy-3"},a("div",{key:"d11c9b6bc5f91ed3c521eeee88ee866ec81cb363",class:"col-12"},a("form-control-text",{key:"8d346946db7275e1f64c84019dc2e202be77f8f7",name:"legal_name",label:"Legal Name",defaultValue:o.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"4bdfff98f5652dfd22c04a4340b1ac882bf3ce65",class:"col-12"},a("form-control-text",{key:"97055ec207286cb931e04f301fb6a0abef8e1085",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:o.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"aa43935a6d369a3f7c7fea36805fe2b15b908e06",class:"col-12 col-md-8"},a("form-control-select",{key:"fe958c7152cc3da4f33f666c4f57e692119fda18",name:"classification",label:"Business Classification",options:b,defaultValue:o.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"c6c3233c998973732545d3f9623ee0e7f2606ead",class:"col-12 col-md-4"},a("form-control-date",{key:"a87ac87813b6fe6c84cafbda1977c4ba93741342",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:o.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"5046bf2e0c9e2bbc6bbb6c8809b7147acab1ee1f",class:"col-12 col-md-6"},a("form-control-text",{key:"1771cd9caf5e29d4e03666e3cebed92dcdaa686a",name:"industry",label:"Industry",defaultValue:o.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"1a9beb47f729497275e15ad8d4910ad5b4c9951d",class:"col-12 col-md-6"},!(null===(e=this.coreInfo)||void 0===e?void 0:e.tax_id_last4)||this.isEditingTaxId?a("form-control-number-masked",{name:"tax_id",label:p[this.country].taxIdLabel,defaultValue:this.isEditingTaxId?"":o.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:u[this.country],helpText:p[this.country].taxIdHelpText}):a("div",null,a("label",{class:"form-label",part:l},p[this.country].taxIdLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:d,value:`****${null===(s=this.coreInfo)||void 0===s?void 0:s.tax_id_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:c,onClick:()=>{this.isEditingTaxId=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{tax_id:""}))}},"Change")))),a("div",{key:"94b23160df7686b910628f02451c12a7752b72cd",class:"col-12"},a("form-control-text",{key:"40faf5a4b4f9c8d21385ee078ed9f4aaa9f47583",name:"website_url",label:"Website URL",defaultValue:o.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"36a7c80684f7fb5259f3e9385393a2787bbd1516",class:"col-12 col-md-6"},a("form-control-text",{key:"a3bf801d4789e2b6328842b4bb1dfe8758f946b6",name:"email",label:"Email Address",defaultValue:o.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"437eeff1d27957a77b7bf4c9e4aa2fc4fa436867",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"0780f85cedacda3b8288ba54b5b40b86338ce877",name:"phone",label:"Phone Number",defaultValue:o.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:h.US})))))}},_=class{constructor(a){e(this,a),this.errors={},this.representative={},this.isEditingIdentification=!1,this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=v(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){var e;return(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)?p[this.country].idNumberLabelOptional:p[this.country].idNumberLabel}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){var e,s;const o=this.formController.getInitialValues().representative;return a(t,{key:"23d11271b1ec0b5a36222cf972b3cbb94a436a99"},a("fieldset",{key:"9062abcf81faf8c1bd136a7ad28ee9f21831b4fb"},a("legend",{key:"61cf510c63cfe30278e1a07a0186a4feac0c31ec",part:i},"Representative"),a("div",{key:"431ab7681cc1dc022d251dd4caaf4fc6a7def9b1",class:"row gy-3"},a("div",{key:"d94add92e02afa9dbb7cc617fea60bd0bc37db9c",class:"col-12 col-md-8"},a("form-control-text",{key:"2cdf16e8f5984de4db422fde0b0e353fb6029912",name:"name",label:"Full Name",defaultValue:null==o?void 0:o.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"cff4220ba8704a02a7f8642b562116ef63400bd8",class:"col-12 col-md-4"},a("form-control-text",{key:"949b4eea179738a03ff0b9336e8325320da56473",name:"title",label:"Title",defaultValue:null==o?void 0:o.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"dc21ee17586cce9b39a924df668ad9c5be1ab84b",class:"col-12 col-md-6"},a("form-control-text",{key:"0470770dbe028c8247bd8405d68d4d1690b5e4e4",name:"email",label:"Email Address",defaultValue:null==o?void 0:o.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"6625e7fda86feabad127a97b7c06a40d19903b34",name:"phone",label:"Phone Number",defaultValue:null==o?void 0:o.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:h.US})),a("div",{key:"6f9df4495d3fea041a643eb6bb0560b1747b094a",class:"col-12 col-md-4"},a("form-control-date",{key:"a8c3cbc3d2c075e82e82c8fd4a123eade5a64e5c",name:"dob_full",label:"Birth Date",defaultValue:null==o?void 0:o.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"a5be0388dbfa97375cedaf059e51b680170d806f",class:"col-12 col-md-8"},!(null===(e=this.representative)||void 0===e?void 0:e.ssn_last4)||this.isEditingIdentification?a("form-control-number-masked",{name:"identification_number",label:this.identificationNumberLabel,defaultValue:this.isEditingIdentification?"":null==o?void 0:o.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:u[this.country],helpText:p[this.country].identityHelpText}):a("div",null,a("label",{class:"form-label",part:l},this.identificationNumberLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:d,value:`****${null===(s=this.representative)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:c,onClick:()=>{this.isEditingIdentification=!0,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{ssn_last4:null,identification_number:""})}))}},"Change")))),a("div",{key:"be522af99631fad573411bc5415fd6a712bc5486",class:"col-12"},a("justifi-identity-address-form",{key:"145c76eb8c16fdd113dcd61faff219f852b22214",errors:this.errors.address,defaultValues:null==o?void 0:o.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},x=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e;const s=this.formController.getInitialValues().legal_address;return a(t,{key:"11d54eb58574e9afdeed03b357f4c5b89752b48b"},a("fieldset",{key:"3608fc95fb7d60fcd5485394fc1a8210f91d13a8"},a("legend",{key:"ffe6b8794039b1df22e0bd1775cf497edac543d7",part:i},"Business Legal Address"),a("justifi-form-address-fields",{key:"34adccfea54d0603d3e8899df048f3aab1b8b64c",country:this.country,errors:null===(e=this.errors)||void 0===e?void 0:e.legal_address,defaultValues:s,inputHandler:this.inputHandler})))}};export{y as form_alert,k as justifi_additional_questions,j as justifi_business_core_info,_ as justifi_business_representative,x as justifi_legal_address_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as a,c as t}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import{e as s,d as i,s as d}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{g as c}from"./p-_BHErKTQ.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{a as f}from"./p-BH0Xfn-F.js";import{P as b,M as l}from"./p-BrcAwFqw.js";import{a as r,b as h,D as o,c as p,C as y,E as n}from"./p-COZ-9O53.js";import{S as m}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as u}from"./p-C0tps2ph.js";import{a as v,B as k}from"./p-BPpqjhPu.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-D3V9AE6o.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){a(this,e),this.errorEvent=t(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:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===c.disputed&&this.payment.disputes.some((e=>e.status===f.lost))?b.DISPUTE_LOST:this.payment.status}render(){return e(m,{key:"b0ef5292b9f5e321bd5c66b4204f0f5262b4868d"},this.loading&&e(j,{key:"aea26635451d6fb3833c50884b64968ae4e6d794"}),!this.loading&&this.errorMessage&&n(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"7cf33c1a29b2fb6d50ed57f6b84a61aa36fdbcca",errorMessage:this.errorMessage},e(r,{key:"585d7d41bbfb41b04f703bc1bac1605426413540",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},l(this.PaymentStatus),this.payment.expedited?e(v,{variant:k.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(h,{key:"9b231713501a12f4ac041cb87be8bb4e1b30fb26",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${i(this.payment.updated_at)}`}),e(h,{key:"40381145240b3821787ca71a910a8fb709c8ce72",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${i(this.payment.created_at)}`}),e(h,{key:"9587a280a8747197c0bab21c92e875211e833ea1",title:"ID",value:this.payment.id})),e("div",{key:"fe4949d10e1068a05dfab9cbe256e282a50beee1",slot:"detail-sections"},e(o,{key:"336bfe5363f642a5cbc58cbd594b232a35e3427d",sectionTitle:"Details"}),e("div",{key:"3fbde5fd43e53b13037d79d75f0f3856c2e6d275",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"4260513ca15415d12d653aecafee9e93c8762b61",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(p,{key:"1afa28ebb7873037b2881e3aec45820f0e7c1eec",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(p,{key:"ad63ad42b89bf2216924222cdb819b910d0f6ebf",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(p,{key:"5c2fa5215f60d69e648116154e53a0492d5f16c3",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(p,{key:"dcd3b432ab38c1fe3be55bf13eec0cbfeafa4e3b",title:"Status",value:l(this.PaymentStatus)}),e(p,{key:"767ea4cecb0b162154945a537085d5c369db9c9c",title:"Payment ID",value:this.payment.id}),e(p,{key:"027efe0e16aba479cc0f9a1097a25ec8e03decbd",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(p,{key:"08d69878534824105dc3e0f5e9cf31d56abd6c25",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(p,{key:"aef3831a8a16a2e501ea45cbf8943b1a7e272f2c",title:"Description",value:this.payment.description}),e(p,{key:"12246613df2e322ea276269b897e321e4345e52c",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(o,{key:"02d5be3b2e987842a97b0f0284b35ead993fb4d7",sectionTitle:"Payment Method"}),e("div",{key:"a92a78508d316490e2a3cdd0125d73221ca8b395",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"5a5c264f4fb7860f949c537460df12d79a79e583",title:"ID",value:this.payment.payment_method.card.id}),e(p,{key:"66545c5899ae5156ad9896d7a8b89931554ee854",title:"Payment Type",value:"Card"}),e(p,{key:"6ce2daaac72cb97f9369dd14ca0892cd29e2abe5",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(p,{key:"a0bd3851aa8beea81167c047d6a6540cda46e9df",title:"Brand",value:d(this.payment.payment_method.card.brand)}),e(p,{key:"a707a07e5ef07970a1d8aa10a564eaf045cce898",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(o,{key:"d61523f850e1d202731e32257382e82df7702566",sectionTitle:"Payment Method"}),e("div",{key:"58c8f1ee69e360f3137f7dbbbc6207cfa7d8544d",class:"d-flex flex-column gap-2 w-100"},e(p,{key:"7d4b9a3afdd5fdaf662ffdbc0eeeae0e973e3e0d",title:"ID",value:this.payment.payment_method.bank_account.id}),e(p,{key:"f02c0c07c3cc6b89605d98073b18cb247b796363",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(p,{key:"df94144bb5519de4d3432e31c7a2301a9ce0098b",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(p,{key:"7fe8d075f370afd3c64228d810cd8946f2631fa0",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(o,{key:"09f67f1719cf66843a50da15025f364efb485c49",sectionTitle:"Metadata"}),e("div",{key:"577995231bf0d25b11d90a10a98ae479236667c9",class:"d-table gap-2 w-100"},e(y,{key:"a17163d4ec63b650d645f9a4b8a6e5eb996f1269",metadata:this.payment.metadata}))])))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{w as payment_details_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{f as i}from"./p-MeSAYDNh.js";import{H as a,aA as r}from"./p-c8J1gsDg.js";import{B as d}from"./p-77CuiIig.js";import{S as o}from"./p-BqNNwq6C.js";import{S as c}from"./p-CmYy5XDp.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-CemnnRdZ.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-3kNggPyP.js";import"./p-HXpYMWUU.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BiNakvsa.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-Cc6518FT.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7)}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}isDueDatePassed(){var e;if(!(null===(e=this.dispute)||void 0===e?void 0:e.due_date))return!1;const t=new Date(this.dispute.due_date.replace(/-/g,"/").replace(/T.+/,"")),s=new Date;return s.setHours(0,0,0,0),t.setHours(0,0,0,0),t<s}render(){var e,t,n,h,p,f,l,u,b;return s(o,{key:"f73a27de0f7e01960cfe78a5b81b021b22eaf2c6"},this.isLoading&&s("div",{key:"ca2c47a78d302e09cd60434eb2a0146787f7ac45",style:{marginBottom:"8px"}},s(c,{key:"e7c3318f1ecaae82727ec3620e5ba65f25692552",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"3313a4d5ba47766076e5c13cde8f1500fdcfa4a0",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"94d2c92beaf52499cea87b3e04a37284898ce4d9",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&this.isDueDatePassed()&&s("div",{key:"fe66f1d00863607cbb457953c4880e4bdc4442ae",part:a},s("h1",{key:"1cf8c42bdb942391c65e67db8a0da0ff4c618249",class:"h4",part:r},"The due date (",null===(t=this.dispute)||void 0===t?void 0:t.due_date,") for this dispute has passed"),s("p",{key:"18643d72965f197edcf40c2053325df9dedf47fb"},"You can no longer submit evidence to counter this dispute.")),(null===(n=this.dispute)||void 0===n?void 0:n.needsResponse)&&!this.isDueDatePassed()&&s("div",{key:"096b7b976ddebd49a6ab5067ef5b4f07e06e145d",part:a},s("h1",{key:"06010bc9881b4cd9bd91399784ff9169e730784f",class:"h4",part:r},"This payment is disputed"),s("p",{key:"aca40b62cfe60ca69ebecd59d9d1c5c3cfd1b227"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"81f1fe8ec625b44d7bf251f4fbf5a4ac1dea2a41",class:"h5"},"Dispute details"),s("div",{key:"b5269224135805abb32164911ef682ed9524a35b",class:"d-table gap-2"},s("div",{key:"b90a2c3028003119fdb23f6e0cd8a3f965f9d58b",class:"d-table-row gap-2"},s("span",{key:"24967d47583c83333966ad788e8d4d388f32bf3a",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"a1bc338abb575e5dc496bec2f7199d36d3015d68",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(h=this.dispute)||void 0===h?void 0:h.amount))),s("div",{key:"c45e0cc9efcf743d9b981d17d9628b243892d27e",class:"d-table-row gap-2"},s("span",{key:"d326adc2bfe3fbd9d67fc4d9d82e1545490d274a",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"eaa16df97b9fd1b4963c2561bc5b7eb7892dafb4",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(p=this.dispute)||void 0===p?void 0:p.reason)),s("div",{key:"58999fa8fd18509f29d7233ca7255e2a033139b3",class:"d-table-row gap-2"},s("span",{key:"b35f041be173d792e81c3da3992104a0ede2bf91",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Due Date"),s("span",{key:"eea5132a629528830dd6a3c68ca773848c89cb95",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(f=this.dispute)||void 0===f?void 0:f.due_date))),s("div",{key:"f4975381aad6ed61a674e7a907632790e0ecf399",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"875c8fe451dbf7bb3817be6ab2ab3b919bb6b783",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"a4725c6ee3c18785e91d5ce82c3fbdb35029040a",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(l=this.dispute)||void 0===l?void 0:l.underReview)&&s("div",{key:"3c2149db7fbe647697c759083fe1884421409078",part:a},s("h1",{key:"14a5b5e1f88a147b5e5b272c05d8c7b61172ccc1",class:"h4",part:r},"This payment is disputed and under review"),s("p",{key:"80492d8cfabb74288b800737ff1b91ef4ca976e4"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(u=this.dispute)||void 0===u?void 0:u.won)&&s("div",{key:"379d85bd2363dc727e0e17e20900912232fc8692",part:a},s("h1",{key:"d26214c5df407be1fdba12836882b6299f84d02b",class:"h4",part:r},"This payment was disputed"),s("p",{key:"f77287d806f5121916661f511830239e34df103f"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(b=this.dispute)||void 0===b?void 0:b.lost)&&s("div",{key:"29d05bf0e4065164bf5b5a079679c189373edbfb",part:a},s("h1",{key:"4f76816e9dbbe9b4a02bf15d019ebf0163908659",class:"h4",part:r},"This payment was disputed"),s("p",{key:"184a792846ced212766c1f6b63b3ccd0297eceb9"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"68bf041be58383d3df181d84e0773bb71fd4ed96"},s("justifi-dispute-response-core",{key:"76af71dd1a21bedf10406aa2cd6d93bfad5b5746","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},w=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"8b0f0f810ad0bbc57489862ae5159fae8cbad746",class:"row gy-3"},s("div",{key:"ca6e73df82123a344b4a28efae395e8b9c931258",class:"col-12"},s("h1",{key:"bb78dcfd69d0b747cf1b1865bf463518ae18b442",class:"h4",part:r},"Counter dispute")),s("div",{key:"7179e0a6fdb89024d613f897db2cf313255494fd",class:"col-12"},this.currentStepComponent),s("div",{key:"9219e8b3213c494adef926077f35c298588053c0",class:"col-12"},s("div",{key:"73c2fd1a8440c19f468610ec02a7cfa6eddecb7e",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,w as justifi_dispute_response_core}
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{f as i}from"./p-MeSAYDNh.js";import{t as a,a8 as r}from"./p-D3V9AE6o.js";import{B as d}from"./p-o83Uy7sW.js";import{S as o}from"./p-BqNNwq6C.js";import{S as c}from"./p-C0tps2ph.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-XxcNbSyO.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-zGGZEiGQ.js";import"./p-HXpYMWUU.js";import"./p-55QcjheA.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-_BHErKTQ.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-qNXIkzDE.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7)}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}isDueDatePassed(){var e;if(!(null===(e=this.dispute)||void 0===e?void 0:e.due_date))return!1;const t=new Date(this.dispute.due_date.replace(/-/g,"/").replace(/T.+/,"")),s=new Date;return s.setHours(0,0,0,0),t.setHours(0,0,0,0),t<s}render(){var e,t,n,h,p,f,l,u,b;return s(o,{key:"5ec3fb458651022433067e2396d5f3382952b1d0"},this.isLoading&&s("div",{key:"a4e98abb63b4cf14606d020e79c3b24e34e8d6c8",style:{marginBottom:"8px"}},s(c,{key:"a3385bb3e16f32b0d9ca8607382d5cfab67dea30",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"d2f20f95cbc49195ce6e2811335b747fd58f3acb",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"53b9006fb1fc2ba1fbff33fa2de9a8d8f2dbb5f8",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&this.isDueDatePassed()&&s("div",{key:"509d7ae4a1d3cfe229c240a9782d919281e9f7f7",part:a},s("h1",{key:"a39eb9c225269bf984870ba6c28816bda4aeeb5c",class:"h4",part:r},"The due date (",null===(t=this.dispute)||void 0===t?void 0:t.due_date,") for this dispute has passed"),s("p",{key:"97f89e8439bfd8ca4558ce4666b09766fa5f190b"},"You can no longer submit evidence to counter this dispute.")),(null===(n=this.dispute)||void 0===n?void 0:n.needsResponse)&&!this.isDueDatePassed()&&s("div",{key:"9228dc32ee4c01961a726cf0d016d4121a0bade6",part:a},s("h1",{key:"70f686c0766bc5ecbd5d18ddd62aa7b3864f79a2",class:"h4",part:r},"This payment is disputed"),s("p",{key:"464cd97ac905f33eb87b817662fd4120bcd75a5b"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"0b6120d06dee850ee65291ebc488e969de1ea988",class:"h5"},"Dispute details"),s("div",{key:"0fde10ab79aa18679727c93b823ff353f99e78b2",class:"d-table gap-2"},s("div",{key:"a12705b53c1e2483d5c7a63851c29b64b8d1a55e",class:"d-table-row gap-2"},s("span",{key:"9a04eb7b2708b89c2d3f721054797d4204984071",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"b1e31c999df1469e7d0af22c26c52138134100d7",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(h=this.dispute)||void 0===h?void 0:h.amount))),s("div",{key:"dad70076664583f12d4c5076d2d02b5f41728a56",class:"d-table-row gap-2"},s("span",{key:"08a5b3833aad625b7e37d9250eecd4eaa65ce340",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"8a5dc58561b019fa9aaa9b485182d1e45f41f0ab",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(p=this.dispute)||void 0===p?void 0:p.reason)),s("div",{key:"d843420ad58a1476ce5abadf48902387aedabe88",class:"d-table-row gap-2"},s("span",{key:"4d6bfa397e48aea37875e02ec5bd87e1b0fc016f",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Due Date"),s("span",{key:"92eb09d8e5309448792c104ffeb45d0efd75ecdb",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(f=this.dispute)||void 0===f?void 0:f.due_date))),s("div",{key:"17460ccbaaa12b98a1ff4171b34e1d5f90ab408a",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"a216a14d3bab4927bb33b4f49f2db3a4aec93054",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"9c3aa14f1561ff4984e4c0da750878b7f9f7b931",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(l=this.dispute)||void 0===l?void 0:l.underReview)&&s("div",{key:"66da2ac06164f5ff587acb9dcd7621fe9fe4fd77",part:a},s("h1",{key:"3a1821dce2996b174f75da14eb5e56ca2c6b1abb",class:"h4",part:r},"This payment is disputed and under review"),s("p",{key:"3b0ea372d06ec75d2e11424d94e4afbd049a8c6a"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(u=this.dispute)||void 0===u?void 0:u.won)&&s("div",{key:"c57c024d4fbed71e9a34987c3a01fb047f00814b",part:a},s("h1",{key:"ce7b57efcd9094ea5327e6b326ee9b4315b60d66",class:"h4",part:r},"This payment was disputed"),s("p",{key:"78fc5f0f3104d370b87df29bc12da67d1878bf66"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(b=this.dispute)||void 0===b?void 0:b.lost)&&s("div",{key:"90d64362f0f228799e3574367343333e8cdedf27",part:a},s("h1",{key:"24eac4bb8254f9be4472d0d74e45c2fd7e587478",class:"h4",part:r},"This payment was disputed"),s("p",{key:"60abcb3213442c77bd52d6c7e7a30a822bf673e9"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"f65e8fa4aa2374eadaa94e5bb87e1dc73026c6d5"},s("justifi-dispute-response-core",{key:"3222bf2f10f8ee185d9d9e03e083dd3e1e7bef61","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},w=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"41406d4115c2a084c84ca59895c0107af2a30e4d",class:"row gy-3"},s("div",{key:"54f86cc1ffdb90a4ec738ca6cdac8165025ede65",class:"col-12"},s("h1",{key:"28a0289b5926d7f4d04a658f13782d80aa96584a",class:"h4",part:r},"Counter dispute")),s("div",{key:"abfcc8a09326b8d780647a644dd0b6e1deada071",class:"col-12"},this.currentStepComponent),s("div",{key:"e1bfbd12d9c6c86521d1d47cd4afb007960cdf9b",class:"col-12"},s("div",{key:"3149002728d1953c116758ab48eb0a2481a68398",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,w as justifi_dispute_response_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{C as e,a as o}from"./p-Cjcsf8ku.js";import{C as r,B as n,c as h}from"./p-BcNb9bVO.js";import{
|
|
1
|
+
import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{C as e,a as o}from"./p-Cjcsf8ku.js";import{C as r,B as n,c as h}from"./p-BcNb9bVO.js";import{t as a}from"./p-D3V9AE6o.js";import{S as p}from"./p-BqNNwq6C.js";import{H as l}from"./p-t6eP44Li.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import{P as u}from"./p-C_WlV7F_.js";import"./p-C0tps2ph.js";const m=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(l,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:a},s("p",null,"We have already received the onboarding information for this business."))),d=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(l,{text:"You're all set for now"})),s("div",{class:"col-12",part:a},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),f=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.currentStep=0,this.country=r.USA,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new n(t.data);this.businessProvisioned=h(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:e.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}async componentWillLoad(){this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return s(p,null,this.businessLoading?s(u,null):this.businessProvisioned?s(m,null):this.formSubmitted?s(d,null):s("div",{class:"row gap-3"},s(l,{text:this.formTitle}),s("justifi-payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:a},this.stepCounter),s("justifi-payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{f as justifi_payment_provisioning_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s,H as
|
|
1
|
+
import{r as e,c as t,h as s,H as i}from"./p-CV0Pyo1O.js";import{I as a}from"./p-Ce_F4E0f.js";import{v as d,w as o,x as l,y as r,z as c}from"./p-D3V9AE6o.js";import{F as f}from"./p-BU9iZ8OM.js";import"./p-CZfYo5-1.js";import{C as h}from"./p-BcNb9bVO.js";import{n}from"./p-BnjCmwMr.js";import{b,c as u}from"./p-_-2E_vYf.js";const m=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.imask=null,this.isFocused=!1,this.inputHandler=()=>{},this.disabled=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{var t;const s=e.target,i=s.getAttribute("name"),a=(null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue)||s.value;this.formControlInput.emit({name:i,value:a})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?d:this.disabled?o:this.isFocused?l:r}render(){return s(i,{key:"8e8abaf2afd497cf83ef9661374606b899c0f730"},s("div",{key:"b9281582a6dc56d34e67541ecf7eda264d911f97",class:"form-group d-flex flex-column"},s("div",{key:"41816d8d12b7feca244efee7df3afae3594ac687",class:"d-flex align-items-start gap-2"},s("label",{key:"c41b28d631cccb4f21ae61763e7afbc866475cc6",part:c,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"d665eb4abc33a53389d9417fa83b8bff46af90ef",helpText:this.helpText})),s("input",{key:"fbfa6e0768f52ad5e5a92609e9cb1d8c8bd34966",ref:e=>this.textInput=e,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:"text",disabled:this.disabled}),s(f,{key:"db0b75ce2d99e1707b383c0d443416b42f4b620e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},v=class{constructor(t){e(this,t),this.country=h.USA}render(){var e,t,a,d,o,l,r,c,f,m;const v=u[this.country],p=b[this.country];return s(i,{key:"8dabbee93e0f319db333ada6c20af49ed6131b8d"},s("div",{key:"4b308ca9fa92321e5f60f3e4d9ab1c4e60cbd703",class:"row gy-3"},s("div",{key:"9c25eec2effd7caed70a3f02f6a780513fae930c",class:"col-12"},s("form-control-text",{key:"6c2ae178c2122d1f6085906690adadf98cb0774b",name:"line1",label:"Street Address",inputHandler:this.inputHandler,defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,helpText:"No PO Boxes."})),s("div",{key:"eba53a69fc4c869014ef8b7bf6ff9b1d8f5be566",class:"col-12"},s("form-control-text",{key:"11c743ce2388173c41cb16f1865fe58b2015d6bb",name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null===(a=this.defaultValues)||void 0===a?void 0:a.line2,errorText:null===(d=this.errors)||void 0===d?void 0:d.line2})),s("div",{key:"2025c9bb15286f5c3e4693b596372a7dff730ce8",class:"col-12"},s("form-control-text",{key:"5e0e40fd028d12b88cb15a38906738320e30aeca",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null===(o=this.defaultValues)||void 0===o?void 0:o.city,errorText:null===(l=this.errors)||void 0===l?void 0:l.city})),s("div",{key:"407eac6eee8ca33a6648f2d1a45003961353f877",class:"col-12 col-md-6"},s("form-control-select",{key:"c598b24e0dc594ae725a7473212a6ed36102ce49",name:"state",label:v.stateLabel,options:p.stateOptions,inputHandler:this.inputHandler,defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.state,errorText:null===(c=this.errors)||void 0===c?void 0:c.state})),s("div",{key:"49861d791272c745f881d19016b93885ce59f724",class:"col-12 col-md-6"},s("form-control-text",{key:"90b9db4630dd4fad7e86151f2a632cd62b8509f3",name:"postal_code",label:v.postalLabel,inputHandler:this.inputHandler,defaultValue:null===(f=this.defaultValues)||void 0===f?void 0:f.postal_code,errorText:null===(m=this.errors)||void 0===m?void 0:m.postal_code,maxLength:this.country===h.USA?5:7,keyDownHandler:this.country===h.USA?n:void 0}))))}},p=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){return s(i,{key:"1b644425472c68880a9be150d52029a64d75ea26"},s("justifi-form-address-fields",{key:"d5e95bc81c654d00a0fcac4760705bd21b3b8c8d",country:this.country,errors:this.errors,defaultValues:this.defaultValues,inputHandler:this.inputHandler}))}static get watchers(){return{address:["handleAddressChange"]}}};export{m as form_control_number_masked,v as justifi_form_address_fields,p as justifi_identity_address_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as a}from"./p-D3V9AE6o.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const d=class{constructor(t){e(this,t)}render(){return t(o,{key:"d52547314559d20607677dd96e1d7668ea527e5a",class:"payment-method"},t("div",{key:"5d9fdf8edfe809299d5cf0d6636c7aa34853827c",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"2519b4a0e1e38ae5ac9d9d8910ad9228282a09e7",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{d as payment_method_option}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as a,H as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-
|
|
1
|
+
import{h as e,r as a,H as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-C0tps2ph.js";import{w as s,c}from"./p-DVJaoI_m.js";import{b as r}from"./p-MeSAYDNh.js";import"./p-D3V9AE6o.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const o=a=>{const{isReady:i}=a;return i?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"120px"}),e(t,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"110px"}),e(t,{height:"36px"}))))},n=class{constructor(e){a(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((a=>{e.addEventListener("iframeLoaded",(()=>{a()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),a=await this.routingNumberIframeElement.validate();return e&&a}async tokenize(e,a,i){return this.accountNumberIframeElement.tokenize(e,a,i)}render(){return e(i,{key:"a104b2e88e818472d0158990ccf2cac6d7315616"},e(o,{key:"1ed1ac87a66aedf6a7528247e0ff3a803c74e4c3",isReady:this.isReady}),e("div",{key:"a96c05c60c51f97c8abb7dc6a8cfebc940ea1513",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"3d168fd241702b30f0c8727d3c0aae65c20b69aa",class:"row mb-3"},e("iframe-input",{key:"dc1da989b1577ed62b3eeafd33128aca38e4610d",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),e("div",{key:"1179ae9d6b9f476bb01a1ee4f4edd7da6f22f635",class:"row"},e("iframe-input",{key:"7e79b383876be1711a2e21ab7462f86281ebf28c",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{n as bank_account_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{B as a}from"./p-o83Uy7sW.js";import{a5 as s,a6 as r}from"./p-D3V9AE6o.js";const d=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length},o=class{constructor(t){e(this,t),this.showClearButton=!1}watchParamsHandler(e){this.showClearButton=d(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=d(this.params)}render(){return t("div",{key:"73f921b9b5ecd46b708103088c1e21cdaf6d22cd",class:"d-flex gap-2"},t("div",{key:"8afb347ce7cea4cb2a030b066a9ec754606d4cd0",class:"dropdown pb-3"},t("button",{key:"d6c2f951ed13929359564e5417e4bbebf4557fc7",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle",part:s,"data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"d2b3e83bf6151270cad7a58e518904b17b09047f",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"4750d1ac1485fddf3334afe6bbd70a8dcdb79a4b",class:"dropdown-menu",part:r,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"a990cee903c302a1b99f6ba65995f267dc7636c1"})))),t("div",{key:"8d854bba9dca17b875fb63cc28ce4f0efc26bf03"},t(a,{key:"529212aadf246ba9164eed8ad7dc1b6ebddcb867",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{o as table_filters_menu}
|