@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
|
@@ -1,22 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
US: '(000) 000-0000',
|
|
3
|
-
};
|
|
4
|
-
const TAX_ID_MASKS = { US: '00-0000000' };
|
|
5
|
-
const SSN_MASK = '000-00-0000';
|
|
6
|
-
const CURRENCY_MASK = {
|
|
7
|
-
WHOLE: {
|
|
8
|
-
mask: Number,
|
|
9
|
-
thousandsSeparator: ',',
|
|
10
|
-
normalizeZeros: true,
|
|
11
|
-
},
|
|
12
|
-
DECIMAL: {
|
|
13
|
-
mask: Number,
|
|
14
|
-
scale: 2,
|
|
15
|
-
thousandsSeparator: ',',
|
|
16
|
-
padFractionalZeros: true,
|
|
17
|
-
normalizeZeros: true,
|
|
18
|
-
radix: '.',
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { CURRENCY_MASK as C, PHONE_MASKS as P, SSN_MASK as S, TAX_ID_MASKS as T };
|
|
1
|
+
const a={US:"(000) 000-0000"},s={US:"00-0000000"},r="000-00-0000",o={WHOLE:{mask:Number,thousandsSeparator:",",normalizeZeros:!0},DECIMAL:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,normalizeZeros:!0,radix:"."}};export{o as C,a as P,r as S,s as T}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,a as t}from"./p-2eab3c90.js";import{l as a,k as n,m as s,n as r,q as o,u as i,v as l,e as c,p as m,x as d,y as p}from"./p-5022f21c.js";const u=i=>{const l=e({line1:a.required("Enter street address"),line2:n.nullable(),city:s.required("Enter city"),state:r.required("Select state"),postal_code:o.required("Enter postal code"),country:t().required("Select country")}),c=e({line1:a.nullable(),line2:n.nullable(),city:s.nullable(),state:r.nullable(),postal_code:o.nullable(),country:t().required("Select country")});return i?c:l},E=(a,n)=>{const s=e({name:i.required(`Enter ${a} name`),title:l.required(`Enter ${a} title`),email:c.required(`Enter ${a} email`),phone:m.required("Enter phone number"),dob_full:d(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(n)}),r=e({name:i.required(`Enter ${a} name`),title:l.nullable(),email:c.nullable(),phone:m.nullable(),dob_full:d(a).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(n)});return n?r:s};export{u as a,E as i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-fad19d75.js";import{m as o,P as r}from"./p-7ff329b1.js";import"./p-56f6ce4c.js";import"./p-df21aaad.js";import{P as e}from"./p-e3fab0e2.js";import{C as a,a as h}from"./p-14c91ffd.js";import{g as p,a as d}from"./p-8115b2f4.js";import{E as n}from"./p-dce846bf.js";import{J as c}from"./p-437f9114.js";import{c as m}from"./p-1612894d.js";import"./p-7d3be485.js";import"./p-5a62fca2.js";import"./p-8281f09a.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.payoutId=void 0,this.authToken=void 0,this.getPayout=void 0,this.getPayoutCSV=void 0,this.errorMessage=null}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:r})=>{var h;try{const n=await i.fetchPayout(t,s);n.error?r({error:p(n.error),code:d(null===(h=n.error)||void 0===h?void 0:h.code),severity:a.ERROR}):o(new e(n.data))}catch(t){r({error:p(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new r}),this.getPayoutCSV=o({authToken:this.authToken,service:new r})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:h.MISSING_PROPS,severity:a.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payout_details}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
amount: 25,
|
|
3
|
-
start_cursor: '',
|
|
4
|
-
end_cursor: '',
|
|
5
|
-
has_previous: false,
|
|
6
|
-
has_next: false,
|
|
7
|
-
};
|
|
8
|
-
const ExtendedPagingDefaults = Object.assign(Object.assign({}, pagingDefaults), { handleClickNext: () => { }, handleClickPrevious: () => { } });
|
|
9
|
-
|
|
10
|
-
export { ExtendedPagingDefaults as E, pagingDefaults as p };
|
|
1
|
+
const e={amount:25,start_cursor:"",end_cursor:"",has_previous:!1,has_next:!1},s=Object.assign(Object.assign({},e),{handleClickNext:()=>{},handleClickPrevious:()=>{}});export{s as E,e as p}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as e,h as i}from"./p-fad19d75.js";import{L as t,E as r}from"./p-dce846bf.js";import{S as o}from"./p-44055818.js";var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const n=class{constructor(i){s(this,i),this.errorEvent=e(this,"error-event",7),this.getBusiness=void 0,this.business=void 0,this.renderState=a.LOADING,this.errorMessage="An error ocurred."}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:e,message:s,severity:i})}})}render(){return this.renderState===a.LOADING?i(o,null,t()):this.renderState===a.ERROR?i(o,null,r(this.errorMessage)):i(o,null,i("generic-info-details",{business:this.business}),i("legal-address-details",{legalAddress:this.business.legal_address}),i("representative-details",{representative:this.business.representative}),i("owner-details",{owners:this.business.owners}),i("additional-questions-details",{additionalQuestions:this.business.additional_questions}))}};export{n as business_details_core}
|
|
@@ -1,178 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
|
|
3
|
-
|
|
4
|
-
// Entity API Actions
|
|
5
|
-
const makeGetBusiness = ({ authToken, businessId, service }) => async ({ onSuccess, onError, final = () => { } }) => {
|
|
6
|
-
var _a;
|
|
7
|
-
try {
|
|
8
|
-
const response = await service.fetchBusiness(businessId, authToken);
|
|
9
|
-
if (!response.error) {
|
|
10
|
-
onSuccess(response);
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
const responseError = getErrorMessage(response.error);
|
|
14
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
15
|
-
return onError({
|
|
16
|
-
error: responseError,
|
|
17
|
-
code,
|
|
18
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
24
|
-
return onError({
|
|
25
|
-
error: error.message || error,
|
|
26
|
-
code,
|
|
27
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
finally {
|
|
31
|
-
return final();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const makePatchBusiness = ({ authToken, businessId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
35
|
-
var _a;
|
|
36
|
-
try {
|
|
37
|
-
const response = await service.patchBusiness(authToken, businessId, payload);
|
|
38
|
-
if (!response.error) {
|
|
39
|
-
onSuccess(response);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
const responseError = getErrorMessage(response.error);
|
|
43
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
44
|
-
return onError({
|
|
45
|
-
error: responseError,
|
|
46
|
-
code,
|
|
47
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
53
|
-
return onError({
|
|
54
|
-
error: error.message || error,
|
|
55
|
-
code,
|
|
56
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
finally {
|
|
60
|
-
return final();
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
const makePostProvisioning = ({ authToken, businessId, product, service }) => async ({ onSuccess, onError }) => {
|
|
64
|
-
var _a;
|
|
65
|
-
try {
|
|
66
|
-
const response = await service.postProvisioning(authToken, businessId, product);
|
|
67
|
-
if (!response.error) {
|
|
68
|
-
onSuccess(response);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
const responseError = getErrorMessage(response.error);
|
|
72
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
73
|
-
return onError({
|
|
74
|
-
error: responseError,
|
|
75
|
-
code,
|
|
76
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (error) {
|
|
81
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
82
|
-
return onError({
|
|
83
|
-
error: error.message || error,
|
|
84
|
-
code,
|
|
85
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
// Identity API Actions
|
|
90
|
-
const makeGetIdentity = ({ authToken, identityId, service }) => async ({ onSuccess, onError, final = () => { } }) => {
|
|
91
|
-
var _a;
|
|
92
|
-
try {
|
|
93
|
-
const response = await service.fetchIdentity(identityId, authToken);
|
|
94
|
-
if (!response.error) {
|
|
95
|
-
onSuccess(response);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
const responseError = getErrorMessage(response.error);
|
|
99
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
100
|
-
return onError({
|
|
101
|
-
error: responseError,
|
|
102
|
-
code,
|
|
103
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
catch (error) {
|
|
108
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
109
|
-
return onError({
|
|
110
|
-
error: error.message || error,
|
|
111
|
-
code,
|
|
112
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
finally {
|
|
116
|
-
return final();
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const makePatchIdentity = ({ authToken, identityId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
120
|
-
var _a;
|
|
121
|
-
try {
|
|
122
|
-
const response = await service.patchIdentity(authToken, identityId, payload);
|
|
123
|
-
if (!response.error) {
|
|
124
|
-
onSuccess(response);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
const responseError = getErrorMessage(response.error);
|
|
128
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
129
|
-
return onError({
|
|
130
|
-
error: responseError,
|
|
131
|
-
code,
|
|
132
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
catch (error) {
|
|
137
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
138
|
-
return onError({
|
|
139
|
-
error: error.message || error,
|
|
140
|
-
code,
|
|
141
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
finally {
|
|
145
|
-
return final();
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
const makePostIdentity = ({ authToken, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
149
|
-
var _a;
|
|
150
|
-
try {
|
|
151
|
-
const response = await service.postIdentity(authToken, payload);
|
|
152
|
-
if (!response.error) {
|
|
153
|
-
onSuccess(response);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
const responseError = getErrorMessage(response.error);
|
|
157
|
-
const code = getErrorCode((_a = response.error) === null || _a === void 0 ? void 0 : _a.code);
|
|
158
|
-
return onError({
|
|
159
|
-
error: responseError,
|
|
160
|
-
code,
|
|
161
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
catch (error) {
|
|
166
|
-
const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
|
|
167
|
-
return onError({
|
|
168
|
-
error: error.message || error,
|
|
169
|
-
code,
|
|
170
|
-
severity: ComponentErrorSeverity.ERROR,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
finally {
|
|
174
|
-
return final();
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
export { makePostProvisioning as a, makePatchBusiness as b, makeGetIdentity as c, makePatchIdentity as d, makePostIdentity as e, makeGetBusiness as m };
|
|
1
|
+
import{C as r}from"./p-14c91ffd.js";import{g as e,a as o}from"./p-8115b2f4.js";const n=({authToken:n,businessId:t,service:s})=>async({onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await s.fetchBusiness(t,n);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}},t=({authToken:n,businessId:t,service:s})=>async({payload:i,onSuccess:c,onError:a,final:u=(()=>{})})=>{var d;try{const u=await s.patchBusiness(n,t,i);if(u.error){return a({error:e(u.error),code:o(null===(d=u.error)||void 0===d?void 0:d.code),severity:r.ERROR})}c(u)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},s=({authToken:n,businessId:t,product:s,service:i})=>async({onSuccess:c,onError:a})=>{var u;try{const d=await i.postProvisioning(n,t,s);if(d.error){return a({error:e(d.error),code:o(null===(u=d.error)||void 0===u?void 0:u.code),severity:r.ERROR})}c(d)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}},i=({authToken:n,identityId:t,service:s})=>async({onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await s.fetchIdentity(t,n);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}},c=({authToken:n,identityId:t,service:s})=>async({payload:i,onSuccess:c,onError:a,final:u=(()=>{})})=>{var d;try{const u=await s.patchIdentity(n,t,i);if(u.error){return a({error:e(u.error),code:o(null===(d=u.error)||void 0===d?void 0:d.code),severity:r.ERROR})}c(u)}catch(e){const n=o(null==e?void 0:e.code);return a({error:e.message||e,code:n,severity:r.ERROR})}finally{return u()}},a=({authToken:n,service:t})=>async({payload:s,onSuccess:i,onError:c,final:a=(()=>{})})=>{var u;try{const a=await t.postIdentity(n,s);if(a.error){return c({error:e(a.error),code:o(null===(u=a.error)||void 0===u?void 0:u.code),severity:r.ERROR})}i(a)}catch(e){const n=o(null==e?void 0:e.code);return c({error:e.message||e,code:n,severity:r.ERROR})}finally{return a()}};export{s as a,t as b,i as c,c as d,a as e,n as m}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as a}from"./p-fad19d75.js";import{I as s}from"./p-1ad5995e.js";import{S as d}from"./p-6078a370.js";import{n as o}from"./p-8df7bde8.js";const l=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.name=void 0,this.label=void 0,this.inputHandler=void 0,this.defaultValue=void 0,this.helpText=void 0,this.errorText=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}render(){return i(a,{key:"dfbfc1ea5d7139a1c1d30c7bd84b33a9c22604cf",exportparts:"label,input,input-invalid"},i("label",{key:"99a01781ecd1421fa439ad08f77d3f750a55eaee",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"d8db68d8a62e0f982c3aa7d4bd3a5cf7c2681db3",type:"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"1ee2ccdc1e409c5427e39efe2929b830960edce9",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"1db50cca364b4d059dac37243cf83bb4b11459cd",errorText:this.errorText,name:this.name}))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},r=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.imask=null,this.initializeIMask=()=>{this.textInput&&(this.imask=s(this.textInput,{mask:this.mask}),this.imask.on("accept",(()=>{var t;const e=null===(t=this.imask)||void 0===t?void 0:t.unmaskedValue;void 0!==e&&this.inputHandler(this.name,e)})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{this.imask&&t&&(this.imask.value=String(t))},this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.inputHandler=void 0,this.mask=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.initializeIMask(),this.updateInput(t)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}componentDidLoad(){this.textInput&&(this.initializeIMask(),this.updateInput(this.defaultValue))}render(){return i(a,{key:"e0a59308376055c019233f3d4649c9a37af963d2",exportparts:"label,input,input-invalid"},i("div",{key:"52d9440421342fed6a4f97b57586a43d517ded7d",class:"form-group d-flex flex-column"},i("label",{key:"8302a9fa1111d3b72600304cd0b1fb2c6239d895",part:"label",class:"form-label",htmlFor:this.name},this.label),i("input",{key:"86653c7b7f4efb9609bae2ecf69bd5e396bd342b",ref:t=>this.textInput=t,id:this.name,name:this.name,onBlur:this.formControlBlur.emit,onInput:this.handleFormControlInput,part:`input ${this.errorText&&"input-invalid"}`,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i("form-control-help-text",{key:"71d4d44ff91d06229ccc22e70bc92e0a2050da90",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"b7d42462ae9165acbde68cf59da07eb956a91fd6",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},n=class{constructor(e){t(this,e),this.inputHandler=(t,e)=>{this.address[t]=e,this.address=Object.assign({},this.address)},this.handleFormUpdate=void 0,this.errors=void 0,this.defaultValues=void 0,this.address={}}handleAddressChange(t){this.handleFormUpdate(t)}render(){var t,e,s,l,r,n,h,c,f,b,u,v;return i(a,{key:"d090676d3bb1d9de9ae947ff25d94b5985ace914",exportparts:"label,input,input-invalid"},i("div",{key:"64ddec6db508d27b709ad551f60fe58494631fe3",class:"row gy-3"},i("div",{key:"7e0f89b7b8d5a466b89efad75498c5d1f2cac8ea",class:"col-12 col-md-8"},i("form-control-text",{key:"ea6055fb3457e28666b11b72173ad70b83a87659",name:"line1",label:"Street Address",defaultValue:null===(t=this.defaultValues)||void 0===t?void 0:t.line1,errorText:null===(e=this.errors)||void 0===e?void 0:e.line1,inputHandler:this.inputHandler})),i("div",{key:"5f6f456c573fb9318e58976decb67274b209fa23",class:"col-12 col-md-4"},i("form-control-text",{key:"86fffd4641953d0445a7c24d332cda513121b65e",name:"line2",label:"Apartment, Suite, etc. (optional)",defaultValue:null===(s=this.defaultValues)||void 0===s?void 0:s.line2,errorText:null===(l=this.errors)||void 0===l?void 0:l.line2,inputHandler:this.inputHandler})),i("div",{key:"e06339cefebe37ae0629631fbc5101c9dbc040a6",class:"col-12"},i("form-control-text",{key:"d2af696b33092247b6741c8034aaf12ab51aa878",name:"city",label:"City",defaultValue:null===(r=this.defaultValues)||void 0===r?void 0:r.city,errorText:null===(n=this.errors)||void 0===n?void 0:n.city,inputHandler:this.inputHandler})),i("div",{key:"b655a66fb68f059fa91ae5f9f60fdebe0ae04fad",class:"col-12 col-md-6"},i("form-control-select",{key:"50a65861a5a39daac199571c5a0273340556e476",name:"state",label:"State",defaultValue:null===(h=this.defaultValues)||void 0===h?void 0:h.state,options:d,errorText:null===(c=this.errors)||void 0===c?void 0:c.state,inputHandler:this.inputHandler})),i("div",{key:"30255517e0fa1ede35d7b2525625ebc389c44525",class:"col-12 col-md-6"},i("form-control-text",{key:"b7b0a773c7b2dbe05c4bf8e9fc7235a01bf36832",name:"postal_code",label:"Postal Code",defaultValue:null===(f=this.defaultValues)||void 0===f?void 0:f.postal_code,errorText:null===(b=this.errors)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:o,inputHandler:this.inputHandler})),i("div",{key:"804e9aa1ca7b4ae167ae64969107ad6352559ed7",class:"col-12"},i("form-control-select",{key:"1aa3734e10502bc8f1732f386b60135b8a7d94a6",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null===(u=this.defaultValues)||void 0===u?void 0:u.country,errorText:null===(v=this.errors)||void 0===v?void 0:v.country,disabled:!0}))))}static get watchers(){return{address:["handleAddressChange"]}}};export{l as form_control_date,r as form_control_number_masked,n as justifi_identity_address_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i={iframeOrigin:"https://components.justifi.ai/v1",proxyApiOrigin:"https://wc-proxy.justifi.ai",proxyAuthToken:"eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g",exampleAccountId:"acc_5Et9iXrSSAZR2KSouQGAWi",exampleBusinessId:"biz_3bh69bq1rk3dmXNoAKVonu",examplePaymentId:"py_1NNeEnf4FbelxDCQN2RHcE",examplePayoutId:"po_17745yESnHyEgWNeunmhmR",privateApiOrigin:"",privateAuthToken:""};export{i as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(n)}function n(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function e(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function r(n){e(1,arguments);var r=Object.prototype.toString.call(n);return n instanceof Date||"object"===t(n)&&"[object Date]"===r?new Date(n.getTime()):"number"==typeof n||"[object Number]"===r?new Date(n):("string"!=typeof n&&"[object String]"!==r||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var a={};function i(){return a}function o(t){e(1,arguments);var n=r(t),a=n.getUTCDay(),i=(a<1?7:0)+a-1;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function u(t){e(1,arguments);var n=r(t),a=n.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(a+1,0,4),i.setUTCHours(0,0,0,0);var u=o(i),s=new Date(0);s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0);var c=o(s);return n.getTime()>=u.getTime()?a+1:n.getTime()>=c.getTime()?a:a-1}function s(t,a){var o,u,s,c,d,f,l,h;e(1,arguments);var m=i(),v=n(null!==(o=null!==(u=null!==(s=null!==(c=null==a?void 0:a.weekStartsOn)&&void 0!==c?c:null==a||null===(d=a.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==s?s:m.weekStartsOn)&&void 0!==u?u:null===(l=m.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==o?o:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=r(t),b=g.getUTCDay(),w=(b<v?7:0)+b-v;return g.setUTCDate(g.getUTCDate()-w),g.setUTCHours(0,0,0,0),g}function c(t,a){var o,u,c,d,f,l,h,m;e(1,arguments);var v=r(t),g=v.getUTCFullYear(),b=i(),w=n(null!==(o=null!==(u=null!==(c=null!==(d=null==a?void 0:a.firstWeekContainsDate)&&void 0!==d?d:null==a||null===(f=a.locale)||void 0===f||null===(l=f.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==c?c:b.firstWeekContainsDate)&&void 0!==u?u:null===(h=b.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==o?o:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(g+1,0,w),y.setUTCHours(0,0,0,0);var p=s(y,a),M=new Date(0);M.setUTCFullYear(g,0,w),M.setUTCHours(0,0,0,0);var S=s(M,a);return v.getTime()>=p.getTime()?g+1:v.getTime()>=S.getTime()?g:g-1}function d(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const f=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return d("yy"===n?r%100:r,n.length)},l=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):d(e+1,2)},h=function(t,n){return d(t.getUTCDate(),n.length)},m=function(t,n){return d(t.getUTCHours()%12||12,n.length)},v=function(t,n){return d(t.getUTCHours(),n.length)},g=function(t,n){return d(t.getUTCMinutes(),n.length)},b=function(t,n){return d(t.getUTCSeconds(),n.length)},w=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,e-3)),n.length)};var y={G:function(t,n,e){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if("yo"===n){var r=t.getUTCFullYear();return e.ordinalNumber(r>0?r:1-r,{unit:"year"})}return f(t,n)},Y:function(t,n,e,r){var a=c(t,r),i=a>0?a:1-a;return"YY"===n?d(i%100,2):"Yo"===n?e.ordinalNumber(i,{unit:"year"}):d(i,n.length)},R:function(t,n){return d(u(t),n.length)},u:function(t,n){return d(t.getUTCFullYear(),n.length)},Q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return d(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){var r=t.getUTCMonth();switch(n){case"M":case"MM":return l(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,a,o,u){var f=function(t,a){e(1,arguments);var o=r(t),u=s(o,a).getTime()-function(t,r){var a,o,u,d,f,l,h,m;e(1,arguments);var v=i(),g=n(null!==(a=null!==(o=null!==(u=null!==(d=null==r?void 0:r.firstWeekContainsDate)&&void 0!==d?d:null==r||null===(f=r.locale)||void 0===f||null===(l=f.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==u?u:v.firstWeekContainsDate)&&void 0!==o?o:null===(h=v.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==a?a:1),b=c(t,r),w=new Date(0);return w.setUTCFullYear(b,0,g),w.setUTCHours(0,0,0,0),s(w,r)}(o,a).getTime();return Math.round(u/6048e5)+1}(t,u);return"wo"===a?o.ordinalNumber(f,{unit:"week"}):d(f,a.length)},I:function(t,n,a){var i=function(t){e(1,arguments);var n=r(t),a=o(n).getTime()-function(t){e(1,arguments);var n=u(t),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),o(r)}(n).getTime();return Math.round(a/6048e5)+1}(t);return"Io"===n?a.ordinalNumber(i,{unit:"week"}):d(i,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):h(t,n)},D:function(t,n,a){var i=function(t){e(1,arguments);var n=r(t),a=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var i=n.getTime();return Math.floor((a-i)/864e5)+1}(t);return"Do"===n?a.ordinalNumber(i,{unit:"dayOfYear"}):d(i,n.length)},E:function(t,n,e){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return d(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return d(i,n.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),a=0===r?7:r;switch(n){case"i":return String(a);case"ii":return d(a,n.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){var r,a=t.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){var r,a=t.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if("ho"===n){var r=t.getUTCHours()%12;return 0===r&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return m(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):v(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):d(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):d(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):g(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):b(t,n)},S:function(t,n){return w(t,n)},X:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(n){case"X":return M(a);case"XXXX":case"XX":return S(a);default:return S(a,":")}},x:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return M(a);case"xxxx":case"xx":return S(a);default:return S(a,":")}},O:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+p(a,":");default:return"GMT"+S(a,":")}},z:function(t,n,e,r){var a=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+p(a,":");default:return"GMT"+S(a,":")}},t:function(t,n,e,r){return d(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return d((r._originalDate||t).getTime(),n.length)}};function p(t,n){var e=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return e+String(a);var o=n||"";return e+String(a)+o+d(i,2)}function M(t,n){return t%60==0?(t>0?"-":"+")+d(Math.abs(t)/60,2):S(t,n)}function S(t,n){var e=n||"",r=t>0?"-":"+",a=Math.abs(t);return r+d(Math.floor(a/60),2)+e+d(a%60,2)}const D=y;var x=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},E=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},P={p:E,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return x(t,n);switch(a){case"P":e=n.dateTime({width:"short"});break;case"PP":e=n.dateTime({width:"medium"});break;case"PPP":e=n.dateTime({width:"long"});break;default:e=n.dateTime({width:"full"})}return e.replace("{{date}}",x(a,n)).replace("{{time}}",E(i,n))}};const O=P;var T=["D","DD"],j=["YY","YYYY"];function A(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var k={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function W(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var Y,N={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},F={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function q(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=null!=e&&e.width?String(e.width):a;r=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,u=null!=e&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(n):n]}}function R(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,a=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var i,o=a[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(u)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(o))return n}(u):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(o))return n}(u);return i=t.valueCallback?t.valueCallback(s):s,{value:i=e.valueCallback?e.valueCallback(i):i,rest:n.slice(o.length)}}}const L={code:"en-US",formatDistance:function(t,n,e){var r,a=k[t];return r="string"==typeof a?a:1===n?a.one:a.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:N,formatRelative:function(t){return F[t]},localize:{ordinalNumber:function(t){var n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:q({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:q({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:q({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:q({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:q({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.match(Y.matchPattern);if(!e)return null;var r=e[0],a=t.match(Y.parsePattern);if(!a)return null;var i=Y.valueCallback?Y.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(r.length)}}),era:R({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:R({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:R({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:R({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,G=/^'([^]*?)'?$/,_=/''/g,B=/[a-zA-Z]/;function Q(a,o,u){var s,c,d,f,l,h,m,v,g,b,w,y,p,M,S,x,E,P;e(2,arguments);var k=String(o),W=i(),Y=null!==(s=null!==(c=null==u?void 0:u.locale)&&void 0!==c?c:W.locale)&&void 0!==s?s:L,N=n(null!==(d=null!==(f=null!==(l=null!==(h=null==u?void 0:u.firstWeekContainsDate)&&void 0!==h?h:null==u||null===(m=u.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==l?l:W.firstWeekContainsDate)&&void 0!==f?f:null===(g=W.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==d?d:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=n(null!==(w=null!==(y=null!==(p=null!==(M=null==u?void 0:u.weekStartsOn)&&void 0!==M?M:null==u||null===(S=u.locale)||void 0===S||null===(x=S.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==p?p:W.weekStartsOn)&&void 0!==y?y:null===(E=W.locale)||void 0===E||null===(P=E.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==w?w:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var q=r(a);if(!function(n){if(e(1,arguments),!function(n){return e(1,arguments),n instanceof Date||"object"===t(n)&&"[object Date]"===Object.prototype.toString.call(n)}(n)&&"number"!=typeof n)return!1;var a=r(n);return!isNaN(Number(a))}(q))throw new RangeError("Invalid time value");var R=function(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(q),Q=function(t,a){return e(2,arguments),function(t,a){e(2,arguments);var i=r(t).getTime(),o=n(a);return new Date(i+o)}(t,-n(a))}(q,R),U={firstWeekContainsDate:N,weekStartsOn:F,locale:Y,_originalDate:q};return k.match(C).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,O[n])(t,Y.formatLong):t})).join("").match(z).map((function(t){if("''"===t)return"'";var n,e,r=t[0];if("'"===r)return(e=(n=t).match(G))?e[1].replace(_,"'"):n;var i=D[r];if(i)return null!=u&&u.useAdditionalWeekYearTokens||-1===j.indexOf(t)||A(t,o,String(a)),null!=u&&u.useAdditionalDayOfYearTokens||!(-1!==T.indexOf(t))||A(t,o,String(a)),i(Q,t,Y.localize,U);if(r.match(B))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return t})).join("")}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function H(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return X(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?X(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var I={normalizePrecision:function(t){var n=t.reduce((function(t,n){return Math.max(t.getPrecision(),n.getPrecision())}));return t.map((function(t){return t.getPrecision()!==n?t.convertPrecision(n):t}))},minimum:function(t){var n=H(t),e=n[0],r=n.slice(1),a=e;return r.forEach((function(t){a=a.lessThan(t)?a:t})),a},maximum:function(t){var n=H(t),e=n[0],r=n.slice(1),a=e;return r.forEach((function(t){a=a.greaterThan(t)?a:t})),a}};function $(t){return!isNaN(parseInt(t))&&isFinite(t)}function J(t){return t%2==0}function Z(t){return $(t)&&!Number.isInteger(t)}function K(t){return Math.abs(t)%1==.5}function V(t){return void 0===t}function tt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e={};return Object.entries(t).forEach((function(t){if("object"===U(t[1])){var r=tt(t[1]);Object.entries(r).forEach((function(r){e[t[0]+n+r[0]]=r[1]}))}else e[t[0]]=t[1]})),e}function nt(){var t={HALF_ODD:function(t){var n=Math.round(t);return K(t)&&J(n)?n-1:n},HALF_EVEN:function(t){var n=Math.round(t);return K(t)?J(n)?n:n-1:n},HALF_UP:function(t){return Math.round(t)},HALF_DOWN:function(t){return K(t)?Math.floor(t):Math.round(t)},HALF_TOWARDS_ZERO:function(t){return K(t)?Math.sign(t)*Math.floor(Math.abs(t)):Math.round(t)},HALF_AWAY_FROM_ZERO:function(t){return K(t)?Math.sign(t)*Math.ceil(Math.abs(t)):Math.round(t)},DOWN:function(t){return Math.floor(t)}};return{add:function(t,n){return t+n},subtract:function(t,n){return t-n},multiply:function(t,n){return Z(t)||Z(n)?function(t,n){var e=function(t){return Math.pow(10,function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toString();if(t.indexOf("e-")>0)return parseInt(t.split("e-")[1]);var n=t.split(".")[1];return n?n.length:0}(t))},r=Math.max(e(t),e(n));return Math.round(t*r)*Math.round(n*r)/(r*r)}(t,n):t*n},divide:function(t,n){return t/n},modulo:function(t,n){return t%n},round:function(n){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN"](n)}}}var et=nt();function rt(t){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;for(var e in n)t=t.replace("{{".concat(e,"}}"),n[e]);return t};return{getExchangeRate:function(e,r){return(a=t.endpoint,!Boolean(a)||"object"!==U(a)&&"function"!=typeof a||"function"!=typeof a.then?function(e,r){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(e,r){var a=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===a.readyState&&(a.status>=200&&a.status<400?e(JSON.parse(a.responseText)):r(new Error(a.statusText)))},onerror:function(){r(new Error("Network error"))}});a.open("GET",t,!0),function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in n)t.setRequestHeader(e,n[e])}(a,n.headers),a.send()}))}(n(t.endpoint,{from:e,to:r}),{headers:t.headers})}(e,r):t.endpoint).then((function(a){return tt(a)[n(t.propertyPath,{from:e,to:r})]}));var a}}}function at(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!t)throw new e(n)}function it(t){at(Number.isInteger(t),"You must provide an integer.",TypeError)}var ot=nt(),ut=Object.assign((function t(n){var e=Object.assign({},{amount:t.defaultAmount,currency:t.defaultCurrency,precision:t.defaultPrecision},n),r=e.amount,a=e.currency,i=e.precision;it(r),it(i);var o=t.globalLocale,u=t.globalFormat,s=t.globalRoundingMode,c=t.globalFormatRoundingMode,d=Object.assign({},t.globalExchangeRatesApi),f=function(n){var e=Object.assign({},Object.assign({},{amount:r,currency:a,precision:i},n),Object.assign({},{locale:this.locale},n));return Object.assign(t({amount:e.amount,currency:e.currency,precision:e.precision}),{locale:e.locale})},l=function(t){at(this.hasSameCurrency(t),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return r},getCurrency:function(){return a},getLocale:function(){return this.locale||o},setLocale:function(t){return f.call(this,{locale:t})},getPrecision:function(){return i},convertPrecision:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;it(t);var e=this.getPrecision(),r=t>e,a=r?ot.multiply:ot.divide,i=Math.pow(10,ot.subtract.apply(ot,r?[t,e]:[e,t]));return f.call(this,{amount:ot.round(a(this.getAmount(),i),n),precision:t})},add:function(n){l.call(this,n);var e=t.normalizePrecision([this,n]);return f.call(this,{amount:ot.add(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},subtract:function(n){l.call(this,n);var e=t.normalizePrecision([this,n]);return f.call(this,{amount:ot.subtract(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},multiply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return f.call(this,{amount:ot.round(ot.multiply(this.getAmount(),t),n)})},divide:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return f.call(this,{amount:ot.round(ot.divide(this.getAmount(),t),n)})},percentage:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return at(function(t){return $(t)&&t<=100&&t>=0}(t),"You must provide a numeric value between 0 and 100.",RangeError),this.multiply(ot.divide(t,100),n)},allocate:function(t){var n=this;!function(t){at(function(t){return t.length>0&&t.every((function(t){return t>=0}))&&t.some((function(t){return t>0}))}(t),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}(t);for(var e=t.reduce((function(t,n){return ot.add(t,n)})),r=this.getAmount(),a=t.map((function(t){var a=Math.floor(ot.divide(ot.multiply(n.getAmount(),t),e));return r=ot.subtract(r,a),f.call(n,{amount:a})})),i=0;r>0;)t[i]>0&&(a[i]=a[i].add(f.call(this,{amount:1})),r=ot.subtract(r,1)),i+=1;return a},convert:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.endpoint,a=e.propertyPath,i=e.headers,o=e.roundingMode,u=Object.assign({},{endpoint:void 0===r?d.endpoint:r,propertyPath:void 0===a?d.propertyPath||"rates.{{to}}":a,headers:void 0===i?d.headers:i,roundingMode:void 0===o?s:o});return rt(u).getExchangeRate(this.getCurrency(),t).then((function(e){return at(!V(e),'No rate was found for the destination currency "'.concat(t,'".'),TypeError),f.call(n,{amount:ot.round(ot.multiply(n.getAmount(),parseFloat(e)),u.roundingMode),currency:t})}))},equalsTo:function(t){return this.hasSameAmount(t)&&this.hasSameCurrency(t)},lessThan:function(n){l.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()<e[1].getAmount()},lessThanOrEqual:function(n){l.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()<=e[1].getAmount()},greaterThan:function(n){l.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()>e[1].getAmount()},greaterThanOrEqual:function(n){l.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()>=e[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return 0!==ot.modulo(this.getAmount(),Math.pow(10,i))},hasCents:function(){return 0!==ot.modulo(this.getAmount(),Math.pow(10,i))},hasSameCurrency:function(t){return this.getCurrency()===t.getCurrency()},hasSameAmount:function(n){var e=t.normalizePrecision([this,n]);return e[0].getAmount()===e[1].getAmount()},toFormat:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=function(t){var n=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(t);return{getMatches:function(){return null!==n?n.slice(1).filter((function(t){return!V(t)})):[]},getMinimumFractionDigits:function(){var t=function(t){return"."===t};return V(this.getMatches().find(t))?0:this.getMatches()[et.add(this.getMatches().findIndex(t),1)].split("").length},getCurrencyDisplay:function(){return{USD:"code",dollar:"name",$:"symbol"}[this.getMatches().find((function(t){return"USD"===t||"dollar"===t||"$"===t}))]},getStyle:function(){return V(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!V(this.getMatches().find((function(t){return","===t})))}}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:u);return this.toRoundedUnit(n.getMinimumFractionDigits(),t).toLocaleString(this.getLocale(),{currencyDisplay:n.getCurrencyDisplay(),useGrouping:n.getUseGrouping(),minimumFractionDigits:n.getMinimumFractionDigits(),style:n.getStyle(),currency:this.getCurrency()})},toUnit:function(){return ot.divide(this.getAmount(),Math.pow(10,i))},toRoundedUnit:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,e=Math.pow(10,t);return ot.divide(ot.round(ot.multiply(this.toUnit(),e),n),e)},toObject:function(){return{amount:r,currency:a,precision:i}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},{globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}},I);function st(t,n=!0){function e(t){const e=n?"$0,0.00":"0,0.00";return ut({amount:t,currency:"USD"}).toFormat(e)}return t||(t=0),t<0?`(${e(-t)})`:e(t)}function ct(t){return t?Q(new Date(t),"MMM d, yyyy"):""}function dt(t){return"string"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)?"Invalid input":isNaN(t.getTime())?"Invalid date":t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function ft(t,n){return t===n?"Today":Q(new Date(t.replace(/-/g,"/")),"MMM d")}function lt(t){return t?Q(new Date(t),"h:mmaaa"):""}function ht(t){return t?Q(new Date(t),"h:mm:ssaaa"):""}const mt=t=>{switch(t){case"authorized":return"<span class='badge bg-primary' title='This card payment was authorized, but not captured. It could still succeed or fail.'>Authorized</span>";case"disputed":return"<span class='badge bg-primary' title='The account holder disputed this payment. The amount has been returned and a fee assessed.'>Disputed</span>";case"achFailed":return"<span class='badge bg-danger' title='The funds couldn't be collected for this ACH payment (in addition to the original payment, an ACH return and fee will appear in a payout)'>Failed</span>";case"failed":return"<span class='badge bg-danger' title='This card payment didn't go through (it won't appear in a payout)'>Failed</span>";case"fully_refunded":return"<span class='badge bg-primary' title='The full amount of this payment has been refunded'>Fully Refunded</span>";case"partially_refunded":return"<span class='badge bg-primary' title='A portion of this payment has been refunded'>Partially Refunded</span>";case"pending":return"<span class='badge bg-secondary' title='This ACH payment was processed, but the funds haven't settled. It could still succeed or fail.'>Pending</span>";case"succeeded":return"<span class='badge bg-success' title='This payment was successfully captured'>Successful</span>"}},vt=t=>{switch(t){case"canceled":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Canceled</span>";case"failed":return"<span class='badge bg-danger' title='Transfer to your bank account failed'>Failed</span>";case"forwarded":return"<span class='badge bg-secondary' title='This payout initially failed; the funds have been forwarded to your next successful payout'>Forwarded</span>";case"in_transit":return"<span class='badge bg-primary' title='Transfer to your bank account has been initiated'>In Transit</span>";case"paid":return"<span class='badge bg-success' title='Successfully deposited into your bank account'>Paid</span>";case"pending":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Pending</span>";case"scheduled":return"<span class='badge bg-primary' title='Batched and scheduled to be transferred'>Scheduled</span>";case"withdrawn":return"<span class='badge bg-success' title='Negative payout balance successfully withdrawn from your bank account'>Withdrawn</span>"}};function gt(t){return t?t.split("_").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" "):""}function bt(t){return t?t.replace(/([-_][a-z])/g,(t=>t.toUpperCase().replace("-","").replace("_",""))):""}function wt(t){return t.map((n=>n===t[0]?`?${n}`:`&${n}`)).join("")}async function yt(){const t=document.body,n=function(){var t;const n=getComputedStyle(document.body);return(null===(t=null==n?void 0:n.getPropertyValue("--jfi-load-google-font"))||void 0===t?void 0:t.trim().replace(/'|"/g,"").replace(" ","+"))||null}();if(!t||!n)return null;const e=`https://fonts.googleapis.com/css2?family=${n}&display=swap`;if(Array.from(document.querySelectorAll("link")).find((t=>t.href===e)))return;const r=document.createElement("link");r.rel="stylesheet",r.href=e,t.append(r)}function pt(t){return 0===Object.keys(t).length&&t.constructor===Object}const Mt=(t,n,e)=>t>=n&&t<=e;export{mt as M,ft as a,ct as b,lt as c,vt as d,dt as e,st as f,bt as g,Mt as h,pt as i,ht as j,wt as k,yt as l,gt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as s,c as t,g as i}from"./p-1ff8810b.js";class h{constructor(i){this.address=Object.assign({},new n(i.address||{})),this.created_at=i.created_at,this.dob_day=s(i.dob_day),this.dob_month=s(i.dob_month),this.dob_year=i.dob_year,this.dob_full=t(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=i.documents,this.email=i.email,this.id=i.id,this.business_id=i.business_id,this.is_owner=i.is_owner,this.metadata=i.metadata,this.name=i.name,this.phone=i.phone,this.platform_account_id=i.platform_account_id,this.identification_number=i.identification_number,this.ssn_last4=i.ssn_last4,this.title=i.title,this.updated_at=i.updated_at}get payload(){return{address:new n(this.address||{}).payload,dob_day:this.dob_day||"",dob_month:this.dob_month||"",dob_year:this.dob_year||"",email:this.email||"",identification_number:this.identification_number||void 0,is_owner:this.is_owner||!1,metadata:this.metadata||null,name:this.name||"",phone:this.phone||"",platform_account_id:this.platform_account_id||null,title:this.title||""}}}class e{constructor(i){this.address=Object.assign({},new n(i.address||{})),this.created_at=i.created_at,this.dob_day=s(i.dob_day),this.dob_month=s(i.dob_month),this.dob_year=i.dob_year,this.dob_full=t(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=i.documents,this.email=i.email,this.id=i.id,this.business_id=i.business_id,this.is_owner=i.is_owner,this.metadata=i.metadata,this.name=i.name,this.phone=i.phone,this.platform_account_id=i.platform_account_id,this.identification_number=i.identification_number,this.ssn_last4=i.ssn_last4,this.title=i.title,this.updated_at=i.updated_at}get payload(){return{address:new n(this.address||{}).payload,dob_day:this.dob_day||"",dob_month:this.dob_month||"",dob_year:this.dob_year||"",email:this.email||"",is_owner:this.is_owner||!1,identification_number:this.identification_number||void 0,metadata:this.metadata||null,name:this.name||"",phone:this.phone||"",platform_account_id:this.platform_account_id||null,title:this.title||""}}}var a;!function(s){s.sole_proprietor="sole_proprietor",s.partnership="partnership",s.corporation="corporation",s.public_company="public_company",s.limited="limited",s.non_profit="non_profit",s.government="government"}(a||(a={}));class n{constructor(s){this.id=s.id,this.platform_account_id=s.platform_account_id,this.line1=s.line1,this.line2=s.line2,this.postal_code=s.postal_code,this.city=s.city,this.state=i(s.state),this.country=s.country||"USA",this.created_at=s.created_at,this.updated_at=s.updated_at}get payload(){return{platform_account_id:this.platform_account_id||"",line1:this.line1||"",line2:this.line2||"",postal_code:this.postal_code||"",city:this.city||"",state:this.state||"",country:this.country||""}}}class o{constructor(s){this.business_revenue=s.business_revenue,this.business_payment_volume=s.business_payment_volume,this.business_when_service_received=s.business_when_service_received,this.business_recurring_payments=s.business_recurring_payments,this.business_recurring_payments_percentage=s.business_recurring_payments_percentage,this.business_seasonal=s.business_seasonal,this.business_other_payment_details=s.business_other_payment_details}get payload(){return{business_revenue:this.business_revenue||"",business_payment_volume:this.business_payment_volume||"",business_when_service_received:this.business_when_service_received||"",business_recurring_payments:this.business_recurring_payments||"",business_recurring_payments_percentage:this.business_recurring_payments_percentage||"",business_seasonal:this.business_seasonal||"",business_other_payment_details:this.business_other_payment_details||""}}}class r{constructor(s){this.classification=s.classification,this.legal_name=s.legal_name,this.doing_business_as=s.doing_business_as,this.industry=s.industry,this.tax_id=s.tax_id,this.website_url=s.website_url,this.email=s.email,this.phone=s.phone,this.date_of_incorporation=s.date_of_incorporation}get payload(){return{classification:this.classification||"",legal_name:this.legal_name||"",doing_business_as:this.doing_business_as||"",industry:this.industry||"",tax_id:this.tax_id||"",website_url:this.website_url||"",email:this.email||"",phone:this.phone||"",date_of_incorporation:this.date_of_incorporation||""}}}class _{constructor(s){this.additional_questions=new o(s.additional_questions||{}),this.associated_accounts=s.associated_accounts,this.classification=s.classification,this.bank_accounts=s.bank_accounts,this.created_at=s.created_at,this.documents=s.documents,this.doing_business_as=s.doing_business_as,this.email=s.email,this.id=s.id,this.industry=s.industry,this.legal_address=new n(s.legal_address||{}),this.legal_name=s.legal_name,this.metadata=s.metadata,this.owners=s.owners,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.product_categories=s.product_categories,this.representative=new e(s.representative||{}),this.tax_id=s.tax_id,this.terms_conditions_accepted=s.terms_conditions_accepted,this.updated_at=s.updated_at,this.website_url=s.website_url,this.date_of_incorporation=s.date_of_incorporation}get payload(){return{additional_questions:new o(this.additional_questions).payload,classification:this.classification||"",doing_business_as:this.doing_business_as||"",email:this.email||"",industry:this.industry||"",legal_address:new n(this.legal_address).payload,legal_name:this.legal_name||"",metadata:this.metadata||{},owners:this.owners.map((s=>({id:s.id}))),phone:this.phone||"",platform_account_id:this.platform_account_id||"",representative:new e(this.representative).payload,tax_id:this.tax_id||"",website_url:this.website_url||"",date_of_incorporation:this.date_of_incorporation||""}}}export{o as A,_ as B,r as C,h as O,e as R,a,n as b}
|
|
@@ -1,244 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
{
|
|
3
|
-
label: 'Choose state',
|
|
4
|
-
value: '',
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
label: 'Alabama',
|
|
8
|
-
value: 'AL',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
label: 'Alaska',
|
|
12
|
-
value: 'AK',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: 'American Samoa',
|
|
16
|
-
value: 'AS',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: 'Arizona',
|
|
20
|
-
value: 'AZ',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: 'Arkansas',
|
|
24
|
-
value: 'AR',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: 'California',
|
|
28
|
-
value: 'CA',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: 'Colorado',
|
|
32
|
-
value: 'CO',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: 'Connecticut',
|
|
36
|
-
value: 'CT',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: 'Delaware',
|
|
40
|
-
value: 'DE',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'District Of Columbia',
|
|
44
|
-
value: 'DC',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: 'Federated States Of Micronesia',
|
|
48
|
-
value: 'FM',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
label: 'Florida',
|
|
52
|
-
value: 'FL',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
label: 'Georgia',
|
|
56
|
-
value: 'GA',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: 'Guam',
|
|
60
|
-
value: 'GU',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: 'Hawaii',
|
|
64
|
-
value: 'HI',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: 'Idaho',
|
|
68
|
-
value: 'ID',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: 'Illinois',
|
|
72
|
-
value: 'IL',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: 'Indiana',
|
|
76
|
-
value: 'IN',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: 'Iowa',
|
|
80
|
-
value: 'IA',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: 'Kansas',
|
|
84
|
-
value: 'KS',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: 'Kentucky',
|
|
88
|
-
value: 'KY',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: 'Louisiana',
|
|
92
|
-
value: 'LA',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
label: 'Maine',
|
|
96
|
-
value: 'ME',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
label: 'Marshall Islands',
|
|
100
|
-
value: 'MH',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: 'Maryland',
|
|
104
|
-
value: 'MD',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: 'Massachusetts',
|
|
108
|
-
value: 'MA',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: 'Michigan',
|
|
112
|
-
value: 'MI',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
label: 'Minnesota',
|
|
116
|
-
value: 'MN',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: 'Mississippi',
|
|
120
|
-
value: 'MS',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
label: 'Missouri',
|
|
124
|
-
value: 'MO',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
label: 'Montana',
|
|
128
|
-
value: 'MT',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: 'Nebraska',
|
|
132
|
-
value: 'NE',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
label: 'Nevada',
|
|
136
|
-
value: 'NV',
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: 'New Hampshire',
|
|
140
|
-
value: 'NH',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
label: 'New Jersey',
|
|
144
|
-
value: 'NJ',
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
label: 'New Mexico',
|
|
148
|
-
value: 'NM',
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
label: 'New York',
|
|
152
|
-
value: 'NY',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
label: 'North Carolina',
|
|
156
|
-
value: 'NC',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
label: 'North Dakota',
|
|
160
|
-
value: 'ND',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
label: 'Northern Mariana Islands',
|
|
164
|
-
value: 'MP',
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
label: 'Ohio',
|
|
168
|
-
value: 'OH',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
label: 'Oklahoma',
|
|
172
|
-
value: 'OK',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
label: 'Oregon',
|
|
176
|
-
value: 'OR',
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
label: 'Palau',
|
|
180
|
-
value: 'PW',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
label: 'Pennsylvania',
|
|
184
|
-
value: 'PA',
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
label: 'Puerto Rico',
|
|
188
|
-
value: 'PR',
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
label: 'Rhode Island',
|
|
192
|
-
value: 'RI',
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
label: 'South Carolina',
|
|
196
|
-
value: 'SC',
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
label: 'South Dakota',
|
|
200
|
-
value: 'SD',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
label: 'Tennessee',
|
|
204
|
-
value: 'TN',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
label: 'Texas',
|
|
208
|
-
value: 'TX',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
label: 'Utah',
|
|
212
|
-
value: 'UT',
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
label: 'Vermont',
|
|
216
|
-
value: 'VT',
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
label: 'Virgin Islands',
|
|
220
|
-
value: 'VI',
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
label: 'Virginia',
|
|
224
|
-
value: 'VA',
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
label: 'Washington',
|
|
228
|
-
value: 'WA',
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
label: 'West Virginia',
|
|
232
|
-
value: 'WV',
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
label: 'Wisconsin',
|
|
236
|
-
value: 'WI',
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
label: 'Wyoming',
|
|
240
|
-
value: 'WY',
|
|
241
|
-
},
|
|
242
|
-
];
|
|
243
|
-
|
|
244
|
-
export { StateOptions as S };
|
|
1
|
+
const l=[{label:"Choose state",value:""},{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"American Samoa",value:"AS"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District Of Columbia",value:"DC"},{label:"Federated States Of Micronesia",value:"FM"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Guam",value:"GU"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Marshall Islands",value:"MH"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Northern Mariana Islands",value:"MP"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Palau",value:"PW"},{label:"Pennsylvania",value:"PA"},{label:"Puerto Rico",value:"PR"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virgin Islands",value:"VI"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}];export{l as S}
|