@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
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-fb499e95.js');
|
|
6
|
+
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
7
|
+
const business_service = require('./business.service-f63650f5.js');
|
|
8
|
+
const index_esm = require('./index.esm-52757963.js');
|
|
9
|
+
const Business = require('./Business-aacbe893.js');
|
|
10
|
+
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
|
+
const payloadParsers = require('./payload-parsers-1cbc3b57.js');
|
|
12
|
+
const button = require('./button-3f400a66.js');
|
|
13
|
+
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
14
|
+
const inputHandlers = require('./input-handlers-cff032bb.js');
|
|
15
|
+
require('./ComponentError-233ac749.js');
|
|
16
|
+
require('./utils-7a478c37.js');
|
|
17
|
+
require('./config-ff2dda66.js');
|
|
18
|
+
require('./Api-3bc6e43f.js');
|
|
19
|
+
require('./helpers-602962eb.js');
|
|
20
|
+
require('./state-options-4fbcb48a.js');
|
|
21
|
+
require('./schema-validations-2733de42.js');
|
|
22
|
+
require('./business-form-options-582467fe.js');
|
|
23
|
+
|
|
24
|
+
const BusinessOwnerForm = class {
|
|
25
|
+
constructor(hostRef) {
|
|
26
|
+
index.registerInstance(this, hostRef);
|
|
27
|
+
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
28
|
+
this.getOwner = undefined;
|
|
29
|
+
this.patchOwner = undefined;
|
|
30
|
+
this.postOwner = undefined;
|
|
31
|
+
this.authToken = undefined;
|
|
32
|
+
this.ownerId = undefined;
|
|
33
|
+
this.businessId = undefined;
|
|
34
|
+
this.allowOptionalFields = undefined;
|
|
35
|
+
this.removeOwner = undefined;
|
|
36
|
+
this.newFormOpen = undefined;
|
|
37
|
+
this.ownersLength = undefined;
|
|
38
|
+
}
|
|
39
|
+
async validate() {
|
|
40
|
+
return this.coreComponent.validate();
|
|
41
|
+
}
|
|
42
|
+
async submit() {
|
|
43
|
+
return this.coreComponent.submit();
|
|
44
|
+
}
|
|
45
|
+
async validateAndSubmit({ onSuccess }) {
|
|
46
|
+
this.coreComponent.validateAndSubmit({ onSuccess });
|
|
47
|
+
}
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
this.initializeApi();
|
|
50
|
+
}
|
|
51
|
+
initializeApi() {
|
|
52
|
+
if (!this.authToken) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.getOwner = paymentProvisioningActions.makeGetIdentity({
|
|
56
|
+
authToken: this.authToken,
|
|
57
|
+
identityId: this.ownerId,
|
|
58
|
+
service: new business_service.IdentityService()
|
|
59
|
+
});
|
|
60
|
+
this.patchOwner = paymentProvisioningActions.makePatchIdentity({
|
|
61
|
+
authToken: this.authToken,
|
|
62
|
+
identityId: this.ownerId,
|
|
63
|
+
service: new business_service.IdentityService()
|
|
64
|
+
});
|
|
65
|
+
this.postOwner = paymentProvisioningActions.makePostIdentity({
|
|
66
|
+
authToken: this.authToken,
|
|
67
|
+
service: new business_service.IdentityService()
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return (index.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 }));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const BusinessOwnerFormCore = class {
|
|
76
|
+
loadingWatcher() {
|
|
77
|
+
this.formLoading.emit(this.isLoading);
|
|
78
|
+
}
|
|
79
|
+
constructor(hostRef) {
|
|
80
|
+
index.registerInstance(this, hostRef);
|
|
81
|
+
this.submitted = index.createEvent(this, "submitted", 7);
|
|
82
|
+
this.ownerSubmitted = index.createEvent(this, "ownerSubmitted", 7);
|
|
83
|
+
this.clickEvent = index.createEvent(this, "click-event", 7);
|
|
84
|
+
this.formLoading = index.createEvent(this, "formLoading", 7);
|
|
85
|
+
this.errorEvent = index.createEvent(this, "error-event", 7);
|
|
86
|
+
this.getData = () => {
|
|
87
|
+
this.isLoading = true;
|
|
88
|
+
this.getOwner({
|
|
89
|
+
onSuccess: (response) => {
|
|
90
|
+
this.instantiateOwner(response.data);
|
|
91
|
+
},
|
|
92
|
+
onError: ({ error, code, severity }) => {
|
|
93
|
+
this.errorEvent.emit({
|
|
94
|
+
message: error,
|
|
95
|
+
errorCode: code,
|
|
96
|
+
severity: severity
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
final: () => this.isLoading = false
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
this.sendData = () => {
|
|
103
|
+
this.isLoading = true;
|
|
104
|
+
return new Promise((resolve) => {
|
|
105
|
+
if (this.ownerId) {
|
|
106
|
+
this.patchOwner({
|
|
107
|
+
payload: this.payload,
|
|
108
|
+
onSuccess: (response) => {
|
|
109
|
+
this.submitted.emit({
|
|
110
|
+
data: response,
|
|
111
|
+
metadata: { ownerID: response.data.id }
|
|
112
|
+
});
|
|
113
|
+
this.ownerSubmitted.emit({ id: response.data.id });
|
|
114
|
+
this.instantiateOwner(response.data);
|
|
115
|
+
resolve(true);
|
|
116
|
+
},
|
|
117
|
+
onError: ({ error, code, severity }) => {
|
|
118
|
+
this.submitted.emit({ data: { error } });
|
|
119
|
+
this.errorEvent.emit({
|
|
120
|
+
message: error,
|
|
121
|
+
errorCode: code,
|
|
122
|
+
severity: severity
|
|
123
|
+
});
|
|
124
|
+
resolve(false);
|
|
125
|
+
},
|
|
126
|
+
final: () => this.isLoading = false
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
this.postOwner({
|
|
131
|
+
payload: this.payload,
|
|
132
|
+
onSuccess: (response) => {
|
|
133
|
+
this.submitted.emit({
|
|
134
|
+
data: response,
|
|
135
|
+
metadata: { ownerID: response.data.id }
|
|
136
|
+
});
|
|
137
|
+
this.ownerSubmitted.emit({ id: response.data.id });
|
|
138
|
+
this.instantiateOwner(response.data);
|
|
139
|
+
resolve(true);
|
|
140
|
+
},
|
|
141
|
+
onError: ({ error, code, severity }) => {
|
|
142
|
+
this.submitted.emit({ data: { error } });
|
|
143
|
+
this.errorEvent.emit({
|
|
144
|
+
message: error,
|
|
145
|
+
errorCode: code,
|
|
146
|
+
severity: severity
|
|
147
|
+
});
|
|
148
|
+
resolve(false);
|
|
149
|
+
},
|
|
150
|
+
final: () => this.isLoading = false
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
this.instantiateOwner = async (data) => {
|
|
156
|
+
this.owner = Object.assign({}, new Business.Owner(data));
|
|
157
|
+
await this.formController.setInitialValues(this.owner);
|
|
158
|
+
};
|
|
159
|
+
this.handleAddOwner = () => {
|
|
160
|
+
const eventName = this.ownerId ? businessFormTypes.BusinessFormClickActions.updateOwner : businessFormTypes.BusinessFormClickActions.addOwner;
|
|
161
|
+
this.clickEvent.emit({ name: eventName });
|
|
162
|
+
};
|
|
163
|
+
this.handleRemoveOwner = () => {
|
|
164
|
+
this.removeOwner(this.ownerId);
|
|
165
|
+
this.clickEvent.emit({ name: businessFormTypes.BusinessFormClickActions.removeOwner });
|
|
166
|
+
};
|
|
167
|
+
this.isLoading = false;
|
|
168
|
+
this.formController = undefined;
|
|
169
|
+
this.errors = {};
|
|
170
|
+
this.owner = {};
|
|
171
|
+
this.ownerId = undefined;
|
|
172
|
+
this.businessId = undefined;
|
|
173
|
+
this.getOwner = undefined;
|
|
174
|
+
this.patchOwner = undefined;
|
|
175
|
+
this.postOwner = undefined;
|
|
176
|
+
this.allowOptionalFields = undefined;
|
|
177
|
+
this.removeOwner = undefined;
|
|
178
|
+
this.newFormOpen = undefined;
|
|
179
|
+
this.ownersLength = undefined;
|
|
180
|
+
this.validate = this.validate.bind(this);
|
|
181
|
+
this.submit = this.submit.bind(this);
|
|
182
|
+
this.validateAndSubmit = this.validateAndSubmit.bind(this);
|
|
183
|
+
}
|
|
184
|
+
async returnOwnerData() {
|
|
185
|
+
return this.ownerId;
|
|
186
|
+
}
|
|
187
|
+
async validate() {
|
|
188
|
+
return this.formController.validate();
|
|
189
|
+
}
|
|
190
|
+
async submit() {
|
|
191
|
+
const isValid = await this.validate();
|
|
192
|
+
if (isValid) {
|
|
193
|
+
return this.sendData();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
async validateAndSubmit(event) {
|
|
197
|
+
event.preventDefault();
|
|
198
|
+
const isValid = await this.validate();
|
|
199
|
+
if (isValid) {
|
|
200
|
+
this.submit();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
get payload() {
|
|
204
|
+
let formValues = payloadParsers.parseIdentityInfo(this.formController.values.getValue());
|
|
205
|
+
if (this.ownerId) {
|
|
206
|
+
return JSON.stringify(formValues);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return JSON.stringify(Object.assign(Object.assign({}, formValues), { business_id: this.businessId }));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
get formTitle() {
|
|
213
|
+
return this.ownerId ? 'Edit Business Owner' : 'Add Business Owner';
|
|
214
|
+
}
|
|
215
|
+
get submitButtonText() {
|
|
216
|
+
return this.ownerId ? 'Update' : 'Add';
|
|
217
|
+
}
|
|
218
|
+
get showRemoveButton() {
|
|
219
|
+
const blankForm = !this.ownerId && this.newFormOpen;
|
|
220
|
+
if (this.ownersLength <= 1) {
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
if (blankForm) {
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
else if (this.ownerId && !this.newFormOpen) {
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
componentWillLoad() {
|
|
233
|
+
this.formController = new index_esm.FormController(payloadParsers.identitySchema('owner', this.allowOptionalFields));
|
|
234
|
+
this.ownerId ? this.getData() : this.instantiateOwner({});
|
|
235
|
+
}
|
|
236
|
+
componentDidLoad() {
|
|
237
|
+
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
238
|
+
}
|
|
239
|
+
render() {
|
|
240
|
+
return (index.h("form", { key: 'b2e2aaced859260e9d2ef59bc3f8a0763d05872c', onSubmit: this.validateAndSubmit }, index.h("fieldset", { key: '2a93ddb4c945be0ec081ce31d6d9eff4b302d622' }, index.h("legend", { key: 'ea9859e55099e3f8263024d884edfb48b3666eaa', class: "fw-semibold fs-5" }, this.formTitle), index.h("br", { key: 'f646c1ecc544c358d87e701aba8e151fcb96c54e' }), index.h("div", { key: '874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0', class: "row gy-3" }, index.h("owner-form-inputs", { key: '866dbf0002ec1ac70d7942c6011c67f8cd144960', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), index.h("div", { key: '15d907270ecf3d16769cedea39ba279d7ffb0748', class: "d-flex gap-2 justify-content-start" }, index.h(button.Button, { key: '84c09ef594e7fa387e64a09014de81ed713cc765', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), index.h(button.Button, { key: '1dafd97aa7b84644c9d011224a152ad7f99ce620', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), index.h("hr", { key: 'f1f31da4d147afcd01ef96acd01d63ee9497dd6b' }))));
|
|
241
|
+
}
|
|
242
|
+
static get watchers() { return {
|
|
243
|
+
"isLoading": ["loadingWatcher"]
|
|
244
|
+
}; }
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
const BusinessOwnerFormInputs = class {
|
|
248
|
+
constructor(hostRef) {
|
|
249
|
+
index.registerInstance(this, hostRef);
|
|
250
|
+
this.inputHandler = (name, value) => {
|
|
251
|
+
inputHandlers.updateFormValues(this.formController, { [name]: value });
|
|
252
|
+
};
|
|
253
|
+
this.onAddressFormUpdate = (values) => {
|
|
254
|
+
inputHandlers.updateAddressFormValues(this.formController, Object.assign(Object.assign({}, this.formController.values.getValue().address), values));
|
|
255
|
+
};
|
|
256
|
+
this.ownerDefaultValue = undefined;
|
|
257
|
+
this.errors = undefined;
|
|
258
|
+
this.formController = undefined;
|
|
259
|
+
}
|
|
260
|
+
render() {
|
|
261
|
+
return (index.h("div", { key: '6fcc165d4bc75b92403d9031ad98f05f6b1dcd34', class: 'row gy-3' }, index.h("div", { key: '74f1e42a13892e95497a99684ba9de64719edb72', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: '29caea2b0b0a62822cc20c99e697f3db7c22a541', name: 'name', label: 'Full Name', defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), index.h("div", { key: '5b0f8da9a0512de70558baa9cb188b4d5e773dc2', class: 'col-12 col-md-4' }, index.h("form-control-text", { key: '5967094f115a64876f8dc943a273f5a22b193f1c', name: 'title', label: 'Title', defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler })), index.h("div", { key: '6c05fec9b87f8ba5e3be9ce74ef727a1e4b14905', class: 'col-12 col-md-6' }, index.h("form-control-text", { key: '8c5b2839b6de605915d8e7c14a0ba22d3f440bda', name: 'email', label: 'Email Address', defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), index.h("div", { key: 'd7eae882aea84b8562e459e66bc1ba885c4be3c7', class: 'col-12 col-md-6' }, index.h("form-control-number-masked", { key: '2d6b33f47e4008745fd65c5ef3cb60dd92b85eba', name: 'phone', label: 'Phone Number', defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: formInputMasks.PHONE_MASKS.US })), index.h("div", { key: '92b825163aedf052bdb89721397da69c717e595d', class: 'col-12 col-md-4' }, index.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) => inputHandlers.updateDateOfBirthFormValues(e, this.formController) })), index.h("div", { key: '614ba65972946645ba5c7a299c00efd0e85abf5e', class: 'col-12 col-md-8' }, index.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: formInputMasks.SSN_MASK })), index.h("div", { key: 'ce08f35a16de4b9be65377cde0a9daa5b4cbe876', class: 'col-12' }, index.h("justifi-identity-address-form", { key: '79a7f5e8c08fc57383c1975145a6b06bd4e615dd', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
|
|
262
|
+
}
|
|
263
|
+
;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
exports.justifi_owner_form = BusinessOwnerForm;
|
|
267
|
+
exports.owner_form_core = BusinessOwnerFormCore;
|
|
268
|
+
exports.owner_form_inputs = BusinessOwnerFormInputs;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-0a64f9cd.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
|
-
const Payment = require('./Payment-
|
|
8
|
+
const Payment = require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-ff013cbc.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
15
|
require('./config-ff2dda66.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-cb0f8cb1.js');
|
|
17
17
|
|
|
18
18
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
19
19
|
var _a;
|
|
@@ -4,15 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
|
-
const Payment = require('./Payment-
|
|
7
|
+
const Payment = require('./Payment-1a8a8ca6.js');
|
|
8
8
|
require('./Payout-a2dd7b01.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-89d86e29.js');
|
|
10
10
|
const config = require('./config-ff2dda66.js');
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils$1 = require('./utils-7a478c37.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
14
|
-
const
|
|
15
|
-
require('./
|
|
13
|
+
const Analytics = require('./Analytics-ff013cbc.js');
|
|
14
|
+
const button = require('./button-3f400a66.js');
|
|
15
|
+
const styledHost = require('./styled-host-cc053016.js');
|
|
16
|
+
require('./package-cb0f8cb1.js');
|
|
16
17
|
require('./Api-3bc6e43f.js');
|
|
17
18
|
|
|
18
19
|
const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
|
|
@@ -121,17 +122,15 @@ const PaymentForm = class {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
render() {
|
|
124
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
125
|
+
return (index.h(styledHost.StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, index.h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, index.h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, index.h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
|
|
125
126
|
if (el) {
|
|
126
127
|
this.paymentMethodFormRef = el;
|
|
127
128
|
}
|
|
128
|
-
} })), index.h("div", { key: '
|
|
129
|
+
} })), index.h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, index.h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
|
|
129
130
|
if (el) {
|
|
130
131
|
this.billingFormRef = el;
|
|
131
132
|
}
|
|
132
|
-
} })), index.h("slot", { key: '
|
|
133
|
-
index.h("div", { class: "spinner-border spinner-border-sm", role: "status" }, index.h("span", { class: "visually-hidden" }, "Loading...")) :
|
|
134
|
-
this.submitButtonText || 'Submit')))));
|
|
133
|
+
} })), index.h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), index.h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, index.h(button.Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
|
|
135
134
|
}
|
|
136
135
|
};
|
|
137
136
|
PaymentForm.style = JustifiPaymentFormStyle0;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const _package = require('./package-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const _package = require('./package-cb0f8cb1.js');
|
|
7
|
+
const utils = require('./utils-89d86e29.js');
|
|
8
8
|
|
|
9
9
|
var iframeResizer = {exports: {}};
|
|
10
10
|
|
|
@@ -1615,6 +1615,7 @@ const PaymentMethodForm = class {
|
|
|
1615
1615
|
const eventTypeMessage = MessageEventType[this.paymentMethodFormType];
|
|
1616
1616
|
if (eventType === eventTypeMessage.ready) {
|
|
1617
1617
|
this.paymentMethodFormReady.emit(data);
|
|
1618
|
+
this.sendStyleOverrides();
|
|
1618
1619
|
}
|
|
1619
1620
|
else if (eventType === eventTypeMessage.tokenize) {
|
|
1620
1621
|
this.paymentMethodFormTokenized.emit(data);
|
|
@@ -1672,14 +1673,13 @@ const PaymentMethodForm = class {
|
|
|
1672
1673
|
(_a = this.frameService) === null || _a === void 0 ? void 0 : _a.addMessageListener(this.dispatchMessageEvent);
|
|
1673
1674
|
}
|
|
1674
1675
|
render() {
|
|
1675
|
-
return (index.h(index.Host, { key: '
|
|
1676
|
+
return (index.h(index.Host, { key: '10987c92745fbff8bb85367db69b76e2bc786c88' }, index.h("iframe", { key: '0622dd0201a04a3c918fd3d175d2a29f24609759', id: `justifi-payment-method-form-${this.paymentMethodFormType}`, src: this.getIframeSrc(), ref: el => {
|
|
1676
1677
|
this.iframeElement = el;
|
|
1677
1678
|
this.initializeFrameCommunicationService();
|
|
1678
1679
|
}, onLoad: () => {
|
|
1679
1680
|
iFrameResize({
|
|
1680
1681
|
scrollbars: false,
|
|
1681
1682
|
}, this.iframeElement);
|
|
1682
|
-
this.sendStyleOverrides();
|
|
1683
1683
|
} })));
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
|
-
const Payment = require('./Payment-
|
|
7
|
+
const Payment = require('./Payment-1a8a8ca6.js');
|
|
8
8
|
require('./Payout-a2dd7b01.js');
|
|
9
9
|
|
|
10
10
|
const paymentMethodSelectorCss = ":host{display:block}.jfi-btn-radio+.jfi-btn-radio-label{color:var(--jfi-radio-button-color);background-color:var(--jfi-radio-button-background-color);border-color:var(--jfi-radio-button-border-color);padding:var(--jfi-radio-button-padding);font-size:var(--jfi-radio-button-font-size)}.jfi-btn-radio:focus+.jfi-btn-radio-label{box-shadow:var(--jfi-box-shadow-focus)}.jfi-btn-radio+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-hover);border-color:var(--jfi-radio-button-border-color-hover);background-color:var(--jfi-radio-button-background-color-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label:hover{color:var(--jfi-radio-button-color-selected-hover);border-color:var(--jfi-radio-button-border-color-selected-hover);background-color:var(--jfi-radio-button-background-color-selected-hover)}.jfi-btn-radio:checked+.jfi-btn-radio-label{color:var(--jfi-radio-button-color-selected);background-color:var(--jfi-radio-button-background-color-selected);border-color:var(--jfi-radio-button-border-color-selected)}.jfi-btn-radio-group{font-family:var(--jfi-layout-font-family);display:inline-flex;width:var(--jfi-radio-button-group-width)}";
|
|
@@ -25,7 +25,7 @@ const PaymentMethodSelector = class {
|
|
|
25
25
|
this.paymentMethodSelected.emit(event.target.value);
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (index.h("div", { key: '
|
|
28
|
+
return (index.h("div", { key: 'a0cd592094f7f69955469de84addde1d4bc5af4d', class: "btn-group jfi-btn-radio-group", role: "group", "aria-label": "Radio toggle group for payment method" }, this.paymentMethodTypes.map((paymentMethodType) => (index.h(index.Fragment, null, index.h("input", { id: paymentMethodType, type: "radio", name: "paymentMethodType", value: paymentMethodType, onChange: (event) => this.onChangeHandler(event), checked: this.selectedPaymentMethodType === paymentMethodType, class: "btn-check jfi-btn-radio" }), index.h("label", { htmlFor: paymentMethodType, class: "btn btn-outline-primary jfi-btn-radio-label" }, PaymentMethodLabels[paymentMethodType]))))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
PaymentMethodSelector.style = JustifiPaymentMethodSelectorStyle0;
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const businessFormTypes = require('./business-form-types-
|
|
6
|
+
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const helpers = require('./helpers-602962eb.js');
|
|
9
|
-
const styledHost = require('./styled-host-
|
|
9
|
+
const styledHost = require('./styled-host-cc053016.js');
|
|
10
10
|
require('./state-options-4fbcb48a.js');
|
|
11
11
|
|
|
12
|
-
const paymentProvisioningCss = ":host{display:block}.btn.btn-secondary{border-radius:var(--jfi-submit-button-border-radius)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}.row-border{border-bottom:1px solid #dee2e6}.row-border.first-row{border-top:1px solid #dee2e6}";
|
|
13
|
-
const JustifiPaymentProvisioningCoreStyle0 = paymentProvisioningCss;
|
|
14
|
-
|
|
15
12
|
const PaymentProvisioningCore = class {
|
|
16
13
|
constructor(hostRef) {
|
|
17
14
|
index.registerInstance(this, hostRef);
|
|
@@ -55,9 +52,6 @@ const PaymentProvisioningCore = class {
|
|
|
55
52
|
});
|
|
56
53
|
};
|
|
57
54
|
this.refs = [];
|
|
58
|
-
this.handleFormLoading = (e) => {
|
|
59
|
-
this.formLoading = e.detail;
|
|
60
|
-
};
|
|
61
55
|
this.incrementSteps = () => {
|
|
62
56
|
if (this.currentStep < this.totalSteps) {
|
|
63
57
|
return this.currentStep++;
|
|
@@ -74,7 +68,7 @@ const PaymentProvisioningCore = class {
|
|
|
74
68
|
const currentStep = this.refs[this.currentStep];
|
|
75
69
|
currentStep.validateAndSubmit({ onSuccess: this.incrementSteps });
|
|
76
70
|
};
|
|
77
|
-
this.
|
|
71
|
+
this.loading = false;
|
|
78
72
|
this.businessProvisioned = false;
|
|
79
73
|
this.currentStep = 0;
|
|
80
74
|
this.errorMessage = undefined;
|
|
@@ -93,7 +87,7 @@ const PaymentProvisioningCore = class {
|
|
|
93
87
|
return `entities/business/${this.businessId}`;
|
|
94
88
|
}
|
|
95
89
|
get formDisabled() {
|
|
96
|
-
return this.
|
|
90
|
+
return this.loading || this.businessProvisioned;
|
|
97
91
|
}
|
|
98
92
|
get totalSteps() {
|
|
99
93
|
return this.refs.length - 1;
|
|
@@ -101,10 +95,12 @@ const PaymentProvisioningCore = class {
|
|
|
101
95
|
get stepCounter() {
|
|
102
96
|
return `${this.currentStep + 1} of ${this.totalSteps + 1}`;
|
|
103
97
|
}
|
|
98
|
+
handleFormLoading(event) {
|
|
99
|
+
this.loading = event.detail;
|
|
100
|
+
}
|
|
104
101
|
render() {
|
|
105
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
102
|
+
return (index.h(styledHost.StyledHost, { key: '80f2730a6a4e273391888b086c3633a3dec012b8', exportparts: 'label,input,input-invalid' }, index.h("div", { key: 'b4e7be2fed14b404ee7bcbe42c3c1c54bb78fdb6', class: 'row gap-3' }, index.h("h1", { key: 'f477beb7934a94a74dfc6b8a9c18cc54a720f70e' }, this.formTitle), index.h("justifi-payment-provisioning-form-steps", { key: 'e74aa3a01cfe7550f4917d28ccda1aca211d9394', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading, onFormCompleted: () => this.postProvisioningData() }), index.h("div", { key: '26a585ec4b6b677cb01ac17696269168887f4c76', class: 'd-flex justify-content-between align-items-center' }, index.h("div", { key: 'ca5ddc176f8c2eb3315620076b401e47f45039bd', class: 'd-flex align-items-center' }, this.stepCounter), index.h("justifi-payment-provisioning-form-buttons", { key: '8299387bf859b33c829d29d66947c3c053ffa53c', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
|
|
106
103
|
}
|
|
107
104
|
};
|
|
108
|
-
PaymentProvisioningCore.style = JustifiPaymentProvisioningCoreStyle0;
|
|
109
105
|
|
|
110
106
|
exports.justifi_payment_provisioning_core = PaymentProvisioningCore;
|
|
@@ -3,66 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const Analytics = require('./Analytics-
|
|
6
|
+
const Analytics = require('./Analytics-ff013cbc.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
|
-
const
|
|
9
|
-
const business_service = require('./business.service-
|
|
8
|
+
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
9
|
+
const business_service = require('./business.service-f63650f5.js');
|
|
10
10
|
const config = require('./config-ff2dda66.js');
|
|
11
11
|
const Api = require('./Api-3bc6e43f.js');
|
|
12
|
-
require('./package-
|
|
13
|
-
|
|
14
|
-
const makeGetBusiness = ({ authToken, businessId, service }) => async ({ onSuccess, onError }) => {
|
|
15
|
-
var _a;
|
|
16
|
-
try {
|
|
17
|
-
const response = await service.fetchBusiness(businessId, authToken);
|
|
18
|
-
if (!response.error) {
|
|
19
|
-
onSuccess(response);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
const responseError = utils.getErrorMessage(response.error);
|
|
23
|
-
const code = utils.getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
24
|
-
return onError({
|
|
25
|
-
error: responseError,
|
|
26
|
-
code,
|
|
27
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (error) {
|
|
32
|
-
const code = utils.getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
33
|
-
return onError({
|
|
34
|
-
error: error.message || error,
|
|
35
|
-
code,
|
|
36
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const makePostProvisioning = ({ authToken, businessId, product, service }) => async ({ onSuccess, onError }) => {
|
|
41
|
-
var _a;
|
|
42
|
-
try {
|
|
43
|
-
const response = await service.postProvisioning(authToken, businessId, product);
|
|
44
|
-
if (!response.error) {
|
|
45
|
-
onSuccess(response);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
const responseError = utils.getErrorMessage(response.error);
|
|
49
|
-
const code = utils.getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
50
|
-
return onError({
|
|
51
|
-
error: responseError,
|
|
52
|
-
code,
|
|
53
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
const code = utils.getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
59
|
-
return onError({
|
|
60
|
-
error: error.message || error,
|
|
61
|
-
code,
|
|
62
|
-
severity: ComponentError.ComponentErrorSeverity.ERROR,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
};
|
|
12
|
+
require('./package-cb0f8cb1.js');
|
|
13
|
+
require('./utils-7a478c37.js');
|
|
66
14
|
|
|
67
15
|
class ProvisionService {
|
|
68
16
|
async postProvisioning(authToken, businessId, product) {
|
|
@@ -98,12 +46,12 @@ const PaymentProvisioning = class {
|
|
|
98
46
|
}
|
|
99
47
|
initializeApi() {
|
|
100
48
|
if (this.authToken && this.businessId) {
|
|
101
|
-
this.getBusiness = makeGetBusiness({
|
|
49
|
+
this.getBusiness = paymentProvisioningActions.makeGetBusiness({
|
|
102
50
|
authToken: this.authToken,
|
|
103
51
|
businessId: this.businessId,
|
|
104
52
|
service: new business_service.BusinessService()
|
|
105
53
|
});
|
|
106
|
-
this.postProvisioning = makePostProvisioning({
|
|
54
|
+
this.postProvisioning = paymentProvisioningActions.makePostProvisioning({
|
|
107
55
|
authToken: this.authToken,
|
|
108
56
|
businessId: this.businessId,
|
|
109
57
|
product: 'payment',
|
|
@@ -119,7 +67,7 @@ const PaymentProvisioning = class {
|
|
|
119
67
|
}
|
|
120
68
|
}
|
|
121
69
|
render() {
|
|
122
|
-
return (index.h("justifi-payment-provisioning-core", { key: '
|
|
70
|
+
return (index.h("justifi-payment-provisioning-core", { key: 'a93ee23fabf4bdeb381e924bfdf684ddd183075a', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
|
|
123
71
|
}
|
|
124
72
|
static get watchers() { return {
|
|
125
73
|
"authToken": ["propChanged"],
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const payment_service = require('./payment.service-
|
|
6
|
+
const payment_service = require('./payment.service-0a64f9cd.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
|
-
const Payment = require('./Payment-
|
|
8
|
+
const Payment = require('./Payment-1a8a8ca6.js');
|
|
9
9
|
require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-ff013cbc.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
15
|
require('./config-ff2dda66.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-cb0f8cb1.js');
|
|
17
17
|
|
|
18
18
|
const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
19
19
|
var _a, _b;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const getPayoutCsv = require('./get-payout-csv-
|
|
6
|
+
const getPayoutCsv = require('./get-payout-csv-f3aee6d0.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
|
-
require('./Payment-
|
|
8
|
+
require('./Payment-1a8a8ca6.js');
|
|
9
9
|
const Payout = require('./Payout-a2dd7b01.js');
|
|
10
10
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
11
|
const utils = require('./utils-7a478c37.js');
|
|
12
12
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
13
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-ff013cbc.js');
|
|
14
14
|
require('./Api-3bc6e43f.js');
|
|
15
15
|
require('./config-ff2dda66.js');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-cb0f8cb1.js');
|
|
17
17
|
|
|
18
18
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
19
19
|
var _a;
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const exportedParts = require('./exported-parts-b18c68c2.js');
|
|
7
|
-
const getPayoutCsv = require('./get-payout-csv-
|
|
7
|
+
const getPayoutCsv = require('./get-payout-csv-f3aee6d0.js');
|
|
8
8
|
require('./Pagination-0da8f095.js');
|
|
9
|
-
require('./Payment-
|
|
9
|
+
require('./Payment-1a8a8ca6.js');
|
|
10
10
|
const Payout = require('./Payout-a2dd7b01.js');
|
|
11
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
12
12
|
const utils = require('./utils-7a478c37.js');
|
|
13
13
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
14
|
-
const Analytics = require('./Analytics-
|
|
14
|
+
const Analytics = require('./Analytics-ff013cbc.js');
|
|
15
15
|
require('./Api-3bc6e43f.js');
|
|
16
16
|
require('./config-ff2dda66.js');
|
|
17
|
-
require('./package-
|
|
17
|
+
require('./package-cb0f8cb1.js');
|
|
18
18
|
|
|
19
19
|
const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
|
|
20
20
|
var _a, _b;
|