@justifi/webcomponents 6.0.2 → 6.1.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-DdNOMYxI.js → Api-CwTLkFY4.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-Cp5ap9Ge.js → badge-BmOSt4gS.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
- package/dist/cjs/{business-additional-questions-schema-b8P-0T0O.js → business-additional-questions-schema-DNbSH3E-.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +4 -4
- package/dist/cjs/{business-identity-schema-aFUle0C9.js → business-identity-schema-CclzWSOn.js} +2 -2
- package/dist/cjs/{business.service-CjsXJOgZ.js → business.service-Dkhqyggm.js} +1 -1
- package/dist/cjs/{button-BMKiDxGa.js → button-7c2RN2yp.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +6 -6
- package/dist/cjs/{check-pkg-version-CMjNMgW8.js → check-pkg-version-DUDlLDCJ.js} +2 -2
- package/dist/cjs/{checkout.service-o7fi8Z05.js → checkout.service-LwZVVgP5.js} +1 -1
- package/dist/cjs/{checkout.store-DrFb05Vr.js → checkout.store-C3f3E24L.js} +1 -1
- package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{checkouts-list-params-state-CKeoLpqm.js → checkouts-list-params-state-C4c8UZtP.js} +1 -1
- package/dist/cjs/{checkouts-table-Ckpk4UMS.js → checkouts-table-BQUhZZd_.js} +2 -2
- package/dist/cjs/{config-state-BXCZx6K8.js → config-state-B_gyIchD.js} +1 -1
- package/dist/cjs/custom-popper_2.cjs.entry.js +1 -1
- package/dist/cjs/{dispute.service-BANG6pry.js → dispute.service-927Gzb0N.js} +1 -1
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-error-text-CA6tsCwq.js → form-control-error-text-DD0dHGu8.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{form-control-help-text-sYroVd4u.js → form-control-help-text-2QwKi78M.js} +1 -1
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-number.cjs.entry.js +3 -3
- package/dist/cjs/form-control-radio.cjs.entry.js +1 -1
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/{get-payment-details-CqsEtJTg.js → get-payment-details-BSxp1HX0.js} +1 -1
- package/dist/cjs/{get-subaccounts-BfiiwPTB.js → get-subaccounts-B31f95PR.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-IQ1fI7he.js → header-1-DMsp0XM7.js} +1 -1
- package/dist/cjs/{header-3-CACJFFMS.js → header-3-BSvFq_IF.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +4 -4
- package/dist/cjs/{index-BGUnWLse.js → index-D1Ba20gi.js} +1 -1
- package/dist/cjs/{index-8Prcj64P.js → index-Dyzl8Hn6.js} +13 -2
- package/dist/cjs/{index.esm-ByC0D4sJ.js → index.esm-BleZSAc0.js} +17 -18
- package/dist/cjs/{insurance-state-De4RWYBC.js → insurance-state-uWOl6jJN.js} +2 -2
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +9 -9
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +16 -16
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +2 -2
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +14 -10
- package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +17 -17
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +15 -15
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +12 -12
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
- package/dist/cjs/justifi-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +10 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +10 -10
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
- package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
- package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
- package/dist/cjs/justifi-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-DL-_SIgW.js → package-CFCy2fBx.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
- package/dist/cjs/payment-details-core.cjs.entry.js +6 -6
- package/dist/cjs/payment-method-option.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-Bk5f4yNM.js → payment.service-DUq-W7tS.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payments-list-params-state-CKeoLpqm.js → payments-list-params-state-C4c8UZtP.js} +1 -1
- package/dist/cjs/{payments-status-B0mynjDF.js → payments-status-3iIQkoov.js} +2 -2
- package/dist/cjs/{payments-table-Dt_B6-wz.js → payments-table-BSHUQhM-.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/{payout.service-DYm731Kq.js → payout.service-DoKMr8Xw.js} +1 -1
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payouts-list-params-state-CKeoLpqm.js → payouts-list-params-state-C4c8UZtP.js} +1 -1
- package/dist/cjs/{payouts-status-MC0n0N1x.js → payouts-status-DoQbxIms.js} +2 -2
- package/dist/cjs/{payouts-table-CjJEGkLL.js → payouts-table-BD_Fhz_j.js} +2 -2
- package/dist/cjs/{schema-validations-Bj7eYNO8.js → schema-validations-jek_iZ9W.js} +1 -1
- package/dist/cjs/{skeleton-CMESEszj.js → skeleton-CuIMC98G.js} +1 -1
- package/dist/cjs/{spinner-BePlCbOD.js → spinner-CMZXdrPe.js} +1 -1
- package/dist/cjs/{styled-host-CvM9RrsT.js → styled-host-2KXbjOFw.js} +1 -1
- package/dist/cjs/{table-1JBgqBkL.js → table-DlQCUVag.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{terminal-orders-list-params-state-CKeoLpqm.js → terminal-orders-list-params-state-C4c8UZtP.js} +1 -1
- package/dist/cjs/{terminal-orders-table-DuvYC2f1.js → terminal-orders-table-t6XxNy_K.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-B4FQ6roy.js → terminal.service-Iyje71vN.js} +1 -1
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
- package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +22 -0
- package/dist/cjs/{terminals-table--d49kyCn.js → terminals-table-BTdKRiBN.js} +2 -2
- package/dist/cjs/{utils-BNjLFSUk.js → utils-FFP5ZHyE.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +6 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +6 -6
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +6 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +6 -6
- package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +2 -3
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +8 -4
- package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
- package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +2 -3
- package/dist/collection/ui-components/details/details.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
- package/dist/docs.json +19 -98
- package/dist/esm/{Api-CO0DBcUT.js → Api-D4tj-h4P.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-CRAuWlVu.js → badge-ChwzCNAF.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
- package/dist/esm/bank-account-form.entry.js +6 -6
- package/dist/esm/{business-additional-questions-schema-9FAJSx_D.js → business-additional-questions-schema-C6NRHWEL.js} +2 -2
- package/dist/esm/business-details-core.entry.js +4 -4
- package/dist/esm/{business-identity-schema-CDJzknbg.js → business-identity-schema-D8n5dyLX.js} +2 -2
- package/dist/esm/{business.service-D2tRoPny.js → business.service-CsbtEDNi.js} +1 -1
- package/dist/esm/{button-B2XlI-Uy.js → button-SAIS_5os.js} +1 -1
- package/dist/esm/card-form.entry.js +6 -6
- package/dist/esm/{check-pkg-version-D3jZp8cz.js → check-pkg-version-B_Pl1uAE.js} +2 -2
- package/dist/esm/{checkout.service-BPYdgahN.js → checkout.service-BCkQ9pOA.js} +1 -1
- package/dist/esm/{checkout.store-DPOk5eUh.js → checkout.store-DBvS7cVB.js} +1 -1
- package/dist/esm/checkouts-list-core.entry.js +9 -9
- package/dist/esm/{checkouts-list-params-state-DmevqV6O.js → checkouts-list-params-state-C2_GlMKR.js} +1 -1
- package/dist/esm/{checkouts-table-DoHp51it.js → checkouts-table-CItEo0DU.js} +2 -2
- package/dist/esm/{config-state-Wdyw1F-s.js → config-state-Blo0ywwc.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +1 -1
- package/dist/esm/{dispute.service-Ct6DFjKt.js → dispute.service-CyLtJREK.js} +1 -1
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-Bn_rq8AC.js → form-control-error-text-IXJJ4JpV.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +2 -2
- package/dist/esm/{form-control-help-text-CuFo8IR5.js → form-control-help-text-CuhIsM3v.js} +1 -1
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number-masked_2.entry.js +3 -3
- package/dist/esm/form-control-number.entry.js +3 -3
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +2 -2
- package/dist/esm/{get-payment-details-BGQmxhRw.js → get-payment-details-BuT0QNOo.js} +1 -1
- package/dist/esm/{get-subaccounts-CYgVR2mk.js → get-subaccounts-VjY6-x_9.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-DWse7nuo.js → header-1-zXsamUS3.js} +1 -1
- package/dist/esm/{header-3-CSgiRXQA.js → header-3-DVtaUAlf.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +4 -4
- package/dist/esm/{index-DSUeaNWH.js → index-ZfXl6Xrm.js} +1 -1
- package/dist/esm/{index-CHdklybh.js → index-qipqIMyC.js} +13 -2
- package/dist/esm/{index.esm-IWS0494Y.js → index.esm-cYgKOXtz.js} +17 -18
- package/dist/esm/{insurance-state-DD0YD6c0.js → insurance-state-Dh9f36Qh.js} +2 -2
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +9 -9
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +16 -16
- package/dist/esm/justifi-additional-statement_8.entry.js +2 -2
- package/dist/esm/justifi-apple-pay.entry.js +14 -10
- package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +17 -17
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +15 -15
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-summary_7.entry.js +12 -12
- package/dist/esm/justifi-checkout.entry.js +10 -10
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +12 -12
- package/dist/esm/justifi-config-provider.entry.js +3 -3
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +7 -7
- package/dist/esm/justifi-dispute-notification_3.entry.js +10 -10
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -7
- package/dist/esm/justifi-order-terminals.entry.js +10 -10
- package/dist/esm/justifi-owner-form_3.entry.js +12 -12
- package/dist/esm/justifi-payment-details.entry.js +9 -9
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +8 -8
- package/dist/esm/justifi-payment-transactions-list.entry.js +10 -10
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +11 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -8
- package/dist/esm/justifi-payout-transactions-list.entry.js +10 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +12 -12
- package/dist/esm/justifi-refund-payment.entry.js +12 -12
- package/dist/esm/justifi-saved-payment-method.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +10 -10
- package/dist/esm/justifi-skeleton.entry.js +3 -3
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
- package/dist/esm/justifi-terminals-list-filters.entry.js +5 -5
- package/dist/esm/justifi-terminals-list.entry.js +11 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-C5FfYVaH.js → package-pXjOPQhG.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +4 -4
- package/dist/esm/payment-details-core.entry.js +6 -6
- package/dist/esm/payment-method-option.entry.js +2 -2
- package/dist/esm/{payment.service-D3ze0Zdq.js → payment.service-QJEmd6Nl.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +9 -9
- package/dist/esm/{payments-list-params-state-DmevqV6O.js → payments-list-params-state-C2_GlMKR.js} +1 -1
- package/dist/esm/{payments-status-DTmQyPO9.js → payments-status-DDafc8Yr.js} +2 -2
- package/dist/esm/{payments-table-CavY9USC.js → payments-table-De3Jb6rY.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/{payout.service-WXSktQvI.js → payout.service-XxyEr0rj.js} +1 -1
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-list-params-state-DmevqV6O.js → payouts-list-params-state-C2_GlMKR.js} +1 -1
- package/dist/esm/{payouts-status-DTXrGUWw.js → payouts-status-u1eSRz3Q.js} +2 -2
- package/dist/esm/{payouts-table-3_J-SXvD.js → payouts-table-BO-MCzXj.js} +2 -2
- package/dist/esm/{schema-validations-B9dmY7ME.js → schema-validations-DcR1ujuX.js} +1 -1
- package/dist/esm/{skeleton-rMJsZa0a.js → skeleton-DtpkgjZ6.js} +1 -1
- package/dist/esm/{spinner-8n0qh4tK.js → spinner-CIXUVK4F.js} +1 -1
- package/dist/esm/{styled-host-DQq-l92c.js → styled-host-CbizlfAU.js} +1 -1
- package/dist/esm/{table-BUJMzXYe.js → table-DcRHK_sm.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +8 -8
- package/dist/esm/{terminal-orders-list-params-state-DmevqV6O.js → terminal-orders-list-params-state-C2_GlMKR.js} +1 -1
- package/dist/esm/{terminal-orders-table-gBU8rU8X.js → terminal-orders-table-9nsnrAq8.js} +3 -3
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-DihXdEs3.js → terminal.service-D2oETGnk.js} +1 -1
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/terminals-list-params-state-C2_GlMKR.js +16 -0
- package/dist/esm/{terminals-table-64XluocE.js → terminals-table-C6NO2m-t.js} +2 -2
- package/dist/esm/{utils-BvJW0VpC.js → utils-_ckvHjSW.js} +1 -1
- package/dist/esm/webcomponents.js +4 -4
- package/dist/module/additional-questions.js +2 -2
- package/dist/module/bank-account-billing-form-simple.js +1 -1
- package/dist/module/bank-account-document-inputs.js +1 -1
- package/dist/module/bank-account-form-inputs2.js +1 -1
- package/dist/module/bank-account-form.js +2 -2
- package/dist/module/business-additional-questions-form-step.js +1 -1
- package/dist/module/business-bank-account-form-step.js +1 -1
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-representative.js +2 -2
- package/dist/module/business-terms-conditions-form-step.js +1 -1
- package/dist/module/card-billing-form-simple.js +1 -1
- package/dist/module/card-form.js +2 -2
- package/dist/module/checkouts-list-core2.js +1 -1
- package/dist/module/details.js +1 -1
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-monetary-provisioning2.js +2 -2
- package/dist/module/form.js +17 -18
- package/dist/module/identity-address-form.js +1 -1
- package/dist/module/justifi-apple-pay.js +7 -3
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-radio-list-item2.js +1 -1
- package/dist/module/justifi-saved-payment-method.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/owner-form-core2.js +1 -1
- package/dist/module/owner-form-inputs2.js +2 -2
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-provisioning-core.js +1 -1
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components.d.ts +8 -10
- package/dist/types/stencil-public-runtime.d.ts +4 -6
- package/dist/webcomponents/{p-8d45e30b.entry.js → p-06b6b61e.entry.js} +1 -1
- package/dist/webcomponents/{p-e01fe757.entry.js → p-0801324e.entry.js} +1 -1
- package/dist/webcomponents/{p-9c110f7a.entry.js → p-10278c48.entry.js} +1 -1
- package/dist/webcomponents/p-19ccbeee.entry.js +1 -0
- package/dist/webcomponents/p-1b3b6956.entry.js +1 -0
- package/dist/webcomponents/{p-4c7622ed.entry.js → p-1b7926f6.entry.js} +1 -1
- package/dist/webcomponents/p-1c433962.entry.js +1 -0
- package/dist/webcomponents/{p-60d59291.entry.js → p-1f9f6bdc.entry.js} +1 -1
- package/dist/webcomponents/{p-fa53a04f.entry.js → p-2246aa69.entry.js} +1 -1
- package/dist/webcomponents/{p-0c25d57b.entry.js → p-246ef4ff.entry.js} +1 -1
- package/dist/webcomponents/{p-0e85331b.entry.js → p-27fc3ef0.entry.js} +4 -4
- package/dist/webcomponents/{p-870cee9b.entry.js → p-2abfee08.entry.js} +1 -1
- package/dist/webcomponents/{p-1a5f53f4.entry.js → p-30147031.entry.js} +1 -1
- package/dist/webcomponents/{p-c7291c13.entry.js → p-3546a5aa.entry.js} +1 -1
- package/dist/webcomponents/{p-1835e531.entry.js → p-3621a429.entry.js} +1 -1
- package/dist/webcomponents/p-3c1d950d.entry.js +1 -0
- package/dist/webcomponents/{p-d817d7e4.entry.js → p-3d37045d.entry.js} +1 -1
- package/dist/webcomponents/p-406ba650.entry.js +1 -0
- package/dist/webcomponents/{p-755fa2b3.entry.js → p-4332962a.entry.js} +1 -1
- package/dist/webcomponents/{p-57d30e26.entry.js → p-4466d28d.entry.js} +1 -1
- package/dist/webcomponents/{p-c85cc2ca.entry.js → p-44d1341c.entry.js} +1 -1
- package/dist/webcomponents/p-46db49dd.entry.js +1 -0
- package/dist/webcomponents/p-4d5c71c4.entry.js +1 -0
- package/dist/webcomponents/{p-80feb885.entry.js → p-4ea83bfd.entry.js} +1 -1
- package/dist/webcomponents/{p-8b42eee7.entry.js → p-558f7967.entry.js} +1 -1
- package/dist/webcomponents/{p-7576e449.entry.js → p-5c477f08.entry.js} +1 -1
- package/dist/webcomponents/{p-29964705.entry.js → p-629c1d75.entry.js} +1 -1
- package/dist/webcomponents/p-68329f16.entry.js +1 -0
- package/dist/webcomponents/p-6fe79f16.entry.js +1 -0
- package/dist/webcomponents/{p-8cc80cda.entry.js → p-718f8b2c.entry.js} +1 -1
- package/dist/webcomponents/{p-0ad7a361.entry.js → p-73f88870.entry.js} +1 -1
- package/dist/webcomponents/{p-6f6e17cf.entry.js → p-760a5b4f.entry.js} +1 -1
- package/dist/webcomponents/{p-0aa2e1f9.entry.js → p-779e4467.entry.js} +1 -1
- package/dist/webcomponents/{p-318a95e7.entry.js → p-7aeb20d2.entry.js} +1 -1
- package/dist/webcomponents/{p-528300cf.entry.js → p-7c5cd118.entry.js} +1 -1
- package/dist/webcomponents/{p-74b96d25.entry.js → p-7ef3cb23.entry.js} +1 -1
- package/dist/webcomponents/{p-4de4598e.entry.js → p-84043580.entry.js} +1 -1
- package/dist/webcomponents/{p-0f4ea94a.entry.js → p-868ed3b6.entry.js} +1 -1
- package/dist/webcomponents/{p-c65afd95.entry.js → p-87f598ef.entry.js} +1 -1
- package/dist/webcomponents/p-8975bf93.entry.js +1 -0
- package/dist/webcomponents/{p-5f4b95f4.entry.js → p-906fdf0c.entry.js} +1 -1
- package/dist/webcomponents/{p-1a41c6ee.entry.js → p-90e43440.entry.js} +1 -1
- package/dist/webcomponents/{p-cf78e63a.entry.js → p-914e168d.entry.js} +1 -1
- package/dist/webcomponents/p-91c1e2ac.entry.js +1 -0
- package/dist/webcomponents/{p-664c9b1b.entry.js → p-95348ff6.entry.js} +1 -1
- package/dist/webcomponents/p-9f04cac4.entry.js +1 -0
- package/dist/webcomponents/p-B4idKqyn.js +1 -0
- package/dist/webcomponents/{p-ZWhv_80v.js → p-BB5-CJF-.js} +1 -1
- package/dist/webcomponents/{p-mxgDrK6T.js → p-BIPdn2VU.js} +1 -1
- package/dist/webcomponents/{p-Dph3Ao9s.js → p-BUa0YOaw.js} +1 -1
- package/dist/webcomponents/p-BY2p6Sxk.js +1 -0
- package/dist/webcomponents/{p-UmoEDufy.js → p-BZ7C9duj.js} +1 -1
- package/dist/webcomponents/{p-c3Fl3YIP.js → p-BdLLGV9t.js} +1 -1
- package/dist/webcomponents/p-BguBT6Hn.js +1 -0
- package/dist/webcomponents/{p-BuWHmUFx.js → p-Bp_QFeog.js} +1 -1
- package/dist/webcomponents/p-Bvp7uul3.js +1 -0
- package/dist/webcomponents/{p-BGRyC6Jk.js → p-C1xGBPma.js} +1 -1
- package/dist/webcomponents/p-C3n7-tlg.js +1 -0
- package/dist/webcomponents/{p-CXEvc-gI.js → p-CLQx9p9q.js} +1 -1
- package/dist/webcomponents/{p-CZjKnrRR.js → p-CPVN4dXS.js} +1 -1
- package/dist/webcomponents/p-CQeex56P.js +1 -0
- package/dist/webcomponents/{p-DiJD6Iqx.js → p-CR9D6mKt.js} +1 -1
- package/dist/webcomponents/p-CU4XQ3fO.js +1 -0
- package/dist/webcomponents/{p-PSJOKMWp.js → p-CYBR4K2p.js} +1 -1
- package/dist/webcomponents/{p-hzzlBrP2.js → p-C_3N7nqh.js} +1 -1
- package/dist/webcomponents/{p-BY5BgAd3.js → p-CaxjN6Uo.js} +1 -1
- package/dist/webcomponents/{p-CIN-y_rT.js → p-CpKvg1ok.js} +1 -1
- package/dist/webcomponents/{p-BVHUyJdS.js → p-CrQgyTRz.js} +1 -1
- package/dist/webcomponents/{p-BSa0NCli.js → p-CxzFvTgf.js} +1 -1
- package/dist/webcomponents/{p-DFNk_DP8.js → p-CzPUMw00.js} +1 -1
- package/dist/webcomponents/{p-D8uar3Ri.js → p-D--yCspA.js} +1 -1
- package/dist/webcomponents/{p-DbpL6AJS.js → p-D-JYHdJ7.js} +1 -1
- package/dist/webcomponents/{p-BB-9jeDZ.js → p-D6XirF21.js} +1 -1
- package/dist/webcomponents/{p-BDGiGASo.js → p-DCMrHeJI.js} +1 -1
- package/dist/webcomponents/{p-C9iide2W.js → p-DSP8qjHL.js} +1 -1
- package/dist/webcomponents/p-DbX0g1WF.js +1 -0
- package/dist/webcomponents/{p-f0Mcy7rH.js → p-De8UloOS.js} +1 -1
- package/dist/webcomponents/{p-DwBh6VCY.js → p-DsAwPf2y.js} +1 -1
- package/dist/webcomponents/p-DvZcI6pC.js +1 -0
- package/dist/webcomponents/p-DyDHaG6n.js +1 -0
- package/dist/webcomponents/{p-DWMITBje.js → p-DyOgQlh2.js} +1 -1
- package/dist/webcomponents/p-IG_KR8zP.js +1 -0
- package/dist/webcomponents/{p-tYuXMkCd.js → p-PgEzcvI6.js} +1 -1
- package/dist/webcomponents/p-Xv8DuU3Y.js +1 -0
- package/dist/webcomponents/p-a57c1400.entry.js +1 -0
- package/dist/webcomponents/{p-2ca59580.entry.js → p-a71a5e64.entry.js} +1 -1
- package/dist/webcomponents/{p-3bb7b07f.entry.js → p-a90b8b93.entry.js} +1 -1
- package/dist/webcomponents/{p-3d6e54cb.entry.js → p-b4e673fe.entry.js} +1 -1
- package/dist/webcomponents/{p-d16a348c.entry.js → p-bc902ec2.entry.js} +1 -1
- package/dist/webcomponents/p-bf82201a.entry.js +1 -0
- package/dist/webcomponents/{p-4d60eadc.entry.js → p-c16c0cbc.entry.js} +1 -1
- package/dist/webcomponents/{p-ba579b93.entry.js → p-c685fc33.entry.js} +1 -1
- package/dist/webcomponents/p-d0f93668.entry.js +1 -0
- package/dist/webcomponents/{p-c9863f5a.entry.js → p-d34befd7.entry.js} +1 -1
- package/dist/webcomponents/{p-6b56543b.entry.js → p-d3f5ff95.entry.js} +1 -1
- package/dist/webcomponents/p-df7f36aa.entry.js +1 -0
- package/dist/webcomponents/p-e035a92e.entry.js +1 -0
- package/dist/webcomponents/{p-27f20ccf.entry.js → p-e2a38ad0.entry.js} +1 -1
- package/dist/webcomponents/p-e628a0c8.entry.js +1 -0
- package/dist/webcomponents/{p-dccdcac8.entry.js → p-e6516014.entry.js} +1 -1
- package/dist/webcomponents/{p-3013484d.entry.js → p-e6e96be2.entry.js} +1 -1
- package/dist/webcomponents/{p-357c355e.entry.js → p-e79338f9.entry.js} +1 -1
- package/dist/webcomponents/p-eafd179b.entry.js +1 -0
- package/dist/webcomponents/{p-25344f42.entry.js → p-f5c3f489.entry.js} +1 -1
- package/dist/webcomponents/{p-cba326c0.entry.js → p-f6cf3e2b.entry.js} +1 -1
- package/dist/webcomponents/p-fUtq2xDs.js +1 -0
- package/dist/webcomponents/{p-152436e2.entry.js → p-ffe01f1b.entry.js} +1 -1
- package/dist/webcomponents/{p-DrXVtFfH.js → p-oGKW57R8.js} +1 -1
- package/dist/webcomponents/p-pXjOPQhG.js +1 -0
- package/dist/webcomponents/p-qipqIMyC.js +2 -0
- package/dist/webcomponents/{p-CkX-nM5d.js → p-xY5RkFuA.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +13 -13
- package/LICENSE +0 -21
- package/dist/cjs/terminals-list-params-state-CKeoLpqm.js +0 -22
- package/dist/esm/terminals-list-params-state-DmevqV6O.js +0 -16
- package/dist/webcomponents/p-15e47d22.entry.js +0 -1
- package/dist/webcomponents/p-1a198ab4.entry.js +0 -1
- package/dist/webcomponents/p-2242b349.entry.js +0 -1
- package/dist/webcomponents/p-2f7ff817.entry.js +0 -1
- package/dist/webcomponents/p-33c5f41b.entry.js +0 -1
- package/dist/webcomponents/p-38Vv0Nju.js +0 -1
- package/dist/webcomponents/p-3b01c9c4.entry.js +0 -1
- package/dist/webcomponents/p-5170419e.entry.js +0 -1
- package/dist/webcomponents/p-61980e9a.entry.js +0 -1
- package/dist/webcomponents/p-78c17caf.entry.js +0 -1
- package/dist/webcomponents/p-7cd28a8b.entry.js +0 -1
- package/dist/webcomponents/p-85a1f152.entry.js +0 -1
- package/dist/webcomponents/p-85d82d77.entry.js +0 -1
- package/dist/webcomponents/p-8b414739.entry.js +0 -1
- package/dist/webcomponents/p-9fec7ff1.entry.js +0 -1
- package/dist/webcomponents/p-BC2AKcRD.js +0 -1
- package/dist/webcomponents/p-BffoVWib.js +0 -1
- package/dist/webcomponents/p-C5FfYVaH.js +0 -1
- package/dist/webcomponents/p-CHdklybh.js +0 -2
- package/dist/webcomponents/p-CVm_PxHa.js +0 -1
- package/dist/webcomponents/p-CZ27xhGU.js +0 -1
- package/dist/webcomponents/p-DFEjrRhP.js +0 -1
- package/dist/webcomponents/p-DcDYb1RC.js +0 -1
- package/dist/webcomponents/p-DhUrfS4M.js +0 -1
- package/dist/webcomponents/p-Dk0xo1G9.js +0 -1
- package/dist/webcomponents/p-DrRpEAef.js +0 -1
- package/dist/webcomponents/p-DsL9brW-.js +0 -1
- package/dist/webcomponents/p-WJLXezN2.js +0 -1
- package/dist/webcomponents/p-ab0e20cd.entry.js +0 -1
- package/dist/webcomponents/p-b40aa9da.entry.js +0 -1
- package/dist/webcomponents/p-bc5698fe.entry.js +0 -1
- package/dist/webcomponents/p-c53099b1.entry.js +0 -1
- package/dist/webcomponents/p-c96feb00.entry.js +0 -1
- package/dist/webcomponents/p-oIQjnSZa.js +0 -1
|
@@ -11,12 +11,11 @@ import { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEven
|
|
|
11
11
|
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
12
12
|
import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
|
|
13
13
|
import { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
14
|
-
import { BillingFormFields as BillingFormFields1, FormController } from "./components";
|
|
15
14
|
import { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
16
15
|
import { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
17
16
|
import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
18
17
|
import { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
19
|
-
import { FormController
|
|
18
|
+
import { FormController } from "./ui-components/form/form";
|
|
20
19
|
import { Dispute, IDispute } from "./api/Dispute";
|
|
21
20
|
import { CheckoutChangedEventDetail, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
22
21
|
import { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -29,12 +28,11 @@ export { ComponentClickEvent, ComponentErrorEvent, ComponentFormStepCompleteEven
|
|
|
29
28
|
export { Placement, PositioningStrategy } from "@popperjs/core";
|
|
30
29
|
export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
|
|
31
30
|
export { IPaymentMethodMetadata } from "./api/PaymentMethod";
|
|
32
|
-
export { BillingFormFields as BillingFormFields1, FormController } from "./components";
|
|
33
31
|
export { DisputeEvidenceDocument } from "./api/DisputeEvidenceDocument";
|
|
34
32
|
export { DisputeResponseFormStep } from "./components/dispute-management/dispute-response/dispute-response-form-types";
|
|
35
33
|
export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
|
|
36
34
|
export { BillingFormFields } from "./components/checkout/billing-form/billing-form-schema";
|
|
37
|
-
export { FormController
|
|
35
|
+
export { FormController } from "./ui-components/form/form";
|
|
38
36
|
export { Dispute, IDispute } from "./api/Dispute";
|
|
39
37
|
export { CheckoutChangedEventDetail, SelectedPaymentMethod } from "./components/modular-checkout/ModularCheckout";
|
|
40
38
|
export { PaymentMethodPayload } from "./components/checkout/payment-method-payload";
|
|
@@ -362,7 +360,7 @@ export namespace Components {
|
|
|
362
360
|
* and the other one is meant to be just read only.
|
|
363
361
|
*/
|
|
364
362
|
interface JustifiBusinessCoreInfo {
|
|
365
|
-
"formController":
|
|
363
|
+
"formController": FormController;
|
|
366
364
|
}
|
|
367
365
|
interface JustifiBusinessCoreInfoFormStep {
|
|
368
366
|
"allowOptionalFields"?: boolean;
|
|
@@ -416,7 +414,7 @@ export namespace Components {
|
|
|
416
414
|
}
|
|
417
415
|
interface JustifiBusinessRepresentativeFormInputs {
|
|
418
416
|
"errors": any;
|
|
419
|
-
"formController":
|
|
417
|
+
"formController": FormController;
|
|
420
418
|
"representativeDefaultValue": any;
|
|
421
419
|
}
|
|
422
420
|
interface JustifiBusinessRepresentativeFormStep {
|
|
@@ -636,7 +634,7 @@ export namespace Components {
|
|
|
636
634
|
"authToken": string;
|
|
637
635
|
"checkoutId": string;
|
|
638
636
|
"setSelectedPaymentMethod": (paymentMethod: SelectedPaymentMethod) => Promise<void>;
|
|
639
|
-
"submitCheckout": (submitCheckoutArgs?:
|
|
637
|
+
"submitCheckout": (submitCheckoutArgs?: BillingFormFields) => Promise<void>;
|
|
640
638
|
"validate": () => Promise<boolean>;
|
|
641
639
|
}
|
|
642
640
|
interface JustifiOrderTerminals {
|
|
@@ -889,7 +887,7 @@ export namespace Components {
|
|
|
889
887
|
"authToken"?: string;
|
|
890
888
|
"disableBankAccount"?: boolean;
|
|
891
889
|
"disableCreditCard"?: boolean;
|
|
892
|
-
"fillBillingForm": (fields:
|
|
890
|
+
"fillBillingForm": (fields: BillingFormFields) => Promise<void>;
|
|
893
891
|
"hideBankAccountBillingForm"?: boolean;
|
|
894
892
|
"hideCardBillingForm"?: boolean;
|
|
895
893
|
"hideSubmitButton"?: boolean;
|
|
@@ -3315,7 +3313,7 @@ declare namespace LocalJSX {
|
|
|
3315
3313
|
* and the other one is meant to be just read only.
|
|
3316
3314
|
*/
|
|
3317
3315
|
interface JustifiBusinessCoreInfo {
|
|
3318
|
-
"formController"?:
|
|
3316
|
+
"formController"?: FormController;
|
|
3319
3317
|
}
|
|
3320
3318
|
interface JustifiBusinessCoreInfoFormStep {
|
|
3321
3319
|
"allowOptionalFields"?: boolean;
|
|
@@ -3378,7 +3376,7 @@ declare namespace LocalJSX {
|
|
|
3378
3376
|
}
|
|
3379
3377
|
interface JustifiBusinessRepresentativeFormInputs {
|
|
3380
3378
|
"errors"?: any;
|
|
3381
|
-
"formController"?:
|
|
3379
|
+
"formController"?: FormController;
|
|
3382
3380
|
"representativeDefaultValue"?: any;
|
|
3383
3381
|
}
|
|
3384
3382
|
interface JustifiBusinessRepresentativeFormStep {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
2
2
|
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
|
|
3
|
+
type MixinFactory = <TBase extends abstract new (...args: any[]) => any>(base: TBase) => abstract new (...args: ConstructorParameters<TBase>) => any;
|
|
3
4
|
export interface ComponentDecorator {
|
|
4
5
|
(opts?: ComponentOptions): ClassDecorator;
|
|
5
6
|
}
|
|
@@ -350,18 +351,15 @@ export declare function readTask(task: RafCallback): void;
|
|
|
350
351
|
* Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
|
|
351
352
|
*/
|
|
352
353
|
export declare const setErrorHandler: (handler: ErrorHandler) => void;
|
|
353
|
-
export type MixinFactory = <TBase extends new (...args: any[]) => any>(base: TBase) => abstract new (...args: ConstructorParameters<TBase>) => any;
|
|
354
354
|
/**
|
|
355
355
|
* Compose multiple mixin classes into a single constructor.
|
|
356
356
|
* The resulting class has the combined instance types of all mixed-in classes.
|
|
357
357
|
*
|
|
358
358
|
* Example:
|
|
359
359
|
* ```
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
* const
|
|
363
|
-
* const BWrap: MixinFactory = (Base) => {class B extends Base { propB = B }; return B;}
|
|
364
|
-
* const CWrap: MixinFactory = (Base) => {class C extends Base { propC = C }; return C;}
|
|
360
|
+
* const AWrap = (Base) => {class A extends Base { propA = A }; return A;}
|
|
361
|
+
* const BWrap = (Base) => {class B extends Base { propB = B }; return B;}
|
|
362
|
+
* const CWrap = (Base) => {class C extends Base { propC = C }; return C;}
|
|
365
363
|
*
|
|
366
364
|
* class X extends Mixin(AWrap, BWrap, CWrap) {
|
|
367
365
|
* render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c as s,h as t}from"./p-
|
|
1
|
+
import{r,c as s,h as t}from"./p-qipqIMyC.js";import{S as i}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{c as o,J as e}from"./p-BB5-CJF-.js";import{d as a}from"./p-CaxjN6Uo.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{h as c}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as d}from"./p-BUa0YOaw.js";import"./p-pXjOPQhG.js";import"./p-RvUQ__Pq.js";import"./p-BHf9IqGw.js";import"./p-D--yCspA.js";import"./p-DsAwPf2y.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const l=d();class j{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const f=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){o(),this.analytics=new e(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:o,onError:e,final:a})=>{var p,d;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return e({error:h(a.error),code:m(null===(d=a.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);o({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return e({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new j}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"55f0bf858787e00c304972c941a477815712df9d"},t("terminal-orders-list-core",{key:"2d47e23bc2157d79254f34dfe0551fb32a9d88cc",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{f as justifi_terminal_orders_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-qipqIMyC.js";import{D as i}from"./p-Bg2SZArf.js";import{D as r,a as h}from"./p-BH0Xfn-F.js";const o=class{constructor(e){t(this,e),this.errorEvent=s(this,"error-event"),this.isLoading=!0,this.showDisputeResponseForm=!1}disputeResponseHandler(t){t.detail.name===i.respondToDispute&&(this.showDisputeResponseForm=!0),t.detail.name===i.cancelDispute&&(this.showDisputeResponseForm=!1)}disputeSubmittedHandler(){this.fetchData()}componentWillLoad(){this.getDispute&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.isLoading=!0,this.getDispute({onSuccess:({dispute:t})=>{this.dispute=new r(t),this.isLoading=!1,this.dispute.status!==h.needsResponse&&(this.showDisputeResponseForm=!1)},onError:({error:t,code:s,severity:e})=>{this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.isLoading=!1}})}render(){return e("div",{key:"c85852cbd1169f371eb30ae06b6a2a564a15ece7"},this.showDisputeResponseForm?e("justifi-dispute-response",{disputeId:this.disputeId,disputeResponse:this.dispute.dispute_response,authToken:this.authToken}):e("justifi-dispute-notification",{dispute:this.dispute,authToken:this.authToken,isLoading:this.isLoading}))}static get watchers(){return{getDispute:["updateOnPropChange"]}}};export{o as justifi_dispute_management_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as e,h as t,H as i}from"./p-CHdklybh.js";import{C as n,a as r}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as d}from"./p-5aA7gjr5.js";import{B as c,a as u,D as p}from"./p-WJLXezN2.js";import"./p-BuWHmUFx.js";import"./p-HXpYMWUU.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as f,d as l,F as b}from"./p-DiJD6Iqx.js";import{A as m}from"./p-Dph3Ao9s.js";import{C as g}from"./p-RvUQ__Pq.js";import{a as k,B as y}from"./p-XYgDHrVL.js";import{B as v}from"./p-BB-9jeDZ.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-DwBh6VCY.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";const j=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"b494a48aa19f63e30007663276876540c5149879",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=d({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"adb496ad14cd3334d30e571d873150ed8335f833",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},_=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"1d2bd68e87d5f312c54f5a4bda8863b26fdeec5d",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"3420b6e74da344665583a49146b5b7fd1be40155"},t("justifi-business-owners-form-step-core",{key:"3e092450028815a0b134af4294edbb7589864409",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"582c77f4b763573a1d29726285a9b871afe96d89",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=m(),this.formController=new b((s=>{const e=f({accepted:l().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=f({accepted:l().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"8cea6fff2e5b5cbfa7de6b3adfce238153599d1e"},t("fieldset",{key:"ef3c4ce5d0d03f1d048e072c6f7ac3da565ffb18"},t("legend",{key:"caa5fee86bd4b5c2a7204a76ae3533146526b9e1",part:g},"Terms and Conditions"),t("hr",{key:"5a72caeaf2dae8f57c0be09ca21feceb0793daf4"}),t("div",{key:"e39700b83a10c479cf6d767c1af61ac8b480e4d5"},t("p",{key:"2b8520977bedf73c295a387095724a561391b005"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"706ec9ecfd4a0909583745f90b36eeb42fa5e690"}),t("div",{key:"d915e2c49188b829b33b03f07cc8f1ccea99ee1d",class:"row-gy-3"},t("div",{key:"cbbc74e6b5e80bf54884a8f41eb94f6d5bcdb6dd",class:"col-12"},t("form-control-checkbox",{key:"f63aed196d33f1760dae8c5ac5487c0fbc7d4838",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},B=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"bd286476461181f2e8a435a97bf148d55876b49c",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},S=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"5869ed8c350e3a1ae5fe62dcd04493f432eecff7",class:"d-flex gap-2"},t(v,{key:"b1e8c2fff97e9a053d715860a43ddd78c99b255a",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(v,{key:"8696fe4f0bde5434e51f05f67b39a8e5b2f550bf",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,y.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(v,{key:"b1750a849d60244bdb3cf82690c6cbd15b6e1110",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,y.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"9a09e562d0a3548cb40863ba5780c5d1692b6ec3",class:"col-12 mb-4"},this.currentStepComponent)}};export{j as justifi_additional_questions_form_step,w as justifi_business_bank_account_form_step,_ as justifi_business_core_info_form_step,C as justifi_business_owners_form_step,T as justifi_business_representative_form_step,I as justifi_business_terms_conditions_form_step,B as justifi_legal_address_form_step,S as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
|
|
1
|
+
import{r as s,c as e,h as t,H as i}from"./p-qipqIMyC.js";import{C as n,a as r}from"./p-Cjcsf8ku.js";import{m as a,b as o,f as h,g as d}from"./p-5aA7gjr5.js";import{B as c,a as u,D as p}from"./p-B4idKqyn.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as f,d as l,F as b}from"./p-CR9D6mKt.js";import{A as m}from"./p-BUa0YOaw.js";import{C as g}from"./p-RvUQ__Pq.js";import{a as k,B as y}from"./p-XYgDHrVL.js";import{B as v}from"./p-D6XirF21.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";const j=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"9692b11a4a655aade004e62c4b4c1fa61904ec11",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=d({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"675d0d4f64e58f8b036ccd0bdf6d2f77d95fab4b",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},_=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"c8eb1c76b9c7839e83f341eca5cc60737fb83f6e",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"aa3b4e716a0592f48180b7dbe2f81662aeb4d6e7"},t("justifi-business-owners-form-step-core",{key:"8e3ef054061dbe2500aa9f67e4aea53b12e5d432",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"241cd9ff1afae3bf1f9107cf6f66392b7b656471",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=m(),this.formController=new b((s=>{const e=f({accepted:l().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=f({accepted:l().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"ed3e493e5c53e303c98e97a15149cffd2865de47"},t("fieldset",{key:"a4be899152d7930c2e5ac8b384f866ba313a434f"},t("legend",{key:"6b473d236380c13ec4186cb5088f976349f18e7c",part:g},"Terms and Conditions"),t("hr",{key:"4ef52973bed72265e0ef29f0ac6e7a0ac1142f8a"}),t("div",{key:"621d89594d6335d10a746af628ce85df0bf4a71f"},t("p",{key:"2f13e9851fdfa4b8f678de19261e7df7a7968cc0"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"7951565f2ad57491cbba0d05d650eb0aea1aea54"}),t("div",{key:"e7d727efbd5d732b31746d3cc61eeaf9eb4b1ff6",class:"row-gy-3"},t("div",{key:"b6d8d501530fbe4de7c11eb46218c618a7aec26f",class:"col-12"},t("form-control-checkbox",{key:"79030af1a43bc5d1742726b8ea66d6dda3306473",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},S=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"fb07306fe9d60ca061e9291565ea4dd11db6d93f",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},B=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"cc744b394b8a75f2cf6b551f50376d16eb4f053b",class:"d-flex gap-2"},t(v,{key:"b83498b5bd052607803159acc593ed3f53c8cd4f",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(v,{key:"02f6dfacedd16c2a82879bf13706bf554372064c",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,y.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(v,{key:"eda937677c7e1d5a64f88d020ba4c738bc89af68",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,y.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"bc4e1cd4a04dc6f0d9338fa737b91fe1628ed2b3",class:"col-12 mb-4"},this.currentStepComponent)}};export{j as justifi_additional_questions_form_step,w as justifi_business_bank_account_form_step,_ as justifi_business_core_info_form_step,C as justifi_business_owners_form_step,T as justifi_business_representative_form_step,I as justifi_business_terms_conditions_form_step,S as justifi_legal_address_form_step,B as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as e,H as i}from"./p-qipqIMyC.js";import{Z as c,_ as a,$ as h,a0 as r,a1 as o,l as f}from"./p-RvUQ__Pq.js";import{F as b}from"./p-oGKW57R8.js";import{F as d}from"./p-DCMrHeJI.js";import"./p-CZfYo5-1.js";const m=class{constructor(e){s(this,e),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,e=t.getAttribute("name");this.inputHandler(e,t.checked),this.formControlInput.emit({name:e,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?c:this.isFocused&&this.checked?a:this.isFocused?h:this.checked?r:o}render(){return e(i,{key:"6ef9c4917c0371f697b92f6a7ee1471feec1aaf1"},e("div",{key:"c9b0a6f9d55f2fccc0ce060af6b0944d1cc9104e",class:"form-group d-flex flex-column"},e("div",{key:"618bf437e3d39095c5d5fb29b539d37e5f25b225",class:"form-check"},e("input",{key:"e51b0c603bc0be02055dc96145b04dbb43638b79",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),e("label",{key:"bad954d2501514587ef79c0325ecaae0ba6a4b91",class:"form-check-label",htmlFor:this.name,part:f},this.label)),e(b,{key:"26d50d8b95bd2285211079e5527f57152c739651",helpText:this.helpText,name:this.name}),e(d,{key:"5e2f8d2c9fe3a883d2bc9a6200075d8ba13a5dc4",errorText:this.errorText,name:this.name})))}};export{m as form_control_checkbox}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-qipqIMyC.js";import{c as i,d as r,e as a}from"./p-5aA7gjr5.js";import{I as o}from"./p-B4idKqyn.js";import{F as d}from"./p-CR9D6mKt.js";import{O as h}from"./p-BlJnA265.js";import{i as n}from"./p-PgEzcvI6.js";import{B as c}from"./p-D6XirF21.js";import{V as f}from"./p-RvUQ__Pq.js";import"./p-CZfYo5-1.js";import{B as l}from"./p-XYgDHrVL.js";import{S as b,P as m}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-BUa0YOaw.js";import"./p-Bp_QFeog.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-c4Mh3ZZ_.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 j=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:"a918d86ea220a66e69950919593791f3fec0f283",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})}},k=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 h(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 h(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(n("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:"08673bb0eb61a77b3ed37702606808f28caf507b",onSubmit:this.validateAndSubmit},s("fieldset",{key:"73e9707a99d56c7eca7737fc02b77a9d69931ef6"},s("legend",{key:"3d85ec901c9051e30472623c740194e48cc60790",class:"fw-semibold fs-5",part:f},this.formTitle),s("br",{key:"a7256d1bfa79edd90c70eab491d533d2bcd07a94"}),s("div",{key:"b74744930ecd1ac1ef08d8e356d5eeb7f5417c39",class:"row gy-3"},s("owner-form-inputs",{key:"a9fdfe906615eb494f74001396b41a433fb5366b",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"32fe5564d5feb8056f2401a6dd219dae0d0d10b0",class:"d-flex gap-2 justify-content-start"},s(c,{key:"9e2c1d664b382260fb82c735454dbbf478e99fdd",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(c,{key:"db94849f699044848b46e87b285bd0ee30d66b92",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"9e62fbf6cb1b1d5fa8fc4b676a72cf4350058937"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=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:"2f3679b3d4fb45dd55ada0d3752017c9ba94be9e",class:"row gy-3"},s("div",{key:"4ae3a6fbad22e94321940a46ea79bcc82049ba40",class:"col-12 col-md-8"},s("form-control-text",{key:"bad30c901a7341aabe09a20b9b075212092ed475",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"025366d57d5ceb0932b105410f8948cc092d84f3",class:"col-12 col-md-4"},s("form-control-text",{key:"7c746f5b8fe06c71e800123b46ea40e701c675ef",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:"97808fe13be4a772d820f92003320e1b2d6dff5c",class:"col-12 col-md-6"},s("form-control-text",{key:"264e975df8cd9ca53cb05b60824055028839d3ca",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"3a045af74578f3bec4c66848cec5460a1588800d",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"17627d6bfc876106ec40e63dcb6a3fb1b7b7f009",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"394b0454272509ff5d99cd63e2f3d1f2f1d0dff1",class:"col-12 col-md-4"},s("form-control-date",{key:"b079e3422551e8be640d34461adbbbeb86f659b4",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:"fdaf32d03ac0d562ecc6c14f552a891f7ab0e31f",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"18c3a9019fb9d0abc8654d59b504bfba27ca9661",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"5f5f2815471a5b4a7b18db1aba58597e429b425b",class:"col-12"},s("justifi-identity-address-form",{key:"663d4185f2a96a260b118e0e4a9437dbff3d1906",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{j as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as a}from"./p-
|
|
1
|
+
import{r as t,c as e,h as s,H as a}from"./p-qipqIMyC.js";import{c as i,l as r,b as o,T as h,a as d}from"./p-RvUQ__Pq.js";import{F as c}from"./p-DCMrHeJI.js";import"./p-CZfYo5-1.js";const l=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=d),t}render(){return s(a,{key:"2e4a67de83ef5dcd64ff15e1f6fbc125db0d121d"},s("div",{key:"e73d09d041e2152e88917ac65f8a5b5bb7949df4",class:"form-group d-flex flex-column"},s("div",{key:"7c0e2d8be29956e61aaa37bc4575efc595382ce7",class:"d-flex gap-2"},s("label",{key:"1d3692f53203455abacb1addb300549d5d47d8e6",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"e16354b0813c63cd2b21b4185fdd33c0159d9ee3",helpText:this.helpText})),s("input",{key:"bf559dea1bf215276a69833a0d5ff78502043669",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(c,{key:"df02643ac9a15c675726ccba1bfb2ec45ed2c4bc",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e,H as s}from"./p-qipqIMyC.js";import{E as c}from"./p-CLHwhyvu.js";import{a8 as t,a9 as d,aa as i,ab as f,ac as b}from"./p-RvUQ__Pq.js";const p=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(s,{key:"60e8ec0ae3694e92d4da6c9acafcc99ee7133a15"},e("nav",{key:"4e6e0fe25d9e74361ac35088998e633f9bfed406","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"534d80446e2c0353815cc7a90814a530d0a847d9",class:"pagination m-0"},e("li",{key:"64f5bcbca960ad9e7aebe4a80dbb39b4839e0a30",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"69c8738326ad600ab0d3b62fbfff02e356cc363d",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?t:d},e("span",{key:"a78f24c5d02f12c4668ccc831f19b9062af46000",class:"me-1",part:i},"«"),e("span",{key:"a1088b77164fd7d72cb37a055c1a79e302ed3c83",part:f},"Previous"))),e("li",{key:"81d5fa7a02b4248d8d7e3ee717f1fba1bda94adc",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"8e971b90b118a09522c2ed0481faf678215c6e11",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?t:d},e("span",{key:"bae3f08686008a581c481ad8c9608ccecce1414f",part:f},"Next"),e("span",{key:"cd89a36c4875da848110bfaad8c20fc63bd3f2fa",class:"ms-1",part:b},"»"))))))}};export{p as pagination_menu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i,r as s,c as t}from"./p-
|
|
1
|
+
import{h as i,r as s,c as t}from"./p-qipqIMyC.js";import{al as e,ai as r,ae as o,z as l}from"./p-RvUQ__Pq.js";import{S as d}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-BB5-CJF-.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as v}from"./p-B4idKqyn.js";import{B as u}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-Xv8DuU3Y.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import{i as f,h as w,b}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as y,a as x}from"./p-D2muobcE.js";import{T as g}from"./p-CxzFvTgf.js";import{k as j}from"./p-BHf9IqGw.js";import"./p-pXjOPQhG.js";import"./p-BUa0YOaw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DsAwPf2y.js";const B=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(B,null)),C=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),S=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?b.boardingShipping:b.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new v})({onSuccess:({business:i})=>{this.business=new u(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:x(a.error),code:y(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=y(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new g})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:x(d.error),code:y(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=y(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new g});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(C,null),i(C,null),i(C,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,j(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"3ea6cebd4ab6bc47090056581482dab8502175c1"},i("div",{key:"383dc710920b5119841d5cf6f1b596ebc349fd5a",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{S as justifi_order_terminals}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-qipqIMyC.js";import"./p-Bp_QFeog.js";import"./p-HXpYMWUU.js";import{C as i,a}from"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as o,a as h,b as c,c as p,d as n,e as d,f,g as b,h as u,i as m,j as y,k as g,l as j}from"./p-BZ7C9duj.js";import{T as l}from"./p-CZfYo5-1.js";import{p as k,a as C}from"./p-D-JYHdJ7.js";import{o as v,g as w}from"./p-IG_KR8zP.js";import"./p-DsAwPf2y.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-xY5RkFuA.js";import"./p-fUtq2xDs.js";import"./p-D--yCspA.js";const _=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const i=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:i})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new o(this.payouts,this.columns,k,C(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),v("set",(()=>{this.pagingParams={}})),v("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=w();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"503793db2fd72d3854bfa1eba2051bc822000a1a"},e(h,{key:"1db195f7f1206bef7236ccd814c464c61b12f3d3"},e(c,{key:"a61137a34fddf3f854102ec7a2964f127d7555f9"},e(p,{key:"3d3c330e5758ccb4aa14bb7b5ae993d8d2c1718e"},this.payoutsTable.columnData.map((t=>t)))),e(n,{key:"a483803ea8dd9db844f36f9f8c7a89e81d7322b4"},e(d,{key:"10bee5e971e10b0313b9b411c292f8f65bf1cf82",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(f,{key:"c8ec9f17a98baa81b4b1830eb8d0bfad45cc8ee1",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"94cd786053173ce22f797b0da263488cab9b5139",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e(u,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"533bb1571ae70a03f60d13d5742296f425512919"},e(y,{key:"15924c92e5c9f2202066ebfa02aebc2c52fccee3"},e(g,{key:"48bd284c90d4ac044b5fd5f323c90fab5e9fdb5d",colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"cfc4bc6b077267ced59bf8b2519ee0354e676560",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{_ as payouts_list_core}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-
|
|
1
|
+
import{r as e,h as a}from"./p-qipqIMyC.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as d}from"./p-DbX0g1WF.js";import{f as l,g as c,t as r,h as f,j as p,k as b}from"./p-RvUQ__Pq.js";import{S as o}from"./p-CLQx9p9q.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-BHf9IqGw.js";import"./p-BFTU3MAI.js";import"./p-DsAwPf2y.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(i[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(o,{key:"ef06ca5d0df145fd2c7f82fb164a4098b1654e7c"},a("table-filters-menu",{key:"32739ded26b3a11092e5237d363b5b280c859f0c",params:e,clearParams:d,part:l},a("div",{key:"2e123d80c45a92944811b9124e13f6cfc2e11cc0",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"d9e5facfe21e0896a4f0542a12592f11c54c0bc8",class:"p-2"},a("form-control-text",{key:"084cec1084b8be08a5520891479aa4b4ab168ab7",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:c})),a("div",{key:"c86027af0c49931a34e31e185cfc3c0d1093caf9",class:"p-2"},a("form-control-text",{key:"694b5ddd5f90af1d73320cb6e29ce2e3aafce0b8",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:r})),a("div",{key:"4d2e5e1a0e76a58be68255e08a2a4f09dbbbc481",class:"p-2"},a("form-control-select",{key:"d4fa79604b6f9a390a63601001bc2ba8f8af425a",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"54cc9fb98d5c0f6d96abb592d5e22c037634089c",class:"p-2"},a("form-control-date",{key:"95001198266f09607e34d0c1fa5c1d0693b67b0a",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"3510ccb63020969b2777c65ed82cfab9027dccd8",class:"p-2"},a("form-control-date",{key:"428a3195efb976842c186aa0b4ec76ebfb1b7836",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:b})))))}};export{u as justifi_payments_list_filters}
|