@justifi/webcomponents 6.0.0-rc.3 → 6.0.0-rc.5
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_4.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-DvwUM1uA.js → check-pkg-version-BsodhBbK.js} +1 -1
- package/dist/cjs/{checkout.store-CV_fuGQw.js → checkout.store-Cn3Jj5gi.js} +1 -0
- package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.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_2.cjs.entry.js +2 -2
- package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +836 -0
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +8 -8
- 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-summary_6.cjs.entry.js +141 -35
- package/dist/cjs/justifi-checkout.cjs.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +3 -3
- package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-BLAsoHSG.js → package-DJaHaxMC.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +1 -1
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/ApplePay.js +119 -0
- package/dist/collection/api/services/apple-pay.service.js +334 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/modular-checkout/modular-checkout.js +137 -32
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +10 -0
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +555 -0
- package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
- package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -3
- package/dist/collection/store/checkout.store.js +1 -0
- package/dist/collection/ui-components/apple-pay-button.js +146 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-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 +463 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-D_mzXSCQ.js → badge-D4ZXPFjL.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +5 -5
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{button-CeR8qVS3.js → button-C0wLsDP3.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-D1hbenUd.js → check-pkg-version-D_w9UM2s.js} +1 -1
- package/dist/esm/{checkout.store-B60siz2l.js → checkout.store-OAv_iY1u.js} +1 -0
- package/dist/esm/checkouts-list-core.entry.js +5 -5
- package/dist/esm/{checkouts-table-CFZYoYjn.js → checkouts-table-DjGKtqoc.js} +2 -2
- package/dist/esm/custom-popper_2.entry.js +3 -3
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-D3ZwkOv-.js → form-control-error-text-Bzfs_rxk.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-C39ZW65w.js → form-control-help-text-ueLctOBN.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_2.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_2.entry.js +4 -4
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-E-hEi3wF.js → header-1-BMKEv9y6.js} +1 -1
- package/dist/esm/{header-3-Dm7M85kz.js → header-3-C3t3m27b.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-CB4l8sOv.js → insurance-state-d4hjThzE.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +3 -3
- 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.entry.js +834 -0
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +12 -12
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-summary_6.entry.js +145 -39
- package/dist/esm/justifi-checkout.entry.js +4 -4
- 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 +5 -5
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- 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 +6 -6
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +7 -7
- package/dist/esm/justifi-payout-details.entry.js +4 -4
- package/dist/esm/justifi-payout-transactions-list.entry.js +6 -6
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +7 -7
- 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 +6 -6
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
- package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-DqFAlAve.js → package-78C4rMuv.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-CfF8KKwx.js → parts-RvUQ__Pq.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +13 -13
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/payments-list-core.entry.js +7 -7
- package/dist/esm/{payments-status-XoZrlbiZ.js → payments-status-1yRdTNeS.js} +1 -1
- package/dist/esm/{payments-table-Dh4P9mTb.js → payments-table-8RADYkma.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +9 -9
- package/dist/esm/payouts-list-core.entry.js +7 -7
- package/dist/esm/{payouts-status-Qm2jZG1-.js → payouts-status-BqsQVtBp.js} +1 -1
- package/dist/esm/{payouts-table-DMVAZp-r.js → payouts-table-DPw7yIx8.js} +2 -2
- package/dist/esm/{skeleton-DrHwsgs_.js → skeleton-BmTjpTYa.js} +1 -1
- package/dist/esm/{spinner-XBq6mVJW.js → spinner-YGDOI-CS.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/{table-qqt2Ew5y.js → table-ybHxxc9f.js} +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +6 -6
- package/dist/esm/{terminal-orders-table-BN4Co4T8.js → terminal-orders-table-D-xP5WuM.js} +2 -2
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/terminals-list-core.entry.js +6 -6
- package/dist/esm/{terminals-table-C8LczeG_.js → terminals-table-DVAPCgEr.js} +2 -2
- package/dist/esm/{utils-kWaZhFAd.js → utils-DG5aMFmf.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/bank-account.js +2 -2
- package/dist/module/card-form2.js +2 -2
- package/dist/module/checkout.store.js +1 -0
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-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/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-apple-pay.d.ts +11 -0
- package/dist/module/justifi-apple-pay.js +877 -0
- package/dist/module/justifi-button2.js +1 -1
- package/dist/module/justifi-header2.js +1 -1
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list-filters.js +2 -2
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-skeleton.js +1 -1
- package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/modular-checkout.js +133 -27
- package/dist/module/package.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-option.js +1 -1
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/summary.js +1 -1
- package/dist/module/terminal-orders-list-core2.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +1 -1
- package/dist/module/tokenize-payment-method.js +3 -3
- package/dist/types/api/ApplePay.d.ts +196 -0
- package/dist/types/api/services/apple-pay.service.d.ts +66 -0
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +9 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +6 -0
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +39 -0
- package/dist/types/components.d.ts +122 -0
- package/dist/types/store/checkout.store.d.ts +1 -0
- package/dist/types/ui-components/apple-pay-button.d.ts +17 -0
- package/dist/webcomponents/{p-48bccf3b.entry.js → p-03c7cee8.entry.js} +1 -1
- package/dist/webcomponents/{p-738e0511.entry.js → p-08a5cc2f.entry.js} +1 -1
- package/dist/webcomponents/{p-43d693a3.entry.js → p-0aee6da6.entry.js} +1 -1
- package/dist/webcomponents/{p-f21549f3.entry.js → p-0e290b6e.entry.js} +1 -1
- package/dist/webcomponents/{p-0cab7d5d.entry.js → p-0e64cd09.entry.js} +1 -1
- package/dist/webcomponents/{p-9f289c31.entry.js → p-1246b999.entry.js} +1 -1
- package/dist/webcomponents/p-12c312a0.entry.js +1 -0
- package/dist/webcomponents/{p-a3ab166f.entry.js → p-134d5029.entry.js} +1 -1
- package/dist/webcomponents/{p-f7e62bfa.entry.js → p-1b892b3a.entry.js} +1 -1
- package/dist/webcomponents/p-1c0c1d7b.entry.js +1 -0
- package/dist/webcomponents/p-1e206c92.entry.js +1 -0
- package/dist/webcomponents/p-1ea7868a.entry.js +1 -0
- package/dist/webcomponents/{p-84ce3bae.entry.js → p-281e36be.entry.js} +1 -1
- package/dist/webcomponents/p-2a0a907d.entry.js +1 -0
- package/dist/webcomponents/{p-c65f157f.entry.js → p-2ab0a2b3.entry.js} +1 -1
- package/dist/webcomponents/{p-93e7df50.entry.js → p-32cecfaf.entry.js} +1 -1
- package/dist/webcomponents/{p-a069c345.entry.js → p-3ffe1e2e.entry.js} +1 -1
- package/dist/webcomponents/p-48f42f07.entry.js +1 -0
- package/dist/webcomponents/{p-37445ce9.entry.js → p-4a1198ee.entry.js} +1 -1
- package/dist/webcomponents/{p-befda39d.entry.js → p-4a79c737.entry.js} +1 -1
- package/dist/webcomponents/{p-a8205044.entry.js → p-4c994761.entry.js} +1 -1
- package/dist/webcomponents/p-5510b57c.entry.js +1 -0
- package/dist/webcomponents/p-5a5f07be.entry.js +1 -0
- package/dist/webcomponents/p-5acd6add.entry.js +1 -0
- package/dist/webcomponents/{p-6e18d13f.entry.js → p-5ad70aae.entry.js} +1 -1
- package/dist/webcomponents/p-5afbfafb.entry.js +1 -0
- package/dist/webcomponents/p-6974a44c.entry.js +1 -0
- package/dist/webcomponents/p-6df132e6.entry.js +1 -0
- package/dist/webcomponents/p-6f2b41f5.entry.js +1 -0
- package/dist/webcomponents/p-6f9755cc.entry.js +1 -0
- package/dist/webcomponents/p-70cd4cbd.entry.js +1 -0
- package/dist/webcomponents/p-7288473f.entry.js +1 -0
- package/dist/webcomponents/{p-79055216.entry.js → p-76a95d07.entry.js} +1 -1
- package/dist/webcomponents/{p-e6a1a851.entry.js → p-776699bd.entry.js} +1 -1
- package/dist/webcomponents/p-78C4rMuv.js +1 -0
- package/dist/webcomponents/{p-29b6f15a.entry.js → p-7b9fa1fb.entry.js} +1 -1
- package/dist/webcomponents/{p-7ed7b2f6.entry.js → p-9009dede.entry.js} +1 -1
- package/dist/webcomponents/p-98939b74.entry.js +1 -0
- package/dist/webcomponents/{p-BTkXk7ol.js → p-BUadwxkh.js} +1 -1
- package/dist/webcomponents/{p-CCME-fyU.js → p-BXKEChoo.js} +1 -1
- package/dist/webcomponents/p-BZzESzqz.js +1 -0
- package/dist/webcomponents/{p-Dvxpy_P1.js → p-BhdBpAn9.js} +1 -1
- package/dist/webcomponents/p-BmFoKOM3.js +1 -0
- package/dist/webcomponents/p-BtOB_CaO.js +1 -0
- package/dist/webcomponents/{p-qMrd7_Gp.js → p-C0AHrswP.js} +1 -1
- package/dist/webcomponents/{p-BeszVz87.js → p-CP_tg-uH.js} +1 -1
- package/dist/webcomponents/{p-JgbsbAhz.js → p-D48iERjQ.js} +1 -1
- package/dist/webcomponents/p-D7eeJWA-.js +1 -0
- package/dist/webcomponents/{p-CsNubTqD.js → p-DBsw4qpn.js} +1 -1
- package/dist/webcomponents/{p-vRhNRfmB.js → p-DKRXPZKS.js} +1 -1
- package/dist/webcomponents/p-DOd8HaWV.js +1 -0
- package/dist/webcomponents/p-DcE8SQPv.js +1 -0
- package/dist/webcomponents/{p-D456WTYf.js → p-DhRb39as.js} +1 -1
- package/dist/webcomponents/p-Drz6LnIw.js +1 -0
- package/dist/webcomponents/{p-DO3INvI2.js → p-DuXN7Akd.js} +1 -1
- package/dist/webcomponents/{p-Bz164TKZ.js → p-HAk7yBNq.js} +1 -1
- package/dist/webcomponents/{p-CfF8KKwx.js → p-RvUQ__Pq.js} +1 -1
- package/dist/webcomponents/p-a1483fbd.entry.js +1 -0
- package/dist/webcomponents/{p-53c81d62.entry.js → p-a1a8f6bd.entry.js} +1 -1
- package/dist/webcomponents/{p-15777cfe.entry.js → p-a406bf1a.entry.js} +1 -1
- package/dist/webcomponents/p-a4cb5604.entry.js +1 -0
- package/dist/webcomponents/{p-f4f3cae8.entry.js → p-a70bc148.entry.js} +1 -1
- package/dist/webcomponents/{p-57143978.entry.js → p-a9d2dd5e.entry.js} +1 -1
- package/dist/webcomponents/{p-c5b48e8d.entry.js → p-afc83e27.entry.js} +1 -1
- package/dist/webcomponents/{p-3d85d046.entry.js → p-b04cc606.entry.js} +1 -1
- package/dist/webcomponents/{p-a0b8c888.entry.js → p-b10e34b0.entry.js} +1 -1
- package/dist/webcomponents/p-b41d2b8f.entry.js +1 -0
- package/dist/webcomponents/p-b8f63e28.entry.js +1 -0
- package/dist/webcomponents/{p-4b808606.entry.js → p-bbbb9225.entry.js} +1 -1
- package/dist/webcomponents/p-bd560810.entry.js +1 -0
- package/dist/webcomponents/{p-c217869b.entry.js → p-c029fc20.entry.js} +1 -1
- package/dist/webcomponents/p-c62e23c1.entry.js +1 -0
- package/dist/webcomponents/{p-b0bfa20f.entry.js → p-c6860f60.entry.js} +1 -1
- package/dist/webcomponents/{p-0e287092.entry.js → p-cbfc8269.entry.js} +1 -1
- package/dist/webcomponents/{p-0935b6e5.entry.js → p-d0729065.entry.js} +1 -1
- package/dist/webcomponents/{p-4bba4e66.entry.js → p-dad15b15.entry.js} +1 -1
- package/dist/webcomponents/{p-0b790fa4.entry.js → p-dc245644.entry.js} +4 -4
- package/dist/webcomponents/{p-d1a65c6d.entry.js → p-e00fd71d.entry.js} +1 -1
- package/dist/webcomponents/{p-e2267656.entry.js → p-e6ca1872.entry.js} +1 -1
- package/dist/webcomponents/{p-e546b8f8.entry.js → p-e70a5f50.entry.js} +1 -1
- package/dist/webcomponents/{p-904a95e5.entry.js → p-e8a198fa.entry.js} +1 -1
- package/dist/webcomponents/{p-9a4c1990.entry.js → p-eca1e808.entry.js} +1 -1
- package/dist/webcomponents/p-fb1904d2.entry.js +1 -0
- package/dist/webcomponents/{p-35bbfbf8.entry.js → p-fbaf62a5.entry.js} +1 -1
- package/dist/webcomponents/p-fcb6e870.entry.js +1 -0
- package/dist/webcomponents/{p-YND5pTuF.js → p-nWGo6sHu.js} +1 -1
- package/dist/webcomponents/{p-BisQ61nK.js → p-wyEq9Pa1.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-0cc85003.entry.js +0 -1
- package/dist/webcomponents/p-1975406a.entry.js +0 -1
- package/dist/webcomponents/p-2a59547b.entry.js +0 -1
- package/dist/webcomponents/p-2da63719.entry.js +0 -1
- package/dist/webcomponents/p-4ae2a0b9.entry.js +0 -1
- package/dist/webcomponents/p-4b795b77.entry.js +0 -1
- package/dist/webcomponents/p-5001e722.entry.js +0 -1
- package/dist/webcomponents/p-5477c449.entry.js +0 -1
- package/dist/webcomponents/p-56980ef3.entry.js +0 -1
- package/dist/webcomponents/p-614fcef6.entry.js +0 -1
- package/dist/webcomponents/p-63b1fffd.entry.js +0 -1
- package/dist/webcomponents/p-739d6f13.entry.js +0 -1
- package/dist/webcomponents/p-74ae5db7.entry.js +0 -1
- package/dist/webcomponents/p-9ccd19f5.entry.js +0 -1
- package/dist/webcomponents/p-BC8YDY7M.js +0 -1
- package/dist/webcomponents/p-BbYVgLcf.js +0 -1
- package/dist/webcomponents/p-C1fMfnu0.js +0 -1
- package/dist/webcomponents/p-C_CXv7AN.js +0 -1
- package/dist/webcomponents/p-CwZKT93w.js +0 -1
- package/dist/webcomponents/p-D599ZMGU.js +0 -1
- package/dist/webcomponents/p-DqFAlAve.js +0 -1
- package/dist/webcomponents/p-a33ea645.entry.js +0 -1
- package/dist/webcomponents/p-ba018d57.entry.js +0 -1
- package/dist/webcomponents/p-be06d86a.entry.js +0 -1
- package/dist/webcomponents/p-dd4ef924.entry.js +0 -1
- package/dist/webcomponents/p-df4f2af9.entry.js +0 -1
- package/dist/webcomponents/p-e1ba5735.entry.js +0 -1
- package/dist/webcomponents/p-e4e30e84.entry.js +0 -1
- package/dist/webcomponents/p-e898de89.entry.js +0 -1
- package/dist/webcomponents/p-f200cbda.entry.js +0 -1
- package/dist/webcomponents/p-f4645aef.entry.js +0 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-kpoIU4v_.js";import{c as i}from"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{g as r}from"./p-WEguiGt1.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c,J as p}from"./p-D456WTYf.js";import{g as d,a as h}from"./p-D2muobcE.js";import{P as l}from"./p-5rVtZ2GJ.js";import{T as f,l as u,a as m,b as y,c as b,d as _,e as w,f as j,g as T,h as v,i as g,j as k,k as C}from"./p-Bz164TKZ.js";import{S as D}from"./p-CRFzwZW6.js";import{T as I}from"./p-CZfYo5-1.js";import{a as S}from"./p-zdIeCUeh.js";import{R as P,S as q}from"./p-CfF8KKwx.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DqFAlAve.js";import"./p-I8XpD1TX.js";import"./p-C1fMfnu0.js";const A={id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:P,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:P,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:P,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:P,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:P,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:P,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},E={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},F={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},E[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},S(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},S(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.updated_at,{showTime:!0})))},O=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:I.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:I.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:I.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,A,F),c(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:n,final:c})=>{var p;try{const c=await a.fetchPayoutTransactions(t,e,i);c.error?n({error:h(c.error),code:d(null===(p=c.error)||void 0===p?void 0:p.code),severity:s.ERROR}):o({balanceTransactions:c.data.map((t=>new r(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=d(null==t?void 0:t.code);n({error:h(t),code:e,severity:s.ERROR})}finally{c()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"3c2b2c049a964a38385bc804f2ea160d6a35dd82"},t(u,{key:"8a79afde5660311de796acd90c64ca082348a932"},t(m,{key:"88e1d875abcf55f8846036844b12953ddb8bb18d"},t(y,{key:"33ed1765106ab87dd48cdda8733fb04e512b8378"},t(b,{key:"d3a5823c015be404980d72277c0040312a5145df"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"b1f45eea747b1361ced1f6924ef2f741378a2fd9"},t(w,{key:"05d9fbb9722c7e2775afeeec939fb50f41bc5565",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"0e5ddf06144028b0bdc4eead3a4a8abb73041c7a",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"977915205fb342bd7d8a089a329171aa4e2cfdae",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(v,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"0058ea0c31abb6b968a378be064a5e3f47d7effe"},t(k,{key:"ae2a32a10e9a1d724579289516945eafd37c275e"},t(C,{key:"28f3b18198a93a78d7987f746e1fe6960700c6a8",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"5f9799c74208a5ebbe852053d1638d6f0fff59d0",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{O as justifi_payout_transactions_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as a}from"./p-kpoIU4v_.js";import{b as i,T as o,a as r,c as h,l as c,U as f}from"./p-CfF8KKwx.js";import{F as n}from"./p-D599ZMGU.js";import{F as l}from"./p-C_CXv7AN.js";import"./p-CZfYo5-1.js";import{f as p}from"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";const b=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>p(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return e(a,{key:"0e31cb58a7b3560cea88bc515b55e787d6be0a71"},e("div",{key:"d0ad28b761a1fb95b5e446684eb77d25202908fd",class:"form-group d-flex flex-column"},e("label",{key:"f075865f14b8697838454c3da270e974e19b0bb4",part:c,class:"form-label",htmlFor:this.name},this.label),e(n,{key:"4835ba829efc4d65ec93f8c406c56635f3fb55e9",name:this.name,helpText:this.helpText}),e("div",{key:"88394d95831cf79a9f6d68ed824e2f0f28e5c4b3",class:"input-group"},e("span",{key:"c0f56328b5330230114cbc6dbec2ff5ab50fa6fa",class:"input-group-text",part:f},"$"),e("input",{key:"615dee630e13fc603bcf0020588ea89a8006fe97",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),e(l,{key:"cb2c4f53cc3bdc3b83302b30cb6087cac33e7a95",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{b as form_control_monetary}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as a,c as s,g as r}from"./p-kpoIU4v_.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{E as c}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as i}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n as o}from"./p-BnjCmwMr.js";import{s as l,d,i as n}from"./p-zdIeCUeh.js";import{Y as f,G as b,aj as h,R as p,ak as m,c as u,l as y,b as k,T as x,a as v}from"./p-CfF8KKwx.js";import{S as _}from"./p-BC8YDY7M.js";import"./p-CZfYo5-1.js";import{F as j}from"./p-C_CXv7AN.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const g=class{constructor(t){e(this,t)}render(){return t("div",{key:"23f5fa6b191b3feea7677a85a421002642a86f50",class:"row gy-3"},t("div",{key:"da9d9698f15aeb4bb05baef8fb63c630fcff8a82",class:"col-12"},t("form-control-file",{key:"b84a8ec1753210f74989c04b5520f0e94c5a083d",name:"voided_check",label:"Voided Check",documentType:c.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"06d442df900406f122970bde6b2b293f2c9080ee",class:"col-12"},t("form-control-file",{key:"b3dc1d48900c5932c4d59f8b31a323193f0e86b4",name:"bank_statement",label:"Bank Statement",documentType:c.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},T=class{constructor(t){e(this,t)}render(){return t("div",{key:"da4dc9523bca84cdd02f7e5d47e513c426ed90fd",class:"row gy-3"},t("div",{key:"b625a293dec704cbbb132469fdbc8c5d99a660e1",class:"col-12"},t("form-control-text",{key:"b41460ddc605f73faf71233ccbbef7e34e690e5a",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"e5560bcdba399baa2e54441436ef5c67936e9fef",class:"col-12"},t("form-control-text",{key:"18cd16931899f724fd92cb89f1b8d4cd41c5354c",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3bb589db98e5d65022576b602bda41f36e3a90d5",class:"col-12"},t("form-control-text",{key:"c870513b8895add114d5ec588561fa6f33a63514",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"1783e7b4af2b012338fe2e1b4f1faa9b5e086bcd",class:"col-12"},t("form-control-select",{key:"6a9af0f6edeae133dce04b7f829abb802db4ac83",name:"account_type",label:"Account Type",options:i,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3c3ffced96f67320b4c580be6f28dd8ef5d2c109",class:"col-12"},t("form-control-text",{key:"e85df115a9de08ad9abb3237f7bf6c6d23c84150",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:o,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"5a25cb25160aff24d1f62df2115dbd248709141e",class:"col-12"},t("form-control-text",{key:"dfdf7dce470efb8eea65aa6daf562d190963bace",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:o,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},H=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(_,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:f},t("div",{class:"card-body"},t("h5",{class:"card-title",part:b},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},l(e.document_type)),t("td",{part:m},`${d(e.created_at)} - ${n(e.created_at)}`))))))))),t("hr",null)):null}},w=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=x),this.isFocused&&(e=v),e}render(){return t(a,{key:"e157eea9bc728b97b8f61cc4da004756e663bc32"},t("div",{key:"046f70cf63cd6724b4d42c13a7366a443f33c384",class:"form-group d-flex flex-column"},t("div",{key:"a121a7eb6229c423cfd4949b8f4af6b6140316c4",class:"d-flex align-items-start gap-2"},t("label",{key:"a885e1e8d0b0f71299c88446bfc29a546016e543",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"039c26c916c18969c17cdb4f3950c679811b5880",helpText:this.helpText})),t("input",{key:"b3a20a82acd6fcbc3f61b8a72865b53e5c05b70b",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(j,{key:"8a1b494b2fae5e8f3c3732773c1e64f28a9c4040",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{g as bank_account_document_form_inputs,T as bank_account_form_inputs,H as business_documents_on_file,w as form_control_file}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-kpoIU4v_.js";import{d as s,b as i}from"./p-zdIeCUeh.js";import{a as d,b as c,D as b,c as f,C as r,E as o}from"./p-DO3INvI2.js";import{B as l}from"./p-JgbsbAhz.js";import{S as h}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{M as n}from"./p-BeszVz87.js";import{S as p}from"./p-BC8YDY7M.js";import{a as v,B as y}from"./p-vRhNRfmB.js";import"./p-HXpYMWUU.js";import"./p-CfF8KKwx.js";const u=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(p,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(p,{width:"70%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"40%"})),e("div",{class:"col-12"},e(p,{width:"100%"})),e("div",{class:"col-12"},e(p,{width:"80%"}))),m=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})}}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var t;return e(h,{key:"79a9fca76a04f85158b3a0fab953bfc45814b3e9"},this.loading&&e(u,{key:"f5b4d16e4fd98086cd70261aa220e5f9a68e29f9"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"2840fa532729b93b86ee64eec7923950d318348b","error-message":this.errorMessage},e(d,{key:"a6e2bf145153df2307ef6b0d1a29f9d10bf80775",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},n(null===(t=this.payout)||void 0===t?void 0:t.status),e(v,"expedited"===this.payout.settlement_priority?{variant:y.WARNING,title:"Expedited",text:"Expedited"}:{variant:y.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(c,{key:"75fcbee460dd796e0245a4a490e0de0341ed73a5",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${i(this.payout.updated_at)}`}),e(c,{key:"fbd20466fe208579baaea0282d2e6604230b9107",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${i(this.payout.created_at)}`}),e(c,{key:"69769324839f561a56bad67846d84bc70e4e4b67",title:"ID",value:this.payout.id}),e("div",{key:"f431884d2f782ea764357c23e57482672f465848",class:"m-4"},e(l,{key:"6a92eb49c2d33717eb7750b6cb005ff231227b1b",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"aeec4b34d58873abd2b2c4bfe010924707f19c89",slot:"detail-sections"},e(b,{key:"20d0aef076d6312a21d26ea7fc8eed4510a2efab",sectionTitle:"Details"}),e("div",{key:"9bec2b5892f1e1776993acdd005cf0d82e2d81be",class:"d-table gap-2 w-100"},e(f,{key:"2555b7af59b56b898565bf716f2f6879d3253445",title:"Date paid",value:s(this.payout.deposits_at)}),e(f,{key:"2d8a47d6c9d828eca8574e4c1c5fdff6d354326c",title:"Statement Description",value:this.payout.description}),e(f,{key:"87bac39bf999a42f0659b0a1a3e57a8043dc809f",title:"Payout Method",value:this.payout.delivery_method}),e(f,{key:"cabd31655600c512c8b5ce6fff5548f450970bff",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(f,{key:"bb48ff48161f15552c39cac8811abea68398a970",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(b,{key:"28e45b962f7f89e1f57369a1cae1e70f936a42e8",sectionTitle:"Account"}),e("div",{key:"b5b8da5baa563b80075cdbd46f43561877b3cd1c",class:"d-table gap-2 w-100"},e(f,{key:"3b89b14e72589f838ec44eed4f80772edb470bd2",title:"ID",value:this.payout.account_id}),e(f,{key:"e828740c47b8b9e02e483c2e9082bd2728a37043",title:"Account Type",value:this.payout.bank_account.account_type}),e(f,{key:"ed703dd9d41106825ea5c4e5565f77aa8b7d012e",title:"Institution",value:this.payout.bank_account.account_type}),e(f,{key:"8ee66b765d45ab59ea501a8d3a168c8a43465c70",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(f,{key:"04f7024fbe5c3def51bfc969204c484b471c024e",title:"Account Number",value:this.payout.bank_account.account_number_last4})),this.payout.metadata&&[e(b,{key:"f59c9b8e87cb13d650873159a2ac47d8ea915173",sectionTitle:"Metadata"}),e("div",{key:"4984916558e5cf4016972f110b507caaa41dd5e8",class:"d-table gap-2 w-100"},e(r,{key:"6659b53990aa222ffa6d65d9332670952efc44f0",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{m as payout_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{C as e}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as p,a}from"./p-D2muobcE.js";import{c,J as n}from"./p-D456WTYf.js";import{C as h}from"./p-UD2JhYS2.js";import{m,S as u}from"./p-Bpcb3SsP.js";import{S as d}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-CsNubTqD.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DqFAlAve.js";import"./p-I8XpD1TX.js";import"./p-vRhNRfmB.js";import"./p-CfF8KKwx.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){c(),this.analytics=new n(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:c,onError:n})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return n({error:a(u.error),code:p(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);c({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(d,{key:"0e9e50e18983dad43cfab19f2271678d3f5e6abd"},i("checkouts-list-core",{key:"6f128cc756477ff64638625d9a9ff9a5b4533948",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_checkouts_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as a}from"./p-kpoIU4v_.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as e,a as r,b as h,c,d as o,e as p,f as n,g as d,h as f,i as b,j as m,k as u,l as g}from"./p-Bz164TKZ.js";import{T as j}from"./p-CZfYo5-1.js";import{p as y,a as k}from"./p-BbYVgLcf.js";import{o as l,g as C}from"./p-DaDsBt65.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CfF8KKwx.js";import"./p-C1fMfnu0.js";import"./p-YND5pTuF.js";import"./p-vRhNRfmB.js";const w=class{constructor(a){t(this,a),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],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 a=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:j.row,data:a})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new e(this.payments,this.columns,y,k),this.getPayments&&this.fetchData(),l("set",(()=>{this.pagingParams={}})),l("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:a})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return a(g,{key:"3224fa4648e40065343765800160517c23cbf88d"},a(r,{key:"d492e8fd4383492cd8b70c9d50df6d568a2cbf58"},a(h,{key:"f490bf8bf89c0babd2b7b58bf8d99467422e32b5"},a(c,{key:"2c6fbf6f5c076b1c1dbfc3407362f64287da7c94"},this.paymentsTable.columnData.map((t=>t)))),a(o,{key:"a0ca397c345bf388191391208a751db90f214dc1"},a(p,{key:"cb09739c0aa7935621078738faecbcc6729abc99",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),a(n,{key:"9b5bd9da1f1f59e522795b2c8a849cb545d8afe4",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),a(d,{key:"0d89cfc7ed6c5b984582a03dba8ac3271512a89d",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>a(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&a(b,{key:"2c15dc1c99ae44202cb4b857c1c0ab49252b2a42"},a(m,{key:"296be7b7c00b738dbc4c0087a7d1ab4921d59e53"},a(u,{key:"93bf1aef5ca433b49a83a3711a30cb3d8c9a5aa6",colSpan:this.paymentsTable.columnData.length},a("pagination-menu",{key:"de33bf049b17f1409daeaac52fa601ddf11aa464",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{C as r,a as e}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-D456WTYf.js";import{T as n}from"./p-DWUnL_zj.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{e as a}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as h,a as c}from"./p-D2muobcE.js";import{m,S as u}from"./p-Bpcb3SsP.js";import{S as l}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d}from"./p-Dvxpy_P1.js";import"./p-DqFAlAve.js";import"./p-I8XpD1TX.js";import"./p-zdIeCUeh.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-vRhNRfmB.js";import"./p-CfF8KKwx.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:e,onSuccess:o,onError:p})=>{var n,m;try{const u=await i.fetchTerminals(t,s,e);if(u.error)return p({error:c(u.error),code:h(null===(m=u.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},u.page_info);o({terminals:(null===(n=u.data)||void 0===n?void 0:n.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const s=h(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(l,{key:"0a3db94e812f99055939476c8e0e2f38828fbe5d"},i("terminals-list-core",{key:"c0795b3f95342ebf26d9e8e97446b4c8f79fb545",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_terminals_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-kpoIU4v_.js";import{r as a}from"./p-CfF8KKwx.js";import{S as o}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";const s=class{constructor(t){e(this,t)}render(){return t(o,{key:"aebf05239985d34458540500c4c499e27b89ae8b",class:"payment-method"},t("div",{key:"dec8e357a96e94ae3756c3e3b7d47bc43c6dcb93",class:"radio-list-item p-3",part:a,onClick:this.clickHandler,hidden:this.radioButtonHidden},t("form-control-radio",{key:"ea72465e4fbe8f4dff434dcad8ab6e908ff3a3b2",name:"paymentMethodType",value:this.paymentMethodOptionId,checked:this.isSelected,label:this.label})))}};export{s as payment_method_option}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{C as e}from"./p-CfF8KKwx.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const p=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:p,part:e,"aria-hidden":"true"})};export{s as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{M as a}from"./p-YND5pTuF.js";import{a as e}from"./p-zdIeCUeh.js";import{R as p,S as o}from"./p-CfF8KKwx.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits",r={created_at:()=>t("th",{part:p,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:p,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:p,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:p,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:p,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method")},i={created_at:(a,p)=>t("td",{part:o(p)},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:o(e)},a.formattedPaymentAmount(a.amount)),status:(e,p)=>t("td",{part:o(p)},a(e.status)),payment_type:(a,e)=>t("td",{part:o(e)},a.payment_type),description:(a,e)=>t("td",{part:o(e)},a.description),payers_name:(a,e)=>t("td",{part:o(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:o(e)},a.last_four_digits)};export{i as a,s as d,r as p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-kpoIU4v_.js";import{Q as o}from"./p-CfF8KKwx.js";const r=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:o},s("span",{class:"visually-hidden"},"Loading...")));export{r as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as r}from"./p-kpoIU4v_.js";import{E as t}from"./p-CfF8KKwx.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 +0,0 @@
|
|
|
1
|
-
import{h as o}from"./p-kpoIU4v_.js";import{V as p}from"./p-CfF8KKwx.js";const r=r=>o("h3",{class:`header-3 ${null==r?void 0:r.class}`,part:p},r.text);export{r as H}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{D as e}from"./p-CfF8KKwx.js";const o=o=>{const{helpText:r,name:m}=o;return r?t("small",{class:"form-text text-muted",id:`form-help-text-${m}`,part:e},r):null};export{o as F}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={name:"@justifi/webcomponents",version:"6.0.0-rc.3"};export{e as p}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as a}from"./p-kpoIU4v_.js";import{a3 as i,a4 as h,a5 as r,a6 as o,a7 as c,l as d}from"./p-CfF8KKwx.js";const f=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})}}get part(){return this.errorText?i:this.isFocused&&this.checked?h:this.checked?r:this.isFocused?o:c}render(){return e(a,{key:"a22020f52ab144e24df5d8b66e1e4a2e96a46118",class:"form-group d-flex flex-column"},e("div",{key:"92e094809b59818298423b9e239cab73757c4361",class:"form-check"},e("input",{key:"f86decea91a82284fdda6916c342e8921df9dbc7",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),e("label",{key:"d7abd665cf385ab45f154c2607ad8732f5d778f2",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:d},this.label)),e("form-control-help-text",{key:"2c495cb8c25c1984addbcdcb8899823aa2db64a5",helpText:this.helpText,name:this.name}),e("form-control-error-text",{key:"136d3defc1f11627d0eeb4d202f4938b5e0cbde3",errorText:this.errorText,name:this.name}))}};export{f as form_control_radio}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-kpoIU4v_.js";import{f as t,p as s,c as f}from"./p-Bt388eye.js";import{m as r,n as c,o as d}from"./p-CfF8KKwx.js";import{S as o}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{c as p,a as i}from"./p-zdIeCUeh.js";import"./p-7WIgS5RM.js";import"./p-HXpYMWUU.js";const b=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=p(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(o,{key:"698d741c2ac91c9f77f36bec9a76c0732a1b89fc"},a("table-filters-menu",{key:"54b5198f16d6c9909a015eff0f1aff7365195d84",params:e,clearParams:f,part:r},a("div",{key:"3ac02cc091cf4db7cb986b7323f55d271dbe70b4",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"51ffcdde4cc8bf298b75188132fc27b78c35cef9",class:"p-2"},a("form-control-date",{key:"ec8d07f179508c8f3e4aeadfba8b6ef8d64b192a",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:i(this.createdAfter,{showInputDate:!0})||i(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:c})),a("div",{key:"1f64cbae15ffdc9a90b426b24cb3da9f3ab627d1",class:"p-2"},a("form-control-date",{key:"306fc087f3d22b141ddb443315f7c487106bf9a1",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:i(this.createdBefore,{showInputDate:!0})||i(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:d})))))}};export{b as justifi_payouts_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as s,c as e}from"./p-kpoIU4v_.js";import{a as i,b as r}from"./p-DSP8qjHL.js";import{F as o,c as n,b as a}from"./p-CR9D6mKt.js";import{A as l,C as h,R as c,c as d}from"./p-BlJnA265.js";import{C as u,P as m}from"./p-B-iV5cYd.js";import{G as p}from"./p-CfF8KKwx.js";import{S as f}from"./p-BC8YDY7M.js";import"./p-CZfYo5-1.js";import{a as v,r as b,s as y,b as g}from"./p-yH3TC3ZQ.js";import{a as w,B as _}from"./p-XYgDHrVL.js";import{E as x,l as j,m as k}from"./p-WEguiGt1.js";import{z as S,A as T,B as C,y as O,C as H,D as L}from"./p-CYBR4K2p.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as E,a as D}from"./p-Cjcsf8ku.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{n as A}from"./p-BnjCmwMr.js";import{B}from"./p-JgbsbAhz.js";import{i as V,a as P}from"./p-PgEzcvI6.js";import{S as I}from"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-zdIeCUeh.js";import"./p-7WIgS5RM.js";class W{constructor(t){this.id=t.id,this.account_owner_name=t.account_owner_name,this.full_name=t.full_name,this.account_type=t.account_type,this.account_number=t.account_number,this.acct_last_four=t.acct_last_four,this.account_number_last4=t.account_number_last4,this.routing_number=t.routing_number,this.bank_name=t.bank_name,this.country=t.country,this.currency=t.currency,this.nickname=t.nickname,this.metadata=t.metadata,this.business_id=t.business_id,this.platform_account_id=t.platform_account_id,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const U=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(f,{width:"25%"})),t("div",{class:"col-12"},t(f,{width:"100%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"50%"}),t(f,{width:"50%"})),t("div",{class:"col-12 d-flex gap-3"},t(f,{width:"65%"}),t(f,{width:"35%"}))),F=()=>t("div",{class:"row gap-5"},t("div",{class:"col-12"},t(f,{width:"40%",height:"40px"})),t(U,null),t(U,null),t(U,null)),R=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.additional_questions=new l(t.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s})),this.additional_questions=new l(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}recurringPaymentsWatcher(t){this.recurringPayments="Yes"===(null==t?void 0:t.business_recurring_payments)}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{additional_questions:new l(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Additional Questions"),t("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(s=this.errors)||void 0===s?void 0:s.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:u.WHOLE})),t("div",{class:"col-12 col-md-6"},t("form-control-monetary-provisioning",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:u.WHOLE})),t("div",{class:"col-12"},t("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),t("div",{class:"col-12"},t("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:b,defaultValue:null==l?void 0:l.business_recurring_payments})),t("div",{class:"col-12",hidden:!this.recurringPayments},t("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),t("div",{class:"col-12"},t("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:y,defaultValue:null==l?void 0:l.business_seasonal})),t("div",{class:"col-12"},t("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},Y=(t,s)=>t.some((t=>t.document_type===s)),q="Please upload either a voided check or a bank statement. Only one is required.",N=(t,s)=>{const e=Y(t,x.voidedCheck),i=Y(t,x.bankStatement),r=e||i,o=n().shape({bank_name:L.required("Enter bank name"),nickname:H.required("Enter nickname"),account_owner_name:O.required("Enter account owner name"),account_type:C.required("Select account type"),account_number:T.required("Enter account number"),routing_number:S.required("Enter routing number"),voided_check:a().when("bank_statement",{is:t=>!t&&!r,then:t=>t.required(q),otherwise:t=>t.notRequired()}),bank_statement:a().when("voided_check",{is:t=>!t&&!r,then:t=>t.required(q),otherwise:t=>t.notRequired()})},[["voided_check","bank_statement"]]),l=n({bank_name:L.nullable(),nickname:H.nullable(),account_owner_name:O.nullable(),account_type:C.nullable(),account_number:T.nullable(),routing_number:S.nullable(),voided_check:a().nullable(),bank_statement:a().nullable()});return s?l:o},M=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new j,this.isLoading=!1,this.initializeFormController=()=>{this.formController=new o(N(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))},this.storeFiles=t=>{const s=Array.from(t.detail.fileList),e=t.detail.document_type,i=s.map((t=>new k({file:t,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.bank_accounts.length>0?this.bankAccount=new W(t.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=t.data.documents},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async t=>{this.isLoading=!0;const s=t.record_data;return new Promise((e=>{this.postDocumentRecord({payload:s,onSuccess:s=>{e(this.handleDocRecordResponse(t,s))},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(t,s)=>s.error?(this.errorEvent.emit({errorCode:D.POST_ERROR,message:s.error.message,severity:E.ERROR,data:s.error}),!1):(t.setPresignedUrl(s.data.presigned_url),!0),this.uploadDocument=async t=>{if(!t.presigned_url)throw new Error("Presigned URL is not set");const s=await t.getFileData(),e=await fetch(t.presigned_url,{method:"PUT",body:s});return this.handleUploadResponse(e)},this.handleUploadResponse=t=>!t.error||(this.errorEvent.emit({errorCode:D.POST_ERROR,message:t.error.message,severity:E.ERROR,data:t.error}),!1)}watchHandler(t){this.formLoading.emit(t)}async validateAndSubmit({onSuccess:t}){this.existingBankAccount?this.sendData(t):this.formController.validateAndSubmit((()=>this.sendData(t)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(N(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var t;return!!(null===(t=this.bankAccount)||void 0===t?void 0:t.id)}async sendData(t){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;t()}catch(t){this.errorEvent.emit({message:t,errorCode:D.POST_ERROR,severity:E.ERROR})}}async postBankAccountData(){let t;return this.isLoading=!0,new Promise((s=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:s=>{t=s,e=!0},onError:({error:t,code:s,severity:i})=>{e=!1,this.errorEvent.emit({message:t,errorCode:s,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:w.bankAccount}),this.isLoading=!1,s(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const t=Object.values(this.documentData).flat();return!t.length||!(await Promise.all(t.map((t=>this.postDocumentRecordData(t))))).includes(!1)&&!(await Promise.all(t.map((t=>this.uploadDocument(t))))).includes(!1)}finally{this.isLoading=!1}}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",{class:"mb-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Bank Account Info"),t("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),t("hr",{class:"mt-2"}),t("bank-account-form-inputs",{defaultValue:s,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),t("fieldset",{class:"mt-4"},t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Document Uploads"),t("form-control-tooltip",{helpText:"One document (voided check or bank statement) is required for underwriting purposes. It needs to visibly show the name tied to the account and the account number. Various file formats such as PDF, DOC, DOCX, JPEG are accepted. Multiple files can be uploaded for each document category."})),t("hr",{class:"mt-2"}),t("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),t("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},X=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.coreInfo={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.coreInfo=new h(t.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return new h(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){const s=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Business Information")),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:s.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),t("div",{class:"col-12"},t("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:s.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),t("div",{class:"col-12 col-md-8"},t("form-control-select",{name:"classification",label:"Business Classification",options:g,defaultValue:s.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-4"},t("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:s.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"industry",label:"Industry",defaultValue:s.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:s.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:A,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns. Enter value without dashes."})),t("div",{class:"col-12"},t("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:s.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),t("div",{class:"col-12 col-md-6"},t("form-control-text",{name:"email",label:"Business Email Address",defaultValue:s.email,errorText:this.errors.email,inputHandler:this.inputHandler})),t("div",{class:"col-12 col-md-6"},t("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:s.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})))))}},K=class{constructor(t){s(this,t),this.clickEvent=e(this,"click-event"),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.ownersPayload=[],this.refs=[],this.isLoading=!1,this.matchRef=(t,s)=>{const e=this.refs.findIndex((t=>t===s));-1!==e&&(this.refs[e]=t)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{t.data.owners.length?this.ownersPayload=t.data.owners.map((t=>({id:t.id}))):this.addOwnerForm()},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=t=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],t&&this.clickEvent.emit({name:_.addOwnerForm})},this.removeOwnerForm=t=>{this.ownersPayload=this.ownersPayload.filter((s=>s.id!==t)),this.newFormOpen&&(this.newFormOpen=!1)}}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((t=>t.id))}async validateAndSubmit({onSuccess:t}){const s=this.refs.map((t=>t.validate()));if(!(await Promise.all(s)).every((t=>t)))return;const e=this.refs.map((t=>t.submit()));(await Promise.all(e)).every((t=>t))&&this.sendData(t)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(t){const s=t.detail,e=this.ownersPayload.map((t=>t.id===s.id?s:t));e.includes(s)||(e[this.ownersPayload.findIndex((t=>!t.id))]=s,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?t(F,null):t("div",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Owners"),t("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},this.ownersPayload.map((s=>t("justifi-owner-form",{key:s.id,authToken:this.authToken,businessId:this.businessId,ownerId:s.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:t=>this.matchRef(t,s.id)})))),t("div",{class:"d-flex justify-content-start"},t("div",{class:"gap-2"},t(B,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},z=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.representative={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.representative=new c(t.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.representative}),this.formLoading.emit(!1)}})}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{representative:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(V("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){return this.isLoading?t(F,null):t("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},G=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.errors={},this.legal_address={},this.isLoading=!1,this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:t=>{this.legal_address=new d(t.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({message:t,errorCode:s,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=t=>{let s;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{s=e,t()},onError:({error:t,code:e,severity:i})=>{s=t,this.errorEvent.emit({message:t,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:w.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}async validateAndSubmit({onSuccess:t}){this.formController.validateAndSubmit((()=>this.sendData(t)))}get patchPayload(){return{legal_address:new d(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}render(){var s,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?t(F,null):t("form",null,t("fieldset",null,t("div",{class:"d-flex align-items-center gap-2"},t("legend",{class:"mb-0",part:p},"Legal Address of your Business"),t("form-control-tooltip",{helpText:"No PO Boxes."})),t("hr",{class:"mt-2"}),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(s=this.errors)||void 0===s?void 0:s.line1})),t("div",{class:"col-12"},t("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),t("div",{class:"col-12"},t("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),t("div",{class:"col-12"},t("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),t("div",{class:"col-12"},t("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:A})),t("div",{class:"col-12"},t("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{R as justifi_additional_questions_form_step_core,M as justifi_business_bank_account_form_step_core,X as justifi_business_core_info_form_step_core,K as justifi_business_owners_form_step_core,z as justifi_business_representative_form_step_core,G as justifi_legal_address_form_step_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as r}from"./p-kpoIU4v_.js";import{P as i}from"./p-Bb6FBEPP.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as o,a as e}from"./p-Cjcsf8ku.js";import{P as p}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{c as m,J as c}from"./p-D456WTYf.js";import{S as h}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d as f}from"./p-BbYVgLcf.js";import"./p-I8XpD1TX.js";import"./p-zdIeCUeh.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DqFAlAve.js";import"./p-YND5pTuF.js";import"./p-vRhNRfmB.js";import"./p-CfF8KKwx.js";const d=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=f,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeGetPayments()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:s,service:r})=>async({params:i,onSuccess:e,onError:m,final:c})=>{var h,f;try{const c=await r.fetchPayments(t,s,i);if(c.error)return m({error:n(c.error),code:a(null===(f=c.error)||void 0===f?void 0:f.code),severity:o.ERROR});{const t=Object.assign({},c.page_info);e({payments:(null===(h=c.data)||void 0===h?void 0:h.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=a(null==t?void 0:t.code);return m({error:t.message||t,code:s,severity:o.ERROR})}finally{return c()}})({id:this.accountId,authToken:this.authToken,service:new i}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return r(h,{key:"861ab66e6c71917a135fa8bc333940d28f5f25db"},r("payments-list-core",{key:"ef5efeabeb18a51dd6cf54f33652190ff668a9b9",getPayments:this.getPayments,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payments_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-kpoIU4v_.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.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 p,g as d,h as f,i as m,j as u,k as b,l as g}from"./p-Bz164TKZ.js";import{T as y}from"./p-CZfYo5-1.js";import{t as j,a as l}from"./p-Dvxpy_P1.js";import{o as k,g as C}from"./p-BVD7g3cE.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CfF8KKwx.js";import"./p-C1fMfnu0.js";import"./p-vRhNRfmB.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:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,l),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=C();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:"aa119f199b02e20b2b48f7896eb45d24835ba5a7"},e(r,{key:"039b8851d8edfe1ba82b177b518048273523eb10"},e(h,{key:"c9990dc58cfe188217cc1f46f9f210c87ea2ca1e"},e(c,{key:"6b934363f143e36c23f872ca1dd20c2befef0d90"},this.terminalsTable.columnData.map((t=>t)))),e(o,{key:"9121d7efc3cf3c70fdf45b0d47e253e9d1632a2c"},e(n,{key:"783490f80ac64791eb182fa741f9dec0b6970f5b",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"9d3662266c2de7325d4c98485bb10ad9699fad50",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"ef1cad4fbeb112788c4cfc60b6f160dce6525e31",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"d789ae5d479374cf569fa2e196cbdc8817cf318a"},e(u,{key:"445e5bbe532ca217b07dc08591d1a620766a669d"},e(b,{key:"13e17ca1daf744f2c73bf6194572c864b7932b75",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"3031bda0078c0e61876c1cc4e67c06234e08729d",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 +0,0 @@
|
|
|
1
|
-
import{r as e,c as a,h as t}from"./p-kpoIU4v_.js";import{W as s,X as c,Y as d}from"./p-CfF8KKwx.js";const i=class{constructor(t){e(this,t),this.selectedQuantityChange=a(this,"selectedQuantityChange"),this.limit=1/0,this.selectedQuantity=0,this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))}}render(){return t("div",{key:"a1e81baf3c6db04cae113ec9efdbdf990210413f",class:"rounded shadow-sm card p-2",part:d},t("div",{key:"f8a1e39815a7932f7d452a055652a8cd22508310",class:"d-flex gap-3"},t("div",{key:"e7df0cd31126428f5ad374a855505e6c701b3f64",class:"d-flex align-items-center"},t("img",{key:"c32e1a286ffbf382c7400041df7573ea5c5ae736",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:s})),t("div",{key:"05cf7f5c7ac3b9259334ff0a54a79e5f67bf89f8",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},t("div",{key:"99031623ae281a4142710391361b0bfee8bb2fe0",class:"row"},t("div",{key:"c5e81e4acc36a90ae70aef260fb8304c70b2d3a1",class:"col-6 d-flex gap-2"},this.modelName,t("form-control-tooltip",{key:"0a7484029de75b1591f3389929cd313261c53a52",helpText:this.description})),t("div",{key:"bfe5d3dd9c758a46a0ddcf4919e98798703f9d73",class:"col-6 d-flex justify-content-end align-items-center"},t("button",{key:"de3891aad65c2865b3f4a8777eeadf0836c5ef39",class:"p-0 minus btn",onClick:this.removeUnit,part:c},"-"),t("div",{key:"a0c9ab81984ae26dca9636a26de2c7e24e3f9989",class:"w-25 text-center"},this.selectedQuantity),t("button",{key:"206dc9d22cdd7cea8b3a8d70c9ce28156d8d1a4c",class:"p-0 plus btn",onClick:this.addUnit,part:c},"+"))))))}};export{i as terminal_quantity_selector}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-kpoIU4v_.js";import{S as e}from"./p-CRFzwZW6.js";import{S as o}from"./p-BC8YDY7M.js";import"./p-CfF8KKwx.js";const r=class{constructor(t){s(this,t)}render(){return t(e,{key:"bc7f16e36d1d3da605bf59bdcb6106d7ed51bcc9"},t(o,{key:"b3947442cec1bf7b5634f42dc682a436ad9bddee",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{r as justifi_skeleton}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as i,r as s,c as t}from"./p-kpoIU4v_.js";import{al as e,ai as r,ae as o,D as l}from"./p-CfF8KKwx.js";import{S as d}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-D456WTYf.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-DD74a16D.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-BC8YDY7M.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{i as f,h as w,b as j}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g,a as x}from"./p-D2muobcE.js";import{T as y}from"./p-DWUnL_zj.js";import{j as b}from"./p-zdIeCUeh.js";import"./p-DqFAlAve.js";import"./p-I8XpD1TX.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-7WIgS5RM.js";const D=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),S=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(D,null)),k=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),C=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?j.boardingShipping:j.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:x(a.error),code:g(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=g(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:x(d.error),code:g(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=g(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(S,null),this.loading.terminals&&i("div",{class:"mt-5"},i(k,null),i(k,null),i(k,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,b(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"866ce6548ba7252581c370fc33cad23e6a302f4e"},i("div",{key:"2fbdde66e65ac95347a6b50e60f258a8e814e3ab",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{C as justifi_order_terminals}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-kpoIU4v_.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-BVD7g3cE.js";import{y as l,z as d,A as p,B as o}from"./p-CfF8KKwx.js";import{S as c}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{c as f}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const n=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:f.connected},{label:"Disconnected",value:f.disconnected},{label:"Unknown",value:f.unknown},{label:"Pending Configuration",value:f.pending_configuration}]}render(){const e=Object.assign({},s);return a(c,{key:"61740c6ddc8d9ae3f59748c49bdf5cd1a805c967"},a("table-filters-menu",{key:"a1fff9dec129e6f1457d7fc87a15758a6c4583dd",params:e,clearParams:r,part:l},a("div",{key:"a14b25c631435c48602953d1a4a240b46ccafc09",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"bba2a423f61e4c099d67f1ab02b96e15c462d825",class:"p-2"},a("form-control-text",{key:"5853b337812ae1915ea5f0fbb6a7458b9767a7ce",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:d})),a("div",{key:"2067dfd98dc4eeaf6f7312a29cb7dbebaf027110",class:"p-2"},a("form-control-text",{key:"5e39773e75d8ebf1d2e089d26afdbe1c4bb7a2c7",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:p})),a("div",{key:"a3bbd3db48174df02bf7bf3f68bd80e2a33ed3ae",class:"p-2"},a("form-control-select",{key:"cd591dfc5ceabe5631983139f04435e5f46cb47e",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status,disabled:!!this.terminalStatus,part:o})))))}};export{n as justifi_terminals_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,H as s}from"./p-kpoIU4v_.js";import{I as i}from"./p-Ce_F4E0f.js";import{b as d,T as l,a as o,c,l as r}from"./p-CfF8KKwx.js";import{F as n}from"./p-C_CXv7AN.js";import"./p-CZfYo5-1.js";import{S as f}from"./p-BX8GieXu.js";import{n as h}from"./p-BnjCmwMr.js";const u=class{constructor(a){e(this,a),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.initializeIMask=()=>{this.textInput&&(this.imask=i(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var e;const t=null===(e=this.imask)||void 0===e?void 0:e.unmaskedValue;void 0!==t&&this.inputHandler(this.name,t)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=e=>{var t;const a=e.target,s=a.getAttribute("name"),i=(null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue)||a.value;this.formControlInput.emit({name:s,value:i})},this.updateInput=e=>{this.imask&&e&&(this.imask.value=String(e))}}handleDefaultValueChange(e){this.initializeIMask(),this.updateInput(e)}disconnectedCallback(){var e;null===(e=this.imask)||void 0===e||e.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}get part(){return this.errorText?d:this.disabled?l:this.isFocused?o:c}render(){return a(s,{key:"7e2cbd8676a4513170e1c920fafffeae4cc042f2"},a("div",{key:"bde27be5dfe86c5c820f46263ec73f014f8a628a",class:"form-group d-flex flex-column"},a("div",{key:"bee2a81a0b23aafbb522debac5697dbc4eaaf7bc",class:"d-flex align-items-start gap-2"},a("label",{key:"1d43eb5e7167cba5ef63439e6807deef35f7c2ea",part:r,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"aadef33688848d580ec6b369528165480c61bc49",helpText:this.helpText})),a("input",{key:"a57624c146db1bf54ce73853f6c0514042335502",ref:e=>this.textInput=e,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),a(n,{key:"56be93f77b87e7a4ced570d8d12c94f3864083a5",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},b=class{constructor(t){e(this,t),this.address={},this.inputHandler=(e,t)=>{this.address[e]=t,this.address=Object.assign({},this.address)}}handleAddressChange(e){this.handleFormUpdate(e)}render(){var e,t,i,d,l,o,c,r,n,u,b,m;return a(s,{key:"136f90a2d2e8634c003a5f47af20d422b7cc59be"},a("div",{key:"e7441c2a0410381be43f8d0735fdf4e390f664f2",class:"row gy-3"},a("div",{key:"93f23a3ba51716a88bf90628f395dbb3bc456cdc",class:"col-12 col-md-8"},a("form-control-text",{key:"f4801f6eb05d3a169142daa6b0d123ef84864de8",name:"line1",label:"Street Address",defaultValue:null===(e=this.defaultValues)||void 0===e?void 0:e.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1,inputHandler:this.inputHandler,helpText:"Enter your address exactly as stated on your driver's license. No PO Boxes."})),a("div",{key:"e8ce49dcd4d3c6df3327d2c011ec1c0a080fb4f2",class:"col-12 col-md-4"},a("form-control-text",{key:"8cbe92c156c4d410b712b2fc95c7bfe55be4e337",name:"line2",label:"Apartment, Suite, etc. (optional)",defaultValue:null===(i=this.defaultValues)||void 0===i?void 0:i.line2,errorText:null===(d=this.errors)||void 0===d?void 0:d.line2,inputHandler:this.inputHandler})),a("div",{key:"4cfcfc24268fd92ccaac110a8293e95bc9998af8",class:"col-12"},a("form-control-text",{key:"b2739b7fd7838ee73c9127fd8e9b0dd6dcd12210",name:"city",label:"City",defaultValue:null===(l=this.defaultValues)||void 0===l?void 0:l.city,errorText:null===(o=this.errors)||void 0===o?void 0:o.city,inputHandler:this.inputHandler})),a("div",{key:"ce9e4974dcdab596dfcefef362d045ee2fea3648",class:"col-12 col-md-6"},a("form-control-select",{key:"c001d0a3d3b402768ec428c0e5760cf0e88c318d",name:"state",label:"State",defaultValue:null===(c=this.defaultValues)||void 0===c?void 0:c.state,options:f,errorText:null===(r=this.errors)||void 0===r?void 0:r.state,inputHandler:this.inputHandler})),a("div",{key:"7b73598a2b207db9ec2480ed37d163aa45128e6d",class:"col-12 col-md-6"},a("form-control-text",{key:"a070edca32110dc4ec238c486ae96852733ae924",name:"postal_code",label:"Postal Code",defaultValue:null===(n=this.defaultValues)||void 0===n?void 0:n.postal_code,errorText:null===(u=this.errors)||void 0===u?void 0:u.postal_code,maxLength:5,keyDownHandler:h,inputHandler:this.inputHandler})),a("div",{key:"57b01955142ed533a65058b63cfd20598e8387c2",class:"col-12"},a("form-control-select",{key:"8f07809025c039b4c39a452ddf2948f973a82d9a",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null===(b=this.defaultValues)||void 0===b?void 0:b.country,errorText:null===(m=this.errors)||void 0===m?void 0:m.country,disabled:!0}))))}static get watchers(){return{address:["handleAddressChange"]}}};export{u as form_control_number_masked,b as justifi_identity_address_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as o}from"./p-kpoIU4v_.js";import{F as p}from"./p-CfF8KKwx.js";const r=r=>o("h1",{class:`header-1 ${null==r?void 0:r.class}`,part:p},r.text);export{r as H}
|