@justifi/webcomponents 5.2.0 → 5.3.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/{Checkout-2ff4f9c8.js → Checkout-0f1c8abe.js} +1 -1
- package/dist/cjs/Document-0b828345.js +58 -0
- package/dist/cjs/{Payment-84817e2d.js → Payment-c47ed1e1.js} +1 -1
- package/dist/cjs/{SubAccount-f236913b.js → SubAccount-509ebf93.js} +1 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
- package/dist/cjs/{badge-fbf58cb9.js → badge-ccfe03bf.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +130 -0
- package/dist/cjs/bank-account-form_9.cjs.entry.js +12 -12
- package/dist/cjs/billing-form_3.cjs.entry.js +8 -7
- package/dist/cjs/{business-additional-questions-schema-caa23e95.js → business-additional-questions-schema-2f66f025.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{business-identity-schema-0c537067.js → business-identity-schema-be495474.js} +1 -1
- package/dist/cjs/{business.service-ffb6f478.js → business.service-d575b515.js} +7 -0
- package/dist/cjs/{button-e7796b07.js → button-8b634147.js} +1 -1
- package/dist/cjs/{check-pkg-version-dee8dbb7.js → check-pkg-version-1658df6f.js} +1 -1
- package/dist/cjs/{checkout.service-e9c05c15.js → checkout.service-057b5a7a.js} +5 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -10
- package/dist/cjs/{checkouts-table-0f19c1e6.js → checkouts-table-efa1cbab.js} +3 -3
- package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +141 -2
- package/dist/cjs/{dispute.service-9272a2a6.js → dispute.service-df9e1830.js} +5 -3
- package/dist/cjs/{event-types-aa1a9be1.js → event-types-34b103b4.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-c1f49f35.js → form-control-error-text-46a7f2dd.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-help-text-e6cc71a7.js → form-control-help-text-98c882e3.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/{get-payout-csv-778db023.js → get-payout-csv-527a238c.js} +5 -4
- package/dist/cjs/{get-subaccounts-b087fa39.js → get-subaccounts-6068c1aa.js} +5 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
- package/dist/cjs/{header-1-96b97cab.js → header-1-4c21f7ca.js} +1 -1
- package/dist/cjs/{header-3-ce77b96b.js → header-3-130206cc.js} +1 -1
- package/dist/cjs/{insurance-state-8959c7c7.js → insurance-state-21fde44f.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +833 -0
- package/dist/cjs/{justifi-additional-questions-form-step_10.cjs.entry.js → justifi-additional-questions-form-step_9.cjs.entry.js} +29 -226
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +15 -13
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -9
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -8
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -13
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +7 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +11 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +25 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +18 -14
- package/dist/cjs/justifi-payout-details.cjs.entry.js +11 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -13
- package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -5
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +9 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +1 -1
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -11
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-8b9059cc.js → package-06419e54.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-addf2176.js → parts-b2ff8b68.js} +14 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
- package/dist/cjs/{payment-provisioning-actions-fbd30d1b.js → payment-provisioning-actions-382ab48c.js} +33 -2
- package/dist/cjs/{payment.service-042c7c99.js → payment.service-3eebfe3e.js} +5 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +22 -19
- package/dist/cjs/payments-list-params-state-442d9944.js +22 -0
- package/dist/cjs/{payments-status-411c325c.js → payments-status-ec12ee6a.js} +1 -1
- package/dist/cjs/{payments-table-16f3f95e.js → payments-table-f3aa174d.js} +3 -3
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
- package/dist/cjs/payouts-list-core.cjs.entry.js +13 -12
- package/dist/cjs/{payouts-status-0951e39d.js → payouts-status-9f2e9a3a.js} +1 -1
- package/dist/cjs/{payouts-table-bc15179c.js → payouts-table-4efa53fa.js} +3 -3
- package/dist/cjs/{schema-validations-0be8068a.js → schema-validations-cc4e6071.js} +5 -92
- package/dist/cjs/{skeleton-c4903a53.js → skeleton-0353466d.js} +1 -1
- package/dist/cjs/{spinner-aac395e3.js → spinner-4fc60a51.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +12 -10
- package/dist/cjs/{terminals-table-3c19847b.js → terminals-table-5e4bce93.js} +2 -2
- package/dist/cjs/{utils-a05a8bf6.js → utils-134dda01.js} +1 -1
- package/dist/cjs/{utils-5fb95d31.js → utils-337befa9.js} +0 -4
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/index.js +5 -0
- package/dist/collection/api/services/business.service.js +6 -0
- package/dist/collection/collection-manifest.json +3 -4
- package/dist/collection/components/business-forms/payment-provisioning/{document-uploads/business-document-upload-input-group.js → bank-account/bank-account-document-inputs.js} +19 -58
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +85 -0
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +207 -47
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +15 -7
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +63 -0
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-actions.js +32 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -3
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -1
- package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +8 -4
- package/dist/collection/components/business-forms/schemas/schema-validations.js +2 -4
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +1 -1
- package/dist/collection/components/checkout/checkout-core.js +1 -1
- package/dist/collection/components/checkout/checkout.js +2 -2
- package/dist/collection/components/checkout/new-payment-method.js +1 -1
- package/dist/collection/components/checkout/payment-method-options.js +1 -1
- package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
- package/dist/collection/components/checkout/saved-payment-method.js +1 -1
- package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payments-list/get-payments.js +4 -1
- package/dist/collection/components/payments-list/payments-list-core.js +10 -11
- package/dist/collection/components/payments-list/payments-list-filters.js +113 -3
- package/dist/collection/components/payments-list/payments-list-params-state.js +11 -5
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +9 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/docs.json +579 -519
- package/dist/esm/{Checkout-d476bb83.js → Checkout-8325c97a.js} +1 -1
- package/dist/esm/Document-1907c0d4.js +55 -0
- package/dist/esm/{Payment-47630113.js → Payment-82d2f453.js} +1 -1
- package/dist/esm/{SubAccount-f31349a9.js → SubAccount-a73bf971.js} +1 -1
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-b034e71b.js → badge-938ba4b1.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +123 -0
- package/dist/esm/bank-account-form_9.entry.js +12 -12
- package/dist/esm/billing-form_3.entry.js +8 -7
- package/dist/esm/{business-additional-questions-schema-aba9747e.js → business-additional-questions-schema-212a96ed.js} +1 -1
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-8b0f1619.js → business-identity-schema-05bd2a5f.js} +1 -1
- package/dist/esm/{business.service-ab2663a3.js → business.service-6a208f8f.js} +7 -1
- package/dist/esm/{button-8a02823c.js → button-4b3f3934.js} +1 -1
- package/dist/esm/{check-pkg-version-51d2616b.js → check-pkg-version-bac7eb5e.js} +1 -1
- package/dist/esm/{checkout.service-c275270e.js → checkout.service-ac067baa.js} +5 -3
- package/dist/esm/checkouts-list-core.entry.js +12 -10
- package/dist/esm/{checkouts-table-115bacc4.js → checkouts-table-1634366d.js} +3 -3
- package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +140 -4
- package/dist/esm/{dispute.service-882e35ed.js → dispute.service-26a788a8.js} +5 -3
- package/dist/esm/{event-types-948c3b14.js → event-types-fd7a05d9.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-066cdad4.js → form-control-error-text-b3d14e92.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +4 -4
- package/dist/esm/{form-control-help-text-3b6f5980.js → form-control-help-text-7b07fc37.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/{get-payout-csv-50aea928.js → get-payout-csv-684fece6.js} +5 -4
- package/dist/esm/{get-subaccounts-ab3dd32c.js → get-subaccounts-b1bed757.js} +5 -4
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-75c284dd.js → header-1-4db0c986.js} +1 -1
- package/dist/esm/{header-3-4a327395.js → header-3-fd150ccf.js} +1 -1
- package/dist/esm/{insurance-state-b495be64.js → insurance-state-529e2d0d.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +824 -0
- package/dist/esm/{justifi-additional-questions-form-step_10.entry.js → justifi-additional-questions-form-step_9.entry.js} +31 -227
- package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +15 -13
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +10 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +1 -1
- package/dist/esm/justifi-checkouts-list.entry.js +14 -13
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +9 -8
- package/dist/esm/justifi-dispute-notification_3.entry.js +14 -13
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-owner-form_3.entry.js +7 -6
- package/dist/esm/justifi-payment-details.entry.js +11 -10
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
- package/dist/esm/justifi-payments-list-filters.entry.js +25 -4
- package/dist/esm/justifi-payments-list.entry.js +18 -14
- package/dist/esm/justifi-payout-details.entry.js +11 -10
- package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +14 -13
- package/dist/esm/justifi-refund-form.entry.js +7 -5
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +9 -8
- package/dist/esm/justifi-terminals-list-filters.entry.js +1 -1
- package/dist/esm/justifi-terminals-list.entry.js +12 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-5eedfd72.js → package-90ebd343.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-93f379ab.js → parts-ab2bb4b5.js} +9 -1
- package/dist/esm/payment-details-core.entry.js +13 -13
- package/dist/esm/{payment-provisioning-actions-a262ee82.js → payment-provisioning-actions-726795a0.js} +33 -3
- package/dist/esm/{payment.service-92b90855.js → payment.service-2e418da1.js} +5 -3
- package/dist/esm/payments-list-core.entry.js +22 -19
- package/dist/esm/payments-list-params-state-d05b24aa.js +16 -0
- package/dist/esm/{payments-status-82466054.js → payments-status-abf1724b.js} +1 -1
- package/dist/esm/{payments-table-c0bb25b6.js → payments-table-88fbab49.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +8 -8
- package/dist/esm/payouts-list-core.entry.js +13 -12
- package/dist/esm/{payouts-status-b98c8297.js → payouts-status-d9987a8a.js} +1 -1
- package/dist/esm/{payouts-table-4382a264.js → payouts-table-055d3633.js} +3 -3
- package/dist/esm/{schema-validations-5b0ac96b.js → schema-validations-ccea6a06.js} +4 -84
- package/dist/esm/{skeleton-3bcb2b5d.js → skeleton-ee7c3b32.js} +1 -1
- package/dist/esm/{spinner-b83f3a87.js → spinner-8ec6669a.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminals-list-core.entry.js +12 -10
- package/dist/esm/{terminals-table-8f1c2146.js → terminals-table-2963e65b.js} +2 -2
- package/dist/esm/{utils-7fb6331d.js → utils-c2dc83b2.js} +1 -1
- package/dist/esm/{utils-b76d791e.js → utils-c37124fc.js} +1 -4
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +1 -1
- package/dist/module/Payment.js +1 -1
- package/dist/module/SubAccount.js +1 -1
- package/dist/module/additional-questions.js +1 -1
- package/dist/module/additional-statement.js +2 -2
- package/dist/module/badge.js +1 -1
- package/dist/module/bank-account-document-form-inputs.d.ts +11 -0
- package/dist/module/bank-account-document-form-inputs.js +6 -0
- package/dist/module/bank-account-document-inputs.js +58 -0
- package/dist/module/bank-account-form-inputs.d.ts +11 -0
- package/dist/module/bank-account-form-inputs.js +6 -0
- package/dist/module/bank-account-form-inputs2.js +63 -0
- package/dist/module/bank-account-form2.js +1 -1
- package/dist/module/billing-form-wrapper.js +1 -1
- package/dist/module/business-additional-questions-form-step-core.js +2 -2
- package/dist/module/business-bank-account-form-step-core.js +239 -64
- package/dist/module/business-bank-account-form-step.js +42 -5
- package/dist/module/business-core-info-form-step-core.js +2 -2
- package/dist/module/business-core-info-form-step.js +1 -1
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-core-info.js +1 -1
- package/dist/module/business-documents-on-file.d.ts +11 -0
- package/dist/module/business-documents-on-file.js +4 -36
- package/dist/module/business-documents-on-file2.js +45 -0
- package/dist/module/business-form-options.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/business-owners-form-step-core.js +1 -1
- package/dist/module/business-owners-form-step.js +1 -1
- package/dist/module/business-representative-form-inputs.js +1 -1
- package/dist/module/business-representative-form-step-core.js +1 -1
- package/dist/module/business-representative-form-step.js +1 -1
- package/dist/module/business-terms-conditions-form-step.js +9 -11
- package/dist/module/business.service.js +7 -1
- package/dist/module/cancellation-policy.js +2 -2
- package/dist/module/card-form2.js +1 -1
- package/dist/module/checkout-core.js +2 -2
- package/dist/module/checkout.service.js +2 -0
- package/dist/module/checkouts-list-core2.js +6 -4
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +2 -2
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +2 -2
- package/dist/module/dispute-response-actions.js +2 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +1 -1
- package/dist/module/duplicate-charge.js +2 -2
- package/dist/module/electronic-evidence.js +2 -2
- package/dist/module/event-types.js +22 -61
- package/dist/module/event-types2.js +61 -22
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-date2.js +3 -3
- package/dist/module/form-control-error-text.js +1 -1
- package/dist/module/form-control-file-v22.js +1 -1
- package/dist/module/form-control-file2.js +3 -3
- package/dist/module/form-control-monetary2.js +3 -3
- package/dist/module/form-control-number-masked2.js +3 -3
- package/dist/module/form-control-number.js +3 -3
- package/dist/module/form-control-radio2.js +3 -3
- package/dist/module/form-control-select2.js +3 -3
- package/dist/module/form-control-text2.js +3 -3
- package/dist/module/form-control-textarea2.js +3 -3
- package/dist/module/form-control-tooltip2.js +1 -1
- package/dist/module/get-payout-csv.js +2 -1
- package/dist/module/get-subaccounts.js +2 -1
- package/dist/module/gross-payment-chart-core2.js +2 -2
- package/dist/module/hidden-input2.js +2 -2
- package/dist/module/iframe-input2.js +4 -4
- package/dist/module/justifi-business-form.js +3 -1
- package/dist/module/justifi-checkout.js +2 -2
- package/dist/module/justifi-checkouts-list-filters.js +1 -1
- package/dist/module/justifi-checkouts-list.js +3 -2
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-payment-details.js +2 -1
- package/dist/module/justifi-payment-provisioning.js +50 -56
- package/dist/module/justifi-payments-list-filters.js +32 -5
- package/dist/module/justifi-payments-list.js +7 -3
- package/dist/module/justifi-payout-details.js +2 -1
- package/dist/module/justifi-payouts-list-filters.js +2 -2
- package/dist/module/justifi-payouts-list.js +2 -1
- package/dist/module/justifi-refund-form.js +3 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -2
- package/dist/module/justifi-terminals-list-filters.js +1 -1
- package/dist/module/justifi-terminals-list.js +2 -1
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/legal-address-form-step-core.js +1 -1
- package/dist/module/legal-address-form-step.js +1 -1
- package/dist/module/new-payment-method.js +1 -1
- package/dist/module/owner-details2.js +1 -1
- package/dist/module/owner-form-core2.js +2 -2
- package/dist/module/owner-form.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +1 -1
- package/dist/module/parts.js +9 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +1 -1
- package/dist/module/payment-provisioning-actions.js +33 -3
- package/dist/module/payment-provisioning-core.js +50 -56
- package/dist/module/payment-provisioning-form-buttons.js +1 -1
- package/dist/module/payment-provisioning-form-steps.js +51 -58
- package/dist/module/payment.service.js +2 -0
- package/dist/module/payments-list-core2.js +15 -13
- package/dist/module/payments-list-params-state.js +11 -5
- package/dist/module/payout-details-core2.js +2 -2
- package/dist/module/payouts-list-core2.js +6 -5
- package/dist/module/product-or-service.js +2 -2
- package/dist/module/refund-policy.js +2 -2
- package/dist/module/representative-details2.js +1 -1
- package/dist/module/save-new-payment-method.js +1 -1
- package/dist/module/saved-payment-method.js +2 -2
- package/dist/module/schema-validations.js +4 -31
- package/dist/module/season-interruption-insurance-core.js +2 -2
- package/dist/module/sezzle-payment-method.js +2 -2
- package/dist/module/shipping-details.js +2 -2
- package/dist/module/spinner.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/terminals-list-core2.js +5 -3
- package/dist/module/utils2.js +1 -4
- package/dist/types/api/index.d.ts +4 -0
- package/dist/types/api/services/business.service.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +18 -6
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -1
- package/dist/types/components/business-forms/payment-provisioning/{document-uploads → bank-account}/business-documents-on-file.d.ts +1 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-actions.d.ts +9 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -1
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +1 -0
- package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +5 -1
- package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +2 -2
- package/dist/types/components/business-forms/schemas/schema-validations.d.ts +1 -1
- package/dist/types/components/payments-list/get-payments.d.ts +2 -1
- package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
- package/dist/types/components/payments-list/payments-list-filters.d.ts +5 -0
- package/dist/types/components/payments-list/payments-list-params-state.d.ts +4 -3
- package/dist/types/components.d.ts +81 -101
- package/dist/types/styles/parts.d.ts +8 -0
- package/dist/webcomponents/{p-2ce40098.js → p-01d4e35a.js} +1 -1
- package/dist/webcomponents/{p-d1f78cb5.js → p-0277c1b2.js} +1 -1
- package/dist/webcomponents/p-045d4ebf.entry.js +1 -0
- package/dist/webcomponents/p-08d87a52.entry.js +1 -0
- package/dist/webcomponents/p-0e68b7d6.entry.js +1 -0
- package/dist/webcomponents/p-0ef9eae6.entry.js +1 -0
- package/dist/webcomponents/{p-7b1fcab5.entry.js → p-0f6ae5ea.entry.js} +1 -1
- package/dist/webcomponents/p-131db5d1.entry.js +1 -0
- package/dist/webcomponents/p-1603fe4d.js +1 -0
- package/dist/webcomponents/p-18a7a9e6.entry.js +1 -0
- package/dist/webcomponents/p-1e8a1e01.entry.js +1 -0
- package/dist/webcomponents/{p-4c4f9e3b.js → p-21431a04.js} +1 -1
- package/dist/webcomponents/p-21cf557e.entry.js +1 -0
- package/dist/webcomponents/{p-09fd4ee2.entry.js → p-2916bb62.entry.js} +1 -1
- package/dist/webcomponents/p-298e290e.js +1 -0
- package/dist/webcomponents/{p-9069fab5.js → p-2a136295.js} +1 -1
- package/dist/webcomponents/{p-74736657.js → p-2ca5b5e4.js} +1 -1
- package/dist/webcomponents/p-2f94d478.entry.js +1 -0
- package/dist/webcomponents/p-31e2d12c.entry.js +1 -0
- package/dist/webcomponents/p-3c0b56cd.entry.js +1 -0
- package/dist/webcomponents/p-3d5c8a98.entry.js +1 -0
- package/dist/webcomponents/p-3e0f3d87.entry.js +1 -0
- package/dist/webcomponents/{p-f65abd18.js → p-3e716e03.js} +1 -1
- package/dist/webcomponents/p-40e23b13.js +1 -0
- package/dist/webcomponents/p-42047b14.entry.js +1 -0
- package/dist/webcomponents/p-44d2c762.entry.js +1 -0
- package/dist/webcomponents/{p-bb842885.entry.js → p-56addd0a.entry.js} +1 -1
- package/dist/webcomponents/p-58f5e37b.entry.js +1 -0
- package/dist/webcomponents/{p-d86c1f11.entry.js → p-5afefc50.entry.js} +2 -2
- package/dist/webcomponents/{p-92d78790.js → p-5b72bab7.js} +1 -1
- package/dist/webcomponents/{p-7db2a4d5.entry.js → p-5baec916.entry.js} +1 -1
- package/dist/webcomponents/{p-f76a7f9c.entry.js → p-5bf4535a.entry.js} +1 -1
- package/dist/webcomponents/p-61f0a2ce.js +1 -0
- package/dist/webcomponents/{p-e0f21a47.entry.js → p-62696f63.entry.js} +1 -1
- package/dist/webcomponents/p-631d54a2.entry.js +1 -0
- package/dist/webcomponents/p-63caad6e.entry.js +1 -0
- package/dist/webcomponents/p-66b6c56b.js +1 -0
- package/dist/webcomponents/p-6b0bec46.entry.js +1 -0
- package/dist/webcomponents/p-6d2c8be2.entry.js +1 -0
- package/dist/webcomponents/p-7b04f492.entry.js +1 -0
- package/dist/webcomponents/p-7bcec768.entry.js +1 -0
- package/dist/webcomponents/{p-5d0763a5.js → p-7c31ec70.js} +1 -1
- package/dist/webcomponents/{p-2bd8650b.js → p-865733bc.js} +1 -1
- package/dist/webcomponents/{p-44604a45.js → p-8f25f016.js} +1 -1
- package/dist/webcomponents/p-9235b94e.entry.js +1 -0
- package/dist/webcomponents/{p-411382f3.js → p-938993c7.js} +1 -1
- package/dist/webcomponents/{p-d6e51c2f.js → p-94eba309.js} +1 -1
- package/dist/webcomponents/p-9540d2f2.js +1 -0
- package/dist/webcomponents/{p-83aa33f0.js → p-9894484a.js} +1 -1
- package/dist/webcomponents/p-98dad117.entry.js +1 -0
- package/dist/webcomponents/p-9ad6e792.entry.js +1 -0
- package/dist/webcomponents/p-a263a3db.entry.js +1 -0
- package/dist/webcomponents/p-aa02cf71.js +1 -0
- package/dist/webcomponents/p-ab1504b6.entry.js +1 -0
- package/dist/webcomponents/p-abb46c6b.entry.js +1 -0
- package/dist/webcomponents/p-b6e90400.entry.js +1 -0
- package/dist/webcomponents/{p-2b081961.entry.js → p-bada4783.entry.js} +1 -1
- package/dist/webcomponents/p-c470a150.js +1 -0
- package/dist/webcomponents/{p-eb644cb7.js → p-c5c03d88.js} +1 -1
- package/dist/webcomponents/p-c5ce98b0.entry.js +1 -0
- package/dist/webcomponents/{p-c2efe406.js → p-c845cb7a.js} +1 -1
- package/dist/webcomponents/p-cc4adf97.js +1 -0
- package/dist/webcomponents/{p-72a90154.entry.js → p-cdb7fa19.entry.js} +1 -1
- package/dist/webcomponents/p-d07c45e6.entry.js +1 -0
- package/dist/webcomponents/p-d0bde1cb.js +1 -0
- package/dist/webcomponents/p-d8c04275.js +1 -0
- package/dist/webcomponents/{p-541b7c36.entry.js → p-db37b175.entry.js} +1 -1
- package/dist/webcomponents/p-ddcd2ff7.entry.js +1 -0
- package/dist/webcomponents/p-de13f23c.js +1 -0
- package/dist/webcomponents/p-dec18cc4.js +1 -0
- package/dist/webcomponents/{p-c6051278.entry.js → p-e0db920c.entry.js} +1 -1
- package/dist/webcomponents/{p-39177d5a.js → p-e63fdbca.js} +1 -1
- package/dist/webcomponents/{p-730e8425.js → p-e8c3c23f.js} +1 -1
- package/dist/webcomponents/p-ea105de3.js +1 -0
- package/dist/webcomponents/{p-d5dace8b.entry.js → p-ea5cf135.entry.js} +1 -1
- package/dist/webcomponents/p-ed17e472.entry.js +1 -0
- package/dist/webcomponents/p-f0c0cbc8.entry.js +1 -0
- package/dist/webcomponents/{p-24a9c773.js → p-f19f9f61.js} +1 -1
- package/dist/webcomponents/p-f1e01bab.entry.js +1 -0
- package/dist/webcomponents/p-f2f2e20e.js +1 -0
- package/dist/webcomponents/p-f5925b1e.entry.js +1 -0
- package/dist/webcomponents/p-f694e1c8.js +1 -0
- package/dist/webcomponents/p-f706d70e.js +1 -0
- package/dist/webcomponents/p-f9728478.entry.js +1 -0
- package/dist/webcomponents/p-f9ac523e.entry.js +1 -0
- package/dist/webcomponents/p-f9d63d9d.js +1 -0
- package/dist/webcomponents/p-fa2b405c.entry.js +1 -0
- package/dist/webcomponents/{p-bf07d5d0.entry.js → p-facada09.entry.js} +1 -1
- package/dist/webcomponents/p-fe0d245f.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/form-control-file.cjs.entry.js +0 -67
- package/dist/cjs/form-control-select_3.cjs.entry.js +0 -145
- package/dist/cjs/justifi-additional-questions-form-step-core_9.cjs.entry.js +0 -800
- package/dist/cjs/payments-list-params-state-0ff968a7.js +0 -14
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +0 -338
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +0 -40
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/input-configurations.js +0 -52
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +0 -8
- package/dist/collection/components/business-forms/schemas/business-document-upload-schema.js +0 -23
- package/dist/esm/form-control-file.entry.js +0 -63
- package/dist/esm/form-control-select_3.entry.js +0 -139
- package/dist/esm/justifi-additional-questions-form-step-core_9.entry.js +0 -788
- package/dist/esm/payments-list-params-state-b3dab8bc.js +0 -10
- package/dist/module/business-document-upload-form-step.js +0 -272
- package/dist/module/business-document-upload-input-group.js +0 -128
- package/dist/module/business-terms-conditions-text.js +0 -28
- package/dist/module/justifi-business-document-upload-form-step.d.ts +0 -11
- package/dist/module/justifi-business-document-upload-form-step.js +0 -6
- package/dist/module/justifi-business-document-upload-input-group.d.ts +0 -11
- package/dist/module/justifi-business-document-upload-input-group.js +0 -6
- package/dist/module/justifi-business-documents-on-file.d.ts +0 -11
- package/dist/module/justifi-business-documents-on-file.js +0 -6
- package/dist/module/justifi-business-terms-conditions-text.d.ts +0 -11
- package/dist/module/justifi-business-terms-conditions-text.js +0 -6
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +0 -42
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.d.ts +0 -21
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/input-configurations.d.ts +0 -45
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.d.ts +0 -3
- package/dist/types/components/business-forms/schemas/business-document-upload-schema.d.ts +0 -17
- package/dist/webcomponents/p-04ce1f82.js +0 -1
- package/dist/webcomponents/p-0544f4a4.entry.js +0 -1
- package/dist/webcomponents/p-060ff1a1.js +0 -1
- package/dist/webcomponents/p-0658b707.entry.js +0 -1
- package/dist/webcomponents/p-0d7e7957.js +0 -1
- package/dist/webcomponents/p-10cface4.entry.js +0 -1
- package/dist/webcomponents/p-10f9ff7b.entry.js +0 -1
- package/dist/webcomponents/p-12233a57.entry.js +0 -1
- package/dist/webcomponents/p-135e24c0.js +0 -1
- package/dist/webcomponents/p-1a27f22e.js +0 -1
- package/dist/webcomponents/p-1e2526c8.entry.js +0 -1
- package/dist/webcomponents/p-270033ba.entry.js +0 -1
- package/dist/webcomponents/p-2a17a29c.entry.js +0 -1
- package/dist/webcomponents/p-2c7441ea.entry.js +0 -1
- package/dist/webcomponents/p-2d27d054.entry.js +0 -1
- package/dist/webcomponents/p-332bd5ab.entry.js +0 -1
- package/dist/webcomponents/p-351c7fa3.entry.js +0 -1
- package/dist/webcomponents/p-3f209fcc.entry.js +0 -1
- package/dist/webcomponents/p-427881b1.entry.js +0 -1
- package/dist/webcomponents/p-46769ec3.entry.js +0 -1
- package/dist/webcomponents/p-47cd431c.js +0 -1
- package/dist/webcomponents/p-4acfed0d.entry.js +0 -1
- package/dist/webcomponents/p-4bcfdb99.entry.js +0 -1
- package/dist/webcomponents/p-4e122ace.js +0 -1
- package/dist/webcomponents/p-5d177a30.js +0 -1
- package/dist/webcomponents/p-64a1ae2c.entry.js +0 -1
- package/dist/webcomponents/p-67aef066.entry.js +0 -1
- package/dist/webcomponents/p-6ad11a9f.entry.js +0 -1
- package/dist/webcomponents/p-6bc01617.js +0 -1
- package/dist/webcomponents/p-6e8be579.entry.js +0 -1
- package/dist/webcomponents/p-73323a41.entry.js +0 -1
- package/dist/webcomponents/p-73619f0a.js +0 -1
- package/dist/webcomponents/p-74d6e182.entry.js +0 -1
- package/dist/webcomponents/p-7aff48a1.entry.js +0 -1
- package/dist/webcomponents/p-7bddbee4.js +0 -1
- package/dist/webcomponents/p-87ce7b69.js +0 -1
- package/dist/webcomponents/p-8d61499c.entry.js +0 -1
- package/dist/webcomponents/p-948b7710.entry.js +0 -1
- package/dist/webcomponents/p-96bc127e.entry.js +0 -1
- package/dist/webcomponents/p-98b027b7.entry.js +0 -1
- package/dist/webcomponents/p-a3df6c3e.entry.js +0 -1
- package/dist/webcomponents/p-a5008b32.entry.js +0 -1
- package/dist/webcomponents/p-a59636ed.js +0 -1
- package/dist/webcomponents/p-a7b04e24.js +0 -1
- package/dist/webcomponents/p-ac2588af.entry.js +0 -1
- package/dist/webcomponents/p-b78da082.entry.js +0 -1
- package/dist/webcomponents/p-b86e804e.entry.js +0 -1
- package/dist/webcomponents/p-ba202e33.js +0 -1
- package/dist/webcomponents/p-c358b253.entry.js +0 -1
- package/dist/webcomponents/p-ca6214ca.entry.js +0 -1
- package/dist/webcomponents/p-cb8f7bf4.js +0 -1
- package/dist/webcomponents/p-ce2de434.entry.js +0 -1
- package/dist/webcomponents/p-dc6e1e5f.entry.js +0 -1
- package/dist/webcomponents/p-f2158e48.entry.js +0 -1
- package/dist/webcomponents/p-f3867b82.entry.js +0 -1
- package/dist/webcomponents/p-f5a7a7d1.entry.js +0 -1
- package/dist/webcomponents/p-fc3daedd.js +0 -1
- package/dist/webcomponents/p-fd6619d0.entry.js +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { FormController } from '../../../../ui-components/form/form';
|
|
3
|
-
import { ComponentErrorEvent, ComponentFormStepCompleteEvent } from '../../../../api/ComponentEvents';
|
|
4
|
-
import { Business } from '../../../../api/Business';
|
|
5
|
-
import { FileSelectEvent } from '../../../../components';
|
|
6
|
-
import { EntityDocument, EntityDocumentStorage } from '../../../../api/Document';
|
|
7
|
-
export declare class BusinessDocumentFormStep {
|
|
8
|
-
formController: FormController;
|
|
9
|
-
errors: any;
|
|
10
|
-
existingDocuments: any;
|
|
11
|
-
paymentVolume: string;
|
|
12
|
-
business: Business;
|
|
13
|
-
documentData: EntityDocumentStorage;
|
|
14
|
-
renderState: 'loading' | 'error' | 'success';
|
|
15
|
-
authToken: string;
|
|
16
|
-
businessId: string;
|
|
17
|
-
allowOptionalFields?: boolean;
|
|
18
|
-
stepCompleteEvent: EventEmitter<ComponentFormStepCompleteEvent>;
|
|
19
|
-
errorEvent: EventEmitter<ComponentErrorEvent>;
|
|
20
|
-
formLoading: EventEmitter<boolean>;
|
|
21
|
-
private api;
|
|
22
|
-
get businessEndpoint(): string;
|
|
23
|
-
get documentEndpoint(): string;
|
|
24
|
-
componentWillLoad(): void;
|
|
25
|
-
inputHandler: (name: string, value: string) => void;
|
|
26
|
-
private fetchData;
|
|
27
|
-
initializeFormController: () => void;
|
|
28
|
-
createDocumentRecord: (docData: EntityDocument) => Promise<boolean>;
|
|
29
|
-
handleDocRecordResponse: (docData: EntityDocument, response: any) => boolean;
|
|
30
|
-
uploadDocument: (docData: EntityDocument) => Promise<boolean>;
|
|
31
|
-
handleUploadResponse: (response: any) => boolean;
|
|
32
|
-
storeFiles: (e: CustomEvent<FileSelectEvent>) => void;
|
|
33
|
-
sendData: (onSuccess?: () => void) => Promise<void>;
|
|
34
|
-
validateAndSubmit({ onSuccess }: {
|
|
35
|
-
onSuccess: any;
|
|
36
|
-
}): Promise<void>;
|
|
37
|
-
get isLoading(): boolean;
|
|
38
|
-
get isError(): boolean;
|
|
39
|
-
get documentsOnFile(): any;
|
|
40
|
-
get formInputs(): any;
|
|
41
|
-
render(): any;
|
|
42
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FileSelectEvent } from '../../../../api/Document';
|
|
2
|
-
export declare class BusinessDocumentUploadInputGroup {
|
|
3
|
-
paymentVolume: string;
|
|
4
|
-
inputHandler: (name: string, value: string) => void;
|
|
5
|
-
storeFiles: (e: CustomEvent<FileSelectEvent>) => void;
|
|
6
|
-
errors: any;
|
|
7
|
-
inputConfigs: {
|
|
8
|
-
name: string;
|
|
9
|
-
label: string;
|
|
10
|
-
documentType: import("../../../../api/Document").EntityDocumentType;
|
|
11
|
-
helpText: string;
|
|
12
|
-
}[];
|
|
13
|
-
getInputGroup(): {
|
|
14
|
-
name: string;
|
|
15
|
-
label: string;
|
|
16
|
-
documentType: import("../../../../api/Document").EntityDocumentType;
|
|
17
|
-
helpText: string;
|
|
18
|
-
}[];
|
|
19
|
-
componentWillLoad(): void;
|
|
20
|
-
render(): any;
|
|
21
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { EntityDocumentType } from "../../../../api/Document";
|
|
2
|
-
export declare const inputConfigurations: {
|
|
3
|
-
voidedCheck: {
|
|
4
|
-
name: string;
|
|
5
|
-
label: string;
|
|
6
|
-
documentType: EntityDocumentType;
|
|
7
|
-
helpText: string;
|
|
8
|
-
};
|
|
9
|
-
bankStatements: {
|
|
10
|
-
name: string;
|
|
11
|
-
label: string;
|
|
12
|
-
documentType: EntityDocumentType;
|
|
13
|
-
helpText: string;
|
|
14
|
-
};
|
|
15
|
-
balanceSheet: {
|
|
16
|
-
name: string;
|
|
17
|
-
label: string;
|
|
18
|
-
documentType: EntityDocumentType;
|
|
19
|
-
helpText: string;
|
|
20
|
-
};
|
|
21
|
-
governmentId: {
|
|
22
|
-
name: string;
|
|
23
|
-
label: string;
|
|
24
|
-
documentType: EntityDocumentType;
|
|
25
|
-
helpText: string;
|
|
26
|
-
};
|
|
27
|
-
profitAndLossStatement: {
|
|
28
|
-
name: string;
|
|
29
|
-
label: string;
|
|
30
|
-
documentType: EntityDocumentType;
|
|
31
|
-
helpText: string;
|
|
32
|
-
};
|
|
33
|
-
ss4: {
|
|
34
|
-
name: string;
|
|
35
|
-
label: string;
|
|
36
|
-
documentType: EntityDocumentType;
|
|
37
|
-
helpText: string;
|
|
38
|
-
};
|
|
39
|
-
other: {
|
|
40
|
-
name: string;
|
|
41
|
-
label: string;
|
|
42
|
-
documentType: EntityDocumentType;
|
|
43
|
-
helpText: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const businessDocumentSchema: (volume: string, documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
|
|
2
|
-
voided_check: {};
|
|
3
|
-
government_id: {};
|
|
4
|
-
ss4: {};
|
|
5
|
-
other: {};
|
|
6
|
-
balance_sheet: {};
|
|
7
|
-
bank_statement: {};
|
|
8
|
-
profit_and_loss_statement: {};
|
|
9
|
-
}, import("yup").AnyObject, {
|
|
10
|
-
voided_check: undefined;
|
|
11
|
-
government_id: undefined;
|
|
12
|
-
ss4: undefined;
|
|
13
|
-
other: undefined;
|
|
14
|
-
balance_sheet: undefined;
|
|
15
|
-
bank_statement: undefined;
|
|
16
|
-
profit_and_loss_statement: undefined;
|
|
17
|
-
}, "">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-2783e363.js";import{f as r,g as a,j as n}from"./p-ba202e33.js";const t=(t,o)=>s("button",Object.assign({class:`btn btn-${t.variant}`,onClick:t.clickHandler,part:`${{primary:a,secondary:n}[t.variant]} ${t.isLoading?r:""}`},t),t.isLoading?s("div",{class:"spinner-border spinner-border-sm",role:"status",part:"button-spinner"},s("span",{class:"visually-hidden"},"Loading...")):o);export{t as B}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-5d0763a5.js";import{p as a}from"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{a as i,C as r}from"./p-14c91ffd.js";import{y as c,z as h}from"./p-ba202e33.js";import{T as o,a as d,b as p,c as n,d as b}from"./p-730e8425.js";import{p as f,a as m}from"./p-4c4f9e3b.js";import{o as u,q as l}from"./p-9f773228.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-5d177a30.js";import"./p-f65abd18.js";import"./p-411382f3.js";import"./p-f20b6ce1.js";const y=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:i.FETCH_ERROR,message:"Failed to download CSV",severity:r.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:o.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:o.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payouts.find((t=>t.id===s));this.clickEvent.emit({name:o.row,data:e})},this.getPayouts=void 0,this.getSubAccounts=void 0,this.getPayoutCSV=void 0,this.columns=void 0,this.payouts=[],this.payoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=a,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new d(this.payouts,this.columns,f,m(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),u("set",(()=>{this.pagingParams={}})),u("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.requestParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get requestParams(){return Object.assign(Object.assign({},l),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"c546790efb9cc49a78063b3761a9c92038acedd5"},e("div",{key:"60cc337e0c1c4eb7eb59599cdd0520e4031d1ce9",class:"table-wrapper",part:"table-wrapper"},e("table",{key:"e7188291031c23dd5bb7f843b4adebb2c5f2675e",class:"table table-hover",part:c},e("thead",{key:"eb3a3b5af4016ae73da8af381e778fe433e683c6",class:"table-head sticky-top",part:"table-head"},e("tr",{key:"9352fcc352a8ea33aa1d49844e092f89a9863ce9",class:"table-light text-nowrap",part:"table-head-row"},this.payoutsTable.columnData.map((t=>t)))),e("tbody",{key:"c924a2a65215845c119f3339b7905a6d7c3cc1fa",class:"table-body"},e(p,{key:"1d811e44a1319a102a0c56a62c56dda13eb6463e",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"4dacb3d2cf264c1c367a465cb04221be6b2f1e21",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(b,{key:"b294b854e12adcf39c32aaaa34b260775c5195b3",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"668400d517551fa89af74f655befc11a091a0de0",class:"sticky-bottom"},e("tr",{key:"b59f6342dccf4c34cbdbddcce7cb4e1c12116fe1",class:"table-light align-middle"},e("td",{key:"022afdd48ae81ec33f85c90e045d197f0e2f90ec",part:h,colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"a7e7a1ccdc238af532608626b25123fcd93a6206",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{queryParams:["updateOnPropChange"],pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{y as payouts_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as o}from"./p-2783e363.js";import{F as r}from"./p-ba202e33.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-5d0763a5.js";import{p as a}from"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{y as i,z as r}from"./p-ba202e33.js";import{T as h,a as c,b as o,c as d,d as n}from"./p-730e8425.js";import{c as b,a as p}from"./p-39177d5a.js";import{o as f,q as u}from"./p-16ba9bea.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-5d177a30.js";import"./p-411382f3.js";import"./p-f20b6ce1.js";const m=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:h.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:h.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:h.row,data:e})},this.getCheckouts=void 0,this.getSubAccounts=void 0,this.columns=void 0,this.checkouts=[],this.checkoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=a,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new c(this.checkouts,this.columns,b,p),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),f("set",(()=>{this.pagingParams={}})),f("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.requestParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get requestParams(){return Object.assign(Object.assign({},u),this.pagingParams)}get subAccountParams(){let t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"910d95f94623ddd9e90a182a7a47e7dfdff1d9a6"},e("div",{key:"c296c31fe48bec06067215f6aa4cfb1a9d1b681a",class:"table-wrapper"},e("table",{key:"dddd43e74de4989261b8014d2c66cba7c26e9d98",class:"table table-hover",part:i},e("thead",{key:"4eabd9c8687fbf316420c9a838a95016b20f12dd",class:"table-head sticky-top"},e("tr",{key:"2cdd7f438099613e5a670343723b883470a65dbd",class:"table-light text-nowrap"},this.checkoutsTable.columnData.map((t=>t)))),e("tbody",{key:"e3fd8f783e0e405d18bc120bf8c2ca4e2ca25f15",class:"table-body"},e(o,{key:"ec8e73a90b9951b5fba78651fdd9a93b7531ba49",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(d,{key:"6b1ebf8bbd62b0ba9c7032be47c87b929bc413db",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(n,{key:"a44e8985fb208b91635afe4910fdce5fb94d17e7",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"05ac7e9796a7b4e4450151e762a409c050fc037f",class:"sticky-bottom"},e("tr",{key:"d6135d93dafeee69c6d9a12b9bd35e8c77ec3c5a",class:"table-light align-middle"},e("td",{key:"ad7b4df45f54519b759797f665bcfa68a1cd512d",part:r,colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"3c97cf5daeb90e9b9a881280f25e4307b7392bcf",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{queryParams:["updateOnPropChange"],pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{m as checkouts_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as r}from"./p-2783e363.js";import{d as t}from"./p-ba202e33.js";const e=e=>{const{errorText:o,name:s}=e;return o?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},o):null};export{e as F}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-2783e363.js";import{q as t,c as l}from"./p-16ba9bea.js";import{S as s}from"./p-bfe9748b.js";import"./p-f20b6ce1.js";const c=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a}}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:"created"},{label:"Completed",value:"completed"},{label:"Attempted",value:"attempted"},{label:"Expired",value:"expired"}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:"ecom"},{label:"BNPL",value:"bnpl"}]}render(){return a(s,{key:"5d3a970578bdcb121fbc966bded802f3a7046898"},a("table-filters-menu",{key:"f0579a967918b8cf6147123878bfd6d4077312a3",params:Object.assign({},t),clearParams:l},a("div",{key:"a145922ee7ed0d74410308fec6ab4a697bb6dcf1",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"62e82a486e74ffb37bf3421a90927570c0676cfc",class:"p-2"},a("form-control-select",{key:"71b758acac7d47971dafdc64325d8f5940ad042b",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:t.status||""})),a("div",{key:"1cafc77cd220be576b0f6470e7606037ea64ca13",class:"p-2"},a("form-control-select",{key:"337beb5798e4db1316e2fffa2a13fa261bb2781b",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:t.payment_mode||""})))))}};export{c as justifi_checkouts_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as i}from"./p-2783e363.js";import{l as a,c as d,b as h,M as o,a as r}from"./p-ba202e33.js";import{F as l}from"./p-0d7e7957.js";const c=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})},this.isFocused=!1,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,this.showTime=void 0,this.maxDate=this.currentDate}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=d;return this.errorText&&(t=h),this.disabled&&(t=o),this.isFocused&&(t=r),t}render(){return s(i,{key:"079e8e9be2b4003c29926a3f29794fdcb655e873"},s("div",{key:"ccdbde4bb2a14d719a232309cb8df0ddd55d6677",class:"form-group d-flex flex-column"},s("div",{key:"2dcd3e2cbeef153d1c3c6a3b55f9e68a4ae73e47",class:"d-flex gap-2"},s("label",{key:"8154626fc1f1bd3cbc85aed221dd1a8ad2bc1ec3",part:a,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"a15f0872945e62061707e78070507069599db962",helpText:this.helpText})),s("input",{key:"a63d12eba9bb0065a48f3087133447d408de4e55",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(l,{key:"b7cdabdf444c9e07dda46f376e3f6372164dfeae",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{c as form_control_date}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-2783e363.js";import{c as s,d as o,F as a}from"./p-5844a0f0.js";import{A as n,c as r}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{C as d}from"./p-525db3e8.js";import{S as c}from"./p-bfe9748b.js";import"./p-74736657.js";import"./p-abdbcd8e.js";const f=s().shape({amount:o().required("Amount is required").typeError("Amount must be a number").positive("Amount must be positive").test("amount","Refund amount cannot be more than the original payment amount",(function(t){return t<=this.options.context.amount})).nullable()}),m=class{constructor(i){t(this,i),this.submitted=e(this,"submitted",7),this.authToken=void 0,this.paymentId=void 0,this.amount=0,this.submitButtonText="Submit",this.withButton=void 0,this.refundInfoText=void 0,this.errors={},this.isSubmitting=!1}componentWillLoad(){this.formController=new a(f),this.formController.setInitialValues({amount:this.amount,message:""}),this.initializeApi()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}async handleSubmit(t){t.preventDefault(),this.formController.validateAndSubmit(this.submitRefund.bind(this),{amount:this.amount})}async submitRefund(){this.isSubmitting=!0;const t=this.formController.values.getValue();try{await this.api.post(`payments/${this.paymentId}/refunds`,t),this.submitted.emit(t)}catch(t){console.error("Error submitting refund:",t),this.submitted.emit(t)}finally{this.isSubmitting=!1}}handleInput(t,e){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}initializeApi(){this.authToken||console.warn("Warning: Missing auth-token."),this.api=n({authToken:this.authToken,apiOrigin:r.proxyApiOrigin})}render(){var t;return i(c,{key:"a337107e01f347769c24535d875ae75e7cfff526"},i("h1",{key:"254b014414fffc6e3af12d22c50528915ea4d698"},"Refund"),this.refundInfoText&&i("div",{key:"c8eee08dfdd58a87add1a8bbf6b76521db955d32",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},i("img",{key:"8374d6e0854c35e41429b588ef373c7ed2e2368d",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),i("p",{key:"0c4412de09f5538e3f125e9413b75b416c10f820",class:"m-0",innerHTML:this.refundInfoText})),i("form",{key:"5c51fdc06f7c57851e4db6f797a830602cb31b33",onSubmit:t=>this.handleSubmit(t),class:"d-grid gap-4"},i("div",{key:"1b1e09d20d0b191491cdbcea601762c6c967d56b",class:"form-group"},i("form-control-monetary",{key:"f90e440f11213dfe4ae84675bf8ca22dc67b0e12",name:"amount",label:"Refund Amount",defaultValue:(null===(t=this.amount)||void 0===t?void 0:t.toString())||"",maskOptions:d.DECIMAL,inputHandler:(t,e)=>this.handleInput(t,e),errorText:this.errors.amount})),i("div",{key:"d61ef9b10a1ef128afaee01f91c70fb621f50cb0",class:"form-group"},i("form-control-text",{key:"bbe2fc33746f333cbc35fa25b2852219e2dbfbef",name:"notes",label:"Additional Notes",inputHandler:(t,e)=>this.handleInput(t,e),errorText:this.errors.notes})),this.withButton&&i("div",{key:"5ca8e922e08881739b403bd9cc4ab21719793961",class:"form-group d-flex flex-row-reverse"},i("button",{key:"2d971109b53c27779bcf11cd38d3b1b073ecd65d",type:"submit",disabled:!!this.isSubmitting,class:"btn btn-primary ml-auto"},this.submitButtonText))))}};export{m as justifi_refund_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-2783e363.js";import{h as a}from"./p-ba202e33.js";import{c as t}from"./p-f20b6ce1.js";const e=t=>s("h2",{class:`header-2 ${null==t?void 0:t.class}`,part:a},t.text),r=t({}),{state:o,on:p}=r,i=t({}),{state:l}=i,m=()=>{let s=!0;return Object.keys(o).forEach((a=>{null===o[a]?(l[a]=!0,s=!1):l[a]=!1})),{isValid:s}};export{e as H,o as a,l as b,p as i,m as v}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as o,c as r}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import{S as s}from"./p-2ce40098.js";import{C as c}from"./p-14c91ffd.js";import{g as t,a}from"./p-8115b2f4.js";class n{async fetchSubAccounts(s,c,t,a){a||(a=r.proxyApiOrigin);const n={Account:s};return o({authToken:c,apiOrigin:a}).get("sub_accounts",t,null,n)}}const i=({accountId:o,authToken:r,service:n,apiOrigin:i})=>async({params:e,onSuccess:p,onError:u})=>{var m,f;try{const d=await n.fetchSubAccounts(o,r,e,i);if(d.error){return u({error:t(d.error),code:a(null===(f=d.error)||void 0===f?void 0:f.code),severity:c.ERROR})}{const o=Object.assign({},d.page_info);p({subAccounts:(null===(m=d.data)||void 0===m?void 0:m.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const r=a(null==o?void 0:o.code);return u({error:o.message||o,code:r,severity:c.ERROR})}};export{n as S,i as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e}from"./p-2783e363.js";import{q as d,c as t}from"./p-9f773228.js";import{S as s}from"./p-bfe9748b.js";import{d as r,c}from"./p-74736657.js";import"./p-f20b6ce1.js";const f=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{d[a]=e},this.handleDateInput=(a,e)=>{const d=r(e,{setEndOfDay:!0});this.setParamsOnChange(a,d)}}render(){return e(s,{key:"6cbfeb85a953944c4e3d5a793ba5ef01541d6a38"},e("table-filters-menu",{key:"08acac404fa3d3cdf0a12d8c1db26bdba741196c",params:Object.assign({},d),clearParams:t},e("div",{key:"fed242f0aa7a90027c54ac614938c94417f1f092",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"052f23dbc74cec6ad5d26122a8b51dc4f0e5abad",class:"p-2"},e("form-control-date",{key:"19bbb0f862ac86820ed8422a1df87475b24a07de",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:c(d.created_after,{showInputDate:!0})})),e("div",{key:"890b7ddad9586c2f60263e2da55dd30017925715",class:"p-2"},e("form-control-date",{key:"0d6f1434667344b9845d3a71a22b6dd9425ac6ce",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:c(d.created_before,{showInputDate:!0})})))))}};export{f as justifi_payouts_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-2783e363.js";import{m as o,P as e}from"./p-73619f0a.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import{P as r}from"./p-2ce40098.js";import{C as a,a as p}from"./p-14c91ffd.js";import{g as h,a as d}from"./p-8115b2f4.js";import{E as n}from"./p-44604a45.js";import{c,J as m}from"./p-9069fab5.js";import"./p-2d801915.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-ba202e33.js";import"./p-c2efe406.js";const u=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(){c(),this.analytics=new m(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:e})=>{var p;try{const n=await i.fetchPayout(t,s);n.error?e({error:h(n.error),code:d(null===(p=n.error)||void 0===p?void 0:p.code),severity:a.ERROR}):o(new r(n.data))}catch(t){e({error:h(t),code:d(null==t?void 0:t.code),severity:a.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new e}),this.getPayoutCSV=o({authToken:this.authToken,service:new e})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:p.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{u as justifi_payout_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-2783e363.js";import{P as e}from"./p-47cd431c.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import{P as r}from"./p-83aa33f0.js";import"./p-2ce40098.js";import{C as o,a}from"./p-14c91ffd.js";import{g as p,a as n}from"./p-8115b2f4.js";import{E as h}from"./p-44604a45.js";import{c,J as m}from"./p-9069fab5.js";import"./p-2d801915.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-ba202e33.js";import"./p-c2efe406.js";const d=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event",7),this.paymentService=new e,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.paymentId=void 0,this.authToken=void 0,this.getPaymentDetails=void 0,this.errorMessage=null}componentWillLoad(){c(),this.analytics=new m(this),this.initializeGetPaymentDetails()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=(({id:t,authToken:s,service:i})=>async({onSuccess:e,onError:a})=>{var h;try{const c=await i.fetchPayment(t,s);c.error?a({error:p(c.error),code:n(null===(h=c.error)||void 0===h?void 0:h.code),severity:o.ERROR}):e({payment:new r(c.data)})}catch(t){const s=n(null==t?void 0:t.code);a({error:p(t),code:s,severity:o.ERROR})}})({id:this.paymentId,authToken:this.authToken,service:new e}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:o.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_payment_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as a,c as t}from"./p-2783e363.js";import{b as s,a as d,s as i}from"./p-74736657.js";import{M as c}from"./p-d6e51c2f.js";import{a as b,b as f,D as l,c as h,C as r,E as o}from"./p-44604a45.js";import{S as y}from"./p-bfe9748b.js";import{S as n}from"./p-4e122ace.js";import"./p-411382f3.js";import"./p-ba202e33.js";const v=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),k=class{constructor(e){a(this,e),this.errorEvent=t(this,"error-event",7),this.getPaymentDetails=void 0,this.payment=void 0,this.loading=!0,this.errorMessage=void 0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.loading=!1,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t}),this.loading=!1}})}render(){return e(y,{key:"714fd2a97e2879dddbaacda6d5289b3985aaeea5"},this.loading&&e(v,{key:"7f6d24755cea9f3b86cdcaecec470513532f37cc"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"9f3403ce5744053a04c1a6cde0c58a41f15547ac","error-message":this.errorMessage},e(b,{key:"310f3e1087843e2c10aa49b9fb7e6be734168f1d",slot:"head-info",badge:c(this.payment.status),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(f,{key:"5ed10250e7e04961e2fc57a017eea58e26429378",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${d(this.payment.updated_at)}`}),e(f,{key:"cd304828a7e38c8ad9fceb15b56391489a9eb938",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${d(this.payment.created_at)}`}),e(f,{key:"5b70635442c6c76d978d40095d81cda6f7b00cfc",title:"ID",value:this.payment.id})),e("div",{key:"54558d6e59548048a548a83578d1a94694515bde",slot:"detail-sections"},e(l,{key:"0780b044b54ba041e9632f94acdfe71411454297",sectionTitle:"Details"}),e("div",{key:"e1426b161aad05e561414d6a4c77cb28d3e7c157",class:"d-table gap-2 w-100"},e(h,{key:"8a390a81e9b91d6582ee01a93743a8cb4fba57f4",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(h,{key:"8bffacbde88bd44cbdc213b7f24b93087e533670",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"78f5773c98118c39dab6df14fd9beafd7f06df1d",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(h,{key:"c620ecf5b7dd9f9896a4a454cc8b507b4c344f45",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(h,{key:"4b7529e27aecf2560d305dc6f906b4ae1f26c2d2",title:"Status",value:c(this.payment.status)}),e(h,{key:"1807f3f518b3ddf1296f8c2802b8e66a7a7e8401",title:"Payment ID",value:this.payment.id}),e(h,{key:"79183af038116750f07bd65bc843a879a6275961",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"a2a6b8a345068a57e8e647b5f5efa9da5c870697",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(h,{key:"e3c7479795cd85029e1f90b4f7e0e5cfd0cf9099",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[e(l,{key:"7d49ed552d5b2dc87e6596e025e9c877b838b25a",sectionTitle:"Payment Method"}),e("div",{key:"9a435008ea2746b11281bd237e9a38f471e9a11d",class:"d-table gap-2 w-100"},e(h,{key:"9b22fcb2e38f690dfb963b783d2139813a920ddc",title:"ID",value:this.payment.payment_method.card.id}),e(h,{key:"27ed56e879c9598226373f9086f79cd0cc72a9fe",title:"Payment Type",value:"Card"}),e(h,{key:"9868b544973455fad8af21f4de2936a6d61b21a7",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(h,{key:"80716a8fe5b7bd933b930b35674dfe111948ef62",title:"Brand",value:i(this.payment.payment_method.card.brand)}),e(h,{key:"f0c0e2107b079bc6c898c91e5bd6a111b327c419",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(l,{key:"1f2d289d3c79b1c496f10ded116ab193d9c4ade0",sectionTitle:"Payment Method"}),e("div",{key:"9b898ec3ccf34e225d465b46a0a645d46f696c91",class:"d-table gap-2 w-100"},e(h,{key:"71acc9fe7bca4f922075a33968229919b9660ec0",title:"ID",value:this.payment.payment_method.bank_account.id}),e(h,{key:"cd62b8e0e55a9888f1d06a107173516af1f65e9e",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(h,{key:"22e2dcefcb76363ca9254392e825a4612c65ac1c",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(h,{key:"a6e633cb3e5b82ed9c887b16a346dac257db22dc",title:"Account Owner",value:this.payment.payment_method.payersName}))],e(l,{key:"10d02e4d3e09b50644f7a5c1bb0beca7f0747c0e",sectionTitle:"Metadata"}),e("div",{key:"119445b2570c4b736b4c9bb0daf88a3047b3ee97",class:"d-table gap-2 w-100"},e(r,{key:"794df4cfc8808ea62e6b97127fee7349698e264e",metadata:this.payment.metadata})))))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as a,H as i,g as e}from"./p-2783e363.js";import{i as o,a as h,b as r,c as d,l as n}from"./p-ba202e33.js";import{F as l}from"./p-6bc01617.js";import{F as c}from"./p-0d7e7957.js";const f=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target,a=s.getAttribute("name");this.inputHandler(a,s.value),this.formControlInput.emit({name:a,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")},this.isFocused=!1,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.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.isFocused?h:this.errorText?r:d}render(){return a(i,{key:"84a9fa872fcd778c9b54d528de7ac170ea2f6173"},a("div",{key:"263566ddbbbd5c064348bc57c1991302e933971a",class:"form-group d-flex flex-column"},a("label",{key:"0401bdc8bb45d6e0367afd51a36582c9556443f6",part:n,class:"form-label",htmlFor:this.name},this.label),a("input",{key:"bac419a78477547420a8e1821fe02e46d7bfb12d",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),a(l,{key:"0cd70acee81da1c14fed139a1f0550aaadbb2671",helpText:this.helpText,name:this.name}),a(c,{key:"2a71ab292360e2d360a7e698f1a8031562ad5119",errorText:this.errorText,name:this.name})))}get el(){return e(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_number}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as n,H as t,g as i}from"./p-2783e363.js";import{c as o,F as a}from"./p-5844a0f0.js";import{u as r,l as s,k as c,m as d,n as f,q as l}from"./p-cb8f7bf4.js";import{S as u}from"./p-6078a370.js";import{n as h}from"./p-e3c22aa9.js";import{F as m}from"./p-0d7e7957.js";import{p as b}from"./p-c2efe406.js";import{a as w}from"./p-4cc3c7f9.js";import{i as p,b as g,a as y,c as v,l as k}from"./p-ba202e33.js";import"./p-0ea387a2.js";import"./p-275f2154.js";import"./p-1ff8810b.js";import"./p-f20b6ce1.js";const x=o({name:r.required("Enter full name"),address_line1:s.required("Enter street address"),address_line2:c.nullable(),address_city:d.required("Enter city"),address_state:f.required("Select state"),address_postal_code:l.required("Enter postal code")}),j=o({address_postal_code:l.required("Enter postal code")}),I=class{constructor(n){e(this,n),this.inputHandler=(e,n)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:n}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new a(x)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate()}}render(){const e=this.formController.getInitialValues();return n(t,{key:"2763b7ac25e51e9d206d6a0bc6ed28ec13f54cc3"},n("form",{key:"758b52530cc945e9c3ce5a2ee11838a3776abc6b"},n("fieldset",{key:"2ab7312e043d3cbc03993f11ac5692692319af4b"},this.legend&&n("legend",{key:"8e324a5bb2fabc975742e866341a3434e1950a3c"},this.legend),n("div",{key:"fafd0d9fa2784341dc80fea8c53d081d2c84af5d",class:"row gy-3"},n("div",{key:"3aa18a756f3ea6ff9dcfa061cd845c714cab3540",class:"col-12"},n("form-control-text",{key:"4b75c876eef667f3d353c802376774e7c1af1b84",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),n("div",{key:"dddc81024aef4757c18b31db84204fc9e70f9ab1",class:"col-12"},n("form-control-text",{key:"d9d63301e3d87885de9414164c820df2013cb6ae",name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),n("div",{key:"f96675211a63fc785b9e759aef44f4dd4b22e0a3",class:"col-12"},n("form-control-text",{key:"f2c6a24150d640f9efbfa1748f577e32550b3507",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),n("div",{key:"83cf74afae2c4e899151cc5461a06632fef3c756",class:"col-12"},n("form-control-text",{key:"cbbf7dfac17eb69b2c9e80534051822cd4f94afd",name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),n("div",{key:"9331b691855dc4f9a60b746089552228a5b12942",class:"col-12"},n("form-control-select",{key:"f0f726fe2633ab45754691726a0008c4e50f41ac",name:"address_state",label:"State",options:u,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),n("div",{key:"0d1d00ca86d09a370330cd9f3807783a8cd981a4",class:"col-12"},n("form-control-text",{key:"0e43cfe70ca05a3d795d82f554453d12562b2ec9",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:h}))))))}};var z,O={exports:{}};z=O,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,t,i=0,o=!1,a=!1,r=7,s="[iFrameSizer]",c=s.length,d=null,f=window.requestAnimationFrame,l=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),u={},h=null,m=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){x("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){C(t,e)})).end()}):k("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],P):z.exports=P(),window.iFrameResize=window.iFrameResize||P()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,t){e.addEventListener(n,t,!1)}function g(e,n,t){e.removeEventListener(n,t,!1)}function y(e){return u[e]?u[e].log:o}function v(e,n){j("log",e,n,y(e))}function k(e,n){j("info",e,n,y(e))}function x(e,n){j("warn",e,n,!0)}function j(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return s+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),t)}function I(e){function n(){t("Height"),t("Width"),N((function(){H(_),S(W),m("onResized",_)}),_,"init")}function t(e){var n=Number(u[W]["max"+e]),t=Number(u[W]["min"+e]),i=e.toLowerCase(),o=Number(_[i]);v(W,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,v(W,"Set "+i+" to min value")),o>n&&(o=n,v(W,"Set "+i+" to max value")),_[i]=""+o}function i(e){return C.slice(C.indexOf(":")+r+e)}function o(e,n){var t,i;t=function(){var t,i;V("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=_.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},b[i=n]||(b[i]=setTimeout((function(){b[i]=null,t()}),32))}function a(e){var n=e.getBoundingClientRect();return T(W),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function f(e){var n=e?a(_.iframe):{x:0,y:0},t={x:Number(_.width)+n.x,y:Number(_.height)+n.y};v(W,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(d=t,l(),v(W,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):x(W,"Unable to scroll to requested position, window.parentIFrame not found")}function l(){!1===m("onScroll",d)?R():S(W)}function h(e){var n={};if(0===Number(_.width)&&0===Number(_.height)){var t=i(9).split(":");n={x:t[1],y:t[0]}}else n={x:_.width,y:_.height};m(e,{iframe:_.iframe,screenX:Number(n.x),screenY:Number(n.y),type:_.type})}function m(e,n){return O(W,e,n)}var w,y,j,I,z,M,C=e.data,_={},W=null;"[iFrameResizerChild]Ready"===C?function(){for(var e in u)V("iFrame requested init",L(e),u[e].iframe,e)}():s===(""+C).slice(0,c)&&C.slice(c).split(":")[0]in u?(I=(j=C.slice(c).split(":"))[1]?parseInt(j[1],10):0,z=u[j[0]]&&u[j[0]].iframe,M=getComputedStyle(z),_={iframe:z,id:j[0],height:I+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(M)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(M),width:j[2],type:j[3]},u[W=_.id]&&(u[W].loaded=!0),(y=_.type in{true:1,false:1,undefined:1})&&v(W,"Ignoring init message from meta parent page"),!y&&function(e){var n=!0;return u[e]||(n=!1,x(_.type+" No settings for "+e+". Message was: "+C)),n}(W)&&(v(W,"Received: "+C),w=!0,null===_.iframe&&(x(W,"IFrame ("+_.id+") not found"),w=!1),w&&function(){var n,t=e.origin,i=u[W]&&u[W].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(v(W,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(v(W,"Checking connection is from: "+(n=u[W]&&u[W].remoteHost)),t===n)))throw new Error("Unexpected message received from: "+t+" for "+_.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(u[W]&&u[W].firstRun&&u[W]&&(u[W].firstRun=!1),_.type){case"close":F(_.iframe);break;case"message":c=i(6),v(W,"onMessage passed: {iframe: "+_.iframe.id+", message: "+c+"}"),m("onMessage",{iframe:_.iframe,message:JSON.parse(c)}),v(W,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":u[W].autoResize=JSON.parse(i(9));break;case"scrollTo":f(!1);break;case"scrollToOffset":f(!0);break;case"pageInfo":o(u[W]&&u[W].iframe,W),function(){function e(e,i){function a(){u[t]?o(u[t].iframe,t):n()}["scroll","resize"].forEach((function(n){v(t,e+n+" listener for sendPageInfo"),i(window,n,a)}))}function n(){e("Remove ",g)}var t=W;e("Add ",p),u[t]&&(u[t].stopPageInfo=n)}();break;case"pageInfoStop":u[W]&&u[W].stopPageInfo&&(u[W].stopPageInfo(),delete u[W].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",r=decodeURIComponent(t),(s=document.getElementById(r)||document.getElementsByName(r)[0])?(e=a(s),v(W,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),d={x:e.x,y:e.y},l(),v(W,"--")):window.top===window.self?v(W,"In page link #"+t+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(t):v(W,"In page link #"+t+" not found and window.parentIFrame not found");break;case"reset":E(_);break;case"init":n(),m("onInit",_.iframe);break;default:0===Number(_.width)&&0===Number(_.height)?x("Unsupported message received ("+_.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,t,r,s,c}())):k(W,"Ignored: "+C)}function O(e,n,t){var i=null,o=null;if(u[e]){if("function"!=typeof(i=u[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function M(e){delete u[e.id]}function F(e){var t=e.id;if(!1!==O(t,"onClose",t)){v(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){x(e)}O(t,"onClosed",t),v(t,"--"),M(e),n&&(n.disconnect(),n=null)}else v(t,"Close iframe cancelled by onClose event")}function T(n){null===d&&v(n,"Get page position: "+(d={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+d.y)}function S(e){null!==d&&(window.scrollTo(d.x,d.y),v(e,"Set page position: "+d.x+","+d.y),R())}function R(){d=null}function E(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),T(e.id),N((function(){H(e),V("reset","reset",e.iframe,e.id)}),e,"reset")}function H(e){function n(n){a||"0"!==e[n]||(a=!0,v(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(u).forEach((function(e){!function(e){function n(n){return"0px"===(u[e]&&u[e].iframe.style[n])}u[e]&&null!==u[e].iframe.offsetParent&&(n("height")||n("width"))&&V("Visibility change","resize",u[e].iframe,e)}(e)}))}function n(n){v("window","Mutation observed: "+n[0].target+" "+n[0].type),_(e,16)}var t,i=w();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",v(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):v("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;u[i]&&(u[i].sizeHeight&&t("height"),u[i].sizeWidth&&t("width"))}function N(e,n,t){t!==n.type&&f&&!window.jasmine?(v(n.id,"Requesting animation frame"),f(e)):e()}function V(e,n,t,i,o){var a,r=!1;u[i=i||t.id]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(v(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+(a=u[i]&&u[i].targetOrigin)),t.contentWindow.postMessage(s+n,a)):x(i,"["+e+"] IFrame("+i+") not found"),o&&u[i]&&u[i].warningTimeout&&(u[i].msgTimeout=setTimeout((function(){!u[i]||u[i].loaded||r||(r=!0,x(i,"IFrame has not responded within "+u[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),u[i].warningTimeout)))}function L(e){return e+":"+u[e].bodyMarginV1+":"+u[e].sizeWidth+":"+u[e].log+":"+u[e].interval+":"+u[e].enablePublicMethods+":"+u[e].autoResize+":"+u[e].bodyMargin+":"+u[e].heightCalculationMethod+":"+u[e].bodyBackground+":"+u[e].bodyPadding+":"+u[e].tolerance+":"+u[e].inPageLinks+":"+u[e].resizeFrom+":"+u[e].widthCalculationMethod+":"+u[e].mouseEvents}function C(t,a){function r(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],x(d,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var s,c,d=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(t.id=(n=a&&a.id||m.id+i++,null!==document.getElementById(n)&&(n+=i++),e=n),o=(a||{}).log,v(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);d in u&&"iFrameResizer"in t?x(d,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},u[d]=Object.create(null),u[d].iframe=t,u[d].firstRun=!0,u[d].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(r,e),function(e){for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(u[d][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:m[n])}(e),u[d]&&(u[d].targetOrigin=!0===u[d].checkOrigin?""===(n=u[d].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(a),function(){switch(v(d,"IFrame scrolling "+(u[d]&&u[d].scrolling?"enabled":"disabled")+" for "+d),t.style.overflow=!1===(u[d]&&u[d].scrolling)?"hidden":"auto",u[d]&&u[d].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=u[d]?u[d].scrolling:"no"}}(),function(){function e(e){var n=u[d][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,v(d,"Set "+e+" = "+t.style[e]))}function n(e){if(u[d]["min"+e]>u[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(u[d]&&u[d].bodyMargin)&&"0"!==(u[d]&&u[d].bodyMargin)||(u[d].bodyMarginV1=u[d].bodyMargin,u[d].bodyMargin=u[d].bodyMargin+"px"),s=L(d),(c=w())&&(n=function(e){if(!t.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&F(t)}))}))}));return n.observe(t.parentNode,{childList:!0}),n}(c)),p(t,"load",(function(){V("iFrame.onload",s,t,e,!0),(!u[d]||!u[d].firstRun)&&u[d]&&u[d].heightCalculationMethod in l&&E({iframe:t,height:0,width:0,type:"init"})})),V("init",s,t,e,!0),u[d]&&(u[d].iframe.iFrameResizer={close:F.bind(null,u[d].iframe),removeListeners:M.bind(null,u[d].iframe),resize:V.bind(null,"Window resize","resize",u[d].iframe),moveToAnchor:function(e){V("Move to anchor","moveToAnchor:"+e,u[d].iframe,d)},sendMessage:function(e){V("Send Message","message:"+(e=JSON.stringify(e)),u[d].iframe,d)}}))}function _(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function W(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visibility change"),_((function(){A("Tab Visible","resize")}),16))}function A(e,n){Object.keys(u).forEach((function(t){(function(e){return u[e]&&"parent"===u[e].resizeFrom&&u[e].autoResize&&!u[e].firstRun})(t)&&V(e,n,u[t].iframe,t)}))}function P(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),C(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!f;e+=1)f=window[n[e]+"RequestAnimationFrame"];f?f=f.bind(window):v("setup","RequestAnimationFrame not supported")}(),p(window,"message",I),p(window,"resize",(function(){v("window","Trigger event: resize"),_((function(){A("Window resize","resize")}),16)})),p(document,"visibilitychange",W),p(document,"-webkit-visibilitychange",W),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&x("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,i));break;case"object":n(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}();const M=O.exports;class F{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const t=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(t,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((t=>{const i=n=>{n.data.eventType===e&&(window.removeEventListener("message",i),t(n.data.data))};window.addEventListener("message",i),this.postMessage(e,n)}))}}const T=class{constructor(n){e(this,n),this.dispatchMessageEvent=e=>{const{eventType:n,data:t}=e.data;(null==t?void 0:t.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))},this.isFocused=!1,this.isValid=!0,this.errorText=void 0,this.iframeLoaded=!1,this.inputId=void 0,this.label=void 0,this.iframeOrigin=void 0}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,t){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:t,componentVersion:b.version})}initializeFrameCommunicationService(){var e;this.frameService=new F(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?p:this.isValid?this.isFocused?y:v:g}get style(){return this.isFocused?this.isValid?w.focused:w.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(w.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(t,{key:"0f84e1044b6bddb480dbb4b4fd2ba6f18d75a2a0",class:"form-group d-flex flex-column"},n("div",{key:"25e6e196ccf3973b9a382f09efe5997bfb4abd1b",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"eeddbc0a03692c053898b761fca84635cb3c9323",class:"form-label",htmlFor:"",part:k},this.label||""),n("div",{key:"ce10d714ca67511b059adc4fb942ed42885f0a1a",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},n("iframe",{key:"85bedd02d3013ad4973d3ecfa0a7c530fddf5a7a",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{M({log:!1,onResized:()=>{this.iframeLoaded=!0}},this.iframeElement)}})),n(m,{key:"6533642027fa5184e120452f19e5274476210301",errorText:this.errorText,name:this.inputId})))}get el(){return i(this)}},S=class{constructor(n){e(this,n),this.inputHandler=(e,n)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:n}))},this.legend=void 0,this.formController=void 0,this.billingInfo=void 0,this.errors={}}componentWillLoad(){this.formController=new a(j)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate()}}render(){const e=this.formController.getInitialValues();return n(t,{key:"e798e67c159b53a995e4a60246c6f6d6e872f1ec"},n("form",{key:"24d6980de772a360c0218e9ab50550dcee5786d5"},n("fieldset",{key:"9e990836becccdf5d12a9e15e2eb7f4078f74b08"},this.legend&&n("legend",{key:"12d445b392cf03114dbd2a37391ecc1b87304868"},this.legend),n("div",{key:"2d2fed9cf30b3869633b80b39b7684dfde66f6b7",class:"row gy-3"},n("div",{key:"8ec042863e646d5daffeb3fbb5395336406adcde",class:"col-12"},n("form-control-text",{key:"82a2c18c2a7eef7ba7ac46e53dfc9c975c8d28b7",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:h}))))))}};export{I as billing_form,T as iframe_input,S as postal_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-2783e363.js";import{d as i,e as r,f as a}from"./p-a7b04e24.js";import{I as o}from"./p-2bd8650b.js";import{F as d}from"./p-5844a0f0.js";import{O as h}from"./p-275f2154.js";import{i as c}from"./p-d1f78cb5.js";import{B as n}from"./p-04ce1f82.js";import{F as f}from"./p-ba202e33.js";import{B as l}from"./p-73f9be7c.js";import{S as b,P as m}from"./p-525db3e8.js";import{u,a as p,b as y}from"./p-7d85af5c.js";import"./p-14c91ffd.js";import"./p-8115b2f4.js";import"./p-2d801915.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-cb8f7bf4.js";import"./p-0ea387a2.js";const v=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"9d1b43ef74d1e2d33cc3145c152564eb297b3cee",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownerSubmitted=t(this,"ownerSubmitted",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new h(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?l.updateOwner:l.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:l.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new h(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(c("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"b7fc4c0d0fdf3a5aab0a246daffa59022255e6ae",onSubmit:this.validateAndSubmit},s("fieldset",{key:"eee56a5e2e26184086c1301576695b627a1f2ef4"},s("legend",{key:"b3f75638a502cca01da0ed54ec07660554dcd416",class:"fw-semibold fs-5",part:f},this.formTitle),s("br",{key:"0bc020cc7290615db3d3e1ec2b84d5af99ec86f0"}),s("div",{key:"2e7a09c9f4dffac21f2b3e1efe118542f18d89e8",class:"row gy-3"},s("owner-form-inputs",{key:"78ffd296d4ecf0d5f2e50a06fb392cbefb1c9dc7",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"73256017645b6987cd96006e5fe080402b0602d2",class:"d-flex gap-2 justify-content-start"},s(n,{key:"e2c288cf27ebc2d4dd9c29b2a2ed8e409d0c7564",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"d3d604b4416c8196181ec4fd34b254a0909b2aff",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"4ad0047c67825990c1e4c02d377901d11a7937fa"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{u(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{p(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"f54192149ae925bcd08b8408816fc41295ef00f4",class:"row gy-3"},s("div",{key:"1f70faf2c08ebf277b465cb1532276f7525aa47f",class:"col-12 col-md-8"},s("form-control-text",{key:"7bae6e4b330cbea14e0be40d1b35e804d62f5323",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"84cbbbf7cfb0e3c41c37b1194292dcb1f191298e",class:"col-12 col-md-4"},s("form-control-text",{key:"c106ea1b06e69d4b4fe3647cd2d0289185fae2e9",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"8040bd2c6f6d67763578117c9a46e8e82aa18abf",class:"col-12 col-md-6"},s("form-control-text",{key:"48aea09125f010bc799dc8d0e909f83c33972c3a",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"00195bf163c16d8052c97de866bda7ac610cb959",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"d02770dcabfc707691ce4262cbca00d30b78a211",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"c86d87082365b5daebce40e69f98a8813198eefd",class:"col-12 col-md-4"},s("form-control-date",{key:"cd2cfaf3c8a6fbb28719cb85ad4b3954ac2ff059",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"f77e5943b8e04dc20cf9c126f6ad8ee67e27ac12",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"3828035484d53d7267c7ce1686658eaba2495147",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"4a67ced4d2a6f2be7f437e59a119ab97ec8c3ffc",class:"col-12"},s("justifi-identity-address-form",{key:"e4fbe8bbd642d623f306236b83be7800db619506",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{v as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-2783e363.js";import{b as s,a as c}from"./p-74736657.js";import{a as i,b as d,D as f,c as b,C as o,E as r}from"./p-44604a45.js";import{B as l}from"./p-04ce1f82.js";import{S as h}from"./p-bfe9748b.js";import{M as y}from"./p-f65abd18.js";import{S as n}from"./p-4e122ace.js";import"./p-ba202e33.js";import"./p-411382f3.js";const v=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),u=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.getPayout=void 0,this.getPayoutCSV=void 0,this.payout=void 0,this.loading=!0,this.errorMessage=null}componentWillLoad(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}render(){var t;return e(h,{key:"ace7565dae883381e2668214e01cc949470f4a6a"},this.loading&&e(v,{key:"9412e6135da55bddc2964b87065f212bdb1399eb"}),!this.loading&&this.errorMessage&&r(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"df9b5bf40cc35a5366e9b1ed296b0e289a9f182c","error-message":this.errorMessage},e(i,{key:"64575c2f0be0beaf72094c0dfe9a343fdcd25c88",slot:"head-info",badge:y(null===(t=this.payout)||void 0===t?void 0:t.status),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(d,{key:"c95da0d064416dd0fbdff948c92dcd2b116e1da5",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${c(this.payout.updated_at)}`}),e(d,{key:"765da16cba8659fecc6a4c11b2856f8b1edc3a32",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${c(this.payout.created_at)}`}),e(d,{key:"ff60105de95f6ef897618a5e7cef2fb39257b9c5",title:"ID",value:this.payout.id}),e("div",{key:"8444116278f29220fe7260d6849ed7db2296d4b4",class:"m-4"},e(l,{key:"686e61a3ea27b62024e3544c32542e9ca710c96f",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"5d70b7fcd4ac63002659ffc08c3c18e4b18e3f46",slot:"detail-sections"},e(f,{key:"8d17ae90696880259707d0500873127c7f134339",sectionTitle:"Details"}),e("div",{key:"80111eb713f6b643a415aaf66accfdb9e279fe03",class:"d-table gap-2 w-100"},e(b,{key:"a7c7809a862b315960fd3f7aa5c73c45efb55512",title:"Date paid",value:s(this.payout.deposits_at)}),e(b,{key:"b9b03681675854eb3f0d1445f45b1e20a648ded4",title:"Statement Description",value:this.payout.description}),e(b,{key:"fa34b24385e0638d7ccd8ceb7382a1f113f0c966",title:"Payout Method",value:this.payout.delivery_method}),e(b,{key:"6acc6435f7f8b277abd35a8ac90e01556aaab18e",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(b,{key:"560cedeb5230503e74e90bb3e531aed21d317f6c",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(f,{key:"42e2d36cb570acad67366e65316a22dac8f4d4fc",sectionTitle:"Account"}),e("div",{key:"f2eebf080a48ba0d818363c09269689e201ed5fc",class:"d-table gap-2 w-100"},e(b,{key:"6064911935f9e3ef75db3ec7707dd3a182c98c5c",title:"ID",value:this.payout.account_id}),e(b,{key:"eb44916f2659dfc6d81f4e995b3f34527d15e6c2",title:"Account Type",value:this.payout.bank_account.account_type}),e(b,{key:"0dbf8e17dfbc1ff1cd70be1d67a6907b91478a98",title:"Institution",value:this.payout.bank_account.account_type}),e(b,{key:"2b377f8749d66f6fd58f5a8437c1e21fbb774706",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(b,{key:"886cc82be28c9cd86200adf78a61846fece1cf40",title:"Account Number",value:this.payout.bank_account.account_number_last4})),e(f,{key:"ec5c8ab11778eff8b89be26f85c7172d38b5d4b3",sectionTitle:"Metadata"}),e("div",{key:"9c72eeee6fb33e536c8425ba1dd6d4a0c8b066ce",class:"d-table gap-2 w-100"},e(o,{key:"85ea6096635c9bb6c8fc0b5298dd4cbb6411392c",metadata:this.payout.metadata})))))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{u as payout_details_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-2783e363.js";import{C as s,a as o}from"./p-14c91ffd.js";import{g as r,a}from"./p-8115b2f4.js";import{C as c}from"./p-a59636ed.js";import{c as d,J as h}from"./p-9069fab5.js";import"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-74736657.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-abdbcd8e.js";import"./p-2ce40098.js";import"./p-c2efe406.js";const n=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event",7),this.loadedEvent=e(this,"loaded",7),this.authToken=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.hideCardBillingForm=void 0,this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){d(),this.analytics=new h(this),this.initializeGetCheckout()}disconnectedCallback(){this.analytics.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:o,onError:c})=>{var d;try{const h=await i.fetchCheckout(t,e);if(h.error)return c({error:r(h.error),code:a(null===(d=h.error)||void 0===d?void 0:d.code),severity:s.ERROR});o({checkout:h.data})}catch(t){const e=a(null==t?void 0:t.code);return c({error:t.message||t,code:e,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new c}),this.complete=(({authToken:t,checkoutId:e,service:i})=>async({payment:o,onSuccess:c,onError:d})=>{var h;try{const n=await i.complete(t,e,o);if(n.error)return d({error:r(n.error),code:a(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR});c(n)}catch(t){const e=a(null==t?void 0:t.code);return d({error:t.message||t,code:e,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new c})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:o.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(t){this.checkoutCoreRef.fillBillingForm(t)}render(){return i("justifi-checkout-core",{key:"573ac7486b2523d6918f5f8eb97a17dcf47edd3a",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,ref:t=>{t&&(this.checkoutCoreRef=t)}},i("div",{key:"649338a229597a0c6a9987975f91e678ca489890",slot:"insurance"},i("slot",{key:"ddfb4986d89a9792e7dad6ffad7dd134bedc9e25",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{n as justifi_checkout}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-2783e363.js";import{u as t,a as d,b as s}from"./p-7d85af5c.js";import{P as o,S as i}from"./p-525db3e8.js";import{h as l}from"./p-ba202e33.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const r=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{t(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{d(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.representativeDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){var e,t,d,r,f,c,b;return a("form",{key:"90775954aebfc23b163d3b1626de290b70a4b32c"},a("fieldset",{key:"ea79bf2618b504fd7a5b86f334aace2d9fb20681"},a("div",{key:"3b0ec861e82a1fb35dee68a81655506c198686d4",class:"d-flex align-items-center gap-2"},a("legend",{key:"613e036d03c20ffc6e51a6a89f38eda7b2440e67",class:"mb-0",part:l},"Representative"),a("form-control-tooltip",{key:"ba37c309f9f25b697f297c9641767d800e284f9f",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"8c3b56e7481e7c67a9e4f56fb2406506d6a3f927",class:"mt-2"}),a("div",{key:"477b3938ea0011e67bba2c43406b9dbb14019caf",class:"row gy-3"},a("div",{key:"dd2eca835cb422bd0f38fd504da1d651d5914d89",class:"col-12 col-md-8"},a("form-control-text",{key:"477719029d827ddff5d2e357d641eb2d8b697657",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"36d22fa160f31c538e5afb80fa7fd6533caae3d3",class:"col-12 col-md-4"},a("form-control-text",{key:"9d87128ec44af7cb861be3b3bf9705172267a2db",name:"title",label:"Title",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"88b158cae25138f1e930f16d72972767679f9f27",class:"col-12 col-md-6"},a("form-control-text",{key:"dbd4ee0f36136c17aa96c36ca1fd0d8ed66758b4",name:"email",label:"Email Address",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"11f873b4275b150459c482264ed364e8970f70ca",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"39763eb1b0c981f525b81c5d0fc0fb2fb44cce5c",name:"phone",label:"Phone Number",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:o.US})),a("div",{key:"6f7e70e31c03564c989355f9ed40b839451b3ae2",class:"col-12 col-md-4"},a("form-control-date",{key:"e5ee8b0752707fdafa4b6b7a8973f5b66f21bce6",name:"dob_full",label:"Birth Date",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"73d54b1618e625fd67da896645edf74000596192",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"ce5235878fc1554e573e86070502a7ebaf4f2544",name:"identification_number",label:"SSN",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:i,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"521ebc9a53fb0b2591937e75d6ca6789c134d54f",class:"col-12"},a("justifi-identity-address-form",{key:"69d66df1033b67ce2e2fe7ae44ab7adfb38cc3d8",errors:this.errors.address,defaultValues:null===(b=this.representativeDefaultValue)||void 0===b?void 0:b.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{r as justifi_business_representative_form_inputs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as a,c as t}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";class s{async fetchPayments(s,p,n,e){return e||(e=t.proxyApiOrigin),a({authToken:p,apiOrigin:e}).get(`account/${s}/payments`,n)}async fetchPayment(s,p){const n=`payments/${s}`;return a({authToken:p,apiOrigin:t.proxyApiOrigin}).get(n)}}export{s as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-2783e363.js";import{C as e,a as r}from"./p-14c91ffd.js";import{c as o,J as a}from"./p-9069fab5.js";import{A as n,c}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import{T as h}from"./p-2ce40098.js";import{g as p,a as m}from"./p-8115b2f4.js";import{m as d,S as l}from"./p-1a27f22e.js";import{S as u}from"./p-bfe9748b.js";import{d as f}from"./p-92d78790.js";import"./p-c2efe406.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-411382f3.js";import"./p-ba202e33.js";class j{async fetchTerminals(i,t,s,e){e||(e=c.proxyApiOrigin);const r={Account:i};return n({authToken:t,apiOrigin:e}).get("terminals",s,null,r)}async fetchTerminal(i,t,s){s||(s=c.proxyApiOrigin);const e=`terminals/${i}`;return n({authToken:t,apiOrigin:s}).get(e)}}const v=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=i=>{this.errorMessage=i.detail.message,this.errorEvent.emit(i.detail)},this.getTerminals=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin=c.proxyApiOrigin,this.columns=f}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:i,authToken:t,service:s,apiOrigin:r})=>async({params:o,onSuccess:a,onError:n})=>{var c,d;try{const l=await s.fetchTerminals(i,t,o,r);if(l.error)return n({error:p(l.error),code:m(null===(d=l.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const i=Object.assign({},l.page_info);a({terminals:(null===(c=l.data)||void 0===c?void 0:c.map((i=>new h(i))))||[],pagingInfo:i})}}catch(i){const t=m(null==i?void 0:i.code);return n({error:i.message||i,code:t,severity:e.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new j,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=d({accountId:this.accountId,authToken:this.authToken,service:new l,apiOrigin:this.apiOrigin}))}render(){return s(u,{key:"50ee7da4209367703551642456e6df1b38c20cb7"},s("terminals-list-core",{key:"e445dbf65c53397757f60d844bd50cafa8d32556",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{v as justifi_terminals_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as n,h as e}from"./p-2783e363.js";var r="top",i="bottom",o="right",a="left",u="auto",f=[r,i,o,a],c="start",s="end",d="clippingParents",l="viewport",p="popper",h="reference",v=f.reduce((function(t,n){return t.concat([n+"-"+c,n+"-"+s])}),[]),b=[].concat(f,[u]).reduce((function(t,n){return t.concat([n,n+"-"+c,n+"-"+s])}),[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function y(t){return t?(t.nodeName||"").toLowerCase():null}function w(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function x(t){return t instanceof w(t).Element||t instanceof Element}function O(t){return t instanceof w(t).HTMLElement||t instanceof HTMLElement}function g(t){return"undefined"!=typeof ShadowRoot&&(t instanceof w(t).ShadowRoot||t instanceof ShadowRoot)}function j(t){return t.split("-")[0]}var k=Math.max,M=Math.min,E=Math.round;function A(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function q(){return!/^((?!chrome|android).)*safari/i.test(A())}function B(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=t.getBoundingClientRect(),i=1,o=1;n&&O(t)&&(i=t.offsetWidth>0&&E(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&E(r.height)/t.offsetHeight||1);var a=(x(t)?w(t):window).visualViewport,u=!q()&&e,f=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/o,s=r.width/i,d=r.height/o;return{width:s,height:d,top:c,right:f+s,bottom:c+d,left:f,x:f,y:c}}function P(t){var n=B(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function L(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&g(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function R(t){return w(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(y(t))>=0}function W(t){return((x(t)?t.ownerDocument:t.document)||window.document).documentElement}function T(t){return"html"===y(t)?t:t.assignedSlot||t.parentNode||(g(t)?t.host:null)||W(t)}function C(t){return O(t)&&"fixed"!==R(t).position?t.offsetParent:null}function H(t){for(var n=w(t),e=C(t);e&&S(e)&&"static"===R(e).position;)e=C(e);return e&&("html"===y(e)||"body"===y(e)&&"static"===R(e).position)?n:e||function(t){var n=/firefox/i.test(A());if(/Trident/i.test(A())&&O(t)&&"fixed"===R(t).position)return null;var e=T(t);for(g(e)&&(e=e.host);O(e)&&["html","body"].indexOf(y(e))<0;){var r=R(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function I(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function z(t,n,e){return k(t,M(n,e))}function D(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function _(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}function F(t){return t.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V(t){var n,e=t.popper,u=t.popperRect,f=t.placement,c=t.variation,d=t.offsets,l=t.position,p=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,b=t.isFixed,m=d.x,y=void 0===m?0:m,x=d.y,O=void 0===x?0:x,g="function"==typeof v?v({x:y,y:O}):{x:y,y:O};y=g.x,O=g.y;var j=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),M=a,A=r,q=window;if(h){var B=H(e),P="clientHeight",L="clientWidth";B===w(e)&&"static"!==R(B=W(e)).position&&"absolute"===l&&(P="scrollHeight",L="scrollWidth"),(f===r||(f===a||f===o)&&c===s)&&(A=i,O-=(b&&B===q&&q.visualViewport?q.visualViewport.height:B[P])-u.height,O*=p?1:-1),f!==a&&(f!==r&&f!==i||c!==s)||(M=o,y-=(b&&B===q&&q.visualViewport?q.visualViewport.width:B[L])-u.width,y*=p?1:-1)}var S,T=Object.assign({position:l},h&&U),C=!0===v?function(t,n){var e=t.y,r=n.devicePixelRatio||1;return{x:E(t.x*r)/r||0,y:E(e*r)/r||0}}({x:y,y:O},w(e)):{x:y,y:O};return y=C.x,O=C.y,Object.assign({},T,p?((S={})[A]=k?"0":"",S[M]=j?"0":"",S.transform=(q.devicePixelRatio||1)<=1?"translate("+y+"px, "+O+"px)":"translate3d("+y+"px, "+O+"px, 0)",S):((n={})[A]=k?O+"px":"",n[M]=j?y+"px":"",n.transform="",n))}var G={passive:!0},J={left:"right",right:"left",bottom:"top",top:"bottom"};function K(t){return t.replace(/left|right|bottom|top/g,(function(t){return J[t]}))}var N={start:"end",end:"start"};function Q(t){return t.replace(/start|end/g,(function(t){return N[t]}))}function X(t){var n=w(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Y(t){return B(W(t)).left+X(t).scrollLeft}function Z(t){var n=R(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function $(t){return["html","body","#document"].indexOf(y(t))>=0?t.ownerDocument.body:O(t)&&Z(t)?t:$(T(t))}function tt(t,n){var e;void 0===n&&(n=[]);var r=$(t),i=r===(null==(e=t.ownerDocument)?void 0:e.body),o=w(r),a=i?[o].concat(o.visualViewport||[],Z(r)?r:[]):r,u=n.concat(a);return i?u:u.concat(tt(T(a)))}function nt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function et(t,n,e){return n===l?nt(function(t,n){var e=w(t),r=W(t),i=e.visualViewport,o=r.clientWidth,a=r.clientHeight,u=0,f=0;if(i){o=i.width,a=i.height;var c=q();(c||!c&&"fixed"===n)&&(u=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:u+Y(t),y:f}}(t,e)):x(n)?function(t,n){var e=B(t,!1,"fixed"===n);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n,e):nt(function(t){var n,e=W(t),r=X(t),i=null==(n=t.ownerDocument)?void 0:n.body,o=k(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=k(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Y(t),f=-r.scrollTop;return"rtl"===R(i||e).direction&&(u+=k(e.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}(W(t)))}function rt(t){var n,e=t.reference,u=t.element,f=t.placement,d=f?j(f):null,l=f?F(f):null,p=e.x+e.width/2-u.width/2,h=e.y+e.height/2-u.height/2;switch(d){case r:n={x:p,y:e.y-u.height};break;case i:n={x:p,y:e.y+e.height};break;case o:n={x:e.x+e.width,y:h};break;case a:n={x:e.x-u.width,y:h};break;default:n={x:e.x,y:e.y}}var v=d?I(d):null;if(null!=v){var b="y"===v?"height":"width";switch(l){case c:n[v]=n[v]-(e[b]/2-u[b]/2);break;case s:n[v]=n[v]+(e[b]/2-u[b]/2)}}return n}function it(t,n){void 0===n&&(n={});var e=n.placement,a=void 0===e?t.placement:e,u=n.strategy,c=void 0===u?t.strategy:u,s=n.boundary,v=void 0===s?d:s,b=n.rootBoundary,m=void 0===b?l:b,w=n.elementContext,g=void 0===w?p:w,j=n.altBoundary,E=void 0!==j&&j,A=n.padding,q=void 0===A?0:A,P=D("number"!=typeof q?q:_(q,f)),S=t.rects.popper,C=t.elements[E?g===p?h:p:g],I=function(t,n,e,r){var i="clippingParents"===n?function(t){var n=tt(T(t)),e=["absolute","fixed"].indexOf(R(t).position)>=0&&O(t)?H(t):t;return x(e)?n.filter((function(t){return x(t)&&L(t,e)&&"body"!==y(t)})):[]}(t):[].concat(n),o=[].concat(i,[e]),a=o.reduce((function(n,e){var i=et(t,e,r);return n.top=k(i.top,n.top),n.right=M(i.right,n.right),n.bottom=M(i.bottom,n.bottom),n.left=k(i.left,n.left),n}),et(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(x(C)?C:C.contextElement||W(t.elements.popper),v,m,c),z=B(t.elements.reference),F=rt({reference:z,element:S,strategy:"absolute",placement:a}),U=nt(Object.assign({},S,F)),V=g===p?U:z,G={top:I.top-V.top+P.top,bottom:V.bottom-I.bottom+P.bottom,left:I.left-V.left+P.left,right:V.right-I.right+P.right},J=t.modifiersData.offset;if(g===p&&J){var K=J[a];Object.keys(G).forEach((function(t){var n=[o,i].indexOf(t)>=0?1:-1,e=[r,i].indexOf(t)>=0?"y":"x";G[t]+=K[e]*n}))}return G}function ot(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,i=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=void 0===a?b:a,c=F(n.placement),s=c?o?v:v.filter((function(t){return F(t)===c})):f,d=s.filter((function(t){return u.indexOf(t)>=0}));0===d.length&&(d=s);var l=d.reduce((function(n,o){return n[o]=it(t,{placement:o,boundary:e,rootBoundary:r,padding:i})[j(o)],n}),{});return Object.keys(l).sort((function(t,n){return l[t]-l[n]}))}const at={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,f=t.name;if(!n.modifiersData[f]._skip){for(var s=e.mainAxis,d=void 0===s||s,l=e.altAxis,p=void 0===l||l,h=e.fallbackPlacements,v=e.padding,b=e.boundary,m=e.rootBoundary,y=e.altBoundary,w=e.flipVariations,x=void 0===w||w,O=e.allowedAutoPlacements,g=n.options.placement,k=j(g),M=h||(k!==g&&x?function(t){if(j(t)===u)return[];var n=K(t);return[Q(t),n,Q(n)]}(g):[K(g)]),E=[g].concat(M).reduce((function(t,e){return t.concat(j(e)===u?ot(n,{placement:e,boundary:b,rootBoundary:m,padding:v,flipVariations:x,allowedAutoPlacements:O}):e)}),[]),A=n.rects.reference,q=n.rects.popper,B=new Map,P=!0,L=E[0],R=0;R<E.length;R++){var S=E[R],W=j(S),T=F(S)===c,C=[r,i].indexOf(W)>=0,H=C?"width":"height",I=it(n,{placement:S,boundary:b,rootBoundary:m,altBoundary:y,padding:v}),z=C?T?o:a:T?i:r;A[H]>q[H]&&(z=K(z));var D=K(z),_=[];if(d&&_.push(I[W]<=0),p&&_.push(I[z]<=0,I[D]<=0),_.every((function(t){return t}))){L=S,P=!1;break}B.set(S,_)}if(P)for(var U=function(t){var n=E.find((function(n){var e=B.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return L=n,"break"},V=x?3:1;V>0&&"break"!==U(V);V--);n.placement!==L&&(n.modifiersData[f]._skip=!0,n.placement=L,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function ft(t){return[r,o,i,a].some((function(n){return t[n]>=0}))}function ct(t,n,e){void 0===e&&(e=!1);var r,i,o=O(n),a=O(n)&&function(t){var n=t.getBoundingClientRect(),e=E(n.width)/t.offsetWidth||1,r=E(n.height)/t.offsetHeight||1;return 1!==e||1!==r}(n),u=W(n),f=B(t,a,e),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!e)&&(("body"!==y(n)||Z(u))&&(c=(r=n)!==w(r)&&O(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:X(r)),O(n)?((s=B(n,!0)).x+=n.clientLeft,s.y+=n.clientTop):u&&(s.x=Y(u))),{x:f.left+c.scrollLeft-s.x,y:f.top+c.scrollTop-s.y,width:f.width,height:f.height}}function st(t){var n=new Map,e=new Set,r=[];function i(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||i(t)})),r}var dt={placement:"bottom",modifiers:[],strategy:"absolute"};function lt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function pt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?dt:r;return function(t,n,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,i),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},f=[],c=!1,s={state:u,setOptions:function(r){var o="function"==typeof r?r(u.options):r;d(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:x(t)?tt(t):t.contextElement?tt(t.contextElement):[],popper:tt(n)};var a,c,l=function(t){var n=st(t);return m.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((a=[].concat(e,u.options.modifiers),c=a.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return u.orderedModifiers=l.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:s,options:void 0===n?{}:n});f.push(r||function(){})}})),s.update()},forceUpdate:function(){if(!c){var t=u.elements,n=t.reference,e=t.popper;if(lt(n,e)){u.rects={reference:ct(n,H(e),"fixed"===u.options.strategy),popper:P(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options;"function"==typeof o&&(u=o({state:u,options:void 0===a?{}:a,name:i.name,instance:s})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(t){s.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!lt(t,n))return s;function d(){f.forEach((function(t){return t()})),f=[]}return s.setOptions(r).then((function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var ht=pt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,u=void 0===a||a,f=w(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",e.update,G)})),u&&f.addEventListener("resize",e.update,G),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",e.update,G)})),u&&f.removeEventListener("resize",e.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=rt({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,i=void 0===r||r,o=e.adaptive,a=void 0===o||o,u=e.roundOffsets,f=void 0===u||u,c={placement:j(n.placement),variation:F(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,V(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,V(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},i=n.elements[t];O(i)&&y(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?i.removeAttribute(t):i.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],i=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});O(r)&&y(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,e=t.name,i=t.options.offset,u=void 0===i?[0,0]:i,f=b.reduce((function(t,e){return t[e]=function(t,n,e){var i=j(t),u=[a,r].indexOf(i)>=0?-1:1,f="function"==typeof e?e(Object.assign({},n,{placement:t})):e,c=f[0],s=f[1];return c=c||0,s=(s||0)*u,[a,o].indexOf(i)>=0?{x:s,y:c}:{x:c,y:s}}(e,n.rects,u),t}),{}),c=f[n.placement],s=c.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=c.x,n.modifiersData.popperOffsets.y+=s),n.modifiersData[e]=f}},at,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,e=t.options,u=t.name,f=e.mainAxis,s=void 0===f||f,d=e.altAxis,l=void 0!==d&&d,p=e.tether,h=void 0===p||p,v=e.tetherOffset,b=void 0===v?0:v,m=it(n,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),y=j(n.placement),w=F(n.placement),x=!w,O=I(y),g="x"===O?"y":"x",E=n.modifiersData.popperOffsets,A=n.rects.reference,q=n.rects.popper,B="function"==typeof b?b(Object.assign({},n.rects,{placement:n.placement})):b,L="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),R=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,S={x:0,y:0};if(E){if(s){var W,T="y"===O?r:a,C="y"===O?i:o,D="y"===O?"height":"width",_=E[O],U=_+m[T],V=_-m[C],G=h?-q[D]/2:0,J=w===c?A[D]:q[D],K=w===c?-q[D]:-A[D],N=n.elements.arrow,Q=h&&N?P(N):{width:0,height:0},X=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=X[T],Z=X[C],$=z(0,A[D],Q[D]),tt=x?A[D]/2-G-$-Y-L.mainAxis:J-$-Y-L.mainAxis,nt=x?-A[D]/2+G+$+Z+L.mainAxis:K+$+Z+L.mainAxis,et=n.elements.arrow&&H(n.elements.arrow),rt=null!=(W=null==R?void 0:R[O])?W:0,ot=_+nt-rt,at=z(h?M(U,_+tt-rt-(et?"y"===O?et.clientTop||0:et.clientLeft||0:0)):U,_,h?k(V,ot):V);E[O]=at,S[O]=at-_}if(l){var ut,ft=E[g],ct="y"===g?"height":"width",st=ft+m["x"===O?r:a],dt=ft-m["x"===O?i:o],lt=-1!==[r,a].indexOf(y),pt=null!=(ut=null==R?void 0:R[g])?ut:0,ht=lt?st:ft-A[ct]-q[ct]-pt+L.altAxis,vt=lt?ft+A[ct]+q[ct]-pt-L.altAxis:dt,bt=h&<?function(t,n,e){var r=z(t,n,e);return r>e?e:r}(ht,ft,vt):z(h?ht:st,ft,h?vt:dt);E[g]=bt,S[g]=bt-ft}n.modifiersData[u]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,e=t.state,u=t.name,c=t.options,s=e.elements.arrow,d=e.modifiersData.popperOffsets,l=j(e.placement),p=I(l),h=[a,o].indexOf(l)>=0?"height":"width";if(s&&d){var v=function(t,n){return D("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:_(t,f))}(c.padding,e),b=P(s),m="y"===p?r:a,y="y"===p?i:o,w=e.rects.reference[h]+e.rects.reference[p]-d[p]-e.rects.popper[h],x=d[p]-e.rects.reference[p],O=H(s),g=O?"y"===p?O.clientHeight||0:O.clientWidth||0:0,k=g/2-b[h]/2+(w/2-x/2),M=z(v[m],k,g-b[h]-v[y]);e.modifiersData[u]=((n={})[p]=M,n.centerOffset=M-k,n)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&L(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,i=n.rects.popper,o=n.modifiersData.preventOverflow,a=it(n,{elementContext:"reference"}),u=it(n,{altBoundary:!0}),f=ut(a,r),c=ut(u,i,o),s=ft(f),d=ft(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]});const vt=class{constructor(e){t(this,e),this.showEvent=n(this,"showEvent",7),this.hideEvent=n(this,"hideEvent",7),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.anchorRef=void 0,this.isOpen=!1}componentDidLoad(){this.popperInstance=ht(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const n=t.composedPath(),e=n.includes(this.anchorRef),r=n.includes(this.popperContentRef);!this.isOpen&&e?this.show():(this.isOpen&&!r||this.isOpen&&e)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return e("div",{key:"277df43099c0dd77e7dc69927ef51d2457cec263"},e("style",{key:"b0bce6ba8275da36f98a9a12abd541fc0ae423f9"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),e("div",{key:"23b70bc63642a5a3ec4e67da2d698f4ce70325dd",class:"popper-content",ref:t=>this.popperContentRef=t},e("slot",{key:"c7fdc0e2e03def596ca1eb4a4cb813a93f8cea21"})))}};export{vt as custom_popper}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-2783e363.js";import{s as e}from"./p-ba202e33.js";const s=({component:s="div",height:o,width:r,className:a,styles:i={}})=>{const c=Object.assign(Object.assign({},i),{width:r,height:o});return t(s,{class:`${a} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-2783e363.js";import{C as a}from"./p-ba202e33.js";const e=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:a},s("span",{class:"visually-hidden"},"Loading...")));export{e as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./p-2783e363.js";import{A as e,c as r}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{g as o,a}from"./p-8115b2f4.js";import{C as n,a as c}from"./p-14c91ffd.js";import{c as d,J as h}from"./p-9069fab5.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-c2efe406.js";class u{async fetchQuote(t,i){return e({authToken:t,apiOrigin:r.proxyApiOrigin}).post("insurance/quotes",i)}async toggleCoverage(t,i,s){const o=`insurance/quotes/${i}/toggle`;return e({authToken:t,apiOrigin:r.proxyApiOrigin}).post(o,s)}}const p=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.authToken=void 0,this.checkoutId=void 0,this.primaryIdentityFirstName=void 0,this.primaryIdentityLastName=void 0,this.primaryIdentityState=void 0,this.primaryIdentityPostalCode=void 0,this.primaryIdentityCountry=void 0,this.primaryIdentityEmailAddress=void 0,this.policyAttributesInsurableAmount=void 0,this.policyAttributesStartDate=void 0,this.policyAttributesEndDate=void 0,this.coveredIdentityFirstName=void 0,this.coveredIdentityLastName=void 0,this.getQuote=void 0,this.toggleCoverage=void 0,this.quote=void 0}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){d(),this.analytics=new h(this),this.initializeServiceMethods()}disconnectedCallback(){this.analytics&&this.analytics.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:i})=>async({payload:s,onSuccess:e,onError:r})=>{var c;try{const d=await i.fetchQuote(t,s);if(d.error)return r({error:o(d.error),code:a(null===(c=d.error)||void 0===c?void 0:c.code),severity:n.ERROR});e({quote:d.data})}catch(t){const i=a(null==t?void 0:t.code);return r({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new u}),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:s,payload:e,onSuccess:r,onError:c})=>{var d;try{const h=await i.toggleCoverage(t,s,e);if(h.error)return c({error:o(h.error),code:a(null===(d=h.error)||void 0===d?void 0:d.code),severity:n.ERROR});r({quote:h.data})}catch(t){const i=a(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:n.ERROR})}})({authToken:this.authToken,service:new u})):this.errorEvent.emit({errorCode:c.MISSING_PROPS,message:"Missing authToken",severity:n.ERROR})}render(){return s("justifi-season-interruption-insurance-core",{key:"737ad53975405a658c2fc46533eb02351833b280",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{p as justifi_season_interruption_insurance}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-2783e363.js";import{l as d}from"./p-c6be72b0.js";import{q as t,c as l}from"./p-fc3daedd.js";import{S as s}from"./p-bfe9748b.js";import{d as c,c as f}from"./p-74736657.js";import"./p-f20b6ce1.js";const i=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const d=c(a,{setExactTime:!0});this.setParamsOnChange(e,d)}}componentWillLoad(){this.debouncedSetParamsOnChange=d.exports.debounce(this.setParamsOnChange,300)}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){return a(s,{key:"39f88bdcf7c8823d42d4432ff41bfaa0e70b0811"},a("table-filters-menu",{key:"67f2b375b47bd9cf037a02df48b6ca270259e3b6",params:Object.assign({},t),clearParams:l},a("div",{key:"bb8cd6c205b604c41ff0277c9778006ce9006259",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"6c54760335d154182895247250cc1dfa2efbf9d3",class:"p-2"},a("form-control-text",{key:"1d72daa5c87ba8c9463da01af7552f5762d4f29b",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:t.payment_id})),a("div",{key:"077585c3359b16be1833134898fa90c4367129fe",class:"p-2"},a("form-control-text",{key:"c62b51170db0aa184f4ed68fbc312d4a0bda5d2b",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:t.terminal_id})),a("div",{key:"324cd4f6775118ef87d5bd6d0ff62300e3526dbd",class:"p-2"},a("form-control-select",{key:"0ddbe138adf0cdb450ee91e450d3613d7114e849",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:t.payment_status||""})),a("div",{key:"0e6f54d6b839aa99d6d7a572fb18b240caa12c3c",class:"p-2"},a("form-control-date",{key:"f8799a7d8da64e55f920da09f847d54218a6cd45",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:f(t.created_after,{showInputDateTime:!0})||"",showTime:!0})),a("div",{key:"febd10712014933c97faf3846c83a528885418e3",class:"p-2"},a("form-control-date",{key:"5d6b095267cae0226346c289a4b2ca8f838230ac",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:f(t.created_before,{showInputDateTime:!0})||"",showTime:!0})))))}};export{i as justifi_payments_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as i,c as t}from"./p-2783e363.js";import{c as e,F as o}from"./p-5844a0f0.js";import{b as r,a}from"./p-eb644cb7.js";import{a as h,i as n}from"./p-d1f78cb5.js";import{A as l,c}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{B as p,a as m}from"./p-275f2154.js";import{c as d,J as f}from"./p-9069fab5.js";import{B as b}from"./p-04ce1f82.js";import{S as u}from"./p-bfe9748b.js";import{H as j}from"./p-7bddbee4.js";import{S as v}from"./p-4e122ace.js";import{B as w}from"./p-73f9be7c.js";import"./p-cb8f7bf4.js";import"./p-6078a370.js";import"./p-0ea387a2.js";import"./p-74736657.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";import"./p-c2efe406.js";import"./p-ba202e33.js";const g=e(Object.assign(Object.assign({},r().fields),{legal_address:h(),additional_questions:a(),representative:n("representative")})),x=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(v,{width:"25%"})),s("div",{class:"col-12"},s(v,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(v,{width:"50%"}),s(v,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(v,{width:"65%"}),s(v,{width:"35%"}))),y=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(v,{width:"40%",height:"40px"})),s(x,null),s(x,null),s(x,null)),C=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event",7),this.clickEvent=t(this,"click-event",7),this.instantiateBusiness=s=>{const i=new p(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;try{const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new p(Object.assign(Object.assign({},i),s)).payload,e=await this.api.patch(this.businessEndpoint,t);this.handleReponse(e)}catch(s){this.errorMessage=m.patchData}finally{this.isSaving=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const s=await this.api.get(this.businessEndpoint);this.instantiateBusiness(s.data)}catch(s){this.errorMessage=m.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.isSaving=!1,this.errorMessage=void 0}componentWillLoad(){d(),this.analytics=new f(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new o(g),this.api=l({authToken:this.authToken,apiOrigin:c.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(s){s.error&&(this.errorMessage=m.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(u,null,this.isLoading?s(y,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(j,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(b,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:w.submit}),isLoading:this.isSaving},"Submit")))))}};export{C as justifi_business_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-2783e363.js";import{t as e}from"./p-ba202e33.js";const r=r=>{const{helpText:m,name:o}=r;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:e},m):null};export{r as F}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-2783e363.js";import{B as a}from"./p-04ce1f82.js";import{L as s}from"./p-ba202e33.js";const r=e=>{const t=["after_cursor","before_cursor"];return!!Object.keys(e).filter((e=>!t.includes(e))).length},d=class{constructor(t){e(this,t),this.anchorButton=void 0,this.menu=void 0,this.showClearButton=!1,this.params=void 0,this.clearParams=void 0}watchParamsHandler(e){this.showClearButton=r(e)}show(){this.menu.classList.add("show")}hide(){this.menu.classList.remove("show")}componentWillLoad(){this.showClearButton=r(this.params)}render(){return t("div",{key:"ee398b42698ce14cd7d7ac914fe05ecf827adb90",class:"d-flex gap-2"},t("div",{key:"d097692b7b7dba1da5b141fccf472a454f008988",class:"dropdown pb-3"},t(a,{key:"bfdc5605e6f771b5492ebecb3a9e857e561c9351",variant:"primary",type:"button dropdown-toggle",ref:e=>this.anchorButton=e,class:"btn btn-primary dropdown-toggle","data-test-id":"open-filters-button","data-bs-toggle":"dropdown"},"Filters"),t("custom-popper",{key:"7974738ccf48f25886eb22838744e8761a8aab89",offset:[20,10],strategy:"fixed",anchorRef:this.anchorButton,trigger:"click"},t("form",{key:"0f099e12ea159a912874894cdb5533f7bb64a356",class:"dropdown-menu",part:s,"data-test-id":"filter-menu",ref:e=>this.menu=e,onSubmit:e=>e.preventDefault()},t("slot",{key:"525abf57ddb5a3ab0606037f0538f08ddf6a370b"})))),t("div",{key:"5381355037c7703a4c89015cd0a5ee34e652e221"},t(a,{key:"e304b0f033a95757a9682257c2e4ff6793cd7cdd",variant:"secondary",onClick:()=>this.clearParams(),hidden:!this.showClearButton,"data-test-id":"clear-filters-button"},"Clear Filters")))}static get watchers(){return{params:["watchParamsHandler"]}}};export{d as table_filters_menu}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,H as e}from"./p-2783e363.js";import{V as h,W as a,X as c,Y as o,Z as r,l as d}from"./p-ba202e33.js";import{F as b}from"./p-6bc01617.js";import{F as f}from"./p-0d7e7957.js";const n=class{constructor(i){s(this,i),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,i=t.getAttribute("name");this.inputHandler(i,t.checked),this.formControlInput.emit({name:i,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.checked=void 0,this.inputHandler=void 0,this.disabled=void 0}get part(){return this.errorText?h:this.isFocused&&this.checked?a:this.isFocused?c:this.checked?o:r}render(){return i(e,{key:"37c483442db30fe4662377c80798f60a220d005a"},i("div",{key:"b09832323b1d686404e362bb77281aec21fc581b",class:"form-group d-flex flex-column"},i("div",{key:"2064b9de15f1ca74a3d8132813f9108755a69dbf",class:"form-check"},i("input",{key:"57218b62428c57d2c6beb65635d2cd51debb656c",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),i("label",{key:"16a1122c4783eb07b00af9fb9449d626f978eeb4",class:"form-check-label",htmlFor:this.name,part:d},this.label)),i(b,{key:"e6d817bfbcecab7ebdc0537a19aa8e965239de5d",helpText:this.helpText,name:this.name}),i(f,{key:"026032f91f2f011c1dbaa37be3c571e0fb707cbe",errorText:this.errorText,name:this.name})))}};export{n as form_control_checkbox}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as a,c as t}from"./p-2d801915.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{C as o}from"./p-14c91ffd.js";import{g as r,a as s}from"./p-8115b2f4.js";class p{async fetchPayouts(o,r,s,p){return p||(p=t.proxyApiOrigin),a({authToken:r,apiOrigin:p}).get(`account/${o}/payouts`,s)}async fetchPayout(o,r,s){return s||(s=t.proxyApiOrigin),a({authToken:r,apiOrigin:s}).get(`payouts/${o}`)}async fetchCSV(o,r,s){return s||(s=t.proxyApiOrigin),a({authToken:r,apiOrigin:s}).get(`reports/payouts/${o}`)}}const c=({authToken:a,service:t})=>async({payoutId:p,onError:c})=>{try{const{data:o}=await t.fetchCSV(p,a),r=document.createElement("a");r.href=o.csv_url,r.click()}catch(a){c({error:r(a),code:s(null==a?void 0:a.code),severity:o.ERROR})}};export{p as P,c as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as i,H as e}from"./p-2783e363.js";import{a as o,C as n}from"./p-14c91ffd.js";import{m as h,b as r,c as a}from"./p-a7b04e24.js";import{B as d,a as c}from"./p-2bd8650b.js";import{c as u,F as p,e as f}from"./p-5844a0f0.js";import{B as l}from"./p-275f2154.js";import{A as b,c as m}from"./p-2d801915.js";import{z as v,A as g,B as y,C as k,D as _,E as j,F as w,G as C,H as T}from"./p-cb8f7bf4.js";import{h as S}from"./p-ba202e33.js";import{S as I}from"./p-4e122ace.js";import{a as O,B as F}from"./p-73f9be7c.js";import"./p-5d0763a5.js";import"./p-56f6ce4c.js";import"./p-83aa33f0.js";import"./p-2ce40098.js";import{B}from"./p-04ce1f82.js";import"./p-8115b2f4.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-0ea387a2.js";import"./p-74736657.js";import"./p-abdbcd8e.js";const A=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:o.MISSING_PROPS,severity:n.ERROR})}render(){return i("justifi-additional-questions-form-step-core",{key:"ecc4bb3b51a4b6cb48e38230826784c5af623d88",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},L=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.postBankAccount=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new d}),this.postBankAccount=a({authToken:this.authToken,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:o.MISSING_PROPS,severity:n.ERROR})}render(){return i("justifi-business-bank-account-form-step-core",{key:"229a91f0c9d52f26cf602d950a4960adf2f090bb",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},x=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:o.MISSING_PROPS,severity:n.ERROR})}render(){return i("justifi-business-core-info-form-step-core",{key:"2262521f98ad949fa2558572a991b00b44a2c8c0",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},q=class{constructor(i){s(this,i),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.fetchData=async()=>{this.renderState="loading",this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.business=Object.assign({},new l(s.data)),this.existingDocuments=s.data.documents,this.paymentVolume=s.data.additional_questions.business_payment_volume}catch(s){this.errorEvent.emit({errorCode:o.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s}),this.renderState="error"}finally{this.initializeFormController(),this.formLoading.emit(!1),this.renderState="success"}},this.initializeFormController=()=>{this.formController=new p(((s,t,i)=>{const e=u({voided_check:v(t,i),government_id:g.nullable(),ss4:y.nullable(),other:k.nullable(),balance_sheet:_(s,t,i),bank_statement:j(s,t,i),profit_and_loss_statement:w(s,t,i)}),o=u({voided_check:v(t,i),government_id:g.nullable(),ss4:y.nullable(),other:k.nullable(),balance_sheet:_(s,t,i),bank_statement:j(s,t,i),profit_and_loss_statement:w(s,t,i)});return i?o:e})(this.paymentVolume,this.existingDocuments,this.allowOptionalFields)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.createDocumentRecord=async s=>{this.formLoading.emit(!0);const t=s.record_data;try{const i=await this.api.post(this.documentEndpoint,t);return this.handleDocRecordResponse(s,i)}catch(s){return this.errorEvent.emit({errorCode:o.POST_ERROR,message:s.message,severity:n.ERROR,data:s}),!1}},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:o.POST_ERROR,message:t.error.message,severity:n.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>s.error?(this.errorEvent.emit({errorCode:o.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}),!1):(this.stepCompleteEvent.emit({response:s,formStep:O.documentUpload}),!0),this.storeFiles=s=>{const t=Array.from(s.detail.fileList),i=s.detail.document_type,e=t.map((s=>new C({file:s,document_type:i},this.businessId)));this.documentData[i]=e},this.sendData=async s=>{try{const t=Object.values(this.documentData).flat();if(!t.length)return this.stepCompleteEvent.emit({response:null,formStep:O.documentUpload,metadata:"no data submitted"}),s();const i=t.map((s=>this.createDocumentRecord(s)));if(!await Promise.all(i))return;const e=t.map((s=>this.uploadDocument(s)));if(!await Promise.all(e))return;await s()}finally{this.formLoading.emit(!1)}},this.formController=void 0,this.errors={},this.existingDocuments=[],this.paymentVolume=void 0,this.business=void 0,this.documentData=new T,this.renderState="loading",this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get documentEndpoint(){return"entities/document"}componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:m.proxyApiOrigin}),this.businessId&&this.authToken&&this.fetchData()}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get isLoading(){return"loading"===this.renderState}get isError(){return"error"===this.renderState}get documentsOnFile(){return this.isError?null:this.isLoading?i(I,{height:"50px"}):i("justifi-business-documents-on-file",{documents:this.existingDocuments})}get formInputs(){return this.isError?null:this.isLoading?i(I,{height:"350px"}):i("justifi-business-document-upload-input-group",{paymentVolume:this.paymentVolume,inputHandler:this.inputHandler,storeFiles:this.storeFiles,errors:this.errors})}render(){return i("form",{key:"38a3eb1b9bdde8e315d1c37247e7ad842a3f29c5"},i("fieldset",{key:"c3708b2869316632a04e73a4fcf192458f052563"},i("div",{key:"8e12a5cb1bdc5b70913e8188ae7a9df8e8db7da9",class:"d-flex align-items-center gap-2"},i("legend",{key:"b4780b4cacb48d63a07329aff4e2ef5bd0f5a636",class:"mb-0",part:S},"Document Uploads"),i("form-control-tooltip",{key:"48a7dcc864c87171ab9e6dcafd7edeb20383bb2d",helpText:"Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),i("hr",{key:"2e8c855ec6970e6368521970912ff1ce8c2d9bc0",class:"mt-2"}),this.documentsOnFile,i("div",{key:"cf9026e49cd1e954d37fc3ff01770b6d2be4095a",class:"d-flex flex-column"},this.formInputs)))}},P=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:o.MISSING_PROPS,severity:n.ERROR})}render(){return i(e,{key:"a4289542dcf53a2be9c2faea5873a36894a2e250"},i("justifi-business-owners-form-step-core",{key:"cd40a3cb35d657223516c91217ca3241701dcc8f",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},E=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:o.MISSING_PROPS,severity:n.ERROR})}render(){return i("justifi-business-representative-form-step-core",{key:"ef66ed41f635a4676073073db924050f548c9781",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},W=class{constructor(i){s(this,i),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.formCompleted=t(this,"formCompleted",7),this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get(this.businessEndpoint);this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:o.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const t=this.termsPayload,i=await this.api.post(this.termsConditionsEndpoint,t);this.handleResponse(i,s)}catch(s){this.errorEvent.emit({errorCode:o.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,t)=>{this.acceptedTerms=t,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.acceptedTermsBefore=void 0,this.acceptedTerms=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=b({authToken:this.authToken,apiOrigin:m.proxyApiOrigin}),this.formController=new p((s=>{const t=u({accepted:f().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),i=u({accepted:f().nullable()});return s?i:t})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,t){s.error?this.errorEvent.emit({errorCode:o.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):t(),this.stepCompleteEvent.emit({response:s,formStep:O.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:O.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){return i("form",{key:"171f28c9ceb30482708899890880c8ab11dbc941"},i("fieldset",{key:"51306d0bd3e3dea325fb770f5c2561dd8cc2e207"},i("legend",{key:"500f63285df715926ee3c32ea2d0ef8dc8f10523",part:S},"Terms and Conditions"),i("hr",{key:"320c04095f36752c5661afbf10a2ec021234bac6"}),i("justifi-business-terms-conditions-text",{key:"b6cb2162427df3225fa0443080905aea15140715"}),i("br",{key:"f65ea0d2c5e820fe75b0c11ac127cdb9621c389a"}),i("div",{key:"4b2a6dc295a039b20b9b9a516dc2c791509722d6",class:"row-gy-3"},i("div",{key:"27265499a6d1cfcdd1a9d1a890f266bb670b4e57",class:"col-12"},i("form-control-checkbox",{key:"80459807c7ebb3bd9ea43ae0c27235c9d3d00976",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},z=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.getBusiness=void 0,this.patchBusiness=void 0,this.authToken=void 0,this.businessId=void 0,this.allowOptionalFields=void 0}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=h({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=r({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:o.MISSING_PROPS,severity:n.ERROR})}render(){return i("justifi-legal-address-form-step-core",{key:"598e4684d6344d783f7a9de8effbac5bda79834f",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},M=class{constructor(t){s(this,t),this.currentStep=void 0,this.totalSteps=void 0,this.formLoading=void 0,this.formDisabled=void 0,this.previousStepButtonOnClick=void 0,this.nextStepButtonOnClick=void 0}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return i("div",{key:"f5b14768cd97673e77c1ee2d9d73221cdee885e6",class:"d-flex gap-2"},i(B,{key:"4726571002718d036c292a41dc216955ba5ec687",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),i(B,{key:"3852cfcd4704f5509f22a5c457526fe8475df096",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,F.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),i(B,{key:"d62830b61932581071a1a44d872760be0823215a",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,F.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},D=class{constructor(t){s(this,t),this.componentStepMapping={0:()=>i("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>i("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>i("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>i("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>i("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>i("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>i("justifi-business-document-upload-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields}),7:()=>i("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[7]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})},this.businessId=void 0,this.authToken=void 0,this.refs=void 0,this.currentStep=void 0,this.allowOptionalFields=!1,this.handleFormLoading=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return i("div",{key:"7c2dc774f9c84172ffe0dbe18d24d9c582711159",class:"col-12 mb-4"},this.currentStepComponent)}};export{A as justifi_additional_questions_form_step,L as justifi_business_bank_account_form_step,x as justifi_business_core_info_form_step,q as justifi_business_document_upload_form_step,P as justifi_business_owners_form_step,E as justifi_business_representative_form_step,W as justifi_business_terms_conditions_form_step,z as justifi_legal_address_form_step,M as justifi_payment_provisioning_form_buttons,D as justifi_payment_provisioning_form_steps}
|