@justifi/webcomponents 6.0.0-rc.2 → 6.0.0-rc.3
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-BfmeLSXP.js → check-pkg-version-DvwUM1uA.js} +1 -1
- package/dist/cjs/{checkout.store-Cn3Jj5gi.js → checkout.store-CV_fuGQw.js} +0 -1
- 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-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 +11 -98
- 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-CuNDvHTB.js → package-BLAsoHSG.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/collection-manifest.json +0 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +5 -92
- 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 +1 -1
- package/dist/collection/store/checkout.store.js +0 -1
- 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 +1 -463
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-D4ZXPFjL.js → badge-D_mzXSCQ.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-C0wLsDP3.js → button-CeR8qVS3.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BuYkk-jV.js → check-pkg-version-D1hbenUd.js} +1 -1
- package/dist/esm/{checkout.store-OAv_iY1u.js → checkout.store-B60siz2l.js} +0 -1
- package/dist/esm/checkouts-list-core.entry.js +5 -5
- package/dist/esm/{checkouts-table-DjGKtqoc.js → checkouts-table-CFZYoYjn.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-Bzfs_rxk.js → form-control-error-text-D3ZwkOv-.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-ueLctOBN.js → form-control-help-text-C39ZW65w.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-BMKEv9y6.js → header-1-E-hEi3wF.js} +1 -1
- package/dist/esm/{header-3-C3t3m27b.js → header-3-Dm7M85kz.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +7 -7
- package/dist/esm/{insurance-state-d4hjThzE.js → insurance-state-CB4l8sOv.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-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 +15 -102
- 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-C60pS6qh.js → package-DqFAlAve.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-RvUQ__Pq.js → parts-CfF8KKwx.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-1yRdTNeS.js → payments-status-XoZrlbiZ.js} +1 -1
- package/dist/esm/{payments-table-8RADYkma.js → payments-table-Dh4P9mTb.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-BqsQVtBp.js → payouts-status-Qm2jZG1-.js} +1 -1
- package/dist/esm/{payouts-table-DPw7yIx8.js → payouts-table-DMVAZp-r.js} +2 -2
- package/dist/esm/{skeleton-BmTjpTYa.js → skeleton-DrHwsgs_.js} +1 -1
- package/dist/esm/{spinner-YGDOI-CS.js → spinner-XBq6mVJW.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/{table-ybHxxc9f.js → table-qqt2Ew5y.js} +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +6 -6
- package/dist/esm/{terminal-orders-table-D-xP5WuM.js → terminal-orders-table-BN4Co4T8.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-DVAPCgEr.js → terminals-table-C8LczeG_.js} +2 -2
- package/dist/esm/{utils-DG5aMFmf.js → utils-kWaZhFAd.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 +0 -1
- 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-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 +5 -92
- 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 +1 -1
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -8
- package/dist/types/components.d.ts +0 -120
- package/dist/types/store/checkout.store.d.ts +0 -1
- package/dist/webcomponents/{p-387bcdee.entry.js → p-0935b6e5.entry.js} +1 -1
- package/dist/webcomponents/{p-dc245644.entry.js → p-0b790fa4.entry.js} +4 -4
- package/dist/webcomponents/{p-0e64cd09.entry.js → p-0cab7d5d.entry.js} +1 -1
- package/dist/webcomponents/p-0cc85003.entry.js +1 -0
- package/dist/webcomponents/{p-cbfc8269.entry.js → p-0e287092.entry.js} +1 -1
- package/dist/webcomponents/{p-a406bf1a.entry.js → p-15777cfe.entry.js} +1 -1
- package/dist/webcomponents/p-1975406a.entry.js +1 -0
- package/dist/webcomponents/{p-7b9fa1fb.entry.js → p-29b6f15a.entry.js} +1 -1
- package/dist/webcomponents/p-2a59547b.entry.js +1 -0
- package/dist/webcomponents/p-2da63719.entry.js +1 -0
- package/dist/webcomponents/{p-fbaf62a5.entry.js → p-35bbfbf8.entry.js} +1 -1
- package/dist/webcomponents/{p-cabaf013.entry.js → p-37445ce9.entry.js} +1 -1
- package/dist/webcomponents/{p-b04cc606.entry.js → p-3d85d046.entry.js} +1 -1
- package/dist/webcomponents/{p-0aee6da6.entry.js → p-43d693a3.entry.js} +1 -1
- package/dist/webcomponents/{p-03c7cee8.entry.js → p-48bccf3b.entry.js} +1 -1
- package/dist/webcomponents/p-4ae2a0b9.entry.js +1 -0
- package/dist/webcomponents/p-4b795b77.entry.js +1 -0
- package/dist/webcomponents/{p-c7e5245a.entry.js → p-4b808606.entry.js} +1 -1
- package/dist/webcomponents/{p-1202181b.entry.js → p-4bba4e66.entry.js} +1 -1
- package/dist/webcomponents/{p-d014a155.entry.js → p-5001e722.entry.js} +1 -1
- package/dist/webcomponents/{p-a1a8f6bd.entry.js → p-53c81d62.entry.js} +1 -1
- package/dist/webcomponents/p-5477c449.entry.js +1 -0
- package/dist/webcomponents/p-56980ef3.entry.js +1 -0
- package/dist/webcomponents/{p-a9d2dd5e.entry.js → p-57143978.entry.js} +1 -1
- package/dist/webcomponents/p-614fcef6.entry.js +1 -0
- package/dist/webcomponents/{p-f3be7b2b.entry.js → p-63b1fffd.entry.js} +1 -1
- package/dist/webcomponents/{p-5ad70aae.entry.js → p-6e18d13f.entry.js} +1 -1
- package/dist/webcomponents/{p-08a5cc2f.entry.js → p-738e0511.entry.js} +1 -1
- package/dist/webcomponents/p-739d6f13.entry.js +1 -0
- package/dist/webcomponents/p-74ae5db7.entry.js +1 -0
- package/dist/webcomponents/{p-76a95d07.entry.js → p-79055216.entry.js} +1 -1
- package/dist/webcomponents/{p-2169c3d1.entry.js → p-7ed7b2f6.entry.js} +1 -1
- package/dist/webcomponents/{p-281e36be.entry.js → p-84ce3bae.entry.js} +1 -1
- package/dist/webcomponents/{p-e8a198fa.entry.js → p-904a95e5.entry.js} +1 -1
- package/dist/webcomponents/{p-42994618.entry.js → p-93e7df50.entry.js} +1 -1
- package/dist/webcomponents/{p-bfc38bc2.entry.js → p-9a4c1990.entry.js} +1 -1
- package/dist/webcomponents/p-9ccd19f5.entry.js +1 -0
- package/dist/webcomponents/{p-1246b999.entry.js → p-9f289c31.entry.js} +1 -1
- package/dist/webcomponents/p-BC8YDY7M.js +1 -0
- package/dist/webcomponents/{p-BUadwxkh.js → p-BTkXk7ol.js} +1 -1
- package/dist/webcomponents/p-BbYVgLcf.js +1 -0
- package/dist/webcomponents/{p-CP_tg-uH.js → p-BeszVz87.js} +1 -1
- package/dist/webcomponents/{p-wyEq9Pa1.js → p-BisQ61nK.js} +1 -1
- package/dist/webcomponents/{p-HAk7yBNq.js → p-Bz164TKZ.js} +1 -1
- package/dist/webcomponents/p-C1fMfnu0.js +1 -0
- package/dist/webcomponents/{p-BXKEChoo.js → p-CCME-fyU.js} +1 -1
- package/dist/webcomponents/p-C_CXv7AN.js +1 -0
- package/dist/webcomponents/{p-RvUQ__Pq.js → p-CfF8KKwx.js} +1 -1
- package/dist/webcomponents/{p-DBsw4qpn.js → p-CsNubTqD.js} +1 -1
- package/dist/webcomponents/p-CwZKT93w.js +1 -0
- package/dist/webcomponents/{p-D9Sv4eV5.js → p-D456WTYf.js} +1 -1
- package/dist/webcomponents/p-D599ZMGU.js +1 -0
- package/dist/webcomponents/{p-DuXN7Akd.js → p-DO3INvI2.js} +1 -1
- package/dist/webcomponents/p-DqFAlAve.js +1 -0
- package/dist/webcomponents/{p-BhdBpAn9.js → p-Dvxpy_P1.js} +1 -1
- package/dist/webcomponents/{p-D48iERjQ.js → p-JgbsbAhz.js} +1 -1
- package/dist/webcomponents/{p-nWGo6sHu.js → p-YND5pTuF.js} +1 -1
- package/dist/webcomponents/{p-32cc081a.entry.js → p-a069c345.entry.js} +1 -1
- package/dist/webcomponents/{p-59e8f027.entry.js → p-a0b8c888.entry.js} +1 -1
- package/dist/webcomponents/p-a33ea645.entry.js +1 -0
- package/dist/webcomponents/{p-92efb3f2.entry.js → p-a3ab166f.entry.js} +1 -1
- package/dist/webcomponents/{p-4c994761.entry.js → p-a8205044.entry.js} +1 -1
- package/dist/webcomponents/{p-c6860f60.entry.js → p-b0bfa20f.entry.js} +1 -1
- package/dist/webcomponents/p-ba018d57.entry.js +1 -0
- package/dist/webcomponents/p-be06d86a.entry.js +1 -0
- package/dist/webcomponents/{p-4a79c737.entry.js → p-befda39d.entry.js} +1 -1
- package/dist/webcomponents/{p-ea1b161a.entry.js → p-c217869b.entry.js} +1 -1
- package/dist/webcomponents/{p-afc83e27.entry.js → p-c5b48e8d.entry.js} +1 -1
- package/dist/webcomponents/{p-4cf9168d.entry.js → p-c65f157f.entry.js} +1 -1
- package/dist/webcomponents/{p-55b7bdba.entry.js → p-d1a65c6d.entry.js} +1 -1
- package/dist/webcomponents/p-dd4ef924.entry.js +1 -0
- package/dist/webcomponents/p-df4f2af9.entry.js +1 -0
- package/dist/webcomponents/p-e1ba5735.entry.js +1 -0
- package/dist/webcomponents/{p-e6ca1872.entry.js → p-e2267656.entry.js} +1 -1
- package/dist/webcomponents/p-e4e30e84.entry.js +1 -0
- package/dist/webcomponents/{p-cf16498f.entry.js → p-e546b8f8.entry.js} +1 -1
- package/dist/webcomponents/{p-0aa78c58.entry.js → p-e6a1a851.entry.js} +1 -1
- package/dist/webcomponents/{p-2988e82c.entry.js → p-e898de89.entry.js} +1 -1
- package/dist/webcomponents/p-f200cbda.entry.js +1 -0
- package/dist/webcomponents/{p-1a83d9f2.entry.js → p-f21549f3.entry.js} +1 -1
- package/dist/webcomponents/p-f4645aef.entry.js +1 -0
- package/dist/webcomponents/{p-a70bc148.entry.js → p-f4f3cae8.entry.js} +1 -1
- package/dist/webcomponents/{p-1b892b3a.entry.js → p-f7e62bfa.entry.js} +1 -1
- package/dist/webcomponents/{p-C0AHrswP.js → p-qMrd7_Gp.js} +1 -1
- package/dist/webcomponents/{p-DKRXPZKS.js → p-vRhNRfmB.js} +1 -1
- package/dist/webcomponents/p-zrUQD0Wr.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -830
- package/dist/collection/api/ApplePay.js +0 -119
- package/dist/collection/api/services/apple-pay.service.js +0 -329
- package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +0 -554
- package/dist/collection/ui-components/apple-pay-button.js +0 -146
- package/dist/esm/justifi-apple-pay.entry.js +0 -828
- package/dist/module/justifi-apple-pay.d.ts +0 -11
- package/dist/module/justifi-apple-pay.js +0 -871
- package/dist/types/api/ApplePay.d.ts +0 -196
- package/dist/types/api/services/apple-pay.service.d.ts +0 -65
- package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -38
- package/dist/types/ui-components/apple-pay-button.d.ts +0 -17
- package/dist/webcomponents/p-12c312a0.entry.js +0 -1
- package/dist/webcomponents/p-1c0c1d7b.entry.js +0 -1
- package/dist/webcomponents/p-1e206c92.entry.js +0 -1
- package/dist/webcomponents/p-2a0a907d.entry.js +0 -1
- package/dist/webcomponents/p-41416b5f.entry.js +0 -1
- package/dist/webcomponents/p-5510b57c.entry.js +0 -1
- package/dist/webcomponents/p-5a5f07be.entry.js +0 -1
- package/dist/webcomponents/p-5acd6add.entry.js +0 -1
- package/dist/webcomponents/p-5afbfafb.entry.js +0 -1
- package/dist/webcomponents/p-6974a44c.entry.js +0 -1
- package/dist/webcomponents/p-6f2b41f5.entry.js +0 -1
- package/dist/webcomponents/p-6f9755cc.entry.js +0 -1
- package/dist/webcomponents/p-7288473f.entry.js +0 -1
- package/dist/webcomponents/p-98939b74.entry.js +0 -1
- package/dist/webcomponents/p-BZzESzqz.js +0 -1
- package/dist/webcomponents/p-BmFoKOM3.js +0 -1
- package/dist/webcomponents/p-BtOB_CaO.js +0 -1
- package/dist/webcomponents/p-C60pS6qh.js +0 -1
- package/dist/webcomponents/p-D7eeJWA-.js +0 -1
- package/dist/webcomponents/p-DOd8HaWV.js +0 -1
- package/dist/webcomponents/p-DcE8SQPv.js +0 -1
- package/dist/webcomponents/p-Drz6LnIw.js +0 -1
- package/dist/webcomponents/p-b41d2b8f.entry.js +0 -1
- package/dist/webcomponents/p-b8f63e28.entry.js +0 -1
- package/dist/webcomponents/p-ba84c3bd.entry.js +0 -1
- package/dist/webcomponents/p-c62e23c1.entry.js +0 -1
- package/dist/webcomponents/p-eff0b0e9.entry.js +0 -1
- package/dist/webcomponents/p-f787bc18.entry.js +0 -1
- package/dist/webcomponents/p-fb1904d2.entry.js +0 -1
- package/dist/webcomponents/p-fcb6e870.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
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-
|
|
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 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i}from"./p-kpoIU4v_.js";import{I as a}from"./p-Ce_F4E0f.js";import{C as
|
|
1
|
+
import{r as t,c as s,h as e,H as i}from"./p-kpoIU4v_.js";import{I as a}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{a2 as h,l as o,U as n,b as l,T as c,a as f}from"./p-CfF8KKwx.js";import{F as d}from"./p-D599ZMGU.js";import{F as p}from"./p-C_CXv7AN.js";import"./p-CZfYo5-1.js";const m=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=a(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=l),this.disabled&&(t=c),this.isFocused&&(t=f),t}render(){return e(i,{key:"59e5e4d46e7d4ece898464d846505756611f6635"},e("div",{key:"e82201d6777584666ec5ca04ad9e02b83fa956c0",class:"form-group d-flex flex-column"},e("label",{key:"9bbb22bb201d3db07670e4f26521593ff229f583",part:o,class:"form-label",htmlFor:this.name},this.label),e("div",{key:"61909b4796f78e22d9e6508d9257cdf16220e675",class:"input-group"},e("span",{key:"152a4f1a6323e55bf6f48aa25353939569acc419",class:"input-group-text",part:n},"$"),e("input",{key:"cc8055c02a4ccb4f63553f45b5ded4ee3d8cf972",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),e(d,{key:"776dfb4a9d74342ba139dda6706af8e60b4700fc",helpText:this.helpText,name:this.name}),e(p,{key:"74e503b7e525aeeb994b1ae94941f07365d2460e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-kpoIU4v_.js";import{c as t,a as i,F as c}from"./p-CR9D6mKt.js";import{al as d}from"./p-RvUQ__Pq.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"f407dba7be750c75d9bd3163647e62b57f7b32df"},a("div",{key:"5d690bf3227112c1d6f86d956bb98dd5bb2d585d",class:"row gy-3"},a("div",{key:"e12ecbe52d9383b449cde0ffafe32b952c293ad8",class:"col-12"},a("h2",{key:"aaeeeed0024985d9be89ce02f252ef999dd9d197",class:"h5",part:d},"Additional Evidence")),a("div",{key:"aedfe85e833e387998815246faa21f46184ddcdb",class:"col-12"},a("form-control-textarea",{key:"affa35eb587e6b70546f18414d7436bc267c0201",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"ec650c06058b30773dacf1c1f9cafedb526ced90",class:"col-12"},a("form-control-file-v2",{key:"d9a75a49a8ada0dfe0b2466ec03a8842c75bddf8",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53b8b9ca5ef0b2fbb3801aeed7c442517b54ffa8"},a("div",{key:"e122c095d856545b52d5958db10b8e982de73073",class:"row gy-3"},a("div",{key:"9ddc0fa91765209b3fa393c0ebf17598af90b3b9",class:"col-12"},a("h2",{key:"a7e3001dbc2b36e20e2a1dd1d16b44a023610010",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"7b5481566998713ba87519b999e5acdf3eb0ef52",class:"col-12"},a("form-control-textarea",{key:"c67604fa2133a3ed9b5b67a7150e488673d21478",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"4b96c57d15060a0a6c42bede64110d67be557060",class:"col-12"},a("form-control-textarea",{key:"60ddac4a5c2574461dbb28281b89851d0e89600c",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"42015bc3bbcbf208d39906d7b270776e3e90ddac",class:"col-12"},a("form-control-file-v2",{key:"76365a80cd7068267a8a40c6be608a9344e884ce",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"a8fde002d56a1c5ff7bace9e7ad8282b3e8396c1"},a("div",{key:"b1ec9e406e26de2bdb179afbfa3a9a7ad7612fe9",class:"row gy-3"},a("div",{key:"a0a31924c5cc7f0a35859899851e003eec970c50",class:"col-12"},a("h2",{key:"de62f11cc36fbf96a0a1d409cc35adba2e997bb8",class:"h5",part:d},"Customer Details")),a("div",{key:"65cd3d78b510ad95f97dcadcbb60d91caf950f22",class:"col-12"},a("form-control-text",{key:"e539cbbac218f3d1927f3ddccca4c0c0e958eec1",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a6eca53da11014123325064fe09b6df37709f113",class:"col-12"},a("form-control-text",{key:"9b874331a62dffb2f00af002b0637fdd0f1a8d2c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"69be313a715c3fe9a78ecffaca75b3a4dff5bed2",class:"col-12"},a("form-control-textarea",{key:"e366f5ebed7a117c2e1f4e1c3c3a740aa9e5475a",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"3b177078766a8b04f3de68889cb991b23c15752c",class:"col-12"},a("form-control-file-v2",{key:"0d2cc6edded1211028460ef506ef470d14a09718",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"4a624251414dcfad4b5e2b6d34b99dc2ef9b59dc",class:"col-12"},a("form-control-file-v2",{key:"442dc7cc2f851879ebb1504d761e2315c6f45141",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"fcf2b846ac2f612a53895836df0a5287da15b20a"},a("div",{key:"953be0fa8732b94991d1c078a9102666e5a91a81",class:"row gy-3"},a("div",{key:"60f7ef7802a5f3ff7cd2167ba747d37e258e3f99",class:"col-12"},a("h2",{key:"3e1336abfca85298ee392459dfa22401a8e47259",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"75fa5b181b617cd68010e01f91a8513c9c828acb",class:"col-12"},a("form-control-text",{key:"b54f2d3d86aabc2072acaf2b961de118934bedcd",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"614f070bd6d0aad1e2e64c2e2f9c447402fd161a",class:"col-12"},a("form-control-textarea",{key:"a0653f81b9e237b669bfc47e7788b9027a1d5a6a",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"f358128dbb1715a40841521f9602e30bb6c7d702",class:"col-12"},a("form-control-file-v2",{key:"ad7f1b8219560600ef3fba20a0b968a9d3930b3d",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"fb40a53ecb355271bfdff95eed90e6b5e4827ae9"},a("div",{key:"fcbcdd6a8bb4891ac5a3cb26d54d26d6f317f401",class:"row gy-3"},a("div",{key:"b605ae860e8e6efd21ee21ed851d23af5e813c04",class:"col-12"},a("h2",{key:"a7c8d699c79f92334f159025acbbe65969452594",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"1a623a273c2e6a82ffcb9c709d6953ba01590a02",class:"col-12"},a("form-control-text",{key:"7d8b0ee30a8c7b6bef84f19fe7734484ba84b0e1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"d50d372a0881ce648fa61ba96e61f3f28d4136ae",class:"col-12"},a("form-control-file-v2",{key:"e635514b9a48cfabb7d16c53293585ad1740c608",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53894694d5f6c1cfe7d8d699af69e4dc6c496fb8"},a("div",{key:"c1cb70ef48be5e50bdb1fd0d47416b48342f7620",class:"row gy-3"},a("div",{key:"837aa7683621d26ee08a1f8f3b1f5ae65b63bd94",class:"col-12"},a("h2",{key:"9c51ee3f6df442237cd3c23306f79b7e15fed133",class:"h5",part:d},"Product & Service Details")),a("div",{key:"259ea001a1896c34088a6a03a725564c5cd48a74",class:"col-12"},a("form-control-text",{key:"f237fc051614689b9b8c8227d6a6d7266a9adeaa",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"a0f7a0cb813c7ee2a4423abc1506f7c775ad9e07",class:"col-12"},a("form-control-date",{key:"fca7aef52b721fa472b5459b9dc47f95dca1ce76",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"f285bfe4242cc1179c5a7b4864b907101edeaebb",class:"col-12"},a("form-control-file-v2",{key:"9ad064a5be5381cccbe33e4dc1e00879996ad513",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"839a9b7ea7f978987e44f643af2d2aa8ac9557ff"},a("div",{key:"410211fe20a2e9ab23ec1e3f172b200afb2db8ae",class:"row gy-3"},a("div",{key:"9e6121b760cf47feaeffdc231780490ce47342f7",class:"col-12"},a("h2",{key:"fe64c8a2be67d179ddc4157c4fa8876937c2e4b8",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"db91b2f1c102026cc6998f9f8163761d1bf85024",class:"col-12"},a("form-control-textarea",{key:"199cd5d32ff726681a918ced7f1790bd292e0cf7",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"e48e83b580182698374627889cf0cff69dd3779f",class:"col-12"},a("form-control-textarea",{key:"627faade4d3afaad7d700494652d559ede4f69af",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"bdfca2b3878de2a665961fd6cd4fc10833f385bc",class:"col-12"},a("form-control-file-v2",{key:"a8d0d09bf0d8298ba85ead4b643d5ea774336ba0",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"41f43575895d15f34bfa2f6095462068cd6ad5d6",class:"col-12"},a("form-control-file-v2",{key:"aceae6c113bc38019bc20125eb3e8be0d111c15f",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"9e142fde27da140959115d1acf4a64d7420f90ba"},a("div",{key:"bf322d6ec351e67bd4f3fdfec759e1f5c5d381a6",class:"row gy-3"},a("div",{key:"165a55dc932d0110728c87726231d0cb4b962650",class:"col-12"},a("h2",{key:"43f318effe869349595025a76ced5ea39093a0ef",class:"h5",part:d},"Shipping Details")),a("div",{key:"1de38ece17aa8b93cfc00858a4d495a950d46239",class:"col-12"},a("form-control-text",{key:"d9cfd173732a42abf831ee632ca05d3db78b7135",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5b298a18d97e06904c22c9a918c6f9ebc25f8219",class:"col-12"},a("form-control-text",{key:"c164c2bfc1772498f3e21c51e2979479021cf86d",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"82128f9527e8061ecf2897af65d908af03c46bbe",class:"col-12"},a("form-control-date",{key:"13e602a61a85978f129890423a36a95a8b055258",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"5591510c56724f58567c88792cbbeb3cd15e1d0e",class:"col-12"},a("form-control-textarea",{key:"1e7cbc326345feebd0ffae9b6ec56bfbc36a8193",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"d2d1026fd1c7c3b32a6988fb940c431948630b08",class:"col-12"},a("form-control-file-v2",{key:"21abf54f6a64980c73200ae89130626316917aa7",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
1
|
+
import{r as e,h as a}from"./p-kpoIU4v_.js";import{c as t,a as i,F as c}from"./p-CR9D6mKt.js";import{al as d}from"./p-CfF8KKwx.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"f407dba7be750c75d9bd3163647e62b57f7b32df"},a("div",{key:"5d690bf3227112c1d6f86d956bb98dd5bb2d585d",class:"row gy-3"},a("div",{key:"e12ecbe52d9383b449cde0ffafe32b952c293ad8",class:"col-12"},a("h2",{key:"aaeeeed0024985d9be89ce02f252ef999dd9d197",class:"h5",part:d},"Additional Evidence")),a("div",{key:"aedfe85e833e387998815246faa21f46184ddcdb",class:"col-12"},a("form-control-textarea",{key:"affa35eb587e6b70546f18414d7436bc267c0201",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"ec650c06058b30773dacf1c1f9cafedb526ced90",class:"col-12"},a("form-control-file-v2",{key:"d9a75a49a8ada0dfe0b2466ec03a8842c75bddf8",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53b8b9ca5ef0b2fbb3801aeed7c442517b54ffa8"},a("div",{key:"e122c095d856545b52d5958db10b8e982de73073",class:"row gy-3"},a("div",{key:"9ddc0fa91765209b3fa393c0ebf17598af90b3b9",class:"col-12"},a("h2",{key:"a7e3001dbc2b36e20e2a1dd1d16b44a023610010",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"7b5481566998713ba87519b999e5acdf3eb0ef52",class:"col-12"},a("form-control-textarea",{key:"c67604fa2133a3ed9b5b67a7150e488673d21478",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"4b96c57d15060a0a6c42bede64110d67be557060",class:"col-12"},a("form-control-textarea",{key:"60ddac4a5c2574461dbb28281b89851d0e89600c",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"42015bc3bbcbf208d39906d7b270776e3e90ddac",class:"col-12"},a("form-control-file-v2",{key:"76365a80cd7068267a8a40c6be608a9344e884ce",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"a8fde002d56a1c5ff7bace9e7ad8282b3e8396c1"},a("div",{key:"b1ec9e406e26de2bdb179afbfa3a9a7ad7612fe9",class:"row gy-3"},a("div",{key:"a0a31924c5cc7f0a35859899851e003eec970c50",class:"col-12"},a("h2",{key:"de62f11cc36fbf96a0a1d409cc35adba2e997bb8",class:"h5",part:d},"Customer Details")),a("div",{key:"65cd3d78b510ad95f97dcadcbb60d91caf950f22",class:"col-12"},a("form-control-text",{key:"e539cbbac218f3d1927f3ddccca4c0c0e958eec1",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a6eca53da11014123325064fe09b6df37709f113",class:"col-12"},a("form-control-text",{key:"9b874331a62dffb2f00af002b0637fdd0f1a8d2c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"69be313a715c3fe9a78ecffaca75b3a4dff5bed2",class:"col-12"},a("form-control-textarea",{key:"e366f5ebed7a117c2e1f4e1c3c3a740aa9e5475a",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"3b177078766a8b04f3de68889cb991b23c15752c",class:"col-12"},a("form-control-file-v2",{key:"0d2cc6edded1211028460ef506ef470d14a09718",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"4a624251414dcfad4b5e2b6d34b99dc2ef9b59dc",class:"col-12"},a("form-control-file-v2",{key:"442dc7cc2f851879ebb1504d761e2315c6f45141",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"fcf2b846ac2f612a53895836df0a5287da15b20a"},a("div",{key:"953be0fa8732b94991d1c078a9102666e5a91a81",class:"row gy-3"},a("div",{key:"60f7ef7802a5f3ff7cd2167ba747d37e258e3f99",class:"col-12"},a("h2",{key:"3e1336abfca85298ee392459dfa22401a8e47259",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"75fa5b181b617cd68010e01f91a8513c9c828acb",class:"col-12"},a("form-control-text",{key:"b54f2d3d86aabc2072acaf2b961de118934bedcd",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"614f070bd6d0aad1e2e64c2e2f9c447402fd161a",class:"col-12"},a("form-control-textarea",{key:"a0653f81b9e237b669bfc47e7788b9027a1d5a6a",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"f358128dbb1715a40841521f9602e30bb6c7d702",class:"col-12"},a("form-control-file-v2",{key:"ad7f1b8219560600ef3fba20a0b968a9d3930b3d",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"fb40a53ecb355271bfdff95eed90e6b5e4827ae9"},a("div",{key:"fcbcdd6a8bb4891ac5a3cb26d54d26d6f317f401",class:"row gy-3"},a("div",{key:"b605ae860e8e6efd21ee21ed851d23af5e813c04",class:"col-12"},a("h2",{key:"a7c8d699c79f92334f159025acbbe65969452594",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"1a623a273c2e6a82ffcb9c709d6953ba01590a02",class:"col-12"},a("form-control-text",{key:"7d8b0ee30a8c7b6bef84f19fe7734484ba84b0e1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"d50d372a0881ce648fa61ba96e61f3f28d4136ae",class:"col-12"},a("form-control-file-v2",{key:"e635514b9a48cfabb7d16c53293585ad1740c608",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"53894694d5f6c1cfe7d8d699af69e4dc6c496fb8"},a("div",{key:"c1cb70ef48be5e50bdb1fd0d47416b48342f7620",class:"row gy-3"},a("div",{key:"837aa7683621d26ee08a1f8f3b1f5ae65b63bd94",class:"col-12"},a("h2",{key:"9c51ee3f6df442237cd3c23306f79b7e15fed133",class:"h5",part:d},"Product & Service Details")),a("div",{key:"259ea001a1896c34088a6a03a725564c5cd48a74",class:"col-12"},a("form-control-text",{key:"f237fc051614689b9b8c8227d6a6d7266a9adeaa",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"a0f7a0cb813c7ee2a4423abc1506f7c775ad9e07",class:"col-12"},a("form-control-date",{key:"fca7aef52b721fa472b5459b9dc47f95dca1ce76",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"f285bfe4242cc1179c5a7b4864b907101edeaebb",class:"col-12"},a("form-control-file-v2",{key:"9ad064a5be5381cccbe33e4dc1e00879996ad513",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"839a9b7ea7f978987e44f643af2d2aa8ac9557ff"},a("div",{key:"410211fe20a2e9ab23ec1e3f172b200afb2db8ae",class:"row gy-3"},a("div",{key:"9e6121b760cf47feaeffdc231780490ce47342f7",class:"col-12"},a("h2",{key:"fe64c8a2be67d179ddc4157c4fa8876937c2e4b8",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"db91b2f1c102026cc6998f9f8163761d1bf85024",class:"col-12"},a("form-control-textarea",{key:"199cd5d32ff726681a918ced7f1790bd292e0cf7",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"e48e83b580182698374627889cf0cff69dd3779f",class:"col-12"},a("form-control-textarea",{key:"627faade4d3afaad7d700494652d559ede4f69af",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"bdfca2b3878de2a665961fd6cd4fc10833f385bc",class:"col-12"},a("form-control-file-v2",{key:"a8d0d09bf0d8298ba85ead4b643d5ea774336ba0",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"41f43575895d15f34bfa2f6095462068cd6ad5d6",class:"col-12"},a("form-control-file-v2",{key:"aceae6c113bc38019bc20125eb3e8be0d111c15f",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"9e142fde27da140959115d1acf4a64d7420f90ba"},a("div",{key:"bf322d6ec351e67bd4f3fdfec759e1f5c5d381a6",class:"row gy-3"},a("div",{key:"165a55dc932d0110728c87726231d0cb4b962650",class:"col-12"},a("h2",{key:"43f318effe869349595025a76ced5ea39093a0ef",class:"h5",part:d},"Shipping Details")),a("div",{key:"1de38ece17aa8b93cfc00858a4d495a950d46239",class:"col-12"},a("form-control-text",{key:"d9cfd173732a42abf831ee632ca05d3db78b7135",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5b298a18d97e06904c22c9a918c6f9ebc25f8219",class:"col-12"},a("form-control-text",{key:"c164c2bfc1772498f3e21c51e2979479021cf86d",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"82128f9527e8061ecf2897af65d908af03c46bbe",class:"col-12"},a("form-control-date",{key:"13e602a61a85978f129890423a36a95a8b055258",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"5591510c56724f58567c88792cbbeb3cd15e1d0e",class:"col-12"},a("form-control-textarea",{key:"1e7cbc326345feebd0ffae9b6ec56bfbc36a8193",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"d2d1026fd1c7c3b32a6988fb940c431948630b08",class:"col-12"},a("form-control-file-v2",{key:"21abf54f6a64980c73200ae89130626316917aa7",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as 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}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{r as l,h as i,H as t}from"./p-kpoIU4v_.js";import{c as e,D as s}from"./p-
|
|
1
|
+
import{r as l,h as i,H as t}from"./p-kpoIU4v_.js";import{c as e,D as s}from"./p-DO3INvI2.js";import{l as v,s as d,m as o}from"./p-zdIeCUeh.js";import"./p-CfF8KKwx.js";import"./p-HXpYMWUU.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||v(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:d(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,d,o,a,u,n;return!this.legalAddress||v(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,v,d,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,d,a,u,n,r,c,h,m,p,w,b,g;return!this.representative||v(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(d=this.representative)||void 0===d?void 0:d.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(w=this.representative)||void 0===w?void 0:w.email}),i(e,{title:"Phone",value:null===(b=this.representative)||void 0===b?void 0:b.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(g=this.representative)||void 0===g?void 0:g.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{P as r}from"./p-Bb6FBEPP.js";import{m as
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{P as r}from"./p-Bb6FBEPP.js";import{m as e}from"./p-CLwzqWk2.js";import{E as p}from"./p-DO3INvI2.js";import{C as o,a}from"./p-Cjcsf8ku.js";import{c as m,J as h}from"./p-D456WTYf.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D2muobcE.js";import"./p-CfF8KKwx.js";import"./p-DqFAlAve.js";const n=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new h(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=e({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-kpoIU4v_.js";import{T as i,a,b as r,c as h,d as o,e as
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-kpoIU4v_.js";import{T as i,a,b as r,c as h,d as o,e as c,f as n,g as p,h as f,i as d,j as m,k as b,l as u}from"./p-Bz164TKZ.js";import{T as g}from"./p-CZfYo5-1.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import{p as j}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-BTkXk7ol.js";import{o as k,g as C}from"./p-CVQyw7ao.js";import"./p-CfF8KKwx.js";import"./p-C1fMfnu0.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-vRhNRfmB.js";const O=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=j,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"7ef0adc44be5987cbd02f5da80f7dc4330ff7a43"},e(a,{key:"efe8e403dae877a6529becae890b0e055726cc0f"},e(r,{key:"ef981fa014144f9e237d9b258846e68cb50ea7f5"},e(h,{key:"555df6bd09f4ccb01bada68933f362ef6f7679d7"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"1a5b95e5c41e1162ff8907d3ba664d304b9c355e"},e(c,{key:"546146a7390a96f2d2704e31cc84d9269bbdc28a",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"3c32f5ec402f96e8f71b1f0edbb4d9e2169c23cc",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"e1154e1c4b320f8e23566821b56948e875b16174",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.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(d,{key:"2b3f2d329baeff7ad8eb813a08335660ca037bd2"},e(m,{key:"651f18da8298dda7f2be2717cca0ab7c01cac14d"},e(b,{key:"7a25b264810334dbbf633079374c77ab745cb1bb",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"996ae93faff3c83ab8022208c1a2c297bc1c9a27",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-kpoIU4v_.js";import{c as i,d as r,e as a}from"./p-5aA7gjr5.js";import{I as o}from"./p-DD74a16D.js";import{F as d}from"./p-CR9D6mKt.js";import{O as c}from"./p-BlJnA265.js";import{i as h}from"./p-PgEzcvI6.js";import{B as n}from"./p-
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-kpoIU4v_.js";import{c as i,d as r,e as a}from"./p-5aA7gjr5.js";import{I as o}from"./p-DD74a16D.js";import{F as d}from"./p-CR9D6mKt.js";import{O as c}from"./p-BlJnA265.js";import{i as h}from"./p-PgEzcvI6.js";import{B as n}from"./p-JgbsbAhz.js";import{V as f}from"./p-CfF8KKwx.js";import"./p-CZfYo5-1.js";import{B as l}from"./p-XYgDHrVL.js";import{S as m,P as b}from"./p-B-iV5cYd.js";import{u as p,a as u,b as y}from"./p-1ydcg9ti.js";import"./p-Cjcsf8ku.js";import"./p-D2muobcE.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CYBR4K2p.js";import"./p-yH3TC3ZQ.js";const k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"07ad7cd2bb38442dc591c9e3421223294690ee8c",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},j=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.formLoading=t(this,"formLoading"),this.ownerSubmitted=t(this,"ownerSubmitted"),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new c(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?l.updateOwner:l.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:l.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new c(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(h("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"570c20c1fdf79268e6c8193a393515c8602a3a44",onSubmit:this.validateAndSubmit},s("fieldset",{key:"f4f75a735438baef254d4578b779ca16e5080a41"},s("legend",{key:"dc0c83a7ada9f908afec56d7560f7d9d116baa40",class:"fw-semibold fs-5",part:f},this.formTitle),s("br",{key:"5d97c0b38073618aef80ff9576cd57ab0e70d44e"}),s("div",{key:"b15a207a4c4afc1249ce3b8a381e7b57ceb32e7a",class:"row gy-3"},s("owner-form-inputs",{key:"21bd3e9b00580e7293338ad746c189d19ac3d98e",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"b4653d9b78094b15bfba61e3a18ea3703dc53162",class:"d-flex gap-2 justify-content-start"},s(n,{key:"0328aa7af6e3c2f7ed8aa16724dedcb576bb9870",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"e42671667156149d5424243eef1d6675a3bd6506",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"ee7bf4cdb63cdc31df8b307ffb1772e5c0f0348c"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},v=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{u(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){return s("div",{key:"86abe1713fdfd297e88c1fc1734fadb2c9eab966",class:"row gy-3"},s("div",{key:"63a03271f2a777d4cede3b0790e11c7f4108797f",class:"col-12 col-md-8"},s("form-control-text",{key:"b86dd9184dbf50e00e047a733ff708526e32d6dc",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c3850b7425ca0d8a118a6b78933f3a2fbe343124",class:"col-12 col-md-4"},s("form-control-text",{key:"f1f6e801eb36bcae5f2e51f8cd4ea9b7ed6a34a8",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"b07a8a86dbdef296c9438953ef311ccae3aed23c",class:"col-12 col-md-6"},s("form-control-text",{key:"714ca04b0bf0e5ed1b116b8f4963ba12f7fd6b77",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"46c11c80bb58d0190ff05f1e87ba962443b07c59",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"6da40db9fb8b3e4f3a744cd0426f4e6436350594",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})),s("div",{key:"0960ea2fb399d0098caeabf45347a89c74066f57",class:"col-12 col-md-4"},s("form-control-date",{key:"fe0891a3f42c093d70db1dd1d1a7e121ba3091c1",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"e7cbc519fa6f4fa5b03a0d0b69c7d7f1c42185ff",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"cf2b280c1560bd1a9f80cf81c1543d41bd807233",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:m,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"1755c849992bfd9f459b65b4cf7e967039fdbe27",class:"col-12"},s("justifi-identity-address-form",{key:"ac5372d4a9fad8ee3cfe2af20c11868e8753cc35",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{k as justifi_owner_form,j as owner_form_core,v as owner_form_inputs}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as i,c as t}from"./p-kpoIU4v_.js";import{c as r,F as e}from"./p-CR9D6mKt.js";import{b as o,a}from"./p-DSP8qjHL.js";import{i as p,a as h}from"./p-PgEzcvI6.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as n,a as l}from"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import{B as m,b as c}from"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as d,J as j}from"./p-
|
|
1
|
+
import{h as s,r as i,c as t}from"./p-kpoIU4v_.js";import{c as r,F as e}from"./p-CR9D6mKt.js";import{b as o,a}from"./p-DSP8qjHL.js";import{i as p,a as h}from"./p-PgEzcvI6.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as n,a as l}from"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import{B as m,b as c}from"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as d,J as j}from"./p-D456WTYf.js";import{B as u}from"./p-JgbsbAhz.js";import{S as f}from"./p-CRFzwZW6.js";import{H as v}from"./p-zrUQD0Wr.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-BC8YDY7M.js";import{B as g}from"./p-XYgDHrVL.js";import{m as w,b as C}from"./p-5aA7gjr5.js";import{B as y}from"./p-DD74a16D.js";import"./p-BFTU3MAI.js";import"./p-CYBR4K2p.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-DqFAlAve.js";import"./p-I8XpD1TX.js";import"./p-CfF8KKwx.js";import"./p-D2muobcE.js";const D=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),B=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),x=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(B,null),s(B,null),s(B,null)),I=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){d(),this.analytics=new j(this),this.formController=new e(D),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=w({authToken:this.authToken,businessId:this.businessId,service:new y}),this.patchBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new y}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=c.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(x,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:g.submit}),isLoading:this.isSaving},"Submit")))))}};export{I as justifi_business_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-kpoIU4v_.js";import{f as i}from"./p-zdIeCUeh.js";import{z as a,ai as r}from"./p-RvUQ__Pq.js";import{B as d}from"./p-D48iERjQ.js";import{S as c}from"./p-CRFzwZW6.js";import{S as o}from"./p-DOd8HaWV.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as l}from"./p-D2muobcE.js";import{D as u}from"./p-BySyDTv5.js";import{D as f}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-D9Sv4eV5.js";import"./p-HXpYMWUU.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C60pS6qh.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:l(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new u})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:f.respondToDispute})}render(){var e,t,n,h,p,l,u;return s(c,{key:"ec6f99be66b3b164c367b96d8274824d2e709dd5"},this.isLoading&&s("div",{key:"26587e055eb4756785ae5935fd803746ddab355d",style:{marginBottom:"8px"}},s(o,{key:"159c5d9b0fb16af4aac0125ea5e69bd9f7b4210e",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"5c89a8dd2244ddaed8c26b743cb22f20fa2e2742",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"6f0a6ebf743bdbea125c6630cb98c5bda5bd9919",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"f44a0c9494731be14b75e3b25adc2b09c61c84a5",part:a},s("h1",{key:"d8820437a86bebcc0782607796b4f2c5429d40e7",class:"h4",part:r},"This payment is disputed"),s("p",{key:"8cf4a2b3194d781d5f17ae3067d9931be54159e2"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"d79312da2cc6715016be0b57d1b70e0ddbc2b8c5",class:"h5"},"Dispute details"),s("div",{key:"958af1e87a119c4af76729b54bf322c16b966c54",class:"d-table gap-2"},s("div",{key:"e10802db747c99408371863c94c2f47737a03626",class:"d-table-row gap-2"},s("span",{key:"84b151c7c9846fd395517ab14339504e56e5298d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"197dffa3676aa9ff7425cea00eca69bb84bef427",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"4754429fa095be98083e34b32485cc45f379151b",class:"d-table-row gap-2"},s("span",{key:"c3e168a4d7dd902b9c4bc67531b7489dea32bda2",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"f08c9ce67f2b7b673de82963bacaf6ea8af87353",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"0de1ab69dbc18cb00b31df8c2c4ab421a5982b4b",class:"d-table-row gap-2"},s("span",{key:"8217191859fed71cbeac5173b0a43ff4a98c397d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"e63c3d2a1f0dbd98aae53a402be9fa96344e4f0b",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"5767bc945b2fd3c7390011771b5c7a53c27c4447",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"dd6676ca0348579051cf13ce32bf6d9b1a2a3d21",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"27655bc90dd44e05180739e9c2a0f695ad294266",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"2b25123f6bf95ad7e847b4365f96eab71f1933f8"},s("h1",{key:"ab4b47f721ded5deb8b04a9b55b6c2978616f23b",class:"h4"},"This payment is disputed and under review"),s("p",{key:"bf4ee462258e4742ddf5722f470b597134489ee1"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(l=this.dispute)||void 0===l?void 0:l.won)&&s("div",{key:"ba1257cb1448cb8b4cd1aba4340f2ac65208e264"},s("h1",{key:"203b5926fa96278cfd3a7b0a4d5398226b2361b6",class:"h4"},"This payment was disputed"),s("p",{key:"8f05fc9fb0d7f5151519bbf82ed6abeca676e4b5"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(u=this.dispute)||void 0===u?void 0:u.lost)&&s("div",{key:"1f6d1d4048cc011d61292934dd225ef07dcf260d"},s("h1",{key:"3df3c3a6bf4c86e8eb0361b039d88f55b502177c",class:"h4"},"This payment was disputed"),s("p",{key:"03f2dce54b06ad242f8e8d1d4c8194219013af1c"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:l(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new u}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:l(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new u}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new u})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"29abcdaed7ccbfee203794068c72354a5e1e0bab"},s("justifi-dispute-response-core",{key:"e0697cb6261d0b50d6adb6d33caa955d08e4e158","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:f.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:f.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:f.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:f.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"41406d4115c2a084c84ca59895c0107af2a30e4d",class:"row gy-3"},s("div",{key:"54f86cc1ffdb90a4ec738ca6cdac8165025ede65",class:"col-12"},s("h1",{key:"28a0289b5926d7f4d04a658f13782d80aa96584a",class:"h4",part:r},"Counter dispute")),s("div",{key:"abfcc8a09326b8d780647a644dd0b6e1deada071",class:"col-12"},this.currentStepComponent),s("div",{key:"e1bfbd12d9c6c86521d1d47cd4afb007960cdf9b",class:"col-12"},s("div",{key:"3149002728d1953c116758ab48eb0a2481a68398",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-kpoIU4v_.js";import{f as i}from"./p-zdIeCUeh.js";import{D as a,ai as r}from"./p-CfF8KKwx.js";import{B as d}from"./p-JgbsbAhz.js";import{S as c}from"./p-CRFzwZW6.js";import{S as o}from"./p-BC8YDY7M.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as l}from"./p-D2muobcE.js";import{D as u}from"./p-BySyDTv5.js";import{D as f}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-D456WTYf.js";import"./p-HXpYMWUU.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DqFAlAve.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:l(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new u})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:f.respondToDispute})}render(){var e,t,n,h,p,l,u;return s(c,{key:"ec6f99be66b3b164c367b96d8274824d2e709dd5"},this.isLoading&&s("div",{key:"26587e055eb4756785ae5935fd803746ddab355d",style:{marginBottom:"8px"}},s(o,{key:"159c5d9b0fb16af4aac0125ea5e69bd9f7b4210e",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(o,{key:"5c89a8dd2244ddaed8c26b743cb22f20fa2e2742",height:"18px",styles:{marginBottom:"8px"}}),s(o,{key:"6f0a6ebf743bdbea125c6630cb98c5bda5bd9919",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"f44a0c9494731be14b75e3b25adc2b09c61c84a5",part:a},s("h1",{key:"d8820437a86bebcc0782607796b4f2c5429d40e7",class:"h4",part:r},"This payment is disputed"),s("p",{key:"8cf4a2b3194d781d5f17ae3067d9931be54159e2"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"d79312da2cc6715016be0b57d1b70e0ddbc2b8c5",class:"h5"},"Dispute details"),s("div",{key:"958af1e87a119c4af76729b54bf322c16b966c54",class:"d-table gap-2"},s("div",{key:"e10802db747c99408371863c94c2f47737a03626",class:"d-table-row gap-2"},s("span",{key:"84b151c7c9846fd395517ab14339504e56e5298d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"197dffa3676aa9ff7425cea00eca69bb84bef427",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"4754429fa095be98083e34b32485cc45f379151b",class:"d-table-row gap-2"},s("span",{key:"c3e168a4d7dd902b9c4bc67531b7489dea32bda2",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"f08c9ce67f2b7b673de82963bacaf6ea8af87353",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"0de1ab69dbc18cb00b31df8c2c4ab421a5982b4b",class:"d-table-row gap-2"},s("span",{key:"8217191859fed71cbeac5173b0a43ff4a98c397d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"e63c3d2a1f0dbd98aae53a402be9fa96344e4f0b",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"5767bc945b2fd3c7390011771b5c7a53c27c4447",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"dd6676ca0348579051cf13ce32bf6d9b1a2a3d21",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"27655bc90dd44e05180739e9c2a0f695ad294266",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"2b25123f6bf95ad7e847b4365f96eab71f1933f8"},s("h1",{key:"ab4b47f721ded5deb8b04a9b55b6c2978616f23b",class:"h4"},"This payment is disputed and under review"),s("p",{key:"bf4ee462258e4742ddf5722f470b597134489ee1"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(l=this.dispute)||void 0===l?void 0:l.won)&&s("div",{key:"ba1257cb1448cb8b4cd1aba4340f2ac65208e264"},s("h1",{key:"203b5926fa96278cfd3a7b0a4d5398226b2361b6",class:"h4"},"This payment was disputed"),s("p",{key:"8f05fc9fb0d7f5151519bbf82ed6abeca676e4b5"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(u=this.dispute)||void 0===u?void 0:u.lost)&&s("div",{key:"1f6d1d4048cc011d61292934dd225ef07dcf260d"},s("h1",{key:"3df3c3a6bf4c86e8eb0361b039d88f55b502177c",class:"h4"},"This payment was disputed"),s("p",{key:"03f2dce54b06ad242f8e8d1d4c8194219013af1c"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:l(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new u}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var c;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:l(d.error),code:p(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new u}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new u})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(c,{key:"29abcdaed7ccbfee203794068c72354a5e1e0bab"},s("justifi-dispute-response-core",{key:"e0697cb6261d0b50d6adb6d33caa955d08e4e158","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:f.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:f.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:f.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:f.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"41406d4115c2a084c84ca59895c0107af2a30e4d",class:"row gy-3"},s("div",{key:"54f86cc1ffdb90a4ec738ca6cdac8165025ede65",class:"col-12"},s("h1",{key:"28a0289b5926d7f4d04a658f13782d80aa96584a",class:"h4",part:r},"Counter dispute")),s("div",{key:"abfcc8a09326b8d780647a644dd0b6e1deada071",class:"col-12"},this.currentStepComponent),s("div",{key:"e1bfbd12d9c6c86521d1d47cd4afb007960cdf9b",class:"col-12"},s("div",{key:"3149002728d1953c116758ab48eb0a2481a68398",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{h as i,r as e,H as a}from"./p-kpoIU4v_.js";import{S as t}from"./p-
|
|
1
|
+
import{h as i,r as e,H as a}from"./p-kpoIU4v_.js";import{S as t}from"./p-BC8YDY7M.js";import{w as s,c}from"./p-9y5MOK55.js";import"./p-CfF8KKwx.js";import"./p-7WIgS5RM.js";const r=e=>{const{isReady:a}=e;return a?null:i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-end"},i(t,{height:"18px",width:"120px"}),i(t,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(t,{height:"18px",width:"110px"}),i(t,{height:"36px"}))))},d=class{constructor(i){e(this,i),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((i=>new Promise((e=>{i.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.accountNumberIframeElement.validate(),e=await this.routingNumberIframeElement.validate();return i&&e}async tokenize(i,e,a){return this.accountNumberIframeElement.tokenize(i,e,a)}render(){return i(a,{key:"843caa7d14d4694d78e477cb51d6caac387fdb23"},i(r,{key:"f4381a71ef5831d159f51472744c7d7a85221464",isReady:this.isReady}),i("div",{key:"8de6e74f3559d94747d8ca942f777977325f16e5",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"09e19bc320f2095c9148ddaa2105813071d5f9da",class:"row mb-3"},i("iframe-input",{key:"e6262b9fa09d8b30da046dc0c1a01a7bbac33a7d",inputId:"accountNumber",ref:i=>this.accountNumberIframeElement=i,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),i("div",{key:"15b85f900ce89f440ecbfe62e61d36d15eff9c2b",class:"row"},i("iframe-input",{key:"9b4cf61adfd4a5c68e07cc4eb49841727ce2c63d",inputId:"routingNumber",ref:i=>this.routingNumberIframeElement=i,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}};export{d as bank_account_form}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{
|
|
1
|
+
import{h as t}from"./p-kpoIU4v_.js";import{R as e,S as r}from"./p-CfF8KKwx.js";import{a}from"./p-zdIeCUeh.js";import"./p-9y5MOK55.js";import"./p-Cjcsf8ku.js";import{b as s}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as o,a as d}from"./p-vRhNRfmB.js";const i="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},l={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(d,Object.assign({},{submitted:{variant:o.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:o.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:o.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:o.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:o.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:o.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let o;return e.order_type===s.boardingOnly?o="Boarding Only":e.order_type===s.boardingShipping&&(o="Boarding & Shipping"),t("td",{part:r(a)},o)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{l as a,i as d,p as t}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{B as e,a}from"./p-
|
|
1
|
+
import{h as t}from"./p-kpoIU4v_.js";import{B as e,a}from"./p-vRhNRfmB.js";const n=n=>t(a,Object.assign({},{canceled:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Canceled"},failed:{variant:e.DANGER,title:"Transfer to your bank account failed",text:"Failed"},forwarded:{variant:e.SECONDARY,title:"This payout initially failed; the funds have been forwarded to your next successful payout",text:"Forwarded"},in_transit:{variant:e.PRIMARY,title:"Transfer to your bank account has been initiated",text:"In Transit"},paid:{variant:e.SUCCESS,title:"Successfully deposited into your bank account",text:"Paid"},pending:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Pending"},scheduled:{variant:e.PRIMARY,title:"Batched and scheduled to be transferred",text:"Scheduled"},withdrawn:{variant:e.SUCCESS,title:"Negative payout balance successfully withdrawn from your bank account",text:"Withdrawn"}}[n]));export{n as M}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{a}from"./p-zdIeCUeh.js";import{M as e}from"./p-
|
|
1
|
+
import{h as t}from"./p-kpoIU4v_.js";import{a}from"./p-zdIeCUeh.js";import{M as e}from"./p-BeszVz87.js";import{R as o,S as s}from"./p-CfF8KKwx.js";const p="created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv",r={created_at:()=>t("th",{part:o,scope:"col",title:"The date the payout was deposited"},"Created"),sub_account_name:()=>t("th",{part:o,scope:"col",title:"The sub account associated with the payout"},"Sub Account"),payments_total:()=>t("th",{part:o,scope:"col",title:"The total payments amount associated with the payout"},"Payments"),refunds_total:()=>t("th",{part:o,scope:"col",title:"The total refunds amount associated with the payout"},"Refunds"),fees_total:()=>t("th",{part:o,scope:"col",title:"The total fees amount associated with the payout"},"Fees"),other_total:()=>t("th",{part:o,scope:"col",title:"The total other amount"},"Other"),amount:()=>t("th",{part:o,scope:"col",title:"The total amount of the payout"},"Amount"),status:()=>t("th",{part:o,scope:"col",title:"The real-time status of each payout"},"Status"),csv:()=>t("th",{part:o,scope:"col",title:"Export CSV"})},c=o=>({created_at:(e,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0}))),sub_account_name:(a,e)=>t("td",{part:s(e)},a.sub_account_name),payments_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.payments_total)),refunds_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.refunds_total)),fees_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.fees_total)),other_total:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.other_total)),amount:(a,e)=>t("td",{part:s(e)},a.formattedPaymentAmount(a.amount)),status:(a,o)=>t("td",{part:s(o)},e(a.status)),csv:(a,e)=>t("td",{part:s(e)},t("a",{href:"#",onClick:t=>{t.preventDefault(),o(a.id)}},"CSV"))});export{c as a,p as d,r as p}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{aj as a,am as s,an as e,ao as r,ap as l,aq as c,ar as n,as as o,at as p,ak as i}from"./p-
|
|
1
|
+
import{h as t}from"./p-kpoIU4v_.js";import{aj as a,am as s,an as e,ao as r,ap as l,aq as c,ar as n,as as o,at as p,ak as i}from"./p-CfF8KKwx.js";import{S as b}from"./p-C1fMfnu0.js";const u=(a,s)=>t("div",Object.assign({class:"table-wrapper",part:"table-wrapper"},a),s),d=(s,e)=>t("table",Object.assign({class:"table table-hover",part:a},s),e),h=(a,s)=>t("tbody",Object.assign({class:"table-body"},a),s),m=(a,s)=>t("tr",Object.assign({part:r},a),s),j=(a,e)=>t("thead",Object.assign({class:"table-head sticky-top",part:s},a),e),g=(a,s)=>t("tr",Object.assign({class:"table-light text-nowrap",part:e},a),s),y=(a,s)=>t("tfoot",Object.assign({class:"sticky-bottom",part:l},a),s),O=(a,s)=>t("tr",Object.assign({class:"table-light align-middle",part:c},a),s),f=(a,s)=>t("td",Object.assign({part:n},a),s),x=a=>{const{columnSpan:s,isEmpty:e}=a;return s&&e?t("tr",null,t("td",{class:"empty-state",part:o,colSpan:s,style:{textAlign:"center"}},"No results")):null},S=a=>{const{columnSpan:s,errorMessage:e}=a;return s&&e?t("tr",null,t("td",{class:"error-state",part:p,colSpan:s,"data-test-id":"table-error-state",style:{textAlign:"center"}},"An unexpected error occurred: ",e)):null},k=a=>{const{columnSpan:s,isLoading:e}=a;return s&&e?t("tr",null,t("td",{class:"loading-state",part:i,colSpan:s,style:{textAlign:"center"}},t(b,null))):null};class w{get columnData(){return this.columnKeys.map((t=>this.tableColumns[t]()))}get rowData(){return this.collection.map(((t,a)=>this.columnKeys.map((s=>this.tableCells[s](t,a)))))}set collectionData(t){this.collection=t}constructor(t,a,s,e){this.columnKeys=a.split(","),this.collection=t,this.tableColumns=s,this.tableCells=e}}export{w as T,d as a,j as b,g as c,h as d,k as e,x as f,S as g,m as h,y as i,O as j,f as k,u as l}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{c as e}from"./p-7WIgS5RM.js";const o={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",disableBankAccount:!1,disableBnpl:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,
|
|
1
|
+
import{c as e}from"./p-7WIgS5RM.js";const o={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",disableBankAccount:!1,disableBnpl:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,paymentDescription:"",paymentMethodGroupId:void 0,paymentMethods:[],paymentToken:void 0,savePaymentMethod:!1,selectedPaymentMethod:"",totalAmount:0},{state:t,onChange:n}=e(o);Object.keys(o).forEach((e=>{n(e,(o=>{t[e]=o}))}));export{t as c,n as o}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`button ${e}`,p=`button-primary ${d}`,m=`button-secondary ${d}`,u=`button-link ${d}`,c="button-loading",b=`label ${e}`,f=`input ${e} ${t}`,g=`input-group ${f}`,h=`input-invalid ${f}`,y=`input-disabled ${f}`,k=`input-focused ${f}`,x=`input-invalid-and-focused ${f}`,v="input-radio",w=`input-radio-focused ${v}`,j=`input-radio-checked ${v}`,q=`input-radio-checked-focused ${v}`,z=`input-radio-invalid ${v}`,A="input-checkbox",B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`input-adornment ${e}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${t}`,L=`table ${e} ${t}`,M=`table-row ${e} ${t}`,N=`table-cell ${e} ${t}`,O="table-head",P=`table-head-row ${e} ${t}`,Q=`table-head-cell ${N}`,R="table-foot",S=`table-foot-row ${e} ${t}`,T=`table-foot-cell ${N}`,U=`table-cell-even ${N}`,V=`table-cell-odd ${N}`,W=a=>a%2?U:V,X=`table-empty ${e} ${t}`,Y=`table-error ${e} ${t}`,Z=`pagination-button ${d}`,_=`pagination-button-disabled button-disabled ${d}`,aa=`pagination-button-text ${e}`,ta=`pagination-button-icon ${e}`,ea=`pagination-button-icon-next ${ta}`,sa=`pagination-button-icon-previous ${ta}`,ia="loading-spinner",ra=`badge ${a}`,la=`${ra} badge-primary`,na=`${ra} badge-secondary`,oa=`${ra} badge-success`,$a=`${ra} badge-danger`,da=`${ra} badge-warning`,pa=`${ra} badge-info`,ma=`${ra} badge-light`,ua=`${ra} badge-dark`,ca=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${p}`,fa=`radio-list-item ${e}`,ga="skeleton",ha="image",ya="billing-form",ka="checkout-summary",xa="filter-menu",va=`${xa} payments-list-filter-menu`,wa="payments-list-filter-param",ja=`${wa} payment-id-payments-list-filter-param`,qa=`${wa} terminal-id-payments-list-filter-param`,za=`${wa} payment-status-payments-list-filter-param`,Aa=`${wa} created-after-payments-list-filter-param`,Ba=`${wa} created-before-payments-list-filter-param`,Ca=`${xa} payouts-list-filter-menu`,Da="payouts-list-filter-param",Ea=`${Da} created-after-payouts-list-filter-param`,Fa=`${Da} created-before-payouts-list-filter-param`,Ga=`${xa} checkouts-list-filter-menu`,Ha="checkouts-list-filter-param",Ia=`${Ha} checkout-status-checkouts-list-filter-param`,Ja=`${Ha} payment-mode-checkouts-list-filter-param`,Ka=`${xa} terminals-list-filter-menu`,La="terminals-list-filter-param",Ma=`${La} terminal-id-terminals-list-filter-param`,Na=`${La} terminal-order-id-terminals-list-filter-param`,Oa=`${La} terminal-status-terminals-list-filter-param`,Pa=`${xa} terminal-orders-list-filter-menu`,Qa="terminal-orders-list-filter-param",Ra=`${Qa} order-status-terminal-orders-list-filter-param`,Sa=`${Qa} order-type-terminal-orders-list-filter-param`,Ta=`${Qa} created-after-terminal-orders-list-filter-param`,Ua=`${Qa} created-before-terminal-orders-list-filter-param`;export{C as $,
|
|
1
|
+
const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`button ${e}`,p=`button-primary ${d}`,m=`button-secondary ${d}`,u=`button-link ${d}`,c="button-loading",b=`label ${e}`,f=`input ${e} ${t}`,g=`input-group ${f}`,h=`input-invalid ${f}`,y=`input-disabled ${f}`,k=`input-focused ${f}`,x=`input-invalid-and-focused ${f}`,v="input-radio",w=`input-radio-focused ${v}`,j=`input-radio-checked ${v}`,q=`input-radio-checked-focused ${v}`,z=`input-radio-invalid ${v}`,A="input-checkbox",B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`input-adornment ${e}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${t}`,L=`table ${e} ${t}`,M=`table-row ${e} ${t}`,N=`table-cell ${e} ${t}`,O="table-head",P=`table-head-row ${e} ${t}`,Q=`table-head-cell ${N}`,R="table-foot",S=`table-foot-row ${e} ${t}`,T=`table-foot-cell ${N}`,U=`table-cell-even ${N}`,V=`table-cell-odd ${N}`,W=a=>a%2?U:V,X=`table-empty ${e} ${t}`,Y=`table-error ${e} ${t}`,Z=`pagination-button ${d}`,_=`pagination-button-disabled button-disabled ${d}`,aa=`pagination-button-text ${e}`,ta=`pagination-button-icon ${e}`,ea=`pagination-button-icon-next ${ta}`,sa=`pagination-button-icon-previous ${ta}`,ia="loading-spinner",ra=`badge ${a}`,la=`${ra} badge-primary`,na=`${ra} badge-secondary`,oa=`${ra} badge-success`,$a=`${ra} badge-danger`,da=`${ra} badge-warning`,pa=`${ra} badge-info`,ma=`${ra} badge-light`,ua=`${ra} badge-dark`,ca=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${p}`,fa=`radio-list-item ${e}`,ga="skeleton",ha="image",ya="billing-form",ka="checkout-summary",xa="filter-menu",va=`${xa} payments-list-filter-menu`,wa="payments-list-filter-param",ja=`${wa} payment-id-payments-list-filter-param`,qa=`${wa} terminal-id-payments-list-filter-param`,za=`${wa} payment-status-payments-list-filter-param`,Aa=`${wa} created-after-payments-list-filter-param`,Ba=`${wa} created-before-payments-list-filter-param`,Ca=`${xa} payouts-list-filter-menu`,Da="payouts-list-filter-param",Ea=`${Da} created-after-payouts-list-filter-param`,Fa=`${Da} created-before-payouts-list-filter-param`,Ga=`${xa} checkouts-list-filter-menu`,Ha="checkouts-list-filter-param",Ia=`${Ha} checkout-status-checkouts-list-filter-param`,Ja=`${Ha} payment-mode-checkouts-list-filter-param`,Ka=`${xa} terminals-list-filter-menu`,La="terminals-list-filter-param",Ma=`${La} terminal-id-terminals-list-filter-param`,Na=`${La} terminal-order-id-terminals-list-filter-param`,Oa=`${La} terminal-status-terminals-list-filter-param`,Pa=`${xa} terminal-orders-list-filter-menu`,Qa="terminal-orders-list-filter-param",Ra=`${Qa} order-status-terminal-orders-list-filter-param`,Sa=`${Qa} order-type-terminal-orders-list-filter-param`,Ta=`${Qa} created-after-terminal-orders-list-filter-param`,Ua=`${Qa} created-before-terminal-orders-list-filter-param`;export{C as $,Na as A,Oa as B,ga as C,e as D,s as E,r as F,l as G,ua as H,ma as I,pa as J,da as K,$a as L,oa as M,na as N,la as O,ra as P,ia as Q,Q as R,W as S,y as T,F as U,n as V,ha as W,u as X,K as Y,B as Z,E as _,k as a,D as a0,A as a1,g as a2,z as a3,q as a4,j as a5,w as a6,v as a7,Z as a8,_ as a9,sa as aa,aa as ab,ea as ac,m as ad,p as ae,c as af,ba as ag,ca as ah,o as ai,L as aj,N as ak,$ as al,O as am,P as an,M as ao,R as ap,S as aq,T as ar,X as as,Y as at,G as au,ya as av,H as aw,J as ax,I as ay,h as b,f as c,ka as d,Ga as e,va as f,ja as g,za as h,x as i,Aa as j,Ba as k,b as l,Ca as m,Ea as n,Fa as o,Ja as p,Pa as q,fa as r,Ia as s,qa as t,Ra as u,Sa as v,Ta as w,Ua as x,Ka as y,Ma as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-kpoIU4v_.js";import{b as e,d as a}from"./p-zdIeCUeh.js";import{B as c,a as o}from"./p-
|
|
1
|
+
import{h as t}from"./p-kpoIU4v_.js";import{b as e,d as a}from"./p-zdIeCUeh.js";import{B as c,a as o}from"./p-vRhNRfmB.js";import{R as p,S as s}from"./p-CfF8KKwx.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},h={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{h as a,d as c,r as d}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{p as t}from"./p-
|
|
1
|
+
import{p as t}from"./p-DqFAlAve.js";import{A as s}from"./p-I8XpD1TX.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const n=async()=>{const s=t.version,i=t.name,e=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(i),o=e.replace(/-rc.*/,""),n=s.split("."),r=e.split(".");n[0]!==r[0]&&console.warn(`The package ${i} is out of date. The latest version is ${o}. Please update.`)};export{o as J,n as c}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
import{h as a}from"./p-kpoIU4v_.js";import{
|
|
1
|
+
import{h as a}from"./p-kpoIU4v_.js";import{D as s,F as l,G as t}from"./p-CfF8KKwx.js";const e=l=>a("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},a("p",{part:s},l)),p=s=>a("h2",{part:t,class:"mt-4 fs-5 border-bottom pb-3"},s.sectionTitle),r=({title:l,value:t})=>l&&t?a("div",{class:"d-table-row gap-2"},a("span",{class:"fw-bold d-table-cell px-2",part:s},l),a("span",{class:"flex-1 d-table-cell px-2 text-wrap",part:s},t)):null,c=({title:l,value:e,classes:p})=>a("div",{class:`d-flex flex-column ${p}`},a("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:t},l),a("span",{class:"pt-2 ps-2 pe-2",part:s},e)),o=({title:t,slot:e,badge:p},r)=>a("div",{slot:e,class:"p-2"},a("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},a("h1",{class:"m-0",part:l},t),p),a("div",{class:"d-flex flex-row align-items-top",part:s},r)),d=({metadata:s})=>s&&Object.keys(s).length?a("div",{class:"mt-4"},a("pre",{class:"p-2","aria-label":"metadata content"},a("code",null,JSON.stringify(s,null,2)))):null;export{d as C,p as D,e as E,o as a,c as b,r as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={name:"@justifi/webcomponents",version:"6.0.0-rc.3"};export{e as p}
|