@justifi/webcomponents 4.19.3-rc-2 → 4.20.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-adc90fc6.js → Analytics-03981aad.js} +4 -3
- package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
- package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
- package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
- package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
- package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
- package/dist/cjs/check-pkg-version-89d6d146.js +24 -0
- package/dist/cjs/config-05767cba.js +15 -0
- package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
- package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
- package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +8 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +17 -14
- package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -7
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -4
- package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payment-form.cjs.entry.js +11 -8
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -6
- package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +7 -4
- package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -4
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-22d30c5d.js → package-7fdd14b9.js} +4 -2
- package/dist/cjs/payment-details-core.cjs.entry.js +2 -2
- package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
- package/dist/cjs/styled-host-9e0b67b3.js +14 -0
- package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
- package/dist/cjs/utils-f8a6962c.js +25 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Api.js +3 -3
- package/dist/collection/api/Business.js +66 -7
- package/dist/collection/api/Identity.js +39 -3
- package/dist/collection/api/services/analytics.service.js +2 -1
- package/dist/collection/api/services/business.service.js +6 -5
- package/dist/collection/api/services/checkout.service.js +3 -2
- package/dist/collection/api/services/insurance.service.js +3 -2
- package/dist/collection/api/services/payment.service.js +3 -2
- package/dist/collection/api/services/payout.service.js +4 -3
- package/dist/collection/api/services/provision.service.js +2 -1
- package/dist/collection/api/services/reports.service.js +2 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
- package/dist/collection/components/business-details/business-details.js +2 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +7 -5
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
- package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
- package/dist/collection/components/card-form/card-form.js +4 -3
- package/dist/collection/components/checkout/checkout-core.js +4 -4
- package/dist/collection/components/checkout/checkout.js +4 -2
- package/dist/collection/components/checkout/new-payment-method.js +4 -6
- package/dist/collection/components/checkout/payment-method-options.js +4 -3
- package/dist/collection/components/checkout/saved-payment-method.js +4 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
- package/dist/collection/components/form/form-control-date.js +26 -28
- package/dist/collection/components/form/form-control-select.js +45 -45
- package/dist/collection/components/form/form-control-text.js +34 -34
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
- package/dist/collection/components/payment-details/payment-details.js +2 -0
- package/dist/collection/components/payment-form/payment-form.js +6 -3
- package/dist/collection/components/payments-list/payments-list-core.js +14 -9
- package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
- package/dist/collection/components/payments-list/payments-list.js +2 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +2 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +2 -0
- package/dist/collection/components/refund-form/refund-form.js +3 -2
- package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
- package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
- package/dist/collection/ui-components/filters/utils.js +20 -0
- package/dist/collection/utils/check-pkg-version.js +19 -0
- package/dist/config.js +11 -0
- package/dist/docs.json +531 -27
- package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-3103f8e9.js} +4 -3
- package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
- package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
- package/dist/esm/additional-questions-details_5.entry.js +1 -1
- package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
- package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
- package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
- package/dist/esm/check-pkg-version-44e6ad15.js +22 -0
- package/dist/esm/config-27764a9d.js +13 -0
- package/dist/esm/custom-popper.entry.js +1890 -0
- package/dist/esm/form-alert_5.entry.js +2 -2
- package/dist/esm/form-control-checkbox_9.entry.js +21 -21
- package/dist/esm/form-control-date_3.entry.js +4 -4
- package/dist/esm/form-control-error-text_4.entry.js +9 -9
- package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +1 -1
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
- package/dist/esm/justifi-bank-account-form.entry.js +6 -5
- package/dist/esm/justifi-billing-form_2.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +8 -5
- package/dist/esm/justifi-business-form.entry.js +16 -13
- package/dist/esm/justifi-card-form.entry.js +6 -5
- package/dist/esm/justifi-checkout-core.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +10 -7
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +7 -4
- package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
- package/dist/esm/justifi-owner-form_3.entry.js +11 -10
- package/dist/esm/justifi-payment-details.entry.js +7 -4
- package/dist/esm/justifi-payment-form.entry.js +11 -8
- package/dist/esm/justifi-payment-method-form.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +9 -6
- package/dist/esm/justifi-payments-list.entry.js +7 -4
- package/dist/esm/justifi-payout-details.entry.js +7 -4
- package/dist/esm/justifi-payouts-list.entry.js +7 -4
- package/dist/esm/justifi-refund-form.entry.js +5 -4
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -6
- package/dist/esm/loader.js +1 -1
- package/dist/{webcomponents/p-2e8f4937.js → esm/package-0e3cc41e.js} +4 -2
- package/dist/esm/payment-details-core.entry.js +2 -2
- package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
- package/dist/esm/payments-list-core.entry.js +16 -11
- package/dist/esm/payments-list-filters_2.entry.js +17261 -0
- package/dist/esm/payout-details-core.entry.js +3 -3
- package/dist/esm/payouts-list-core.entry.js +4 -4
- package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
- package/dist/esm/styled-host-3171ae1f.js +12 -0
- package/dist/esm/utils-3a4d8f3a.js +22 -0
- package/dist/{webcomponents/p-83125497.js → esm/utils-e66d8bca.js} +1 -16
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Analytics.js +2 -1
- package/dist/module/Api.js +3 -3
- package/dist/module/Business.js +104 -9
- package/dist/module/business-additional-questions-form-step-core.js +3 -3
- package/dist/module/business-bank-account-form-step.js +4 -3
- package/dist/module/business-core-info-form-step-core.js +3 -5
- package/dist/module/business-document-upload-form-step.js +4 -3
- package/dist/module/business-document-upload-input-group.js +1 -1
- package/dist/module/business-documents-on-file.js +1 -1
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-owners-form-step-core.js +3 -3
- package/dist/module/business-representative-form-step-core.js +3 -4
- package/dist/module/business-terms-conditions-form-step.js +4 -3
- package/dist/module/business.service.js +6 -5
- package/dist/module/check-pkg-version.js +22 -0
- package/dist/module/checkout-core.js +3 -3
- package/dist/module/config.js +13 -0
- package/dist/module/custom-popper.d.ts +11 -0
- package/dist/module/custom-popper.js +6 -0
- package/dist/module/custom-popper2.js +1912 -0
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-select2.js +9 -9
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/get-payout-csv.js +4 -3
- package/dist/module/justifi-bank-account-form.js +3 -2
- package/dist/module/justifi-business-details.js +2 -0
- package/dist/module/justifi-business-form.js +7 -5
- package/dist/module/justifi-card-form.js +3 -2
- package/dist/module/justifi-checkout.js +7 -4
- package/dist/module/justifi-gross-payment-chart.js +4 -1
- package/dist/module/justifi-payment-details.js +2 -0
- package/dist/module/justifi-payment-form.js +6 -3
- package/dist/module/justifi-payment-provisioning.js +5 -2
- package/dist/module/justifi-payments-list.js +42 -10
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payouts-list.js +2 -0
- package/dist/module/justifi-refund-form.js +3 -2
- package/dist/module/justifi-season-interruption-insurance.js +6 -3
- package/dist/module/legal-address-form-step-core.js +3 -4
- package/dist/module/new-payment-method.js +3 -5
- package/dist/module/owner-form-core2.js +4 -5
- package/dist/module/package.js +4 -2
- package/dist/module/payment-details-core2.js +1 -1
- package/dist/module/payment-method-options.js +3 -2
- package/dist/module/payment.service.js +3 -2
- package/dist/module/payments-list-core2.js +52 -18
- package/dist/module/payments-list-filters.d.ts +11 -0
- package/dist/module/payments-list-filters.js +6 -0
- package/dist/module/payments-list-filters2.js +17294 -0
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +3 -3
- package/dist/module/saved-payment-method.js +4 -3
- package/dist/module/sezzle-payment-method.js +3 -2
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu.d.ts +11 -0
- package/dist/module/table-filters-menu.js +6 -0
- package/dist/module/table-filters-menu2.js +80 -0
- package/dist/module/utils2.js +1 -16
- package/dist/types/api/Business.d.ts +87 -1
- package/dist/types/api/Identity.d.ts +45 -1
- package/dist/types/api/Payment.d.ts +8 -0
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
- package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
- package/dist/types/components/form/form-control-date.d.ts +4 -4
- package/dist/types/components/form/form-control-select.d.ts +6 -6
- package/dist/types/components/form/form-control-text.d.ts +4 -4
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
- package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
- package/dist/types/components.d.ts +89 -10
- package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
- package/dist/types/ui-components/filters/utils.d.ts +2 -0
- package/dist/types/utils/check-pkg-version.d.ts +1 -0
- package/dist/webcomponents/index.esm.js +0 -1
- package/dist/webcomponents/p-056e75be.entry.js +1 -0
- package/dist/webcomponents/p-05718341.entry.js +1 -0
- package/dist/webcomponents/p-08b0fb31.js +1 -41
- package/dist/webcomponents/p-0de026dd.entry.js +1 -0
- package/dist/webcomponents/p-0e84986e.entry.js +10 -0
- package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
- package/dist/webcomponents/p-14c91ffd.js +1 -20
- package/dist/webcomponents/p-1612894d.js +1 -0
- package/dist/webcomponents/p-1815a43b.js +1 -0
- package/dist/webcomponents/p-1ad5995e.js +1 -3599
- package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
- package/dist/webcomponents/p-1ff8810b.js +1 -29
- package/dist/webcomponents/p-20dafb46.entry.js +1 -0
- package/dist/webcomponents/p-2338affa.js +1 -213
- package/dist/webcomponents/p-277aee05.js +1 -0
- package/dist/webcomponents/p-2b6c9c4f.js +1 -7
- package/dist/webcomponents/p-2c51d29f.js +1 -0
- package/dist/webcomponents/p-2eab3c90.js +1 -3052
- package/dist/webcomponents/p-3a1f19f3.entry.js +1 -0
- package/dist/webcomponents/p-3c7fac29.entry.js +1 -0
- package/dist/webcomponents/p-401d6607.js +1 -0
- package/dist/webcomponents/p-428e9b64.entry.js +1 -0
- package/dist/webcomponents/p-430f81c6.entry.js +1 -0
- package/dist/webcomponents/p-437f9114.js +1 -0
- package/dist/webcomponents/p-44055818.js +1 -0
- package/dist/webcomponents/p-4628cc9b.entry.js +1 -0
- package/dist/webcomponents/p-4cc9df76.entry.js +1 -0
- package/dist/webcomponents/p-5022f21c.js +1 -0
- package/dist/webcomponents/p-525db3e8.js +1 -22
- package/dist/webcomponents/p-55182a59.js +1 -0
- package/dist/webcomponents/p-5540a47c.entry.js +1 -0
- package/dist/webcomponents/p-56f6ce4c.js +1 -10
- package/dist/webcomponents/p-570a0f02.entry.js +1 -0
- package/dist/webcomponents/p-5968ff8a.js +1 -178
- package/dist/webcomponents/p-59cf5391.entry.js +1 -0
- package/dist/webcomponents/p-5a62fca2.js +1 -0
- package/dist/webcomponents/p-5e2c9ec8.js +1 -0
- package/dist/webcomponents/p-5e7c60d8.js +1 -0
- package/dist/webcomponents/p-6078a370.js +1 -244
- package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
- package/dist/webcomponents/p-7bdffc78.entry.js +1 -0
- package/dist/webcomponents/p-7d3be485.js +1 -0
- package/dist/webcomponents/p-7d85af5c.js +1 -16
- package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
- package/dist/webcomponents/p-7fe67d7f.entry.js +1 -0
- package/dist/webcomponents/p-7ff329b1.js +1 -0
- package/dist/webcomponents/p-804c0f1f.entry.js +1 -0
- package/dist/webcomponents/p-8115b2f4.js +1 -28
- package/dist/webcomponents/p-8281f09a.js +1 -0
- package/dist/webcomponents/p-8921a478.entry.js +1 -0
- package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
- package/dist/webcomponents/p-8c83b73e.entry.js +1 -0
- package/dist/webcomponents/p-8d03a7bd.entry.js +1 -0
- package/dist/webcomponents/p-8df7bde8.js +1 -27
- package/dist/webcomponents/p-938bf2b4.entry.js +1 -0
- package/dist/webcomponents/p-9b154d98.entry.js +1 -0
- package/dist/webcomponents/p-9c9c7dac.js +1 -24
- package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
- package/dist/webcomponents/p-aedb421f.entry.js +1 -0
- package/dist/webcomponents/p-b14da2fd.entry.js +1 -0
- package/dist/webcomponents/p-bbed6107.entry.js +1 -0
- package/dist/webcomponents/p-bdc91c61.entry.js +1 -0
- package/dist/webcomponents/p-c64ce69d.entry.js +1 -0
- package/dist/webcomponents/p-d76002d5.entry.js +1 -0
- package/dist/webcomponents/p-d8355f91.entry.js +1 -0
- package/dist/webcomponents/p-d89bad72.js +1 -39
- package/dist/webcomponents/p-da1d174d.entry.js +1 -0
- package/dist/webcomponents/p-dbc1d7b3.entry.js +1 -0
- package/dist/webcomponents/p-dce846bf.js +1 -27
- package/dist/webcomponents/p-df21aaad.js +1 -120
- package/dist/webcomponents/p-e1255160.js +1 -3
- package/dist/webcomponents/p-e2c88817.entry.js +1 -0
- package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
- package/dist/webcomponents/p-e333620e.js +1 -34
- package/dist/webcomponents/p-e3f4a2a6.js +1 -0
- package/dist/webcomponents/p-e3fab0e2.js +1 -43
- package/dist/webcomponents/p-eea79a55.entry.js +1 -0
- package/dist/webcomponents/p-f0866375.entry.js +1 -0
- package/dist/webcomponents/p-f6a2dc78.entry.js +1 -0
- package/dist/webcomponents/p-fad19d75.js +2 -1638
- package/dist/webcomponents/webcomponents.css +4 -362
- package/dist/webcomponents/webcomponents.esm.js +1 -20
- package/package.json +4 -2
- package/dist/cjs/styled-host-cc053016.js +0 -14
- package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
- package/dist/esm/Analytics-a8eb7344.js +0 -77
- package/dist/esm/package-ccb774a9.js +0 -79
- package/dist/esm/styled-host-ab9da520.js +0 -12
- package/dist/esm/utils-3c1dd2fa.js +0 -4027
- package/dist/module/payload-parsers.js +0 -43
- package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
- package/dist/webcomponents/p-01a404ca.entry.js +0 -44
- package/dist/webcomponents/p-03d35880.entry.js +0 -130
- package/dist/webcomponents/p-06ff0429.entry.js +0 -65
- package/dist/webcomponents/p-0e1bc91e.js +0 -28
- package/dist/webcomponents/p-10875f3d.entry.js +0 -97
- package/dist/webcomponents/p-157acba8.entry.js +0 -98
- package/dist/webcomponents/p-18fa0479.entry.js +0 -131
- package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
- package/dist/webcomponents/p-24dc023a.entry.js +0 -791
- package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
- package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
- package/dist/webcomponents/p-29c0b182.js +0 -114
- package/dist/webcomponents/p-3395e896.entry.js +0 -74
- package/dist/webcomponents/p-3fd13ca3.js +0 -52
- package/dist/webcomponents/p-47d79529.js +0 -18
- package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
- package/dist/webcomponents/p-5482d030.entry.js +0 -21
- package/dist/webcomponents/p-576826b1.entry.js +0 -43
- package/dist/webcomponents/p-5f835b89.entry.js +0 -606
- package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
- package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
- package/dist/webcomponents/p-7582b554.entry.js +0 -18
- package/dist/webcomponents/p-75fd6367.entry.js +0 -149
- package/dist/webcomponents/p-79646550.entry.js +0 -61
- package/dist/webcomponents/p-800d31fe.entry.js +0 -162
- package/dist/webcomponents/p-85fc69e5.js +0 -90
- package/dist/webcomponents/p-89887332.js +0 -301
- package/dist/webcomponents/p-8eb774df.entry.js +0 -54
- package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
- package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
- package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
- package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
- package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
- package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
- package/dist/webcomponents/p-ac086069.entry.js +0 -58
- package/dist/webcomponents/p-af244664.js +0 -126
- package/dist/webcomponents/p-b4b8b531.js +0 -44
- package/dist/webcomponents/p-b82c146f.entry.js +0 -111
- package/dist/webcomponents/p-ba4bae6f.js +0 -12
- package/dist/webcomponents/p-ba5fae28.js +0 -90
- package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
- package/dist/webcomponents/p-cc39384f.entry.js +0 -99
- package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
- package/dist/webcomponents/p-dad3e069.entry.js +0 -298
- package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
- package/dist/webcomponents/p-e356f280.entry.js +0 -29
- package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
- package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
- package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
- package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
- package/dist/{globals.d.ts → types/global.d.ts} +1 -1
|
@@ -4,23 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const index_esm = require('./index.esm-52757963.js');
|
|
7
|
-
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-
|
|
8
|
-
const
|
|
9
|
-
const Api = require('./Api-
|
|
7
|
+
const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-26b0eecb.js');
|
|
8
|
+
const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
|
|
9
|
+
const Api = require('./Api-b98b256f.js');
|
|
10
10
|
require('./Pagination-0da8f095.js');
|
|
11
11
|
require('./Payment-1a8a8ca6.js');
|
|
12
12
|
require('./Payout-a2dd7b01.js');
|
|
13
|
+
const config = require('./config-05767cba.js');
|
|
13
14
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
14
|
-
const Business = require('./Business-
|
|
15
|
-
const Analytics = require('./Analytics-
|
|
16
|
-
const styledHost = require('./styled-host-
|
|
17
|
-
require('./
|
|
15
|
+
const Business = require('./Business-aa799fec.js');
|
|
16
|
+
const Analytics = require('./Analytics-03981aad.js');
|
|
17
|
+
const styledHost = require('./styled-host-9e0b67b3.js');
|
|
18
|
+
const checkPkgVersion = require('./check-pkg-version-89d6d146.js');
|
|
19
|
+
require('./schema-validations-0a7e46a3.js');
|
|
18
20
|
require('./state-options-4fbcb48a.js');
|
|
19
|
-
require('./business-form-options-
|
|
21
|
+
require('./business-form-options-5db0bd5e.js');
|
|
20
22
|
require('./helpers-602962eb.js');
|
|
21
|
-
require('./package-
|
|
23
|
+
require('./package-7fdd14b9.js');
|
|
22
24
|
|
|
23
|
-
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address:
|
|
25
|
+
const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
|
|
24
26
|
|
|
25
27
|
const businessFormCss = ":host{display:block}*::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-checkbox){font-family:var(--jfi-layout-font-family);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-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):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-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-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)}";
|
|
26
28
|
const JustifiBusinessFormStyle0 = businessFormCss;
|
|
@@ -40,8 +42,8 @@ const BusinessForm = class {
|
|
|
40
42
|
try {
|
|
41
43
|
const values = this.formController.values.getValue();
|
|
42
44
|
const initialValues = this.formController.getInitialValues();
|
|
43
|
-
const payload =
|
|
44
|
-
const response = await this.api.patch(this.businessEndpoint,
|
|
45
|
+
const payload = new Business.Business(Object.assign(Object.assign({}, initialValues), values)).payload;
|
|
46
|
+
const response = await this.api.patch(this.businessEndpoint, payload);
|
|
45
47
|
this.handleReponse(response);
|
|
46
48
|
}
|
|
47
49
|
catch (error) {
|
|
@@ -77,6 +79,7 @@ const BusinessForm = class {
|
|
|
77
79
|
this.errorMessage = undefined;
|
|
78
80
|
}
|
|
79
81
|
componentWillLoad() {
|
|
82
|
+
checkPkgVersion.checkPkgVersion();
|
|
80
83
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
81
84
|
const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
|
|
82
85
|
const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
|
|
@@ -85,7 +88,7 @@ const BusinessForm = class {
|
|
|
85
88
|
if (!this.businessId)
|
|
86
89
|
console.error(missingBusinessIdMessage);
|
|
87
90
|
this.formController = new index_esm.FormController(businessFormSchema);
|
|
88
|
-
this.api = Api.Api({ authToken: this.authToken, apiOrigin:
|
|
91
|
+
this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
89
92
|
this.fetchData();
|
|
90
93
|
}
|
|
91
94
|
disconnectedCallback() {
|
|
@@ -113,7 +116,7 @@ const BusinessForm = class {
|
|
|
113
116
|
this.instantiateBusiness(response.data);
|
|
114
117
|
}
|
|
115
118
|
render() {
|
|
116
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
119
|
+
return (index.h(styledHost.StyledHost, { key: '2f28b3e44c64d6ea1ac0d8584946927f6c9c3d05', exportparts: "label,input,input-invalid" }, index.h("form", { key: '5e57787b7dcd649c3523dc49d0a6946138643c7c', onSubmit: this.validateAndSubmit }, index.h("div", { key: '0ee6212aa6157ade79ab9b2ff5eb700549a8a916', class: "row gap-3" }, index.h("h1", { key: '84824314dd924cdab149c2b62b7e01b07dbf5d28' }, this.title), index.h("form-alert", { key: 'dca6d7ef6bcddd3090f44e5ccf9199bbd441dc87', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'a022912c284d63afbf9ce698b145d964d720b110', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: 'be264b806255b790a166b8a3349d78845c6c8225', formController: this.formController })), index.h("div", { key: 'b3a52da227a71f941941f66b758f718cdc3b7800', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '258dc5ebabc0e2dfaa8de28534238ef80a4f951d', formController: this.formController })), index.h("div", { key: '9dd5d30daf37d90a689333640cd1630000ee5e25', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: 'aa1cdf3a39170fcefbd07afcce193ed36430dc5b', formController: this.formController })), index.h("div", { key: 'a8cd6655a6408bef11c9ad442ecae7a0b5e3c50d', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '33db8cd22d22b694917332941b89b7535bd19201', formController: this.formController })), index.h("div", { key: '99d46400c8d46e5a3ca6747e5bae70bf5652a367', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '8b858727a11d5ec5f855c446f34da3c1d6253563', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
|
|
117
120
|
}
|
|
118
121
|
};
|
|
119
122
|
BusinessForm.style = JustifiBusinessFormStyle0;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
7
|
+
const Analytics = require('./Analytics-03981aad.js');
|
|
8
|
+
require('./package-7fdd14b9.js');
|
|
9
|
+
require('./Api-b98b256f.js');
|
|
9
10
|
|
|
10
11
|
const CardForm = class {
|
|
11
12
|
constructor(hostRef) {
|
|
@@ -15,7 +16,7 @@ const CardForm = class {
|
|
|
15
16
|
this.cardFormTokenized = index.createEvent(this, "cardFormTokenize", 7);
|
|
16
17
|
this.cardFormValidated = index.createEvent(this, "cardFormValidate", 7);
|
|
17
18
|
this.validationMode = undefined;
|
|
18
|
-
this.iframeOrigin =
|
|
19
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
19
20
|
this.singleLine = false;
|
|
20
21
|
this.internalStyleOverrides = undefined;
|
|
21
22
|
}
|
|
@@ -68,7 +69,7 @@ const CardForm = class {
|
|
|
68
69
|
return this.childRef.resize();
|
|
69
70
|
}
|
|
70
71
|
render() {
|
|
71
|
-
return (index.h("justifi-payment-method-form", { key: '
|
|
72
|
+
return (index.h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
|
|
72
73
|
if (el) {
|
|
73
74
|
this.childRef = el;
|
|
74
75
|
}
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-af1b60a9.js');
|
|
7
|
+
const config = require('./config-05767cba.js');
|
|
7
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
9
|
const insuranceState = require('./insurance-state-80e24caf.js');
|
|
9
10
|
const button = require('./button-3f400a66.js');
|
|
10
|
-
const styledHost = require('./styled-host-
|
|
11
|
+
const styledHost = require('./styled-host-9e0b67b3.js');
|
|
11
12
|
const skeleton = require('./skeleton-748c5dde.js');
|
|
12
13
|
|
|
13
14
|
class Checkout {
|
|
@@ -48,7 +49,7 @@ const CheckoutCore = class {
|
|
|
48
49
|
});
|
|
49
50
|
this.renderState = 'error';
|
|
50
51
|
};
|
|
51
|
-
this.iframeOrigin =
|
|
52
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
52
53
|
this.authToken = undefined;
|
|
53
54
|
this.getCheckout = undefined;
|
|
54
55
|
this.complete = undefined;
|
|
@@ -68,7 +69,6 @@ const CheckoutCore = class {
|
|
|
68
69
|
this.paymentMethodOptionsRef.fillBillingForm(fields);
|
|
69
70
|
}
|
|
70
71
|
componentWillLoad() {
|
|
71
|
-
console.log('CheckoutCore: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
72
72
|
if (this.getCheckout) {
|
|
73
73
|
this.fetchData();
|
|
74
74
|
// Refresh the checkout data when insurance is added or removed
|
|
@@ -145,7 +145,7 @@ const CheckoutCore = class {
|
|
|
145
145
|
return (index.h("section", null, index.h("div", { class: !this.isLoading && 'visually-hidden' }, index.h(skeleton.Skeleton, { height: "24px" })), index.h("div", { class: this.isLoading && 'visually-hidden' }, index.h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), index.h("div", { class: "jfi-payment-total" }, index.h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", index.h("span", { class: "jfi-payment-total-amount" }, utils.formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
148
|
+
return (index.h(styledHost.StyledHost, { key: 'e322f280a57bb0baab61174bca21f0a7e9afa3c1' }, index.h("div", { key: '4ad8cc4f6243de8ddc03fb184ac4e960a04280eb', class: "row gy-3 jfi-checkout-core" }, index.h("div", { key: '7f13e26b36790558c8eb455f4d5ab3d0952b4e62', class: "col-12" }, index.h("h2", { key: 'c5e4b6fc30f51821537915f3ce5d4830ed3f8da9', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), index.h("div", { key: '164b7a2cc51d871ad4a92044d0f7240e376bd4b3', class: "col-12" }, index.h("slot", { key: 'a98b7c6a0bb9e4d1b102e832ee7aa43218432298', name: "insurance" })), index.h("div", { key: '415d3aac64b4190f54d785695c50a92ce02a76c2', class: "col-12 mt-4" }, index.h("h2", { key: '6d7f0df1165ec359877459a8bada855ef353c3b3', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), index.h("h3", { key: 'be8495d792cf065d2cbc7d3b46648c887951e313', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), index.h("div", { key: '5c9d8baffb50b0b10e9911463f307581cad7619c', class: "d-flex flex-column" }, this.paymentType)), index.h("div", { key: '9351832b69a8e5285cae35534299b51193248719', class: "col-12" }, index.h("div", { key: '5b0e382836c858369caf93a287272922024ce72b', class: "d-flex justify-content-end" }, index.h(button.Button, { key: 'f76d37000f7b026e97f083e7cf817bed8f84f34f', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
CheckoutCore.style = JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1;
|
|
@@ -5,12 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
7
7
|
const utils = require('./utils-7a478c37.js');
|
|
8
|
-
const Api = require('./Api-
|
|
8
|
+
const Api = require('./Api-b98b256f.js');
|
|
9
9
|
require('./Pagination-0da8f095.js');
|
|
10
10
|
require('./Payment-1a8a8ca6.js');
|
|
11
11
|
require('./Payout-a2dd7b01.js');
|
|
12
|
-
const
|
|
13
|
-
require('./
|
|
12
|
+
const config = require('./config-05767cba.js');
|
|
13
|
+
const Analytics = require('./Analytics-03981aad.js');
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-89d6d146.js');
|
|
15
|
+
require('./package-7fdd14b9.js');
|
|
14
16
|
|
|
15
17
|
const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
|
|
16
18
|
var _a;
|
|
@@ -69,7 +71,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
|
|
|
69
71
|
class CheckoutService {
|
|
70
72
|
async fetchCheckout(authToken, checkoutId) {
|
|
71
73
|
const endpoint = `checkouts/${checkoutId}`;
|
|
72
|
-
return Api.Api({ authToken, apiOrigin:
|
|
74
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
|
|
73
75
|
}
|
|
74
76
|
async complete(authToken, checkoutId, payment) {
|
|
75
77
|
const endpoint = `checkouts/${checkoutId}/complete`;
|
|
@@ -79,7 +81,7 @@ class CheckoutService {
|
|
|
79
81
|
if (payment.payment_token) {
|
|
80
82
|
payload.payment_token = payment.payment_token;
|
|
81
83
|
}
|
|
82
|
-
return Api.Api({ authToken, apiOrigin:
|
|
84
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
|
|
@@ -100,6 +102,7 @@ const Checkout = class {
|
|
|
100
102
|
this.errorMessage = '';
|
|
101
103
|
}
|
|
102
104
|
componentWillLoad() {
|
|
105
|
+
checkPkgVersion.checkPkgVersion();
|
|
103
106
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
104
107
|
this.initializeGetCheckout();
|
|
105
108
|
}
|
|
@@ -134,11 +137,11 @@ const Checkout = class {
|
|
|
134
137
|
this.checkoutCoreRef.fillBillingForm(fields);
|
|
135
138
|
}
|
|
136
139
|
render() {
|
|
137
|
-
return (index.h("justifi-checkout-core", { key: '
|
|
140
|
+
return (index.h("justifi-checkout-core", { key: 'ea50f0df79dae86294ccfdf2ec523f0fb81433e4', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
|
|
138
141
|
if (el) {
|
|
139
142
|
this.checkoutCoreRef = el;
|
|
140
143
|
}
|
|
141
|
-
} }, index.h("div", { key: '
|
|
144
|
+
} }, index.h("div", { key: '301247cf7c916ba1c6c5464e3c2f0226d0f6f041', slot: "insurance" }, index.h("slot", { key: 'a75ff85e5a6d954e7c0d3c24abac518a2765f889', name: "insurance" }))));
|
|
142
145
|
}
|
|
143
146
|
static get watchers() { return {
|
|
144
147
|
"authToken": ["propChanged"],
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const utils = require('./utils-c1d2e426.js');
|
|
7
|
-
const styledHost = require('./styled-host-
|
|
7
|
+
const styledHost = require('./styled-host-9e0b67b3.js');
|
|
8
8
|
|
|
9
9
|
const Details = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
-
const
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
7
|
+
const Api = require('./Api-b98b256f.js');
|
|
7
8
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
9
|
const utils = require('./utils-7a478c37.js');
|
|
9
10
|
const utils$1 = require('./utils-c1d2e426.js');
|
|
10
|
-
const Analytics = require('./Analytics-
|
|
11
|
-
require('./
|
|
11
|
+
const Analytics = require('./Analytics-03981aad.js');
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-89d6d146.js');
|
|
13
|
+
require('./package-7fdd14b9.js');
|
|
12
14
|
|
|
13
15
|
class ReportsService {
|
|
14
16
|
async fetchGrossVolumeChartData(accountId, authToken) {
|
|
15
|
-
const api = Api.Api({ authToken: authToken, apiOrigin:
|
|
17
|
+
const api = Api.Api({ authToken: authToken, apiOrigin: config.config.proxyApiOrigin });
|
|
16
18
|
const endpoint = `account/${accountId}/reports/gross_volume`;
|
|
17
19
|
return api.get(endpoint);
|
|
18
20
|
}
|
|
@@ -60,6 +62,7 @@ const GrossPaymentChart = class {
|
|
|
60
62
|
this.errorMessage = null;
|
|
61
63
|
}
|
|
62
64
|
componentWillLoad() {
|
|
65
|
+
checkPkgVersion.checkPkgVersion();
|
|
63
66
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
64
67
|
this.initializeGetGrossPayment();
|
|
65
68
|
}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
|
+
const config = require('./config-05767cba.js');
|
|
6
7
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
7
|
-
const utils = require('./utils-
|
|
8
|
+
const utils = require('./utils-af1b60a9.js');
|
|
8
9
|
|
|
9
10
|
const PaymentMethodTypeLabels = {
|
|
10
11
|
bankAccount: 'New bank account',
|
|
@@ -17,7 +18,7 @@ const NewPaymentMethod = class {
|
|
|
17
18
|
this.onPaymentMethodOptionClick = () => {
|
|
18
19
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
19
20
|
};
|
|
20
|
-
this.iframeOrigin =
|
|
21
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
21
22
|
this.authToken = undefined;
|
|
22
23
|
this.accountId = undefined;
|
|
23
24
|
this.paymentMethodOption = undefined;
|
|
@@ -25,9 +26,6 @@ const NewPaymentMethod = class {
|
|
|
25
26
|
this.isSelected = undefined;
|
|
26
27
|
this.saveNewPaymentMethodChecked = false;
|
|
27
28
|
}
|
|
28
|
-
componentWillLoad() {
|
|
29
|
-
console.log('NewPaymentMethod: componentWillLoad iframeOrigin', this, this.iframeOrigin);
|
|
30
|
-
}
|
|
31
29
|
handleCheckboxChanged(event) {
|
|
32
30
|
this.saveNewPaymentMethodChecked = event.detail;
|
|
33
31
|
}
|
|
@@ -80,7 +78,7 @@ const NewPaymentMethod = class {
|
|
|
80
78
|
}
|
|
81
79
|
render() {
|
|
82
80
|
var _a, _b, _c, _d;
|
|
83
|
-
return (index.h("div", { key: '
|
|
81
|
+
return (index.h("div", { key: '7b17c9f060764f959286e739a2c05a43d1363f0e', class: "payment-method" }, index.h("div", { key: '5f09658f3be4cf75ee6df659d02b9bb29a0af2c3', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '5187b4d23e10272df064b554130b856332b77e43', 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" }), index.h("label", { key: '1814812e3246a5f9a5734cbb40af529a61e73f21', 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));
|
|
84
82
|
}
|
|
85
83
|
};
|
|
86
84
|
|
|
@@ -123,7 +121,7 @@ const PaymentMethodOptions = class {
|
|
|
123
121
|
this.insuranceToggled = undefined;
|
|
124
122
|
this.authToken = undefined;
|
|
125
123
|
this.accountId = undefined;
|
|
126
|
-
this.iframeOrigin =
|
|
124
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
127
125
|
this.savedPaymentMethods = [];
|
|
128
126
|
this.paymentAmount = undefined;
|
|
129
127
|
this.selectedPaymentMethodId = undefined;
|
|
@@ -169,7 +167,7 @@ const PaymentMethodOptions = class {
|
|
|
169
167
|
}
|
|
170
168
|
render() {
|
|
171
169
|
var _a;
|
|
172
|
-
return (index.h(index.Host, { key: '
|
|
170
|
+
return (index.h(index.Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
|
|
173
171
|
const newCard = paymentMethodOption.id === Payment.PaymentMethodTypes.card;
|
|
174
172
|
const newBankAccount = paymentMethodOption.id === Payment.PaymentMethodTypes.bankAccount;
|
|
175
173
|
const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
|
|
@@ -210,7 +208,7 @@ const SavedPaymentMethod = class {
|
|
|
210
208
|
this.onPaymentMethodOptionClick = () => {
|
|
211
209
|
this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
|
|
212
210
|
};
|
|
213
|
-
this.iframeOrigin =
|
|
211
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
214
212
|
this.paymentMethodOption = undefined;
|
|
215
213
|
this.isSelected = undefined;
|
|
216
214
|
}
|
|
@@ -224,7 +222,7 @@ const SavedPaymentMethod = class {
|
|
|
224
222
|
;
|
|
225
223
|
render() {
|
|
226
224
|
var _a, _b, _c, _d, _e;
|
|
227
|
-
return (index.h(index.Fragment, { key: '
|
|
225
|
+
return (index.h(index.Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, index.h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, index.h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, index.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" }), index.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 :
|
|
228
226
|
_e.acct_last_four)))));
|
|
229
227
|
}
|
|
230
228
|
};
|
|
@@ -269,7 +267,7 @@ const SezzlePaymentMethod = class {
|
|
|
269
267
|
this.sezzleCheckout = checkout;
|
|
270
268
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
271
269
|
};
|
|
272
|
-
this.iframeOrigin =
|
|
270
|
+
this.iframeOrigin = config.config.iframeOrigin;
|
|
273
271
|
this.bnpl = undefined;
|
|
274
272
|
this.clientId = undefined;
|
|
275
273
|
this.accountId = undefined;
|
|
@@ -295,7 +293,7 @@ const SezzlePaymentMethod = class {
|
|
|
295
293
|
}
|
|
296
294
|
render() {
|
|
297
295
|
var _a, _b, _c, _d, _e;
|
|
298
|
-
return (index.h("div", { key: '
|
|
296
|
+
return (index.h("div", { key: 'a71ee3b09669bd27f82f13fc2e924978df3b3883', class: "payment-method" }, index.h("script", { key: 'def81ad89dfc5d5038ee0de6ea6e3d430f45842c', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), index.h("div", { key: 'b7c0afa6b157a981d61b4825dcf7fa5d031d701e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, index.h("input", { key: '5c52a82646f941e7df87b99cd326c32b64ab1373', 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" }), index.h("label", { key: 'bb520c7addf37652ad0f22cc5a08c3afb0a23cd8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, index.h("div", { key: '0e43ff1520bece6a98c61be7fa31acb3fd4711e9' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (index.h("small", { key: '9413c186f4dd6ee5b5296a4e0e60d469f5bec5c0' }, index.h("span", { key: 'dbc4ff1d6c5c7d0a189ea4f09773de501b21d5d1' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", index.h("span", { key: '72a4d2a7b34fffaee04d466a981a1dab3160c639' }, this.installmentPlan.schedule, " payments of"), "\u00A0", index.h("span", { key: 'c2e2c5c4eaec1d03120239c00b47ae4bac548be6', class: "fw-bold" }, utils.formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
|
|
299
297
|
}
|
|
300
298
|
};
|
|
301
299
|
|
|
@@ -4,21 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fb499e95.js');
|
|
6
6
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
7
|
-
const business_service = require('./business.service-
|
|
7
|
+
const business_service = require('./business.service-031c0084.js');
|
|
8
8
|
const index_esm = require('./index.esm-52757963.js');
|
|
9
|
-
const Business = require('./Business-
|
|
9
|
+
const Business = require('./Business-aa799fec.js');
|
|
10
10
|
const businessFormTypes = require('./business-form-types-6e1fcda3.js');
|
|
11
|
-
const
|
|
11
|
+
const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
|
|
12
12
|
const button = require('./button-3f400a66.js');
|
|
13
13
|
const formInputMasks = require('./form-input-masks-0879c139.js');
|
|
14
14
|
const inputHandlers = require('./input-handlers-cff032bb.js');
|
|
15
15
|
require('./ComponentError-233ac749.js');
|
|
16
16
|
require('./utils-7a478c37.js');
|
|
17
|
-
require('./
|
|
17
|
+
require('./config-05767cba.js');
|
|
18
|
+
require('./Api-b98b256f.js');
|
|
18
19
|
require('./helpers-602962eb.js');
|
|
19
20
|
require('./state-options-4fbcb48a.js');
|
|
20
|
-
require('./schema-validations-
|
|
21
|
-
require('./business-form-options-
|
|
21
|
+
require('./schema-validations-0a7e46a3.js');
|
|
22
|
+
require('./business-form-options-5db0bd5e.js');
|
|
22
23
|
|
|
23
24
|
const BusinessOwnerForm = class {
|
|
24
25
|
constructor(hostRef) {
|
|
@@ -200,12 +201,12 @@ const BusinessOwnerFormCore = class {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
get payload() {
|
|
203
|
-
let formValues =
|
|
204
|
+
let formValues = new Business.Owner(this.formController.values.getValue()).payload;
|
|
204
205
|
if (this.ownerId) {
|
|
205
|
-
return
|
|
206
|
+
return formValues;
|
|
206
207
|
}
|
|
207
208
|
else {
|
|
208
|
-
return
|
|
209
|
+
return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
212
|
get formTitle() {
|
|
@@ -229,14 +230,14 @@ const BusinessOwnerFormCore = class {
|
|
|
229
230
|
}
|
|
230
231
|
}
|
|
231
232
|
componentWillLoad() {
|
|
232
|
-
this.formController = new index_esm.FormController(
|
|
233
|
+
this.formController = new index_esm.FormController(businessIdentitySchema.identitySchema('owner', this.allowOptionalFields));
|
|
233
234
|
this.ownerId ? this.getData() : this.instantiateOwner({});
|
|
234
235
|
}
|
|
235
236
|
componentDidLoad() {
|
|
236
237
|
this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
|
|
237
238
|
}
|
|
238
239
|
render() {
|
|
239
|
-
return (index.h("form", { key: '
|
|
240
|
+
return (index.h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, index.h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, index.h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), index.h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), index.h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, index.h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), index.h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, index.h(button.Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), index.h(button.Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), index.h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
|
|
240
241
|
}
|
|
241
242
|
static get watchers() { return {
|
|
242
243
|
"isLoading": ["loadingWatcher"]
|
|
@@ -3,16 +3,18 @@
|
|
|
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-4b1c0a20.js');
|
|
7
7
|
require('./Pagination-0da8f095.js');
|
|
8
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-
|
|
14
|
-
require('./
|
|
15
|
-
require('./
|
|
13
|
+
const Analytics = require('./Analytics-03981aad.js');
|
|
14
|
+
const checkPkgVersion = require('./check-pkg-version-89d6d146.js');
|
|
15
|
+
require('./Api-b98b256f.js');
|
|
16
|
+
require('./config-05767cba.js');
|
|
17
|
+
require('./package-7fdd14b9.js');
|
|
16
18
|
|
|
17
19
|
const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
18
20
|
var _a;
|
|
@@ -56,6 +58,7 @@ const PaymentDetails = class {
|
|
|
56
58
|
this.errorMessage = null;
|
|
57
59
|
}
|
|
58
60
|
componentWillLoad() {
|
|
61
|
+
checkPkgVersion.checkPkgVersion();
|
|
59
62
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
60
63
|
this.initializeGetPaymentDetails();
|
|
61
64
|
}
|
|
@@ -6,14 +6,16 @@ const index = require('./index-fb499e95.js');
|
|
|
6
6
|
require('./Pagination-0da8f095.js');
|
|
7
7
|
const Payment = require('./Payment-1a8a8ca6.js');
|
|
8
8
|
require('./Payout-a2dd7b01.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-af1b60a9.js');
|
|
10
|
+
const config = require('./config-05767cba.js');
|
|
10
11
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
11
12
|
const utils$1 = require('./utils-7a478c37.js');
|
|
12
|
-
const Analytics = require('./Analytics-
|
|
13
|
+
const Analytics = require('./Analytics-03981aad.js');
|
|
13
14
|
const button = require('./button-3f400a66.js');
|
|
14
|
-
const styledHost = require('./styled-host-
|
|
15
|
-
require('./
|
|
16
|
-
require('./
|
|
15
|
+
const styledHost = require('./styled-host-9e0b67b3.js');
|
|
16
|
+
const checkPkgVersion = require('./check-pkg-version-89d6d146.js');
|
|
17
|
+
require('./package-7fdd14b9.js');
|
|
18
|
+
require('./Api-b98b256f.js');
|
|
17
19
|
|
|
18
20
|
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)}";
|
|
19
21
|
const JustifiPaymentFormStyle0 = paymentFormCss;
|
|
@@ -35,6 +37,7 @@ const PaymentForm = class {
|
|
|
35
37
|
this.selectedPaymentMethodType = Payment.PaymentMethodTypes.card;
|
|
36
38
|
}
|
|
37
39
|
componentWillLoad() {
|
|
40
|
+
checkPkgVersion.checkPkgVersion();
|
|
38
41
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
39
42
|
if (!this.validateProps()) {
|
|
40
43
|
this.errorEvent.emit({
|
|
@@ -121,15 +124,15 @@ const PaymentForm = class {
|
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
render() {
|
|
124
|
-
return (index.h(styledHost.StyledHost, { key: '
|
|
127
|
+
return (index.h(styledHost.StyledHost, { key: 'f7d035a9ed8b16016493aa07a85a6b4d6d83b5f5' }, index.h("form", { key: 'fb9354b439332ef4ee67e915f27b60b9b744e6e2', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '303fbccf9beb30c1d822f0ac148128dfba9d158f', class: "col-12" }, index.h("justifi-payment-method-selector", { key: 'f71353d3f90ab50461a57ce3738ea853ca4d1cc3', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: 'd9024a406dcde487ff2bb7d34385da0a1be8aef5', class: "col-12" }, index.h("justifi-payment-method-form", { key: '010488c96f1b6b5af049b89151cea9ce61f263bb', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
|
|
125
128
|
if (el) {
|
|
126
129
|
this.paymentMethodFormRef = el;
|
|
127
130
|
}
|
|
128
|
-
} })), index.h("div", { key: '
|
|
131
|
+
} })), index.h("div", { key: 'c8b41e9d6bc0d21db4bc1efa12852480ed4a0bbd', class: "col-12" }, index.h("justifi-billing-form", { key: '2226122296e6b9da8359b90fe563b6c4342c72f3', legend: "Billing Info", ref: el => {
|
|
129
132
|
if (el) {
|
|
130
133
|
this.billingFormRef = el;
|
|
131
134
|
}
|
|
132
|
-
} })), index.h("slot", { key: '
|
|
135
|
+
} })), index.h("slot", { key: '5aa12164db0d1ac4570db49b7a1bc527d974a8ab', name: 'insurance' }), index.h("div", { key: '5b0ad786dcf96a4c83696b1e3d1cd09345313807', class: "col-12" }, index.h(button.Button, { key: 'b3a55eaf9403d33a0e0769ca2c6c42b086f4da9a', 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')))));
|
|
133
136
|
}
|
|
134
137
|
};
|
|
135
138
|
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-7fdd14b9.js');
|
|
7
|
+
const utils = require('./utils-af1b60a9.js');
|
|
8
8
|
|
|
9
9
|
var iframeResizer = {exports: {}};
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-fb499e95.js');
|
|
|
6
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-9e0b67b3.js');
|
|
10
10
|
require('./state-options-4fbcb48a.js');
|
|
11
11
|
|
|
12
12
|
const PaymentProvisioningCore = class {
|
|
@@ -3,12 +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-03981aad.js');
|
|
7
7
|
const ComponentError = require('./ComponentError-233ac749.js');
|
|
8
8
|
const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
|
|
9
|
-
const business_service = require('./business.service-
|
|
10
|
-
const
|
|
11
|
-
require('./
|
|
9
|
+
const business_service = require('./business.service-031c0084.js');
|
|
10
|
+
const config = require('./config-05767cba.js');
|
|
11
|
+
const Api = require('./Api-b98b256f.js');
|
|
12
|
+
const checkPkgVersion = require('./check-pkg-version-89d6d146.js');
|
|
13
|
+
require('./package-7fdd14b9.js');
|
|
12
14
|
require('./utils-7a478c37.js');
|
|
13
15
|
|
|
14
16
|
class ProvisionService {
|
|
@@ -18,7 +20,7 @@ class ProvisionService {
|
|
|
18
20
|
business_id: businessId,
|
|
19
21
|
product_category: product,
|
|
20
22
|
};
|
|
21
|
-
return Api.Api({ authToken, apiOrigin:
|
|
23
|
+
return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
|
|
@@ -37,6 +39,7 @@ const PaymentProvisioning = class {
|
|
|
37
39
|
this.initializeApi();
|
|
38
40
|
}
|
|
39
41
|
componentWillLoad() {
|
|
42
|
+
checkPkgVersion.checkPkgVersion();
|
|
40
43
|
this.analytics = new Analytics.JustifiAnalytics(this);
|
|
41
44
|
this.initializeApi();
|
|
42
45
|
}
|
|
@@ -66,7 +69,7 @@ const PaymentProvisioning = class {
|
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
render() {
|
|
69
|
-
return (index.h("justifi-payment-provisioning-core", { key: '
|
|
72
|
+
return (index.h("justifi-payment-provisioning-core", { key: '82b3601d3349a92bed1aa93e2a847039d7493c04', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
|
|
70
73
|
}
|
|
71
74
|
static get watchers() { return {
|
|
72
75
|
"authToken": ["propChanged"],
|