@justifi/webcomponents 6.9.1-rc.1 → 6.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/{Api-Bp3jtSK2.js → Api-Bukk55YZ.js} +1 -1
- package/dist/cjs/{Plaid-DB_gUhoy.js → Plaid-B_UkFjIV.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-document-form-inputs_9.cjs.entry.js +13 -13
- package/dist/cjs/bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/{business-additional-questions-schema-DSMQTU1W.js → business-additional-questions-schema-CI80eZLJ.js} +3 -3
- package/dist/cjs/{business-identity-schema-Ds1cJOr9.js → business-identity-schema-DWWtSiUF.js} +2 -2
- package/dist/cjs/{business.service-Cz5Mw8or.js → business.service-Kplx8w_D.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +3 -3
- package/dist/cjs/{check-pkg-version-CjIXCBRy.js → check-pkg-version-PX_ogtrH.js} +20 -3
- package/dist/cjs/{checkout.service-BhUfe1za.js → checkout.service-B2toaeKY.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{checkouts-table-BY52AnEw.js → checkouts-table-CXgizBib.js} +1 -1
- package/dist/cjs/{dispute.service-C4UxnT-i.js → dispute.service-C4n1SOsu.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +6 -6
- package/dist/cjs/{get-payment-details-r0afJz4u.js → get-payment-details-Atcodhcd.js} +1 -1
- package/dist/cjs/{get-subaccounts-D0vg5CC5.js → get-subaccounts-BUyf9EhG.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/{index.esm-ByC0D4sJ.js → index.esm-C1ZPG85l.js} +18 -0
- package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +7 -7
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +28 -13
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_8.cjs.entry.js +7 -8
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-form.cjs.entry.js +11 -11
- package/dist/cjs/justifi-checkout.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +6 -6
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +20 -0
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
- package/dist/cjs/justifi-payout-details.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +8 -8
- 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 +5 -5
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CjrDwZ1_.js → package-uJFBawLq.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +3 -3
- package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{payment-provisioning-actions-CZVlnRA0.js → payment-provisioning-actions-J6TGZZb9.js} +2 -0
- package/dist/cjs/{payment.service-Caa1AMvr.js → payment.service-CxSGTv_O.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +3 -3
- package/dist/cjs/{payments-table-C4EdksTV.js → payments-table-D5Hw3JDe.js} +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{payout.service-sSIuVYJ3.js → payout.service-CO2wDM6M.js} +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -3
- package/dist/cjs/{payouts-table-BJNUv0WA.js → payouts-table-DmVthJLU.js} +1 -1
- package/dist/cjs/{plaid-icon-JDI0tO2m.js → plaid-icon-DiZrP1DM.js} +2 -2
- package/dist/cjs/{schema-validations-CDAKixyQ.js → schema-validations-_yWWnnaG.js} +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +3 -3
- package/dist/cjs/{terminal-orders-table-B-79Vr6S.js → terminal-orders-table-DPHz95-0.js} +2 -2
- package/dist/cjs/{terminal.service-jNz6aX1i.js → terminal.service-CUVwCH-a.js} +2 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +3 -3
- package/dist/cjs/{terminals-table-BF0epngC.js → terminals-table-C6rm50Mk.js} +1 -1
- package/dist/cjs/{utils-Xm42fjFZ.js → utils-BHi4j5rB.js} +14 -92
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -7
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -8
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -7
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -8
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +10 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +6 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +2 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-already-provisioned.js +6 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +15 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-submission-complete.js +6 -0
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +3 -2
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/google-pay.js +0 -20
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +3 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +9 -4
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form.js +18 -0
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/collection/utils/check-pkg-version.js +17 -0
- package/dist/collection/utils/utils.js +14 -1
- package/dist/docs.json +55 -56
- package/dist/esm/{Api-DTLHOAbP.js → Api-CLZVsXZg.js} +1 -1
- package/dist/esm/{Plaid-4KgZeVz6.js → Plaid-Cmyilr-q.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/bank-account-document-form-inputs_9.entry.js +13 -13
- package/dist/esm/bank-account-form.entry.js +3 -3
- package/dist/esm/{business-additional-questions-schema-BOmaLaX-.js → business-additional-questions-schema-DKudYaoE.js} +3 -3
- package/dist/esm/{business-identity-schema-M_EirLHo.js → business-identity-schema-CFhSc0cA.js} +2 -2
- package/dist/esm/{business.service-BUqlnFDc.js → business.service-CS-wQJoN.js} +2 -2
- package/dist/esm/card-form.entry.js +3 -3
- package/dist/esm/{check-pkg-version-CZI1PwGp.js → check-pkg-version-Dun0W_E2.js} +20 -3
- package/dist/esm/{checkout.service-Biz7SQlj.js → checkout.service-BcQ_onZq.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +4 -4
- package/dist/esm/{checkouts-table-CJHeGiIb.js → checkouts-table-C5aYyqpX.js} +1 -1
- package/dist/esm/{dispute.service-vbHc3EuA.js → dispute.service-B_oe0uFV.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +6 -6
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-monetary-provisioning.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number-masked_3.entry.js +2 -2
- package/dist/esm/form-control-number_3.entry.js +6 -6
- package/dist/esm/{get-payment-details-vuAQFTzs.js → get-payment-details-BdewJSTH.js} +1 -1
- package/dist/esm/{get-subaccounts-DD38mpGM.js → get-subaccounts-BFALCYFr.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/{index.esm-IWS0494Y.js → index.esm-BHdVU4hV.js} +18 -0
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +7 -7
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +28 -13
- package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_8.entry.js +7 -8
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +6 -6
- package/dist/esm/justifi-business-form.entry.js +11 -11
- package/dist/esm/justifi-checkout.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list.entry.js +9 -9
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +6 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +6 -6
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +7 -7
- package/dist/esm/justifi-payment-details.entry.js +7 -7
- package/dist/esm/justifi-payment-provisioning-core.entry.js +21 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +7 -7
- package/dist/esm/justifi-payout-details.entry.js +6 -6
- package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +8 -8
- 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 +5 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CbOhX1R1.js → package-CfQ5vkQ3.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +3 -3
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment-provisioning-actions-ONP8lDnV.js → payment-provisioning-actions-CBvplwPf.js} +2 -0
- package/dist/esm/{payment.service-DH_pKHdp.js → payment.service-Nvz1TYZB.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +3 -3
- package/dist/esm/{payments-table-CeWcDUam.js → payments-table-BDaiD836.js} +1 -1
- package/dist/esm/payout-details-core.entry.js +1 -1
- package/dist/esm/{payout.service-rnQOd5Tm.js → payout.service-tTxsxoqF.js} +2 -2
- package/dist/esm/payouts-list-core.entry.js +3 -3
- package/dist/esm/{payouts-table-DeAdGsCH.js → payouts-table-B4nuJlpC.js} +1 -1
- package/dist/esm/{plaid-icon-HuYeMyv2.js → plaid-icon-B7a1QC7F.js} +2 -2
- package/dist/esm/{schema-validations-aBXPWENt.js → schema-validations-v6WGlZkq.js} +1 -1
- package/dist/esm/terminal-orders-list-core.entry.js +3 -3
- package/dist/esm/{terminal-orders-table-DNLwQbfo.js → terminal-orders-table-B-xs6ocO.js} +2 -2
- package/dist/esm/{terminal.service-CeWqP59G.js → terminal.service-Dv1-CZ4Y.js} +2 -2
- package/dist/esm/terminals-list-core.entry.js +3 -3
- package/dist/esm/{terminals-table-Ct1DZaR0.js → terminals-table-CnKH-UOw.js} +1 -1
- package/dist/esm/{utils-D08l50KN.js → utils-7bp92NC7.js} +14 -92
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +17 -0
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs-canada2.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/bank-account-read-only-value2.js +1 -1
- package/dist/module/business-core-info-form-step.js +10 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +2 -2
- package/dist/module/business-owners-form-step.js +6 -0
- package/dist/module/business-representative-form-inputs.js +2 -2
- package/dist/module/business-representative.js +3 -3
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/form-address-fields.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/form.js +18 -0
- package/dist/module/google-pay.js +0 -2
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +3 -3
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-provisioning-actions.js +2 -0
- package/dist/module/payment-provisioning-core.js +22 -1
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/utils2.js +14 -92
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-already-provisioned.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-submission-complete.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +3 -3
- package/dist/types/components/modular-checkout/sub-components/google-pay.d.ts +0 -1
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
- package/dist/types/components.d.ts +22 -22
- package/dist/types/ui-components/form/form.d.ts +2 -0
- package/dist/webcomponents/{p-cf32d418.entry.js → p-092653b6.entry.js} +1 -1
- package/dist/webcomponents/p-0f1c100d.entry.js +1 -0
- package/dist/webcomponents/{p-676bbeb5.entry.js → p-11402020.entry.js} +1 -1
- package/dist/webcomponents/p-12665340.entry.js +1 -0
- package/dist/webcomponents/{p-95dd1412.entry.js → p-154efb83.entry.js} +1 -1
- package/dist/webcomponents/p-18658148.entry.js +1 -0
- package/dist/webcomponents/p-19f1e643.entry.js +1 -0
- package/dist/webcomponents/{p-463ba2e5.entry.js → p-32a8b10f.entry.js} +1 -1
- package/dist/webcomponents/p-334beb48.entry.js +1 -0
- package/dist/webcomponents/{p-dcd7d550.entry.js → p-3798d389.entry.js} +1 -1
- package/dist/webcomponents/{p-90f807e7.entry.js → p-3bbacc8e.entry.js} +1 -1
- package/dist/webcomponents/{p-d1e435e7.entry.js → p-3c647db5.entry.js} +1 -1
- package/dist/webcomponents/{p-a5bb5dd8.entry.js → p-3caa3604.entry.js} +1 -1
- package/dist/webcomponents/p-402ba9aa.entry.js +1 -0
- package/dist/webcomponents/{p-ad742a9f.entry.js → p-4116808e.entry.js} +1 -1
- package/dist/webcomponents/p-5206cd09.entry.js +1 -0
- package/dist/webcomponents/p-52dc271f.entry.js +1 -0
- package/dist/webcomponents/{p-d1ca9e14.entry.js → p-540e2ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-BlyTcLL_.js → p-55QcjheA.js} +1 -1
- package/dist/webcomponents/{p-eea11396.entry.js → p-5862236f.entry.js} +1 -1
- package/dist/webcomponents/{p-98bf0cfb.entry.js → p-5f402409.entry.js} +1 -1
- package/dist/webcomponents/{p-86c74415.entry.js → p-62f9c008.entry.js} +1 -1
- package/dist/webcomponents/p-660a04c0.entry.js +1 -0
- package/dist/webcomponents/{p-B2dyhwDq.js → p-6V4e6Fb_.js} +1 -1
- package/dist/webcomponents/{p-10f840fc.entry.js → p-6c503a00.entry.js} +1 -1
- package/dist/webcomponents/p-6d565cd6.entry.js +1 -0
- package/dist/webcomponents/{p-6e84725b.entry.js → p-7f3dcd42.entry.js} +1 -1
- package/dist/webcomponents/{p-af42af18.entry.js → p-88c6713a.entry.js} +1 -1
- package/dist/webcomponents/p-8Wa_-5QM.js +1 -0
- package/dist/webcomponents/{p-be6ec1b5.entry.js → p-8a42d4fe.entry.js} +1 -1
- package/dist/webcomponents/{p-d885366e.entry.js → p-8c55dac0.entry.js} +1 -1
- package/dist/webcomponents/p-8e631781.entry.js +1 -0
- package/dist/webcomponents/{p-28334844.entry.js → p-917daf31.entry.js} +1 -1
- package/dist/webcomponents/p-98158303.entry.js +1 -0
- package/dist/webcomponents/p-990d3709.entry.js +1 -0
- package/dist/webcomponents/{p-e14ce95f.entry.js → p-9a11f17b.entry.js} +1 -1
- package/dist/webcomponents/{p-64bb17f7.entry.js → p-9d69ae9f.entry.js} +3 -3
- package/dist/webcomponents/p-BHA4oSi3.js +1 -0
- package/dist/webcomponents/p-B_KHnbK8.js +1 -0
- package/dist/webcomponents/{p-ABUL3rRn.js → p-BiNakvsa.js} +1 -1
- package/dist/webcomponents/p-BovgIz83.js +1 -0
- package/dist/webcomponents/{p-DZCi07iw.js → p-CGJ_mnry.js} +1 -1
- package/dist/webcomponents/{p-BlXjEymw.js → p-CIh-k9yP.js} +1 -1
- package/dist/webcomponents/p-CJZ09QNH.js +1 -0
- package/dist/webcomponents/{p-DiJD6Iqx.js → p-CKiAlBsU.js} +1 -1
- package/dist/webcomponents/{p-DVkAKcyF.js → p-CemnnRdZ.js} +1 -1
- package/dist/webcomponents/p-CfQ5vkQ3.js +1 -0
- package/dist/webcomponents/p-CkX7qWsc.js +1 -0
- package/dist/webcomponents/{p--wa_2SG9.js → p-D8EGHc_m.js} +1 -1
- package/dist/webcomponents/{p-ChplphEP.js → p-DYEXDs2k.js} +1 -1
- package/dist/webcomponents/{p-6EQtYg98.js → p-DqtDbB8E.js} +1 -1
- package/dist/webcomponents/{p-C6GGU0xz.js → p-DyJ1zSHJ.js} +1 -1
- package/dist/webcomponents/{p-CCqnAJz7.js → p-HT_4DkD0.js} +1 -1
- package/dist/webcomponents/{p-n8CiFsbh.js → p-Jz9qdPhR.js} +1 -1
- package/dist/webcomponents/{p-CE85O0Lk.js → p-MeSAYDNh.js} +1 -1
- package/dist/webcomponents/p-R0FDNhyd.js +1 -0
- package/dist/webcomponents/{p-a980af27.entry.js → p-a141c90b.entry.js} +1 -1
- package/dist/webcomponents/p-a713a90d.entry.js +1 -0
- package/dist/webcomponents/{p-6a0c47c7.entry.js → p-a87a7fad.entry.js} +1 -1
- package/dist/webcomponents/{p-303c2b00.entry.js → p-ab365375.entry.js} +1 -1
- package/dist/webcomponents/{p-52988183.entry.js → p-ad962b59.entry.js} +1 -1
- package/dist/webcomponents/{p-960c2c6f.entry.js → p-b6ffa313.entry.js} +1 -1
- package/dist/webcomponents/{p-ffbd244c.entry.js → p-bcba5950.entry.js} +1 -1
- package/dist/webcomponents/{p-73df3099.entry.js → p-c0592f5f.entry.js} +1 -1
- package/dist/webcomponents/{p-d66d23e6.entry.js → p-c6aee723.entry.js} +1 -1
- package/dist/webcomponents/p-c72c5b99.entry.js +1 -0
- package/dist/webcomponents/{p-38dcc482.entry.js → p-c7930f9a.entry.js} +1 -1
- package/dist/webcomponents/p-cb9abd2c.entry.js +1 -0
- package/dist/webcomponents/p-d5516a10.entry.js +1 -0
- package/dist/webcomponents/{p-8a8a2e10.entry.js → p-d9118b1e.entry.js} +1 -1
- package/dist/webcomponents/{p-234233bd.entry.js → p-e8eeb4f1.entry.js} +1 -1
- package/dist/webcomponents/p-eEJMJXTG.js +1 -0
- package/dist/webcomponents/{p-DPe-NMaf.js → p-eEJvKFFX.js} +1 -1
- package/dist/webcomponents/{p-d75b2d8e.entry.js → p-f5362ed9.entry.js} +1 -1
- package/dist/webcomponents/p-fbfe6211.entry.js +1 -0
- package/dist/webcomponents/{p-cccaf5d8.entry.js → p-ff4d485f.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +14 -14
- package/dist/webcomponents/p-031a3b85.entry.js +0 -1
- package/dist/webcomponents/p-05bf6f64.entry.js +0 -1
- package/dist/webcomponents/p-0ce755a3.entry.js +0 -1
- package/dist/webcomponents/p-108fc8fc.entry.js +0 -1
- package/dist/webcomponents/p-1ecce619.entry.js +0 -1
- package/dist/webcomponents/p-382f7f5e.entry.js +0 -1
- package/dist/webcomponents/p-40be2abf.entry.js +0 -1
- package/dist/webcomponents/p-5120da66.entry.js +0 -1
- package/dist/webcomponents/p-5aA7gjr5.js +0 -1
- package/dist/webcomponents/p-5c7a4c5d.entry.js +0 -1
- package/dist/webcomponents/p-708cb37d.entry.js +0 -1
- package/dist/webcomponents/p-8fdf5660.entry.js +0 -1
- package/dist/webcomponents/p-95b42970.entry.js +0 -1
- package/dist/webcomponents/p-CNqhJq0U.js +0 -1
- package/dist/webcomponents/p-CbOhX1R1.js +0 -1
- package/dist/webcomponents/p-D3sBnuT0.js +0 -1
- package/dist/webcomponents/p-D8LR-wfI.js +0 -1
- package/dist/webcomponents/p-DK2dYSfn.js +0 -1
- package/dist/webcomponents/p-DLuCaZKz.js +0 -1
- package/dist/webcomponents/p-DelrHXqf.js +0 -1
- package/dist/webcomponents/p-afa2ebd9.entry.js +0 -1
- package/dist/webcomponents/p-b0c03283.entry.js +0 -1
- package/dist/webcomponents/p-b711510b.entry.js +0 -1
- package/dist/webcomponents/p-bb52e8d5.entry.js +0 -1
- package/dist/webcomponents/p-e9ac9556.entry.js +0 -1
- package/dist/webcomponents/p-f6ea2000.entry.js +0 -1
- package/dist/webcomponents/p-iRcGYAKD.js +0 -1
package/dist/module/utils2.js
CHANGED
|
@@ -22140,98 +22140,6 @@ function requireDateFns () {
|
|
|
22140
22140
|
|
|
22141
22141
|
var dateFnsExports = /*@__PURE__*/ requireDateFns();
|
|
22142
22142
|
|
|
22143
|
-
new TextEncoder();
|
|
22144
|
-
const decoder = new TextDecoder();
|
|
22145
|
-
|
|
22146
|
-
function decodeBase64(encoded) {
|
|
22147
|
-
if (Uint8Array.fromBase64) {
|
|
22148
|
-
return Uint8Array.fromBase64(encoded);
|
|
22149
|
-
}
|
|
22150
|
-
const binary = atob(encoded);
|
|
22151
|
-
const bytes = new Uint8Array(binary.length);
|
|
22152
|
-
for (let i = 0; i < binary.length; i++) {
|
|
22153
|
-
bytes[i] = binary.charCodeAt(i);
|
|
22154
|
-
}
|
|
22155
|
-
return bytes;
|
|
22156
|
-
}
|
|
22157
|
-
|
|
22158
|
-
function decode(input) {
|
|
22159
|
-
if (Uint8Array.fromBase64) {
|
|
22160
|
-
return Uint8Array.fromBase64(typeof input === 'string' ? input : decoder.decode(input), {
|
|
22161
|
-
alphabet: 'base64url',
|
|
22162
|
-
});
|
|
22163
|
-
}
|
|
22164
|
-
let encoded = input;
|
|
22165
|
-
if (encoded instanceof Uint8Array) {
|
|
22166
|
-
encoded = decoder.decode(encoded);
|
|
22167
|
-
}
|
|
22168
|
-
encoded = encoded.replace(/-/g, '+').replace(/_/g, '/');
|
|
22169
|
-
try {
|
|
22170
|
-
return decodeBase64(encoded);
|
|
22171
|
-
}
|
|
22172
|
-
catch {
|
|
22173
|
-
throw new TypeError('The input to be decoded is not correctly encoded.');
|
|
22174
|
-
}
|
|
22175
|
-
}
|
|
22176
|
-
|
|
22177
|
-
class JOSEError extends Error {
|
|
22178
|
-
static code = 'ERR_JOSE_GENERIC';
|
|
22179
|
-
code = 'ERR_JOSE_GENERIC';
|
|
22180
|
-
constructor(message, options) {
|
|
22181
|
-
super(message, options);
|
|
22182
|
-
this.name = this.constructor.name;
|
|
22183
|
-
Error.captureStackTrace?.(this, this.constructor);
|
|
22184
|
-
}
|
|
22185
|
-
}
|
|
22186
|
-
class JWTInvalid extends JOSEError {
|
|
22187
|
-
static code = 'ERR_JWT_INVALID';
|
|
22188
|
-
code = 'ERR_JWT_INVALID';
|
|
22189
|
-
}
|
|
22190
|
-
|
|
22191
|
-
const isObjectLike = (value) => typeof value === 'object' && value !== null;
|
|
22192
|
-
function isObject(input) {
|
|
22193
|
-
if (!isObjectLike(input) || Object.prototype.toString.call(input) !== '[object Object]') {
|
|
22194
|
-
return false;
|
|
22195
|
-
}
|
|
22196
|
-
if (Object.getPrototypeOf(input) === null) {
|
|
22197
|
-
return true;
|
|
22198
|
-
}
|
|
22199
|
-
let proto = input;
|
|
22200
|
-
while (Object.getPrototypeOf(proto) !== null) {
|
|
22201
|
-
proto = Object.getPrototypeOf(proto);
|
|
22202
|
-
}
|
|
22203
|
-
return Object.getPrototypeOf(input) === proto;
|
|
22204
|
-
}
|
|
22205
|
-
|
|
22206
|
-
function decodeJwt(jwt) {
|
|
22207
|
-
if (typeof jwt !== 'string')
|
|
22208
|
-
throw new JWTInvalid('JWTs must use Compact JWS serialization, JWT must be a string');
|
|
22209
|
-
const { 1: payload, length } = jwt.split('.');
|
|
22210
|
-
if (length === 5)
|
|
22211
|
-
throw new JWTInvalid('Only JWTs using Compact JWS serialization can be decoded');
|
|
22212
|
-
if (length !== 3)
|
|
22213
|
-
throw new JWTInvalid('Invalid JWT');
|
|
22214
|
-
if (!payload)
|
|
22215
|
-
throw new JWTInvalid('JWTs must contain a payload');
|
|
22216
|
-
let decoded;
|
|
22217
|
-
try {
|
|
22218
|
-
decoded = decode(payload);
|
|
22219
|
-
}
|
|
22220
|
-
catch {
|
|
22221
|
-
throw new JWTInvalid('Failed to base64url decode the payload');
|
|
22222
|
-
}
|
|
22223
|
-
let result;
|
|
22224
|
-
try {
|
|
22225
|
-
result = JSON.parse(decoder.decode(decoded));
|
|
22226
|
-
}
|
|
22227
|
-
catch {
|
|
22228
|
-
throw new JWTInvalid('Failed to parse the decoded payload as JSON');
|
|
22229
|
-
}
|
|
22230
|
-
if (!isObject(result))
|
|
22231
|
-
throw new JWTInvalid('Invalid JWT Claims Set');
|
|
22232
|
-
return result;
|
|
22233
|
-
}
|
|
22234
|
-
|
|
22235
22143
|
// Currency Formatting
|
|
22236
22144
|
const formatCurrency = (amount, currency, omitSymbols = false) => {
|
|
22237
22145
|
if (!amount)
|
|
@@ -22390,6 +22298,20 @@ function capitalizeFirstLetter(str) {
|
|
|
22390
22298
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
22391
22299
|
}
|
|
22392
22300
|
// JWT Token Utilities
|
|
22301
|
+
function decodeJwt(token) {
|
|
22302
|
+
try {
|
|
22303
|
+
const parts = token.split('.');
|
|
22304
|
+
if (parts.length !== 3) {
|
|
22305
|
+
throw new Error('Invalid JWT');
|
|
22306
|
+
}
|
|
22307
|
+
const payload = parts[1];
|
|
22308
|
+
const decoded = atob(payload.replace(/-/g, '+').replace(/_/g, '/'));
|
|
22309
|
+
return JSON.parse(decoded);
|
|
22310
|
+
}
|
|
22311
|
+
catch (e) {
|
|
22312
|
+
throw new Error('Invalid JWT');
|
|
22313
|
+
}
|
|
22314
|
+
}
|
|
22393
22315
|
function isTokenExpired(token) {
|
|
22394
22316
|
try {
|
|
22395
22317
|
const payload = decodeJwt(token);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PaymentProvisioningAlreadyProvisioned: () => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PaymentProvisioningSubmissionComplete: () => any;
|
|
@@ -22,8 +22,8 @@ export declare const businessFormSchemaUSA: import("yup").ObjectSchema<{
|
|
|
22
22
|
postal_code?: string;
|
|
23
23
|
};
|
|
24
24
|
title?: string;
|
|
25
|
-
name?: string;
|
|
26
25
|
ssn_last4?: string;
|
|
26
|
+
name?: string;
|
|
27
27
|
email?: string;
|
|
28
28
|
phone?: string;
|
|
29
29
|
dob_full?: string;
|
|
@@ -103,8 +103,8 @@ export declare const businessFormSchemaCAN: import("yup").ObjectSchema<{
|
|
|
103
103
|
postal_code?: string;
|
|
104
104
|
};
|
|
105
105
|
title?: string;
|
|
106
|
-
name?: string;
|
|
107
106
|
ssn_last4?: string;
|
|
107
|
+
name?: string;
|
|
108
108
|
email?: string;
|
|
109
109
|
phone?: string;
|
|
110
110
|
dob_full?: string;
|
|
@@ -184,8 +184,8 @@ export declare const businessFormSchema: import("yup").ObjectSchema<{
|
|
|
184
184
|
postal_code?: string;
|
|
185
185
|
};
|
|
186
186
|
title?: string;
|
|
187
|
-
name?: string;
|
|
188
187
|
ssn_last4?: string;
|
|
188
|
+
name?: string;
|
|
189
189
|
email?: string;
|
|
190
190
|
phone?: string;
|
|
191
191
|
dob_full?: string;
|
|
@@ -14,6 +14,6 @@ export declare class TokenizePaymentMethod {
|
|
|
14
14
|
private tokenizePaymentMethodRef?;
|
|
15
15
|
tokenizePaymentMethod(event?: MouseEvent): Promise<PaymentMethodPayload>;
|
|
16
16
|
fillBillingForm(fields: BillingFormFields): Promise<void>;
|
|
17
|
-
validate(): Promise<
|
|
17
|
+
validate(): Promise<ValidationResult>;
|
|
18
18
|
render(): any;
|
|
19
19
|
}
|
|
@@ -11,13 +11,14 @@ import { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEven
|
|
|
11
11
|
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
12
12
|
import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
|
|
13
13
|
import { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
14
|
+
import { BillingFormFields, FormController, PaymentMethodPayload as PaymentMethodPayload1 } from "./components";
|
|
14
15
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
15
16
|
import { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
16
17
|
import { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
17
18
|
import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
18
|
-
import { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
19
|
+
import { BillingFormFields as BillingFormFields1 } from "./components/checkout/billing-form/billing-form-schema";
|
|
19
20
|
import { CountryCode } from "./utils/country-codes";
|
|
20
|
-
import { FormController } from "./ui-components/form/form";
|
|
21
|
+
import { FormController as FormController1 } from "./ui-components/form/form";
|
|
21
22
|
import { CheckoutChangedEventDetail, Hook, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
22
23
|
import { CheckoutState } from "./store/checkout.store";
|
|
23
24
|
import { Dispute, IDispute } from "./api/Dispute";
|
|
@@ -31,13 +32,14 @@ export { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEven
|
|
|
31
32
|
export { Placement, PositioningStrategy } from "@popperjs/core";
|
|
32
33
|
export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
|
|
33
34
|
export { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
35
|
+
export { BillingFormFields, FormController, PaymentMethodPayload as PaymentMethodPayload1 } from "./components";
|
|
34
36
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
35
37
|
export { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
36
38
|
export { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
37
39
|
export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
38
|
-
export { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
40
|
+
export { BillingFormFields as BillingFormFields1 } from "./components/checkout/billing-form/billing-form-schema";
|
|
39
41
|
export { CountryCode } from "./utils/country-codes";
|
|
40
|
-
export { FormController } from "./ui-components/form/form";
|
|
42
|
+
export { FormController as FormController1 } from "./ui-components/form/form";
|
|
41
43
|
export { CheckoutChangedEventDetail, Hook, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
42
44
|
export { CheckoutState } from "./store/checkout.store";
|
|
43
45
|
export { Dispute, IDispute } from "./api/Dispute";
|
|
@@ -422,8 +424,8 @@ export namespace Components {
|
|
|
422
424
|
"width": string;
|
|
423
425
|
}
|
|
424
426
|
interface JustifiBankAccountBillingFormSimple {
|
|
425
|
-
"fill": (fields:
|
|
426
|
-
"getValues": () => Promise<
|
|
427
|
+
"fill": (fields: BillingFormFields1) => Promise<void>;
|
|
428
|
+
"getValues": () => Promise<BillingFormFields1>;
|
|
427
429
|
"legend"?: string;
|
|
428
430
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
429
431
|
}
|
|
@@ -432,8 +434,8 @@ export namespace Components {
|
|
|
432
434
|
"validate": () => Promise<any>;
|
|
433
435
|
}
|
|
434
436
|
interface JustifiBillingForm {
|
|
435
|
-
"fill": (fields:
|
|
436
|
-
"getValues": () => Promise<
|
|
437
|
+
"fill": (fields: BillingFormFields1) => Promise<void>;
|
|
438
|
+
"getValues": () => Promise<BillingFormFields1>;
|
|
437
439
|
"hideBankAccountBillingForm"?: boolean;
|
|
438
440
|
"hideCardBillingForm"?: boolean;
|
|
439
441
|
"legend"?: string;
|
|
@@ -441,8 +443,8 @@ export namespace Components {
|
|
|
441
443
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
442
444
|
}
|
|
443
445
|
interface JustifiBillingFormFull {
|
|
444
|
-
"fill": (fields:
|
|
445
|
-
"getValues": () => Promise<
|
|
446
|
+
"fill": (fields: BillingFormFields1) => Promise<void>;
|
|
447
|
+
"getValues": () => Promise<BillingFormFields1>;
|
|
446
448
|
"legend"?: string;
|
|
447
449
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
448
450
|
}
|
|
@@ -460,7 +462,7 @@ export namespace Components {
|
|
|
460
462
|
*/
|
|
461
463
|
interface JustifiBusinessCoreInfo {
|
|
462
464
|
"country": CountryCode;
|
|
463
|
-
"formController":
|
|
465
|
+
"formController": FormController1;
|
|
464
466
|
}
|
|
465
467
|
interface JustifiBusinessCoreInfoFormStep {
|
|
466
468
|
"allowOptionalFields"?: boolean;
|
|
@@ -503,7 +505,7 @@ export namespace Components {
|
|
|
503
505
|
interface JustifiBusinessRepresentativeFormInputs {
|
|
504
506
|
"country": CountryCode;
|
|
505
507
|
"errors": any;
|
|
506
|
-
"formController":
|
|
508
|
+
"formController": FormController1;
|
|
507
509
|
"representativeDefaultValue": any;
|
|
508
510
|
}
|
|
509
511
|
interface JustifiBusinessRepresentativeFormStep {
|
|
@@ -544,8 +546,8 @@ export namespace Components {
|
|
|
544
546
|
"validateAndSubmit": (onSuccess: (formData: any, documentList: DisputeEvidenceDocument[], formStep: DisputeResponseFormStep) => void) => Promise<void>;
|
|
545
547
|
}
|
|
546
548
|
interface JustifiCardBillingFormSimple {
|
|
547
|
-
"fill": (fields:
|
|
548
|
-
"getValues": () => Promise<
|
|
549
|
+
"fill": (fields: BillingFormFields1) => Promise<void>;
|
|
550
|
+
"getValues": () => Promise<BillingFormFields1>;
|
|
549
551
|
"legend"?: string;
|
|
550
552
|
"validate": () => Promise<{ isValid: boolean; errors: any; }>;
|
|
551
553
|
}
|
|
@@ -572,7 +574,7 @@ export namespace Components {
|
|
|
572
574
|
* @default false
|
|
573
575
|
*/
|
|
574
576
|
"disablePaymentMethodGroup"?: boolean;
|
|
575
|
-
"fillBillingForm": (fields:
|
|
577
|
+
"fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
|
|
576
578
|
/**
|
|
577
579
|
* @default false
|
|
578
580
|
*/
|
|
@@ -701,7 +703,6 @@ export namespace Components {
|
|
|
701
703
|
* @default "TEST"
|
|
702
704
|
*/
|
|
703
705
|
"environment": "TEST" | "PRODUCTION";
|
|
704
|
-
"merchantId"?: string;
|
|
705
706
|
"merchantName"?: string;
|
|
706
707
|
}
|
|
707
708
|
interface JustifiGrossPaymentChart {
|
|
@@ -1006,7 +1007,7 @@ export namespace Components {
|
|
|
1006
1007
|
"authToken"?: string;
|
|
1007
1008
|
"disableBankAccount"?: boolean;
|
|
1008
1009
|
"disableCreditCard"?: boolean;
|
|
1009
|
-
"fillBillingForm": (fields:
|
|
1010
|
+
"fillBillingForm": (fields: BillingFormFields1) => Promise<void>;
|
|
1010
1011
|
"hideBankAccountBillingForm"?: boolean;
|
|
1011
1012
|
"hideCardBillingForm"?: boolean;
|
|
1012
1013
|
"hideSubmitButton"?: boolean;
|
|
@@ -1016,8 +1017,8 @@ export namespace Components {
|
|
|
1016
1017
|
* @default 'Submit'
|
|
1017
1018
|
*/
|
|
1018
1019
|
"submitButtonText"?: string;
|
|
1019
|
-
"tokenizePaymentMethod": (event?: MouseEvent) => Promise<
|
|
1020
|
-
"validate": () => Promise<
|
|
1020
|
+
"tokenizePaymentMethod": (event?: MouseEvent) => Promise<PaymentMethodPayload1>;
|
|
1021
|
+
"validate": () => Promise<ValidationResult>;
|
|
1021
1022
|
}
|
|
1022
1023
|
interface LegalAddressDetails {
|
|
1023
1024
|
"legalAddress": IAddress;
|
|
@@ -3484,7 +3485,7 @@ declare namespace LocalJSX {
|
|
|
3484
3485
|
*/
|
|
3485
3486
|
interface JustifiBusinessCoreInfo {
|
|
3486
3487
|
"country": CountryCode;
|
|
3487
|
-
"formController":
|
|
3488
|
+
"formController": FormController1;
|
|
3488
3489
|
}
|
|
3489
3490
|
interface JustifiBusinessCoreInfoFormStep {
|
|
3490
3491
|
"allowOptionalFields"?: boolean;
|
|
@@ -3536,7 +3537,7 @@ declare namespace LocalJSX {
|
|
|
3536
3537
|
interface JustifiBusinessRepresentativeFormInputs {
|
|
3537
3538
|
"country": CountryCode;
|
|
3538
3539
|
"errors": any;
|
|
3539
|
-
"formController":
|
|
3540
|
+
"formController": FormController1;
|
|
3540
3541
|
"representativeDefaultValue": any;
|
|
3541
3542
|
}
|
|
3542
3543
|
interface JustifiBusinessRepresentativeFormStep {
|
|
@@ -3742,7 +3743,6 @@ declare namespace LocalJSX {
|
|
|
3742
3743
|
* @default "TEST"
|
|
3743
3744
|
*/
|
|
3744
3745
|
"environment"?: "TEST" | "PRODUCTION";
|
|
3745
|
-
"merchantId"?: string;
|
|
3746
3746
|
"merchantName"?: string;
|
|
3747
3747
|
"onGooglePayCancelled"?: (event: JustifiGooglePayCustomEvent<void>) => void;
|
|
3748
3748
|
"onGooglePayCompleted"?: (event: JustifiGooglePayCustomEvent<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-CV0Pyo1O.js";import{f as i}from"./p-CE85O0Lk.js";import{H as a,as as r}from"./p-C4FLe2pT.js";import{B as d}from"./p-DFiTyYE9.js";import{S as o}from"./p-BqNNwq6C.js";import{S as c}from"./p-DqVU8ohH.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-DVkAKcyF.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-DPe-NMaf.js";import"./p-HXpYMWUU.js";import"./p-BlyTcLL_.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-ABUL3rRn.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-CbOhX1R1.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{H as a,as as r}from"./p-C4FLe2pT.js";import{B as d}from"./p-DFiTyYE9.js";import{S as o}from"./p-BqNNwq6C.js";import{S as c}from"./p-DqVU8ohH.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-eEJvKFFX.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-CfQ5vkQ3.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}
|
|
@@ -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"./p-DVJaoI_m.js";import{c as s,a as l}from"./p-MeSAYDNh.js";import"./p-Cjcsf8ku.js";import{I as c,a as i}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{f as o,p as r,c as d}from"./p-CpGEMRkH.js";import{a as p,b as f,s as m,p as b,d as u,e as n}from"./p-C4FLe2pT.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const k=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{o[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({status:this.checkoutStatus,payment_mode:this.paymentMode,checkout_id:this.checkoutId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(r[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:c.created},{label:"Completed",value:c.completed},{label:"Attempted",value:c.attempted},{label:"Expired",value:c.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:i.ecom},{label:"BNPL",value:i.bnpl},{label:"Apple Pay",value:i.apple_pay}]}render(){const e=Object.assign({},o);return a(h,{key:"026d871e88f893ee2d565b13c72bdafaeedc1f9c"},a("table-filters-menu",{key:"a64b6212c54729cf08d0211720b815837187018b",params:e,clearParams:d,part:p},a("div",{key:"11897ce900abc322fa0107516d350f53a857aa1c",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"9f926a008dc275e53aa1d82c09410e4f65b4221e",class:"p-2"},a("form-control-text",{key:"57020a2320f442a0ee0a6ffa443f88dea855b651",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||o.checkout_id,disabled:!!this.checkoutId,part:f})),a("div",{key:"40c6e5e2e342573fcb6e1f34309e324ca2a9ee2c",class:"p-2"},a("form-control-select",{key:"7c70d0d6bdc322fc9682b3c64393778642fe8ad4",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||o.status||"",disabled:!!this.checkoutStatus,part:m})),a("div",{key:"51eb0d4cf8d3f9643af1f5fb8ef2e0908ebb18d3",class:"p-2"},a("form-control-select",{key:"47352ceaa0f989533c366d68228cc2752ef12fec",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||o.payment_mode||"",disabled:!!this.paymentMode,part:b})),a("div",{key:"cee7d5487e1b4f6dd6c25230c012d69b97326392",class:"p-2"},a("form-control-date",{key:"0b6e3821eda78c9dca9797d965020636ab31c9b9",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:l(this.createdAfter,{showInputDateTime:!0})||l(o.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:u})),a("div",{key:"d4b38febbc6763c828761bb5eab3594bd3c29f9d",class:"p-2"},a("form-control-date",{key:"3729809c6ec729c2c2887d722e16e29a9f405b09",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:l(this.createdBefore,{showInputDateTime:!0})||l(o.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:n})))))}};export{k as justifi_checkouts_list_filters}
|
|
@@ -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-DiJD6Iqx.js";import{au as d}from"./p-C4FLe2pT.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{au as d}from"./p-C4FLe2pT.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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as a,c as i,g as s}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{C as l}from"./p-Cjcsf8ku.js";import{E as o,m as n,n as r,o as c}from"./p-BiNakvsa.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{a as d}from"./p-Bt4GjEWL.js";import"./p-XYgDHrVL.js";import{n as h}from"./p-BnjCmwMr.js";import{H as u,a5 as f,J as b,av as m,V as p,aE as v,_ as y,$ as k,X as g,Y as x,Z as T,am as _}from"./p-C4FLe2pT.js";import{s as w,e as N,d as j}from"./p-MeSAYDNh.js";import{S as A}from"./p-DqVU8ohH.js";import"./p-CZfYo5-1.js";import{F as E}from"./p--Kvji7o2.js";import{u as C,a as H,b as V}from"./p-C6o0liMT.js";import{P as D,I}from"./p-CVaOFfrI.js";import{c as O}from"./p-_-2E_vYf.js";import{c as L,d as F,e as B}from"./p-R0FDNhyd.js";import{I as P}from"./p-DqtDbB8E.js";import{B as R}from"./p-DFiTyYE9.js";import{S}from"./p-BqNNwq6C.js";import{P as M,p as Y}from"./p-Jz9qdPhR.js";import"./p-D8GTwl9v.js";import"./p-D2muobcE.js";import"./p-55QcjheA.js";const q=class{constructor(t){e(this,t)}render(){return t("div",{key:"7f9ea576aad16f3c2ea45c987a38878ea65f2df2",class:"row gy-3"},t("div",{key:"316fe3f20df7c7dce2b8903e6073e0fe7920e5e8",class:"col-12"},t("form-control-file",{key:"320d6b7f3de2cfeeb30eb1e08ca4122123854ffd",name:"voided_check",label:"Voided Check",documentType:o.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"f33a936c61c14c701e40d375e4dfc4c554b8293c",class:"col-12"},t("form-control-file",{key:"1e160d8211a71175d6a45b10590fb2c8774f61e1",name:"bank_statement",label:"Bank Statement",documentType:o.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},U=class{constructor(t){e(this,t)}render(){var e,a,i,s,l,o;return t("div",{key:"5dc7139f54d11979410d0d67ca29e65b02f30200",class:"row gy-3"},t("div",{key:"118f15bf02855b24baec5ce2a2c3cf5b241b3da4",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"db03eccee03ec4b7d0de637306315982a2cd770d",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"217120e0052b8ee41cac8f901ac4d9742b0c6ea9",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"f589511545d6262966a6fa2888cb78babacfb770",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"24df83bb2666cee381c266608c43f3fd729db4cf",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(l=this.defaultValue)||void 0===l?void 0:l.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"75fe11d71e57707d088f8a90a250621fce82647f",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Routing Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.routing_number)||""}):t("form-control-text",{name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},$=class{constructor(t){e(this,t)}render(){var e,a,i,s,l,o,n;return t("div",{key:"34cbf10449df73748095fd7122d0ae1355a83e13",class:"row gy-3"},t("div",{key:"607cc5cbc70fdd2d5a325bef7002a44740394282",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Bank Name",value:null===(e=this.defaultValue)||void 0===e?void 0:e.bank_name}):t("form-control-text",{name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler})),t("div",{key:"f57f4cd733f2dd439d6d83f32078371618f5fa06",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Nickname",value:null===(a=this.defaultValue)||void 0===a?void 0:a.nickname}):t("form-control-text",{name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler})),t("div",{key:"b92dface0116321ea990bfcaf1b036b5629385db",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Owner Name",value:null===(i=this.defaultValue)||void 0===i?void 0:i.account_owner_name}):t("form-control-text",{name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler})),t("div",{key:"45d68efa47de76ee420cedfb97e82f498a2de97b",class:"col-12"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Type",value:null===(s=this.defaultValue)||void 0===s?void 0:s.account_type}):t("form-control-select",{name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler})),t("div",{key:"8419925e8470d63d506e1f7e82ccdf1a1132ecc0",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Transit Number",value:(null===(l=this.defaultValue)||void 0===l?void 0:l.transit_number)||""}):t("form-control-text",{name:"transit_number",label:"Transit Number",defaultValue:this.defaultValue.transit_number,maxLength:5,errorText:this.errors.transit_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"5 digits"})),t("div",{key:"aa6e83c409e0cf93f1903394f63c0b719ec8808e",class:"col-3"},this.formDisabled?t("bank-account-read-only-value",{label:"Institution Number",value:(null===(o=this.defaultValue)||void 0===o?void 0:o.institution_number)||""}):t("form-control-text",{name:"institution_number",label:"Institution Number",defaultValue:this.defaultValue.institution_number,maxLength:3,errorText:this.errors.institution_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"3 digits"})),t("div",{key:"029058c023daca9d0488f45478af6edafe359df7",class:"col-6"},this.formDisabled?t("bank-account-read-only-value",{label:"Account Number",value:(null===(n=this.defaultValue)||void 0===n?void 0:n.account_number_last4)?`**** ${this.defaultValue.account_number_last4}`:""}):t("form-control-text",{name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:h,helpText:"Please copy the account number as shown on your statement. Do not include spaces or dashes."})))}},z=class{constructor(t){e(this,t)}render(){return t("div",{key:"ad9eadcf49dbc67e51cd814d3ded334a587cc17c"},t("label",{key:"b8ba3d8b7ef9fc33e0e0870f71b7df5dbfae4759",class:"form-label",part:u},this.label),t("div",{key:"1839bdadb96b3c814c73991530497f9a7be6a10d",part:u},this.value||""))}},X=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(A,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:m},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:v},e.file_name),t("td",{part:v},e.file_type),t("td",{part:v},w(e.document_type)),t("td",{part:v},`${N(e.created_at)} - ${j(e.created_at)}`))))))))),t("hr",null)):null}},G=class{constructor(t){e(this,t),this.formControlInput=i(this,"formControlInput",7),this.formControlBlur=i(this,"formControlBlur",7),this.fileSelected=i(this,"fileSelected",7),this.isFocused=!1,this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=y;return this.errorText&&(e=g),this.disabled&&(e=x),this.isFocused&&(e=T),e}render(){return t(a,{key:"8172f7df27c42c6d5211d29ef595dd2e4dbd9def"},t("div",{key:"99740d980c280502242ee1cdcee2a3df6ba53146",class:"form-group d-flex flex-column"},t("div",{key:"5fb94f2b710d5fd734172ee91b59621d736e129b",class:"d-flex align-items-start gap-2"},t("label",{key:"12fedf016c7d789fad8692c7ae03975481964005",part:k,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"6d59be5a27d3c9a171292244fc9e9bb598b9ecce",helpText:this.helpText})),t("input",{key:"64c7d9eaa46f95714d5527cf94d28c206065a411",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(E,{key:"9610c0676934fd616fbdac08e98a102240773084",errorText:this.errorText,name:this.name})))}get el(){return s(this)}},J=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{C(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{H(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,a,i,s,l,o,n,r,c;return t("form",{key:"a9c0f6332bf302d5eb9f93c4ca045d572a40468f"},t("fieldset",{key:"115c564826335a9c7b670bbc0409912c3eb7a4aa"},t("div",{key:"6de8909b4b2f3c7d8ec4665aad77ef59cdf035b4",class:"d-flex align-items-center gap-2"},t("legend",{key:"bb8b5a3775eae450a866356a9e149a0bf57b5699",class:"mb-0",part:b},"Representative"),t("form-control-tooltip",{key:"a0296d4a3c35a039525f39501e117ee6fdd12257",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),t("hr",{key:"abbee22f5664275f27dd8eeb2b12c87b059ff024",class:"mt-2"}),t("div",{key:"e165ff125df62dc1d22b7329fe7fe2ff200cbbb3",class:"row gy-3"},t("div",{key:"114ff752eeda3ffa90529ff6bc675b874f543336",class:"col-12 col-md-8"},t("form-control-text",{key:"8b6ce9f4a327ca5282aa32c226f671945aa10404",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{key:"bce864367883c6bbf7bd0841114a3dbb39db692b",class:"col-12 col-md-4"},t("form-control-text",{key:"ec3e72dc3f84c0daee2c6509f7dbf2bad22f5db6",name:"title",label:"Title",defaultValue:null===(a=this.representativeDefaultValue)||void 0===a?void 0:a.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),t("div",{key:"200ae959d897d9d22016553d3c586cf3f0438dd9",class:"col-12 col-md-6"},t("form-control-text",{key:"4f77d6ca6c3c85edabc11af6f5703ab1327f05e7",name:"email",label:"Email Address",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{key:"cf642ee73f7ae8b254920a3f781c23dc456f16ae",class:"col-12 col-md-6"},t("form-control-number-masked",{key:"df609213bec728f17b2527a2e99ff3e0e69604aa",name:"phone",label:"Phone Number",defaultValue:null===(s=this.representativeDefaultValue)||void 0===s?void 0:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:D.US})),t("div",{key:"2e4565c06976723ae4e497a5305cea7468bac2f4",class:"col-12 col-md-4"},t("form-control-date",{key:"ca7d4bf05c32d1d9983df430d338cc3433015957",name:"dob_full",label:"Birth Date",defaultValue:null===(l=this.representativeDefaultValue)||void 0===l?void 0:l.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>V(e,this.formController),helpText:"Must be 18 or older."})),t("div",{key:"f6cbe1b7f4e5575f626e6d73f31b4a1a09ac33e3",class:"col-12 col-md-8"},!(null===(o=this.representativeDefaultValue)||void 0===o?void 0:o.ssn_last4)||this.isEditingIdentification?t("form-control-number-masked",{name:"identification_number",label:O[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:I[this.country],helpText:O[this.country].identityHelpText}):t("div",null,t("label",{class:"form-label",part:k},O[this.country].idNumberLabel),t("div",{class:"input-group mb-3"},t("input",{type:"text",class:"form-control",part:x,value:`****${null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.ssn_last4}`,disabled:!0}),t("button",{class:"btn btn-secondary",type:"button",part:_,onClick:()=>{this.isEditingIdentification=!0,C(this.formController,{identification_number:"",ssn_last4:null})}},"Change")))),t("div",{key:"e3fa556dece2feaf5eb175ae3734c2319777ef48",class:"col-12"},t("justifi-identity-address-form",{key:"fe3d349371d11b8a246b9c31aebd7d9c84e03f8e",errors:this.errors.address,defaultValues:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))))}},W=class{constructor(t){e(this,t),this.errorEvent=i(this,"error-event",7)}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=L({authToken:this.authToken,identityId:this.ownerId,service:new P}),this.patchOwner=F({authToken:this.authToken,identityId:this.ownerId,service:new P}),this.postOwner=B({authToken:this.authToken,service:new P}))}render(){return t("owner-form-core",{key:"47c36dfc76ac8a108950e17770d1a0fb06fe4e42",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,country:this.country,ref:e=>this.coreComponent=e})}},K=class{constructor(t){e(this,t),this.plaidVerificationSuccess=i(this,"plaidVerificationSuccess",7),this.plaidVerificationError=i(this,"plaidVerificationError",7),this.linkToken=null,this.linkTokenId=null,this.plaidLink=null,this.isAuthenticating=!1,this.isSuccess=!1,this.error=null,this.isLoading=!1,this.plaidService=new M,this.abortController=null,this.timeoutId=null,this.initializePlaidLink=async()=>{try{if(void 0===window.Plaid)return void this.handleError({code:c.PLAID_SDK_LOAD_FAILED,message:r[c.PLAID_SDK_LOAD_FAILED],severity:n[c.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"});if(await this.getLinkToken(),!this.linkToken)return void this.handleError({code:c.PLAID_LINK_TOKEN_FAILED,message:r[c.PLAID_LINK_TOKEN_FAILED],severity:n[c.PLAID_LINK_TOKEN_FAILED],retryable:!0,userAction:"Click to try again"});const e=window.Plaid;this.plaidLink=e.create({token:this.linkToken,onSuccess:this.handlePlaidSuccess,onExit:this.handlePlaidExit,onEvent:this.handlePlaidEvent,onLoad:this.handlePlaidLoad})}catch(e){this.handleError({code:c.PLAID_LINK_INIT_FAILED,message:r[c.PLAID_LINK_INIT_FAILED],severity:n[c.PLAID_LINK_INIT_FAILED],originalError:e,retryable:!0,userAction:"Click to try again"})}},this.getLinkToken=async()=>{var e,t,a,i;try{if(!this.authToken||!this.accountId)return void this.handleError({code:c.PLAID_LINK_TOKEN_FAILED,message:"Missing authentication. Please provide authToken and accountId.",severity:l.ERROR,retryable:!1,userAction:"Provide required props"});this.abortController=new AbortController,this.timeoutId=setTimeout((()=>{var e;null===(e=this.abortController)||void 0===e||e.abort()}),3e4);const e=await this.plaidService.getLinkTokenForVerification(this.authToken,this.businessId,this.abortController.signal);if(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),e.error)throw new Error("string"==typeof e.error?e.error:e.error.message||"Failed to get link token");this.linkToken=e.data.link_token,this.linkTokenId=e.data.id}catch(s){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null);let l=c.PLAID_LINK_TOKEN_FAILED,o=r[l],d=!0;"AbortError"===s.name?(l=c.PLAID_TIMEOUT,o=r[l],d=!0):(null===(e=s.message)||void 0===e?void 0:e.includes("network"))||(null===(t=s.message)||void 0===t?void 0:t.includes("fetch"))?(l=c.PLAID_NETWORK_ERROR,o=r[l],d=!0):((null===(a=s.message)||void 0===a?void 0:a.includes("401"))||(null===(i=s.message)||void 0===i?void 0:i.includes("unauthorized")))&&(l=c.PLAID_INVALID_CREDENTIALS,o="Authentication failed. Please check your credentials.",d=!1),this.handleError({code:l,message:o,severity:n[l],originalError:s,retryable:d,userAction:d?"Click to try again":"Check your credentials"})}},this.openPlaidLink=()=>{this.plaidLink&&this.linkToken&&(this.isAuthenticating=!0,this.clearError(),this.plaidLink.open())},this.handlePlaidSuccess=async e=>{var t;this.isAuthenticating=!1,this.isLoading=!0,this.clearError();try{const a=await this.plaidService.postPlaidVerifiedBankAccountData(this.authToken,this.businessId,{public_token:e,link_token_id:this.linkTokenId},null===(t=this.abortController)||void 0===t?void 0:t.signal);if(a.error)throw new Error("string"==typeof a.error?a.error:a.error.message||"Failed to verify bank account");this.isSuccess=!0,this.isLoading=!1,this.plaidVerificationSuccess.emit({publicToken:e,bankAccount:a.data})}catch(e){this.isLoading=!1,this.handleError({code:c.PLAID_AUTHENTICATION_FAILED,message:(null==e?void 0:e.message)||"Failed to verify bank account",severity:n[c.PLAID_AUTHENTICATION_FAILED],originalError:e,retryable:!0,userAction:"Click to try again"})}},this.handlePlaidExit=e=>{this.isAuthenticating=!1,e&&this.handlePlaidError(e)},this.handlePlaidEvent=(e,t)=>{switch(e){case"OPEN":this.isAuthenticating=!0;break;case"CLOSE":this.isAuthenticating=!1;break;case"ERROR":this.handlePlaidError(t)}},this.handlePlaidLoad=()=>{},this.handlePlaidError=e=>{let t=c.PLAID_AUTHENTICATION_FAILED,a=r[t],i=!0,s="Click to try again";if(e.error_code)switch(e.error_code){case"INVALID_CREDENTIALS":t=c.PLAID_INVALID_CREDENTIALS,a=r[t],i=!0;break;case"ITEM_LOGIN_REQUIRED":t=c.PLAID_INVALID_CREDENTIALS,a="Your bank requires re-authentication. Please try again.",i=!0;break;case"ITEM_LOCKED":t=c.PLAID_ACCOUNT_LOCKED,a=r[t],i=!1,s="Contact your bank";break;case"INSTITUTION_NOT_RESPONDING":t=c.PLAID_MAINTENANCE,a=r[t],i=!0;break;case"RATE_LIMIT_EXCEEDED":t=c.PLAID_RATE_LIMITED,a=r[t],i=!0;break;default:e.error_message&&(a=e.error_message)}this.handleError({code:t,message:a,severity:n[t],originalError:e,retryable:i,userAction:s}),this.isAuthenticating=!1},this.handleError=e=>{this.error=e,this.isLoading=!1,this.plaidVerificationError.emit(e),console.error("Plaid verification error:",e)},this.clearError=()=>{this.error&&(this.error=null)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.initializePlaidLink()},this.scriptRef.onerror=()=>{this.handleError({code:c.PLAID_SDK_LOAD_FAILED,message:r[c.PLAID_SDK_LOAD_FAILED],severity:n[c.PLAID_SDK_LOAD_FAILED],retryable:!0,userAction:"Refresh the page and try again"})})}disconnectedCallback(){this.timeoutId&&clearTimeout(this.timeoutId),this.abortController&&this.abortController.abort()}render(){const e=t("img",{class:"plaid-logo-img",src:Y,alt:"Plaid",title:"Plaid",style:{display:"inline",width:"20px",height:"20px",marginLeft:"5px",marginTop:"-2px"}});return t(S,null,t("script",{src:"https://cdn.plaid.com/link/v2/stable/link-initialize.js",async:!0,ref:e=>this.scriptRef=e}),t("div",null,t("div",{class:"mb-3"},t(R,{variant:"secondary",type:"button",onClick:e=>{e.preventDefault(),this.openPlaidLink()},disabled:this.isLoading,part:_},"Link Bank Account with ",e)),(()=>this.error?t("div",{class:(this.error.severity===l.ERROR?"text-danger":this.error.severity===l.WARNING?"text-warning":"text-info")+" mt-2"},t("small",null,this.error.message),t("br",null),this.error.userAction&&t("small",{class:"text-muted"},this.error.userAction)):null)(),(()=>this.error?null:this.isLoading?t("div",{class:"text-info mt-2"},t("small",null,"Verifying bank account...")):this.isSuccess?t("div",{class:"text-success mt-2"},t("small",null,"✓ Bank account verified successfully")):this.isAuthenticating?t("div",{class:"text-info mt-2"},t("small",null,"Connecting to your bank...")):null)()))}};export{q as bank_account_document_form_inputs,U as bank_account_form_inputs,$ as bank_account_form_inputs_canada,z as bank_account_read_only_value,X as business_documents_on_file,G as form_control_file,J as justifi_business_representative_form_inputs,W as justifi_owner_form,K as plaid_verification}
|