@justifi/webcomponents 6.14.5 → 6.15.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Analytics-BVHauOC2.js → Analytics-COhunq0p.js} +3 -3
- package/dist/cjs/{Api-BzB0rppJ.js → Api-Do6SaltY.js} +1 -1
- package/dist/cjs/{Plaid-B2o4c_Ej.js → Plaid-D85oV9FN.js} +5 -0
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +7 -7
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/bank-account-form.cjs.entry.js +5 -5
- package/dist/cjs/{business.service-j_VDzA2-.js → business.service-72YETCdB.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +5 -5
- package/dist/cjs/{check-pkg-version-JMiLuNXu.js → check-pkg-version-BxGoSXGD.js} +1 -1
- package/dist/cjs/{checkout-actions-VCJi-q4z.js → checkout-actions-BRQFQ6n-.js} +2 -2
- package/dist/cjs/{checkout.service-0vHtBDZY.js → checkout.service-CPsXfx0Z.js} +2 -2
- package/dist/cjs/{checkout.store-DOa1-SjA.js → checkout.store-DaV9lvEQ.js} +6 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/dispute-notification_2.cjs.entry.js +10 -10
- package/dist/cjs/{event-types-CMpeGHw8.js → event-types-UHzCC7Ga.js} +2 -2
- package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
- package/dist/cjs/form-alert_3.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-file.cjs.entry.js +2 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
- package/dist/cjs/{get-business-BBDsPv-b.js → get-business-BpaRbn5S.js} +2 -2
- package/dist/cjs/{get-payment-details-BYZeUFAB.js → get-payment-details-Cmg8gWvo.js} +2 -2
- package/dist/cjs/{get-subaccounts-B7e8Eovg.js → get-subaccounts-Bp7DOmM_.js} +3 -3
- package/dist/cjs/{index-CajjbB9t.js → index-DDa1jd08.js} +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/internal-button.cjs.entry.js +1 -1
- package/dist/cjs/{justifi-apple-pay_11.cjs.entry.js → justifi-apple-pay_12.cjs.entry.js} +314 -26
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
- package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +8 -8
- package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -16
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +8 -8
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
- package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +9 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DfdMLmz7.js → package-G3Vs7Jx5.js} +1 -1
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/{payment-provisioning-actions-CIsDrh8k.js → payment-provisioning-actions-DDooZhhk.js} +2 -2
- package/dist/cjs/{payment.service-Bs3HJ4Kv.js → payment.service-CVwTrHEL.js} +2 -2
- package/dist/cjs/{payout.service-DNWZxt3R.js → payout.service-CL3VR0hN.js} +2 -2
- package/dist/cjs/{payouts-status-DVU5138C.js → payouts-status-1IUtW-UQ.js} +2 -2
- package/dist/cjs/{plaid.service-B_YQGBoC.js → plaid.service-Cukg5wuY.js} +2 -2
- package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
- package/dist/cjs/save-new-payment-method.cjs.entry.js +3 -3
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-CvFZEemr.js → terminal.service-C0KG7BqL.js} +2 -2
- package/dist/cjs/{utils-WrOn06xB.js → utils-CBriZzRC.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Paypal.js +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/services/paypal.service.js +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/billing-form/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/card-billing-form-simple.js +1 -1
- package/dist/collection/components/checkout/billing-form/justifi-billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/justifi-checkout.js +1 -1
- package/dist/collection/components/checkout/justifi-saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/justifi-save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +3 -3
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/modular-checkout/ModularCheckout.js +4 -0
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +75 -11
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +278 -0
- package/dist/collection/components/modular-checkout/sub-components/paypal/paypal.js +17 -0
- package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
- package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
- package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
- package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
- package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
- package/dist/collection/store/checkout.store.js +5 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/internal-button.js +1 -1
- package/dist/collection/ui-components/radio-list-item.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +115 -3
- package/dist/esm/{Analytics-Dgz_MQ1D.js → Analytics-3WmRTICF.js} +3 -3
- package/dist/esm/{Api-DScockhO.js → Api-83B3f28Q.js} +1 -1
- package/dist/esm/{Plaid-DJ-4YL0_.js → Plaid-BP3xNxQF.js} +5 -0
- package/dist/esm/additional-questions-form-step_15.entry.js +7 -7
- package/dist/esm/additional-statement_8.entry.js +8 -8
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
- package/dist/esm/bank-account-document-form-inputs.entry.js +1 -1
- package/dist/esm/bank-account-form.entry.js +5 -5
- package/dist/esm/{business.service-DR2ldRqG.js → business.service-CTqiKKy5.js} +2 -2
- package/dist/esm/card-form.entry.js +5 -5
- package/dist/esm/{check-pkg-version-CPMg0K2m.js → check-pkg-version-CmFl6VLH.js} +1 -1
- package/dist/esm/{checkout-actions-DhL8YxrK.js → checkout-actions-0ftD0elo.js} +2 -2
- package/dist/esm/{checkout.service-CU4BnB34.js → checkout.service-wjFjBxIB.js} +2 -2
- package/dist/esm/{checkout.store-B6amfNq_.js → checkout.store-B2mtQcB5.js} +6 -1
- package/dist/esm/custom-popper_2.entry.js +2 -2
- package/dist/esm/dispute-notification_2.entry.js +10 -10
- package/dist/esm/{event-types-BNfdthYa.js → event-types-cqQHLwCy.js} +2 -2
- package/dist/esm/form-address-fields_3.entry.js +2 -2
- package/dist/esm/form-alert_3.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +2 -2
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/form-control-file-v2_2.entry.js +3 -3
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/form-control-monetary.entry.js +2 -2
- package/dist/esm/form-control-number_2.entry.js +2 -2
- package/dist/esm/form-control-radio.entry.js +2 -2
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-BSyOONF0.js → get-business-BLCT-zfN.js} +2 -2
- package/dist/esm/{get-payment-details-CoGzqJ6o.js → get-payment-details-BokzuPGl.js} +2 -2
- package/dist/esm/{get-subaccounts-BraeNX17.js → get-subaccounts-ClGG-LRZ.js} +3 -3
- package/dist/esm/{index-DkoufM1t.js → index-DEx8fQeW.js} +4 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal-button.entry.js +1 -1
- package/dist/esm/{justifi-apple-pay_11.entry.js → justifi-apple-pay_12.entry.js} +314 -27
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
- package/dist/esm/justifi-bank-account-form.entry.js +6 -6
- package/dist/esm/justifi-billing-form-full.entry.js +1 -1
- package/dist/esm/justifi-billing-form.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +8 -8
- package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
- package/dist/esm/justifi-card-form.entry.js +6 -6
- package/dist/esm/justifi-checkout-qr-code.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-dispute-management.entry.js +8 -8
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-payment-details.entry.js +16 -16
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +8 -8
- package/dist/esm/justifi-payout-details.entry.js +11 -11
- package/dist/esm/justifi-payout-transactions-list.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +10 -10
- package/dist/esm/justifi-qr-terminal.entry.js +8 -8
- package/dist/esm/justifi-refund-payment.entry.js +8 -8
- package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
- package/dist/esm/justifi-skeleton.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +8 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CiypNylL.js → package-CAVi_ne1.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-DJKGndr3.js → payment-provisioning-actions-VRIPjnAQ.js} +2 -2
- package/dist/esm/{payment.service-BxBf9T-D.js → payment.service-D7uv5vym.js} +2 -2
- package/dist/esm/{payout.service-DKe3_O4y.js → payout.service-BoSyqft1.js} +2 -2
- package/dist/esm/{payouts-status-C0nijel1.js → payouts-status-CaiC5qpn.js} +2 -2
- package/dist/esm/{plaid.service-DwWljJOH.js → plaid.service-DufQkxDk.js} +2 -2
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +3 -3
- package/dist/esm/table-filters-menu.entry.js +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-Q4KXLOka.js → terminal.service-BM2aebB6.js} +2 -2
- package/dist/esm/{utils-D6LKoG0M.js → utils-YUOJKtjO.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/ModularCheckout.js +4 -0
- package/dist/module/Plaid.js +5 -0
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-billing-form-simple2.js +1 -1
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-billing-form-simple2.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +5 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/dispute-notification2.js +2 -2
- package/dist/module/dispute-response2.js +1 -1
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number2.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-button2.js +1 -1
- package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-billing-form-full.js +1 -1
- package/dist/module/justifi-billing-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-card-billing-form-simple.js +1 -1
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout-summary2.js +1 -1
- package/dist/module/justifi-checkout.js +53 -47
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +75 -11
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-details.js +8 -8
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-details.js +3 -3
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-paypal.d.ts +11 -0
- package/dist/module/justifi-paypal.js +6 -0
- package/dist/module/justifi-paypal2.js +254 -0
- package/dist/module/justifi-save-new-payment-method.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/radio-list-item2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/save-new-payment-method2.js +1 -1
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/api/Checkout.d.ts +13 -1
- package/dist/types/api/Paypal.d.ts +11 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/services/paypal.service.d.ts +8 -0
- package/dist/types/components/modular-checkout/ModularCheckout.d.ts +6 -2
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +7 -0
- package/dist/types/components/modular-checkout/sub-components/paypal/justifi-paypal.d.ts +43 -0
- package/dist/types/components/modular-checkout/sub-components/paypal/paypal.d.ts +39 -0
- package/dist/types/components.d.ts +53 -0
- package/dist/types/store/checkout.store.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-49e40ebe.entry.js → p-0aa96018.entry.js} +1 -1
- package/dist/webcomponents/p-0fbc806f.entry.js +1 -0
- package/dist/webcomponents/p-10787684.entry.js +1 -0
- package/dist/webcomponents/{p-bc435cae.entry.js → p-1365a46b.entry.js} +1 -1
- package/dist/webcomponents/p-1fa62eba.entry.js +1 -0
- package/dist/webcomponents/p-25f70d5f.entry.js +1 -0
- package/dist/webcomponents/{p-BlqdDtQr.js → p-27igUlku.js} +1 -1
- package/dist/webcomponents/{p-4f54d1b2.entry.js → p-28fb6b50.entry.js} +1 -1
- package/dist/webcomponents/{p-f0083ace.entry.js → p-2b5533a1.entry.js} +1 -1
- package/dist/webcomponents/{p-da21ae43.entry.js → p-36340e63.entry.js} +1 -1
- package/dist/webcomponents/p-3642e189.entry.js +1 -0
- package/dist/webcomponents/p-388082cd.entry.js +1 -0
- package/dist/webcomponents/p-3f2fb856.entry.js +1 -0
- package/dist/webcomponents/{p-041a22dd.entry.js → p-42021e67.entry.js} +1 -1
- package/dist/webcomponents/{p-0d9022e5.entry.js → p-4cad48c1.entry.js} +1 -1
- package/dist/webcomponents/{p-373586db.entry.js → p-50c2b8f0.entry.js} +1 -1
- package/dist/webcomponents/p-5842d4e8.entry.js +1 -0
- package/dist/webcomponents/{p-e7909732.entry.js → p-5c89dcdf.entry.js} +1 -1
- package/dist/webcomponents/p-5d7b3d71.entry.js +1 -0
- package/dist/webcomponents/p-5dcb1713.entry.js +1 -0
- package/dist/webcomponents/p-5f8c30b6.entry.js +1 -0
- package/dist/webcomponents/p-68e88747.entry.js +1 -0
- package/dist/webcomponents/p-6931a1f2.entry.js +1 -0
- package/dist/webcomponents/{p-f8f01bbb.entry.js → p-6c94218c.entry.js} +1 -1
- package/dist/webcomponents/{p-e954f46c.entry.js → p-6eb65d23.entry.js} +1 -1
- package/dist/webcomponents/{p-027ef7e9.entry.js → p-7002286e.entry.js} +1 -1
- package/dist/webcomponents/{p-d6122124.entry.js → p-72bb4aff.entry.js} +1 -1
- package/dist/webcomponents/p-74575a99.entry.js +1 -0
- package/dist/webcomponents/p-777470cb.entry.js +1 -0
- package/dist/webcomponents/p-7c405573.entry.js +1 -0
- package/dist/webcomponents/p-825a7ee6.entry.js +1 -0
- package/dist/webcomponents/p-8d11aa27.entry.js +1 -0
- package/dist/webcomponents/{p-3870712e.entry.js → p-909a9828.entry.js} +4 -4
- package/dist/webcomponents/p-955c06d3.entry.js +1 -0
- package/dist/webcomponents/{p-2139497d.entry.js → p-97c6593d.entry.js} +1 -1
- package/dist/webcomponents/p-9e3e2e32.entry.js +1 -0
- package/dist/webcomponents/{p-29f68bd0.entry.js → p-9e9a2546.entry.js} +1 -1
- package/dist/webcomponents/{p-cb977890.entry.js → p-9f0ef3f3.entry.js} +1 -1
- package/dist/webcomponents/{p-DD9-ceDZ.js → p-B0DHIvEj.js} +1 -1
- package/dist/webcomponents/{p-BL112JyU.js → p-BAKuMxC9.js} +1 -1
- package/dist/webcomponents/{p-DcA_wt-j.js → p-BEL8sLz6.js} +1 -1
- package/dist/webcomponents/{p-H4vl65HO.js → p-BSxXlu9H.js} +1 -1
- package/dist/webcomponents/p-CAVi_ne1.js +1 -0
- package/dist/webcomponents/{p-rIJv0FaI.js → p-CIpBEUtx.js} +1 -1
- package/dist/webcomponents/{p-CnHbIkmu.js → p-CJEetAx7.js} +1 -1
- package/dist/webcomponents/p-CLq3Og7o.js +1 -0
- package/dist/webcomponents/p-CXsRwohv.js +1 -0
- package/dist/webcomponents/p-Cy2N3vAg.js +1 -0
- package/dist/webcomponents/p-CyOXIqHo.js +1 -0
- package/dist/webcomponents/p-D6uhYbLo.js +1 -0
- package/dist/webcomponents/p-DEx8fQeW.js +1 -0
- package/dist/webcomponents/p-DN7VhlTn.js +1 -0
- package/dist/webcomponents/{p-Co3Rtlnu.js → p-DZQBPUfH.js} +1 -1
- package/dist/webcomponents/p-D_84NsmN.js +1 -0
- package/dist/webcomponents/p-Fpaf7CLD.js +1 -0
- package/dist/webcomponents/{p-CnDagPty.js → p-PdwJswAy.js} +1 -1
- package/dist/webcomponents/p-acb0b66c.entry.js +1 -0
- package/dist/webcomponents/p-b23dfa13.entry.js +1 -0
- package/dist/webcomponents/{p-b17fabdc.entry.js → p-b98ea26a.entry.js} +1 -1
- package/dist/webcomponents/{p-6884fa3d.entry.js → p-c3818a5a.entry.js} +1 -1
- package/dist/webcomponents/{p-61eae8cd.entry.js → p-c4889a06.entry.js} +1 -1
- package/dist/webcomponents/{p-b9316945.entry.js → p-c5424fda.entry.js} +1 -1
- package/dist/webcomponents/p-ca13117d.entry.js +1 -0
- package/dist/webcomponents/p-ca6c5365.entry.js +1 -0
- package/dist/webcomponents/{p-f6b900f4.entry.js → p-cb1cc88e.entry.js} +1 -1
- package/dist/webcomponents/{p-387aba3d.entry.js → p-ced6f6f1.entry.js} +1 -1
- package/dist/webcomponents/{p-c5560a87.entry.js → p-d59676ea.entry.js} +1 -1
- package/dist/webcomponents/p-d98bc829.entry.js +1 -0
- package/dist/webcomponents/{p-b9b5d046.entry.js → p-e55216fb.entry.js} +1 -1
- package/dist/webcomponents/{p-cb5d2198.entry.js → p-ead48010.entry.js} +1 -1
- package/dist/webcomponents/p-eb31024f.entry.js +1 -0
- package/dist/webcomponents/{p-543fcff2.entry.js → p-ee7fe3a8.entry.js} +1 -1
- package/dist/webcomponents/p-f0434a13.entry.js +1 -0
- package/dist/webcomponents/{p-c14dde7c.entry.js → p-f3682c72.entry.js} +1 -1
- package/dist/webcomponents/{p-537ea763.entry.js → p-f5358a80.entry.js} +1 -1
- package/dist/webcomponents/{p-b945fa49.entry.js → p-f9f0cb1f.entry.js} +1 -1
- package/dist/webcomponents/p-fda6f27d.entry.js +1 -0
- package/dist/webcomponents/p-fdd087d4.entry.js +1 -0
- package/dist/webcomponents/{p-C8g8unYJ.js → p-nbKvRcwU.js} +1 -1
- package/dist/webcomponents/{p-WnMmPpEb.js → p-vIQBTQmc.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +15 -15
- package/LICENSE +0 -21
- package/dist/webcomponents/p-04153e8c.entry.js +0 -1
- package/dist/webcomponents/p-0464be7b.entry.js +0 -1
- package/dist/webcomponents/p-0c1cc1e9.entry.js +0 -1
- package/dist/webcomponents/p-0fe976d6.entry.js +0 -1
- package/dist/webcomponents/p-15934f30.entry.js +0 -1
- package/dist/webcomponents/p-2128265d.entry.js +0 -1
- package/dist/webcomponents/p-21a5c3d8.entry.js +0 -1
- package/dist/webcomponents/p-25d24964.entry.js +0 -1
- package/dist/webcomponents/p-3086ee7a.entry.js +0 -1
- package/dist/webcomponents/p-36d7033b.entry.js +0 -1
- package/dist/webcomponents/p-3ef039ec.entry.js +0 -1
- package/dist/webcomponents/p-49f279c3.entry.js +0 -1
- package/dist/webcomponents/p-4d60d249.entry.js +0 -1
- package/dist/webcomponents/p-51714ea9.entry.js +0 -1
- package/dist/webcomponents/p-558677a7.entry.js +0 -1
- package/dist/webcomponents/p-568b81a2.entry.js +0 -1
- package/dist/webcomponents/p-6f34fa90.entry.js +0 -1
- package/dist/webcomponents/p-8fO8CrtQ.js +0 -1
- package/dist/webcomponents/p-9b758a11.entry.js +0 -1
- package/dist/webcomponents/p-9c506058.entry.js +0 -1
- package/dist/webcomponents/p-BEOJqK7T.js +0 -1
- package/dist/webcomponents/p-C0w_sG9P.js +0 -1
- package/dist/webcomponents/p-CMvr3y5s.js +0 -1
- package/dist/webcomponents/p-CaLXuYmg.js +0 -1
- package/dist/webcomponents/p-CiypNylL.js +0 -1
- package/dist/webcomponents/p-D1H6VUbM.js +0 -1
- package/dist/webcomponents/p-DNxN6bjU.js +0 -1
- package/dist/webcomponents/p-DkoufM1t.js +0 -1
- package/dist/webcomponents/p-Dl0CAW76.js +0 -1
- package/dist/webcomponents/p-a14d3d7d.entry.js +0 -1
- package/dist/webcomponents/p-a47854b9.entry.js +0 -1
- package/dist/webcomponents/p-b8d46fc5.entry.js +0 -1
- package/dist/webcomponents/p-c0bd4006.entry.js +0 -1
- package/dist/webcomponents/p-c4799285.entry.js +0 -1
- package/dist/webcomponents/p-cc5a97a0.entry.js +0 -1
- package/dist/webcomponents/p-d57ae599.entry.js +0 -1
- package/dist/webcomponents/p-de8c6cd4.entry.js +0 -1
- package/dist/webcomponents/p-f6941969.entry.js +0 -1
- package/dist/webcomponents/p-f8cff289.entry.js +0 -1
|
@@ -12,6 +12,7 @@ export declare class JustifiModularCheckout {
|
|
|
12
12
|
private insuranceFormRef?;
|
|
13
13
|
private applePayRef?;
|
|
14
14
|
private googlePayRef?;
|
|
15
|
+
private paypalRef?;
|
|
15
16
|
private getCheckout;
|
|
16
17
|
private completeCheckout;
|
|
17
18
|
private plaidService;
|
|
@@ -34,6 +35,12 @@ export declare class JustifiModularCheckout {
|
|
|
34
35
|
private removeApplePayListeners;
|
|
35
36
|
private setupGooglePayListeners;
|
|
36
37
|
private removeGooglePayListeners;
|
|
38
|
+
private setupPaypalListeners;
|
|
39
|
+
private removePaypalListeners;
|
|
40
|
+
private handlePaypalStarted;
|
|
41
|
+
private handlePaypalCompleted;
|
|
42
|
+
private handlePaypalCancelled;
|
|
43
|
+
private handlePaypalError;
|
|
37
44
|
private handleApplePayStarted;
|
|
38
45
|
private handleGooglePayStarted;
|
|
39
46
|
private handleGooglePayCompleted;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { PaypalFundingSource } from '../../../../api/Paypal';
|
|
3
|
+
export declare class JustifiPaypal {
|
|
4
|
+
private paypalService;
|
|
5
|
+
private sdkInstance;
|
|
6
|
+
private paypalSession;
|
|
7
|
+
private venmoSession;
|
|
8
|
+
private pendingOrderId?;
|
|
9
|
+
private paypalEligible;
|
|
10
|
+
private venmoEligible;
|
|
11
|
+
private buttonsEl?;
|
|
12
|
+
private paypalButtonEl?;
|
|
13
|
+
private venmoButtonEl?;
|
|
14
|
+
paypalStarted: EventEmitter<{
|
|
15
|
+
fundingSource: PaypalFundingSource;
|
|
16
|
+
}>;
|
|
17
|
+
paypalCompleted: EventEmitter<{
|
|
18
|
+
success: boolean;
|
|
19
|
+
paymentMethodId?: string;
|
|
20
|
+
fundingSource: PaypalFundingSource;
|
|
21
|
+
}>;
|
|
22
|
+
paypalCancelled: EventEmitter<{
|
|
23
|
+
fundingSource: PaypalFundingSource;
|
|
24
|
+
}>;
|
|
25
|
+
paypalError: EventEmitter<{
|
|
26
|
+
error: string;
|
|
27
|
+
code: string;
|
|
28
|
+
}>;
|
|
29
|
+
componentDidLoad(): void;
|
|
30
|
+
componentDidRender(): void;
|
|
31
|
+
private get currencyCode();
|
|
32
|
+
private get showPaypal();
|
|
33
|
+
private get showVenmo();
|
|
34
|
+
private applyVisibility;
|
|
35
|
+
private emitError;
|
|
36
|
+
private loadPaypalScript;
|
|
37
|
+
private metadataId;
|
|
38
|
+
private initializePaypal;
|
|
39
|
+
private sessionOptions;
|
|
40
|
+
private createOrder;
|
|
41
|
+
private startSession;
|
|
42
|
+
render(): any;
|
|
43
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const PAYPAL_SANDBOX_SCRIPT_URL = "https://www.sandbox.paypal.com/web-sdk/v6/core";
|
|
2
|
+
export declare const PAYPAL_PRODUCTION_SCRIPT_URL = "https://www.paypal.com/web-sdk/v6/core";
|
|
3
|
+
export declare const PAYPAL_SCRIPT_DATA_TEST_ID = "paypal-script";
|
|
4
|
+
export declare const PAYPAL_COMPONENTS: string[];
|
|
5
|
+
export declare const PAYPAL_PAGE_TYPE = "checkout";
|
|
6
|
+
export declare const PAYPAL_DEFAULT_CURRENCY = "USD";
|
|
7
|
+
export declare const PAYPAL_PRESENTATION_MODE = "auto";
|
|
8
|
+
/** Venmo only settles in USD, and the checkout payload carries no country. */
|
|
9
|
+
export declare const VENMO_SUPPORTED_CURRENCY = "USD";
|
|
10
|
+
/** `test` checkouts talk to PayPal's sandbox; everything else goes to production. */
|
|
11
|
+
export declare const paypalScriptUrl: (mode: "test" | "live" | null) => string;
|
|
12
|
+
export declare const PaypalErrorCode: {
|
|
13
|
+
readonly CONFIG_ERROR: "CONFIG_ERROR";
|
|
14
|
+
readonly INITIALIZATION_ERROR: "INITIALIZATION_ERROR";
|
|
15
|
+
readonly ORDER_ERROR: "ORDER_ERROR";
|
|
16
|
+
readonly PAYMENT_FAILED: "PAYMENT_FAILED";
|
|
17
|
+
};
|
|
18
|
+
export type PaypalErrorCodeType = (typeof PaypalErrorCode)[keyof typeof PaypalErrorCode];
|
|
19
|
+
export interface IPaypalSessionOrder {
|
|
20
|
+
orderId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IPaypalSession {
|
|
23
|
+
start: (options: {
|
|
24
|
+
presentationMode: string;
|
|
25
|
+
}, order: Promise<IPaypalSessionOrder>) => Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export interface IPaypalEligibleMethods {
|
|
28
|
+
isEligible: (method: string) => boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IPaypalSdkInstance {
|
|
31
|
+
findEligibleMethods: (args: {
|
|
32
|
+
currencyCode: string;
|
|
33
|
+
}) => Promise<IPaypalEligibleMethods>;
|
|
34
|
+
createPayPalOneTimePaymentSession: (options: object) => IPaypalSession;
|
|
35
|
+
createVenmoOneTimePaymentSession: (options: object) => IPaypalSession;
|
|
36
|
+
}
|
|
37
|
+
export interface IPaypalSdk {
|
|
38
|
+
createInstance: (config: object) => Promise<IPaypalSdkInstance>;
|
|
39
|
+
}
|
|
@@ -22,6 +22,7 @@ import { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
|
22
22
|
import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
23
23
|
import { CheckoutChangedEventDetail, Hook, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
24
24
|
import { CheckoutState } from "./store/checkout.store";
|
|
25
|
+
import { PaypalFundingSource } from "./api/Paypal";
|
|
25
26
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
26
27
|
import { PlaidError } from "./api/Plaid";
|
|
27
28
|
import { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
@@ -44,6 +45,7 @@ export { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
|
44
45
|
export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
45
46
|
export { CheckoutChangedEventDetail, Hook, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
46
47
|
export { CheckoutState } from "./store/checkout.store";
|
|
48
|
+
export { PaypalFundingSource } from "./api/Paypal";
|
|
47
49
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
48
50
|
export { PlaidError } from "./api/Plaid";
|
|
49
51
|
export { PaymentMethodOption } from "./components/checkout/payment-method-option-utils";
|
|
@@ -832,6 +834,8 @@ export namespace Components {
|
|
|
832
834
|
"createdBefore"?: string;
|
|
833
835
|
"status"?: string;
|
|
834
836
|
}
|
|
837
|
+
interface JustifiPaypal {
|
|
838
|
+
}
|
|
835
839
|
interface JustifiPlaidPaymentMethod {
|
|
836
840
|
"deselect": () => Promise<void>;
|
|
837
841
|
"getErrorInfo": () => Promise<PlaidError | null>;
|
|
@@ -1294,6 +1298,10 @@ export interface JustifiPayoutsListCustomEvent<T> extends CustomEvent<T> {
|
|
|
1294
1298
|
detail: T;
|
|
1295
1299
|
target: HTMLJustifiPayoutsListElement;
|
|
1296
1300
|
}
|
|
1301
|
+
export interface JustifiPaypalCustomEvent<T> extends CustomEvent<T> {
|
|
1302
|
+
detail: T;
|
|
1303
|
+
target: HTMLJustifiPaypalElement;
|
|
1304
|
+
}
|
|
1297
1305
|
export interface JustifiPlaidPaymentMethodCustomEvent<T> extends CustomEvent<T> {
|
|
1298
1306
|
detail: T;
|
|
1299
1307
|
target: HTMLJustifiPlaidPaymentMethodElement;
|
|
@@ -2418,6 +2426,34 @@ declare global {
|
|
|
2418
2426
|
prototype: HTMLJustifiPayoutsListFiltersElement;
|
|
2419
2427
|
new (): HTMLJustifiPayoutsListFiltersElement;
|
|
2420
2428
|
};
|
|
2429
|
+
interface HTMLJustifiPaypalElementEventMap {
|
|
2430
|
+
"paypalStarted": {
|
|
2431
|
+
fundingSource: PaypalFundingSource;
|
|
2432
|
+
};
|
|
2433
|
+
"paypalCompleted": {
|
|
2434
|
+
success: boolean;
|
|
2435
|
+
paymentMethodId?: string;
|
|
2436
|
+
fundingSource: PaypalFundingSource;
|
|
2437
|
+
};
|
|
2438
|
+
"paypalCancelled": {
|
|
2439
|
+
fundingSource: PaypalFundingSource;
|
|
2440
|
+
};
|
|
2441
|
+
"paypalError": { error: string; code: string };
|
|
2442
|
+
}
|
|
2443
|
+
interface HTMLJustifiPaypalElement extends Components.JustifiPaypal, HTMLStencilElement {
|
|
2444
|
+
addEventListener<K extends keyof HTMLJustifiPaypalElementEventMap>(type: K, listener: (this: HTMLJustifiPaypalElement, ev: JustifiPaypalCustomEvent<HTMLJustifiPaypalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2445
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2446
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2447
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2448
|
+
removeEventListener<K extends keyof HTMLJustifiPaypalElementEventMap>(type: K, listener: (this: HTMLJustifiPaypalElement, ev: JustifiPaypalCustomEvent<HTMLJustifiPaypalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2449
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2450
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2451
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2452
|
+
}
|
|
2453
|
+
var HTMLJustifiPaypalElement: {
|
|
2454
|
+
prototype: HTMLJustifiPaypalElement;
|
|
2455
|
+
new (): HTMLJustifiPaypalElement;
|
|
2456
|
+
};
|
|
2421
2457
|
interface HTMLJustifiPlaidPaymentMethodElementEventMap {
|
|
2422
2458
|
"paymentMethodOptionSelected": any;
|
|
2423
2459
|
"plaidError": any;
|
|
@@ -2910,6 +2946,7 @@ declare global {
|
|
|
2910
2946
|
"justifi-payout-transactions-list": HTMLJustifiPayoutTransactionsListElement;
|
|
2911
2947
|
"justifi-payouts-list": HTMLJustifiPayoutsListElement;
|
|
2912
2948
|
"justifi-payouts-list-filters": HTMLJustifiPayoutsListFiltersElement;
|
|
2949
|
+
"justifi-paypal": HTMLJustifiPaypalElement;
|
|
2913
2950
|
"justifi-plaid-payment-method": HTMLJustifiPlaidPaymentMethodElement;
|
|
2914
2951
|
"justifi-qr-terminal": HTMLJustifiQrTerminalElement;
|
|
2915
2952
|
"justifi-radio-list-item": HTMLJustifiRadioListItemElement;
|
|
@@ -3791,6 +3828,20 @@ declare namespace LocalJSX {
|
|
|
3791
3828
|
"createdBefore"?: string;
|
|
3792
3829
|
"status"?: string;
|
|
3793
3830
|
}
|
|
3831
|
+
interface JustifiPaypal {
|
|
3832
|
+
"onPaypalCancelled"?: (event: JustifiPaypalCustomEvent<{
|
|
3833
|
+
fundingSource: PaypalFundingSource;
|
|
3834
|
+
}>) => void;
|
|
3835
|
+
"onPaypalCompleted"?: (event: JustifiPaypalCustomEvent<{
|
|
3836
|
+
success: boolean;
|
|
3837
|
+
paymentMethodId?: string;
|
|
3838
|
+
fundingSource: PaypalFundingSource;
|
|
3839
|
+
}>) => void;
|
|
3840
|
+
"onPaypalError"?: (event: JustifiPaypalCustomEvent<{ error: string; code: string }>) => void;
|
|
3841
|
+
"onPaypalStarted"?: (event: JustifiPaypalCustomEvent<{
|
|
3842
|
+
fundingSource: PaypalFundingSource;
|
|
3843
|
+
}>) => void;
|
|
3844
|
+
}
|
|
3794
3845
|
interface JustifiPlaidPaymentMethod {
|
|
3795
3846
|
"onPaymentMethodOptionSelected"?: (event: JustifiPlaidPaymentMethodCustomEvent<any>) => void;
|
|
3796
3847
|
"onPlaidError"?: (event: JustifiPlaidPaymentMethodCustomEvent<any>) => void;
|
|
@@ -4166,6 +4217,7 @@ declare namespace LocalJSX {
|
|
|
4166
4217
|
"justifi-payout-transactions-list": JustifiPayoutTransactionsList;
|
|
4167
4218
|
"justifi-payouts-list": JustifiPayoutsList;
|
|
4168
4219
|
"justifi-payouts-list-filters": JustifiPayoutsListFilters;
|
|
4220
|
+
"justifi-paypal": JustifiPaypal;
|
|
4169
4221
|
"justifi-plaid-payment-method": JustifiPlaidPaymentMethod;
|
|
4170
4222
|
"justifi-qr-terminal": JustifiQrTerminal;
|
|
4171
4223
|
"justifi-radio-list-item": JustifiRadioListItem;
|
|
@@ -4296,6 +4348,7 @@ declare module "@stencil/core" {
|
|
|
4296
4348
|
"justifi-payout-transactions-list": LocalJSX.JustifiPayoutTransactionsList & JSXBase.HTMLAttributes<HTMLJustifiPayoutTransactionsListElement>;
|
|
4297
4349
|
"justifi-payouts-list": LocalJSX.JustifiPayoutsList & JSXBase.HTMLAttributes<HTMLJustifiPayoutsListElement>;
|
|
4298
4350
|
"justifi-payouts-list-filters": LocalJSX.JustifiPayoutsListFilters & JSXBase.HTMLAttributes<HTMLJustifiPayoutsListFiltersElement>;
|
|
4351
|
+
"justifi-paypal": LocalJSX.JustifiPaypal & JSXBase.HTMLAttributes<HTMLJustifiPaypalElement>;
|
|
4299
4352
|
"justifi-plaid-payment-method": LocalJSX.JustifiPlaidPaymentMethod & JSXBase.HTMLAttributes<HTMLJustifiPlaidPaymentMethodElement>;
|
|
4300
4353
|
"justifi-qr-terminal": LocalJSX.JustifiQrTerminal & JSXBase.HTMLAttributes<HTMLJustifiQrTerminalElement>;
|
|
4301
4354
|
"justifi-radio-list-item": LocalJSX.JustifiRadioListItem & JSXBase.HTMLAttributes<HTMLJustifiRadioListItemElement>;
|
|
@@ -9,6 +9,8 @@ interface IInitialState {
|
|
|
9
9
|
isWalletProcessing: boolean;
|
|
10
10
|
applePayEnabled: boolean;
|
|
11
11
|
googlePayEnabled: boolean;
|
|
12
|
+
paypalEnabled: boolean;
|
|
13
|
+
paypalProviderClientId: string;
|
|
12
14
|
achPaymentsEnabled: boolean;
|
|
13
15
|
insuranceEnabled: boolean;
|
|
14
16
|
bnplProviderApiVersion: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PAYMENT_METHODS}from"./p-
|
|
1
|
+
export{P as PAYMENT_METHODS}from"./p-DEx8fQeW.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,H as s,g as i}from"./p-CV0Pyo1O.js";import{a3 as r,v as
|
|
1
|
+
import{r as e,c as t,h as a,H as s,g as i}from"./p-CV0Pyo1O.js";import{a3 as r,v as d,q as l,w as o,x as c,u as n,a0 as f}from"./p-Bu7gdOaV.js";import{F as h}from"./p-BTuqVZ6O.js";import{F as b}from"./p-CLZcevBz.js";import"./p-CZfYo5-1.js";import{I as m,P as u}from"./p-CVaOFfrI.js";import{u as p,a as y,b as k}from"./p-DNuxxP2B.js";import{C as v}from"./p-DaDqgDrb.js";import{c as x}from"./p-CawcnSoV.js";import{b as V}from"./p-OReJ-ZQb.js";const g=class{constructor(a){e(this,a),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.isFocused=!1,this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.updateInput=e=>{const t=this.el.querySelector("input");t&&(t.value=e||"")}}handleDefaultValueChange(e){this.updateInput(e)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?d:this.errorText?l:o}render(){return a(s,{key:"e21694c1c7611df6ede999aa75fece02977f66f3"},a("div",{key:"8ea4a38832865e82ffeebcceaabc704d10403966",class:"form-group d-flex flex-column"},a("label",{key:"396ab2f79a7168080538ae46da735506b0797311",part:c,class:"form-label",htmlFor:this.name},this.label),a("input",{key:"715cb6bfbf439fdd4f659e6d21091b047cbca94d",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),a(h,{key:"f8695d85c9b447644b5bdf02d4df9e1c1e3e5da7",helpText:this.helpText,name:this.name}),a(b,{key:"e736f720d89f5d5aeee6982cb15ea11f63c5dd93",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},C=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{y(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,t,s;return a("div",{key:"6f4bb241699db7c16cb99016363cbbc1a4484a4a",class:"row gy-3"},a("div",{key:"fc0317736a62ac34f98f2b7a43a5073d785dfa0d",class:"col-12 col-md-8"},a("form-control-text",{key:"8123035dfd371841e0830d0019c425d25977c160",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"a16e9ecc81fd4965d3a42b2569a7ea0615ecbf97",class:"col-12 col-md-4"},a("form-control-select",{key:"bd9b0ee5c7cf45ac3d67da96f951f167c93033e0",name:"title",label:"Title",options:V,defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"5376a38a98ad715a3159ccf4e8c8e54b48fa1c7c",class:"col-12 col-md-6"},a("form-control-text",{key:"7d08e58ae5fc15d5299c8646d5260602a51b9fbf",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"6f80f898cb354b40d8d6784110abd5a1c49ff9d9",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"8a7d577c4c1c5b54f733ee51a1970c17de27d0b0",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:u.US})),a("div",{key:"5ace697b3fb38b52dca74ccd49207498b779ade8",class:"col-12 col-md-3"},a("form-control-date",{key:"ec8d614b62fe2913c52fd228e7df1fef1b1d7d83",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>k(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"8fad1824571295e3464d26191eb23d373591e47d",class:"col-12 col-md-3"},a("form-control-number",{key:"c0ffdbf26ea5d65de8c3e98c2cd7d03430d4a8c2",name:"ownership_percentage",label:"% of Ownership",defaultValue:null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ownership_percentage,errorText:this.errors.ownership_percentage,inputHandler:this.inputHandler})),a("div",{key:"94d93a03f2513bb69da43bd68c3fddc62dbc18d6",class:"col-12 col-md-6"},!(null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ssn_last4)||this.isEditingIdentification?a("form-control-number-masked",{name:"identification_number",label:this.country===v.CAN?x[this.country].idNumberLabelOptional:x[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:m[this.country],helpText:x[this.country].identityHelpText}):a("div",null,a("label",{class:"form-label",part:c},this.country===v.CAN?x[this.country].idNumberLabelOptional:x[this.country].idNumberLabel),a("div",{class:"input-group mb-3"},a("input",{type:"text",class:"form-control",part:n,value:`****${null===(s=this.ownerDefaultValue)||void 0===s?void 0:s.ssn_last4}`,disabled:!0}),a("button",{class:"btn btn-secondary",type:"button",part:f,onClick:()=>{this.isEditingIdentification=!0,p(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),a("div",{key:"63d73015c84a1ab370b6686a643797b92096212f",class:"col-12"},a("identity-address-form",{key:"4eff1f856b32e6d31cc18315b5b338c932723cf9",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{g as form_control_number,C as owner_form_inputs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as a,H as e}from"./p-CV0Pyo1O.js";import{w as i,x as c,q as r,u as o,v as h}from"./p-Bu7gdOaV.js";import{F as l}from"./p-CLZcevBz.js";import"./p-CZfYo5-1.js";const d=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const s=t.target.value;this.inputHandler(this.name,s),this.formControlInput.emit({name:this.name,value:s})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=r),this.disabled&&(t=o),this.isFocused&&(t=h),t}render(){return a(e,{key:"f13cdd01d9c9c182cac6775b8c425c6b8c6a28a4"},a("div",{key:"7c384c55489845aaa4c43f15b9a8a1cba78336f0",class:"form-group d-flex flex-column"},a("div",{key:"49537b1c0411dc5af79c8029e31f7ee81c024b3b",class:"d-flex gap-2"},a("label",{key:"a628a20b2a2ad6c0793e8dbdcc1b4d7cd2903426",part:c,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"e093066be7c17c3cc0d36a552f2c96b878b84add",helpText:this.helpText})),a("input",{key:"f2f1e4cd80dd57391fb661199473a30c2f564e84",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),a(l,{key:"ce8212d07db5141ffdef577153a945f11f7ab368",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_date}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{w as o,x as h,q as r,u as c,v as l}from"./p-Bu7gdOaV.js";import{F as f}from"./p-CLZcevBz.js";import"./p-CZfYo5-1.js";const n=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=r),this.disabled&&(t=c),this.isFocused&&(t=l),t}render(){var t;return s(a,{key:"1bf4b5a98883ea56ee00cc10c8e665c5816322f9"},s("div",{key:"9c36f16f9fad894ffe4ae9e665fae50839fbac58",class:"form-group d-flex flex-column"},s("div",{key:"f81841ffb7bf19c6460a087cec95617aa3a983a2",class:"d-flex align-items-start gap-2"},s("label",{key:"d17ae46135877411c2aa15b5a2390c31ca791955",part:h,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"2e0c07c7f0421547271c18fa1919e97b1735a6ba",helpText:this.helpText})),s("select",{key:"5c68fb7f1ae8c55b3c52730286f2b33391b619cc",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>s("option",{value:t.value},t.label)))),s(f,{key:"43c4397970628eabb1554d9352808566aa219a7a",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?r:this.disabled?c:this.isFocused?l:o}render(){return s(a,{key:"0a275b26c5e6604a478bd4618f8955264205b4f8"},s("div",{key:"c495cf0113cfd1ddd6a4d586dfb96d67ec7e92f1",class:"form-group d-flex flex-column"},s("div",{key:"6a97e6086faaf4b43c41da9615568f359760343c",class:"d-flex align-items-start gap-2"},s("label",{key:"39c1d7b7d281874a81125374e7a351783de14207",part:h,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"646caf4cd154574488610f47a593a8fbfff0778f",helpText:this.helpText})),s("input",{key:"540637afeb21d3da93c304710568a0ed8ad99dc4",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),s(f,{key:"1a8246dbf9908c7e56ae2cc0cbea65934c3a33ce",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{n as form_control_select,d as form_control_text}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-CV0Pyo1O.js";import{B as i}from"./p-CU2Dwa94.js";import"./p-Bu7gdOaV.js";const r=class{constructor(s){t(this,s),this.variant="primary",this.type="button"}render(){return s(i,{key:"
|
|
1
|
+
import{r as t,h as s}from"./p-CV0Pyo1O.js";import{B as i}from"./p-CU2Dwa94.js";import"./p-Bu7gdOaV.js";const r=class{constructor(s){t(this,s),this.variant="primary",this.type="button"}render(){return s(i,{key:"4048996761c978279f2aefbb43bbbb249fe445d9",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle,hidden:this.hidden},this.text)}};export{r as internal_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-CV0Pyo1O.js";import{w as o,x as r,q as h,u as f,v as c}from"./p-Bu7gdOaV.js";import{F as l}from"./p-CLZcevBz.js";import"./p-CZfYo5-1.js";const n=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.fileSelected=s(this,"fileSelected",7),this.isFocused=!1,this.errorText="",this.inputHandler=()=>{},this.disabled=!1,this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit({name:i,value:s.value})},this.changeHandler=()=>{const t=this.fileInput.files;t&&this.fileSelected.emit({fileList:t,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let t=o;return this.errorText&&(t=h),this.disabled&&(t=f),this.isFocused&&(t=c),t}render(){return i(e,{key:"9ea17017850bd5e83a213b5247af2fe64f11db6c"},i("div",{key:"6cb7715a542d193a1ef1579dad6889fb0191e195",class:"form-group d-flex flex-column"},i("div",{key:"c643268b004611f98b4d24c341a46d0bce9a8944",class:"d-flex align-items-start gap-2"},i("label",{key:"3541f24060c2279f0cfb604f7bdec355462196a8",part:r,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"66f62e7d0ab51765fefc92d8674402a439671792",helpText:this.helpText})),i("input",{key:"564819ed2423c923f16329dc4ccb7a96f50e7ddd",ref:t=>this.fileInput=t,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),i(l,{key:"2bbc1831fa7aaf773c24860ac47a8318b2eef93d",errorText:this.errorText,name:this.name})))}get el(){return a(this)}};export{n as form_control_file}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import{c as s,a as i}from"./p-Ds_P-dB8.js";import{f as r,p as d,c as l}from"./p-BzjgvHHT.js";import{f as c,a as b}from"./p-Bu7gdOaV.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-B4vLfYnZ.js";import{g as f}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-DgTOxu8x.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{r[e]=a},this.handleDateInput=(e,a)=>{const t=s(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId,provider_id:this.providerId,serial_number:this.serialNumber,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:f.connected},{label:"Disconnected",value:f.disconnected},{label:"Unknown",value:f.unknown},{label:"Pending Configuration",value:f.pending_configuration},{label:"Archived",value:f.archived}]}render(){const e=Object.assign({},r);return a(o,{key:"a74ed2422b669401402664c77542412f3763ba76"},a("table-filters-menu",{key:"9158ca6884cb610dc712fb1b3a69ca6803a7dce7",params:e,clearParams:l,part:c},a("div",{key:"e24cfc9c7f078f9eb7d5f1f5b4d5cef8374378ce",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"cce1419064f7e7cdc687437416327f7daebe5eae",class:"p-2"},a("form-control-text",{key:"750c30bc7e281f40646bdfaf0a29393d0ce7f72b",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||r.terminal_id,disabled:!!this.terminalId,part:b})),a("div",{key:"512ccc43edb3aab2ec6ab7d9c76bebf6369df73d",class:"p-2"},a("form-control-text",{key:"6320c75ecd89ad00162c764998c1c703a5965787",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||r.terminal_order_id,disabled:!!this.terminalOrderId,part:b})),a("div",{key:"6f0d58b200a36516ede61609aad03ca191f240c2",class:"p-2"},a("form-control-text",{key:"f786e9fbbd7c9604429c5f43935121245f2943d2",name:"provider_id",label:"Device ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.providerId||r.provider_id,disabled:!!this.providerId,part:b})),a("div",{key:"b4d84761c2f5de192669012acc41bb5ba2b76750",class:"p-2"},a("form-control-text",{key:"deb1c3b5cc3b72b2724a296b1024f8f66ae69683",name:"serial_number",label:"Serial Number",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.serialNumber||r.serial_number,disabled:!!this.serialNumber,part:b})),a("div",{key:"b90c15ba9fa6bbe5eac425152753d1cb508b1710",class:"p-2"},a("form-control-select",{key:"beb78ebcd076b7b26a0cb5115ae9b619584fc307",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||r.status||"",disabled:!!this.terminalStatus,part:b})),a("div",{key:"e6109b7758b998d41d2ff555bf26ee9de1011c94",class:"p-2"},a("form-control-date",{key:"e407111678baea094666e8789175ce15d40c2ee8",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter||r.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"edc59eb19b58592803ffba665adae26d34fdfe0c",class:"p-2"},a("form-control-date",{key:"21c995d7eef08082ca7996eaf9286aeaa80fd2e9",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore||r.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{n as justifi_terminals_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t}from"./p-
|
|
1
|
+
import{A as t}from"./p-vIQBTQmc.js";import"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";const e=t();class o{async fetchCheckout(t,o){return e.get({endpoint:`checkouts/${o}`,authToken:t})}async fetchCheckouts(t,o,c){return e.get({endpoint:"checkouts",params:c,headers:{Account:t},authToken:o})}async complete(t,o,c){const n=`checkouts/${o}/complete`,s={payment_mode:c.payment_mode};return c.payment_token&&(s.payment_token=c.payment_token),e.post({endpoint:n,body:s,authToken:t})}}export{o as C}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as r}from"./p-CV0Pyo1O.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";const s=class{constructor(r){i(this,r)}async getValues(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.getValues())&&void 0!==r?r:{}}async validate(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.validate())&&void 0!==r?r:{isValid:!1,errors:{}}}render(){return r(o,{key:"
|
|
1
|
+
import{r as i,h as r}from"./p-CV0Pyo1O.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";const s=class{constructor(r){i(this,r)}async getValues(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.getValues())&&void 0!==r?r:{}}async validate(){var i,r;return null!==(r=null===(i=this.billingFormRef)||void 0===i?void 0:i.validate())&&void 0!==r?r:{isValid:!1,errors:{}}}render(){return r(o,{key:"5f845819a98bb3f9c477d39447c342dbc568f541"},r("billing-form",{key:"992fb4ea8df4767d7359b73250581b8b1e5c83ad",legend:this.legend,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:this.paymentMethodType,ref:i=>this.billingFormRef=i}))}};export{s as justifi_billing_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as e}from"./p-CV0Pyo1O.js";import{S as t}from"./p-05AWudQe.js";import{S as r}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";const i=class{constructor(e){s(this,e)}render(){return e(t,{key:"
|
|
1
|
+
import{r as s,h as e}from"./p-CV0Pyo1O.js";import{S as t}from"./p-05AWudQe.js";import{S as r}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";const i=class{constructor(e){s(this,e)}render(){return e(t,{key:"aae82594ed1833982d7bb06ea0808e56e06b11f8"},e(r,{key:"52c5680b1dc298b75646e5409b9c5c5b83f53eae",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{i as justifi_skeleton}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as i}from"./p-CV0Pyo1O.js";import{S as e}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";const s=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(e,{key:"
|
|
1
|
+
import{r,h as i}from"./p-CV0Pyo1O.js";import{S as e}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";const s=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.cardBillingFormSimpleRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(e,{key:"252d0c30a2ce3775759aa0490592bea6608620ca"},i("card-billing-form-simple",{key:"62a33d79b9b12dfefbfef68f0cf9ec8beb52d177",legend:this.legend,ref:r=>this.cardBillingFormSimpleRef=r}))}};export{s as justifi_card_billing_form_simple}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import"./p-B4vLfYnZ.js";import{c as s,a as d}from"./p-Ds_P-dB8.js";import{I as l,a as i}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{f as r,p as c,c as o}from"./p-CArdj6i_.js";import{f as p,a as b}from"./p-Bu7gdOaV.js";import{S as f}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{r[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,successful_payment_id:this.successfulPaymentId,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(c[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:l.created},{label:"Completed",value:l.completed},{label:"Attempted",value:l.attempted},{label:"Expired",value:l.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({},r);return a(f,{key:"175f4d80e539b956be529d9e0e7bd94dd00aef32"},a("table-filters-menu",{key:"4d8acfb715b038948bce514d501b567be0e3d15d",params:e,clearParams:o,part:p},a("div",{key:"062bc3404f5985a84bf716976b617f9816012d0c",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"77d933a6d6b78350295b8169aa252157188625fa",class:"p-2"},a("form-control-text",{key:"d5193421fd54a05069d2c93b2d9702fe614a5b12",name:"checkout_id",label:"Checkout ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.checkoutId||r.checkout_id,disabled:!!this.checkoutId,part:b})),a("div",{key:"964eb355ce3c7d089d832aac9909d81d12a13001",class:"p-2"},a("form-control-text",{key:"5942e0937e04b6957efed9eabc770f28665669f6",name:"successful_payment_id",label:"Successful Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.successfulPaymentId||r.successful_payment_id,disabled:!!this.successfulPaymentId,part:b})),a("div",{key:"35a093a384d2c386cbfc117714409ee3e262bc72",class:"p-2"},a("form-control-select",{key:"7bdbb5d2f9e3a1b82ff9f5245767992308d8ba7d",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||r.status||"",disabled:!!this.checkoutStatus,part:b})),a("div",{key:"59de4b040ac72aa2f26ea52c729125de23c561cd",class:"p-2"},a("form-control-select",{key:"c6f202c97e0dce53b11da79369659de1f01aa4e7",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||r.payment_mode||"",disabled:!!this.paymentMode,part:b})),a("div",{key:"63094ad30d30ede904b82b40b4223b466258b43b",class:"p-2"},a("form-control-date",{key:"dc8a121917086233970feff405edfab4a5a84794",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:d(this.createdAfter,{showInputDateTime:!0})||d(r.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:b})),a("div",{key:"fa9eefce1d398a0be634a03a72ce98f28ecac696",class:"p-2"},a("form-control-date",{key:"9b07c3693396a1bf47d996fa83d1902188cf78cb",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:d(this.createdBefore,{showInputDateTime:!0})||d(r.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{u as justifi_checkouts_list_filters}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as a,h as t}from"./p-CV0Pyo1O.js";import{B as s,C as c,D as i}from"./p-Bu7gdOaV.js";const d=class{constructor(t){e(this,t),this.selectedQuantityChange=a(this,"selectedQuantityChange",7),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return t("div",{key:"63237aed2228e101ed2a882e4993865afa886a09",class:"rounded shadow-sm card p-2",part:i},t("div",{key:"5dccc2e66eb1555f5d60a5c9b0e4250ff003194f",class:"d-flex gap-3"},t("div",{key:"6da3cf0ddc09d0a80969f4a109320190c9ec26a4",class:"d-flex align-items-center"},t("img",{key:"900fbef983071b6838dc62ef62aeecc7a83c22fc",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:s})),t("div",{key:"9c2f602f486233d1749faaadaa5c5c4a46e2e86b",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},t("div",{key:"b2f2a90050ad90240c249a62b5dfb353c4a9d6f3",class:"row"},t("div",{key:"816a91666b31568fb7a26e2d34c2894c79d67303",class:"col-6 d-flex gap-2"},this.modelName,t("form-control-tooltip",{key:"48e67406ec6cb6095a5bf0216595800172bd01b7",helpText:this.description})),t("div",{key:"eb8b820f364f724f3deef236c7d0f16a6afa0e10",class:"col-6 d-flex justify-content-end align-items-center"},t("button",{key:"fc01f21c067d963c61b2aeb4ee29b172dec7ab54",class:"p-0 minus btn",onClick:this.removeUnit,part:c},"-"),t("div",{key:"bc61bbe36b0031ba78bfc5789a8359f3848afbca",class:"w-25 text-center"},this.selectedQuantity),t("button",{key:"30061e988706cb075066ebf7876dab5a65d855dd",class:"p-0 plus btn",onClick:this.addUnit,part:c},"+"))))))}};export{d as terminal_quantity_selector}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as s,h as t,H as e}from"./p-CV0Pyo1O.js";import{r as c}from"./p-Bu7gdOaV.js";const a=class{constructor(t){i(this,t),this.radioClick=s(this,"radio-click",7),this.checked=!1,this.hidden=!1,this.handleClick=()=>{this.radioClick.emit(this.value)}}render(){return t(e,{key:"254375c6a1fd52924a84392bfd36d21ac60e4c0b"},t("div",{key:"df0f6abdeb91cbbe3c1b7e91f42cd7950379d8bf",class:`radio-list-item p-3 ${this.class||""}`,part:c,onClick:this.handleClick,hidden:this.hidden},t("form-control-radio",{key:"4c7e8e499b76bc83e83504b0cf22785fe2fdf6ec",name:this.name,value:this.value,checked:this.checked,label:this.label,inputHandler:()=>null})))}};export{a as radio_list_item}
|
|
@@ -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-D9sqTVmd.js";import{a9 as d}from"./p-Bu7gdOaV.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:"705936da10f418086c5757af0de3e53ab10716e0"},a("div",{key:"56606aa326884a0e4417259a47739d867c2adfd7",class:"row gy-3"},a("div",{key:"77d1e0eac15050e686f603dee1ca43f55373129f",class:"col-12"},a("h2",{key:"7ded76e33d6190d0bf38c04ae1be16d3fbe90ee6",class:"h5",part:d},"Additional Evidence")),a("div",{key:"62ac6a05b02dd2572faf39c1676300d01e72b953",class:"col-12"},a("form-control-textarea",{key:"04aecc2015fea1ecf1e8a4dc5c17ae126040eaba",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:"f483f7187b15facbc60411659aee39b59f5046eb",class:"col-12"},a("form-control-file-v2",{key:"7d11206b29a51d5ad493488f8446fcf1254ed411",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:"97168f1e084510db91708b5f769d680506e48378"},a("div",{key:"fed6ca9c4aa195adbbc702957f94ce13be6d12ea",class:"row gy-3"},a("div",{key:"6ac7b963019a8b83e3068940a3219338e5603f20",class:"col-12"},a("h2",{key:"0a9a79bfc840aa2190eb48b7860db7eab1e94d6b",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"662b83a4b580d8f2621a6475fa693314a1459d77",class:"col-12"},a("form-control-textarea",{key:"5c1edfe81316fa0da00ed80ad448e4165eff4445",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:"36c6f8408c1975ba23bb41cd44c8442a3c5ef952",class:"col-12"},a("form-control-textarea",{key:"570795ddd085ea26d8456908efe0651793f4490a",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:"4cb3da1f399fb639e08474d6ec6d82071d31968f",class:"col-12"},a("form-control-file-v2",{key:"701338b09a213b850347a4204d2b0c536406afd3",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:"e4f028d0369b88c270aa610ab457921ee729f1cb"},a("div",{key:"ba4d130e343603baa3c1b3d8141b981f97cb7133",class:"row gy-3"},a("div",{key:"a21d574e6fbd3daef4960b39aba9568060a79ebd",class:"col-12"},a("h2",{key:"a87274deacfdb31ae769252f7418416152528d43",class:"h5",part:d},"Customer Details")),a("div",{key:"2aa05a739cc38a95860b255dab7142fd1a7932d3",class:"col-12"},a("form-control-text",{key:"b4fa7ef3c75d3c2ddc83292c2a13c80ee2a6a4cf",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:"b8a6851094599ed3683f3c14f18305ff0a8ed557",class:"col-12"},a("form-control-text",{key:"4c8d73b3001a36502c6e6083eafdc8e06af86d23",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:"45d406392c4ba199d77583f18874797f4b7c125e",class:"col-12"},a("form-control-textarea",{key:"757de489531e8e28beb052403842d191e2a45be1",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:"3e339e0f275e1ab8e195d77973b60af364d5cdc6",class:"col-12"},a("form-control-file-v2",{key:"64175687470e62ce55d62163b8d231c481fce2a6",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:"27d1ac884a8986c8e9a23c92296e2f8871ec0f45",class:"col-12"},a("form-control-file-v2",{key:"f7169172d91f4ea785d1532bb4a442cba8cc1c9e",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:"a4be51ca28d0558a06a96429c9f6967de65f7687"},a("div",{key:"e240189e3a8d31963667e6779a9497ab8258f983",class:"row gy-3"},a("div",{key:"c22af27a5e94810c4daa4105d30b69a9bac3ea84",class:"col-12"},a("h2",{key:"6b09237bb4a404c03a20f1dd3687b1b2b6c02f72",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"91cca8f6bfe938aad35d57f1360cea9c8a46b89b",class:"col-12"},a("form-control-text",{key:"88cd9fad95f55f1302cf8b638eee372279c0b601",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:"930ddf5ae0d1f22e87f40d422cc7cc3cf202cf78",class:"col-12"},a("form-control-textarea",{key:"ab6764a1f982f6be6dd0fc94d5f6630b54fca654",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:"8ca0a2a0b69d577022bd82d7f04fe8205ee66e7f",class:"col-12"},a("form-control-file-v2",{key:"9a5e4ac52a949a8a7b4bcabd397f8b38edbff159",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:"edbcd0fd94da7a6fb25403bca804133cd20be070"},a("div",{key:"82263da6e6a92b478366025bf648fce4f3f91db6",class:"row gy-3"},a("div",{key:"f6435773410b5561ead0e4a20637a57b785b8c50",class:"col-12"},a("h2",{key:"c911fb7238d292f9d11627e13729cf613192cb13",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"ae43f664aa254449df9cf2c6e851e2e9c532c90e",class:"col-12"},a("form-control-text",{key:"a7781046a1ef45514831affa9c650b7849100817",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:"47ba5795dde01a4d62fbdeae9e5b7b29cd538cc5",class:"col-12"},a("form-control-file-v2",{key:"a44528a479ec5fa2d60e357aa577b1a44f81a074",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:"05c536ee29807808dde18056696f0874d58efbe9"},a("div",{key:"07927d573fff06c4b65330a4cfb493f594e362d4",class:"row gy-3"},a("div",{key:"c38ab76b089b7b66aad0dd89dbc74b2a3fedddda",class:"col-12"},a("h2",{key:"830d1384bc17af43bcd20145eab870ca293d965d",class:"h5",part:d},"Product & Service Details")),a("div",{key:"6b5fb4827719e7dd29a90935ec5afd540c1c81fd",class:"col-12"},a("form-control-text",{key:"0fed87fcbb554a739285431f6256f8b8d7802b9a",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:"8a59d2bb505dd211126d6e4a6e741aaed959edc7",class:"col-12"},a("form-control-date",{key:"ffa4f5323aaa7c274950f2176774a4f7946c4ca4",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:"c9e7aca6c2e9c66ec0884b34533af18a1c581b4d",class:"col-12"},a("form-control-file-v2",{key:"8db8543f45b02496d2cc6f04794c18da55f4c146",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:"baf5ee051fb023d19f3d0c21d4a7ee651e283c76"},a("div",{key:"c8e4870b875bff53184b90e2d254acdee795e51c",class:"row gy-3"},a("div",{key:"872d7f45c1b5832234d013a3f7065d05f9896d80",class:"col-12"},a("h2",{key:"7ae62cf2f5ab51537349b91db8fa9d2fa351e685",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"48a8249261d3bcf981e45dba6aaf260c4419816e",class:"col-12"},a("form-control-textarea",{key:"31b6c4b3ffadc1fe812a00fb5e4d40de423b635e",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:"f5504c3367bc74127dec92d95d0934a9bbb00b29",class:"col-12"},a("form-control-textarea",{key:"9fe085d5435561251b3192169904438f0b6501e6",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:"ae8110175bfd1880b62e41fc1b474f31a9523cfb",class:"col-12"},a("form-control-file-v2",{key:"ba38271cac7afd52ba6669086d664cec2e008f77",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:"31ff66405fdae65e1b441b847a0e5f048822e0fc",class:"col-12"},a("form-control-file-v2",{key:"a36cb88846ba11690a4525ffbb27c0b4fb2140af",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:"079899510230700b1b0164642856719267e0dc09"},a("div",{key:"23229775a0a57e60cd6de4ceff1bcb60d2502283",class:"row gy-3"},a("div",{key:"9376fd2dfe64983f734f93354c08a38cbe6d46d4",class:"col-12"},a("h2",{key:"141a2e2a5098388d15e4626a4311a0d95991af3b",class:"h5",part:d},"Shipping Details")),a("div",{key:"c1eae745411ea51d07839c84abce48742cf8e31b",class:"col-12"},a("form-control-text",{key:"37ffbdb5be2e0bcffcc78b19ce5a125fd3a7cbd5",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:"27f39470af011e3cbae85e35e56c544a331c1241",class:"col-12"},a("form-control-text",{key:"dda7d915ab28bb2845cbfd1338222b1c50aab063",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:"bbf1cff1e23632597fad5c84b4c6ceb8080be547",class:"col-12"},a("form-control-date",{key:"8a0bc94d48e7ccde53408ad6a3f20ffcfe7a6263",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:"55e9efd42f6380c0bb645de90dde4eb63ce80a5d",class:"col-12"},a("form-control-textarea",{key:"0dac6c8521bec728b7dd182841552b72f38dbbec",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:"488034d64bc2808d27b9a072515cb84593e72db9",class:"col-12"},a("form-control-file-v2",{key:"609b0177ed8279fe483f5b4e59ee076b4b471ee7",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 additional_statement,h as cancellation_policy,v as customer_details,m as duplicate_charge,_ as electronic_evidence,g as product_or_service,j as refund_policy,T as 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-D9sqTVmd.js";import{a9 as d}from"./p-Bu7gdOaV.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:"d87892b31a560cf5089bb8b94403deda25c75132"},a("div",{key:"a083b417adafd62cd32827014eb8566c8d8e431e",class:"row gy-3"},a("div",{key:"832973d1fd655582b7371dcb0906b5fed9d77727",class:"col-12"},a("h2",{key:"339e84637eb3e2080bc08c06379b436ed66cdbf3",class:"h5",part:d},"Additional Evidence")),a("div",{key:"a8228b7e9d8fd51f491f279975ba380a0f6f6029",class:"col-12"},a("form-control-textarea",{key:"966cd51de65c862e9371f2e013f9f666da5f049a",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:"3c21b60e1da1d208c16b4e4003242660f28f42e5",class:"col-12"},a("form-control-file-v2",{key:"f767738c5ebf8a63d403d48e971042aabdf91224",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:"b2b9de71bee44157e6f62cab9a759ca3a6fc7c91"},a("div",{key:"b54a10355e8b0dd0da69e9c07abaf4376f759f4b",class:"row gy-3"},a("div",{key:"ed43e475ed87fa9658060f403187a063bec1813c",class:"col-12"},a("h2",{key:"48e9d7955c066771d8c47b55abf4fc2498bcc11a",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"783da1c2a786ee85f412303583a778dd81331e8a",class:"col-12"},a("form-control-textarea",{key:"04267a5b01060f577eb88810c83013e6cb2bc437",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:"340db58f52fa708a40a1548b84411174f1b7ca85",class:"col-12"},a("form-control-textarea",{key:"a8dafe6142a2ce7409d7d7dd60637e819bb99b9e",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:"7ff48beda50edb31c80d0bbe5fe7948ce214a493",class:"col-12"},a("form-control-file-v2",{key:"2f3780f2036026f49db380d5201fc6a46d4b15c6",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:"4217dd2605586a82ee34515e6c9b5a3ab6358b55"},a("div",{key:"42eb8a48d1161d329bddf574c863c92376a4bbc9",class:"row gy-3"},a("div",{key:"4d8d1267035ed1e81e6050d7e648ff80d369365d",class:"col-12"},a("h2",{key:"923c89d2959dd09fdbb60cfbca0d0021697dc5b8",class:"h5",part:d},"Customer Details")),a("div",{key:"5b3daa86ad6ce05babf3efd0c3c4f3a3264b4c6c",class:"col-12"},a("form-control-text",{key:"bd6eae36d75ec77e8d652686f2f070bbead4e385",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:"3f8f8ff8fcb8a8e41053e3f9b55152296cb91d3e",class:"col-12"},a("form-control-text",{key:"ddf390a5e37e99b8f99b7673b6b07f3851a759f4",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:"eed293a2acc46219bd33974f93affb3ca977fc57",class:"col-12"},a("form-control-textarea",{key:"4f5e5b9cfc9aefe48c2c85bba3a3a308215c36b9",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:"0ccfa871557435a96350e8ace59179611c01dc2c",class:"col-12"},a("form-control-file-v2",{key:"e9d35062a5011f4e72d60e85855efb0d7ceed8c1",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:"cb184b84ccc36bd51242dcb57c96ba2d85567e4a",class:"col-12"},a("form-control-file-v2",{key:"b7d1d427468cd0744001102e2c704e8ad65577b6",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:"805b160927f30729b321ffbafc15fe78fed732c9"},a("div",{key:"fcc99471b08ea21905c1246849ec41e05194834f",class:"row gy-3"},a("div",{key:"f7259723ec39b5ae09aaa552a99f3a8a15b85fd8",class:"col-12"},a("h2",{key:"5f0719c624bce5542364120568079fb6921c7d6f",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"718c50ebae8b6ca9c146d81f261dad5007945a33",class:"col-12"},a("form-control-text",{key:"090a5f0e4ca359af300f655ad94296af1a28eef0",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:"217b8e9b896412a1e74d138c20d6cc42760e7a54",class:"col-12"},a("form-control-textarea",{key:"d9ba9a25ccaa5848f17ec8f1dfde222c29624e06",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:"eb26362fb100e775339b4a64959521a1b7cad394",class:"col-12"},a("form-control-file-v2",{key:"5753787dd59e736a7a2dea84268d93983cfdeae4",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:"1de8dc7fafbd3dba15344a817fd2c008929ab0bc"},a("div",{key:"dda3c4b88713e0e1b9fe25c2a4fe2d015889f2b3",class:"row gy-3"},a("div",{key:"1638ff98ca047509306f9387e68ba83c9be5c885",class:"col-12"},a("h2",{key:"9ee705b8558a88bd4eebe2448e2da655fbcf9bf3",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"71a392aa19784a1e25654791544fab6e9fd482a6",class:"col-12"},a("form-control-text",{key:"b2ef47161c0c73f010461f326f39f60efb140ae8",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:"0341ecbd1404b29e223d508e937752ed67a5f9e2",class:"col-12"},a("form-control-file-v2",{key:"00d8fd3c9bfded6f20ae8568aca1fd21564649df",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:"3f2d1c2f4b0595e922712f8754ae1022b2d19261"},a("div",{key:"0ab14085510225a4d00b352014ea72f4dc0a059a",class:"row gy-3"},a("div",{key:"12271b714bf3e6b6756274674e3413018124fa4c",class:"col-12"},a("h2",{key:"9b6175bf1eb88788b909be3f7a46337a75856306",class:"h5",part:d},"Product & Service Details")),a("div",{key:"912e647000393b9146329e7d4cca78ee15837621",class:"col-12"},a("form-control-text",{key:"7b365315a58fdfa65fa7e1e6f009dc5c70c17d95",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:"03d48b21fb83a4a4b07ed6f0f7b6f08a32c10ce5",class:"col-12"},a("form-control-date",{key:"fbd7c448acc69aa0012999f90d3b38f9374af933",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:"74683fc2825cffa9403313b21d52a4ddb76db12e",class:"col-12"},a("form-control-file-v2",{key:"7d3e5f2f96375d884a98e207c22d2b3115ed6e1b",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:"828ac1997382fa491920b9439099959ae5376c81"},a("div",{key:"8d0453e4c2ec424a2010cfd01885cb4a03020d93",class:"row gy-3"},a("div",{key:"d15021ea6df4b3939d4564a84951ebadb50cc7cd",class:"col-12"},a("h2",{key:"632eafab4924af0d433f28a3329877b98376ea27",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"cb55f0f106e68e9af4057a4496811db991f487d0",class:"col-12"},a("form-control-textarea",{key:"1fdca1aea95757a0dac55b338355eeffd351c6cb",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:"6f6c35c4626a764e4119dc253aded2985ac6ffbc",class:"col-12"},a("form-control-textarea",{key:"6c0fcba48cad9f8c3cc9ed6c35d6b0e1301f9c35",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:"1bf52c92c53313ab7542bfc1b2ed607e9d5db032",class:"col-12"},a("form-control-file-v2",{key:"67b266e26d5568e3370b3f8aaad2c0d6450f67f6",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:"8994ee85c8a31fc709a0fa396d97e4da576e57c3",class:"col-12"},a("form-control-file-v2",{key:"c468b92349b6a92f02b6eef0dc06c71dfc924c4e",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:"0d7695711048ad14596ba44e364b45e3aa3d1e39"},a("div",{key:"e6911e35f66ef8aaa591f54e389d67c202af8172",class:"row gy-3"},a("div",{key:"d59ab2fe6318a27c4b38650e4e9d07b9c851041f",class:"col-12"},a("h2",{key:"b8a8634fe9dcf11c332dab0c1736732e579aeb59",class:"h5",part:d},"Shipping Details")),a("div",{key:"5170b37a386805e194d8cf7c769ffdbac8db8fa2",class:"col-12"},a("form-control-text",{key:"7bc3f59737fa075134e2bc476fa26d79ddc4e26b",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:"ef41052d0eec68b02d04638ce7cfdbc1477c16eb",class:"col-12"},a("form-control-text",{key:"b88d31bed47cdf09e04a29122c1adf955bdc4d25",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:"743dea4d8f59e62103403fa58936ca86d7bbf216",class:"col-12"},a("form-control-date",{key:"4be255a38f91f9bf758428d780649d2775d22153",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:"7b274a743a9ca8f3cb7b86facbe12b723b8695e4",class:"col-12"},a("form-control-textarea",{key:"833a03ac489cfa6fe6991e14a079b104b7b86ddc",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:"a1363e8014fe90442e1d0f6820bf2b9cf9966c90",class:"col-12"},a("form-control-file-v2",{key:"beb99c4b9e898265f8a904984172fb1a6a52cb49",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 additional_statement,h as cancellation_policy,v as customer_details,m as duplicate_charge,_ as electronic_evidence,g as product_or_service,j as refund_policy,T as shipping_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./p-CV0Pyo1O.js";import{J as a}from"./p-
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-CV0Pyo1O.js";import{J as a}from"./p-nbKvRcwU.js";import{c as s}from"./p-BEL8sLz6.js";import{c as d}from"./p-Fpaf7CLD.js";import{c}from"./p-Bu7gdOaV.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{P as f}from"./p-DEx8fQeW.js";import"./p-CAVi_ne1.js";import"./p-vIQBTQmc.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";const h=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.submitEvent=t(this,"submit-event",7),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){s(),this.analytics=new a(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){d.isSubmitting=!1}checkoutError(e){d.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=e.detail.availablePaymentMethodTypes}async fillBillingForm(e){d.billingFormFields=e}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"be64697a74e404e567c718562f72ca6cf644a2a4"},i("justifi-modular-checkout",{key:"49be0912aa949927cb11bde45c6ade0eb25744be",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"7ae8865515c16d119d0c951670b86f53006f5a2f",class:"row gy-3 jfi-checkout-core"},i("div",{key:"697f67f1603f78d852c3900f424fea1559dcbbc7",class:"col-12",part:c},i("justifi-header",{key:"005b320bb2318b6e5a888911fe90aeeeb8ca58f1",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"e6e4e720e0d619aa338b1a64ccc75f6bcfb53129"},i("justifi-checkout-summary",{key:"5bbc4d7223f56fe70bcc9810ebcde55264e17943"}))),i("div",{key:"7c5f714e729c26a8c3589e912100d38e61cb3846",class:"col-12 mt-4"},i("slot",{key:"ae66ebfe4a0e1456aaabd706523ef17e9c2c4b50",name:"insurance"})),i("div",{key:"3d74c4078230299a0d093568f9edf61ddede06d6",class:"col-12 mt-4"},i("justifi-header",{key:"98fad7779ad81e44f56d488f8f9bebb843c8b044",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"a522e1c11e8412c0df0b272201a9eb929e8f38a5",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"670a875b91e3c4f41cc1f99e159ddb62d5d2cd9d",class:"d-flex flex-column"},i("section",{key:"660a700bfdffa79b3e00da2ae186f98fbefc59de"},i("div",{key:"3c314f058f5a6bf745800790dcad6b0f09ec9fdf"},this.availablePaymentMethods.includes(f.APPLE_PAY)&&i("div",{key:"9b3003bc6a7e2a85c64d28ac1457871297fcb570",class:"mb-3"},i("justifi-apple-pay",{key:"25fb043d7fdd2308ceaf8cef9b8e3db72c276ec8"})),this.availablePaymentMethods.includes(f.GOOGLE_PAY)&&i("div",{key:"62ea38828ed1e7fe795cd92c1523e0a09dbb1249",class:"mb-3"},i("justifi-google-pay",Object.assign({key:"6bf9455e95950766204a4b9a16c51512961dab6d",ref:e=>this.googlePayRef=e},null!=this.googlePayEnv?{environment:this.googlePayEnv}:{}))),this.availablePaymentMethods.includes(f.PAYPAL)&&i("div",{key:"a1af9d7ec013aced03e3eb1e768c0dcb378c8ff2",class:"mb-3"},i("justifi-paypal",{key:"7e0106b73a4844ffc99c353cbc6365cf9c17964c"})),i("justifi-saved-payment-methods",{key:"4f4aae6378928ebd28d1015fd9f4dde7403e20a5"}),this.availablePaymentMethods.includes(f.SEZZLE)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"ac9a3b1ce4d8dff5c75417ff62aeddbb1aac5aa2",name:"paymentMethodType",value:f.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===f.SEZZLE,label:i("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(f.PLAID)&&i("justifi-radio-list-item",{key:"92fa98d5d28cfa4327631238b5fbf58e2a6096c9",name:"paymentMethodType",value:f.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===f.PLAID,label:i("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),i("justifi-tokenize-payment-method",{key:"f40e4195ed8ef1dbff50a870b1d0136968d78fb1",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),i("div",{key:"3d6b6108fa078dc2ce7a7048dffd61b5767010be",class:"mt-4"},i("justifi-button",{key:"43370805937c92ad494cce2c493d641066c0b894",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:d.isSubmitting||d.isWalletProcessing,isLoading:d.isSubmitting||d.isWalletProcessing,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{m as a,C as i,b as o}from"./p-
|
|
1
|
+
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{m as a,C as i,b as o}from"./p-D6uhYbLo.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{g as c,a as h}from"./p-CLq3Og7o.js";import{c as n}from"./p-BEL8sLz6.js";import{J as d}from"./p-nbKvRcwU.js";import{C as p}from"./p-27igUlku.js";import{m as u,S as m}from"./p-D_84NsmN.js";import{S as f}from"./p-05AWudQe.js";import{T as l,a as b,b as y,c as g,d as k,e as v,f as j,g as C,h as _,i as w,j as T,k as S,l as A}from"./p-DZr0wLGh.js";import{T as D}from"./p-CZfYo5-1.js";import{d as P,b as O}from"./p-Ds_P-dB8.js";import{B as x,a as I}from"./p-Dz8KJn2G.js";import{a6 as L,a7 as E}from"./p-Bu7gdOaV.js";import{o as B,g as z}from"./p-CArdj6i_.js";import"./p-DgTOxu8x.js";import"./p-CAVi_ne1.js";import"./p-vIQBTQmc.js";import"./p-MPer3Rw7.js";const G={created_at:()=>t("th",{part:L,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:L,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:L,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:L,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:L,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:L,scope:"col",title:"The current status of each checkout"},"Status")},M={created_at:(e,s)=>t("td",{part:E(s)},t("div",{class:"fw-bold"},O(e.created_at)),t("div",{class:"fw-bold"},P(e.created_at))),payment_amount:(e,s)=>t("td",{part:E(s)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,s)=>t("td",{part:E(s)},e.payment_description),sub_account_name:(e,s)=>t("td",{part:E(s)},e.sub_account_name),payment_mode:(e,s)=>t("td",{part:E(s)},e.payment_mode),status:(e,s)=>t("td",{part:E(s)},t(I,Object.assign({},{created:{variant:x.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:x.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:x.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:x.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))},U=class{constructor(t){e(this,t),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.columns="created_at,payment_amount,payment_description,payment_mode,status",this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const s=this.checkouts.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:s})}}componentWillLoad(){n(),this.analytics=new d(this),this.checkoutsTable=new l(this.checkouts,this.columns,G,M),this.initializeGetData(),this.getCheckouts&&this.fetchData(),B("set",(()=>{this.pagingParams={}})),B("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}authPropChanged(){this.initializeGetData(),this.getCheckouts&&this.fetchData()}pagingOrColumnsChanged(){this.getCheckouts&&this.fetchData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){const t=this.subAccountId||this.accountId;t&&this.authToken?this.getCheckouts=(({accountId:t,authToken:e,service:s})=>async({params:o,onSuccess:r,onError:n})=>{var d,p;try{const u=await s.fetchCheckouts(t,e,o);if(u.error)return n({error:h(u.error),code:c(null===(p=u.error)||void 0===p?void 0:p.code),severity:i.ERROR});{const t=Object.assign({},u.page_info);r({checkouts:(null===(d=u.data)||void 0===d?void 0:d.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const e=c(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:i.ERROR})}})({accountId:t,authToken:this.authToken,service:new p}):(this.errorMessage="Account ID/Sub Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new m}))}fetchData(){this.getCheckouts&&(this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:e})=>{this.checkouts=t,this.paging=e,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s}),this.loading=!1}}))}async fetchSubAccounts(){this.getSubAccounts?this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var e;return t.sub_account_name=null===(e=this.subAccounts.find((e=>e.id===t.account_id)))||void 0===e?void 0:e.name,t})),this.loading=!1},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s}),this.loading=!1}}):this.loading=!1}get checkoutParams(){const t=z();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){const t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(f,{key:"f022fc9244c2c8d6e43136ef67d584b7e02d88c0"},t(b,{key:"4426bfe67f6847fc4e7afac5bc6f49003eab7bdc"},t(y,{key:"d0c5683a6d86166853a184902c0492d7d692053d"},t(g,{key:"414525dcdce777fb9b96da4577f9df9dbc5209e5"},t(k,{key:"059f355e53d1610e9a98caefc2e843042b82a401"},this.checkoutsTable.columnData.map((t=>t)))),t(v,{key:"a084de3e1cd2463d94e189d5d3241a19a885e43d"},t(j,{key:"3efa17a9737fcac772f9d97880b4a990a97a7e99",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),t(C,{key:"636f2bf2b881e3ae93fd2ae5b78f4951eb2aa55e",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),t(_,{key:"d17071cdf4f1295f6aa53efb566fa470f40ef8cd",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((e,s)=>t(w,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"dc301ba7b3039400a3dbb9761ca8d7894e619e7d"},t(S,{key:"18936a6e7bbc6c0ed07181e22beb9488ef5d3fcd"},t(A,{key:"56749d191e514a9ef47d505efe831d808abf59db",colSpan:this.checkoutsTable.columnData.length},t("pagination-menu",{key:"7cd65843172cb881640de5e3815ec1e85984b9be",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["authPropChanged"],authToken:["authPropChanged"],subAccountId:["authPropChanged"],pagingParams:["pagingOrColumnsChanged"],columns:["pagingOrColumnsChanged"]}}};export{U as justifi_checkouts_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a}from"./p-CV0Pyo1O.js";import{c as o}from"./p-BEL8sLz6.js";import{J as s}from"./p-nbKvRcwU.js";import{w as r}from"./p-B4vLfYnZ.js";import{S as i}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-CAVi_ne1.js";import"./p-vIQBTQmc.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-DgTOxu8x.js";const e=class{constructor(a){t(this,a)}async componentWillLoad(){await r(),o(),this.analytics=new s(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return!!this.bankAccountFormElement&&this.bankAccountFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:a,account:o}){return this.bankAccountFormElement?this.bankAccountFormElement.tokenize({clientId:t,paymentMethodMetadata:a,account:o}):{error:{message:"Bank account form is not available."}}}render(){return a(i,{key:"1263233d6c63c0df4a2a6a17b263651156ad6bee"},a("bank-account-form",{key:"f6c6707201ef127eafc81e12535bcfa37ddf3c5d",ref:t=>this.bankAccountFormElement=t}))}};export{e as justifi_bank_account_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,F as e,r as i,c as t}from"./p-CV0Pyo1O.js";import{E as
|
|
1
|
+
import{h as s,F as e,r as i,c as t}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Bh6Q8AqQ.js";import{B as r}from"./p-CJEetAx7.js";import{m as o}from"./p-CyOXIqHo.js";import{C as n,b as l}from"./p-D6uhYbLo.js";import{J as d}from"./p-nbKvRcwU.js";import{c as h}from"./p-BEL8sLz6.js";import{S as c}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as p}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";import"./p-vIQBTQmc.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-CAVi_ne1.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-CLq3Og7o.js";const u=()=>{const i=()=>s("div",{class:"mt-5"},s(p,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null)),s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null))));return s(e,null,s(i,null),s(i,null),s(i,null),s(i,null))},m=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new d(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:l.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:i})},final:()=>{this.loading=!1}})}render(){return s(c,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as s}from"./p-CV0Pyo1O.js";import{J as o}from"./p-nbKvRcwU.js";import{c as r}from"./p-BEL8sLz6.js";import{w as t}from"./p-B4vLfYnZ.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-CAVi_ne1.js";import"./p-vIQBTQmc.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-DgTOxu8x.js";const a=class{constructor(s){i(this,s)}async componentWillLoad(){await t(),r(),this.analytics=new o(this)}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}async getValues(){var i,s;return null!==(s=null===(i=this.bankAccountBillingFormSimpleRef)||void 0===i?void 0:i.getValues())&&void 0!==s?s:{}}async validate(){var i,s;return null!==(s=null===(i=this.bankAccountBillingFormSimpleRef)||void 0===i?void 0:i.validate())&&void 0!==s?s:{isValid:!1,errors:{}}}render(){return s(p,{key:"9848071f08342d3f5c2f7001af6e15148e713495"},s("bank-account-billing-form-simple",{key:"35f2baeb2f017116199ccff431d0acac01ad498f",legend:this.legend,ref:i=>this.bankAccountBillingFormSimpleRef=i}))}};export{a as justifi_bank_account_billing_form_simple}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-OeJ-3w3l.js";import{f as s,p as r,c as d}from"./p-DUtecvro.js";import{f as l,a as i}from"./p-Bu7gdOaV.js";import{S as o}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-B4vLfYnZ.js";import{c as p,a as c}from"./p-Ds_P-dB8.js";import{T as b,f}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-BFTU3MAI.js";import"./p-DgTOxu8x.js";import"./p-HXpYMWUU.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=p(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore,company_name:this.companyName}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:b.created},{label:"Completed",value:b.completed},{label:"Submitted",value:b.submitted},{label:"In Progress",value:b.in_progress},{label:"On Hold",value:b.on_hold},{label:"Canceled",value:b.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:f.boardingOnly},{label:"Boarding Shipping",value:f.boardingShipping}]}render(){const e=Object.assign({},s);return a(o,{key:"4917947c32b986dfd3e03e2194166a22b854c596"},a("table-filters-menu",{key:"7cbdd6699501511839d26e0ecd320838da3d2ea8",params:e,clearParams:d,part:l},a("div",{key:"3a5ed4007f3d9c68f71a31cb7086956f6808d3bd",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"cd50327bf0d34adebab19ac71d2839e33572006c",class:"p-2"},a("form-control-select",{key:"08340399deae9c6445d0bbcbc48c97afa9258e69",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||s.order_status||"",disabled:!!this.orderStatus,part:i})),a("div",{key:"613cdc6699d667a0b733b1cb90bf336f4595d351",class:"p-2"},a("form-control-select",{key:"8b432626428e64553c2c32a94aa53750474a677d",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||s.order_type||"",disabled:!!this.orderType,part:i})),a("div",{key:"3f7f2d2fdf271489ea628eda3c9137ee60cb752f",class:"p-2"},a("form-control-date",{key:"dcf0f4ab51c8511d2877405b0460faa1b272ac61",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:c(this.createdAfter,{showInputDateTime:!0})||c(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:i})),a("div",{key:"5dca482d9530e6867a13d8f94961b909f243d316",class:"p-2"},a("form-control-date",{key:"1d5fdee06fd5420edcc1b0b5cd75bfc1d4b563e7",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:c(this.createdBefore,{showInputDateTime:!0})||c(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:i})),a("div",{key:"38fb2f90de478f0b29b8711ba502fd280e6599ab",class:"p-2"},a("form-control-text",{key:"772e6efb136cfd0edd2a0bfe3810e7616a2541b3",name:"company_name",label:"Company Name",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.companyName||s.company_name,disabled:!!this.companyName,part:i})))))}};export{n as justifi_terminal_orders_list_filters}
|