@justifi/webcomponents 6.4.0 → 6.4.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/bank-account-document-form-inputs_6.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-BO_NdUB_.js → check-pkg-version-goSFbVFL.js} +1 -1
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_3.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_3.cjs.entry.js +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/{justifi-bank-account-billing-form-simple_9.cjs.entry.js → internal-tokenize-payment-method_7.cjs.entry.js} +254 -138
- package/dist/cjs/{justifi-apple-pay_8.cjs.entry.js → justifi-apple-pay_7.cjs.entry.js} +3 -258
- package/dist/cjs/justifi-bank-account-billing-form-simple_3.cjs.entry.js +147 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +24 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CvqCkafe.js → package-jZDXnKmY.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/tokenize-payment-method/internal-tokenize-payment-method.js +626 -0
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +25 -355
- package/dist/collection/ui-components/custom-popper/custom-popper.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-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
- package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
- package/dist/docs.json +546 -117
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-BkjjtNUQ.js → badge-Bgosx-DC.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_6.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business-additional-questions-schema-hZ6O6Bs0.js → business-additional-questions-schema-QFJEOHF5.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-DJvIo0oa.js → business-identity-schema-DB_Hhjld.js} +1 -1
- package/dist/esm/{button-DHljyr0K.js → button-DBmjN7Ra.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-B6jUXpX3.js → check-pkg-version-CPDwCVPS.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +5 -5
- package/dist/esm/{checkouts-table-Dn1sFyZs.js → checkouts-table-lgbZpF1o.js} +2 -2
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +3 -3
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-Cje0veu2.js → form-control-error-text-B5LSdUXI.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-ClJnecm3.js → form-control-help-text-BK9RNOf-.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_3.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-uiFiNrVs.js → header-1-CPF3S2CC.js} +1 -1
- package/dist/esm/{header-3-BVYYTpLc.js → header-3-Cah707hu.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-iJs0LRg_.js → insurance-state-DRe0g_wf.js} +1 -1
- package/dist/esm/internal-tokenize-payment-method_7.entry.js +460 -0
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +6 -6
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +2 -2
- package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
- package/dist/esm/{justifi-apple-pay_8.entry.js → justifi-apple-pay_7.entry.js} +9 -263
- package/dist/esm/justifi-bank-account-billing-form-simple_3.entry.js +143 -0
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-order-terminals.entry.js +4 -4
- package/dist/esm/justifi-owner-form_3.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payments-list.entry.js +6 -6
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +6 -6
- package/dist/esm/justifi-refund-payment.entry.js +5 -5
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminal-orders-list.entry.js +5 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +5 -5
- package/dist/esm/justifi-tokenize-payment-method.entry.js +22 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BeukOaOq.js → package-B3SPy-II.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-Dj_zevuD.js → parts-wtuY7MT2.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +5 -5
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +6 -6
- package/dist/esm/{payments-status-DK2me5T2.js → payments-status-Dypl6WFL.js} +1 -1
- package/dist/esm/{payments-table-DxRdl7-E.js → payments-table-CK9BRZEz.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +6 -6
- package/dist/esm/payouts-list-core.entry.js +6 -6
- package/dist/esm/{payouts-status-BfEM6F8q.js → payouts-status-hTCBgpLW.js} +1 -1
- package/dist/esm/{payouts-table-C2binjIW.js → payouts-table-Dd8IDBBX.js} +2 -2
- package/dist/esm/{schema-validations-C0qp3ZJ5.js → schema-validations-B5sfox_4.js} +1 -1
- package/dist/esm/{skeleton-DdynMBnt.js → skeleton-BmRZRW5K.js} +1 -1
- package/dist/esm/{spinner-BRMSkfVc.js → spinner-tU4D9iak.js} +1 -1
- package/dist/esm/{table-DYlsfkCm.js → table-Cjq1A6mO.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +5 -5
- package/dist/esm/{terminal-orders-table-zf0ASRCr.js → terminal-orders-table-CMWBIr9y.js} +2 -2
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/terminals-list-core.entry.js +5 -5
- package/dist/esm/{terminals-table-DNUTk3gi.js → terminals-table-D9okETJr.js} +2 -2
- package/dist/esm/{utils-DUz-H1tG.js → utils-BX7Rjm1M.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Refund.js +1 -1
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/billing-form-schema.js +1 -1
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-response-actions.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/form-control-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-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/get-business.js +1 -1
- package/dist/module/get-payment-details.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/internal-tokenize-payment-method.d.ts +11 -0
- package/dist/module/internal-tokenize-payment-method.js +6 -0
- package/dist/module/{tokenize-payment-method.js → internal-tokenize-payment-method2.js} +8 -8
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-checkout.js +37 -37
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +2 -2
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.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-details.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 +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- 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-method.js +166 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/modular-checkout.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/plaid-payment-method.js +1 -1
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/utils4.js +1 -1
- package/dist/types/components/checkout/checkout.d.ts +1 -1
- package/dist/types/components/tokenize-payment-method/internal-tokenize-payment-method.d.ts +60 -0
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -45
- package/dist/types/components.d.ts +94 -52
- package/dist/webcomponents/p-0082f428.entry.js +1 -0
- package/dist/webcomponents/{p-89ff96ef.entry.js → p-01c9c76c.entry.js} +1 -1
- package/dist/webcomponents/{p-85bbadaf.entry.js → p-0389ea61.entry.js} +1 -1
- package/dist/webcomponents/{p-589e4fcb.entry.js → p-05351f0d.entry.js} +1 -1
- package/dist/webcomponents/{p-32af1830.entry.js → p-07e85954.entry.js} +1 -1
- package/dist/webcomponents/{p-e050b917.entry.js → p-087a81ff.entry.js} +1 -1
- package/dist/webcomponents/{p-56d9a8f1.entry.js → p-0ce046fd.entry.js} +1 -1
- package/dist/webcomponents/{p-62cdb2b1.entry.js → p-1193a1ac.entry.js} +1 -1
- package/dist/webcomponents/{p-e34a6e5f.entry.js → p-14d2f6c6.entry.js} +1 -1
- package/dist/webcomponents/{p-2976c54e.entry.js → p-1b94c32d.entry.js} +1 -1
- package/dist/webcomponents/{p-198a6ae3.entry.js → p-1edec396.entry.js} +1 -1
- package/dist/webcomponents/{p-065eafc5.entry.js → p-20a8b0c0.entry.js} +1 -1
- package/dist/webcomponents/{p-3cb3a241.entry.js → p-22f74666.entry.js} +1 -1
- package/dist/webcomponents/p-24c22851.entry.js +1 -0
- package/dist/webcomponents/p-2769f945.entry.js +1 -0
- package/dist/webcomponents/p-30f61f44.entry.js +1 -0
- package/dist/webcomponents/p-3c38cec5.entry.js +1 -0
- package/dist/webcomponents/p-4488378e.entry.js +1 -0
- package/dist/webcomponents/{p-20ccd0a4.entry.js → p-44e021e3.entry.js} +1 -1
- package/dist/webcomponents/{p-82b13550.entry.js → p-45936490.entry.js} +1 -1
- package/dist/webcomponents/{p-abf2073d.entry.js → p-4761e0aa.entry.js} +1 -1
- package/dist/webcomponents/{p-91f22211.entry.js → p-4c3eea2b.entry.js} +1 -1
- package/dist/webcomponents/{p-27acf7cc.entry.js → p-4dcbc0af.entry.js} +1 -1
- package/dist/webcomponents/{p-46d7ca2f.entry.js → p-4e23116c.entry.js} +4 -4
- package/dist/webcomponents/p-4ed1fc3b.entry.js +1 -0
- package/dist/webcomponents/{p-52cb10a7.entry.js → p-58ae4f9e.entry.js} +1 -1
- package/dist/webcomponents/p-6550b836.entry.js +1 -0
- package/dist/webcomponents/{p-5c847406.entry.js → p-6d06ea25.entry.js} +1 -1
- package/dist/webcomponents/{p-590290a2.entry.js → p-716ddc27.entry.js} +1 -1
- package/dist/webcomponents/{p-9633fbb8.entry.js → p-7218c312.entry.js} +1 -1
- package/dist/webcomponents/{p-83cd698c.entry.js → p-75c65531.entry.js} +1 -1
- package/dist/webcomponents/{p-d217f6ea.entry.js → p-800660f2.entry.js} +1 -1
- package/dist/webcomponents/p-84e2bd93.entry.js +1 -0
- package/dist/webcomponents/{p-6677f09f.entry.js → p-8681f258.entry.js} +1 -1
- package/dist/webcomponents/{p-e788ecc9.entry.js → p-89518b26.entry.js} +1 -1
- package/dist/webcomponents/p-8bfd15af.entry.js +1 -0
- package/dist/webcomponents/{p-e29bdbc2.entry.js → p-9d914297.entry.js} +1 -1
- package/dist/webcomponents/{p-5eb2698f.entry.js → p-9f70ce93.entry.js} +1 -1
- package/dist/webcomponents/p-B-0a8Xqm.js +1 -0
- package/dist/webcomponents/p-B3SPy-II.js +1 -0
- package/dist/webcomponents/{p-D2DVDmwd.js → p-BNqo3kt0.js} +1 -1
- package/dist/webcomponents/{p-B-7rLJIB.js → p-BTzt8N0l.js} +1 -1
- package/dist/webcomponents/{p-CeO5d98O.js → p-BiizzRhw.js} +1 -1
- package/dist/webcomponents/{p-C9Ho60F2.js → p-BitGlMSc.js} +1 -1
- package/dist/webcomponents/p-Bli6WznP.js +1 -0
- package/dist/webcomponents/{p-DkOvNRJs.js → p-Bqlcv3ZV.js} +1 -1
- package/dist/webcomponents/p-BuCKkdLM.js +1 -0
- package/dist/webcomponents/{p-BB3MQDQq.js → p-BydKIJVC.js} +1 -1
- package/dist/webcomponents/p-C-2kW6Al.js +1 -0
- package/dist/webcomponents/{p-D8HCCl2t.js → p-CkN7DFFn.js} +1 -1
- package/dist/webcomponents/{p-O4_LrrnE.js → p-D1WQG4I7.js} +1 -1
- package/dist/webcomponents/{p-Cu1FEdFr.js → p-DOLBAxYf.js} +1 -1
- package/dist/webcomponents/{p-fDGfMEwy.js → p-DkOiS6Zr.js} +1 -1
- package/dist/webcomponents/{p-BVWZSqCK.js → p-KPmnq8xf.js} +1 -1
- package/dist/webcomponents/{p-28c28c0b.entry.js → p-a655b996.entry.js} +1 -1
- package/dist/webcomponents/p-a793d1bd.entry.js +1 -0
- package/dist/webcomponents/{p-256a95eb.entry.js → p-a8f7cf9b.entry.js} +1 -1
- package/dist/webcomponents/{p-98508ff0.entry.js → p-ad8b9fba.entry.js} +1 -1
- package/dist/webcomponents/{p-0214a9f4.entry.js → p-ae62e01d.entry.js} +1 -1
- package/dist/webcomponents/{p-8993c961.entry.js → p-ae7a027b.entry.js} +1 -1
- package/dist/webcomponents/{p-1414e80b.entry.js → p-aec9185f.entry.js} +1 -1
- package/dist/webcomponents/{p-DopgIZQg.js → p-avgjSJ1d.js} +1 -1
- package/dist/webcomponents/{p-aee79310.entry.js → p-b3e0c981.entry.js} +1 -1
- package/dist/webcomponents/p-b4d8a3f6.entry.js +1 -0
- package/dist/webcomponents/{p-220420bb.entry.js → p-bd10429d.entry.js} +1 -1
- package/dist/webcomponents/{p-q6C7btl0.js → p-bolTb61p.js} +1 -1
- package/dist/webcomponents/{p-2a53a095.entry.js → p-c1831747.entry.js} +1 -1
- package/dist/webcomponents/p-c3b71a1f.entry.js +1 -0
- package/dist/webcomponents/{p-4e90834e.entry.js → p-c7279bc6.entry.js} +1 -1
- package/dist/webcomponents/p-c7MCfTgE.js +1 -0
- package/dist/webcomponents/{p-e06327aa.entry.js → p-c8f40375.entry.js} +1 -1
- package/dist/webcomponents/{p-c6edc4c9.entry.js → p-d2bb462e.entry.js} +1 -1
- package/dist/webcomponents/{p-58a68ad6.entry.js → p-d3e4697f.entry.js} +1 -1
- package/dist/webcomponents/{p-728158a8.entry.js → p-d4b8274f.entry.js} +1 -1
- package/dist/webcomponents/{p-9d6ceb95.entry.js → p-d89c166f.entry.js} +1 -1
- package/dist/webcomponents/p-dc0d3484.entry.js +1 -0
- package/dist/webcomponents/{p-Bo278yZD.js → p-dgG_o6wN.js} +1 -1
- package/dist/webcomponents/{p-f02ab3fd.entry.js → p-e2e6c201.entry.js} +1 -1
- package/dist/webcomponents/{p-89f1448c.entry.js → p-e3f6c3c4.entry.js} +1 -1
- package/dist/webcomponents/{p-238859ef.entry.js → p-eb56ba9b.entry.js} +1 -1
- package/dist/webcomponents/{p-9fb66685.entry.js → p-ebb73921.entry.js} +1 -1
- package/dist/webcomponents/{p-0d928de1.entry.js → p-ed55d333.entry.js} +1 -1
- package/dist/webcomponents/p-edcb84bf.entry.js +1 -0
- package/dist/webcomponents/{p-9db64da8.entry.js → p-f1af630f.entry.js} +1 -1
- package/dist/webcomponents/{p-6023553c.entry.js → p-f5fb1af2.entry.js} +1 -1
- package/dist/webcomponents/{p-79cb28bd.entry.js → p-fab28b02.entry.js} +1 -1
- package/dist/webcomponents/{p-DsR5Dt9w.js → p-jTVpG8Gt.js} +1 -1
- package/dist/webcomponents/{p-DwLZbA7D.js → p-nrZ9yHcl.js} +1 -1
- package/dist/webcomponents/{p-Dj_zevuD.js → p-wtuY7MT2.js} +1 -1
- package/dist/webcomponents/p-zNSPsvs3.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +0 -342
- package/dist/webcomponents/p-06a0e2e2.entry.js +0 -1
- package/dist/webcomponents/p-0bd7b871.entry.js +0 -1
- package/dist/webcomponents/p-2859a8e3.entry.js +0 -1
- package/dist/webcomponents/p-336b08de.entry.js +0 -1
- package/dist/webcomponents/p-36259848.entry.js +0 -1
- package/dist/webcomponents/p-6b563428.entry.js +0 -1
- package/dist/webcomponents/p-77884032.entry.js +0 -1
- package/dist/webcomponents/p-8dab7768.entry.js +0 -1
- package/dist/webcomponents/p-BeukOaOq.js +0 -1
- package/dist/webcomponents/p-C2gAiiwJ.js +0 -1
- package/dist/webcomponents/p-C7m-gAAM.js +0 -1
- package/dist/webcomponents/p-CO8ZJ0jB.js +0 -1
- package/dist/webcomponents/p-CgbXzEbz.js +0 -1
- package/dist/webcomponents/p-JvWiY69B.js +0 -1
- package/dist/webcomponents/p-VhOlg78I.js +0 -1
- package/dist/webcomponents/p-a49ca7d8.entry.js +0 -1
- package/dist/webcomponents/p-cdf94860.entry.js +0 -1
- package/dist/webcomponents/p-d287dea1.entry.js +0 -1
- package/dist/webcomponents/p-d8fc3996.entry.js +0 -1
- package/dist/webcomponents/p-de7f1479.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-DwYM91AU.js";import{P as e}from"./p-C9_8N76_.js";import{m as r}from"./p-Do561C8g.js";import{E as o}from"./p-BNqo3kt0.js";import{C as p,a as h}from"./p-Cjcsf8ku.js";import{c as a,J as n}from"./p-BiizzRhw.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-CPKSE7M4.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-D2muobcE.js";import"./p-wtuY7MT2.js";import"./p-B3SPy-II.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.recordClickEvent=s(this,"record-click-event"),this.errorMessage=null,this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.handleRecordClickEvent=t=>{this.recordClickEvent.emit({id:t.detail.id,type:t.detail.type})}}componentWillLoad(){a(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=r({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:p.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent,"onRecord-click-event":this.handleRecordClickEvent,"enable-record-click":"true"})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_payment_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-DwYM91AU.js";import{c as t,a as i,F as c}from"./p-DiJD6Iqx.js";import{an as d}from"./p-Dj_zevuD.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:"c3458b13a7a265c9538725f706febf90251beb0e"},a("div",{key:"f8df4f3ae70640acf11f5c803ae1f77f1f501b48",class:"row gy-3"},a("div",{key:"4d92037e9cb588c137bac7a505d35764de1fc83e",class:"col-12"},a("h2",{key:"6cbf7f95a025011299aa0612e9c28c87f4fb6553",class:"h5",part:d},"Additional Evidence")),a("div",{key:"36d990b686e17568dffe11529582638cb5e1e812",class:"col-12"},a("form-control-textarea",{key:"c75f3f622ecfcf142d003e1af09f81794d4f6a1d",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:"d6da0f0922e5c1ba99dbef034b9a8d8817739899",class:"col-12"},a("form-control-file-v2",{key:"0e333a243b510fbe96bf874fa523ea9e4d7bfa6f",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:"bd78bece625aec456d3433cc20bff08c16ae147a"},a("div",{key:"80b32adabf3205beb07609c2758ba8609f22cf87",class:"row gy-3"},a("div",{key:"baa7766e30f6d9a9be7d2194d07e2fd53e859642",class:"col-12"},a("h2",{key:"bb1bb5a301dfaa5f4ce3cdcef84ff987088f2933",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"47fd127e97420bcc5aca04e6cdf2067edd7d9a97",class:"col-12"},a("form-control-textarea",{key:"c85dd2dc03c872e96c052e347bb698c9c8f17b3b",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:"e070c23f89b84d414992b842107531136b2541a6",class:"col-12"},a("form-control-textarea",{key:"0c3acec921d25929feb496f810a1745debc440fb",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:"d40087a09150c9e801b6499604b71b48019a33b7",class:"col-12"},a("form-control-file-v2",{key:"75c6d00c7a29c60bd81ab2f187f901d6fbe522d1",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:"4f66d1737416342483855947c8d0bc84633efd1a"},a("div",{key:"0a7be5af6e92d56bf58ceb5e1a5269163f8a5eef",class:"row gy-3"},a("div",{key:"0ae8574e9228b7cee09f33595f901a216fad571c",class:"col-12"},a("h2",{key:"9a025c901262dc362e048a72f3f5d17eaa8bc7a4",class:"h5",part:d},"Customer Details")),a("div",{key:"8d651d6a4f9f3ebc519e3fd8b6cd03da452f7a5e",class:"col-12"},a("form-control-text",{key:"00b3d5ffef1d253b75cdba11c26c05fc4b3d3e7d",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:"3494745d7843208abe678662359cf1612b035d2d",class:"col-12"},a("form-control-text",{key:"b6822a0f33dab183f717e58b68cd1c95445a62c8",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:"86f9e759614375d50238fa26756ceac0ebd3d55c",class:"col-12"},a("form-control-textarea",{key:"e86f3fcc5a5f31cf46b67d53ee282b16232c0016",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:"bda34fee75daeaf9ac91758a096febabe98ddf14",class:"col-12"},a("form-control-file-v2",{key:"49c40325d8478296a6da2f124114a7a06d29b4c6",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:"8f1b66a41596a3606b5c2f2a0c94844f11aa4b27",class:"col-12"},a("form-control-file-v2",{key:"c5c539c9f9cf799a1043330e657a6064510e59ba",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:"68152308257c9331e3e3e1b8141922634390c91d"},a("div",{key:"0ff743d3d260272e98f9d9c9219e1465de1c7516",class:"row gy-3"},a("div",{key:"c02a18a34320cc8b4574b65f378b8a54207eb01c",class:"col-12"},a("h2",{key:"254ae07ed42f2c61fed3b0be8cd02f928ac64f92",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"dfd97f7c5817bcd14458e4d390736b79651c29db",class:"col-12"},a("form-control-text",{key:"76c551ab0641c3ebb78c40cdb78bb184911033c9",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:"1edd78dcefbe32156f27e924e5b032a016dbffc5",class:"col-12"},a("form-control-textarea",{key:"556829c59b797a79b8bd31d3add791819a2ef84a",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:"183a68bf83924559e0032af6a43308466944fdcb",class:"col-12"},a("form-control-file-v2",{key:"fa3817f0e2e8ff17d5cdd142ccabc0e539a48d38",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:"677a04d0eb6000066063a68bfe85d286c5c207fa"},a("div",{key:"b231437fc879fa2c24474c498eba17edd34128a3",class:"row gy-3"},a("div",{key:"d0cf03d9f5e2de19f63e47fd42f0bec710d44bd1",class:"col-12"},a("h2",{key:"5343dcbeffdaa14e4605944eef18c5ebf1418a20",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"a4b816038465b14e4078b13d46543280b212c676",class:"col-12"},a("form-control-text",{key:"8cebdd64857d99b8058013df9a10ac007869b998",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:"637f3221604b415b8ea5c04af800a72dbfa40c4b",class:"col-12"},a("form-control-file-v2",{key:"89b3db82c57b8673124369e915efa4f0ec3927a8",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:"ae1fdf1a29d12408c3be84b02dcd058cb4c7849b"},a("div",{key:"499977f5ad1d9bcbddb749b556539cd1b641d3e8",class:"row gy-3"},a("div",{key:"1318ffbe476b9b0cb662b85f3bc670c66e97f8f5",class:"col-12"},a("h2",{key:"58bf1ca5a29f3a4942b249f7d35f60f4f9976b62",class:"h5",part:d},"Product & Service Details")),a("div",{key:"957203535d86a521d5d702d0d85eb09201deab3a",class:"col-12"},a("form-control-text",{key:"b02101dd7b3e22b06feea75f451fca6ac1496851",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:"5eddaf6586b22c516f5fd48943cfd6f4a7bb83ce",class:"col-12"},a("form-control-date",{key:"bbc3a6d58d6f7e123d08802ca933135603476cca",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:"4d810ce7ffdd4aec9fb8d1ce81aa8cc23aacb8f7",class:"col-12"},a("form-control-file-v2",{key:"c3d029eb2da6364df611604b6956a285dcde63ca",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:"d5afb26778b8e72bb914c964ab03490887149ef7"},a("div",{key:"58c0472396b62c36304fc5b05400ea1e92106d48",class:"row gy-3"},a("div",{key:"0178337b922c635efd5967da10ffb9a4fcf974e3",class:"col-12"},a("h2",{key:"754263a51e6d0dd4a0b42205855446194a01fbde",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"3d618f3d5c73ac55275d189b16b8d0ee2eaf56b4",class:"col-12"},a("form-control-textarea",{key:"42d90a550814a48fdd3bcb5fc8a18dfa3739512d",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:"108c2376a1680468000d83a31753cd2e1a2143f4",class:"col-12"},a("form-control-textarea",{key:"7b1db2802760357080a7cd004bc322cc644c1741",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:"f1c140d81063c530b5f2c9df8a78cd7edad56482",class:"col-12"},a("form-control-file-v2",{key:"6d7fc6f84f8a3af171e344d1a05d465d144bd6b5",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:"aefdff678a562ea84dd20f2855045ad1e2be2e65",class:"col-12"},a("form-control-file-v2",{key:"c745a8ca84affd92d6590d4c2ccc0ca11ba71bd6",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:"12761f4d70524d91bfc9ad614d2235a1f7ff9fb2"},a("div",{key:"f09f1107bd01120198dd8b5fac777494720be56e",class:"row gy-3"},a("div",{key:"2533b4452bada515f9b4d116521122989ca010b8",class:"col-12"},a("h2",{key:"56d3d7c5361dbdc23e98608ca2296532d1d9b9f9",class:"h5",part:d},"Shipping Details")),a("div",{key:"fd93a97d9829d7aa5999b8c90e769da63f1e5e75",class:"col-12"},a("form-control-text",{key:"0121bfaedb5a3ad33cb71ff4af667099b0fed28c",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:"17def8633c36b773387bf770f203584c01d78d56",class:"col-12"},a("form-control-text",{key:"23a511ccca24f322f56876f31f1c70699808106f",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:"18e25d53629ec3d0096f9ed53a3a6c92e0e746b9",class:"col-12"},a("form-control-date",{key:"fcdb6e192c8dda9e31e97fd1b6d0e9c74e86712f",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:"dd2c4332df4a13bab91e26770845c2ad62b4e5ab",class:"col-12"},a("form-control-textarea",{key:"855a2b47ea8363befc57b5a8533d5aac1f18e00e",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:"880ed83f7ef2e3c4aba497c8906c9b39d0f3b922",class:"col-12"},a("form-control-file-v2",{key:"78815509ec89c00074326d5752f77797c4b47746",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
1
|
+
import{r as e,h as a}from"./p-DwYM91AU.js";import{c as t,a as i,F as c}from"./p-DiJD6Iqx.js";import{ao as d}from"./p-wtuY7MT2.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:"c3458b13a7a265c9538725f706febf90251beb0e"},a("div",{key:"f8df4f3ae70640acf11f5c803ae1f77f1f501b48",class:"row gy-3"},a("div",{key:"4d92037e9cb588c137bac7a505d35764de1fc83e",class:"col-12"},a("h2",{key:"6cbf7f95a025011299aa0612e9c28c87f4fb6553",class:"h5",part:d},"Additional Evidence")),a("div",{key:"36d990b686e17568dffe11529582638cb5e1e812",class:"col-12"},a("form-control-textarea",{key:"c75f3f622ecfcf142d003e1af09f81794d4f6a1d",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:"d6da0f0922e5c1ba99dbef034b9a8d8817739899",class:"col-12"},a("form-control-file-v2",{key:"0e333a243b510fbe96bf874fa523ea9e4d7bfa6f",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:"bd78bece625aec456d3433cc20bff08c16ae147a"},a("div",{key:"80b32adabf3205beb07609c2758ba8609f22cf87",class:"row gy-3"},a("div",{key:"baa7766e30f6d9a9be7d2194d07e2fd53e859642",class:"col-12"},a("h2",{key:"bb1bb5a301dfaa5f4ce3cdcef84ff987088f2933",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"47fd127e97420bcc5aca04e6cdf2067edd7d9a97",class:"col-12"},a("form-control-textarea",{key:"c85dd2dc03c872e96c052e347bb698c9c8f17b3b",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:"e070c23f89b84d414992b842107531136b2541a6",class:"col-12"},a("form-control-textarea",{key:"0c3acec921d25929feb496f810a1745debc440fb",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:"d40087a09150c9e801b6499604b71b48019a33b7",class:"col-12"},a("form-control-file-v2",{key:"75c6d00c7a29c60bd81ab2f187f901d6fbe522d1",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:"4f66d1737416342483855947c8d0bc84633efd1a"},a("div",{key:"0a7be5af6e92d56bf58ceb5e1a5269163f8a5eef",class:"row gy-3"},a("div",{key:"0ae8574e9228b7cee09f33595f901a216fad571c",class:"col-12"},a("h2",{key:"9a025c901262dc362e048a72f3f5d17eaa8bc7a4",class:"h5",part:d},"Customer Details")),a("div",{key:"8d651d6a4f9f3ebc519e3fd8b6cd03da452f7a5e",class:"col-12"},a("form-control-text",{key:"00b3d5ffef1d253b75cdba11c26c05fc4b3d3e7d",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:"3494745d7843208abe678662359cf1612b035d2d",class:"col-12"},a("form-control-text",{key:"b6822a0f33dab183f717e58b68cd1c95445a62c8",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:"86f9e759614375d50238fa26756ceac0ebd3d55c",class:"col-12"},a("form-control-textarea",{key:"e86f3fcc5a5f31cf46b67d53ee282b16232c0016",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:"bda34fee75daeaf9ac91758a096febabe98ddf14",class:"col-12"},a("form-control-file-v2",{key:"49c40325d8478296a6da2f124114a7a06d29b4c6",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:"8f1b66a41596a3606b5c2f2a0c94844f11aa4b27",class:"col-12"},a("form-control-file-v2",{key:"c5c539c9f9cf799a1043330e657a6064510e59ba",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:"68152308257c9331e3e3e1b8141922634390c91d"},a("div",{key:"0ff743d3d260272e98f9d9c9219e1465de1c7516",class:"row gy-3"},a("div",{key:"c02a18a34320cc8b4574b65f378b8a54207eb01c",class:"col-12"},a("h2",{key:"254ae07ed42f2c61fed3b0be8cd02f928ac64f92",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"dfd97f7c5817bcd14458e4d390736b79651c29db",class:"col-12"},a("form-control-text",{key:"76c551ab0641c3ebb78c40cdb78bb184911033c9",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:"1edd78dcefbe32156f27e924e5b032a016dbffc5",class:"col-12"},a("form-control-textarea",{key:"556829c59b797a79b8bd31d3add791819a2ef84a",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:"183a68bf83924559e0032af6a43308466944fdcb",class:"col-12"},a("form-control-file-v2",{key:"fa3817f0e2e8ff17d5cdd142ccabc0e539a48d38",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:"677a04d0eb6000066063a68bfe85d286c5c207fa"},a("div",{key:"b231437fc879fa2c24474c498eba17edd34128a3",class:"row gy-3"},a("div",{key:"d0cf03d9f5e2de19f63e47fd42f0bec710d44bd1",class:"col-12"},a("h2",{key:"5343dcbeffdaa14e4605944eef18c5ebf1418a20",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"a4b816038465b14e4078b13d46543280b212c676",class:"col-12"},a("form-control-text",{key:"8cebdd64857d99b8058013df9a10ac007869b998",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:"637f3221604b415b8ea5c04af800a72dbfa40c4b",class:"col-12"},a("form-control-file-v2",{key:"89b3db82c57b8673124369e915efa4f0ec3927a8",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:"ae1fdf1a29d12408c3be84b02dcd058cb4c7849b"},a("div",{key:"499977f5ad1d9bcbddb749b556539cd1b641d3e8",class:"row gy-3"},a("div",{key:"1318ffbe476b9b0cb662b85f3bc670c66e97f8f5",class:"col-12"},a("h2",{key:"58bf1ca5a29f3a4942b249f7d35f60f4f9976b62",class:"h5",part:d},"Product & Service Details")),a("div",{key:"957203535d86a521d5d702d0d85eb09201deab3a",class:"col-12"},a("form-control-text",{key:"b02101dd7b3e22b06feea75f451fca6ac1496851",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:"5eddaf6586b22c516f5fd48943cfd6f4a7bb83ce",class:"col-12"},a("form-control-date",{key:"bbc3a6d58d6f7e123d08802ca933135603476cca",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:"4d810ce7ffdd4aec9fb8d1ce81aa8cc23aacb8f7",class:"col-12"},a("form-control-file-v2",{key:"c3d029eb2da6364df611604b6956a285dcde63ca",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:"d5afb26778b8e72bb914c964ab03490887149ef7"},a("div",{key:"58c0472396b62c36304fc5b05400ea1e92106d48",class:"row gy-3"},a("div",{key:"0178337b922c635efd5967da10ffb9a4fcf974e3",class:"col-12"},a("h2",{key:"754263a51e6d0dd4a0b42205855446194a01fbde",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"3d618f3d5c73ac55275d189b16b8d0ee2eaf56b4",class:"col-12"},a("form-control-textarea",{key:"42d90a550814a48fdd3bcb5fc8a18dfa3739512d",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:"108c2376a1680468000d83a31753cd2e1a2143f4",class:"col-12"},a("form-control-textarea",{key:"7b1db2802760357080a7cd004bc322cc644c1741",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:"f1c140d81063c530b5f2c9df8a78cd7edad56482",class:"col-12"},a("form-control-file-v2",{key:"6d7fc6f84f8a3af171e344d1a05d465d144bd6b5",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:"aefdff678a562ea84dd20f2855045ad1e2be2e65",class:"col-12"},a("form-control-file-v2",{key:"c745a8ca84affd92d6590d4c2ccc0ca11ba71bd6",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:"12761f4d70524d91bfc9ad614d2235a1f7ff9fb2"},a("div",{key:"f09f1107bd01120198dd8b5fac777494720be56e",class:"row gy-3"},a("div",{key:"2533b4452bada515f9b4d116521122989ca010b8",class:"col-12"},a("h2",{key:"56d3d7c5361dbdc23e98608ca2296532d1d9b9f9",class:"h5",part:d},"Shipping Details")),a("div",{key:"fd93a97d9829d7aa5999b8c90e769da63f1e5e75",class:"col-12"},a("form-control-text",{key:"0121bfaedb5a3ad33cb71ff4af667099b0fed28c",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:"17def8633c36b773387bf770f203584c01d78d56",class:"col-12"},a("form-control-text",{key:"23a511ccca24f322f56876f31f1c70699808106f",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:"18e25d53629ec3d0096f9ed53a3a6c92e0e746b9",class:"col-12"},a("form-control-date",{key:"fcdb6e192c8dda9e31e97fd1b6d0e9c74e86712f",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:"dd2c4332df4a13bab91e26770845c2ad62b4e5ab",class:"col-12"},a("form-control-textarea",{key:"855a2b47ea8363befc57b5a8533d5aac1f18e00e",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:"880ed83f7ef2e3c4aba497c8906c9b39d0f3b922",class:"col-12"},a("form-control-file-v2",{key:"78815509ec89c00074326d5752f77797c4b47746",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,g as s,H as a}from"./p-DwYM91AU.js";import{S as r}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as n,J as d}from"./p-BiizzRhw.js";import{w as o,c}from"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{a as h,C as l}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as f}from"./p-DU8dqq9U.js";import{P as u}from"./p-DCIW8z1f.js";import{S as m}from"./p-c7MCfTgE.js";import{B as b}from"./p-Bqlcv3ZV.js";import{r as p}from"./p-wtuY7MT2.js";import"./p-B3SPy-II.js";import"./p-C8yN3uBj.js";import"./p-BS7OgSQe.js";import"./p-BYsgavgS.js";const y=class{constructor(i){t(this,i),this.radioClick=e(this,"radio-click"),this.checked=!1,this.hidden=!1,this.handleClick=()=>{this.radioClick.emit(this.value)}}render(){return i(r,{key:"1ae40f787970160e38b72f917bda96f480d2a890"},i("div",{key:"2130596c8294cc38365e6126806735da0f93ef4a",class:`radio-list-item p-3 ${this.class||""}`,part:p,onClick:this.handleClick,hidden:this.hidden},i("form-control-radio",{key:"7d5524f518430f2bfd1c9863f354318929353cfb",name:this.name,value:this.value,checked:this.checked,label:this.label,inputHandler:()=>null})))}},v={[u.NEW_BANK_ACCOUNT]:"New bank account",[u.NEW_CARD]:"New credit or debit card"},g="Payment form not ready",k="Validation error",w=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.computedHideSubmitButton=!1,this.isLoading=!1,this.submitButtonText="Submit"}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup(),this.unsubscribeFromStore&&this.unsubscribeFromStore()}componentWillLoad(){n(),this.analytics=new d(this)}handleRadioClick(t){this.selectedPaymentMethod=t.detail,f.selectedPaymentMethod={type:t.detail}}async fillBillingForm(t){var e;null===(e=this.billingFormRef)||void 0===e||e.fill(t)}async tokenizePaymentMethod(t){null==t||t.preventDefault(),this.validateRequiredProps(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:h.TOKENIZE_ERROR,message:k}),void(this.isLoading=!1);const t=await this.resolvePaymentMethod({isValid:!0});return t.error&&this.emitError({errorCode:t.error.code,message:t.error.message}),this.submitEvent.emit({response:t}),t}catch(t){const e=this.createErrorResponse(h.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:h.TOKENIZE_ERROR,message:t.message}),this.submitEvent.emit({response:e}),e}finally{this.isLoading=!1}}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:g}};const[t,e]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:t.isValid&&e.isValid,errors:Object.assign(Object.assign({},t.errors),e.errors)}}async tokenize(){try{const t=await this.billingFormRef.getValues(),e={clientId:this.authToken||f.authToken,account:this.accountId||f.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}validateRequiredProps(){this.authToken||f.authToken||this.emitError({errorCode:h.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||f.accountId||this.emitError({errorCode:h.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethod||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethod=u.NEW_BANK_ACCOUNT,f.selectedPaymentMethod={type:u.NEW_BANK_ACCOUNT}):(this.selectedPaymentMethod=u.NEW_CARD,f.selectedPaymentMethod={type:u.NEW_CARD}))}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const t=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=t}isSlottedWithinModularCheckout(){var t;let e=null===(t=this.host)||void 0===t?void 0:t.parentElement;for(;e;){if("JUSTIFI-MODULAR-CHECKOUT"===e.tagName)return!0;e=e.parentElement}return!1}get availablePaymentMethods(){const t=[];return this.disableCreditCard||t.push(u.NEW_CARD),this.disableBankAccount||t.push(u.NEW_BANK_ACCOUNT),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:l.ERROR}))}createErrorResponse(t,e){return{error:{code:t,message:e,decline_code:void 0}}}async resolvePaymentMethod(t){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",g);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||k;return{validationError:!0,error:{code:"validation_error",message:String(t),decline_code:void 0}}}return await this.performTokenization()}catch(t){return{error:t}}}async performTokenization(){var t,e;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(t=s.card)||void 0===t?void 0:t.token)||(null===(e=s.bank_account)||void 0===e?void 0:e.token),data:s}}buildPaymentMethodMetadata(t){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},t)}get paymentMethodGroupID(){return this.paymentMethodGroupId||f.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!f.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const e=this.selectedPaymentMethod===t&&void 0===f.selectedPaymentMethod.id;return i("div",{class:"payment-method"},i("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:e,label:v[t],hidden:this.shouldHideRadioInput}),e&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return i("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),i("div",{class:"mt-4"},i("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),i("div",{class:"mt-4"},i("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID,label:this.savePaymentMethodLabel})))}renderPaymentMethodForm(t){return i(t===u.NEW_CARD?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return i(r,{key:"e1ee33f08d3eaff9a2951bd30ef9814a5d959b35"},i("form",{key:"df73d7965968c0efc3ee2b35a9a85d551915e5a1"},i("fieldset",{key:"2967ed65f1c0af42082a8b7c255db5fdc1c78019"},i("div",{key:"f45b8e074f39ec6abefc8f7e30bdf0ae57b1272c",class:"row gy-3"},i("div",{key:"fe9c90b34d60802f4d0dc51863874151f4a17b2b",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),i("div",{key:"ff1b8332d70fe68c3d3140c5a173dd8b419b6a8e",class:"col-12"},i("justifi-button",{key:"bf2ced1a5164a9c9af2bf2c5b750c5f9734dc86b",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:t=>this.tokenizePaymentMethod(t),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return s(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}},j=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-end"},i(m,{height:"18px",width:"120px"}),i(m,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(m,{height:"18px",width:"110px"}),i(m,{height:"36px"}))))},C=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await o(),this.iframeOrigin=c.iframeOrigin,n(),this.analytics=new d(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((t=>new Promise((e=>{t.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){const t=await this.accountNumberIframeElement.validate(),e=await this.routingNumberIframeElement.validate();return t&&e}async tokenize({clientId:t,paymentMethodMetadata:e,account:i}){return this.accountNumberIframeElement.tokenize(t,e,i)}render(){return i(r,{key:"62431aba939585a8a341942d9847e8d491b0a658"},i(j,{key:"2da8452c73e52a6fc67d80e483c40a2d0dd276f9",isReady:this.isReady}),i("hidden-input",{key:"c34bc48ee7e1925ae272b5fe60fd362ddf2433eb"}),i("div",{key:"3fefe63e9f9c98d7e08e0ceac5df0f8008303aec",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"6c19ea238eb0bff6b245f2f39028d651438c55d0",class:"row mb-3"},i("iframe-input",{key:"b5588dc21d24ec873fecedd91fbcb0344fbe324c",inputId:"accountNumber",ref:t=>this.accountNumberIframeElement=t,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),i("div",{key:"910f130a307449a3d60ef76eee6cc27fc86c3fe0",class:"row"},i("iframe-input",{key:"72756b92912c3031cc472dee5bbf945f06c38920",inputId:"routingNumber",ref:t=>this.routingNumberIframeElement=t,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},M=class{constructor(e){t(this,e)}get showSimpleCardBillingForm(){return this.paymentMethodType===u.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===u.NEW_BANK_ACCOUNT&&this.hideBankAccountBillingForm}async getValues(){var t;return null===(t=this.selectedFormRef)||void 0===t?void 0:t.getValues()}async fill(t){var e;null===(e=this.selectedFormRef)||void 0===e||e.fill(t)}async validate(){var t;return null===(t=this.selectedFormRef)||void 0===t?void 0:t.validate()}render(){return i(a,null,i(this.showSimpleBankAccountBillingForm?"justifi-bank-account-billing-form-simple":this.showSimpleCardBillingForm?"justifi-card-billing-form-simple":"justifi-billing-form-full",{legend:this.legend,ref:t=>this.selectedFormRef=t}))}},x=class{constructor(e){t(this,e),this.variant="primary",this.type="button"}render(){return i(r,{key:"e3b353dac8bf4c078fed17a4854c6ee1891df140"},i(b,{key:"76bfcc8763775a3442fe7f8c307400c1fa829da0",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle},this.text))}},_=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(m,{height:"18px",width:"100px"}),i(m,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(m,{height:"18px",width:"80px"}),i(m,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(m,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(m,{height:"18px",width:"30px"}),i(m,{height:"36px"}))))},P=class{constructor(e){t(this,e),this.isReady=!1}async componentWillLoad(){await o(),this.iframeOrigin=c.iframeOrigin,n(),this.analytics=new d(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((t=>new Promise((e=>{t.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){const t=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),i=await this.expirationYearIframeElement.validate(),s=await this.cvvIframeElement.validate();return t&&e&&i&&s}async tokenize({clientId:t,paymentMethodMetadata:e,account:i}){return this.cardNumberIframeElement.tokenize(t,e,i)}render(){return i(r,{key:"0db53b1dace76a8e02bab9f65fdc70e20f440a62"},i(_,{key:"ea756f1799b01b81a678ce5bd2592551edd81211",isReady:this.isReady}),i("hidden-input",{key:"a6203630db26bfbb683e2b45174c79d753154eda"}),i("div",{key:"dbb6328ba3a27106474f6b9af6fc3c347b99ae7d",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"64055e42612ce94da35022d7e8314ed917f90f8a",class:"mb-3"},i("iframe-input",{key:"e99008d298b6ec6e22ff5a4e73042e3e8805f09b",inputId:"cardNumber",ref:t=>this.cardNumberIframeElement=t,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),i("div",{key:"34ed1849877a47fe6ec32f443472fa9c913dae67",class:"row"},i("div",{key:"39bfdd5c8dd6271315a09cd3022083fe4b45f5ea",class:"col-4 align-content-end"},i("iframe-input",{key:"981b65ebd142396312d09df8927fd5d08a5dea72",inputId:"expirationMonth",ref:t=>this.expirationMonthIframeElement=t,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),i("div",{key:"a6fee6c1cc609b665b3ba9935190a43a118c5e5c",class:"col-4 align-content-end"},i("iframe-input",{key:"257b738139e182dc6e9f6a6893f8b6a0bc3f6b69",inputId:"expirationYear",ref:t=>this.expirationYearIframeElement=t,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),i("div",{key:"523316b64f673cdf89b5d01c1ecf4cf25ccef246",class:"col-4 align-content-end"},i("iframe-input",{key:"37305b54e421d759ded57b0f9de7743a07be4b5b",inputId:"CVV",ref:t=>this.cvvIframeElement=t,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}},B=class{constructor(i){t(this,i),this.checkboxChanged=e(this,"checkboxChanged"),this.label="Save New Payment Method",this.isChecked=!1,this.handleCheckboxChange=(t,e)=>{this.isChecked=e,f.savePaymentMethod=e,this.checkboxChanged.emit(this.isChecked)}}render(){return i(r,{key:"9aa9ce812c0cb2fdc809c47060ed150903ad7cd5"},i("form-control-checkbox",{key:"596bc9a145e363c751c8610f4b9f23ad31dab299",label:this.label||"Save New Payment Method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange}))}};export{w as internal_tokenize_payment_method,C as justifi_bank_account_form,M as justifi_billing_form,x as justifi_button,P as justifi_card_form,y as justifi_radio_list_item,B as justifi_save_new_payment_method}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as s,h as t}from"./p-DwYM91AU.js";import{S as i}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-
|
|
1
|
+
import{r,c as s,h as t}from"./p-DwYM91AU.js";import{S as i}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-BiizzRhw.js";import{d as a}from"./p-jTVpG8Gt.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{i as c}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as d}from"./p-C8yN3uBj.js";import"./p-B3SPy-II.js";import"./p-wtuY7MT2.js";import"./p-BS7OgSQe.js";import"./p-DOLBAxYf.js";import"./p-BYsgavgS.js";const l=d();class u{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const f=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:a})=>{var p,d;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return o({error:h(a.error),code:m(null===(d=a.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);e({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"f89cb75d014a5d43c6766f0e0e7a572807c3df9f"},t("terminal-orders-list-core",{key:"c38fd6424ebca672c9577255d81b9e97712f3b9b",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{f as justifi_terminal_orders_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-DwYM91AU.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-Uqevvbqm.js";import{y as l,z as d,A as o,B as p}from"./p-
|
|
1
|
+
import{r as e,h as a}from"./p-DwYM91AU.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-Uqevvbqm.js";import{y as l,z as d,A as o,B as p}from"./p-wtuY7MT2.js";import{S as f}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{c}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";const b=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([e,a])=>{a&&(i[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:c.connected},{label:"Disconnected",value:c.disconnected},{label:"Unknown",value:c.unknown},{label:"Pending Configuration",value:c.pending_configuration},{label:"Archived",value:c.archived}]}render(){const e=Object.assign({},s);return a(f,{key:"572f99cbf9fe8b4b01a6e4e34575ba83f5c62f25"},a("table-filters-menu",{key:"21513ea58fa052e458af8a21691935cb9caed5f4",params:e,clearParams:r,part:l},a("div",{key:"6bfe4487288dacdb4c56651d7431cfffcf715755",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"9cba47fa96feb4d8cde9a54a7a98023d9b470f7a",class:"p-2"},a("form-control-text",{key:"4cf78e13a31c8f6b7efeca735d31fd298c0f465a",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:d})),a("div",{key:"1b3f105d54261c711b52d8730f99c7459c9d12e2",class:"p-2"},a("form-control-text",{key:"09f4d86fb281bd84c2a47446e4dc5b263c034d8e",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:o})),a("div",{key:"fb373b529881adee6b2bf3e3e55be3246623b956",class:"p-2"},a("form-control-select",{key:"373348087fe077b04bd76fbd3cd3d5ab85ca77b8",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status||"",disabled:!!this.terminalStatus,part:p})))))}};export{b as justifi_terminals_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-DwYM91AU.js";import{r as a}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-DwYM91AU.js";import{r as a}from"./p-wtuY7MT2.js";import{S as s}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";const o=class{constructor(t){e(this,t)}render(){return t(s,{key:"8885a071427ab2d9e6ae371f7706ada2e4f5e5bc",class:"payment-method"},t("div",{key:"1ccfb0f7ffa2f357117e749f6a80c203406718b5",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"785ee47041948799fedd4a49ce8982db04002f89",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{o as payment_method_option}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c,d as o,e as n,f as d,g as p,h as
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c,d as o,e as n,f as d,g as p,h as m,i as b,j as f,k as u,l as g}from"./p-BTzt8N0l.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-DkOiS6Zr.js";import{o as k,g as S}from"./p-Uqevvbqm.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-DOLBAxYf.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=S();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"7e7b972d8a3c58efc8fb40f1d624ada5a20e71ca"},e(r,{key:"e778996b05716c01f44b98da22f2fe3b58456454"},e(h,{key:"d01507e960cfc8bbc8d728817681fbfc4fb2e9b7"},e(c,{key:"278ca7b14f201c42bd31126fdb1da36832aea545"},this.terminalsTable.columnData.map((t=>t)))),e(o,{key:"7ed5c139ccc346e3e301298e036a9c0db60a5bed"},e(n,{key:"3abc3c6bcc4d197c7e854d607f5098798c6105f5",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(d,{key:"d802709566ad9f5273f07b2bc210e9ca20b6ab33",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(p,{key:"7a80f72254c005e10d82afe97c9e6ee0da21d887",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"72c9888413f02ca800bcbac63f98e266a2dd841d"},e(f,{key:"a56d4a7d580cdaf71466aa4b91b8d788baa9e377"},e(u,{key:"53b604f7db687d554e7e380b763fdc0b4f6ba6cd",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"fa44f5486ff2d194c6ee06246e34dda7b6add4ce",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as i}from"./p-DwYM91AU.js";import{C as o}from"./p-ZpPDShvP.js";import{r as s}from"./p-
|
|
1
|
+
import{r as t,c as e,h as a,H as i}from"./p-DwYM91AU.js";import{C as o}from"./p-ZpPDShvP.js";import{r as s}from"./p-wtuY7MT2.js";import"./p-HXpYMWUU.js";const d=class{constructor(a){t(this,a),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,d;return a(i,{key:"7374fc6d31ec0ebdb34cdd2b789fb931cb93216f",class:"payment-method"},a("div",{key:"b29b47faffcb10d90a811a255a707dfda8597317",class:"radio-list-item p-3",part:s,onClick:this.onPaymentMethodOptionClick},a("form-control-radio",{key:"82c2ebcb9d9b47c8a0a6a3a3e35d7e59a4b66ee7",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${o[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(d=this.paymentMethodOption)||void 0===d?void 0:d.acct_last_four}`})))}};export{d as justifi_saved_payment_method}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-DwYM91AU.js";import{c as s,F as a}from"./p-DiJD6Iqx.js";import{A as i,B as d,k as r,l,n as c,y as o}from"./p-avgjSJ1d.js";import{an as n}from"./p-wtuY7MT2.js";import{S as f}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{H as h}from"./p-C-2kW6Al.js";import{S as b}from"./p-B5rtFhtR.js";import"./p-BFTU3MAI.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";const m=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.required("Enter full name"),address_line1:c.nullable(),address_line2:l.nullable(),address_city:r.nullable(),address_state:d.nullable(),address_postal_code:i.nullable()}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t(f,{key:"2429d26c0338ec1732337718ca4e7693f30a0f8a"},t("div",{key:"774911ce7d594bc1f44c15060136356acc349cbb",part:n,class:"mt-4"},t("form",{key:"5c93f5a6af372fdf24a20870ef6ae69f554efec4"},t("fieldset",{key:"38ac8adb2592b7799825d63c4a8e9bde61510cd0"},this.legend&&t("legend",{key:"abbce27bb8ae2ef564b8aeef755050fc096cb81f"},this.legend),t("div",{key:"5a0350fe7f635600d746f1f3979757a045cc09f0",class:"row gy-3"},t("div",{key:"71aac995514b7fea7254204df825eb8b381e21c7",class:"col-12"},t("form-control-text",{key:"f33d26eddfc9f3d307e05a48afec9472213b2822",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})))))))}},u=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.required("Enter full name"),address_line1:c.required("Enter street address"),address_line2:l.nullable(),address_city:r.required("Enter city"),address_state:d.required("Select state"),address_postal_code:i.required("Enter postal code")})),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t(f,null,t("div",{part:n,class:"mt-4"},t(h,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State",options:b,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7})))))))}},p=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new a(s({name:o.nullable(),address_line1:c.nullable(),address_line2:l.nullable(),address_city:r.nullable(),address_state:d.nullable(),address_postal_code:i.required("Enter postal code")}))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t(f,{key:"406560bd86a894ec7d71ad6872ffedf200b7054d"},t("div",{key:"5a824cbbd8dcb85fd5a7fab93ddbedd5407ef82d",part:n},t("form",{key:"2aa1abdcf5428f26edc3db42fc68141765ef5b64"},t("fieldset",{key:"92844b0b69dda6f379a6509458dd67b2d6ec2c24"},this.legend&&t("legend",{key:"bc18d61d3f3d6b70bfece88dfaf540348099b252"},this.legend),t("div",{key:"63bc056fdfb6945eb00085ca1bf75fdb81741592",class:"row gy-3"},t("div",{key:"56af403876ad942fc13570a462aff682d5b9e24e",class:"col-12"},t("form-control-text",{key:"1478a6802dc5df7318e87f85bd069c6719af3372",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7})))))))}};export{m as justifi_bank_account_billing_form_simple,u as justifi_billing_form_full,p as justifi_card_billing_form_simple}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i,r as
|
|
1
|
+
import{h as i,r as t,H as e}from"./p-DwYM91AU.js";import{S as a}from"./p-c7MCfTgE.js";import{w as s,c}from"./p-tGDdRx0W.js";import{b as r}from"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-BYsgavgS.js";import"./p-HXpYMWUU.js";const d=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-end"},i(a,{height:"18px",width:"120px"}),i(a,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(a,{height:"18px",width:"110px"}),i(a,{height:"36px"}))))},n=class{constructor(i){t(this,i),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((i=>new Promise((t=>{i.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return i&&t}async tokenize(i,t,e){return this.accountNumberIframeElement.tokenize(i,t,e)}render(){return i(e,{key:"75a85f7b9ea4bf40b486706bce4b142821bf9f00"},i(d,{key:"ce957273b6ac57f4f0c636622cc9578582ceff43",isReady:this.isReady}),i("div",{key:"d269050f0fc66d7000096ccfb72a075342e0e91a",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"87285840b03837b7f12922257d6c8ca171db2d7d",class:"row mb-3"},i("iframe-input",{key:"d0ad5b047f1a4e51936ce79edc2d195bd781e4b2",inputId:"accountNumber",ref:i=>this.accountNumberIframeElement=i,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),i("div",{key:"eee0c473f0add87e7842a0a1f24bdd999fe21a77",class:"row"},i("iframe-input",{key:"dfaa618afdffabe07a290cdfe63c6f06b38f8ecf",inputId:"routingNumber",ref:i=>this.routingNumberIframeElement=i,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{n as bank_account_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i,r as e,H as a}from"./p-DwYM91AU.js";import{S as t}from"./p-
|
|
1
|
+
import{h as i,r as e,H as a}from"./p-DwYM91AU.js";import{S as t}from"./p-c7MCfTgE.js";import{w as s,c as d}from"./p-tGDdRx0W.js";import{b as c}from"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-BYsgavgS.js";import"./p-HXpYMWUU.js";const f=e=>{const{isReady:a}=e;return a?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(t,{height:"18px",width:"100px"}),i(t,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(t,{height:"18px",width:"80px"}),i(t,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(t,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(t,{height:"18px",width:"30px"}),i(t,{height:"36px"}))))},r=class{constructor(i){e(this,i),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=d.iframeOrigin,this.tabId=c()}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((i=>new Promise((e=>{i.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),t=await this.cvvIframeElement.validate();return i&&e&&a&&t}async tokenize(i,e,a){return this.cardNumberIframeElement.tokenize(i,e,a)}render(){return i(a,{key:"4867571cdff85823d48b139c1b6e591ff73ca426"},i(f,{key:"37b584aa3865acc9266500f734c7a10e49fa139d",isReady:this.isReady}),i("div",{key:"09b5e58ed9df060922e2579880b68f022cff2940",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"bd2f777339e421523cd92c402c4fc066cbde7053",class:"mb-3"},i("iframe-input",{key:"45b822e5878806ae47f88cf5aa54fe9ae5592eda",inputId:"cardNumber",ref:i=>this.cardNumberIframeElement=i,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}`})),i("div",{key:"c9e4d2afd2eef4377356114bc33f1cc29fea46b3",class:"d-flex align-items-start"},i("div",{key:"e846e807f6524b9fd6a29a0a0bd2fff74c68f11f",class:"flex-fill me-3"},i("iframe-input",{key:"d48a6f05d3ca1341d8060987b53318bf29db4881",inputId:"expirationMonth",ref:i=>this.expirationMonthIframeElement=i,label:"Exp. Month",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}`})),i("div",{key:"9127d9dc4ff3386db9060126a8b0ce2e2125a5c9",class:"flex-fill me-3"},i("iframe-input",{key:"ced08ea4750b594b87e19fd6e9ae49b2cb6caa72",inputId:"expirationYear",ref:i=>this.expirationYearIframeElement=i,label:"Exp. Year",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}`})),i("div",{key:"92e07ff8ee6004f64a1e062371fd749771cdb77d",class:"flex-fill"},i("iframe-input",{key:"487187ddfb9cea24cebc377950f33feb9222b299",inputId:"CVV",ref:i=>this.cvvIframeElement=i,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}`})))))}};export{r as card_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-DwYM91AU.js";import{c as a,J as s}from"./p-BiizzRhw.js";import{c as d}from"./p-DU8dqq9U.js";import{d as c}from"./p-wtuY7MT2.js";import{S as o}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{P as f}from"./p-DCIW8z1f.js";import"./p-B3SPy-II.js";import"./p-C8yN3uBj.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";const h=class{constructor(i){e(this,i),this.errorEvent=t(this,"error-event"),this.loadedEvent=t(this,"loaded"),this.submitEvent=t(this,"submit-event"),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.isSubmitting=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){a(),this.analytics=new s(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){this.isSubmitting=!1}checkoutError(e){console.error("[justifi-checkout] error-event received",null==e?void 0:e.detail),this.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==f.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){var t;d.billingFormFields=e,null===(t=this.tokenizePaymentMethodRef)||void 0===t||t.fillBillingForm(e)}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;this.isSubmitting=!0,null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return i(o,{key:"54f7a5421fd47dc1a307ff0d22fd1a85812b32c8"},i("justifi-modular-checkout",{key:"f58a6b93e113786cd70c88b3db6b81bbce7066fb",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},i("div",{key:"1d492a8d01aa93cde8466285086c71b20fc94b6f",class:"row gy-3 jfi-checkout-core"},i("div",{key:"09f029624390d249fd4ab9aceb1f3c42bb524633",class:"col-12",part:c},i("justifi-header",{key:"2e436a6abf5e94331f7642a688140c557aafc75a",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),i("section",{key:"2333962df211ea5d630fca7226c4cce890cfff7c"},i("justifi-checkout-summary",{key:"ac4ed83e68b9fe2483afc0efab05d946f7cbe2ab"}))),i("div",{key:"e9f7b0377382ac22ef9bab03e3874dfb511a07de",class:"col-12 mt-4"},i("slot",{key:"0fa44870ccca76cb7ba0241805b3febf709db5ca",name:"insurance"})),i("div",{key:"581704521e51194e4ea4bf6f7335045d5a2d85f1",class:"col-12 mt-4"},i("justifi-header",{key:"f710a6439ef64fffb6ee0d5d0da1631ebddc3dc2",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&i("justifi-header",{key:"31faf279ff8d2b8d4339dd48eea36fb305254bea",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),i("div",{key:"e1b9c40c75d479b628b764b68864d359aeeb64e7",class:"d-flex flex-column"},i("section",{key:"eaf49dafa87682e4767871327b03f117f79ac377"},i("div",{key:"f34d5c140e7af098cbc60fe0c14a66a983c0b34d"},i("justifi-saved-payment-methods",{key:"fb5722d0e222a6fa2bfd4680de5a71b8c0c3a514"}),this.availablePaymentMethods.includes(f.APPLE_PAY)&&i("div",{key:"30681e86e7565185aebc3518b18dd57cbd2ce87f",class:"mb-3"},i("justifi-apple-pay",{key:"740e20cf993892ee74e4a5c96a1b7e3105248c13"})),this.availablePaymentMethods.includes(f.SEZZLE)&&i("justifi-radio-list-item",{key:"8c4a8703be889d29ed0ab53d00f2a5a3735ae534",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)&&!this.disableBnpl&&i("justifi-radio-list-item",{key:"69fda81a664eb2b8908e277591a4a68881e97667",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("internal-tokenize-payment-method",{key:"da43ac60c5485d0332bb4f35b58e23267220ea25",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:"7fa25f365bcb34033259f7f00535c9e3fce357ab",class:"mt-4"},i("justifi-button",{key:"a22ef2c35ab02af5fff1caa0faeda89f4b2575c2",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:this.isSubmitting,isLoading:this.isSubmitting,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f,g as p,h as d,i as u,j as
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f,g as p,h as d,i as u,j as m,k as b,l as g}from"./p-BTzt8N0l.js";import{T as j}from"./p-CZfYo5-1.js";import{c as k,a as y}from"./p-CkN7DFFn.js";import{o as l,g as C}from"./p-DKGn-ILd.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-DOLBAxYf.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:j.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:j.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,k,y),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"a77ef0f8f5b4ddf7448815c9df38097e16a38794"},e(r,{key:"6408f3ec06f268f2f5b516fb2fe5e03dcce84bfc"},e(h,{key:"310864630e702965e885568c513d1d2d8f3805ea"},e(o,{key:"bee990fd0a1f8fbf5f21f41ce44f3d57a6bbffa6"},this.checkoutsTable.columnData.map((t=>t)))),e(c,{key:"1a5fd1a0b571205238ec365f0b9688d6abe95dc3"},e(n,{key:"df07de295c2a2b6674ed60ff55678a0f67665b15",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"faecb3005baf02ec425b369dcceff2de06e501eb",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(p,{key:"7d0e879b9e5595550a4cbd9c9948677106859e38",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"3fbdfe68348692e23333bae21fbaef261fe263d4"},e(m,{key:"4e39fd1f73d4b2f943f909fa8d640bf488fb5469"},e(b,{key:"f245bc167021ff3e1c7f139e31fe151064651dad",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"c9129910b8ffeda06c90ffaa32832b8186687de4",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as checkouts_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as e}from"./p-DwYM91AU.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{C as o,B as h,c as n}from"./p-B5rtFhtR.js";import{D as a}from"./p-
|
|
1
|
+
import{r as s,c as t,h as e}from"./p-DwYM91AU.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{C as o,B as h,c as n}from"./p-B5rtFhtR.js";import{D as a}from"./p-wtuY7MT2.js";import{S as c}from"./p-BP2sTIQV.js";import{H as d}from"./p-zNSPsvs3.js";import"./p-CZfYo5-1.js";import{B as p}from"./p-XYgDHrVL.js";const m=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.country=o.USA,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const e=new h(t.data);this.businessProvisioned=n(e),this.country=e.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO}),s()},onError:({error:t,code:e,severity:i})=>{this.errorEvent.emit({message:t,errorCode:e,severity:i}),s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:p.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}async componentWillLoad(){this.getBusiness&&await this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(c,{key:"058aaacf6c0fe49ef24e50b575247efb470c4254"},e("div",{key:"d4d329af8f8e4ccd8e7ddb2d7050797fe9ec5824",class:"row gap-3"},e(d,{key:"d2358393171311c9dd6b03ca3509e2775d784e4c",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"d7a8767e276c28c2ca0413ac0d1195cb98b9fe0b",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),e("div",{key:"37dc95f2e8785c0e2ac969294b86318d81237b0b",class:"d-flex justify-content-between align-items-center"},e("div",{key:"54e6fe77e63faf3b2ae725c349748cf9c34322b0",class:"d-flex align-items-center",part:a},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"aa3e1c621248f1daa48ae7e66dd76c03e0a9eb3c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{m as justifi_payment_provisioning_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s}from"./p-DwYM91AU.js";import{R as t}from"./p-wtuY7MT2.js";const r=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:t},s("span",{class:"visually-hidden"},"Loading...")));export{r as S}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={name:"@justifi/webcomponents",version:"6.4.2"};export{e as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s}from"./p-DwYM91AU.js";import{D as t,F as a,G as l,H as e}from"./p-
|
|
1
|
+
import{h as s}from"./p-DwYM91AU.js";import{D as t,F as a,G as l,H as e}from"./p-wtuY7MT2.js";const o=a=>s("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},s("p",{part:t},a)),c=t=>s("h2",{part:l,class:"mt-4 fs-5 border-bottom pb-3"},t.sectionTitle),r=({title:a,value:l,onClick:o})=>a&&l?s("div",{class:"row justify-content-between"},s("div",{class:"col-12 col-md-4"},s("span",{class:"fw-bold",part:t},a)),s("div",{class:"col-12 col-md-8 "+(o?"text-decoration-underline text-primary":""),style:{cursor:o?"pointer":"auto"},onClick:()=>o&&o()},s("span",{class:"text-wrap",part:o?e:t},l))):null,p=({title:a,value:e,classes:o})=>s("div",{class:`d-flex flex-column ${o}`},s("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:l},a),s("span",{class:"pt-2 ps-2 pe-2",part:t},e)),n=({title:l,slot:e,badge:o},c)=>s("div",{slot:e,class:"p-2"},s("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},s("h1",{class:"m-0",part:a},l),o),s("div",{class:"d-flex flex-row align-items-top",part:t},c)),i=({metadata:t})=>t&&Object.keys(t).length?s("div",{class:"mt-4"},s("pre",{class:"p-2","aria-label":"metadata content"},s("code",null,JSON.stringify(t,null,2)))):null;export{i as C,c as D,o as E,n as a,p as b,r as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{ap as a,aq as s,ar as e,as as r,at as l,au as c,av as n,aw as o,ax as p,ay as i}from"./p-wtuY7MT2.js";import{S as b}from"./p-B-0a8Xqm.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),m=(a,s)=>t("tr",Object.assign({part:r},a),s),j=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),w=(a,s)=>t("td",Object.assign({part:n},a),s),x=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:o,colSpan:s,style:{textAlign:"center"}},"No results")):null},S=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},f=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class A{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{A as T,d as a,j as b,g as c,h as d,f as e,x as f,S as g,m as h,y as i,O as j,w as k,u as l}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t}from"./p-
|
|
1
|
+
import{p as t}from"./p-B3SPy-II.js";import{A as s}from"./p-C8yN3uBj.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const n=async()=>{var s,i;if("undefined"!=typeof process&&("test"===(null===(s=process.env)||void 0===s?void 0:s.NODE_ENV)||(null===(i=process.env)||void 0===i?void 0:i.JEST_WORKER_ID)))return;const e=t.version,o=t.name,n=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(o),r=n.replace(/-rc.*/,""),a=e.split("."),c=n.split(".");a[0]!==c[0]&&console.warn(`The package ${o} is out of date. The latest version is ${r}. Please update.`)};export{o as J,n as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{M as a}from"./p-
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{M as a}from"./p-BydKIJVC.js";import{a as e}from"./p-BS7OgSQe.js";import{S as o,T as r}from"./p-wtuY7MT2.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={created_at:()=>t("th",{part:o,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:o,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:o,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:o,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:o,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:o,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:o,scope:"col",title:"The brand of the payment method"},"Card Brand")},n={created_at:(a,o)=>t("td",{part:r(o)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:r(e)},a.formattedPaymentAmount(a.amount)),status:(e,o)=>t("td",{part:r(o)},a(e.status)),payment_type:(a,e)=>t("td",{part:r(e)},a.payment_type),description:(a,e)=>t("td",{part:r(e)},a.description),payers_name:(a,e)=>t("td",{part:r(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:r(e)},a.last_four_digits),card_brand:(a,e)=>{var o,s,p;return t("td",{part:r(e)},(p=(null===(o=a.payment_method.card)||void 0===o?void 0:o.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{D as e}from"./p-wtuY7MT2.js";const r=r=>{const{helpText:m,name:o}=r;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:e},m):null};export{r as F}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s}from"./p-DwYM91AU.js";import{_ as r,af as a,ag as n}from"./p-
|
|
1
|
+
import{h as s}from"./p-DwYM91AU.js";import{_ as r,af as a,ag as n}from"./p-wtuY7MT2.js";const t=(t,o)=>s("button",Object.assign({class:`btn btn-${t.variant}`,onClick:t.clickHandler,part:`${{primary:a,secondary:r}[t.variant]} ${t.isLoading?n:""}`},t),t.isLoading?s("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},s("span",{class:"visually-hidden"},"Loading...")):o);export{t as B}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as r}from"./p-DwYM91AU.js";import{E as t}from"./p-wtuY7MT2.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./p-DwYM91AU.js";import{B as t,a}from"./p-
|
|
1
|
+
import{h as e}from"./p-DwYM91AU.js";import{B as t,a}from"./p-DOLBAxYf.js";var d;!function(e){e.SUCCEEDED="succeeded",e.AUTHORIZED="authorized",e.PENDING="pending",e.ACH_FAILED="achFailed",e.FAILED="failed",e.CANCELED="canceled",e.DISPUTED="disputed",e.DISPUTE_LOST="dispute_lost",e.FULLY_REFUNDED="fully_refunded",e.PARTIALLY_REFUNDED="partially_refunded"}(d||(d={}));const i=d=>e(a,Object.assign({},{succeeded:{variant:t.SUCCESS,title:"This payment was successfully captured",text:"Succeeded"},authorized:{variant:t.PRIMARY,title:"This card payment was authorized, but not captured. It could still succeed or fail.",text:"Authorized"},pending:{variant:t.PRIMARY,title:"This ACH payment was processed, but the funds have not settled. It could still succeed or fail.",text:"Pending"},achFailed:{variant:t.DANGER,title:"The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)",text:"ACH Failed"},failed:{variant:t.DANGER,title:"This card payment did not go through (it will not appear in a payout)",text:"Failed"},canceled:{variant:t.DANGER,title:"This payment was canceled",text:"Canceled"},disputed:{variant:t.WARNING,title:"The account holder disputed this payment. The amount has been returned and a fee assessed.",text:"Disputed"},dispute_lost:{variant:t.SECONDARY,title:"The cardholder has won the dispute.",text:"Dispute Lost"},fully_refunded:{variant:t.SECONDARY,title:"The full amount of this payment has been refunded",text:"Fully Refunded"},partially_refunded:{variant:t.SECONDARY,title:"A portion of this payment has been refunded",text:"Partially Refunded"}}[d]));export{i as M,d as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as o}from"./p-DwYM91AU.js";import{W as r}from"./p-wtuY7MT2.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{d as e,e as a}from"./p-BS7OgSQe.js";import{B as c,a as o}from"./p-
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{d as e,e as a}from"./p-BS7OgSQe.js";import{B as c,a as o}from"./p-DOLBAxYf.js";import{S as p,T as s}from"./p-wtuY7MT2.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,a as t}from"./p-DiJD6Iqx.js";import{k as a,l as n,n as s,q as i,u as r,v as l,p as o,e as d,x as m,y as c,z as p}from"./p-
|
|
1
|
+
import{c as e,a as t}from"./p-DiJD6Iqx.js";import{k as a,l as n,n as s,q as i,u as r,v as l,p as o,e as d,x as m,y as c,z as p}from"./p-avgjSJ1d.js";import{C as E}from"./p-B5rtFhtR.js";const _=r=>e(r?{line1:s.nullable(),line2:n.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:n.nullable(),city:a.required("Enter city"),state:t().required("Select state"),postal_code:i(E.USA).required("Enter postal code")}),b=r=>e(r?{line1:s.nullable(),line2:n.nullable(),city:a.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:n.nullable(),city:a.required("Enter city"),state:t().required("Select province"),postal_code:i(E.CAN).required("Enter postal code")}),f={[E.USA]:_,[E.CAN]:b},u=(a,n)=>n?(a=>e({name:c.required(`Enter ${a} name`),title:m.nullable(),email:d.nullable(),phone:o.nullable(),dob_full:l(a).nullable(),ssn_last4:t().nullable(),identification_number:r.nullable(),address:_(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:m.required(`Enter ${a} title`),email:d.required(`Enter ${a} email`),phone:o.required("Enter phone number"),dob_full:l(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:r,address:_(!1)}))(a),h=(a,n)=>n?(a=>e({name:c.required(`Enter ${a} name`),title:m.nullable(),email:d.nullable(),phone:o.nullable(),dob_full:l(a).nullable(),ssn_last4:t().nullable(),identification_number:p(E.CAN).nullable(),address:b(!0)}))(a):(a=>e({name:c.required(`Enter ${a} name`),title:m.required(`Enter ${a} title`),email:d.required(`Enter ${a} email`),phone:o.required("Enter phone number"),dob_full:l(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p(E.CAN),address:b(!1)}))(a),$={[E.USA]:u,[E.CAN]:h};export{_ as a,h as b,b as c,$ as d,f as e,u as i}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as a}from"./p-DwYM91AU.js";import{I as r,J as s,K as
|
|
1
|
+
import{h as a}from"./p-DwYM91AU.js";import{I as r,J as s,K as g,L as e,M as n,N as d,O as i,P as t,Q as b}from"./p-wtuY7MT2.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},u={default:b,primary:t,secondary:i,success:d,danger:n,warning:e,info:g,light:s,dark:r};return a("span",{class:l[o]||l.default,part:u[o]||u.default,title:f},p)};export{c as B,o as a}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{B as e,a as i}from"./p-
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{B as e,a as i}from"./p-DOLBAxYf.js";import{S as a,T as r}from"./p-wtuY7MT2.js";import{h as n}from"./p-BS7OgSQe.js";const o="nickname,provider_serial_number,status",c={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},s={nickname:(e,i)=>t("td",{part:r(i)},e.nickname),model_name:(e,i)=>t("td",{part:r(i)},e.model_name),id:(e,i)=>t("td",{part:r(i)},e.id),provider:(e,i)=>t("td",{part:r(i)},n(e.provider)),provider_serial_number:(e,i)=>t("td",{part:r(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:r(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:r(i)},e.sub_account_name),status:(a,n)=>t("td",{part:r(n)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:e.SECONDARY,title:"This terminal is archived",text:"Archived"}}[a.status])))};export{s as a,o as d,c as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-DwYM91AU.js";import{a}from"./p-BS7OgSQe.js";import{M as e}from"./p-
|
|
1
|
+
import{h as t}from"./p-DwYM91AU.js";import{a}from"./p-BS7OgSQe.js";import{M as e}from"./p-bolTb61p.js";import{S as o,T as s}from"./p-wtuY7MT2.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},l=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{l as a,p as d,r as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as
|
|
1
|
+
import{r as t,c as a,h as e,H as s}from"./p-DwYM91AU.js";import{c as i,l as r,b as o,U as h,a as c}from"./p-wtuY7MT2.js";import{F as d}from"./p-BuCKkdLM.js";import"./p-CZfYo5-1.js";const l=class{constructor(e){t(this,e),this.formControlInput=a(this,"formControlInput"),this.formControlBlur=a(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const a=t.target.value;this.inputHandler(this.name,a),this.formControlInput.emit({name:this.name,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=c),t}render(){return e(s,{key:"c1db3dd4bca7d9bf6dcbf61b0b43793232caae2f"},e("div",{key:"4e00566fe24c7db972bcc7a99eaa1aa14c968f2b",class:"form-group d-flex flex-column"},e("div",{key:"30e022fb522a6f69d04fadebb893c0377c0c580e",class:"d-flex gap-2"},e("label",{key:"f43b0d3c1e53d6c6e99dd26ca1dc61b601617e2c",part:r,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"39ab2bcd705b6d917dad575c9e09594d2a6ff199",helpText:this.helpText})),e("input",{key:"54d475675a44f28a05315c23ed07b7e61717c6a9",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}),e(d,{key:"91455fa726313c5316a91d395209df04d6927a41",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s,r as i,c as t}from"./p-DwYM91AU.js";import{c as e,F as r}from"./p-DiJD6Iqx.js";import{b as o,a,c as h}from"./p-dgG_o6wN.js";import{i as n,a as p,b as l,c as m}from"./p-D1WQG4I7.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as c,a as d}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import{C as u,B as j,b as f}from"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as v,J as b}from"./p-BiizzRhw.js";import{B as g}from"./p-Bqlcv3ZV.js";import{S as w}from"./p-BP2sTIQV.js";import{H as C}from"./p-zNSPsvs3.js";import"./p-CZfYo5-1.js";import{S as y}from"./p-c7MCfTgE.js";import{B}from"./p-XYgDHrVL.js";import{m as S,b as x}from"./p-5aA7gjr5.js";import{B as D}from"./p-wYnnDDuR.js";import"./p-BFTU3MAI.js";import"./p-avgjSJ1d.js";import"./p-DfKxeSrC.js";import"./p-CPpUGsw5.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-B3SPy-II.js";import"./p-C8yN3uBj.js";import"./p-wtuY7MT2.js";import"./p-D2muobcE.js";const I=e(Object.assign(Object.assign({},o().fields),{legal_address:p(),additional_questions:a(),representative:n("representative")}));e(Object.assign(Object.assign({},h().fields),{legal_address:m(),additional_questions:a(),representative:l("representative")}));const O=I,k=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(y,{width:"25%"})),s("div",{class:"col-12"},s(y,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"50%"}),s(y,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(y,{width:"65%"}),s(y,{width:"35%"}))),Y=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(y,{width:"40%",height:"40px"})),s(k,null),s(k,null),s(k,null)),_=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.country=u.USA,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new j(s);this.country=i.country_of_establishment,this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new j(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){v(),this.analytics=new b(this),this.formController=new r(O),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=S({authToken:this.authToken,businessId:this.businessId,service:new D}),this.patchBusiness=x({authToken:this.authToken,businessId:this.businessId,service:new D}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:d.MISSING_PROPS,severity:c.ERROR})}handleReponse(s){s.error&&(this.errorMessage=f.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(w,null,this.isLoading?s(Y,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(C,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController,country:this.country})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController,country:this.country})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(g,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:B.submit}),isLoading:this.isSaving},"Submit")))))}};export{_ as justifi_business_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import{T as a,a as i,b as r,c as h,d as o,e as c,f as n,g as p,h as d,i as f,j as m,k as b,l as g}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-DwYM91AU.js";import{T as a,a as i,b as r,c as h,d as o,e as c,f as n,g as p,h as d,i as f,j as m,k as b,l as g}from"./p-BTzt8N0l.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import{p as j}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-jTVpG8Gt.js";import{o as k,g as O}from"./p-BUsqF4-J.js";import"./p-wtuY7MT2.js";import"./p-B-0a8Xqm.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-DOLBAxYf.js";const C=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=j,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new a(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=O();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"e613f15a7f21b62df83874e361aed492c79f09a7"},e(i,{key:"f44650f404395a9cdef96012a544a16d76dff351"},e(r,{key:"690ce3189e7e6531e5a60834ba913c281aa95f08"},e(h,{key:"01260cb573cd36571ab6c6b4952f8202a238f914"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"130c3ae63b1b84568eb559eba42bd355d41264cb"},e(c,{key:"b6fa756110c9c046c197aac95a1555ef395d558c",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"2b8cdf202bb62469590b8d2dfae808fad1750ab1",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"43acaccaa17dd2561b05ec3f4f2fa2e8f62dd7d0",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"95e9e88622ecf6e32d20a6636d9a8d9a6d637710"},e(m,{key:"4ad82db29c1110099872b8a740c5d3fcf716cffd"},e(b,{key:"6aa900cf7752919f1ec4844bd6f0e5d6ad73c2b2",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"c17bc0926e4cdaf6158287282ae090e00e456f59",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{C as terminal_orders_list_core}
|