@justifi/webcomponents 6.14.4-rc.1 → 6.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/{Analytics-CLtNL7cp.js → Analytics-CMv0MKQ4.js} +3 -3
- package/dist/cjs/{Api-j0tZ-Tix.js → Api-ChUqJ75C.js} +2 -2
- package/dist/cjs/{Plaid-CbaU5Arm.js → Plaid-B2o4c_Ej.js} +2 -0
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +9 -9
- package/dist/cjs/{additional-questions_5.cjs.entry.js → additional-questions_4.cjs.entry.js} +0 -16
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +3 -3
- package/dist/cjs/bank-account-form.cjs.entry.js +77 -27
- package/dist/cjs/{business.service-BGTzzUHv.js → business.service-BSoN1ENP.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +79 -26
- package/dist/cjs/{check-pkg-version-IIkBL56i.js → check-pkg-version-mt-o0WFo.js} +1 -1
- package/dist/cjs/{checkout-actions-Cm38ZPqN.js → checkout-actions-VCJi-q4z.js} +2 -2
- package/dist/cjs/{checkout.service-C6banXoZ.js → checkout.service-BDUrLWyA.js} +2 -2
- package/dist/cjs/{checkout.store-CZHrIuaP.js → checkout.store-DOa1-SjA.js} +18 -4
- package/dist/cjs/{payments-list-params-state-vGJZ6Oe2.js → checkouts-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{config-state-BIgGhhe9.js → config-state-C1YMiFpR.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +12 -12
- package/dist/cjs/{event-types-CuvC_5oJ.js → event-types-DlZRGu3q.js} +2 -2
- package/dist/cjs/{hidden-input_2.cjs.entry.js → form-alert_3.cjs.entry.js} +34 -12
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/{get-business-B3Jf5X7U.js → get-business-BBDsPv-b.js} +2 -2
- package/dist/cjs/{get-payment-details-Q9lHwr8Y.js → get-payment-details-BYZeUFAB.js} +3 -3
- package/dist/cjs/{get-subaccounts-BPqMUWqF.js → get-subaccounts-w4iQAASi.js} +4 -4
- package/dist/cjs/{index-W-zoNiyM.js → index-DDrfAj-j.js} +21 -15
- package/dist/cjs/{insurance-state-B-XQRmMs.js → insurance-state-CHQD1ZGw.js} +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +22 -25
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +7 -7
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
- package/dist/cjs/justifi-card-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -15
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +10 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D_k65Ek-.js → package-V2lnhWch.js} +1 -1
- package/dist/cjs/{payment-provisioning-actions-DeURi9ZW.js → payment-provisioning-actions-CIsDrh8k.js} +2 -2
- package/dist/cjs/{payment.service-CsRgUBpg.js → payment.service-CUuADjYH.js} +2 -2
- package/dist/cjs/{checkouts-list-params-state-vGJZ6Oe2.js → payments-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{payout.service-B9Uy-vnZ.js → payout.service-D_gucuzq.js} +2 -2
- package/dist/cjs/{payouts-list-params-state-vGJZ6Oe2.js → payouts-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{payouts-status-BKO9VMJ_.js → payouts-status-DVU5138C.js} +2 -2
- package/dist/cjs/{plaid.service-BO5TCVg-.js → plaid.service-DIPjzg_M.js} +2 -2
- package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/{terminal-orders-list-params-state-vGJZ6Oe2.js → terminal-orders-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{terminal.service-IQgeT2S0.js → terminal.service-DVxXWBU7.js} +2 -2
- package/dist/cjs/terminals-list-params-state-DDpRrUTY.js +22 -0
- package/dist/cjs/{utils-8zgGi717.js → utils-WrOn06xB.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/ComponentError.js +2 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form-skeleton.js +1 -5
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +93 -19
- package/dist/collection/components/checkout/card-form/card-form-skeleton.js +1 -5
- package/dist/collection/components/checkout/card-form/card-form.js +96 -19
- package/dist/collection/components/checkout/justifi-checkout.js +2 -7
- package/dist/collection/components/checkout/test/use-bridged-fake-timers.js +14 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- 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/justifi-modular-checkout.js +8 -5
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -7
- package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
- package/dist/collection/store/checkout.store.js +17 -3
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/iframe-input.js +26 -3
- package/dist/docs.json +100 -18
- package/dist/esm/{Analytics-CkVFbWbI.js → Analytics-C8-CZjVs.js} +4 -4
- package/dist/esm/{Api-C_lKBDA2.js → Api-BmZr64rt.js} +2 -2
- package/dist/esm/{Business-BcNb9bVO.js → Business-DaDqgDrb.js} +1 -1
- package/dist/esm/{Plaid-D389VmvK.js → Plaid-DJ-4YL0_.js} +2 -0
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/additional-questions-form-step_15.entry.js +19 -19
- package/dist/esm/{additional-questions_5.entry.js → additional-questions_4.entry.js} +5 -20
- package/dist/esm/additional-statement_8.entry.js +9 -9
- package/dist/esm/{badge-Dlcl9qdm.js → badge-B7QMpafx.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +8 -8
- package/dist/esm/bank-account-document-form-inputs.entry.js +4 -4
- package/dist/esm/bank-account-form.entry.js +80 -30
- package/dist/esm/bank-account-read-only-value.entry.js +1 -1
- package/dist/esm/{business-form-options-DXjZp4Rl.js → business-form-options-BxVQL9ar.js} +1 -1
- package/dist/esm/{business-identity-schema-CXfLi-Wi.js → business-identity-schema-BkmRlnQo.js} +3 -3
- package/dist/esm/{business.service-CFAfsTjM.js → business.service-BTTf2CSv.js} +3 -3
- package/dist/esm/{button-BvzOzV4l.js → button-CBzHAOFW.js} +1 -1
- package/dist/esm/card-form.entry.js +82 -29
- package/dist/esm/{check-pkg-version-D8eS1EP8.js → check-pkg-version-B697jYyG.js} +1 -1
- package/dist/esm/{checkout-actions-Bmn6v-SS.js → checkout-actions-DhL8YxrK.js} +2 -2
- package/dist/esm/{checkout.service-B3kWd3Cb.js → checkout.service-B3BXVtHv.js} +3 -3
- package/dist/esm/{checkout.store-DibfdUMm.js → checkout.store-B6amfNq_.js} +18 -4
- package/dist/esm/{checkouts-list-params-state-CiGfmyWW.js → checkouts-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/{config-state-kKn89dp1.js → config-state-BKOsYBXZ.js} +1 -1
- package/dist/esm/{country-config-CEJVOOGe.js → country-config-CJwnhkdq.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +1 -1
- package/dist/esm/dispute-notification_2.entry.js +16 -16
- package/dist/esm/{event-types-CWcuMhpX.js → event-types-DEIzZDtB.js} +3 -3
- package/dist/esm/form-address-fields_3.entry.js +4 -4
- package/dist/esm/{hidden-input_2.entry.js → form-alert_3.entry.js} +29 -8
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-Di9QePY5.js → form-control-error-text-FyanxO4T.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +2 -2
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/{form-control-help-text-DGMpMuAm.js → form-control-help-text-DxvEdU36.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number_2.entry.js +7 -7
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-CDr7VlTq.js → get-business-BSyOONF0.js} +3 -3
- package/dist/esm/{get-payment-details-CpM_upcS.js → get-payment-details-CoGzqJ6o.js} +4 -4
- package/dist/esm/{get-subaccounts-DX2J9fAE.js → get-subaccounts-CnKtCpiU.js} +5 -5
- package/dist/esm/{header-1-evYxFIGN.js → header-1-BI0o3rMW.js} +1 -1
- package/dist/esm/{header-3-BUDap2xY.js → header-3-DNqRk_HO.js} +1 -1
- package/dist/esm/{index-cDVGjRkU.js → index-3wWWWrhn.js} +21 -15
- package/dist/esm/{input-handlers-1lVyzImK.js → input-handlers-Dfuc6aDW.js} +1 -1
- package/dist/esm/{insurance-state-C5OZqDCT.js → insurance-state-DM0VaTpH.js} +2 -2
- package/dist/esm/internal-button.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_11.entry.js +27 -30
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
- package/dist/esm/justifi-bank-account-form.entry.js +8 -8
- package/dist/esm/justifi-business-details.entry.js +14 -14
- package/dist/esm/justifi-business-form.entry.js +19 -19
- package/dist/esm/justifi-card-form.entry.js +8 -8
- package/dist/esm/justifi-checkout-qr-code.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +12 -17
- package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list.entry.js +18 -18
- package/dist/esm/justifi-config-provider.entry.js +2 -2
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-gross-payment-chart.entry.js +12 -12
- package/dist/esm/justifi-order-terminals.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +16 -16
- package/dist/esm/justifi-payment-provisioning.entry.js +15 -15
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +16 -16
- package/dist/esm/justifi-payout-details.entry.js +16 -16
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-qr-terminal.entry.js +11 -11
- package/dist/esm/justifi-refund-payment.entry.js +16 -16
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
- package/dist/esm/justifi-skeleton.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminals-list.entry.js +16 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-XQGYXcNa.js → package-DlhPMNzz.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-CPKMvyV_.js → parts-Bu7gdOaV.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-BJYx_JgF.js → payment-provisioning-actions-DJKGndr3.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -3
- package/dist/esm/{payment-provisioning-loading-Dve2xQA4.js → payment-provisioning-loading-BxHRVFDi.js} +1 -1
- package/dist/esm/{payment.service-DICpfY3q.js → payment.service-Ciw1eGvT.js} +3 -3
- package/dist/esm/{payments-list-params-state-CiGfmyWW.js → payments-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/{payments-status-BlVUt4C1.js → payments-status-If2fvwlv.js} +1 -1
- package/dist/esm/{payout.service-C0dmZtzu.js → payout.service-2jjZOOvC.js} +3 -3
- package/dist/esm/{payouts-list-params-state-CiGfmyWW.js → payouts-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/{payouts-status-BnB9006T.js → payouts-status-C0nijel1.js} +3 -3
- package/dist/esm/{plaid.service-CDwe-YbI.js → plaid.service-CuAL_uL3.js} +3 -3
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +2 -2
- package/dist/esm/{schema-validations-DJilm-Nh.js → schema-validations-8dbMCACI.js} +3 -3
- package/dist/esm/{skeleton-BEHo2ypu.js → skeleton-dbktEkFS.js} +1 -1
- package/dist/esm/{spinner-DIiQZd6_.js → spinner-EZmqiSfd.js} +1 -1
- package/dist/esm/{table-DqGfsdys.js → table-CD17nv9n.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/{terminal-orders-list-params-state-CiGfmyWW.js → terminal-orders-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-DIDTZ_fB.js → terminal.service-Di5Ma4sp.js} +3 -3
- package/dist/esm/terminals-list-params-state-DfRLZrOO.js +16 -0
- package/dist/esm/{utils-CX6puxwf.js → utils-BFduyAPr.js} +1 -1
- package/dist/esm/{utils-BdBZQD1G.js → utils-D6LKoG0M.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Plaid.js +2 -0
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-form2.js +84 -25
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-core-info-form-step2.js +1 -1
- package/dist/module/business-core-info2.js +1 -1
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-owners-form-step2.js +1 -1
- package/dist/module/business-representative-form-inputs2.js +1 -1
- package/dist/module/business-representative2.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-form2.js +87 -25
- package/dist/module/checkout.store.js +17 -3
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/dispute-notification2.js +3 -3
- package/dist/module/dispute-response2.js +2 -2
- package/dist/module/document-upload-list2.js +1 -1
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/header-3.js +1 -1
- package/dist/module/iframe-input2.js +11 -4
- package/dist/module/index3.js +21 -15
- package/dist/module/justifi-apple-pay2.js +1 -7
- package/dist/module/justifi-bank-account-form.js +8 -2
- package/dist/module/justifi-card-form.js +8 -2
- package/dist/module/justifi-checkout.js +22 -21
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +3 -3
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +8 -5
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-payment.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +20 -14
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/owner-form2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/plaid-verification2.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/api/ComponentError.d.ts +2 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form-skeleton.d.ts +1 -4
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +11 -1
- package/dist/types/components/checkout/card-form/card-form-skeleton.d.ts +1 -4
- package/dist/types/components/checkout/card-form/card-form.d.ts +12 -2
- package/dist/types/components/checkout/test/use-bridged-fake-timers.d.ts +1 -0
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +0 -1
- package/dist/types/components.d.ts +33 -0
- package/dist/types/store/checkout.store.d.ts +1 -3
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -0
- package/dist/webcomponents/{p-932f6c6f.entry.js → p-003cd0b9.entry.js} +1 -1
- package/dist/webcomponents/p-041a22dd.entry.js +1 -0
- package/dist/webcomponents/{p-ec6978cb.entry.js → p-0464be7b.entry.js} +1 -1
- package/dist/webcomponents/p-0ae95f48.entry.js +1 -0
- package/dist/webcomponents/p-0c2848c8.entry.js +1 -0
- package/dist/webcomponents/{p-a7d0cc9f.entry.js → p-11294ee2.entry.js} +1 -1
- package/dist/webcomponents/{p-4a5d5dbb.entry.js → p-1255176f.entry.js} +1 -1
- package/dist/webcomponents/{p-1cff91b7.entry.js → p-15934f30.entry.js} +1 -1
- package/dist/webcomponents/p-19721f28.entry.js +1 -0
- package/dist/webcomponents/{p-c0698710.entry.js → p-1a1591e3.entry.js} +1 -1
- package/dist/webcomponents/{p-0a4fcb15.entry.js → p-1cdbe8c1.entry.js} +1 -1
- package/dist/webcomponents/{p-debc4768.entry.js → p-2139497d.entry.js} +1 -1
- package/dist/webcomponents/{p-f8c2ee31.entry.js → p-34a4924b.entry.js} +1 -1
- package/dist/webcomponents/p-359e35b5.entry.js +1 -0
- package/dist/webcomponents/{p-8fd18ce2.entry.js → p-36d7033b.entry.js} +1 -1
- package/dist/webcomponents/{p-dc0cc4aa.entry.js → p-3ef039ec.entry.js} +1 -1
- package/dist/webcomponents/p-40332723.entry.js +1 -0
- package/dist/webcomponents/{p-65c3288f.entry.js → p-465e9e1c.entry.js} +1 -1
- package/dist/webcomponents/{p-b03e361e.entry.js → p-49e40ebe.entry.js} +1 -1
- package/dist/webcomponents/{p-5a58f606.entry.js → p-4d60d249.entry.js} +1 -1
- package/dist/webcomponents/p-546e5799.entry.js +1 -0
- package/dist/webcomponents/{p-2dfdecbb.entry.js → p-558677a7.entry.js} +1 -1
- package/dist/webcomponents/{p-f953fd60.entry.js → p-568b81a2.entry.js} +1 -1
- package/dist/webcomponents/p-5_w3jWjY.js +1 -0
- package/dist/webcomponents/{p-73deced9.entry.js → p-61eae8cd.entry.js} +1 -1
- package/dist/webcomponents/p-63ed941e.entry.js +1 -0
- package/dist/webcomponents/{p-a504a830.entry.js → p-661f50a9.entry.js} +1 -1
- package/dist/webcomponents/p-6f34fa90.entry.js +1 -0
- package/dist/webcomponents/{p-e020f003.entry.js → p-6f88f836.entry.js} +1 -1
- package/dist/webcomponents/{p-9399f4f1.entry.js → p-715df6a8.entry.js} +1 -1
- package/dist/webcomponents/{p-8ef24398.entry.js → p-73f97f6a.entry.js} +1 -1
- package/dist/webcomponents/{p-5071aaa4.entry.js → p-74de23d8.entry.js} +1 -1
- package/dist/webcomponents/{p-222a5422.entry.js → p-8507bd99.entry.js} +1 -1
- package/dist/webcomponents/p-851a5865.entry.js +1 -0
- package/dist/webcomponents/p-8bf07094.entry.js +1 -0
- package/dist/webcomponents/p-8fO8CrtQ.js +1 -0
- package/dist/webcomponents/p-9c506058.entry.js +1 -0
- package/dist/webcomponents/{p-ebbb72db.entry.js → p-9f3b1212.entry.js} +1 -1
- package/dist/webcomponents/p-B-Ik8b-s.js +1 -0
- package/dist/webcomponents/p-B4Xi-t8v.js +1 -0
- package/dist/webcomponents/{p-DVJaoI_m.js → p-B4vLfYnZ.js} +1 -1
- package/dist/webcomponents/p-BAB1lPu0.js +1 -0
- package/dist/webcomponents/p-BLhz_ggG.js +1 -0
- package/dist/webcomponents/p-BTuqVZ6O.js +1 -0
- package/dist/webcomponents/{p-Cu7hgXL1.js → p-Bh6Q8AqQ.js} +1 -1
- package/dist/webcomponents/{p-D1_eip6x.js → p-Bi_GCMx0.js} +1 -1
- package/dist/webcomponents/{p-CV9bTMsT.js → p-BpFSR2PV.js} +1 -1
- package/dist/webcomponents/{p-Da3ZlxHS.js → p-BsnuluAl.js} +1 -1
- package/dist/webcomponents/{p-CPKMvyV_.js → p-Bu7gdOaV.js} +1 -1
- package/dist/webcomponents/p-BzjgvHHT.js +1 -0
- package/dist/webcomponents/{p-ynzkwSZi.js → p-C1x6dkgs.js} +1 -1
- package/dist/webcomponents/p-CArdj6i_.js +1 -0
- package/dist/webcomponents/p-CGnRD4wF.js +1 -0
- package/dist/webcomponents/p-CLZcevBz.js +1 -0
- package/dist/webcomponents/p-CMvr3y5s.js +1 -0
- package/dist/webcomponents/{p-CHo7TfsM.js → p-CU2Dwa94.js} +1 -1
- package/dist/webcomponents/p-CZk3i5Tu.js +1 -0
- package/dist/webcomponents/p-CaLXuYmg.js +1 -0
- package/dist/webcomponents/{p-DPA5TKvQ.js → p-CawcnSoV.js} +1 -1
- package/dist/webcomponents/p-CbyGKcz_.js +1 -0
- package/dist/webcomponents/{p-M5r3mgPH.js → p-CfYe14W-.js} +1 -1
- package/dist/webcomponents/p-Chs1q3Hw.js +1 -0
- package/dist/webcomponents/{p-B9fbqJSf.js → p-Co3Rtlnu.js} +1 -1
- package/dist/webcomponents/p-CumGHL0N.js +1 -0
- package/dist/webcomponents/p-D1H6VUbM.js +1 -0
- package/dist/webcomponents/p-D437Px2O.js +1 -0
- package/dist/webcomponents/p-DCwSevh5.js +1 -0
- package/dist/webcomponents/p-DD9-ceDZ.js +1 -0
- package/dist/webcomponents/p-DNuxxP2B.js +1 -0
- package/dist/webcomponents/p-DNxN6bjU.js +1 -0
- package/dist/webcomponents/p-DUtecvro.js +1 -0
- package/dist/webcomponents/{p-BICxxa69.js → p-DZr0wLGh.js} +1 -1
- package/dist/webcomponents/{p-BcNb9bVO.js → p-DaDqgDrb.js} +1 -1
- package/dist/webcomponents/p-DgTOxu8x.js +1 -0
- package/dist/webcomponents/p-Dl0CAW76.js +1 -0
- package/dist/webcomponents/p-DlhPMNzz.js +1 -0
- package/dist/webcomponents/{p-DHB_XJ12.js → p-Do9dxNjh.js} +1 -1
- package/dist/webcomponents/{p-Tf63eN3X.js → p-DwLofzXZ.js} +1 -1
- package/dist/webcomponents/{p-CHw7tICr.js → p-Dz8KJn2G.js} +1 -1
- package/dist/webcomponents/p-MPer3Rw7.js +1 -0
- package/dist/webcomponents/{p-BBSnDYJw.js → p-OReJ-ZQb.js} +1 -1
- package/dist/webcomponents/{p-4baac05b.entry.js → p-a0515894.entry.js} +1 -1
- package/dist/webcomponents/{p-76ded81e.entry.js → p-a14d3d7d.entry.js} +1 -1
- package/dist/webcomponents/p-a6f68a03.entry.js +1 -0
- package/dist/webcomponents/{p-49c13952.entry.js → p-af0c6421.entry.js} +1 -1
- package/dist/webcomponents/p-b140a8b8.entry.js +1 -0
- package/dist/webcomponents/{p-528eef2d.entry.js → p-b17fabdc.entry.js} +1 -1
- package/dist/webcomponents/{p-db09f306.entry.js → p-b2129553.entry.js} +1 -1
- package/dist/webcomponents/{p-605bd107.entry.js → p-b39dd96b.entry.js} +1 -1
- package/dist/webcomponents/{p-b0deb260.entry.js → p-b4d216cf.entry.js} +1 -1
- package/dist/webcomponents/{p-e1e91bbb.entry.js → p-b8d46fc5.entry.js} +1 -1
- package/dist/webcomponents/{p-53d775b9.entry.js → p-b945fa49.entry.js} +1 -1
- package/dist/webcomponents/{p-75b5d6ac.entry.js → p-b9b5d046.entry.js} +1 -1
- package/dist/webcomponents/p-bc435cae.entry.js +1 -0
- package/dist/webcomponents/{p-43a53ae2.entry.js → p-bd46911b.entry.js} +1 -1
- package/dist/webcomponents/p-bf3866b3.entry.js +1 -0
- package/dist/webcomponents/p-c4799285.entry.js +1 -0
- package/dist/webcomponents/p-cb5d2198.entry.js +1 -0
- package/dist/webcomponents/p-cb977890.entry.js +1 -0
- package/dist/webcomponents/{p-58e8d646.entry.js → p-d6122124.entry.js} +1 -1
- package/dist/webcomponents/{p-a686ebeb.entry.js → p-db71a012.entry.js} +1 -1
- package/dist/webcomponents/p-dd2654f5.entry.js +1 -0
- package/dist/webcomponents/{p-14a03ad0.entry.js → p-de8c6cd4.entry.js} +1 -1
- package/dist/webcomponents/p-eBK-iWrz.js +1 -0
- package/dist/webcomponents/{p-ba8eae66.entry.js → p-ee78df81.entry.js} +1 -1
- package/dist/webcomponents/p-f0083ace.entry.js +1 -0
- package/dist/webcomponents/{p-eccc1fc6.entry.js → p-f6941969.entry.js} +1 -1
- package/dist/webcomponents/p-f9d0b34d.entry.js +1 -0
- package/dist/webcomponents/{p-0d0167f8.entry.js → p-fbd08a2e.entry.js} +4 -4
- package/dist/webcomponents/p-x2oNTAWh.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +15 -15
- package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +0 -22
- package/dist/esm/terminals-list-params-state-CiGfmyWW.js +0 -16
- package/dist/webcomponents/p-02097c85.entry.js +0 -1
- package/dist/webcomponents/p-0da78470.entry.js +0 -1
- package/dist/webcomponents/p-0f2a1ac9.entry.js +0 -1
- package/dist/webcomponents/p-1b51dea9.entry.js +0 -1
- package/dist/webcomponents/p-1de248b1.entry.js +0 -1
- package/dist/webcomponents/p-20f07ac9.entry.js +0 -1
- package/dist/webcomponents/p-25215ee7.entry.js +0 -1
- package/dist/webcomponents/p-35a01bf7.entry.js +0 -1
- package/dist/webcomponents/p-3d89543a.entry.js +0 -1
- package/dist/webcomponents/p-64377ff6.entry.js +0 -1
- package/dist/webcomponents/p-6624dcf8.entry.js +0 -1
- package/dist/webcomponents/p-6fe329d6.entry.js +0 -1
- package/dist/webcomponents/p-8cb504d4.entry.js +0 -1
- package/dist/webcomponents/p-8fabef40.entry.js +0 -1
- package/dist/webcomponents/p-9525003b.entry.js +0 -1
- package/dist/webcomponents/p-9cc293aa.entry.js +0 -1
- package/dist/webcomponents/p-AMVhBsGv.js +0 -1
- package/dist/webcomponents/p-AyLerOda.js +0 -1
- package/dist/webcomponents/p-B5gBiARs.js +0 -1
- package/dist/webcomponents/p-BPTtWj7E.js +0 -1
- package/dist/webcomponents/p-BwPS3971.js +0 -1
- package/dist/webcomponents/p-C-Jgmek8.js +0 -1
- package/dist/webcomponents/p-C6o0liMT.js +0 -1
- package/dist/webcomponents/p-CXIRxyAr.js +0 -1
- package/dist/webcomponents/p-CXZRiaUw.js +0 -1
- package/dist/webcomponents/p-CYH0JCan.js +0 -1
- package/dist/webcomponents/p-CZTtbCDg.js +0 -1
- package/dist/webcomponents/p-Ce_W43gc.js +0 -1
- package/dist/webcomponents/p-CmmWlVnF.js +0 -1
- package/dist/webcomponents/p-CpGEMRkH.js +0 -1
- package/dist/webcomponents/p-CqiVXthx.js +0 -1
- package/dist/webcomponents/p-D8GTwl9v.js +0 -1
- package/dist/webcomponents/p-DMB1dln7.js +0 -1
- package/dist/webcomponents/p-DSclFZ32.js +0 -1
- package/dist/webcomponents/p-DYHjzFnJ.js +0 -1
- package/dist/webcomponents/p-Dm07nLGs.js +0 -1
- package/dist/webcomponents/p-DnaE803u.js +0 -1
- package/dist/webcomponents/p-Dsm1jN-a.js +0 -1
- package/dist/webcomponents/p-Dw63wyhO.js +0 -1
- package/dist/webcomponents/p-DyPk4BJt.js +0 -1
- package/dist/webcomponents/p-IcPtYL88.js +0 -1
- package/dist/webcomponents/p-XQGYXcNa.js +0 -1
- package/dist/webcomponents/p-b36bdd5e.entry.js +0 -1
- package/dist/webcomponents/p-b6c45aa2.entry.js +0 -1
- package/dist/webcomponents/p-bpbC1knu.js +0 -1
- package/dist/webcomponents/p-c902503d.entry.js +0 -1
- package/dist/webcomponents/p-e3021e22.entry.js +0 -1
- package/dist/webcomponents/p-e7cfee5a.entry.js +0 -1
- package/dist/webcomponents/p-f3977cfe.entry.js +0 -1
- package/dist/webcomponents/p-jIDKmNHy.js +0 -1
- package/dist/webcomponents/p-rpFC83GL.js +0 -1
- package/dist/webcomponents/p-uZ5KAseb.js +0 -1
|
@@ -1,18 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { ComponentErrorEvent } from "../../../api";
|
|
1
3
|
export declare class CardForm {
|
|
2
|
-
|
|
4
|
+
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
3
5
|
iframeOrigin: string;
|
|
4
6
|
tabId: string;
|
|
7
|
+
iframeState: 'loading' | 'ready' | 'error';
|
|
5
8
|
private cardNumberIframeElement;
|
|
6
9
|
private expirationMonthIframeElement;
|
|
7
10
|
private expirationYearIframeElement;
|
|
8
11
|
private cvvIframeElement;
|
|
12
|
+
private loadAbortController?;
|
|
9
13
|
componentWillLoad(): Promise<void>;
|
|
10
|
-
|
|
14
|
+
componentDidLoad(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
11
16
|
validate(): Promise<any>;
|
|
12
17
|
tokenize({ clientId, paymentMethodMetadata, account, }: {
|
|
13
18
|
clientId: string;
|
|
14
19
|
paymentMethodMetadata: any;
|
|
15
20
|
account?: string;
|
|
16
21
|
}): Promise<any>;
|
|
22
|
+
private get isReady();
|
|
23
|
+
private get iframeElements();
|
|
24
|
+
private watchIframesLoad;
|
|
25
|
+
private reloadIframes;
|
|
26
|
+
private renderIframeError;
|
|
17
27
|
render(): any;
|
|
18
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useBridgedFakeTimers: () => () => void;
|
|
@@ -6,6 +6,7 @@ import { CheckoutChangedEventDetail, SelectedPaymentMethod, Hook } from "./Modul
|
|
|
6
6
|
export declare class JustifiModularCheckout {
|
|
7
7
|
analytics: JustifiAnalytics;
|
|
8
8
|
private observer?;
|
|
9
|
+
private unsubscribeCheckoutChanges?;
|
|
9
10
|
private paymentMethodFormRef?;
|
|
10
11
|
private billingFormRef?;
|
|
11
12
|
private insuranceFormRef?;
|
|
@@ -500,6 +500,7 @@ export namespace Components {
|
|
|
500
500
|
"iframeOrigin": string;
|
|
501
501
|
"inputId": string;
|
|
502
502
|
"label": string;
|
|
503
|
+
"reload": () => Promise<void>;
|
|
503
504
|
"tokenize": (clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string) => Promise<any>;
|
|
504
505
|
"validate": () => Promise<any>;
|
|
505
506
|
}
|
|
@@ -1125,6 +1126,10 @@ export interface AdditionalQuestionsFormStepCustomEvent<T> extends CustomEvent<T
|
|
|
1125
1126
|
detail: T;
|
|
1126
1127
|
target: HTMLAdditionalQuestionsFormStepElement;
|
|
1127
1128
|
}
|
|
1129
|
+
export interface BankAccountFormCustomEvent<T> extends CustomEvent<T> {
|
|
1130
|
+
detail: T;
|
|
1131
|
+
target: HTMLBankAccountFormElement;
|
|
1132
|
+
}
|
|
1128
1133
|
export interface BusinessBankAccountFormStepCustomEvent<T> extends CustomEvent<T> {
|
|
1129
1134
|
detail: T;
|
|
1130
1135
|
target: HTMLBusinessBankAccountFormStepElement;
|
|
@@ -1145,6 +1150,10 @@ export interface BusinessTermsConditionsFormStepCustomEvent<T> extends CustomEve
|
|
|
1145
1150
|
detail: T;
|
|
1146
1151
|
target: HTMLBusinessTermsConditionsFormStepElement;
|
|
1147
1152
|
}
|
|
1153
|
+
export interface CardFormCustomEvent<T> extends CustomEvent<T> {
|
|
1154
|
+
detail: T;
|
|
1155
|
+
target: HTMLCardFormElement;
|
|
1156
|
+
}
|
|
1148
1157
|
export interface CustomPopperCustomEvent<T> extends CustomEvent<T> {
|
|
1149
1158
|
detail: T;
|
|
1150
1159
|
target: HTMLCustomPopperElement;
|
|
@@ -1403,7 +1412,18 @@ declare global {
|
|
|
1403
1412
|
prototype: HTMLBankAccountDocumentFormInputsElement;
|
|
1404
1413
|
new (): HTMLBankAccountDocumentFormInputsElement;
|
|
1405
1414
|
};
|
|
1415
|
+
interface HTMLBankAccountFormElementEventMap {
|
|
1416
|
+
"error-event": ComponentErrorEvent1;
|
|
1417
|
+
}
|
|
1406
1418
|
interface HTMLBankAccountFormElement extends Components.BankAccountForm, HTMLStencilElement {
|
|
1419
|
+
addEventListener<K extends keyof HTMLBankAccountFormElementEventMap>(type: K, listener: (this: HTMLBankAccountFormElement, ev: BankAccountFormCustomEvent<HTMLBankAccountFormElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1420
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1421
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1422
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1423
|
+
removeEventListener<K extends keyof HTMLBankAccountFormElementEventMap>(type: K, listener: (this: HTMLBankAccountFormElement, ev: BankAccountFormCustomEvent<HTMLBankAccountFormElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1424
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1425
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1426
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1407
1427
|
}
|
|
1408
1428
|
var HTMLBankAccountFormElement: {
|
|
1409
1429
|
prototype: HTMLBankAccountFormElement;
|
|
@@ -1577,7 +1597,18 @@ declare global {
|
|
|
1577
1597
|
prototype: HTMLCardBillingFormSimpleElement;
|
|
1578
1598
|
new (): HTMLCardBillingFormSimpleElement;
|
|
1579
1599
|
};
|
|
1600
|
+
interface HTMLCardFormElementEventMap {
|
|
1601
|
+
"error-event": ComponentErrorEvent1;
|
|
1602
|
+
}
|
|
1580
1603
|
interface HTMLCardFormElement extends Components.CardForm, HTMLStencilElement {
|
|
1604
|
+
addEventListener<K extends keyof HTMLCardFormElementEventMap>(type: K, listener: (this: HTMLCardFormElement, ev: CardFormCustomEvent<HTMLCardFormElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1605
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1606
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1607
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1608
|
+
removeEventListener<K extends keyof HTMLCardFormElementEventMap>(type: K, listener: (this: HTMLCardFormElement, ev: CardFormCustomEvent<HTMLCardFormElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1609
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1610
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1611
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1581
1612
|
}
|
|
1582
1613
|
var HTMLCardFormElement: {
|
|
1583
1614
|
prototype: HTMLCardFormElement;
|
|
@@ -2946,6 +2977,7 @@ declare namespace LocalJSX {
|
|
|
2946
2977
|
"storeFiles": (e: CustomEvent<FileSelectEvent>) => void;
|
|
2947
2978
|
}
|
|
2948
2979
|
interface BankAccountForm {
|
|
2980
|
+
"onError-event"?: (event: BankAccountFormCustomEvent<ComponentErrorEvent1>) => void;
|
|
2949
2981
|
}
|
|
2950
2982
|
interface BankAccountFormInputs {
|
|
2951
2983
|
"defaultValue": any;
|
|
@@ -3058,6 +3090,7 @@ declare namespace LocalJSX {
|
|
|
3058
3090
|
"legend"?: string;
|
|
3059
3091
|
}
|
|
3060
3092
|
interface CardForm {
|
|
3093
|
+
"onError-event"?: (event: CardFormCustomEvent<ComponentErrorEvent1>) => void;
|
|
3061
3094
|
}
|
|
3062
3095
|
interface CoreInfoDetails {
|
|
3063
3096
|
"business": Business;
|
|
@@ -50,11 +50,9 @@ export interface CheckoutState {
|
|
|
50
50
|
disablePaymentMethodGroup: boolean;
|
|
51
51
|
paymentToken?: string;
|
|
52
52
|
}
|
|
53
|
-
declare const initialState: IInitialState;
|
|
54
53
|
declare const checkoutStore: IInitialState, onChange: import("@stencil/store/dist/types").OnChangeHandler<IInitialState>;
|
|
55
54
|
export declare function getAvailablePaymentMethodTypes(): PAYMENT_METHODS[];
|
|
56
55
|
export declare function isNewCardSelected(): boolean;
|
|
57
56
|
export declare function getCheckoutState(): CheckoutState;
|
|
58
57
|
export { checkoutStore as checkoutStore, onChange };
|
|
59
|
-
|
|
60
|
-
export declare function onAnyChange(callback: (key: StoreKey, value: (typeof initialState)[StoreKey]) => void): void;
|
|
58
|
+
export declare function onAnyChange(callback: () => void): () => void;
|
|
@@ -14,10 +14,12 @@ export declare class IframeInput {
|
|
|
14
14
|
disconnectedCallback(): void;
|
|
15
15
|
validate(): Promise<any>;
|
|
16
16
|
tokenize(clientId: string, paymentMethodMetadata: IPaymentMethodMetadata, account?: string): Promise<any>;
|
|
17
|
+
reload(): Promise<void>;
|
|
17
18
|
private initializeFrameCommunicationService;
|
|
18
19
|
private dispatchMessageEvent;
|
|
19
20
|
private get part();
|
|
20
21
|
private get style();
|
|
21
22
|
private get urlParams();
|
|
23
|
+
private get iframeSrc();
|
|
22
24
|
render(): any;
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as
|
|
1
|
+
import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as i}from"./p-DCwSevh5.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{k as s,C as d,b as o}from"./p-8fO8CrtQ.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{g as c,a as r}from"./p-D1H6VUbM.js";import{h,b as l,d as b}from"./p-Ds_P-dB8.js";import{a as f,b as n,D as p,c as v,C as u,E as y}from"./p-Bh6Q8AqQ.js";import{J as m}from"./p-BpFSR2PV.js";import{m as k,M as g}from"./p-Co3Rtlnu.js";import{c as j}from"./p-DwLofzXZ.js";import{B as C}from"./p-CU2Dwa94.js";import{S as w}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as D}from"./p-eBK-iWrz.js";import{a as x,B as S}from"./p-Dz8KJn2G.js";import"./p-C1x6dkgs.js";import"./p-DlhPMNzz.js";import"./p-DgTOxu8x.js";import"./p-Bu7gdOaV.js";const T=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(D,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(D,{width:"70%"})),e("div",{class:"col-12"},e(D,{width:"40%"})),e("div",{class:"col-12"},e(D,{width:"40%"})),e("div",{class:"col-12"},e(D,{width:"100%"})),e("div",{class:"col-12"},e(D,{width:"80%"}))),A=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){j(),this.analytics=new m(this),this.initializeServices(),this.getPayout&&this.fetchData()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeServices()}getPayoutWatcher(){this.fetchData()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:e,authToken:t,service:a})=>async({onSuccess:i,onError:o})=>{var h;try{const l=await a.fetchPayout(e,t);l.error?o({error:r(l.error),code:c(null===(h=l.error)||void 0===h?void 0:h.code),severity:d.ERROR}):i(new s(l.data))}catch(e){o({error:r(e),code:c(null==e?void 0:e.code),severity:d.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new i}),this.getPayoutCSV=k({authToken:this.authToken,service:new i})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:o.MISSING_PROPS,severity:d.ERROR}))}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":h(e)}render(){var t,a,i,s;return e(w,{key:"da86ceeb41265056f9bc64c07b3bd7db4a91471c"},this.loading&&e(T,{key:"49ae2848db4a5b59770c2b84bfba745861573a6d"}),!this.loading&&this.errorMessage&&y(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"b4e6740d49ae1099f28ea3d6f21fe0da48149c71",errorMessage:this.errorMessage},e(f,{key:"e9efbeeb7894996f318d90fb38826a6a9e4cc4b3",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},g(null===(t=this.payout)||void 0===t?void 0:t.status),e(x,"expedited"===this.payout.settlement_priority?{variant:S.WARNING,title:"Expedited",text:"Expedited"}:{variant:S.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(n,{key:"feb913d2b90e86fb4f5575379e9b9a47adfa723f",classes:"border-1 border-end",title:"Updated At",value:`${l(this.payout.updated_at)} ${b(this.payout.updated_at)}`}),e(n,{key:"9fe6da08323735948f145a72a02db26a6eb31f02",classes:"border-1 border-end",title:"Created At",value:`${l(this.payout.created_at)} ${b(this.payout.created_at)}`}),e(n,{key:"d01c4b7ea7c966b524026a6e97c0575466de3f74",title:"ID",value:this.payout.id}),e("div",{key:"4c4f73e5898caedbb1b7aba326dbfb0dcfbb59e6",class:"m-4"},e(C,{key:"622a6e8384da37f4bb3896bcafea46ef697b140e",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"9b9271663673dc2e78e89bec5c7c9c47daa6761e",slot:"detail-sections"},e(p,{key:"ac5c6e1c09e63cd0616794b7df367a73889e37b2",sectionTitle:"Details"}),e("div",{key:"95f9d5a0097499fdb24f44ea87313c3b34a96068",class:"d-flex flex-column gap-2 w-100"},e(v,{key:"ecf60d4a4783c8fb52e10222dd4f6e9935cd0910",title:"Date paid",value:l(this.payout.deposits_at)}),e(v,{key:"289971a08641bc2dc725d603ef611291025cd6b4",title:"Statement Description",value:this.payout.description}),e(v,{key:"d237aacbeb9b23ac0d45aa978350aad4824b0695",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(v,{key:"744ef2b8878b742483750fb921ca9790f6aa9ec1",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(v,{key:"dbf3327510523afc6edd78ea2926f99593da9748",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(p,{key:"15983342dbe916770291f33226b744e8c4c1129e",sectionTitle:"Account"}),e("div",{key:"b3fb4353794dc490633a14abcc829ff0835d989f",class:"d-flex flex-column gap-2 w-100"},e(v,{key:"665fbe47e3b35c0b7ffb3e6c17e15c3703c90250",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(v,{key:"5b15d5bc8a63541ac8d77eddccb47c89659fd05a",title:"Account Type",value:null===(a=this.payout.bank_account)||void 0===a?void 0:a.account_type}),e(v,{key:"947043e3571f27a672060f2101296daba0073727",title:"Institution",value:null===(i=this.payout.bank_account)||void 0===i?void 0:i.account_type}),e(v,{key:"74ac687b37c7ca91a88863730560333c41b9413c",title:"Routing Number",value:null===(s=this.payout.bank_account)||void 0===s?void 0:s.routing_number}),e(v,{key:"43cd9aa5ac45f6efba97901e3e1386446065c28a",title:"Account Number",value:this.payout.bank_account?`**** ${this.payout.bank_account.account_number_last4}`:void 0})),this.payout.metadata&&[e(p,{key:"8bf04ae43a08d8ef624357f64df900a11b8f2dad",sectionTitle:"Metadata"}),e("div",{key:"1bf737734f34f626cbfb9dd878afbb91b6f01913",class:"d-table gap-2 w-100"},e(u,{key:"0d1481e1823e9b2f28328ebfb3cd1c92c6342cc6",metadata:this.payout.metadata}))])))}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"],getPayout:["getPayoutWatcher"]}}};export{A as justifi_payout_details}
|
|
@@ -0,0 +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 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as o}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-CV0Pyo1O.js";import{r as o}from"./p-Bu7gdOaV.js";import{S as a}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";const s=class{constructor(t){e(this,t)}render(){return t(a,{key:"526c90a231cf9132798d1135da9eb3cf7c1e0dde",class:"payment-method"},t("div",{key:"189394f898e9d907af6209982e2150e672e90622",class:"radio-list-item p-3",part:o,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"291e6f6e165daf7a6c0b8f9077e7b8b1fbd9a3df",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{s as payment_method_option}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{S as a}from"./p-05AWudQe.js";import{T as r,a as i,b as o,c as d,d as h,e as n,f as c,g as p,h as l,i as m,j as f,k as u,l as b}from"./p-DZr0wLGh.js";import{T as g}from"./p-CZfYo5-1.js";import{c as y}from"./p-DwLofzXZ.js";import{a6 as v,a7 as w}from"./p-Bu7gdOaV.js";import{a as j}from"./p-Ds_P-dB8.js";import"./p-B4vLfYnZ.js";import{f as T,p as k,C,b as _}from"./p-8fO8CrtQ.js";import{p as O}from"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{B as D,a as P}from"./p-Dz8KJn2G.js";import"./p-HXpYMWUU.js";import{g as S,a as x}from"./p-D1H6VUbM.js";import{A as B}from"./p-C1x6dkgs.js";import{J as I}from"./p-BpFSR2PV.js";import{o as A,g as L}from"./p-DUtecvro.js";import"./p-MPer3Rw7.js";import"./p-DlhPMNzz.js";import"./p-DgTOxu8x.js";const q={created_at:()=>t("th",{part:v,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:v,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:v,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:v,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:v,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:v,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:v,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:v,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},z={created_at:(e,s)=>t("td",{part:w(s)},t("div",{class:"fw-bold"},j(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},j(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:w(s)},t("div",{class:"fw-bold"},j(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},j(e.updated_at,{showTime:!0}))),order_status:(e,s)=>t("td",{part:w(s)},t(P,Object.assign({},{submitted:{variant:D.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:D.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:D.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:D.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:D.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:D.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,s)=>t("td",{part:w(s)},e.business_id),company_name:(e,s)=>t("td",{part:w(s)},e.company_name),provider:(e,s)=>t("td",{part:w(s)},e.provider),order_type:(e,s)=>{let a;return e.order_type===T.boardingOnly?a="Boarding Only":e.order_type===T.boardingShipping&&(a="Boarding & Shipping"),t("td",{part:w(s)},a)},quantity:(e,s)=>t("td",{part:w(s)},e.terminals.length)},E=B();class M{async fetchTerminalOrders(t,e,s){return E.get({endpoint:"terminals/orders",params:s,headers:{account:t},authToken:e})}}const 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,updated_at,order_status,quantity",this.terminalOrders=[],this.loading=!0,this.paging=O,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const s=this.terminalOrders.find((t=>t.id===e));this.clickEvent.emit({name:g.row,data:s})}}componentWillLoad(){y(),this.analytics=new I(this),this.terminalOrdersTable=new r(this.terminalOrders,this.columns,q,z),this.initializeGetData(),this.getTerminalOrders&&this.fetchData(),A("set",(()=>{this.pagingParams={}})),A("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}authPropChanged(){this.initializeGetData(),this.getTerminalOrders&&this.fetchData()}pagingOrColumnsChanged(){this.getTerminalOrders&&this.fetchData()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:t,authToken:e,service:s})=>async({params:a,onSuccess:r,onError:i,final:o})=>{var d,h;try{const o=await s.fetchTerminalOrders(t,e,a);if(o.error)return i({error:x(o.error),code:S(null===(h=o.error)||void 0===h?void 0:h.code),severity:C.ERROR});{const t=Object.assign({},o.page_info);r({terminalOrders:(null===(d=o.data)||void 0===d?void 0:d.map((t=>new k(t))))||[],pagingInfo:t})}}catch(t){const e=S(null==t?void 0:t.code);return i({error:t.message||t,code:e,severity:C.ERROR})}finally{o()}})({id:this.accountId,authToken:this.authToken,service:new M}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:_.MISSING_PROPS,message:this.errorMessage,severity:C.ERROR}))}fetchData(){this.getTerminalOrders&&(this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:e})=>{this.terminalOrders=t,this.paging=e,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s})},final:()=>{this.loading=!1}}))}get terminalOrderParams(){const t=L();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(a,{key:"14c0dfe45a6833251f4c2d1d27ea49568f7ac01e"},t(i,{key:"7995d0b2ccb002265769804aa112dca1178d14dd"},t(o,{key:"ddfb54945255a1ae601659b5dee46da8e7fbfb52"},t(d,{key:"26958541cd82e414d9b079ac18ff69022969a4b8"},t(h,{key:"1068214ddc3e0003bab2212c0baff74c7e086b96"},this.terminalOrdersTable.columnData.map((t=>t)))),t(n,{key:"7b043e72311e7c956855320b7293a33e41f08da2"},t(c,{key:"b2532063645be1e926cfd7dca5b33414d09e5703",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),t(p,{key:"ceec3f0f885e1377afdf36ca2714ebac9b6f7bfc",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),t(l,{key:"2c35baac2f8902e8bf96844f17f57104ba253986",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((e,s)=>t(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},e)))),this.paging&&t(f,{key:"f5e1fe9ba78d5cee96e044c60ffaabe45ff3d19d"},t(u,{key:"ab8c1111b2a1124ba3f0b0bf2deb5893cf4c4ce5"},t(b,{key:"d463b0e2db8c5d093b38816d78c9176e302fe2c0",colSpan:this.terminalOrdersTable.columnData.length},t("pagination-menu",{key:"364dfccaa8480e63e51fa3bbdbf4cbb560e9fbbf",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["authPropChanged"],authToken:["authPropChanged"],pagingParams:["pagingOrColumnsChanged"],columns:["pagingOrColumnsChanged"]}}};export{U as justifi_terminal_orders_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r}from"./p-CV0Pyo1O.js";import{J as o}from"./p-BpFSR2PV.js";import{c as s}from"./p-DwLofzXZ.js";import{w as a}from"./p-B4vLfYnZ.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import"./p-DlhPMNzz.js";import"./p-C1x6dkgs.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-8fO8CrtQ.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-DgTOxu8x.js";const i=class{constructor(r){t(this,r)}async componentWillLoad(){await a(),s(),this.analytics=new o(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.cardFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:r,account:o}){return this.cardFormElement.tokenize({clientId:t,paymentMethodMetadata:r,account:o})}render(){return r(p,{key:"e8591312a00d22c68812fda0b56a125ffd763e01"},r("card-form",{key:"e987ea9f3bcd2bf0aa8b2c6749bff3b902f20519",ref:t=>this.cardFormElement=t}))}};export{i as justifi_card_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i,r as s,c as t}from"./p-CV0Pyo1O.js";import{a9 as e,a8 as r,a1 as o,t as l}from"./p-
|
|
1
|
+
import{h as i,r as s,c as t}from"./p-CV0Pyo1O.js";import{a9 as e,a8 as r,a1 as o,t as l}from"./p-Bu7gdOaV.js";import{S as d}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{c as a}from"./p-DwLofzXZ.js";import{J as n}from"./p-BpFSR2PV.js";import{o as h,C as c,p as u,f as v,b as p}from"./p-8fO8CrtQ.js";import{B as m}from"./p-CfYe14W-.js";import{B as f}from"./p-DaDqgDrb.js";import{m as w}from"./p-CMvr3y5s.js";import{S as g}from"./p-eBK-iWrz.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import{g as x,a as y}from"./p-D1H6VUbM.js";import{T as b}from"./p-5_w3jWjY.js";import{k as j}from"./p-Ds_P-dB8.js";import"./p-DlhPMNzz.js";import"./p-C1x6dkgs.js";import"./p-DgTOxu8x.js";const S=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(g,{width:"25%"})),i("div",{class:"col-12"},i(g,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(g,{width:"50%"}),i(g,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(g,{width:"65%"}),i(g,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(g,{width:"40%",height:"40px"})),i(S,null)),C=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(g,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(g,null),i(g,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(g,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(g,{width:"80px",height:"32px"}),i(g,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(g,null),i(g,null)))))),O=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submit-event",7),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new u({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?v.boardingShipping:v.boardingOnly}),a(),this.analytics=new n(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",p.MISSING_PROPS,c.ERROR)}initializeGetBusiness(){w({id:this.businessId,authToken:this.authToken,service:new m})({onSuccess:({business:i})=>{this.business=new f(i)},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t)},final:()=>{this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,a;try{const n=await t.fetchTerminalModels(i,s);if(n.error)return r({error:y(n.error),code:x(null===(a=n.error)||void 0===a?void 0:a.code),severity:c.ERROR});e({terminals:(null===(l=null===(o=n.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new h(i))))||[],orderLimit:null===(d=n.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:c.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new b})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:y(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:c.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:c.ERROR})}})({authToken:this.authToken,service:new b});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,null)))}renderBusinessDetails(){var s,t,o,l,d,a,n,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(a=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===a?void 0:a.email),i("div",null,j(null===(h=null===(n=this.business)||void 0===n?void 0:n.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"1fd8c50ac4e22bb2aac46ed0379f4740737e9760"},i("div",{key:"caed839c05af25c7bcd6599c45cd5058491a1ba9",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{O as justifi_order_terminals}
|