@justifi/webcomponents 4.18.0 → 4.19.0
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/{Analytics-d4aa8c07.js → Analytics-ff013cbc.js} +1 -1
- package/dist/cjs/{Payment-24f22eca.js → Payment-1a8a8ca6.js} +0 -21
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-types-11130bab.js → business-form-types-6e1fcda3.js} +4 -7
- package/dist/cjs/business.service-f63650f5.js +32 -0
- package/dist/cjs/button-3f400a66.js +26 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-checkbox_5.cjs.entry.js → form-control-checkbox_9.cjs.entry.js} +434 -169
- package/dist/cjs/{form-control-number-masked_2.cjs.entry.js → form-control-date_3.cjs.entry.js} +50 -7
- package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-error-text_4.cjs.entry.js} +32 -2
- package/dist/cjs/form-control-file.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +1 -1
- package/dist/cjs/form-control-number.cjs.entry.js +1 -1
- package/dist/cjs/{get-payout-csv-e4e4771a.js → get-payout-csv-f3aee6d0.js} +1 -1
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +2 -2
- package/dist/cjs/input-handlers-cff032bb.js +20 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +196 -481
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +3 -3
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -6
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +30 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +7 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +6 -6
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +268 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +8 -12
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -60
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-5fee1ffb.js → package-cb0f8cb1.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +25 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +9 -9
- package/dist/cjs/payment-provisioning-actions-06466dda.js +185 -0
- package/dist/cjs/{payment.service-35298e95.js → payment.service-0a64f9cd.js} +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +69 -40
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +90 -74
- package/dist/cjs/skeleton-748c5dde.js +43 -0
- package/dist/cjs/styled-host-cc053016.js +14 -0
- package/dist/cjs/table-loading-state-8b406852.js +38 -0
- package/dist/cjs/{utils-80191fbe.js → utils-89d86e29.js} +0 -33
- package/dist/cjs/{utils-8c3bf659.js → utils-ddacfc44.js} +0 -5
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Payment.js +0 -20
- package/dist/collection/api/services/business.service.js +18 -0
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/billing-form/billing-form.js +2 -2
- package/dist/collection/components/business-details/business-details-core.js +1 -1
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
- 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-form.js +2 -2
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
- 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 +520 -0
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +80 -0
- package/dist/collection/components/business-forms/owner-form/owner-form.js +55 -225
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +235 -0
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +41 -121
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +255 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +42 -131
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +342 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +34 -189
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +81 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +229 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +42 -133
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +23 -18
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +238 -0
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +41 -124
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +122 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +17 -18
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +6 -6
- 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 +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +1 -1
- package/dist/collection/components/business-forms/utils/business-form-types.js +4 -7
- package/dist/collection/components/business-forms/utils/input-handlers.js +13 -0
- package/dist/collection/components/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +4 -5
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- 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/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/details/details.js +2 -2
- package/dist/collection/components/form/form-control-checkbox.js +1 -1
- package/dist/collection/components/form/form-control-date.js +1 -1
- package/dist/collection/components/form/form-control-file.js +1 -1
- package/dist/collection/components/form/form-control-monetary.js +1 -1
- package/dist/collection/components/form/form-control-number-masked.js +11 -5
- package/dist/collection/components/form/form-control-number.js +1 -1
- package/dist/collection/components/form/form-control-select.js +1 -1
- package/dist/collection/components/form/form-control-text.js +1 -1
- package/dist/collection/components/form/utils.js +0 -2
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +3 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +3 -3
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-form/payment-form.js +4 -6
- package/dist/collection/components/payment-form/payment-method-selector.js +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +2 -2
- package/dist/collection/components/payments-list/payments-list-core.js +66 -38
- package/dist/collection/components/payout-details/payout-details-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list-core.js +88 -73
- package/dist/collection/components/refund-form/refund-form.js +2 -2
- package/dist/collection/ui-components/button-spinner.js +2 -0
- package/dist/collection/ui-components/button.js +19 -0
- package/dist/collection/ui-components/index.js +7 -0
- package/dist/collection/ui-components/skeleton.js +39 -0
- package/dist/collection/ui-components/styled-host/styled-host.js +5 -0
- package/dist/collection/ui-components/table-empty-state.js +8 -0
- package/dist/collection/ui-components/table-error-state.js +8 -0
- package/dist/collection/ui-components/table-loading-state.js +8 -0
- package/dist/collection/utils/utils.js +0 -21
- package/dist/docs.json +2080 -1746
- package/dist/esm/{Analytics-29fac206.js → Analytics-33b8fa8d.js} +1 -1
- package/dist/esm/{Payment-3e94da9c.js → Payment-6bf26fe2.js} +1 -21
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/business-details-core.entry.js +2 -2
- package/dist/esm/{business-form-types-60f50b98.js → business-form-types-1bc5fe08.js} +5 -8
- package/dist/esm/business.service-74bd1212.js +29 -0
- package/dist/esm/button-34e75e0f.js +24 -0
- package/dist/esm/form-alert_5.entry.js +5 -5
- package/dist/esm/{form-control-checkbox_5.entry.js → form-control-checkbox_9.entry.js} +432 -171
- package/dist/esm/form-control-date_3.entry.js +130 -0
- package/dist/esm/{form-control-select_2.entry.js → form-control-error-text_4.entry.js} +32 -4
- package/dist/esm/form-control-file.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +1 -1
- package/dist/esm/form-control-number.entry.js +1 -1
- package/dist/esm/{get-payout-csv-9b4aaada.js → get-payout-csv-b494abfe.js} +1 -1
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/input-handlers-270ac806.js +16 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +197 -482
- package/dist/esm/justifi-bank-account-form.entry.js +3 -3
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +4 -4
- package/dist/esm/justifi-business-form.entry.js +6 -6
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +26 -0
- package/dist/esm/justifi-card-form.entry.js +3 -3
- package/dist/esm/justifi-checkout-core.entry.js +7 -6
- package/dist/esm/justifi-checkout.entry.js +5 -5
- package/dist/esm/justifi-details.entry.js +3 -3
- package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
- package/dist/esm/justifi-new-payment-method_4.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +262 -0
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-form.entry.js +9 -10
- package/dist/esm/justifi-payment-method-form.entry.js +4 -4
- package/dist/esm/justifi-payment-method-selector.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +8 -12
- package/dist/esm/justifi-payment-provisioning.entry.js +7 -59
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +5 -5
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-1123f528.js → package-3e407c6d.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +21 -0
- package/dist/esm/payment-details-core.entry.js +10 -10
- package/dist/esm/payment-provisioning-actions-0635eff7.js +178 -0
- package/dist/esm/{payment.service-c62d82d3.js → payment.service-3ca4a492.js} +1 -1
- package/dist/esm/payments-list-core.entry.js +69 -40
- package/dist/esm/payout-details-core.entry.js +4 -4
- package/dist/esm/payouts-list-core.entry.js +90 -74
- package/dist/esm/skeleton-145a80d4.js +41 -0
- package/dist/esm/styled-host-ab9da520.js +12 -0
- package/dist/esm/table-loading-state-356c7215.js +34 -0
- package/dist/esm/{utils-56719d07.js → utils-01413a95.js} +1 -1
- package/dist/esm/{utils-f4c4ba7d.js → utils-3bb6347a.js} +1 -5
- package/dist/esm/{utils-5f4c4faa.js → utils-3c1dd2fa.js} +1 -31
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Payment.js +1 -21
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-additional-questions-form-step-core.js +141 -0
- package/dist/module/business-additional-questions-form-step.js +55 -100
- package/dist/module/business-additional-questions-schema.js +1 -1
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step.js +4 -4
- package/dist/module/business-core-info-form-step-core.js +151 -0
- package/dist/module/business-core-info-form-step.js +57 -106
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-document-upload-form-step.js +34 -35
- package/dist/module/business-document-upload-input-group.js +2 -2
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-types.js +5 -8
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +216 -0
- package/dist/module/business-owners-form-step.js +67 -154
- package/dist/module/business-representative-form-inputs.js +85 -0
- package/dist/module/business-representative-form-step-core.js +152 -0
- package/dist/module/business-representative-form-step.js +63 -111
- package/dist/module/business-representative.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +3 -3
- package/dist/module/business-terms-conditions-text.js +1 -1
- package/dist/module/business.service.js +19 -1
- package/dist/module/button.js +24 -0
- package/dist/module/checkout-core.js +27 -32
- package/dist/module/details.js +1 -1
- package/dist/module/exported-parts.js +40 -0
- package/dist/module/form-control-checkbox2.js +1 -1
- package/dist/module/form-control-date2.js +1 -1
- package/dist/module/form-control-file2.js +1 -1
- package/dist/module/form-control-monetary2.js +1 -1
- package/dist/module/form-control-number-masked2.js +11 -5
- package/dist/module/form-control-number.js +1 -1
- package/dist/module/form-control-select2.js +1 -1
- package/dist/module/form-control-text2.js +1 -1
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/identity-address-form.js +2 -2
- package/dist/module/input-handlers.js +16 -0
- package/dist/module/justifi-additional-questions-form-step-core.d.ts +11 -0
- package/dist/module/justifi-additional-questions-form-step-core.js +6 -0
- package/dist/module/justifi-bank-account-form.js +1 -1
- package/dist/module/justifi-business-core-info-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-core-info-form-step-core.js +6 -0
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +2 -2
- package/dist/module/justifi-business-owners-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-owners-form-step-core.js +6 -0
- package/dist/module/justifi-business-representative-form-inputs.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-inputs.js +6 -0
- package/dist/module/justifi-business-representative-form-step-core.d.ts +11 -0
- package/dist/module/justifi-business-representative-form-step-core.js +6 -0
- package/dist/module/justifi-card-form.js +1 -1
- package/dist/module/justifi-checkout.js +27 -33
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-legal-address-form-step-core.d.ts +11 -0
- package/dist/module/justifi-legal-address-form-step-core.js +6 -0
- package/dist/module/justifi-payment-details.js +2 -2
- package/dist/module/justifi-payment-form.js +5 -6
- package/dist/module/justifi-payment-provisioning.js +97 -108
- package/dist/module/justifi-payments-list.js +8 -14
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payouts-list.js +8 -13
- package/dist/module/justifi-refund-form.js +2 -2
- package/dist/module/justifi-season-interruption-insurance.js +7 -2
- package/dist/module/legal-address-form-step-core.js +138 -0
- package/dist/module/legal-address-form-step.js +53 -98
- package/dist/module/legal-address-form.js +2 -2
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/{justifi-table.d.ts → owner-form-core.d.ts} +4 -4
- package/dist/module/owner-form-core.js +6 -0
- package/dist/module/owner-form-core2.js +264 -0
- package/dist/module/{justifi-skeleton.d.ts → owner-form-inputs.d.ts} +4 -4
- package/dist/module/owner-form-inputs.js +6 -0
- package/dist/module/owner-form-inputs2.js +85 -0
- package/dist/module/owner-form.js +62 -188
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +3 -3
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-method-form.js +2 -2
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-method-selector.js +1 -1
- package/dist/module/payment-provisioning-actions.js +178 -0
- package/dist/module/payment-provisioning-core.js +100 -62
- package/dist/module/payment-provisioning-form-buttons.js +2 -2
- package/dist/module/payment-provisioning-form-steps.js +94 -52
- package/dist/module/payments-list-core2.js +71 -49
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +92 -82
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +1 -1
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +1 -1
- package/dist/module/skeleton.js +18 -50
- package/dist/module/styled-host.js +4 -4
- package/dist/module/utils2.js +1 -31
- package/dist/module/utils3.js +23 -26
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Payment.d.ts +0 -28
- package/dist/types/api/services/business.service.d.ts +10 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +43 -0
- package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +9 -28
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +27 -0
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +6 -21
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +35 -0
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +5 -21
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +25 -0
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +5 -17
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +26 -0
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +5 -15
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +40 -1
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +6 -11
- package/dist/types/components/business-forms/utils/input-handlers.d.ts +4 -0
- package/dist/types/components/checkout/checkout-core.d.ts +0 -1
- package/dist/types/components/form/utils.d.ts +0 -1
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +3 -0
- package/dist/types/components/payments-list/payments-list-core.d.ts +12 -2
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +11 -4
- package/dist/types/components.d.ts +309 -482
- package/dist/types/ui-components/button-spinner.d.ts +1 -0
- package/dist/types/ui-components/button.d.ts +10 -0
- package/dist/types/ui-components/index.d.ts +7 -0
- package/dist/types/ui-components/skeleton.d.ts +13 -0
- package/dist/types/ui-components/styled-host/styled-host.d.ts +2 -0
- package/dist/types/ui-components/table-empty-state.d.ts +6 -0
- package/dist/types/ui-components/table-error-state.d.ts +6 -0
- package/dist/types/ui-components/table-loading-state.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +0 -3
- package/dist/webcomponents/p-07109641.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-17e4246f.entry.js +1 -0
- package/dist/webcomponents/{p-e85ef4af.entry.js → p-195f92e9.entry.js} +1 -1
- package/dist/webcomponents/{p-959b478a.entry.js → p-1a43e355.entry.js} +2 -2
- package/dist/webcomponents/p-23014988.entry.js +1 -0
- package/dist/webcomponents/p-25dba252.entry.js +1 -0
- package/dist/webcomponents/{p-0dca0770.entry.js → p-27981600.entry.js} +1 -1
- package/dist/webcomponents/{p-66758365.entry.js → p-301e0493.entry.js} +1 -1
- package/dist/webcomponents/p-304dd644.entry.js +1 -0
- package/dist/webcomponents/p-30a493cd.entry.js +1 -0
- package/dist/webcomponents/p-462dc522.entry.js +1 -0
- package/dist/webcomponents/{p-09affce4.entry.js → p-487b72a8.entry.js} +1 -1
- package/dist/webcomponents/{p-571d7f1a.entry.js → p-4abc17f0.entry.js} +1 -1
- package/dist/webcomponents/{p-667a5aa8.js → p-4b4580dd.js} +1 -1
- package/dist/webcomponents/p-52021fa1.entry.js +1 -0
- package/dist/webcomponents/p-53e64f15.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -0
- package/dist/webcomponents/p-60a370fc.entry.js +1 -0
- package/dist/webcomponents/{p-e0bcfdb5.entry.js → p-623a4479.entry.js} +1 -1
- package/dist/webcomponents/{p-3294856b.entry.js → p-62b32c4c.entry.js} +1 -1
- package/dist/webcomponents/{p-092e080c.js → p-63acf322.js} +1 -1
- package/dist/webcomponents/p-6f03b35a.entry.js +1 -0
- package/dist/webcomponents/p-75b4daef.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -0
- package/dist/webcomponents/{p-e8c651b8.js → p-83125497.js} +1 -1
- package/dist/webcomponents/{p-49b8e112.js → p-8603348a.js} +1 -1
- package/dist/webcomponents/{p-7a346c0b.entry.js → p-8c1e981b.entry.js} +1 -1
- package/dist/webcomponents/p-8df7bde8.js +1 -0
- package/dist/webcomponents/{p-f3555f0b.entry.js → p-8e541a32.entry.js} +1 -1
- package/dist/webcomponents/p-9279aa49.entry.js +1 -0
- package/dist/webcomponents/{p-0e4a54c8.entry.js → p-96b42e7d.entry.js} +1 -1
- package/dist/webcomponents/{p-9631b768.entry.js → p-99022846.entry.js} +1 -1
- package/dist/webcomponents/p-9c9c7dac.js +1 -0
- package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
- package/dist/webcomponents/p-ba4bae6f.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/{p-67e497aa.entry.js → p-bc92235c.entry.js} +1 -1
- package/dist/webcomponents/p-be39c802.entry.js +1 -0
- package/dist/webcomponents/{p-3514b616.entry.js → p-c4b87db2.entry.js} +1 -1
- package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
- package/dist/webcomponents/{p-bb32b91c.entry.js → p-cd7105dd.entry.js} +1 -1
- package/dist/webcomponents/p-d101c5db.js +1 -0
- package/dist/webcomponents/{p-d5612f35.entry.js → p-d1fbeae5.entry.js} +1 -1
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -0
- package/dist/webcomponents/{p-e1651130.js → p-dce846bf.js} +1 -1
- package/dist/webcomponents/{p-e8706cc4.js → p-df21aaad.js} +1 -1
- package/dist/webcomponents/{p-531d873a.entry.js → p-e2c88817.entry.js} +1 -1
- package/dist/webcomponents/{p-df38dd21.entry.js → p-e31f0f3e.entry.js} +1 -1
- package/dist/webcomponents/p-e333620e.js +1 -0
- package/dist/webcomponents/{p-464e4dfe.entry.js → p-e7067ef2.entry.js} +1 -1
- package/dist/webcomponents/{p-2244e679.entry.js → p-f0866375.entry.js} +1 -1
- package/dist/webcomponents/{p-debeefbb.entry.js → p-fb58feb5.entry.js} +1 -1
- package/dist/webcomponents/p-fe33151d.entry.js +1 -0
- package/dist/webcomponents/webcomponents.css +6 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/SubAccount-135ff8c8.js +0 -107
- package/dist/cjs/business.service-9214509a.js +0 -13
- package/dist/cjs/form-control-date.cjs.entry.js +0 -43
- package/dist/cjs/form-control-error-text_2.cjs.entry.js +0 -36
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -110
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -86
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -159
- package/dist/cjs/justifi-skeleton.cjs.entry.js +0 -54
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -77
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -105
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -80
- package/dist/cjs/styled-host-b8bed12a.js +0 -14
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -58
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -19
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -19
- package/dist/collection/api/Proceed.js +0 -41
- package/dist/collection/api/SubAccount.js +0 -103
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.css +0 -60
- package/dist/collection/components/business-list/business-list.js +0 -185
- package/dist/collection/components/business-list/business-list.stories.js +0 -68
- package/dist/collection/components/business-list/example.js +0 -12
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -143
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -32
- package/dist/collection/components/proceeds-list/example.js +0 -12
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -205
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -69
- package/dist/collection/components/skeleton/skeleton.css +0 -11
- package/dist/collection/components/skeleton/skeleton.js +0 -160
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -59
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -37
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -136
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -25
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -38
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -37
- package/dist/collection/components/subaccounts-list/subaccounts-list.css +0 -3
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -179
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -69
- package/dist/collection/components/table/table.css +0 -7
- package/dist/collection/components/table/table.js +0 -222
- package/dist/collection/components/table/utils.js +0 -4
- package/dist/collection/utils/styled-host/styled-host.js +0 -6
- package/dist/esm/SubAccount-7fcb1450.js +0 -105
- package/dist/esm/business.service-19a0c8d3.js +0 -11
- package/dist/esm/form-control-date.entry.js +0 -39
- package/dist/esm/form-control-error-text_2.entry.js +0 -31
- package/dist/esm/form-control-number-masked_2.entry.js +0 -88
- package/dist/esm/justifi-business-list.entry.js +0 -106
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -82
- package/dist/esm/justifi-proceeds-list.entry.js +0 -155
- package/dist/esm/justifi-skeleton.entry.js +0 -50
- package/dist/esm/justifi-subaccount-details.entry.js +0 -73
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -101
- package/dist/esm/justifi-table_2.entry.js +0 -75
- package/dist/esm/styled-host-57aae7fa.js +0 -12
- package/dist/esm/subaccount-account-details_4.entry.js +0 -51
- package/dist/esm/subaccount-bank-details.entry.js +0 -15
- package/dist/esm/subaccount-terms-details.entry.js +0 -15
- package/dist/module/SubAccount.js +0 -105
- package/dist/module/justifi-business-list.d.ts +0 -11
- package/dist/module/justifi-business-list.js +0 -147
- package/dist/module/justifi-payment-balance-transactions.d.ts +0 -11
- package/dist/module/justifi-payment-balance-transactions.js +0 -123
- package/dist/module/justifi-proceeds-list.d.ts +0 -11
- package/dist/module/justifi-proceeds-list.js +0 -198
- package/dist/module/justifi-skeleton.js +0 -6
- package/dist/module/justifi-subaccount-details.d.ts +0 -11
- package/dist/module/justifi-subaccount-details.js +0 -133
- package/dist/module/justifi-subaccounts-list.d.ts +0 -11
- package/dist/module/justifi-subaccounts-list.js +0 -144
- package/dist/module/justifi-table.js +0 -6
- package/dist/module/subaccount-account-details.d.ts +0 -11
- package/dist/module/subaccount-account-details.js +0 -6
- package/dist/module/subaccount-account-details2.js +0 -34
- package/dist/module/subaccount-bank-details.d.ts +0 -11
- package/dist/module/subaccount-bank-details.js +0 -35
- package/dist/module/subaccount-merchant-details.d.ts +0 -11
- package/dist/module/subaccount-merchant-details.js +0 -6
- package/dist/module/subaccount-merchant-details2.js +0 -33
- package/dist/module/subaccount-owners-details.d.ts +0 -11
- package/dist/module/subaccount-owners-details.js +0 -6
- package/dist/module/subaccount-owners-details2.js +0 -33
- package/dist/module/subaccount-representative-details.d.ts +0 -11
- package/dist/module/subaccount-representative-details.js +0 -6
- package/dist/module/subaccount-representative-details2.js +0 -33
- package/dist/module/subaccount-terms-details.d.ts +0 -11
- package/dist/module/subaccount-terms-details.js +0 -35
- package/dist/module/table.js +0 -93
- package/dist/types/api/Proceed.d.ts +0 -60
- package/dist/types/api/SubAccount.d.ts +0 -163
- package/dist/types/components/business-list/business-list.d.ts +0 -48
- package/dist/types/components/business-list/business-list.stories.d.ts +0 -9
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.d.ts +0 -17
- package/dist/types/components/payment-balance-transactions/payment-balance-transactions.stories.d.ts +0 -8
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +0 -39
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +0 -9
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
- package/dist/types/components/subaccount-details/subaccount-account-details/subaccount-account-details.d.ts +0 -6
- package/dist/types/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-details.d.ts +0 -16
- package/dist/types/components/subaccount-details/subaccount-details.stories.d.ts +0 -7
- package/dist/types/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.d.ts +0 -5
- package/dist/types/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.d.ts +0 -5
- package/dist/types/components/subaccounts-list/subaccounts-list.d.ts +0 -19
- package/dist/types/components/subaccounts-list/subaccounts-list.stories.d.ts +0 -9
- package/dist/types/components/table/table.d.ts +0 -23
- package/dist/types/components/table/utils.d.ts +0 -3
- package/dist/types/utils/styled-host/styled-host.d.ts +0 -3
- package/dist/webcomponents/p-0a4a9ccd.entry.js +0 -1
- package/dist/webcomponents/p-0ed3c1d2.entry.js +0 -1
- package/dist/webcomponents/p-10b57ac6.entry.js +0 -1
- package/dist/webcomponents/p-1737f6bf.entry.js +0 -1
- package/dist/webcomponents/p-2306d44d.entry.js +0 -1
- package/dist/webcomponents/p-2af3672b.entry.js +0 -1
- package/dist/webcomponents/p-390157c9.entry.js +0 -1
- package/dist/webcomponents/p-412c7a22.entry.js +0 -1
- package/dist/webcomponents/p-4b9587ec.entry.js +0 -1
- package/dist/webcomponents/p-54287db6.entry.js +0 -1
- package/dist/webcomponents/p-547a2cd0.entry.js +0 -1
- package/dist/webcomponents/p-5963bcdc.entry.js +0 -1
- package/dist/webcomponents/p-5b1451e7.entry.js +0 -1
- package/dist/webcomponents/p-6700ac49.js +0 -1
- package/dist/webcomponents/p-68fd8283.js +0 -1
- package/dist/webcomponents/p-6bcf621a.entry.js +0 -1
- package/dist/webcomponents/p-6bd5d569.entry.js +0 -1
- package/dist/webcomponents/p-76180bb4.entry.js +0 -1
- package/dist/webcomponents/p-77dc159c.entry.js +0 -1
- package/dist/webcomponents/p-7d6aba64.entry.js +0 -1
- package/dist/webcomponents/p-81d3eda6.entry.js +0 -1
- package/dist/webcomponents/p-87932e16.js +0 -1
- package/dist/webcomponents/p-88c7ef46.entry.js +0 -1
- package/dist/webcomponents/p-8cc7a418.entry.js +0 -1
- package/dist/webcomponents/p-8dd22c8d.entry.js +0 -1
- package/dist/webcomponents/p-9e7c3231.entry.js +0 -1
- package/dist/webcomponents/p-b53d7b7f.js +0 -1
- package/dist/webcomponents/p-bbc18b9f.entry.js +0 -1
- package/dist/webcomponents/p-c4264aaf.js +0 -1
- package/dist/webcomponents/p-cb9ee476.entry.js +0 -1
- package/dist/webcomponents/p-d083a342.entry.js +0 -1
- package/dist/webcomponents/p-e46929a1.entry.js +0 -1
- package/dist/webcomponents/p-ea7c77a3.entry.js +0 -1
- package/dist/webcomponents/p-ed844504.js +0 -1
- package/dist/module/{index.esm.js → form.js} +2733 -2733
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { c as config } from './config-476c7241.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
-
import './package-
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-33b8fa8d.js';
|
|
4
|
+
import './package-3e407c6d.js';
|
|
5
5
|
import './Api-b09a2f6a.js';
|
|
6
6
|
|
|
7
7
|
const BankAccountForm = class {
|
|
@@ -64,7 +64,7 @@ const BankAccountForm = class {
|
|
|
64
64
|
return this.childRef.resize();
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h("justifi-payment-method-form", { key: '
|
|
67
|
+
return (h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
|
|
68
68
|
if (el) {
|
|
69
69
|
this.childRef = el;
|
|
70
70
|
}
|
|
@@ -2,8 +2,8 @@ import { r as registerInstance, h, c as createEvent } from './index-57431c24.js'
|
|
|
2
2
|
import { c as create$3, F as FormController } from './index.esm-fc4f5c0c.js';
|
|
3
3
|
import { i as identityNameValidation, l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation } from './schema-validations-a83ff220.js';
|
|
4
4
|
import { S as StateOptions } from './state-options-a356fb11.js';
|
|
5
|
-
import { n as numberOnlyHandler } from './utils-
|
|
6
|
-
import { S as StyledHost } from './styled-host-
|
|
5
|
+
import { n as numberOnlyHandler } from './utils-3bb6347a.js';
|
|
6
|
+
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
7
7
|
import './business-form-options-7a9a74fc.js';
|
|
8
8
|
import './Business-e218b4f4.js';
|
|
9
9
|
import './helpers-96ea3464.js';
|
|
@@ -52,7 +52,7 @@ const BillingForm = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
const billingFormDefaultValue = this.formController.getInitialValues();
|
|
55
|
-
return (h(StyledHost, { key: '
|
|
55
|
+
return (h(StyledHost, { key: 'b08094d3c44d35cdb3c21b4bc360dbbee19d7d15', exportparts: "label,input,input-invalid" }, h("form", { key: '392538a781ffa2ac299cbc4203bab5efd10e77cc' }, h("fieldset", { key: 'f4b5a5ec9a91e9f50a3847c5eb16635c4f9d569a' }, this.legend && h("legend", { key: 'eb75e22f9df33c13e3851ece784d237b8973e2c5' }, this.legend), h("div", { key: 'd7ffdc1cfeda5568ad003a4d3bbe94765de04605', class: "row gy-3" }, h("div", { key: 'c22f9e7b2f33b5c298bb5f0a5c7bcaa709c231a0', class: "col-12" }, h("form-control-text", { key: 'd6eb4d2f4d1a2a709e0f29bf18b5d9700bd91a13', name: 'name', label: 'Full Name', defaultValue: billingFormDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '8494ee3c14f8923d18d8708077e030c2f141a251', class: "col-12" }, h("form-control-text", { key: '63266eb0e2b2b006a3c914a68703ee1cdf848f83', name: 'address_line1', label: 'Street Address', defaultValue: billingFormDefaultValue.address_line1, errorText: this.errors.address_line1, inputHandler: this.inputHandler })), h("div", { key: '0a19fcf5c172d2539f23e147f39461d84dfd9d37', class: "col-12" }, h("form-control-text", { key: '0e5fae5d65d5ea195de0227d1e4f79cee7c7a0fb', name: 'address_line2', label: "Apartment, Suite, etc. (optional)", defaultValue: billingFormDefaultValue.address_line2, errorText: this.errors.address_line2, inputHandler: this.inputHandler })), h("div", { key: '13104554e8247cb0534c3dc9e6a16b2f44397795', class: "col-12" }, h("form-control-text", { key: '430e59713ec66ff7a6f735ca24640c27b05cbeee', name: 'address_city', label: "City", defaultValue: billingFormDefaultValue.address_city, errorText: this.errors.address_city, inputHandler: this.inputHandler })), h("div", { key: '5b81499717f67d5f499f4ebfc585056ef5bd3d56', class: "col-12" }, h("form-control-select", { key: '726c724eda5f25a92bad7e549ff7845ece7b41e1', name: 'address_state', label: 'State', options: StateOptions, defaultValue: billingFormDefaultValue.address_state, errorText: this.errors.address_state, inputHandler: this.inputHandler })), h("div", { key: '5d5a6e0949c5ad93da5bc1837dadf88c2128212d', class: "col-12" }, h("form-control-text", { key: 'ebb4e77126d86011d9a1ed5d118461198b399092', name: 'address_postal_code', label: "ZIP", defaultValue: billingFormDefaultValue.address_postal_code, errorText: this.errors.address_postal_code, inputHandler: this.inputHandler, maxLength: 5, keyDownHandler: numberOnlyHandler })))))));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
BillingForm.style = JustifiBillingFormStyle0;
|
|
@@ -69,7 +69,7 @@ const SaveNewPaymentMethod = class {
|
|
|
69
69
|
this.checkboxChanged.emit(this.isChecked);
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
|
-
return (h("div", { key: '
|
|
72
|
+
return (h("div", { key: 'f22a132a518a98786c8486e08c9a65050f3c5ea0', class: "mt-4 form-check" }, h("input", { key: '6f1392f9dd29a9761f5942b0a40e05a899858ada', type: "checkbox", checked: this.isChecked, onChange: (event) => this.handleCheckboxChange(event), class: "form-check-input" }), h("label", { key: 'e6e5908ba70ece8ea19370a04104d88d17237fc7', class: "form-check-label" }, "Save new payment method")));
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
|
|
2
|
-
import { E as ErrorState } from './utils-
|
|
3
|
-
import { B as BusinessService } from './business.service-
|
|
2
|
+
import { E as ErrorState } from './utils-01413a95.js';
|
|
3
|
+
import { B as BusinessService } from './business.service-74bd1212.js';
|
|
4
4
|
import { B as Business } from './Business-e218b4f4.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
6
6
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
7
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-33b8fa8d.js';
|
|
8
8
|
import './config-476c7241.js';
|
|
9
9
|
import './Api-b09a2f6a.js';
|
|
10
10
|
import './helpers-96ea3464.js';
|
|
11
11
|
import './state-options-a356fb11.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-3e407c6d.js';
|
|
13
13
|
|
|
14
14
|
const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
15
15
|
var _a;
|
|
@@ -4,18 +4,18 @@ import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './b
|
|
|
4
4
|
import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-acb719d1.js';
|
|
5
5
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
6
6
|
import './Pagination-afc8f96d.js';
|
|
7
|
-
import './Payment-
|
|
7
|
+
import './Payment-6bf26fe2.js';
|
|
8
8
|
import './Payout-dfe15b00.js';
|
|
9
9
|
import { c as config } from './config-476c7241.js';
|
|
10
|
-
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-
|
|
10
|
+
import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
11
11
|
import { B as Business } from './Business-e218b4f4.js';
|
|
12
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
13
|
-
import { S as StyledHost } from './styled-host-
|
|
12
|
+
import { J as JustifiAnalytics } from './Analytics-33b8fa8d.js';
|
|
13
|
+
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
14
14
|
import './schema-validations-a83ff220.js';
|
|
15
15
|
import './state-options-a356fb11.js';
|
|
16
16
|
import './business-form-options-7a9a74fc.js';
|
|
17
17
|
import './helpers-96ea3464.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-3e407c6d.js';
|
|
19
19
|
|
|
20
20
|
const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
|
|
21
21
|
|
|
@@ -110,7 +110,7 @@ const BusinessForm = class {
|
|
|
110
110
|
this.instantiateBusiness(response.data);
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
return (h(StyledHost, { key: '
|
|
113
|
+
return (h(StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
+
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
|
|
3
|
+
import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-0e18300f.js';
|
|
4
|
+
import './helpers-96ea3464.js';
|
|
5
|
+
import './state-options-a356fb11.js';
|
|
6
|
+
|
|
7
|
+
const RepresentativeFormInputs = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.inputHandler = (name, value) => {
|
|
11
|
+
updateFormValues(this.formController, { [name]: value });
|
|
12
|
+
};
|
|
13
|
+
this.onAddressFormUpdate = (values) => {
|
|
14
|
+
updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
|
|
15
|
+
};
|
|
16
|
+
this.representativeDefaultValue = undefined;
|
|
17
|
+
this.errors = undefined;
|
|
18
|
+
this.formController = undefined;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
22
|
+
return (h("form", { key: '8b46b3b30681c7e7f30395a2cac575a7bd7ac998' }, h("fieldset", { key: 'e6b8f2ebca22c295fd6897c0e8862200171c2b4d' }, h("legend", { key: '8f8f52240f5ccc3f5d43507681dc970b4260bb1b' }, "Representative"), h("hr", { key: '8b07c69a514534ab731e7c01b6ee4c7a0e59e06e' }), h("div", { key: '79f44ba9dcbcf9d010aed92e332f686ca7127285', class: 'row gy-3' }, h("div", { key: '2a1aeb5ddee1dafc40e108cfb2e9ed6f4d8bc183', class: 'col-12 col-md-8' }, h("form-control-text", { key: '6e089f2d4f734da266e94b38ec1435dc3f461d5f', name: 'name', label: 'Full Name', defaultValue: (_a = this.representativeDefaultValue) === null || _a === void 0 ? void 0 : _a.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c86421e524752e017180aef58e01229bf751e941', class: 'col-12 col-md-4' }, h("form-control-text", { key: 'ad8105f6d9a46397eb481666c19468376716544c', name: 'title', label: 'Title', defaultValue: (_b = this.representativeDefaultValue) === null || _b === void 0 ? void 0 : _b.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '7775905e46c00337a98ab668c8453e14d27bfc4d', class: 'col-12 col-md-6' }, h("form-control-text", { key: 'e810f2395101a1e48d8d3ff66617ac82d0ec90b3', name: 'email', label: 'Email Address', defaultValue: (_c = this.representativeDefaultValue) === null || _c === void 0 ? void 0 : _c.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '66a91e85d1902e32668407e684774820c02dce67', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: 'aad97ca95c5b2ec728ea00916a46ff4b84661b96', name: 'phone', label: 'Phone Number', defaultValue: (_d = this.representativeDefaultValue) === null || _d === void 0 ? void 0 : _d.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '3cd56ea0ac1e472e905c8113f6335868c39882f1', class: 'col-12 col-md-4' }, h("form-control-date", { key: '2f6d505220cacc08a80029ada089370f3841d9ed', name: 'dob_full', label: 'Birth Date', defaultValue: (_e = this.representativeDefaultValue) === null || _e === void 0 ? void 0 : _e.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController) })), h("div", { key: 'cf2df0af006a50d3533b798607025b4d6ee82ca0', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: '033e4264a1466d300891b2328c0bfaced7acb04d', name: 'identification_number', label: 'SSN', defaultValue: (_f = this.representativeDefaultValue) === null || _f === void 0 ? void 0 : _f.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: '2dc7be12d65203da4d4e0bdd995256a7bdc5bf37', class: 'col-12' }, h("justifi-identity-address-form", { key: '47916ab24bf990be3541b72bfa2dc46cccca5a31', errors: this.errors.address, defaultValues: (_g = this.representativeDefaultValue) === null || _g === void 0 ? void 0 : _g.address, handleFormUpdate: this.onAddressFormUpdate }))))));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { RepresentativeFormInputs as justifi_business_representative_form_inputs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
2
|
import { c as config } from './config-476c7241.js';
|
|
3
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
4
|
-
import './package-
|
|
3
|
+
import { J as JustifiAnalytics } from './Analytics-33b8fa8d.js';
|
|
4
|
+
import './package-3e407c6d.js';
|
|
5
5
|
import './Api-b09a2f6a.js';
|
|
6
6
|
|
|
7
7
|
const CardForm = class {
|
|
@@ -65,7 +65,7 @@ const CardForm = class {
|
|
|
65
65
|
return this.childRef.resize();
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h("justifi-payment-method-form", { key: '
|
|
68
|
+
return (h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
|
|
69
69
|
if (el) {
|
|
70
70
|
this.childRef = el;
|
|
71
71
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
-
import {
|
|
2
|
+
import { f as formatCurrency } from './utils-3c1dd2fa.js';
|
|
3
3
|
import { c as config } from './config-476c7241.js';
|
|
4
4
|
import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
|
|
5
5
|
import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state-8ce01e59.js';
|
|
6
|
-
import {
|
|
6
|
+
import { B as Button } from './button-34e75e0f.js';
|
|
7
|
+
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
8
|
+
import { S as Skeleton } from './skeleton-145a80d4.js';
|
|
7
9
|
|
|
8
10
|
class Checkout {
|
|
9
11
|
constructor(data) {
|
|
@@ -43,7 +45,6 @@ const CheckoutCore = class {
|
|
|
43
45
|
});
|
|
44
46
|
this.renderState = 'error';
|
|
45
47
|
};
|
|
46
|
-
this.loadingSpinner = (h("div", { class: "spinner-border spinner-border-sm", role: "status" }, h("span", { class: "visually-hidden" }, "Loading...")));
|
|
47
48
|
this.iframeOrigin = config.iframeOrigin;
|
|
48
49
|
this.authToken = undefined;
|
|
49
50
|
this.getCheckout = undefined;
|
|
@@ -133,14 +134,14 @@ const CheckoutCore = class {
|
|
|
133
134
|
}
|
|
134
135
|
get paymentType() {
|
|
135
136
|
var _a, _b, _c, _d, _e;
|
|
136
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(
|
|
137
|
+
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { variant: "rounded", height: "300px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("justifi-payment-method-options", { ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": !this.disableBnpl, paymentMethodGroupId: (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_method_group_id, "show-saved-payment-methods": !this.disablePaymentMethodGroup, bnpl: (_b = this.checkout) === null || _b === void 0 ? void 0 : _b.bnpl, authToken: this.authToken, "account-id": (_c = this.checkout) === null || _c === void 0 ? void 0 : _c.account_id, savedPaymentMethods: ((_d = this.checkout) === null || _d === void 0 ? void 0 : _d.payment_methods) || [], paymentAmount: (_e = this.checkout) === null || _e === void 0 ? void 0 : _e.payment_amount, insuranceToggled: this.insuranceToggled }))));
|
|
137
138
|
}
|
|
138
139
|
get summary() {
|
|
139
140
|
var _a, _b;
|
|
140
|
-
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(
|
|
141
|
+
return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
141
142
|
}
|
|
142
143
|
render() {
|
|
143
|
-
return (h(StyledHost, { key: '
|
|
144
|
+
return (h(StyledHost, { key: 'e322f280a57bb0baab61174bca21f0a7e9afa3c1' }, h("div", { key: '4ad8cc4f6243de8ddc03fb184ac4e960a04280eb', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '7f13e26b36790558c8eb455f4d5ab3d0952b4e62', class: "col-12" }, h("h2", { key: 'c5e4b6fc30f51821537915f3ce5d4830ed3f8da9', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '164b7a2cc51d871ad4a92044d0f7240e376bd4b3', class: "col-12" }, h("slot", { key: 'a98b7c6a0bb9e4d1b102e832ee7aa43218432298', name: "insurance" })), h("div", { key: '415d3aac64b4190f54d785695c50a92ce02a76c2', class: "col-12 mt-4" }, h("h2", { key: '6d7f0df1165ec359877459a8bada855ef353c3b3', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'be8495d792cf065d2cbc7d3b46648c887951e313', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '5c9d8baffb50b0b10e9911463f307581cad7619c', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9351832b69a8e5285cae35534299b51193248719', class: "col-12" }, h("div", { key: '5b0e382836c858369caf93a287272922024ce72b', class: "d-flex justify-content-end" }, h(Button, { key: 'f76d37000f7b026e97f083e7cf817bed8f84f34f', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
147
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -3,11 +3,11 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
3
3
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
4
4
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
5
5
|
import './Pagination-afc8f96d.js';
|
|
6
|
-
import './Payment-
|
|
6
|
+
import './Payment-6bf26fe2.js';
|
|
7
7
|
import './Payout-dfe15b00.js';
|
|
8
8
|
import { c as config } from './config-476c7241.js';
|
|
9
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
10
|
-
import './package-
|
|
9
|
+
import { J as JustifiAnalytics } from './Analytics-33b8fa8d.js';
|
|
10
|
+
import './package-3e407c6d.js';
|
|
11
11
|
|
|
12
12
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
13
13
|
var _a;
|
|
@@ -131,11 +131,11 @@ const Checkout = class {
|
|
|
131
131
|
this.checkoutCoreRef.fillBillingForm(fields);
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (h("justifi-checkout-core", { key: '
|
|
134
|
+
return (h("justifi-checkout-core", { key: 'd2f6bfed1be767edcf4ba21cddc503ff5efbec1a', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
|
|
135
135
|
if (el) {
|
|
136
136
|
this.checkoutCoreRef = el;
|
|
137
137
|
}
|
|
138
|
-
} }, h("div", { key: '
|
|
138
|
+
} }, h("div", { key: '45ac1bea74ca8ef7999211b51fe7791225d61f00', slot: "insurance" }, h("slot", { key: '13e051844cc7cb4aed98076ccd64954b2dd68228', name: "insurance" }))));
|
|
139
139
|
}
|
|
140
140
|
static get watchers() { return {
|
|
141
141
|
"authToken": ["propChanged"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-57431c24.js';
|
|
2
|
-
import { E as ErrorState } from './utils-
|
|
3
|
-
import { S as StyledHost } from './styled-host-
|
|
2
|
+
import { E as ErrorState } from './utils-01413a95.js';
|
|
3
|
+
import { S as StyledHost } from './styled-host-ab9da520.js';
|
|
4
4
|
|
|
5
5
|
const Details = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -8,7 +8,7 @@ const Details = class {
|
|
|
8
8
|
this.errorMessage = undefined;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(StyledHost, { key: '
|
|
11
|
+
return (h(StyledHost, { key: '00b10fc4e459688ae06147ef1535f03609ec35e4', exportParts: 'detail-empty-state, detail-metadata-title, detail-metadata, detail-section, detail-section-title, \n detail-section-item-title, detail-section-item-data, detail-head, detail-title, detail-head-info' }, this.errorMessage ?
|
|
12
12
|
ErrorState(this.errorMessage)
|
|
13
13
|
:
|
|
14
14
|
h("main", { class: "p-2" }, h("slot", { name: "head-info" }), h("slot", { name: 'detail-sections' }))));
|
|
@@ -3,9 +3,9 @@ import { c as config } from './config-476c7241.js';
|
|
|
3
3
|
import { A as Api } from './Api-b09a2f6a.js';
|
|
4
4
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
|
|
5
5
|
import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
|
|
6
|
-
import { E as ErrorState } from './utils-
|
|
7
|
-
import { J as JustifiAnalytics } from './Analytics-
|
|
8
|
-
import './package-
|
|
6
|
+
import { E as ErrorState } from './utils-01413a95.js';
|
|
7
|
+
import { J as JustifiAnalytics } from './Analytics-33b8fa8d.js';
|
|
8
|
+
import './package-3e407c6d.js';
|
|
9
9
|
|
|
10
10
|
class ReportsService {
|
|
11
11
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-57431c24.js';
|
|
2
2
|
import { c as config } from './config-476c7241.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
|
|
4
|
+
import { g as snakeToCamel, f as formatCurrency } from './utils-3c1dd2fa.js';
|
|
5
5
|
|
|
6
6
|
const PaymentMethodTypeLabels = {
|
|
7
7
|
bankAccount: 'New bank account',
|
|
@@ -74,7 +74,7 @@ const NewPaymentMethod = class {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
var _a, _b, _c, _d;
|
|
77
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: '93c3e6d38d1e18be54006bf82cd6c8148df3518d', class: "payment-method" }, h("div", { key: '6dbb687fbd3e33a6095be7c39ec0974bcc4809b8', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6c5be962cf5d357211c6716b53d0d8dd3fcf0bb0', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '796868afd192703a81d94897872dd9c0504cbc1e', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
|
|
@@ -163,7 +163,7 @@ const PaymentMethodOptions = class {
|
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
165
|
var _a;
|
|
166
|
-
return (h(Host, { key: '
|
|
166
|
+
return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
167
167
|
const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
|
|
168
168
|
const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
|
|
169
169
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -218,7 +218,7 @@ const SavedPaymentMethod = class {
|
|
|
218
218
|
;
|
|
219
219
|
render() {
|
|
220
220
|
var _a, _b, _c, _d, _e;
|
|
221
|
-
return (h(Fragment, { key: '
|
|
221
|
+
return (h(Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
|
|
222
222
|
_e.acct_last_four)))));
|
|
223
223
|
}
|
|
224
224
|
};
|
|
@@ -289,7 +289,7 @@ const SezzlePaymentMethod = class {
|
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
291
|
var _a, _b, _c, _d, _e;
|
|
292
|
-
return (h("div", { key: '
|
|
292
|
+
return (h("div", { key: '4deca512311cd98d358c7099141b15538857a4e5', class: "payment-method" }, h("script", { key: '94b232291153bba85efebb101e7e6e816857da96', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '7cd9052ae6613fe7f187f3a51b7d6ac7087fdeb1', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '1e15e6c2ddced23b049e2559da27532f9be94fb5', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '0a3637002ef373c05424d6769b070d9db0e66ce8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '6398e2f00088edf8a1a3699e149760744dda4cb1' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: 'bfd33da875aa5e9f5b649ac8fc7aa5758393b6e8' }, h("span", { key: 'c07fd5d32fe897a45a67140e2cb81b1f4d537c4a' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '2b11e4aa6389a4b98cd003c031aed8f01ec8a4df' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '90cf3bfa1f0d36c8d4719f164d436407d7fc692b', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
|
|
2
|
+
import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './payment-provisioning-actions-0635eff7.js';
|
|
3
|
+
import { I as IdentityService } from './business.service-74bd1212.js';
|
|
4
|
+
import { F as FormController } from './index.esm-fc4f5c0c.js';
|
|
5
|
+
import { O as Owner } from './Business-e218b4f4.js';
|
|
6
|
+
import { a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
|
|
7
|
+
import { c as parseIdentityInfo, i as identitySchema } from './payload-parsers-acb719d1.js';
|
|
8
|
+
import { B as Button } from './button-34e75e0f.js';
|
|
9
|
+
import { S as SSN_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
|
|
10
|
+
import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
|
|
11
|
+
import './ComponentError-3ce7f437.js';
|
|
12
|
+
import './utils-b10dae27.js';
|
|
13
|
+
import './config-476c7241.js';
|
|
14
|
+
import './Api-b09a2f6a.js';
|
|
15
|
+
import './helpers-96ea3464.js';
|
|
16
|
+
import './state-options-a356fb11.js';
|
|
17
|
+
import './schema-validations-a83ff220.js';
|
|
18
|
+
import './business-form-options-7a9a74fc.js';
|
|
19
|
+
|
|
20
|
+
const BusinessOwnerForm = class {
|
|
21
|
+
constructor(hostRef) {
|
|
22
|
+
registerInstance(this, hostRef);
|
|
23
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
24
|
+
this.getOwner = undefined;
|
|
25
|
+
this.patchOwner = undefined;
|
|
26
|
+
this.postOwner = undefined;
|
|
27
|
+
this.authToken = undefined;
|
|
28
|
+
this.ownerId = undefined;
|
|
29
|
+
this.businessId = undefined;
|
|
30
|
+
this.allowOptionalFields = undefined;
|
|
31
|
+
this.removeOwner = undefined;
|
|
32
|
+
this.newFormOpen = undefined;
|
|
33
|
+
this.ownersLength = undefined;
|
|
34
|
+
}
|
|
35
|
+
async validate() {
|
|
36
|
+
return this.coreComponent.validate();
|
|
37
|
+
}
|
|
38
|
+
async submit() {
|
|
39
|
+
return this.coreComponent.submit();
|
|
40
|
+
}
|
|
41
|
+
async validateAndSubmit({ onSuccess }) {
|
|
42
|
+
this.coreComponent.validateAndSubmit({ onSuccess });
|
|
43
|
+
}
|
|
44
|
+
componentWillLoad() {
|
|
45
|
+
this.initializeApi();
|
|
46
|
+
}
|
|
47
|
+
initializeApi() {
|
|
48
|
+
if (!this.authToken) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.getOwner = makeGetIdentity({
|
|
52
|
+
authToken: this.authToken,
|
|
53
|
+
identityId: this.ownerId,
|
|
54
|
+
service: new IdentityService()
|
|
55
|
+
});
|
|
56
|
+
this.patchOwner = makePatchIdentity({
|
|
57
|
+
authToken: this.authToken,
|
|
58
|
+
identityId: this.ownerId,
|
|
59
|
+
service: new IdentityService()
|
|
60
|
+
});
|
|
61
|
+
this.postOwner = makePostIdentity({
|
|
62
|
+
authToken: this.authToken,
|
|
63
|
+
service: new IdentityService()
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return (h("owner-form-core", { key: '332d1e77d01886f13aba09b32b2d5f2199131619', 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: ref => this.coreComponent = ref }));
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const BusinessOwnerFormCore = class {
|
|
72
|
+
loadingWatcher() {
|
|
73
|
+
this.formLoading.emit(this.isLoading);
|
|
74
|
+
}
|
|
75
|
+
constructor(hostRef) {
|
|
76
|
+
registerInstance(this, hostRef);
|
|
77
|
+
this.submitted = createEvent(this, "submitted", 7);
|
|
78
|
+
this.ownerSubmitted = createEvent(this, "ownerSubmitted", 7);
|
|
79
|
+
this.clickEvent = createEvent(this, "click-event", 7);
|
|
80
|
+
this.formLoading = createEvent(this, "formLoading", 7);
|
|
81
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
82
|
+
this.getData = () => {
|
|
83
|
+
this.isLoading = true;
|
|
84
|
+
this.getOwner({
|
|
85
|
+
onSuccess: (response) => {
|
|
86
|
+
this.instantiateOwner(response.data);
|
|
87
|
+
},
|
|
88
|
+
onError: ({ error, code, severity }) => {
|
|
89
|
+
this.errorEvent.emit({
|
|
90
|
+
message: error,
|
|
91
|
+
errorCode: code,
|
|
92
|
+
severity: severity
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
final: () => this.isLoading = false
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
this.sendData = () => {
|
|
99
|
+
this.isLoading = true;
|
|
100
|
+
return new Promise((resolve) => {
|
|
101
|
+
if (this.ownerId) {
|
|
102
|
+
this.patchOwner({
|
|
103
|
+
payload: this.payload,
|
|
104
|
+
onSuccess: (response) => {
|
|
105
|
+
this.submitted.emit({
|
|
106
|
+
data: response,
|
|
107
|
+
metadata: { ownerID: response.data.id }
|
|
108
|
+
});
|
|
109
|
+
this.ownerSubmitted.emit({ id: response.data.id });
|
|
110
|
+
this.instantiateOwner(response.data);
|
|
111
|
+
resolve(true);
|
|
112
|
+
},
|
|
113
|
+
onError: ({ error, code, severity }) => {
|
|
114
|
+
this.submitted.emit({ data: { error } });
|
|
115
|
+
this.errorEvent.emit({
|
|
116
|
+
message: error,
|
|
117
|
+
errorCode: code,
|
|
118
|
+
severity: severity
|
|
119
|
+
});
|
|
120
|
+
resolve(false);
|
|
121
|
+
},
|
|
122
|
+
final: () => this.isLoading = false
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
this.postOwner({
|
|
127
|
+
payload: this.payload,
|
|
128
|
+
onSuccess: (response) => {
|
|
129
|
+
this.submitted.emit({
|
|
130
|
+
data: response,
|
|
131
|
+
metadata: { ownerID: response.data.id }
|
|
132
|
+
});
|
|
133
|
+
this.ownerSubmitted.emit({ id: response.data.id });
|
|
134
|
+
this.instantiateOwner(response.data);
|
|
135
|
+
resolve(true);
|
|
136
|
+
},
|
|
137
|
+
onError: ({ error, code, severity }) => {
|
|
138
|
+
this.submitted.emit({ data: { error } });
|
|
139
|
+
this.errorEvent.emit({
|
|
140
|
+
message: error,
|
|
141
|
+
errorCode: code,
|
|
142
|
+
severity: severity
|
|
143
|
+
});
|
|
144
|
+
resolve(false);
|
|
145
|
+
},
|
|
146
|
+
final: () => this.isLoading = false
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
this.instantiateOwner = async (data) => {
|
|
152
|
+
this.owner = Object.assign({}, new Owner(data));
|
|
153
|
+
await this.formController.setInitialValues(this.owner);
|
|
154
|
+
};
|
|
155
|
+
this.handleAddOwner = () => {
|
|
156
|
+
const eventName = this.ownerId ? BusinessFormClickActions.updateOwner : BusinessFormClickActions.addOwner;
|
|
157
|
+
this.clickEvent.emit({ name: eventName });
|
|
158
|
+
};
|
|
159
|
+
this.handleRemoveOwner = () => {
|
|
160
|
+
this.removeOwner(this.ownerId);
|
|
161
|
+
this.clickEvent.emit({ name: BusinessFormClickActions.removeOwner });
|
|
162
|
+
};
|
|
163
|
+
this.isLoading = false;
|
|
164
|
+
this.formController = undefined;
|
|
165
|
+
this.errors = {};
|
|
166
|
+
this.owner = {};
|
|
167
|
+
this.ownerId = undefined;
|
|
168
|
+
this.businessId = undefined;
|
|
169
|
+
this.getOwner = undefined;
|
|
170
|
+
this.patchOwner = undefined;
|
|
171
|
+
this.postOwner = undefined;
|
|
172
|
+
this.allowOptionalFields = undefined;
|
|
173
|
+
this.removeOwner = undefined;
|
|
174
|
+
this.newFormOpen = undefined;
|
|
175
|
+
this.ownersLength = undefined;
|
|
176
|
+
this.validate = this.validate.bind(this);
|
|
177
|
+
this.submit = this.submit.bind(this);
|
|
178
|
+
this.validateAndSubmit = this.validateAndSubmit.bind(this);
|
|
179
|
+
}
|
|
180
|
+
async returnOwnerData() {
|
|
181
|
+
return this.ownerId;
|
|
182
|
+
}
|
|
183
|
+
async validate() {
|
|
184
|
+
return this.formController.validate();
|
|
185
|
+
}
|
|
186
|
+
async submit() {
|
|
187
|
+
const isValid = await this.validate();
|
|
188
|
+
if (isValid) {
|
|
189
|
+
return this.sendData();
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
async validateAndSubmit(event) {
|
|
193
|
+
event.preventDefault();
|
|
194
|
+
const isValid = await this.validate();
|
|
195
|
+
if (isValid) {
|
|
196
|
+
this.submit();
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
get payload() {
|
|
200
|
+
let formValues = parseIdentityInfo(this.formController.values.getValue());
|
|
201
|
+
if (this.ownerId) {
|
|
202
|
+
return JSON.stringify(formValues);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
return JSON.stringify(Object.assign(Object.assign({}, formValues), { business_id: this.businessId }));
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
get formTitle() {
|
|
209
|
+
return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
|
|
210
|
+
}
|
|
211
|
+
get submitButtonText() {
|
|
212
|
+
return this.ownerId ? 'Update' : 'Add';
|
|
213
|
+
}
|
|
214
|
+
get showRemoveButton() {
|
|
215
|
+
const blankForm = !this.ownerId && this.newFormOpen;
|
|
216
|
+
if (this.ownersLength <= 1) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
if (blankForm) {
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
else if (this.ownerId && !this.newFormOpen) {
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
componentWillLoad() {
|
|
229
|
+
this.formController = new FormController(identitySchema('owner', this.allowOptionalFields));
|
|
230
|
+
this.ownerId ? this.getData() : this.instantiateOwner({});
|
|
231
|
+
}
|
|
232
|
+
componentDidLoad() {
|
|
233
|
+
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
234
|
+
}
|
|
235
|
+
render() {
|
|
236
|
+
return (h("form", { key: 'b2e2aaced859260e9d2ef59bc3f8a0763d05872c', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2a93ddb4c945be0ec081ce31d6d9eff4b302d622' }, h("legend", { key: 'ea9859e55099e3f8263024d884edfb48b3666eaa', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'f646c1ecc544c358d87e701aba8e151fcb96c54e' }), h("div", { key: '874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0', class: "row gy-3" }, h("owner-form-inputs", { key: '866dbf0002ec1ac70d7942c6011c67f8cd144960', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '15d907270ecf3d16769cedea39ba279d7ffb0748', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '84c09ef594e7fa387e64a09014de81ed713cc765', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dafd97aa7b84644c9d011224a152ad7f99ce620', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'f1f31da4d147afcd01ef96acd01d63ee9497dd6b' }))));
|
|
237
|
+
}
|
|
238
|
+
static get watchers() { return {
|
|
239
|
+
"isLoading": ["loadingWatcher"]
|
|
240
|
+
}; }
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
const BusinessOwnerFormInputs = class {
|
|
244
|
+
constructor(hostRef) {
|
|
245
|
+
registerInstance(this, hostRef);
|
|
246
|
+
this.inputHandler = (name, value) => {
|
|
247
|
+
updateFormValues(this.formController, { [name]: value });
|
|
248
|
+
};
|
|
249
|
+
this.onAddressFormUpdate = (values) => {
|
|
250
|
+
updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
|
|
251
|
+
};
|
|
252
|
+
this.ownerDefaultValue = undefined;
|
|
253
|
+
this.errors = undefined;
|
|
254
|
+
this.formController = undefined;
|
|
255
|
+
}
|
|
256
|
+
render() {
|
|
257
|
+
return (h("div", { key: '6fcc165d4bc75b92403d9031ad98f05f6b1dcd34', class: 'row gy-3' }, h("div", { key: '74f1e42a13892e95497a99684ba9de64719edb72', class: 'col-12 col-md-6' }, h("form-control-text", { key: '29caea2b0b0a62822cc20c99e697f3db7c22a541', name: 'name', label: 'Full Name', defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '5b0f8da9a0512de70558baa9cb188b4d5e773dc2', class: 'col-12 col-md-4' }, h("form-control-text", { key: '5967094f115a64876f8dc943a273f5a22b193f1c', name: 'title', label: 'Title', defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), h("div", { key: '6c05fec9b87f8ba5e3be9ce74ef727a1e4b14905', class: 'col-12 col-md-6' }, h("form-control-text", { key: '8c5b2839b6de605915d8e7c14a0ba22d3f440bda', name: 'email', label: 'Email Address', defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: 'd7eae882aea84b8562e459e66bc1ba885c4be3c7', class: 'col-12 col-md-6' }, h("form-control-number-masked", { key: '2d6b33f47e4008745fd65c5ef3cb60dd92b85eba', name: 'phone', label: 'Phone Number', defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '92b825163aedf052bdb89721397da69c717e595d', class: 'col-12 col-md-4' }, h("form-control-date", { key: 'cd884b773ef0eb60effc61e8cfbf42b21620cd1c', name: 'dob_full', label: 'Birth Date', defaultValue: this.ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController) })), h("div", { key: '614ba65972946645ba5c7a299c00efd0e85abf5e', class: 'col-12 col-md-8' }, h("form-control-number-masked", { key: '7cd9fe7a1b56d351942a0b962f3c7227459406ae', name: 'identification_number', label: 'SSN', defaultValue: this.ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK })), h("div", { key: 'ce08f35a16de4b9be65377cde0a9daa5b4cbe876', class: 'col-12' }, h("justifi-identity-address-form", { key: '79a7f5e8c08fc57383c1975145a6b06bd4e615dd', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
|
|
258
|
+
}
|
|
259
|
+
;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export { BusinessOwnerForm as justifi_owner_form, BusinessOwnerFormCore as owner_form_core, BusinessOwnerFormInputs as owner_form_inputs };
|