@justifi/webcomponents 4.23.1 → 5.0.0-rc-2
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/{Business-aa799fec.js → Business-cfd6a2dd.js} +5 -0
- package/dist/cjs/Dispute-eb6bad54.js +59 -0
- package/dist/cjs/{Payment-87b47c43.js → Payment-d074b246.js} +7 -9
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +9 -28
- package/dist/cjs/bank-account-form_9.cjs.entry.js +493 -0
- package/dist/cjs/{business-additional-questions-schema-f5591026.js → business-additional-questions-schema-caa23e95.js} +2 -2
- package/dist/cjs/business-details-core.cjs.entry.js +26 -4
- package/dist/cjs/{business-form-options-5db0bd5e.js → business-form-options-4bcb8943.js} +1 -1
- package/dist/cjs/{business-identity-schema-804a4bd7.js → business-identity-schema-0c537067.js} +2 -2
- package/dist/cjs/{business.service-7faffa0b.js → business.service-285f6f26.js} +1 -1
- package/dist/cjs/button-94bdc1f0.js +20 -0
- package/dist/cjs/{Analytics-7ab90cae.js → check-pkg-version-18426209.js} +23 -3
- package/dist/cjs/{checkout.service-aae1996c.js → checkout.service-671fab62.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +37 -30
- package/dist/cjs/checkouts-list-params-state-418c75a3.js +14 -0
- package/dist/cjs/checkouts-table-17648e93.js +48 -0
- package/dist/cjs/{config-05767cba.js → config-b190e93e.js} +1 -1
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +3 -107
- package/dist/cjs/dispute.service-c362a953.js +29 -0
- package/dist/cjs/event-types-180a85a9.js +23 -0
- package/dist/cjs/{table-ec9ce9f7.js → event-types-4df47396.js} +16 -8
- package/dist/cjs/event-types-8edaabbb.js +22 -0
- package/dist/cjs/form-alert_5.cjs.entry.js +9 -8
- package/dist/cjs/form-control-checkbox.cjs.entry.js +57 -0
- package/dist/cjs/form-control-date.cjs.entry.js +21 -2
- package/dist/cjs/form-control-error-text-a2fd5fc1.js +14 -0
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +90 -0
- package/dist/cjs/form-control-file.cjs.entry.js +21 -2
- package/dist/cjs/form-control-help-text-b6f7ae6e.js +14 -0
- package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +22 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +21 -3
- package/dist/cjs/form-control-number.cjs.entry.js +21 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +25 -17
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-1eed32ee.js → get-payout-csv-d2aed52c.js} +2 -2
- package/dist/cjs/{get-subaccounts-1d2fb201.js → get-subaccounts-9aa22224.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -8
- package/dist/cjs/header-1-cb7af794.js +10 -0
- package/dist/cjs/header-3-75e50713.js +10 -0
- package/dist/cjs/iframe-input-styles-state-d0de0b24.js +26 -0
- package/dist/cjs/{justifi-billing-form_2.cjs.entry.js → iframe-input.cjs.entry.js} +73 -180
- package/dist/cjs/{index-fb499e95.js → index-5b9a3b5f.js} +1 -93
- package/dist/cjs/{insurance-state-80e24caf.js → index-d2d0b181.js} +2 -24
- package/dist/cjs/{index.esm-97cf6825.js → index.esm-a397536a.js} +1 -1
- package/dist/cjs/insurance-state-001cfe12.js +34 -0
- package/dist/cjs/justifi-additional-questions-form-step-core_8.cjs.entry.js +591 -0
- package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +43 -43
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +413 -0
- package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-form.cjs.entry.js +25 -32
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +16 -20
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +38 -0
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -14
- package/dist/cjs/justifi-details.cjs.entry.js +4 -4
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +50 -11
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +87 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +378 -0
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -7
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +18 -28
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +13 -8
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +43 -0
- package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +27 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +20 -14
- package/dist/cjs/justifi-refund-form.cjs.entry.js +7 -10
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +17 -18
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +35 -0
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +11 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-6d1daab8.js → package-d6ef89ed.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +26 -0
- package/dist/cjs/parts-811ddb9c.js +119 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +13 -11
- package/dist/cjs/{payment.service-86871f43.js → payment.service-9a5336f1.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +34 -27
- package/dist/cjs/payments-list-params-state-0ff968a7.js +14 -0
- package/dist/cjs/payments-table-cf5d1c33.js +32 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +8 -5
- package/dist/cjs/payouts-list-core.cjs.entry.js +37 -30
- package/dist/cjs/payouts-list-params-state-16348184.js +14 -0
- package/dist/cjs/payouts-table-58881d95.js +38 -0
- package/dist/cjs/{schema-validations-f0363047.js → schema-validations-0be8068a.js} +2 -2
- package/dist/cjs/skeleton-5ca03840.js +13 -0
- package/dist/cjs/spinner-c11fcb44.js +12 -0
- package/dist/cjs/styled-host-94309bab.js +14 -0
- package/dist/cjs/table-filters-menu.cjs.entry.js +45 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +36 -29
- package/dist/cjs/terminals-list-params-state-95ff6a64.js +14 -0
- package/dist/cjs/terminals-table-91985249.js +33 -0
- package/dist/cjs/{utils-e88fbc94.js → utils-a21b7453.js} +31 -28
- package/dist/cjs/utils-fc17191b.js +29 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/api/Analytics.js +1 -1
- package/dist/collection/api/Business.js +5 -0
- package/dist/collection/api/Dispute.js +55 -0
- package/dist/collection/api/DisputeEvidenceDocument.js +44 -0
- package/dist/collection/api/Payment.js +6 -9
- package/dist/collection/api/services/dispute.service.js +20 -0
- package/dist/collection/collection-manifest.json +16 -17
- package/dist/collection/components/billing-form/billing-form.js +2 -19
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -19
- package/dist/collection/components/business-details/business-details-core.js +8 -7
- package/dist/collection/components/business-details/business-details-loading.js +6 -0
- package/dist/collection/components/business-details/business-details.js +5 -13
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +1 -11
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +1 -11
- package/dist/collection/components/business-details/owner-details/owner-details.js +1 -11
- package/dist/collection/components/business-details/representative-details/representative-details.js +1 -19
- package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -6
- package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -4
- package/dist/collection/components/business-forms/business-form/business-form.js +18 -59
- package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +2 -1
- package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +2 -6
- package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form-core.js +22 -52
- package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
- package/dist/collection/components/business-forms/owner-form/owner-form.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +18 -40
- package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +19 -44
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +18 -40
- package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +26 -47
- package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +17 -39
- package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +6 -6
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +21 -42
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-input-group.js +1 -1
- package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-documents-on-file.js +4 -3
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +18 -39
- package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +6 -11
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +32 -23
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +2 -2
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -20
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -11
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +30 -31
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.js +2 -11
- package/dist/collection/components/business-forms/utils/event-types.js +21 -0
- package/dist/collection/components/business-forms/utils/index.js +4 -0
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +65 -0
- package/dist/collection/components/checkout/card-form/card-form.js +67 -0
- package/dist/collection/components/checkout/checkout-core.js +19 -28
- package/dist/collection/components/checkout/checkout.js +7 -7
- package/dist/collection/components/checkout/message-event-types.js +4 -0
- package/dist/collection/components/checkout/new-payment-method.js +23 -15
- package/dist/collection/components/checkout/payment-method-options.js +1 -11
- package/dist/collection/components/checkout/save-new-payment-method.js +3 -4
- package/dist/collection/components/checkout/saved-payment-method.js +6 -5
- package/dist/collection/components/checkout/sezzle-payment-method.js +6 -4
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +43 -36
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -61
- package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +8 -0
- package/dist/collection/components/checkouts-list/checkouts-list.js +7 -29
- package/dist/collection/components/checkouts-list/checkouts-table.js +13 -12
- package/dist/collection/components/dispute-management/dispute-actions.js +31 -0
- package/dist/collection/components/dispute-management/dispute-management-core.js +131 -17
- package/dist/collection/components/dispute-management/dispute-management.js +143 -2
- package/dist/collection/components/dispute-management/dispute-notification.js +135 -15
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +110 -0
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-actions.js +117 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +362 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-form-types.js +12 -0
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +186 -0
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +106 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/additional-statement-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/customer-details-schema.js +7 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/dispute-reason-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.js +5 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/product-or-service-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/refund-policy-schema.js +6 -0
- package/dist/collection/components/dispute-management/dispute-response/schemas/shipping-details-schema.js +8 -0
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +106 -0
- package/dist/collection/components/dispute-management/event-types.js +20 -0
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +8 -17
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +5 -5
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +19 -22
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +6 -6
- package/dist/collection/components/pagination-menu/pagination-menu.js +5 -4
- package/dist/collection/components/payment-details/payment-details-core.js +15 -13
- package/dist/collection/components/payment-details/payment-details.js +5 -28
- package/dist/collection/components/payments-list/payments-list-core.js +40 -33
- package/dist/collection/components/payments-list/payments-list-filters.js +8 -61
- package/dist/collection/components/payments-list/payments-list-params-state.js +8 -0
- package/dist/collection/components/payments-list/payments-list.js +7 -29
- package/dist/collection/components/payments-list/payments-table.js +15 -14
- package/dist/collection/components/payout-details/payout-details-core.js +10 -8
- package/dist/collection/components/payout-details/payout-details.js +5 -5
- package/dist/collection/components/payouts-list/payouts-list-core.js +43 -36
- package/dist/collection/components/payouts-list/payouts-list-filters.js +8 -60
- package/dist/collection/components/payouts-list/payouts-list-params-state.js +8 -0
- package/dist/collection/components/payouts-list/payouts-list.js +6 -28
- package/dist/collection/components/payouts-list/payouts-table.js +19 -18
- package/dist/collection/components/refund-form/refund-form.js +1 -11
- package/dist/collection/components/refund-form/refund-form.stories.js +1 -60
- package/dist/collection/components/terminals-list/terminals-list-core.js +43 -36
- package/dist/collection/components/terminals-list/terminals-list-filters.js +8 -61
- package/dist/collection/components/terminals-list/terminals-list-params-state.js +8 -0
- package/dist/collection/components/terminals-list/terminals-list.js +7 -29
- package/dist/collection/components/terminals-list/terminals-table.js +9 -8
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -24
- package/dist/collection/styles/parts.js +74 -0
- package/dist/collection/ui-components/button.js +6 -12
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/details/details.js +2 -4
- package/dist/collection/ui-components/details/utils.js +7 -10
- package/dist/collection/ui-components/filters/table-filters-menu.js +5 -1
- package/dist/collection/ui-components/form/form-control-checkbox.js +31 -16
- package/dist/collection/ui-components/form/form-control-date.js +25 -1
- package/dist/collection/ui-components/form/form-control-file-v2.js +177 -0
- package/dist/collection/ui-components/form/form-control-file.js +22 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +25 -1
- package/dist/collection/ui-components/form/form-control-number-masked.js +24 -1
- package/dist/collection/ui-components/form/form-control-number.js +24 -1
- package/dist/collection/ui-components/form/form-control-radio.js +50 -40
- package/dist/collection/ui-components/form/form-control-select.js +25 -1
- package/dist/collection/ui-components/form/form-control-text.js +24 -1
- package/dist/collection/ui-components/form/form-control-textarea.js +27 -2
- package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +2 -1
- package/dist/collection/ui-components/form/form-helpers/form-control-error-text.js +9 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-help-text.js +9 -0
- package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -1
- package/dist/collection/ui-components/form/form.js +1 -1
- package/dist/collection/ui-components/form/hidden-input.js +85 -0
- package/dist/collection/ui-components/form/iframe-input-styles-state.js +21 -0
- package/dist/collection/ui-components/form/iframe-input.js +215 -0
- package/dist/collection/ui-components/headers/header-1.js +5 -0
- package/dist/collection/ui-components/headers/header-2.js +5 -0
- package/dist/collection/ui-components/headers/header-3.js +5 -0
- package/dist/collection/ui-components/index.js +6 -0
- package/dist/collection/ui-components/skeleton.js +4 -34
- package/dist/collection/ui-components/spinner.js +6 -0
- package/dist/collection/ui-components/table/event-types.js +6 -0
- package/dist/collection/ui-components/table-empty-state.js +2 -1
- package/dist/collection/ui-components/table-error-state.js +2 -1
- package/dist/collection/ui-components/table-loading-state.js +3 -1
- package/dist/collection/utils/table.js +2 -2
- package/dist/collection/utils/utils.js +27 -26
- package/dist/docs.json +3573 -4721
- package/dist/esm/{Business-b73d5055.js → Business-29c69f22.js} +6 -1
- package/dist/esm/Dispute-5fd28ec9.js +57 -0
- package/dist/esm/{Payment-2a868d0c.js → Payment-4f72d277.js} +7 -9
- package/dist/esm/additional-questions-details_5.entry.js +9 -28
- package/dist/esm/bank-account-form_9.entry.js +481 -0
- package/dist/esm/{business-additional-questions-schema-d94f8975.js → business-additional-questions-schema-48e93928.js} +2 -2
- package/dist/esm/business-details-core.entry.js +26 -4
- package/dist/esm/{business-form-options-d790973e.js → business-form-options-018f62a5.js} +1 -1
- package/dist/esm/{business-identity-schema-2756dbc6.js → business-identity-schema-75126188.js} +2 -2
- package/dist/esm/{business.service-97a3da69.js → business.service-182aea6f.js} +1 -1
- package/dist/esm/button-1886a33d.js +18 -0
- package/dist/esm/{Analytics-77dc80f3.js → check-pkg-version-157854b7.js} +23 -4
- package/dist/esm/{checkout.service-c1e44e0c.js → checkout.service-32a6ebe8.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +36 -29
- package/dist/esm/checkouts-list-params-state-1d968971.js +10 -0
- package/dist/esm/checkouts-table-8b116232.js +44 -0
- package/dist/esm/{config-27764a9d.js → config-187b3ae1.js} +1 -1
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -105
- package/dist/esm/dispute.service-4e5059aa.js +27 -0
- package/dist/esm/{table-44e3d1e7.js → event-types-01dcdcbd.js} +17 -9
- package/dist/esm/event-types-07cdb9a0.js +22 -0
- package/dist/esm/event-types-5c87de02.js +23 -0
- package/dist/esm/form-alert_5.entry.js +9 -8
- package/dist/esm/form-control-checkbox.entry.js +53 -0
- package/dist/esm/form-control-date.entry.js +21 -2
- package/dist/esm/form-control-error-text-3b2553b5.js +12 -0
- package/dist/esm/form-control-file-v2_2.entry.js +85 -0
- package/dist/esm/form-control-file.entry.js +21 -2
- package/dist/esm/form-control-help-text-a2fc3617.js +12 -0
- package/dist/esm/form-control-help-text.entry.js +1 -1
- package/dist/esm/form-control-monetary.entry.js +22 -2
- package/dist/esm/form-control-number-masked_2.entry.js +21 -3
- package/dist/esm/form-control-number.entry.js +21 -2
- package/dist/esm/form-control-radio.entry.js +25 -17
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-3b83b088.js → get-payout-csv-e6058aa7.js} +2 -2
- package/dist/esm/{get-subaccounts-dd20cfa4.js → get-subaccounts-0b8af245.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +6 -8
- package/dist/esm/header-1-c6a00a22.js +8 -0
- package/dist/esm/header-3-a1c6d475.js +8 -0
- package/dist/esm/iframe-input-styles-state-ff730fe5.js +23 -0
- package/dist/esm/{justifi-billing-form_2.entry.js → iframe-input.entry.js} +73 -179
- package/dist/esm/{index-57431c24.js → index-29fcfdf5.js} +1 -93
- package/dist/esm/{insurance-state-8ce01e59.js → index-a47fdc7f.js} +2 -21
- package/dist/esm/{index.esm-ed37201b.js → index.esm-0b6849c2.js} +1 -1
- package/dist/esm/insurance-state-8fc9376f.js +28 -0
- package/dist/esm/justifi-additional-questions-form-step-core_8.entry.js +580 -0
- package/dist/esm/justifi-additional-questions-form-step_10.entry.js +43 -43
- package/dist/esm/justifi-additional-statement_8.entry.js +402 -0
- package/dist/esm/justifi-business-details.entry.js +8 -8
- package/dist/esm/justifi-business-form.entry.js +21 -28
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -2
- package/dist/esm/justifi-checkout-core.entry.js +16 -20
- package/dist/esm/justifi-checkout.entry.js +9 -9
- package/dist/esm/justifi-checkouts-list-filters.entry.js +34 -0
- package/dist/esm/justifi-checkouts-list.entry.js +13 -13
- package/dist/esm/justifi-details.entry.js +4 -4
- package/dist/esm/justifi-dispute-management-core.entry.js +50 -11
- package/dist/esm/justifi-dispute-management.entry.js +87 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +372 -0
- package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
- package/dist/esm/justifi-owner-form_3.entry.js +16 -26
- package/dist/esm/justifi-payment-details.entry.js +9 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +12 -7
- package/dist/esm/justifi-payment-provisioning.entry.js +6 -7
- package/dist/esm/justifi-payments-list-filters.entry.js +39 -0
- package/dist/esm/justifi-payments-list.entry.js +12 -12
- package/dist/esm/justifi-payout-details.entry.js +9 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +23 -0
- package/dist/esm/justifi-payouts-list.entry.js +19 -13
- package/dist/esm/justifi-refund-form.entry.js +7 -10
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +17 -18
- package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
- package/dist/esm/justifi-terminals-list-filters.entry.js +31 -0
- package/dist/esm/justifi-terminals-list.entry.js +11 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +10 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-627f73c1.js → package-9e3b7f9e.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +22 -0
- package/dist/esm/parts-186d437f.js +72 -0
- package/dist/esm/payment-details-core.entry.js +13 -11
- package/dist/esm/{payment.service-ca6b5bc5.js → payment.service-45f90e06.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +33 -26
- package/dist/esm/payments-list-params-state-b3dab8bc.js +10 -0
- package/dist/esm/payments-table-d6fbab5b.js +28 -0
- package/dist/esm/payout-details-core.entry.js +8 -5
- package/dist/esm/payouts-list-core.entry.js +36 -29
- package/dist/esm/payouts-list-params-state-49618e7a.js +10 -0
- package/dist/esm/payouts-table-2e61a116.js +34 -0
- package/dist/esm/{schema-validations-93a9d504.js → schema-validations-c7d4f9df.js} +2 -2
- package/dist/esm/skeleton-8f71cdf7.js +11 -0
- package/dist/esm/spinner-879489b3.js +10 -0
- package/dist/esm/styled-host-32228b45.js +12 -0
- package/dist/esm/table-filters-menu.entry.js +41 -0
- package/dist/esm/terminals-list-core.entry.js +35 -28
- package/dist/esm/terminals-list-params-state-2c48d35f.js +10 -0
- package/dist/esm/terminals-table-8e42977c.js +29 -0
- package/dist/esm/{utils-1df1e55a.js → utils-54543523.js} +31 -30
- package/dist/esm/utils-d7633e66.js +22 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/module/Business.js +6 -1
- package/dist/module/Payment.js +62 -10
- package/dist/module/additional-questions-details2.js +1 -5
- package/dist/module/additional-questions.js +4 -15
- package/dist/module/additional-statement.js +52 -13
- package/dist/module/{justifi-card-form.d.ts → bank-account-form.d.ts} +4 -4
- package/dist/module/bank-account-form.js +6 -0
- package/dist/module/bank-account-form2.js +44 -0
- package/dist/module/billing-form.js +6 -18
- package/dist/module/business-additional-questions-form-step-core.js +8 -21
- package/dist/module/business-additional-questions-form-step.js +3 -15
- package/dist/module/business-bank-account-form-step.js +11 -18
- package/dist/module/business-core-info-form-step-core.js +11 -18
- package/dist/module/business-core-info-form-step.js +5 -11
- package/dist/module/business-core-info.js +6 -11
- package/dist/module/business-details-core2.js +25 -3
- package/dist/module/business-document-upload-form-step.js +12 -18
- package/dist/module/business-document-upload-input-group.js +3 -9
- package/dist/module/business-documents-on-file.js +4 -3
- package/dist/module/business-owners-form-step-core.js +12 -18
- package/dist/module/business-owners-form-step.js +5 -11
- package/dist/module/business-representative-form-inputs.js +6 -11
- package/dist/module/business-representative-form-step-core.js +9 -17
- package/dist/module/business-representative-form-step.js +5 -11
- package/dist/module/business-representative.js +6 -11
- package/dist/module/business-terms-conditions-form-step.js +16 -22
- package/dist/module/business-terms-conditions-text.js +2 -5
- package/dist/module/button.js +6 -12
- package/dist/module/cancellation-policy.js +49 -13
- package/dist/module/{justifi-payment-form.d.ts → card-form.d.ts} +4 -4
- package/dist/module/card-form.js +6 -0
- package/dist/module/card-form2.js +46 -0
- package/dist/module/check-pkg-version.js +76 -1
- package/dist/module/checkout-core.js +55 -30
- package/dist/module/checkouts-list-core2.js +47 -77
- package/dist/module/checkouts-list-params-state.js +10 -0
- package/dist/module/config.js +1 -1
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +50 -13
- package/dist/module/details.js +3 -5
- package/dist/module/dispute-management-core.js +74 -39
- package/dist/module/dispute-notification.js +41 -8
- package/dist/module/dispute-response-actions.js +117 -0
- package/dist/module/dispute-response-core.js +280 -0
- package/dist/module/dispute-response-form-types.js +59 -0
- package/dist/module/dispute-response.js +198 -0
- package/dist/module/duplicate-charge.js +49 -13
- package/dist/module/electronic-evidence.js +49 -20
- package/dist/module/{table.js → event-types.js} +16 -8
- package/dist/module/event-types2.js +23 -0
- package/dist/module/event-types3.js +22 -0
- package/dist/module/form-alert2.js +2 -1
- package/dist/module/form-control-checkbox2.js +29 -27
- package/dist/module/form-control-date2.js +25 -10
- package/dist/module/form-control-error-text.js +10 -4
- package/dist/module/{payouts-list-filters.d.ts → form-control-file-v2.d.ts} +4 -4
- package/dist/module/form-control-file-v2.js +6 -0
- package/dist/module/form-control-file-v22.js +59 -0
- package/dist/module/form-control-file2.js +25 -10
- package/dist/module/form-control-help-text.js +1 -1
- package/dist/module/form-control-help-text2.js +9 -32
- package/dist/module/form-control-help-text3.js +35 -0
- package/dist/module/form-control-monetary2.js +26 -16
- package/dist/module/form-control-number-masked2.js +25 -11
- package/dist/module/form-control-number.js +24 -15
- package/dist/module/form-control-radio2.js +31 -30
- package/dist/module/form-control-select2.js +25 -10
- package/dist/module/form-control-text2.js +24 -10
- package/dist/module/form-control-textarea2.js +26 -11
- package/dist/module/form-control-tooltip2.js +2 -1
- package/dist/module/form.js +1 -1
- package/dist/module/generic-info-details2.js +1 -5
- package/dist/module/get-payout-csv.js +1 -1
- package/dist/module/get-subaccounts.js +1 -1
- package/dist/module/gross-payment-chart-core2.js +3 -6
- package/dist/module/header-1.js +8 -0
- package/dist/module/{payments-list-filters.d.ts → hidden-input.d.ts} +4 -4
- package/dist/module/hidden-input.js +6 -0
- package/dist/module/hidden-input2.js +100 -0
- package/dist/module/identity-address-form.js +4 -10
- package/dist/module/iframe-input-styles-state.js +23 -0
- package/dist/module/iframe-input.d.ts +11 -0
- package/dist/module/iframe-input.js +6 -0
- package/dist/module/{payment-method-form.js → iframe-input2.js} +83 -131
- package/dist/module/index2.js +167 -3572
- package/dist/module/index3.js +3599 -0
- package/dist/module/insurance-state.js +6 -191
- package/dist/module/justifi-business-details.js +2 -3
- package/dist/module/justifi-business-form.js +16 -36
- package/dist/module/justifi-checkout.js +52 -23
- package/dist/module/justifi-checkouts-list-filters.d.ts +11 -0
- package/dist/module/justifi-checkouts-list-filters.js +77 -0
- package/dist/module/justifi-checkouts-list.js +8 -45
- package/dist/module/justifi-dispute-management.js +109 -34
- package/dist/module/justifi-dispute-response-core.d.ts +11 -0
- package/dist/module/justifi-dispute-response-core.js +6 -0
- package/dist/module/justifi-dispute-response.d.ts +11 -0
- package/dist/module/justifi-dispute-response.js +6 -0
- package/dist/module/justifi-gross-payment-chart.js +2 -3
- package/dist/module/justifi-payment-details.js +3 -4
- package/dist/module/justifi-payment-provisioning.js +12 -24
- package/dist/module/justifi-payments-list-filters.d.ts +11 -0
- package/dist/module/justifi-payments-list-filters.js +94 -0
- package/dist/module/justifi-payments-list.js +9 -58
- package/dist/module/justifi-payout-details.js +2 -3
- package/dist/module/justifi-payouts-list-filters.d.ts +11 -0
- package/dist/module/justifi-payouts-list-filters.js +66 -0
- package/dist/module/justifi-payouts-list.js +14 -45
- package/dist/module/justifi-refund-form.js +4 -19
- package/dist/module/justifi-season-interruption-insurance.js +16 -5
- package/dist/module/justifi-terminals-list-filters.d.ts +11 -0
- package/dist/module/{terminals-list-filters2.js → justifi-terminals-list-filters.js} +25 -28
- package/dist/module/justifi-terminals-list.js +8 -51
- package/dist/module/justifi-tokenize-payment-method.js +51 -25
- package/dist/module/legal-address-details2.js +1 -5
- package/dist/module/legal-address-form-step-core.js +10 -17
- package/dist/module/legal-address-form-step.js +3 -9
- package/dist/module/legal-address-form.js +5 -10
- package/dist/module/new-payment-method.js +72 -30
- package/dist/module/owner-details2.js +1 -5
- package/dist/module/owner-form-core2.js +10 -25
- package/dist/module/owner-form-inputs2.js +5 -11
- package/dist/module/owner-form.js +5 -11
- package/dist/module/package.js +1 -1
- package/dist/module/pagination-menu2.js +4 -3
- package/dist/module/parts.js +72 -0
- package/dist/module/payment-details-core2.js +11 -9
- package/dist/module/payment-method-options.js +47 -24
- package/dist/module/payment-provisioning-actions.js +1 -1
- package/dist/module/payment-provisioning-core.js +21 -28
- package/dist/module/payment-provisioning-form-buttons.js +4 -2
- package/dist/module/payment-provisioning-form-steps.js +11 -24
- package/dist/module/payments-list-core2.js +46 -88
- package/dist/module/payments-list-params-state.js +10 -0
- package/dist/module/payout-details-core2.js +6 -3
- package/dist/module/payouts-list-core2.js +53 -83
- package/dist/module/payouts-list-params-state.js +10 -0
- package/dist/module/product-or-service.js +46 -13
- package/dist/module/refund-policy.js +49 -13
- package/dist/module/representative-details2.js +1 -5
- package/dist/module/save-new-payment-method.js +10 -5
- package/dist/module/saved-payment-method.js +19 -6
- package/dist/module/season-interruption-insurance-core.js +29 -19
- package/dist/module/sezzle-payment-method.js +19 -5
- package/dist/module/shipping-details.js +53 -19
- package/dist/module/skeleton.js +4 -34
- package/dist/module/spinner.js +10 -0
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu2.js +12 -2
- package/dist/module/terminals-list-core2.js +43 -79
- package/dist/module/terminals-list-params-state.js +10 -0
- package/dist/module/utils.js +14 -19
- package/dist/module/utils2.js +31 -30
- package/dist/module/utils3.js +25 -30
- package/dist/module/utils4.js +23 -24
- package/dist/types/api/Business.d.ts +4 -0
- package/dist/types/api/Checkout.d.ts +1 -3
- package/dist/types/api/ComponentError.d.ts +0 -6
- package/dist/types/api/ComponentEvents.d.ts +23 -0
- package/dist/types/api/Dispute.d.ts +76 -0
- package/dist/types/api/DisputeEvidenceDocument.d.ts +23 -0
- package/dist/types/api/Payment.d.ts +6 -11
- package/dist/types/api/Payout.d.ts +1 -3
- package/dist/types/api/Terminal.d.ts +1 -4
- package/dist/types/api/services/dispute.service.d.ts +14 -0
- package/dist/types/components/billing-form/billing-form.d.ts +0 -5
- package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +0 -8
- package/dist/types/components/business-details/business-details-core.d.ts +2 -2
- package/dist/types/components/business-details/business-details-loading.d.ts +1 -0
- package/dist/types/components/business-details/business-details.d.ts +2 -10
- package/dist/types/components/business-details/representative-details/representative-details.d.ts +0 -8
- package/dist/types/components/business-forms/business-form/additional-questions/additional-questions.d.ts +0 -5
- package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +0 -3
- package/dist/types/components/business-forms/business-form/business-form.d.ts +4 -11
- package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +0 -5
- package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +4 -6
- package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -2
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +3 -8
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +4 -6
- package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -2
- package/dist/types/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +3 -5
- package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +5 -5
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -2
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning.d.ts +2 -7
- package/dist/types/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.d.ts +5 -5
- package/dist/types/components/business-forms/utils/event-types.d.ts +19 -0
- package/dist/types/components/business-forms/utils/index.d.ts +4 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +7 -0
- package/dist/types/components/checkout/card-form/card-form.d.ts +9 -0
- package/dist/types/components/checkout/checkout-core.d.ts +5 -4
- package/dist/types/components/checkout/checkout.d.ts +2 -2
- package/dist/types/components/checkout/message-event-types.d.ts +4 -0
- package/dist/types/components/checkout/new-payment-method.d.ts +3 -3
- package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/saved-payment-method.d.ts +1 -1
- package/dist/types/components/checkout/sezzle-payment-method.d.ts +1 -1
- package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +7 -8
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +1 -3
- package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +5 -0
- package/dist/types/components/checkouts-list/checkouts-list.d.ts +2 -24
- package/dist/types/components/checkouts-list/checkouts-table.d.ts +6 -6
- package/dist/types/components/dispute-management/dispute-actions.d.ts +9 -0
- package/dist/types/components/dispute-management/dispute-management-core.d.ts +14 -3
- package/dist/types/components/dispute-management/dispute-management.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-notification.d.ts +9 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +17 -0
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-actions.d.ts +40 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +46 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response-form-types.d.ts +20 -0
- package/dist/types/components/dispute-management/dispute-response/dispute-response.d.ts +35 -0
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +15 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/additional-statement-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/cancellation-policy-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/customer-details-schema.d.ts +10 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/dispute-reason-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/duplicate-charge-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/electronic-evidence-schema.d.ts +6 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/product-or-service-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/refund-policy-schema.d.ts +8 -0
- package/dist/types/components/dispute-management/dispute-response/schemas/shipping-details-schema.d.ts +12 -0
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +15 -0
- package/dist/types/components/dispute-management/event-types.d.ts +18 -0
- package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +2 -2
- package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +3 -3
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +4 -4
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/payment-details/payment-details-core.d.ts +2 -2
- package/dist/types/components/payment-details/payment-details.d.ts +2 -25
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -7
- package/dist/types/components/payments-list/payments-list-filters.d.ts +1 -4
- package/dist/types/components/payments-list/payments-list-params-state.d.ts +5 -0
- package/dist/types/components/payments-list/payments-list.d.ts +2 -24
- package/dist/types/components/payments-list/payments-table.d.ts +7 -7
- package/dist/types/components/payout-details/payout-details-core.d.ts +2 -2
- package/dist/types/components/payout-details/payout-details.d.ts +3 -3
- package/dist/types/components/payouts-list/payouts-list-core.d.ts +7 -8
- package/dist/types/components/payouts-list/payouts-list-filters.d.ts +0 -3
- package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +5 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +2 -24
- package/dist/types/components/payouts-list/payouts-table.d.ts +9 -9
- package/dist/types/components/terminals-list/terminals-list-core.d.ts +7 -8
- package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -4
- package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +5 -0
- package/dist/types/components/terminals-list/terminals-list.d.ts +2 -24
- package/dist/types/components/terminals-list/terminals-table.d.ts +4 -4
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +4 -5
- package/dist/types/components.d.ts +465 -1338
- package/dist/types/styles/parts.d.ts +58 -0
- package/dist/types/ui-components/details/utils.d.ts +0 -1
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +1 -0
- package/dist/types/ui-components/form/form-control-checkbox.d.ts +3 -3
- package/dist/types/ui-components/form/form-control-date.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-file-v2.d.ts +15 -0
- package/dist/types/ui-components/form/form-control-file.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-monetary.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-number-masked.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-number.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-radio.d.ts +6 -7
- package/dist/types/ui-components/form/form-control-select.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-text.d.ts +2 -0
- package/dist/types/ui-components/form/form-control-textarea.d.ts +2 -0
- package/dist/types/ui-components/form/form-helpers/form-control-error-text.d.ts +4 -0
- package/dist/types/ui-components/form/form-helpers/form-control-help-text.d.ts +4 -0
- package/dist/types/ui-components/form/form.d.ts +1 -1
- package/dist/types/ui-components/form/hidden-input.d.ts +11 -0
- package/dist/types/ui-components/form/iframe-input-styles-state.d.ts +3 -0
- package/dist/types/ui-components/form/iframe-input.d.ts +21 -0
- package/dist/types/ui-components/headers/header-1.d.ts +6 -0
- package/dist/types/ui-components/headers/header-2.d.ts +6 -0
- package/dist/types/ui-components/headers/header-3.d.ts +6 -0
- package/dist/types/ui-components/index.d.ts +6 -0
- package/dist/types/ui-components/skeleton.d.ts +1 -2
- package/dist/types/ui-components/spinner.d.ts +2 -0
- package/dist/types/ui-components/table/event-types.d.ts +5 -0
- package/dist/types/utils/utils.d.ts +3 -2
- package/dist/webcomponents/p-0201ec6c.entry.js +1 -0
- package/dist/webcomponents/p-08b8d1f0.entry.js +1 -0
- package/dist/webcomponents/p-0aa63869.entry.js +1 -0
- package/dist/webcomponents/p-0cc6c539.js +1 -0
- package/dist/webcomponents/p-0ccbc022.entry.js +1 -0
- package/dist/webcomponents/{p-1815a43b.js → p-0ea387a2.js} +1 -1
- package/dist/webcomponents/p-0eb86b3f.entry.js +1 -0
- package/dist/webcomponents/{p-5a62fca2.js → p-0f23ff58.js} +1 -1
- package/dist/webcomponents/p-110cae83.entry.js +1 -0
- package/dist/webcomponents/p-16ba9bea.js +1 -0
- package/dist/webcomponents/p-1ce22da6.entry.js +1 -0
- package/dist/webcomponents/p-1dbae48b.entry.js +1 -0
- package/dist/webcomponents/p-275f2154.js +1 -0
- package/dist/webcomponents/p-2783e363.js +2 -0
- package/dist/webcomponents/p-28029272.entry.js +1 -0
- package/dist/webcomponents/p-323ba4df.entry.js +1 -0
- package/dist/webcomponents/p-32a5bf4e.js +1 -0
- package/dist/webcomponents/p-34c14f59.js +1 -0
- package/dist/webcomponents/p-438df53f.entry.js +1 -0
- package/dist/webcomponents/p-441c1cf8.js +1 -0
- package/dist/webcomponents/p-4972d608.entry.js +1 -0
- package/dist/webcomponents/p-4a576796.js +1 -0
- package/dist/webcomponents/p-4cc3c7f9.js +1 -0
- package/dist/webcomponents/p-4d916b2d.js +1 -0
- package/dist/webcomponents/p-4eb3dcfa.entry.js +1 -0
- package/dist/webcomponents/p-5456a794.js +1 -0
- package/dist/webcomponents/p-5844a0f0.js +1 -0
- package/dist/webcomponents/p-597bd1e1.entry.js +1 -0
- package/dist/webcomponents/p-5bbe1133.entry.js +1 -0
- package/dist/webcomponents/p-5c6d08a6.entry.js +1 -0
- package/dist/webcomponents/p-5cb947bc.entry.js +1 -0
- package/dist/webcomponents/p-5d3f81c0.entry.js +1 -0
- package/dist/webcomponents/p-663a00cd.entry.js +1 -0
- package/dist/webcomponents/p-6677c60d.entry.js +1 -0
- package/dist/webcomponents/p-667ebd79.js +1 -0
- package/dist/webcomponents/p-68694a17.entry.js +1 -0
- package/dist/webcomponents/p-6ab77b89.js +1 -0
- package/dist/webcomponents/p-6b840696.entry.js +1 -0
- package/dist/webcomponents/p-6f4bfdff.entry.js +1 -0
- package/dist/webcomponents/p-6fbd6abb.js +1 -0
- package/dist/webcomponents/p-6feeb9f2.js +1 -0
- package/dist/webcomponents/p-7216ef00.entry.js +1 -0
- package/dist/webcomponents/p-73a18b5a.entry.js +1 -0
- package/dist/webcomponents/p-73f9be7c.js +1 -0
- package/dist/webcomponents/p-7693ed02.entry.js +1 -0
- package/dist/webcomponents/{p-4cf7f4ae.js → p-79b7c30d.js} +1 -1
- package/dist/webcomponents/p-7a975a3c.js +1 -0
- package/dist/webcomponents/p-7b9f21cd.entry.js +1 -0
- package/dist/webcomponents/p-7f796066.entry.js +1 -0
- package/dist/webcomponents/p-808bb677.entry.js +1 -0
- package/dist/webcomponents/p-83584c56.entry.js +1 -0
- package/dist/webcomponents/p-88acfa7c.entry.js +1 -0
- package/dist/webcomponents/p-8a94d2c8.js +1 -0
- package/dist/webcomponents/p-8c7a81c1.js +1 -0
- package/dist/webcomponents/p-8da3667c.js +1 -0
- package/dist/webcomponents/p-90dc2f2c.js +1 -0
- package/dist/webcomponents/p-9c2e00cc.js +1 -0
- package/dist/webcomponents/p-9ef9a625.entry.js +1 -0
- package/dist/webcomponents/p-9f773228.js +1 -0
- package/dist/webcomponents/p-a07b1816.js +1 -0
- package/dist/webcomponents/p-a3949f32.js +1 -0
- package/dist/webcomponents/p-abdbcd8e.js +1 -0
- package/dist/webcomponents/p-ac147eef.entry.js +1 -0
- package/dist/webcomponents/{p-b0311e88.js → p-af834eb8.js} +1 -1
- package/dist/webcomponents/p-b056034f.entry.js +1 -0
- package/dist/webcomponents/p-b1d4e520.entry.js +1 -0
- package/dist/webcomponents/p-b392ec21.js +1 -0
- package/dist/webcomponents/p-b867dd5d.entry.js +1 -0
- package/dist/webcomponents/{p-544a4e7a.js → p-bb0f8b70.js} +1 -1
- package/dist/webcomponents/p-bb61c6e0.js +1 -0
- package/dist/webcomponents/p-bbcaa29b.entry.js +1 -0
- package/dist/webcomponents/p-bfe9748b.js +1 -0
- package/dist/webcomponents/p-c092cbb2.js +1 -0
- package/dist/webcomponents/p-c2a2b9fe.entry.js +1 -0
- package/dist/webcomponents/p-c9670f3c.entry.js +1 -0
- package/dist/webcomponents/p-cc977850.js +1 -0
- package/dist/webcomponents/p-cefd50f8.entry.js +1 -0
- package/dist/webcomponents/p-d53c5ea5.entry.js +1 -0
- package/dist/webcomponents/p-d75b52c8.entry.js +1 -0
- package/dist/webcomponents/p-d960db89.entry.js +1 -0
- package/dist/webcomponents/p-db8c12ee.js +1 -0
- package/dist/webcomponents/p-e1ee92f5.entry.js +1 -0
- package/dist/webcomponents/p-e396506c.entry.js +1 -0
- package/dist/webcomponents/p-e723bc30.entry.js +1 -0
- package/dist/webcomponents/p-ec60d318.entry.js +1 -0
- package/dist/webcomponents/p-ed8918d1.entry.js +1 -0
- package/dist/webcomponents/{p-f6f8dabc.js → p-edb57087.js} +1 -1
- package/dist/webcomponents/p-ee4a2aac.entry.js +1 -0
- package/dist/webcomponents/p-ef4c49b9.js +1 -0
- package/dist/webcomponents/p-f20b6ce1.js +1 -0
- package/dist/webcomponents/{p-c13a7d10.js → p-f4722957.js} +1 -1
- package/dist/webcomponents/p-f88d5c0d.entry.js +1 -0
- package/dist/webcomponents/p-f8a3b942.entry.js +1 -0
- package/dist/webcomponents/p-f99e8150.entry.js +1 -0
- package/dist/webcomponents/{p-628693c1.entry.js → p-f9fdcc1a.entry.js} +4 -4
- package/dist/webcomponents/p-fa2e3dc7.entry.js +1 -0
- package/dist/webcomponents/{p-ccbff4fa.entry.js → p-faa35b47.entry.js} +1 -1
- package/dist/webcomponents/p-fc3daedd.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/business-form-types-719b7f52.js +0 -50
- package/dist/cjs/button-3f400a66.js +0 -26
- package/dist/cjs/check-pkg-version-fe8c72a9.js +0 -24
- package/dist/cjs/checkouts-list-filters.cjs.entry.js +0 -35
- package/dist/cjs/checkouts-table-00b6482f.js +0 -47
- package/dist/cjs/dispute-30c806f6.js +0 -10
- package/dist/cjs/exported-parts-a994d693.js +0 -9
- package/dist/cjs/form-control-checkbox_9.cjs.entry.js +0 -641
- package/dist/cjs/form-control-error-text.cjs.entry.js +0 -21
- package/dist/cjs/form-control-textarea.cjs.entry.js +0 -49
- package/dist/cjs/justifi-additional-statement_11.cjs.entry.js +0 -173
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -79
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -80
- package/dist/cjs/justifi-new-payment-method_5.cjs.entry.js +0 -320
- package/dist/cjs/justifi-payment-form.cjs.entry.js +0 -141
- package/dist/cjs/justifi-payment-method-selector.cjs.entry.js +0 -34
- package/dist/cjs/pagination-menu_2.cjs.entry.js +0 -54
- package/dist/cjs/payments-list-filters.cjs.entry.js +0 -40
- package/dist/cjs/payments-table-7087e771.js +0 -31
- package/dist/cjs/payouts-list-filters.cjs.entry.js +0 -24
- package/dist/cjs/payouts-table-4858eb84.js +0 -37
- package/dist/cjs/skeleton-748c5dde.js +0 -43
- package/dist/cjs/styled-host-1adf46c3.js +0 -14
- package/dist/cjs/terminals-list-filters.cjs.entry.js +0 -32
- package/dist/cjs/terminals-table-12410159.js +0 -32
- package/dist/cjs/utils-189dc30d.js +0 -35
- package/dist/cjs/utils-ba79e868.js +0 -37
- package/dist/collection/components/bank-account-form/bank-account-form.js +0 -281
- package/dist/collection/components/billing-form/billing-form.css +0 -51
- package/dist/collection/components/business-details/shared-business-details.css +0 -3
- package/dist/collection/components/business-forms/business-form/business-form.css +0 -121
- package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-text.css +0 -18
- package/dist/collection/components/business-forms/utils/business-form-types.js +0 -48
- package/dist/collection/components/card-form/card-form.js +0 -300
- package/dist/collection/components/checkout/checkout-core.css +0 -110
- package/dist/collection/components/checkout/form-check-input.css +0 -20
- package/dist/collection/components/checkout/header.css +0 -4
- package/dist/collection/components/checkout/payment-method-options.css +0 -15
- package/dist/collection/components/dispute-management/counter-dispute/additional-statement.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/cancellation-policy.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/counter-dispute.js +0 -90
- package/dist/collection/components/dispute-management/counter-dispute/customer-details.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/dispute-reason.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/duplicate-charge.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/electronic-evidence.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/product-or-service.js +0 -16
- package/dist/collection/components/dispute-management/counter-dispute/refund-policy.js +0 -8
- package/dist/collection/components/dispute-management/counter-dispute/shipping-details.js +0 -12
- package/dist/collection/components/dispute-management/dispute.js +0 -8
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.css +0 -3
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.css +0 -11
- package/dist/collection/components/payment-form/payment-form.css +0 -97
- package/dist/collection/components/payment-form/payment-form.js +0 -372
- package/dist/collection/components/payment-form/payment-method-selector.css +0 -39
- package/dist/collection/components/payment-form/payment-method-selector.js +0 -74
- package/dist/collection/components/payment-method-form/message-event-types.js +0 -16
- package/dist/collection/components/payment-method-form/payment-method-form.css +0 -13
- package/dist/collection/components/payment-method-form/payment-method-form.js +0 -298
- package/dist/collection/components/refund-form/refund-form.css +0 -59
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.css +0 -9
- package/dist/collection/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.js +0 -52
- package/dist/collection/utils/get-computed-theme.js +0 -50
- package/dist/esm/business-form-types-8fd61b0e.js +0 -50
- package/dist/esm/button-34e75e0f.js +0 -24
- package/dist/esm/check-pkg-version-fbf01ce7.js +0 -22
- package/dist/esm/checkouts-list-filters.entry.js +0 -31
- package/dist/esm/checkouts-table-cd33b57c.js +0 -43
- package/dist/esm/dispute-4d2e0a04.js +0 -10
- package/dist/esm/exported-parts-70e7a12b.js +0 -7
- package/dist/esm/form-control-checkbox_9.entry.js +0 -629
- package/dist/esm/form-control-error-text.entry.js +0 -17
- package/dist/esm/form-control-textarea.entry.js +0 -45
- package/dist/esm/justifi-additional-statement_11.entry.js +0 -159
- package/dist/esm/justifi-bank-account-form.entry.js +0 -75
- package/dist/esm/justifi-card-form.entry.js +0 -76
- package/dist/esm/justifi-new-payment-method_5.entry.js +0 -312
- package/dist/esm/justifi-payment-form.entry.js +0 -137
- package/dist/esm/justifi-payment-method-selector.entry.js +0 -30
- package/dist/esm/pagination-menu_2.entry.js +0 -49
- package/dist/esm/payments-list-filters.entry.js +0 -36
- package/dist/esm/payments-table-bba91324.js +0 -27
- package/dist/esm/payouts-list-filters.entry.js +0 -20
- package/dist/esm/payouts-table-edff9bbe.js +0 -33
- package/dist/esm/skeleton-145a80d4.js +0 -41
- package/dist/esm/styled-host-e0ddb759.js +0 -12
- package/dist/esm/terminals-list-filters.entry.js +0 -28
- package/dist/esm/terminals-table-dc787616.js +0 -28
- package/dist/esm/utils-218275b7.js +0 -27
- package/dist/esm/utils-4006c425.js +0 -33
- package/dist/module/Analytics.js +0 -78
- package/dist/module/business-form-types.js +0 -50
- package/dist/module/checkouts-list-filters.d.ts +0 -11
- package/dist/module/checkouts-list-filters.js +0 -6
- package/dist/module/checkouts-list-filters2.js +0 -80
- package/dist/module/counter-dispute.js +0 -189
- package/dist/module/dispute-reason.js +0 -45
- package/dist/module/exported-parts.js +0 -7
- package/dist/module/form-control-error-text.d.ts +0 -11
- package/dist/module/form-control-error-text2.js +0 -35
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -104
- package/dist/module/justifi-card-form.js +0 -106
- package/dist/module/justifi-counter-dispute.d.ts +0 -11
- package/dist/module/justifi-counter-dispute.js +0 -6
- package/dist/module/justifi-dispute-reason.d.ts +0 -11
- package/dist/module/justifi-dispute-reason.js +0 -6
- package/dist/module/justifi-payment-form.js +0 -216
- package/dist/module/justifi-payment-method-form.d.ts +0 -11
- package/dist/module/justifi-payment-method-form.js +0 -6
- package/dist/module/justifi-payment-method-selector.d.ts +0 -11
- package/dist/module/justifi-payment-method-selector.js +0 -6
- package/dist/module/payment-method-selector.js +0 -47
- package/dist/module/payments-list-filters.js +0 -6
- package/dist/module/payments-list-filters2.js +0 -97
- package/dist/module/payouts-list-filters.js +0 -6
- package/dist/module/payouts-list-filters2.js +0 -69
- package/dist/module/terminals-list-filters.d.ts +0 -11
- package/dist/module/terminals-list-filters.js +0 -6
- package/dist/module/utils5.js +0 -27
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -62
- package/dist/types/components/business-forms/utils/business-form-types.d.ts +0 -76
- package/dist/types/components/card-form/card-form.d.ts +0 -72
- package/dist/types/components/dispute-management/counter-dispute/additional-statement.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/cancellation-policy.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/counter-dispute.d.ts +0 -14
- package/dist/types/components/dispute-management/counter-dispute/customer-details.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/dispute-reason.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/duplicate-charge.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/electronic-evidence.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/product-or-service.d.ts +0 -4
- package/dist/types/components/dispute-management/counter-dispute/refund-policy.d.ts +0 -3
- package/dist/types/components/dispute-management/counter-dispute/shipping-details.d.ts +0 -3
- package/dist/types/components/dispute-management/dispute.d.ts +0 -7
- package/dist/types/components/payment-form/payment-form.d.ts +0 -36
- package/dist/types/components/payment-form/payment-method-selector.d.ts +0 -10
- package/dist/types/components/payment-form/tokenize.d.ts +0 -5
- package/dist/types/components/payment-method-form/message-event-types.d.ts +0 -16
- package/dist/types/components/payment-method-form/payment-method-form.d.ts +0 -25
- package/dist/types/ui-components/form/form-helpers/form-control-error-text/form-control-error-text.d.ts +0 -5
- package/dist/types/utils/get-computed-theme.d.ts +0 -3
- package/dist/webcomponents/p-08b0fb31.js +0 -1
- package/dist/webcomponents/p-0a963f7e.entry.js +0 -1
- package/dist/webcomponents/p-0d6ddff2.js +0 -1
- package/dist/webcomponents/p-0fbab710.entry.js +0 -1
- package/dist/webcomponents/p-2338affa.js +0 -1
- package/dist/webcomponents/p-25d2ed4c.js +0 -1
- package/dist/webcomponents/p-286b87ab.js +0 -1
- package/dist/webcomponents/p-28bd6dcd.js +0 -1
- package/dist/webcomponents/p-297faf3d.js +0 -1
- package/dist/webcomponents/p-29c8fa3d.entry.js +0 -1
- package/dist/webcomponents/p-2f422aad.entry.js +0 -1
- package/dist/webcomponents/p-3186d1fb.entry.js +0 -1
- package/dist/webcomponents/p-3bfb4f80.entry.js +0 -1
- package/dist/webcomponents/p-3c654c07.js +0 -1
- package/dist/webcomponents/p-3ed7fc42.entry.js +0 -1
- package/dist/webcomponents/p-404a847c.entry.js +0 -1
- package/dist/webcomponents/p-41c1c1f7.entry.js +0 -1
- package/dist/webcomponents/p-41c7ee13.entry.js +0 -1
- package/dist/webcomponents/p-420adedb.entry.js +0 -1
- package/dist/webcomponents/p-431d7a9e.entry.js +0 -1
- package/dist/webcomponents/p-448826a7.entry.js +0 -1
- package/dist/webcomponents/p-469804a9.entry.js +0 -1
- package/dist/webcomponents/p-486da67e.entry.js +0 -1
- package/dist/webcomponents/p-4a5e5574.entry.js +0 -1
- package/dist/webcomponents/p-52f9d8a0.entry.js +0 -1
- package/dist/webcomponents/p-54145a37.entry.js +0 -1
- package/dist/webcomponents/p-56d84fb3.entry.js +0 -1
- package/dist/webcomponents/p-57125bd1.js +0 -1
- package/dist/webcomponents/p-5e7c60d8.js +0 -1
- package/dist/webcomponents/p-5ec82df8.entry.js +0 -1
- package/dist/webcomponents/p-673cf8c4.js +0 -1
- package/dist/webcomponents/p-69527219.entry.js +0 -1
- package/dist/webcomponents/p-6cc30da2.js +0 -1
- package/dist/webcomponents/p-6d51aed8.entry.js +0 -1
- package/dist/webcomponents/p-72819173.entry.js +0 -1
- package/dist/webcomponents/p-74da98da.js +0 -1
- package/dist/webcomponents/p-8037704c.js +0 -1
- package/dist/webcomponents/p-89f6691e.js +0 -1
- package/dist/webcomponents/p-91de21cc.js +0 -1
- package/dist/webcomponents/p-942be28b.entry.js +0 -1
- package/dist/webcomponents/p-95ec39f6.entry.js +0 -1
- package/dist/webcomponents/p-9690eca9.entry.js +0 -1
- package/dist/webcomponents/p-9c9c7dac.js +0 -1
- package/dist/webcomponents/p-a76ece26.js +0 -1
- package/dist/webcomponents/p-a7830e98.entry.js +0 -1
- package/dist/webcomponents/p-a8b4f429.js +0 -1
- package/dist/webcomponents/p-abe513e6.entry.js +0 -1
- package/dist/webcomponents/p-ada9ac19.entry.js +0 -1
- package/dist/webcomponents/p-b0dc68b3.entry.js +0 -1
- package/dist/webcomponents/p-b3cac576.entry.js +0 -1
- package/dist/webcomponents/p-b97233cc.entry.js +0 -1
- package/dist/webcomponents/p-bc1984ec.entry.js +0 -1
- package/dist/webcomponents/p-bc8205ec.js +0 -1
- package/dist/webcomponents/p-bfb990fc.entry.js +0 -1
- package/dist/webcomponents/p-c1bf9285.entry.js +0 -1
- package/dist/webcomponents/p-c3fb5d3a.entry.js +0 -1
- package/dist/webcomponents/p-c420cb7d.entry.js +0 -1
- package/dist/webcomponents/p-c8243721.js +0 -1
- package/dist/webcomponents/p-cd19c597.entry.js +0 -1
- package/dist/webcomponents/p-d1f75fa6.js +0 -1
- package/dist/webcomponents/p-d291dc4c.entry.js +0 -1
- package/dist/webcomponents/p-d2eb61e6.entry.js +0 -1
- package/dist/webcomponents/p-d516e700.js +0 -1
- package/dist/webcomponents/p-da176d01.entry.js +0 -1
- package/dist/webcomponents/p-dcb288a3.entry.js +0 -1
- package/dist/webcomponents/p-df3ca87f.entry.js +0 -1
- package/dist/webcomponents/p-df5a1202.entry.js +0 -1
- package/dist/webcomponents/p-e2ce097c.js +0 -1
- package/dist/webcomponents/p-e5790011.entry.js +0 -1
- package/dist/webcomponents/p-e69b2ff8.entry.js +0 -1
- package/dist/webcomponents/p-e8be1b55.entry.js +0 -1
- package/dist/webcomponents/p-e99957ff.entry.js +0 -1
- package/dist/webcomponents/p-eb9ba917.entry.js +0 -1
- package/dist/webcomponents/p-ed95feec.entry.js +0 -1
- package/dist/webcomponents/p-f28a4c03.entry.js +0 -1
- package/dist/webcomponents/p-f698d6d9.entry.js +0 -1
- package/dist/webcomponents/p-fad19d75.js +0 -2
- package/dist/webcomponents/p-fc6f697d.entry.js +0 -1
- package/dist/webcomponents/p-ffe27126.entry.js +0 -1
- package/dist/webcomponents/webcomponents.css +0 -6
- /package/dist/collection/{components/payment-form/tokenize.js → api/ComponentEvents.js} +0 -0
- /package/dist/collection/components/{payment-method-form → checkout}/payment-method-responses.js +0 -0
- /package/dist/types/components/{payment-method-form → checkout}/payment-method-responses.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e}from"./p-2783e363.js";import{p as s,b as a,r as o,g as r}from"./p-f4722957.js";import{v as d,a as h,b as c,H as n}from"./p-7a975a3c.js";import{t as l,d as f}from"./p-ef4c49b9.js";import{S as v}from"./p-bfe9748b.js";import"./p-f20b6ce1.js";const p=class{constructor(e){t(this,e),this.insuranceUpdated=i(this,"insurance-updated",7),this.errorEvent=i(this,"error-event",7),this.checkoutId=void 0,this.getQuote=void 0,this.toggleCoverage=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.quote=void 0,this.isLoading=!0,this.accepted=void 0}async validate(){return d()}componentWillLoad(){this.getQuote&&this.fetchData()}fetchData(){this.isLoading=!0,this.getQuote({payload:{checkout_id:this.checkoutId,policy_type:"season_interruption",primary_identity:{state:this.primaryIdentityState,email:this.primaryIdentityEmailAddress,first_name:this.primaryIdentityFirstName,last_name:this.primaryIdentityLastName,postal_code:this.primaryIdentityPostalCode,country:this.primaryIdentityCountry},policy_attributes:{insurable_amount:this.policyAttributesInsurableAmount,start_date:this.policyAttributesStartDate,end_date:this.policyAttributesEndDate,covered_identity:{first_name:this.coveredIdentityFirstName,last_name:this.coveredIdentityLastName}}},onSuccess:({quote:t})=>{this.quote=t,this.quote.product.description=s(this.quote.product.description,[t=>o(t,"style"),t=>r(t,"a","part",l)]),this.quote.product.legal_disclaimer=s(this.quote.product.legal_disclaimer,[t=>o(t,"style"),t=>r(t,"a","part",l)]),h[t.policy_type]=t.accepted,this.isLoading=!1},onError:({error:t,code:i,severity:e})=>{this.isLoading=!1,this.errorEvent.emit({errorCode:i,message:t,severity:e})}})}onChangeHandler(t,i){this.accepted=i,c[this.quote.policy_type]=!1,this.toggleCoverage({quoteId:this.quote.id,payload:{accepted:this.accepted},onSuccess:()=>{this.insuranceUpdated.emit(),h[this.quote.policy_type]=this.accepted},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({errorCode:i,message:t,severity:e})}})}get error(){var t;return c[null===(t=this.quote)||void 0===t?void 0:t.policy_type]}render(){var t,i,s,o;return e(v,{key:"e665e8866cf53e7b22ff4e05c25b1059bc9e025a"},!this.isLoading&&e("div",{key:"15e2fdb114dc837d95daeb696ec5d5769c8c80bc"},e(n,{key:"19095737990f12bde58fc7bd6e63ded25f62a8e2",text:null===(t=this.quote)||void 0===t?void 0:t.product.title,class:"fs-5 fw-bold pb-3"}),e("small",{key:"a036659ef5b7a11a16dda7cc7558cd9940d53540",innerHTML:null===(i=this.quote)||void 0===i?void 0:i.product.description,part:l}),e("form-control-radio",{key:"49b102250e07f11f91f07dfc3fba74bff4f5fd34",label:`Accept coverage for ${a(null===(s=this.quote)||void 0===s?void 0:s.total_cents)}`,name:"opt-in",value:"true",checked:"true"===this.accepted,inputHandler:this.onChangeHandler.bind(this)}),e("form-control-radio",{key:"e784cf4340d9034e81a12454aed5a0d4afe9aea8",label:"Decline coverage",name:"opt-in",value:"false",checked:"false"===this.accepted,inputHandler:this.onChangeHandler.bind(this)}),e("div",{key:"649ddbafdc560bde98470a2d868a9410a57eaba4",class:"invalid-feedback",style:{display:this.error?"block":"none"},part:f},"Please select an option"),e("small",{key:"3d3651631da43d2c0f473b793cb5f6f663b7b819",innerHTML:null===(o=this.quote)||void 0===o?void 0:o.product.legal_disclaimer,part:l})))}};export{p as justifi_season_interruption_insurance_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as e}from"./p-2783e363.js";import{a as i,C as r}from"./p-14c91ffd.js";import{a as o}from"./p-1ff8810b.js";import{t as h}from"./p-ef4c49b9.js";import{S as n}from"./p-bfe9748b.js";import{H as a}from"./p-b392ec21.js";import{B as d}from"./p-73f9be7c.js";import"./p-6078a370.js";const f=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7),this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:i.PROVISIONING_REQUESTED,severity:r.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:d.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})},this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.errorMessage=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle=void 0,this.getBusiness=void 0,this.postProvisioning=void 0}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.documentUploadRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"df7f6b5366335e0bd1082bb865c8a460a0b62704"},e("div",{key:"694f4b13ef333959c6efa573d78f415379fbe4fd",class:"row gap-3"},e(a,{key:"d69dafa307c75ed3583551d86f87b3ec29404218",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"d33e37ce3f2fdce1eb462d096be9baede1ccee9b",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"8541f7a1c6a69820b73c976894109b5962f26067",class:"d-flex justify-content-between align-items-center"},e("div",{key:"1a8a0e9af596aa1d7eced5309e1fa2e399f33705",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"dd29d8b8d4da81f79c2375a5db99dfe796183d09",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{f as justifi_payment_provisioning_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as a}from"./p-2783e363.js";import{b as s,a as i,f as c}from"./p-f4722957.js";import{a as d,b as f,D as b,c as r,C as o,E as l}from"./p-9c2e00cc.js";import{B as h}from"./p-32a5bf4e.js";import{S as n}from"./p-bfe9748b.js";import{w as y}from"./p-ef4c49b9.js";import{S as u}from"./p-90dc2f2c.js";import{M as p}from"./p-206fde40.js";const v=class{constructor(a){e(this,a),this.errorEvent=t(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 e;return a(n,{key:"00dce2f3bddb29647880b82a2055580346b7ff38"},this.loading&&a(u,{key:"de524e2f77fb4dd20f4fcb7dff41f256f3ee74b5"}),!this.loading&&this.errorMessage&&l(this.errorMessage),!this.loading&&this.payout&&a("justifi-details",{key:"c0b7449ff0e5773be97fb27485638acdce79b50a","error-message":this.errorMessage},a(d,{key:"1aa8719fb989c9993ac30803440d16ce3590038e",slot:"head-info",badge:a("span",{slot:"badge",part:y,innerHTML:p(null===(e=this.payout)||void 0===e?void 0:e.status)}),title:`${s(this.payout.amount)} ${this.payout.currency.toUpperCase()}`},a(f,{key:"30c9240747e66e38056cd870e5703b4d027b3ea2",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${c(this.payout.updated_at)}`}),a(f,{key:"2d93c5594c1451a3d566afe0431da34994ccc94a",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${c(this.payout.created_at)}`}),a(f,{key:"d9116166e2c7f95e8a7e110146f492bf0329e01e",title:"ID",value:this.payout.id}),a("div",{key:"9b3c12058b396637632c3d46a24ed426a1bd518c",class:"m-4"},a(h,{key:"eaf5339cb60b3ae759b0ca94ffb07f20f044feec",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),a("div",{key:"61372b0167f0a07231fd1cf69d61f156e42c3a0a",slot:"detail-sections"},a(b,{key:"6113095a35b746b7b03e15af9e195fe7247148c0",sectionTitle:"Details"}),a("div",{key:"dcdc2cf2c73516e603492aae6f81a12a2dd10d1f",class:"d-table gap-2 w-100"},a(r,{key:"797cf1e1b4a0521ff01a8c985c260b998ad3d3e9",title:"Date paid",value:i(this.payout.deposits_at)}),a(r,{key:"bd3162d95fa4a98e2db4e42a9de39c91ca209b45",title:"Statement Description",value:this.payout.description}),a(r,{key:"adef2b9dcbad873f570530761cf887c9a4efa052",title:"Payout Method",value:this.payout.delivery_method}),a(r,{key:"8c6ca766f17f9dd140fa0778fecd648a72244b92",title:"Amount",value:s(this.payout.amount)}),a(r,{key:"4c4448677902c19011cf36b0d71d85eb54083bbf",title:"Fee",value:s(this.payout.fees_total)})),a(b,{key:"7f4a0ed8518b957cbfcfb15e5ea62963e5ba5013",sectionTitle:"Account"}),a("div",{key:"3d878a54ddffb40e55610224fc97f182f4255e51",class:"d-table gap-2 w-100"},a(r,{key:"d9eb8870ca1b4bf0c04bcb2f3b4362ebf9712a88",title:"ID",value:this.payout.account_id}),a(r,{key:"f320a0fb646a5352173341083f384bd6d7a30a61",title:"Account Type",value:this.payout.bank_account.account_type}),a(r,{key:"35cc07ec9ee8e3155606851eeb9864d9f6df6e05",title:"Institution",value:this.payout.bank_account.account_type}),a(r,{key:"ac0962b80347b619e4cc534781df397d9bc510e2",title:"Routing Number",value:this.payout.bank_account.routing_number}),a(r,{key:"65db983d9504b912f12cefc7eea7a5bc8e9f3d73",title:"Account Number",value:this.payout.bank_account.account_number_last4})),a(b,{key:"bc94a109cf5e2c4dcd32972387a4b167b85d8ccc",sectionTitle:"Metadata"}),a("div",{key:"1918677f3559ff779b3f1613ee9b2367110f4648",class:"d-table gap-2 w-100"},a(o,{key:"2b5dd103cebe0960bdcc6a68f7389780e9d1029b",metadata:this.payout.metadata})))))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{v as payout_details_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as o}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import{S as r}from"./p-3db8b3c7.js";import{c as s}from"./p-0f23ff58.js";import{C as c}from"./p-14c91ffd.js";import{g as t,a as n}from"./p-8115b2f4.js";class a{async fetchSubAccounts(r,c,t,n){n||(n=s.proxyApiOrigin);const a={Account:r};return o({authToken:c,apiOrigin:n}).get("sub_accounts",t,null,a)}}const i=({accountId:o,authToken:s,service:a,apiOrigin:i})=>async({params:e,onSuccess:p,onError:u})=>{var f,m;try{const d=await a.fetchSubAccounts(o,s,e,i);if(d.error){return u({error:t(d.error),code:n(null===(m=d.error)||void 0===m?void 0:m.code),severity:c.ERROR})}{const o=Object.assign({},d.page_info);p({subAccounts:(null===(f=d.data)||void 0===f?void 0:f.map((o=>new r(o))))||[],pagingInfo:o})}}catch(o){const r=n(null==o?void 0:o.code);return u({error:o.message||o,code:r,severity:c.ERROR})}};export{a as S,i as m}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,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-5456a794.js";import{a as p}from"./p-abdbcd8e.js";import{g as n,a as h}from"./p-8115b2f4.js";import{D as d}from"./p-441c1cf8.js";import{c}from"./p-0f23ff58.js";import"./p-a07b1816.js";import"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";const m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.disputeId=void 0,this.authToken=void 0,this.apiOrigin=c.proxyApiOrigin,this.getDispute=void 0,this.errorMessage=null}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetDispute()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:i,service:s,apiOrigin:r})=>async({onSuccess:o,onError:a})=>{var d;try{const c=await s.fetchDispute(t,i,r);if(c.error)return a({error:n(c.error),code:h(null===(d=c.error)||void 0===d?void 0:d.code),severity:e.ERROR});{const t=Object.assign({},c.page_info);o({dispute:new p(c.data),pagingInfo:t})}}catch(t){const i=h(null==t?void 0:t.code);return a({error:t.message||t,code:i,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new d,apiOrigin:this.apiOrigin}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return s("justifi-dispute-management-core",{key:"3e2a5b24484e8f1e198168910be7880732da3931",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-2783e363.js";import{c as s,d as a,F as o}from"./p-5844a0f0.js";import{A as r}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as n}from"./p-0f23ff58.js";import{C as d}from"./p-525db3e8.js";import{S as b}from"./p-bfe9748b.js";import"./p-abdbcd8e.js";const m=s().shape({amount:a().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()}),f=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 o(m),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=r({authToken:this.authToken,apiOrigin:n.proxyApiOrigin})}render(){var t;return i(b,{key:"22c804f185486d11df84075a97121bcac4eb98d5"},i("h1",{key:"90bc4a8b5f1753d3e3009a401e5c9894d83e426e"},"Refund"),this.refundInfoText&&i("div",{key:"6899f29d44b254dd4a84e348b9d9ec1013cb1785",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},i("img",{key:"f1860c566f76d09f222a62a71f29d48749504968",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),i("p",{key:"73c728b24bf46c9382e75753a9566179d12744fa",class:"m-0",innerHTML:this.refundInfoText})),i("form",{key:"e36904b05ae389cb201e72f69845d1a5b034cb4d",onSubmit:t=>this.handleSubmit(t),class:"d-grid gap-4"},i("div",{key:"deb53d2bde11025bc7b452097456c7cffbe5c16a",class:"form-group"},i("form-control-monetary",{key:"0e5211a2ace4ddf86c2f2452e0596586904b594a",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:"68826918f7b2051830bd276fa79030a89a5808d1",class:"form-group"},i("form-control-text",{key:"d66b86e6d9d10b6d4853bfebacf758da23362531",name:"notes",label:"Additional Notes",inputHandler:(t,e)=>this.handleInput(t,e),errorText:this.errors.notes})),this.withButton&&i("div",{key:"8ef6f548f2b1a989b04d0a2817ca7a19d1e1dda6",class:"form-group d-flex flex-row-reverse"},i("button",{key:"1a9406e25864fac07c2a97d3b758aec48bffa2be",type:"submit",disabled:!!this.isSubmitting,class:"btn btn-primary ml-auto"},this.submitButtonText))))}};export{f as justifi_refund_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as n,H as i,g as t}from"./p-2783e363.js";import{F as o}from"./p-4d916b2d.js";import{p as r}from"./p-a07b1816.js";import{a}from"./p-4cc3c7f9.js";import{i as s,b as c,a as u,c as d,l as f}from"./p-ef4c49b9.js";import"./p-f20b6ce1.js";var l,m={exports:{}};l=m,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,i,t=0,o=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,u=null,d=window.requestAnimationFrame,f=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),m={},h=null,w=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(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),b={};window.jQuery!==e&&((i=window.jQuery).fn?i.fn.iFrameResize||(i.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,i){H(i,e)})).end()}):x("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],q):l.exports=q(),window.iFrameResize=window.iFrameResize||q()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function p(e,n,i){e.addEventListener(n,i,!1)}function v(e,n,i){e.removeEventListener(n,i,!1)}function y(e){return m[e]?m[e].log:o}function k(e,n){I("log",e,n,y(e))}function x(e,n){I("info",e,n,y(e))}function z(e,n){I("warn",e,n,!0)}function I(e,n,i,t){!0===t&&"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),i)}function M(e){function n(){i("Height"),i("Width"),C((function(){E(L),T(P),h("onResized",L)}),L,"init")}function i(e){var n=Number(m[P]["max"+e]),i=Number(m[P]["min"+e]),t=e.toLowerCase(),o=Number(L[t]);k(P,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,k(P,"Set "+t+" to min value")),o>n&&(o=n,k(P,"Set "+t+" to max value")),L[t]=""+o}function t(e){return H.slice(H.indexOf(":")+a+e)}function o(e,n){var i,t;i=function(){var i,t;W("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),t=L.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.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[t=n]||(b[t]=setTimeout((function(){b[t]=null,i()}),32))}function r(e){var n=e.getBoundingClientRect();return R(P),{x:Math.floor(Number(n.left)+Number(u.x)),y:Math.floor(Number(n.top)+Number(u.y))}}function d(e){var n=e?r(L.iframe):{x:0,y:0},i={x:Number(L.width)+n.x,y:Number(L.height)+n.y};k(P,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(u=i,f(),k(P,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):z(P,"Unable to scroll to requested position, window.parentIFrame not found")}function f(){!1===h("onScroll",u)?S():T(P)}function l(e){var n={};if(0===Number(L.width)&&0===Number(L.height)){var i=t(9).split(":");n={x:i[1],y:i[0]}}else n={x:L.width,y:L.height};h(e,{iframe:L.iframe,screenX:Number(n.x),screenY:Number(n.y),type:L.type})}function h(e,n){return F(P,e,n)}var w,g,y,I,M,j,H=e.data,L={},P=null;"[iFrameResizerChild]Ready"===H?function(){for(var e in m)W("iFrame requested init",A(e),m[e].iframe,e)}():s===(""+H).slice(0,c)&&H.slice(c).split(":")[0]in m?(I=(y=H.slice(c).split(":"))[1]?parseInt(y[1],10):0,M=m[y[0]]&&m[y[0]].iframe,j=getComputedStyle(M),L={iframe:M,id:y[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)}(j)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(j),width:y[2],type:y[3]},m[P=L.id]&&(m[P].loaded=!0),(g=L.type in{true:1,false:1,undefined:1})&&k(P,"Ignoring init message from meta parent page"),!g&&function(e){var n=!0;return m[e]||(n=!1,z(L.type+" No settings for "+e+". Message was: "+H)),n}(P)&&(k(P,"Received: "+H),w=!0,null===L.iframe&&(z(P,"IFrame ("+L.id+") not found"),w=!1),w&&function(){var n,i=e.origin,t=m[P]&&m[P].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(k(P,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(k(P,"Checking connection is from: "+(n=m[P]&&m[P].remoteHost)),i===n)))throw new Error("Unexpected message received from: "+i+" for "+L.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(m[P]&&m[P].firstRun&&m[P]&&(m[P].firstRun=!1),L.type){case"close":O(L.iframe);break;case"message":c=t(6),k(P,"onMessage passed: {iframe: "+L.iframe.id+", message: "+c+"}"),h("onMessage",{iframe:L.iframe,message:JSON.parse(c)}),k(P,"--");break;case"mouseenter":l("onMouseEnter");break;case"mouseleave":l("onMouseLeave");break;case"autoResize":m[P].autoResize=JSON.parse(t(9));break;case"scrollTo":d(!1);break;case"scrollToOffset":d(!0);break;case"pageInfo":o(m[P]&&m[P].iframe,P),function(){function e(e,t){function r(){m[i]?o(m[i].iframe,i):n()}["scroll","resize"].forEach((function(n){k(i,e+n+" listener for sendPageInfo"),t(window,n,r)}))}function n(){e("Remove ",v)}var i=P;e("Add ",p),m[i]&&(m[i].stopPageInfo=n)}();break;case"pageInfoStop":m[P]&&m[P].stopPageInfo&&(m[P].stopPageInfo(),delete m[P].stopPageInfo);break;case"inPageLink":i=t(9).split("#")[1]||"",a=decodeURIComponent(i),(s=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(s),k(P,"Moving to in page link (#"+i+") at x: "+e.x+" y: "+e.y),u={x:e.x,y:e.y},f(),k(P,"--")):window.top===window.self?k(P,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):k(P,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":N(L);break;case"init":n(),h("onInit",L.iframe);break;default:0===Number(L.width)&&0===Number(L.height)?z("Unsupported message received ("+L.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,i,a,s,c}())):x(P,"Ignored: "+H)}function F(e,n,i){var t=null,o=null;if(m[e]){if("function"!=typeof(t=m[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function j(e){delete m[e.id]}function O(e){var i=e.id;if(!1!==F(i,"onClose",i)){k(i,"Removing iFrame: "+i);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}F(i,"onClosed",i),k(i,"--"),j(e),n&&(n.disconnect(),n=null)}else k(i,"Close iframe cancelled by onClose event")}function R(n){null===u&&k(n,"Get page position: "+(u={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+u.y)}function T(e){null!==u&&(window.scrollTo(u.x,u.y),k(e,"Set page position: "+u.x+","+u.y),S())}function S(){u=null}function N(e){k(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),C((function(){E(e),W("reset","reset",e.iframe,e.id)}),e,"reset")}function E(e){function n(n){r||"0"!==e[n]||(r=!0,k(t,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(m).forEach((function(e){!function(e){function n(n){return"0px"===(m[e]&&m[e].iframe.style[n])}m[e]&&null!==m[e].iframe.offsetParent&&(n("height")||n("width"))&&W("Visibility change","resize",m[e].iframe,e)}(e)}))}function n(n){k("window","Mutation observed: "+n[0].target+" "+n[0].type),L(e,16)}var i,t=g();t&&(i=document.querySelector("body"),new t(n).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",k(e.id,"IFrame ("+t+") "+n+" set to "+e[n]+"px")):k("undefined","messageData id not set")}(i),n(i)}var t=e.iframe.id;m[t]&&(m[t].sizeHeight&&i("height"),m[t].sizeWidth&&i("width"))}function C(e,n,i){i!==n.type&&d&&!window.jasmine?(k(n.id,"Requesting animation frame"),d(e)):e()}function W(e,n,i,t,o){var r,a=!1;m[t=t||i.id]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(k(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+(r=m[t]&&m[t].targetOrigin)),i.contentWindow.postMessage(s+n,r)):z(t,"["+e+"] IFrame("+t+") not found"),o&&m[t]&&m[t].warningTimeout&&(m[t].msgTimeout=setTimeout((function(){!m[t]||m[t].loaded||a||(a=!0,z(t,"IFrame has not responded within "+m[t].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."))}),m[t].warningTimeout)))}function A(e){return e+":"+m[e].bodyMarginV1+":"+m[e].sizeWidth+":"+m[e].log+":"+m[e].interval+":"+m[e].enablePublicMethods+":"+m[e].autoResize+":"+m[e].bodyMargin+":"+m[e].heightCalculationMethod+":"+m[e].bodyBackground+":"+m[e].bodyPadding+":"+m[e].tolerance+":"+m[e].inPageLinks+":"+m[e].resizeFrom+":"+m[e].widthCalculationMethod+":"+m[e].mouseEvents}function H(i,r){function a(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],z(u,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,c,u=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(i.id=(n=r&&r.id||w.id+t++,null!==document.getElementById(n)&&(n+=t++),e=n),o=(r||{}).log,k(e,"Added missing iframe ID: "+e+" ("+i.src+")")),e}(i.id);u in m&&"iFrameResizer"in i?z(u,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},m[u]=Object.create(null),m[u].iframe=i,m[u].firstRun=!0,m[u].remoteHost=i.src&&i.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(a,e),function(e){for(var n in w)Object.prototype.hasOwnProperty.call(w,n)&&(m[u][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:w[n])}(e),m[u]&&(m[u].targetOrigin=!0===m[u].checkOrigin?""===(n=m[u].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(k(u,"IFrame scrolling "+(m[u]&&m[u].scrolling?"enabled":"disabled")+" for "+u),i.style.overflow=!1===(m[u]&&m[u].scrolling)?"hidden":"auto",m[u]&&m[u].scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=m[u]?m[u].scrolling:"no"}}(),function(){function e(e){var n=m[u][e];1/0!==n&&0!==n&&(i.style[e]="number"==typeof n?n+"px":n,k(u,"Set "+e+" = "+i.style[e]))}function n(e){if(m[u]["min"+e]>m[u]["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(m[u]&&m[u].bodyMargin)&&"0"!==(m[u]&&m[u].bodyMargin)||(m[u].bodyMarginV1=m[u].bodyMargin,m[u].bodyMargin=m[u].bodyMargin+"px"),s=A(u),(c=g())&&(n=function(e){if(!i.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===i&&O(i)}))}))}));return n.observe(i.parentNode,{childList:!0}),n}(c)),p(i,"load",(function(){W("iFrame.onload",s,i,e,!0),(!m[u]||!m[u].firstRun)&&m[u]&&m[u].heightCalculationMethod in f&&N({iframe:i,height:0,width:0,type:"init"})})),W("init",s,i,e,!0),m[u]&&(m[u].iframe.iFrameResizer={close:O.bind(null,m[u].iframe),removeListeners:j.bind(null,m[u].iframe),resize:W.bind(null,"Window resize","resize",m[u].iframe),moveToAnchor:function(e){W("Move to anchor","moveToAnchor:"+e,m[u].iframe,u)},sendMessage:function(e){W("Send Message","message:"+(e=JSON.stringify(e)),m[u].iframe,u)}}))}function L(e,n){null===h&&(h=setTimeout((function(){h=null,e()}),n))}function P(){"hidden"!==document.visibilityState&&(k("document","Trigger event: Visibility change"),L((function(){V("Tab Visible","resize")}),16))}function V(e,n){Object.keys(m).forEach((function(i){(function(e){return m[e]&&"parent"===m[e].resizeFrom&&m[e].autoResize&&!m[e].firstRun})(i)&&W(e,n,m[i].iframe,i)}))}function q(){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+">")}(),H(n,e),i.push(n))}var i;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!d;e+=1)d=window[n[e]+"RequestAnimationFrame"];d?d=d.bind(window):k("setup","RequestAnimationFrame not supported")}(),p(window,"message",M),p(window,"resize",(function(){k("window","Trigger event: resize"),L((function(){V("Window resize","resize")}),16)})),p(document,"visibilitychange",P),p(document,"-webkit-visibilitychange",P),function(t,o){switch(i=[],function(e){e&&e.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(t),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,t));break;case"object":n(t,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return i}}}();const h=m.exports;class w{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const i=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(i,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((i=>{const t=n=>{n.data.eventType===e&&(window.removeEventListener("message",t),i(n.data.data))};window.addEventListener("message",t),this.postMessage(e,n)}))}}const b=class{constructor(n){e(this,n),this.dispatchMessageEvent=e=>{const{eventType:n,data:i}=e.data;(null==i?void 0:i.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,i){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:i,componentVersion:r.version})}initializeFrameCommunicationService(){var e;this.frameService=new w(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?s:this.isValid?this.isFocused?u:d:c}get style(){return this.isFocused?this.isValid?a.focused:a.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(a.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return n(i,{key:"c0eca45af47958837580cc400e923135db070e75",class:"form-group d-flex flex-column"},n("div",{key:"374d757e67e81deec4d7e20255710d5256983cb6",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},n("label",{key:"6054db3876710458e93dd8a11f7354d737e737d2",class:"form-label",htmlFor:"",part:f},this.label||""),n("div",{key:"2ccc97c83798026666fc0abc4d23e6d83b19b2fa",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:"c71d778eaf2008ee4a2b237842e1dbec7abf5d43",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{h({log:!1,onResized:()=>{this.iframeLoaded=!0}},this.iframeElement)}})),n(o,{key:"6f756711fccec14a52fa55e9faf0638546e80f77",errorText:this.errorText,name:this.inputId})))}get el(){return t(this)}};export{b as iframe_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-2783e363.js";import{c as e,F as a}from"./p-5844a0f0.js";import{b as f,a as o}from"./p-79b7c30d.js";import{a as c,i as r}from"./p-bb61c6e0.js";import{A as d}from"./p-0e180654.js";import"./p-16d2932d.js";import"./p-56f6ce4c.js";import"./p-6fbd6abb.js";import"./p-3db8b3c7.js";import{c as n}from"./p-0f23ff58.js";import{B as b,a as h}from"./p-275f2154.js";import{c as p,J as m}from"./p-5456a794.js";import{B as l}from"./p-32a5bf4e.js";import{S as j}from"./p-bfe9748b.js";import{H as u}from"./p-b392ec21.js";import{B as y}from"./p-73f9be7c.js";import"./p-af834eb8.js";import"./p-6078a370.js";import"./p-0ea387a2.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";import"./p-a07b1816.js";import"./p-ef4c49b9.js";const k=e(Object.assign(Object.assign({},f().fields),{legal_address:c(),additional_questions:o(),representative:r("representative")})),v=class{constructor(t){s(this,t),this.submitEvent=i(this,"submit-event",7),this.clickEvent=i(this,"click-event",7),this.instantiateBusiness=s=>{const i=new b(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isLoading=!0;try{const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new b(Object.assign(Object.assign({},i),s)).payload,e=await this.api.patch(this.businessEndpoint,t);this.handleReponse(e)}catch(s){this.errorMessage=h.patchData}finally{this.isLoading=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const s=await this.api.get(this.businessEndpoint);this.instantiateBusiness(s.data)}catch(s){this.errorMessage=h.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.errorMessage=void 0}componentWillLoad(){p(),this.analytics=new m(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 a(k),this.api=d({authToken:this.authToken,apiOrigin:n.proxyApiOrigin}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isLoading}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(s){s.error&&(this.errorMessage=h.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return t(j,{key:"583d9fda192de2a23255af3a66749bec30e82668"},t("form",{key:"6de44b1f63b18b7e47c377665878435134155d2a",onSubmit:this.validateAndSubmit},t("div",{key:"e83cf5471df4628461978deba6a6269f5a91dc58",class:"row gap-3"},t(u,{key:"228f8d97e1574c714de73884dd564aac2f58bc3c",text:this.title}),t("form-alert",{key:"e3fe0d57a7ee44f44273481c41b3699e1ccf05d1",text:this.errorMessage,hideAlert:this.hideErrors}),t("div",{key:"af3fc2e821a601d5046f230735ba52359f3f3710",class:"col-12 mb-4"},t("justifi-business-core-info",{key:"e27933c4dd6bfc3746d5071d7cdaec05c1795ec2",formController:this.formController})),t("div",{key:"4c11232954cfb171c0c249465637a3050645f36f",class:"col-12 mb-4"},t("justifi-legal-address-form",{key:"3d9f7b042822f4b898862a0c89c00fa281daff66",formController:this.formController})),t("div",{key:"f3b0209fc3cb1b0cd65692f0505ddfcc80a99d0a",class:"col-12 mb-4"},t("justifi-additional-questions",{key:"a9c0f77135d8ff2f2c2f2ffba6d288f1f1b60f61",formController:this.formController})),t("div",{key:"085df35d64de470c9f0198d52b698945759afe27",class:"col-12 mb-4"},t("justifi-business-representative",{key:"fdb24f037b26f9063d0d1f073d7effb6e3789f7f",formController:this.formController})),t("div",{key:"2b0617d9cd67d296de734c8becbea183555317e4",class:"col-12 d-flex flex-row-reverse"},t(l,{key:"7452cb606515807d9d2089330cf5861cd2dcdc1e",type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:y.submit}),isLoading:this.isLoading},"Submit")))))}};export{v as justifi_business_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as e}from"./p-2783e363.js";import{H as h,I as a,J as c,K as o,L as r,l as f}from"./p-ef4c49b9.js";const d=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.inputHandler(s,this.value),this.formControlInput.emit({name:s,value:this.value})},this.isFocused=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.helpText=void 0,this.inputHandler=void 0,this.disabled=void 0,this.errorText=void 0,this.checked=void 0}get part(){return this.errorText?h:this.isFocused&&this.checked?a:this.checked?c:this.isFocused?o:r}render(){return i(e,{key:"79dc4556ca7a8e4bcb1485b9112579d45b0aa7f8",class:"form-group d-flex flex-column"},i("div",{key:"2e3a4b6f766e66949c29fb2221c5fb993ec21bc1",class:"form-check"},i("input",{key:"c6eb1f898ce5271e306dacb5a3cebaf91ccf9c3c",ref:t=>this.radioElement=t,type:"radio",id:`${this.name}-${this.value}`,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onChange:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,value:this.value,checked:this.checked}),i("label",{key:"ca88d70ec21dac187445a32acb171263fe9f8b28",class:"form-check-label",htmlFor:`${this.name}-${this.value}`,part:f},this.label)),i("form-control-help-text",{key:"45ad5106aa41da3e2883456031d33b81be632eff",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"5cab198a27710fb8fee8902577dc288a8bd83e9c",errorText:this.errorText,name:this.name}))}};export{d as form_control_radio}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./p-
|
|
1
|
+
import{c as t}from"./p-0f23ff58.js";import{A as i}from"./p-0e180654.js";class n{async fetchBusiness(n,s){const e=`entities/business/${n}`;return i({authToken:s,apiOrigin:t.proxyApiOrigin}).get(e)}async patchBusiness(n,s,e){const a=`entities/business/${s}`;return i({authToken:n,apiOrigin:t.proxyApiOrigin}).patch(a,e)}}class s{async fetchIdentity(n,s){const e=`entities/identity/${n}`;return i({authToken:s,apiOrigin:t.proxyApiOrigin}).get(e)}async patchIdentity(n,s,e){const a=`entities/identity/${s}`;return i({authToken:n,apiOrigin:t.proxyApiOrigin}).patch(a,e)}async postIdentity(n,s){return i({authToken:n,apiOrigin:t.proxyApiOrigin}).post("entities/identity",s)}}export{n as B,s as I}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as i}from"./p-2783e363.js";import{l as a,c as h,b as o,D as d,a as r}from"./p-ef4c49b9.js";import{F as c}from"./p-4d916b2d.js";const l=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target.value;this.inputHandler(this.name,s),this.formControlInput.emit({name:this.name,value:s})},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=h;return this.errorText&&(t=o),this.disabled&&(t=d),this.isFocused&&(t=r),t}render(){return e(i,{key:"238d6dc419c36dafa07e03e0b16dc8e18c620894"},e("div",{key:"e4dec93ad672ad2e8599851e0fc541b5a4fb21a0",class:"form-group d-flex flex-column"},e("div",{key:"51cf231ffd7f8d7253ee67d85211d6e01b082ae9",class:"d-flex gap-2"},e("label",{key:"23b2f623f5d019b87150061f848aebd32f54c164",part:a,class:"form-label",htmlFor:this.name},this.label),e("form-control-tooltip",{key:"3bd071cb30d9b52a60a1210bf49b96f2283f80dd",helpText:this.helpText})),e("input",{key:"10dc76f79b4cdc831195ab037369d9be10e6108b",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}),e(c,{key:"e06413cc8b9d57f1a89efad44c3b93c82078f5b6",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a="background-color",e="text color font-family",s=`text-danger ${e}`,t=`heading ${e}`,$=`heading-1 ${t}`,i=`heading-2 ${t}`,n=`heading-3 ${t}`,o=`heading-4 ${t}`,d=`heading-5 ${t}`,l=`button ${e}`,c=`button-primary ${l}`,u=`button-secondary ${l}`,r=`button-link ${l}`,p="button-loading",b=`button-disabled ${l}`,h=`label ${e}`,g=`input ${e} ${a}`,k=`input-group ${g}`,f=`input-invalid ${g}`,x=`input-disabled ${g}`,m=`input-focused ${g}`,v=`input-invalid-and-focused ${g}`,y="input-radio",w=`input-radio-focused ${y}`,j=`input-radio-checked ${y}`,q=`input-radio-checked-focused ${y}`,z=`input-radio-invalid ${y}`,A=`input-checkbox ${a}`,B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`alert-danger alert ${e}`,G=`tooltip ${e}`,H=`tooltip-icon ${e}`,I=`tooltip-inner ${e}`,J=`card ${e} ${a}`,K=`table ${e} ${a}`,L=`table-cell ${e} ${a}`,M=`table-head-cell ${L} ${e} ${a}`,N=`table-cell-even ${L} ${e} ${a}`,O=`table-cell-odd ${L} ${e} ${a}`,P=a=>a%2?N:O,Q=`table-empty ${e} ${a}`,R=`table-error ${e} ${a}`,S="loading-spinner",T=`badge ${e}`,U=`dropdown-menu ${e}`,V=`radio-list-item ${e}`,W="skeleton",X="billing-form";export{J as A,d as B,U as C,x as D,k as E,r as F,b as G,z as H,q as I,j as J,w as K,y as L,B as M,E as N,C as O,D as P,A as Q,G as R,I as S,H as T,m as a,f as b,g as c,s as d,$ as e,p as f,c as g,i as h,v as i,u as j,M as k,h as l,P as m,K as n,L as o,Q as p,R as q,S as r,W as s,e as t,F as u,n as v,T as w,o as x,X as y,V as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,f as t}from"./p-2783e363.js";const s=e=>!("isConnected"in e)||e.isConnected,n=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(s))})(...t)}),2e3)}})(),o=e=>"function"==typeof e?e():e,r=(s,r)=>{const c=((e,t=((e,t)=>e!==t))=>{const s=o(e);let n=new Map(Object.entries(null!=s?s:{}));const r={dispose:[],get:[],set:[],reset:[]},c=()=>{var t;n=new Map(Object.entries(null!==(t=o(e))&&void 0!==t?t:{})),r.reset.forEach((e=>e()))},u=e=>(r.get.forEach((t=>t(e))),n.get(e)),a=(e,s)=>{const o=n.get(e);t(s,o,e)&&(n.set(e,s),r.set.forEach((t=>t(e,s,o))))},i="undefined"==typeof Proxy?{}:new Proxy(s,{get:(e,t)=>u(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,s)=>(a(t,s),!0)}),p=(e,t)=>(r[e].push(t),()=>{((e,t)=>{const s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)})(r[e],t)});return{state:i,get:u,set:a,on:p,onChange:(t,s)=>{const n=p("set",((e,n)=>{e===t&&s(n)})),r=p("reset",(()=>s(o(e)[t])));return()=>{n(),r()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(p("set",t.set)),t.get&&e.push(p("get",t.get)),t.reset&&e.push(p("reset",t.reset)),t.dispose&&e.push(p("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{r.dispose.forEach((e=>e())),c()},reset:c,forceUpdate:e=>{const t=n.get(e);r.set.forEach((s=>s(e,t,t)))}}})(s,r);return c.use((()=>{if("function"!=typeof e)return{};const s=new Map;return{dispose:()=>s.clear(),get:t=>{const n=e();n&&((e,t,s)=>{const n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])})(s,t,n)},set:e=>{const o=s.get(e);o&&s.set(e,o.filter(t)),n(s)},reset:()=>{s.forEach((e=>e.forEach(t))),n(s)}}})()),c};export{r as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(n)}function n(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function e(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function r(n){e(1,arguments);var r=Object.prototype.toString.call(n);return n instanceof Date||"object"===t(n)&&"[object Date]"===r?new Date(n.getTime()):"number"==typeof n||"[object Number]"===r?new Date(n):("string"!=typeof n&&"[object String]"!==r||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var i={};function o(){return i}function a(t){e(1,arguments);var n=r(t),i=n.getUTCDay(),o=(i<1?7:0)+i-1;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function u(t){e(1,arguments);var n=r(t),i=n.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(i+1,0,4),o.setUTCHours(0,0,0,0);var u=a(o),c=new Date(0);c.setUTCFullYear(i,0,4),c.setUTCHours(0,0,0,0);var s=a(c);return n.getTime()>=u.getTime()?i+1:n.getTime()>=s.getTime()?i:i-1}function c(t,i){var a,u,c,s,d,f,h,l;e(1,arguments);var m=o(),v=n(null!==(a=null!==(u=null!==(c=null!==(s=null==i?void 0:i.weekStartsOn)&&void 0!==s?s:null==i||null===(d=i.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:m.weekStartsOn)&&void 0!==u?u:null===(h=m.locale)||void 0===h||null===(l=h.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=r(t),g=w.getUTCDay(),y=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-y),w.setUTCHours(0,0,0,0),w}function s(t,i){var a,u,s,d,f,h,l,m;e(1,arguments);var v=r(t),w=v.getUTCFullYear(),g=o(),y=n(null!==(a=null!==(u=null!==(s=null!==(d=null==i?void 0:i.firstWeekContainsDate)&&void 0!==d?d:null==i||null===(f=i.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==s?s:g.firstWeekContainsDate)&&void 0!==u?u:null===(l=g.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==a?a:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(w+1,0,y),b.setUTCHours(0,0,0,0);var p=c(b,i),M=new Date(0);M.setUTCFullYear(w,0,y),M.setUTCHours(0,0,0,0);var D=c(M,i);return v.getTime()>=p.getTime()?w+1:v.getTime()>=D.getTime()?w:w-1}function d(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const f=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return d("yy"===n?r%100:r,n.length)},h=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):d(e+1,2)},l=function(t,n){return d(t.getUTCDate(),n.length)},m=function(t,n){return d(t.getUTCHours()%12||12,n.length)},v=function(t,n){return d(t.getUTCHours(),n.length)},w=function(t,n){return d(t.getUTCMinutes(),n.length)},g=function(t,n){return d(t.getUTCSeconds(),n.length)},y=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,e-3)),n.length)};var b={G:function(t,n,e){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if("yo"===n){var r=t.getUTCFullYear();return e.ordinalNumber(r>0?r:1-r,{unit:"year"})}return f(t,n)},Y:function(t,n,e,r){var i=s(t,r),o=i>0?i:1-i;return"YY"===n?d(o%100,2):"Yo"===n?e.ordinalNumber(o,{unit:"year"}):d(o,n.length)},R:function(t,n){return d(u(t),n.length)},u:function(t,n){return d(t.getUTCFullYear(),n.length)},Q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return d(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){var r=t.getUTCMonth();switch(n){case"M":case"MM":return h(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,i,a,u){var f=function(t,i){e(1,arguments);var a=r(t),u=c(a,i).getTime()-function(t,r){var i,a,u,d,f,h,l,m;e(1,arguments);var v=o(),w=n(null!==(i=null!==(a=null!==(u=null!==(d=null==r?void 0:r.firstWeekContainsDate)&&void 0!==d?d:null==r||null===(f=r.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==u?u:v.firstWeekContainsDate)&&void 0!==a?a:null===(l=v.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==i?i:1),g=s(t,r),y=new Date(0);return y.setUTCFullYear(g,0,w),y.setUTCHours(0,0,0,0),c(y,r)}(a,i).getTime();return Math.round(u/6048e5)+1}(t,u);return"wo"===i?a.ordinalNumber(f,{unit:"week"}):d(f,i.length)},I:function(t,n,i){var o=function(t){e(1,arguments);var n=r(t),i=a(n).getTime()-function(t){e(1,arguments);var n=u(t),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),a(r)}(n).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===n?i.ordinalNumber(o,{unit:"week"}):d(o,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):l(t,n)},D:function(t,n,i){var o=function(t){e(1,arguments);var n=r(t),i=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var o=n.getTime();return Math.floor((i-o)/864e5)+1}(t);return"Do"===n?i.ordinalNumber(o,{unit:"dayOfYear"}):d(o,n.length)},E:function(t,n,e){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return d(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});default:return e.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return d(o,n.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});default:return e.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),i=0===r?7:r;switch(n){case"i":return String(i);case"ii":return d(i,n.length);case"io":return e.ordinalNumber(i,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){var r,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){var r,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if("ho"===n){var r=t.getUTCHours()%12;return 0===r&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return m(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):v(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):d(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):d(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):w(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):g(t,n)},S:function(t,n){return y(t,n)},X:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(n){case"X":return M(i);case"XXXX":case"XX":return D(i);default:return D(i,":")}},x:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return M(i);case"xxxx":case"xx":return D(i);default:return D(i,":")}},O:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+p(i,":");default:return"GMT"+D(i,":")}},z:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+p(i,":");default:return"GMT"+D(i,":")}},t:function(t,n,e,r){return d(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return d((r._originalDate||t).getTime(),n.length)}};function p(t,n){var e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return e+String(i);var a=n||"";return e+String(i)+a+d(o,2)}function M(t,n){return t%60==0?(t>0?"-":"+")+d(Math.abs(t)/60,2):D(t,n)}function D(t,n){var e=n||"",r=t>0?"-":"+",i=Math.abs(t);return r+d(Math.floor(i/60),2)+e+d(i%60,2)}const S=b;var x=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},E=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},O={p:E,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return x(t,n);switch(i){case"P":e=n.dateTime({width:"short"});break;case"PP":e=n.dateTime({width:"medium"});break;case"PPP":e=n.dateTime({width:"long"});break;default:e=n.dateTime({width:"full"})}return e.replace("{{date}}",x(i,n)).replace("{{time}}",E(o,n))}};const P=O;var j=["D","DD"],A=["YY","YYYY"];function T(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function k(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var Y,N={date:k({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:k({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:k({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function L(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!=e&&e.width?String(e.width):i;r=t.formattingValues[o]||t.formattingValues[i]}else{var a=t.defaultWidth,u=null!=e&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[a]}return r[t.argumentCallback?t.argumentCallback(n):n]}}function R(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var o,a=i[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(a))return n}(u):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(a))return n}(u);return o=t.valueCallback?t.valueCallback(c):c,{value:o=e.valueCallback?e.valueCallback(o):o,rest:n.slice(a.length)}}}const F={code:"en-US",formatDistance:function(t,n,e){var r,i=W[t];return r="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:N,formatRelative:function(t){return q[t]},localize:{ordinalNumber:function(t){var n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:L({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:L({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:L({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:L({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:L({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.match(Y.matchPattern);if(!e)return null;var r=e[0],i=t.match(Y.parsePattern);if(!i)return null;var o=Y.valueCallback?Y.valueCallback(i[0]):i[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:t.slice(r.length)}}),era:R({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:R({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:R({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:R({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var G=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q=/^'([^]*?)'?$/,z=/''/g,X=/[a-zA-Z]/;function _(i,a,u){var c,s,d,f,h,l,m,v,w,g,y,b,p,M,D,x,E,O;e(2,arguments);var W=String(a),k=o(),Y=null!==(c=null!==(s=null==u?void 0:u.locale)&&void 0!==s?s:k.locale)&&void 0!==c?c:F,N=n(null!==(d=null!==(f=null!==(h=null!==(l=null==u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:null==u||null===(m=u.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==h?h:k.firstWeekContainsDate)&&void 0!==f?f:null===(w=k.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==d?d:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=n(null!==(y=null!==(b=null!==(p=null!==(M=null==u?void 0:u.weekStartsOn)&&void 0!==M?M:null==u||null===(D=u.locale)||void 0===D||null===(x=D.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==p?p:k.weekStartsOn)&&void 0!==b?b:null===(E=k.locale)||void 0===E||null===(O=E.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==y?y:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var L=r(i);if(!function(n){if(e(1,arguments),!function(n){return e(1,arguments),n instanceof Date||"object"===t(n)&&"[object Date]"===Object.prototype.toString.call(n)}(n)&&"number"!=typeof n)return!1;var i=r(n);return!isNaN(Number(i))}(L))throw new RangeError("Invalid time value");var R=function(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(L),_=function(t,i){return e(2,arguments),function(t,i){e(2,arguments);var o=r(t).getTime(),a=n(i);return new Date(o+a)}(t,-n(i))}(L,R),B={firstWeekContainsDate:N,weekStartsOn:q,locale:Y,_originalDate:L};return W.match(U).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,P[n])(t,Y.formatLong):t})).join("").match(G).map((function(t){if("''"===t)return"'";var n,e,r=t[0];if("'"===r)return(e=(n=t).match(Q))?e[1].replace(z,"'"):n;var o=S[r];if(o)return null!=u&&u.useAdditionalWeekYearTokens||-1===A.indexOf(t)||T(t,a,String(i)),null!=u&&u.useAdditionalDayOfYearTokens||!(-1!==j.indexOf(t))||T(t,a,String(i)),o(_,t,Y.localize,B);if(r.match(X))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return t})).join("")}function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function C(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return H(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?H(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var I={normalizePrecision:function(t){var n=t.reduce((function(t,n){return Math.max(t.getPrecision(),n.getPrecision())}));return t.map((function(t){return t.getPrecision()!==n?t.convertPrecision(n):t}))},minimum:function(t){var n=C(t),e=n[0],r=n.slice(1),i=e;return r.forEach((function(t){i=i.lessThan(t)?i:t})),i},maximum:function(t){var n=C(t),e=n[0],r=n.slice(1),i=e;return r.forEach((function(t){i=i.greaterThan(t)?i:t})),i}};function $(t){return!isNaN(parseInt(t))&&isFinite(t)}function J(t){return t%2==0}function Z(t){return $(t)&&!Number.isInteger(t)}function K(t){return Math.abs(t)%1==.5}function V(t){return void 0===t}function tt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e={};return Object.entries(t).forEach((function(t){if("object"===B(t[1])){var r=tt(t[1]);Object.entries(r).forEach((function(r){e[t[0]+n+r[0]]=r[1]}))}else e[t[0]]=t[1]})),e}function nt(){var t={HALF_ODD:function(t){var n=Math.round(t);return K(t)&&J(n)?n-1:n},HALF_EVEN:function(t){var n=Math.round(t);return K(t)?J(n)?n:n-1:n},HALF_UP:function(t){return Math.round(t)},HALF_DOWN:function(t){return K(t)?Math.floor(t):Math.round(t)},HALF_TOWARDS_ZERO:function(t){return K(t)?Math.sign(t)*Math.floor(Math.abs(t)):Math.round(t)},HALF_AWAY_FROM_ZERO:function(t){return K(t)?Math.sign(t)*Math.ceil(Math.abs(t)):Math.round(t)},DOWN:function(t){return Math.floor(t)}};return{add:function(t,n){return t+n},subtract:function(t,n){return t-n},multiply:function(t,n){return Z(t)||Z(n)?function(t,n){var e=function(t){return Math.pow(10,function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toString();if(t.indexOf("e-")>0)return parseInt(t.split("e-")[1]);var n=t.split(".")[1];return n?n.length:0}(t))},r=Math.max(e(t),e(n));return Math.round(t*r)*Math.round(n*r)/(r*r)}(t,n):t*n},divide:function(t,n){return t/n},modulo:function(t,n){return t%n},round:function(n){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN"](n)}}}var et=nt();function rt(t){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;for(var e in n)t=t.replace("{{".concat(e,"}}"),n[e]);return t};return{getExchangeRate:function(e,r){return(i=t.endpoint,!Boolean(i)||"object"!==B(i)&&"function"!=typeof i||"function"!=typeof i.then?function(e,r){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(e,r){var i=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===i.readyState&&(i.status>=200&&i.status<400?e(JSON.parse(i.responseText)):r(new Error(i.statusText)))},onerror:function(){r(new Error("Network error"))}});i.open("GET",t,!0),function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in n)t.setRequestHeader(e,n[e])}(i,n.headers),i.send()}))}(n(t.endpoint,{from:e,to:r}),{headers:t.headers})}(e,r):t.endpoint).then((function(i){return tt(i)[n(t.propertyPath,{from:e,to:r})]}));var i}}}function it(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!t)throw new e(n)}function ot(t){it(Number.isInteger(t),"You must provide an integer.",TypeError)}var at=nt(),ut=Object.assign((function t(n){var e=Object.assign({},{amount:t.defaultAmount,currency:t.defaultCurrency,precision:t.defaultPrecision},n),r=e.amount,i=e.currency,o=e.precision;ot(r),ot(o);var a=t.globalLocale,u=t.globalFormat,c=t.globalRoundingMode,s=t.globalFormatRoundingMode,d=Object.assign({},t.globalExchangeRatesApi),f=function(n){var e=Object.assign({},Object.assign({},{amount:r,currency:i,precision:o},n),Object.assign({},{locale:this.locale},n));return Object.assign(t({amount:e.amount,currency:e.currency,precision:e.precision}),{locale:e.locale})},h=function(t){it(this.hasSameCurrency(t),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return r},getCurrency:function(){return i},getLocale:function(){return this.locale||a},setLocale:function(t){return f.call(this,{locale:t})},getPrecision:function(){return o},convertPrecision:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;ot(t);var e=this.getPrecision(),r=t>e,i=r?at.multiply:at.divide,o=Math.pow(10,at.subtract.apply(at,r?[t,e]:[e,t]));return f.call(this,{amount:at.round(i(this.getAmount(),o),n),precision:t})},add:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return f.call(this,{amount:at.add(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},subtract:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return f.call(this,{amount:at.subtract(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},multiply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return f.call(this,{amount:at.round(at.multiply(this.getAmount(),t),n)})},divide:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return f.call(this,{amount:at.round(at.divide(this.getAmount(),t),n)})},percentage:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return it(function(t){return $(t)&&t<=100&&t>=0}(t),"You must provide a numeric value between 0 and 100.",RangeError),this.multiply(at.divide(t,100),n)},allocate:function(t){var n=this;!function(t){it(function(t){return t.length>0&&t.every((function(t){return t>=0}))&&t.some((function(t){return t>0}))}(t),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}(t);for(var e=t.reduce((function(t,n){return at.add(t,n)})),r=this.getAmount(),i=t.map((function(t){var i=Math.floor(at.divide(at.multiply(n.getAmount(),t),e));return r=at.subtract(r,i),f.call(n,{amount:i})})),o=0;r>0;)t[o]>0&&(i[o]=i[o].add(f.call(this,{amount:1})),r=at.subtract(r,1)),o+=1;return i},convert:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.endpoint,i=e.propertyPath,o=e.headers,a=e.roundingMode,u=Object.assign({},{endpoint:void 0===r?d.endpoint:r,propertyPath:void 0===i?d.propertyPath||"rates.{{to}}":i,headers:void 0===o?d.headers:o,roundingMode:void 0===a?c:a});return rt(u).getExchangeRate(this.getCurrency(),t).then((function(e){return it(!V(e),'No rate was found for the destination currency "'.concat(t,'".'),TypeError),f.call(n,{amount:at.round(at.multiply(n.getAmount(),parseFloat(e)),u.roundingMode),currency:t})}))},equalsTo:function(t){return this.hasSameAmount(t)&&this.hasSameCurrency(t)},lessThan:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()<e[1].getAmount()},lessThanOrEqual:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()<=e[1].getAmount()},greaterThan:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()>e[1].getAmount()},greaterThanOrEqual:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()>=e[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return 0!==at.modulo(this.getAmount(),Math.pow(10,o))},hasCents:function(){return 0!==at.modulo(this.getAmount(),Math.pow(10,o))},hasSameCurrency:function(t){return this.getCurrency()===t.getCurrency()},hasSameAmount:function(n){var e=t.normalizePrecision([this,n]);return e[0].getAmount()===e[1].getAmount()},toFormat:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=function(t){var n=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(t);return{getMatches:function(){return null!==n?n.slice(1).filter((function(t){return!V(t)})):[]},getMinimumFractionDigits:function(){var t=function(t){return"."===t};return V(this.getMatches().find(t))?0:this.getMatches()[et.add(this.getMatches().findIndex(t),1)].split("").length},getCurrencyDisplay:function(){return{USD:"code",dollar:"name",$:"symbol"}[this.getMatches().find((function(t){return"USD"===t||"dollar"===t||"$"===t}))]},getStyle:function(){return V(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!V(this.getMatches().find((function(t){return","===t})))}}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:u);return this.toRoundedUnit(n.getMinimumFractionDigits(),t).toLocaleString(this.getLocale(),{currencyDisplay:n.getCurrencyDisplay(),useGrouping:n.getUseGrouping(),minimumFractionDigits:n.getMinimumFractionDigits(),style:n.getStyle(),currency:this.getCurrency()})},toUnit:function(){return at.divide(this.getAmount(),Math.pow(10,o))},toRoundedUnit:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,e=Math.pow(10,t);return at.divide(at.round(at.multiply(this.toUnit(),e),n),e)},toObject:function(){return{amount:r,currency:i,precision:o}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},{globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}},I);function ct(t,n=!0,e=!1){function r(t){const e=n?"$0,0.00":"0,0.00";return ut({amount:t,currency:"USD"}).toFormat(e)}t||(t=0);const i=t<0?`(${r(-t)})`:r(t);return e?`${i} USD`:i}function st(t){return t?_(new Date(t),"MMM d, yyyy"):""}function dt(t){return"string"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)?"Invalid input":isNaN(t.getTime())?"Invalid date":t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function ft(t,n){return t===n?"Today":_(new Date(t.replace(/-/g,"/")),"MMM d")}function ht(t){return t?_(new Date(t),"h:mmaaa"):""}function lt(t){return t?_(new Date(t),"h:mm:ssaaa"):""}const mt=(t,n)=>{const{setEndOfDay:e,setExactTime:r}=n;if(!t)return"";const i=new Date(t);return e?(i.setUTCHours(23,59,59,999),new Date(i.toUTCString()).toISOString()):r?new Date(i.toUTCString()).toISOString():void 0},vt=(t,n)=>{const{showDisplayDate:e,showInputDate:r,showTime:i,showInputDateTime:o}=n;if(!t)return"";const a=new Date(t),u=new Date(a.toLocaleString("en-US",{timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}));return e?_(u,"MMM d, yyyy"):r?_(u,"yyyy-MM-dd"):i?_(u,"h:mmaaa"):o?_(u,"yyyy-MM-dd'T'HH:mm"):void 0};function wt(t){return t?t.split("_").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" "):""}function gt(t){return t?t.replace(/([-_][a-z])/g,(t=>t.toUpperCase().replace("-","").replace("_",""))):""}function yt(t){return 0===Object.keys(t).length&&t.constructor===Object}const bt=(t,n,e)=>t>=n&&t<=e;async function pt(){const t=document.body,n=function(){var t;const n=getComputedStyle(document.body);return(null===(t=null==n?void 0:n.getPropertyValue("--jfi-load-google-font"))||void 0===t?void 0:t.trim().replace(/'|"/g,"").replace(" ","+"))||null}();if(!t||!n)return null;const e=`https://fonts.googleapis.com/css2?family=${n}&display=swap`;if(Array.from(document.querySelectorAll("link")).find((t=>t.href===e)))return;const r=document.createElement("link");r.rel="stylesheet",r.href=e,t.append(r)}export{st as a,ct as b,vt as c,ft as d,dt as e,ht as f,mt as g,gt as h,yt as i,bt as j,lt as k,pt as l,wt as s}
|
|
1
|
+
function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(n)}function n(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function e(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function r(n){e(1,arguments);var r=Object.prototype.toString.call(n);return n instanceof Date||"object"===t(n)&&"[object Date]"===r?new Date(n.getTime()):"number"==typeof n||"[object Number]"===r?new Date(n):("string"!=typeof n&&"[object String]"!==r||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var i={};function a(){return i}function o(t){e(1,arguments);var n=r(t),i=n.getUTCDay(),a=(i<1?7:0)+i-1;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function u(t){e(1,arguments);var n=r(t),i=n.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var u=o(a),c=new Date(0);c.setUTCFullYear(i,0,4),c.setUTCHours(0,0,0,0);var s=o(c);return n.getTime()>=u.getTime()?i+1:n.getTime()>=s.getTime()?i:i-1}function c(t,i){var o,u,c,s,d,f,h,l;e(1,arguments);var m=a(),v=n(null!==(o=null!==(u=null!==(c=null!==(s=null==i?void 0:i.weekStartsOn)&&void 0!==s?s:null==i||null===(d=i.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==c?c:m.weekStartsOn)&&void 0!==u?u:null===(h=m.locale)||void 0===h||null===(l=h.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=r(t),g=w.getUTCDay(),b=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-b),w.setUTCHours(0,0,0,0),w}function s(t,i){var o,u,s,d,f,h,l,m;e(1,arguments);var v=r(t),w=v.getUTCFullYear(),g=a(),b=n(null!==(o=null!==(u=null!==(s=null!==(d=null==i?void 0:i.firstWeekContainsDate)&&void 0!==d?d:null==i||null===(f=i.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==s?s:g.firstWeekContainsDate)&&void 0!==u?u:null===(l=g.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==o?o:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(w+1,0,b),y.setUTCHours(0,0,0,0);var p=c(y,i),M=new Date(0);M.setUTCFullYear(w,0,b),M.setUTCHours(0,0,0,0);var D=c(M,i);return v.getTime()>=p.getTime()?w+1:v.getTime()>=D.getTime()?w:w-1}function d(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const f=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return d("yy"===n?r%100:r,n.length)},h=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):d(e+1,2)},l=function(t,n){return d(t.getUTCDate(),n.length)},m=function(t,n){return d(t.getUTCHours()%12||12,n.length)},v=function(t,n){return d(t.getUTCHours(),n.length)},w=function(t,n){return d(t.getUTCMinutes(),n.length)},g=function(t,n){return d(t.getUTCSeconds(),n.length)},b=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,e-3)),n.length)};var y={G:function(t,n,e){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if("yo"===n){var r=t.getUTCFullYear();return e.ordinalNumber(r>0?r:1-r,{unit:"year"})}return f(t,n)},Y:function(t,n,e,r){var i=s(t,r),a=i>0?i:1-i;return"YY"===n?d(a%100,2):"Yo"===n?e.ordinalNumber(a,{unit:"year"}):d(a,n.length)},R:function(t,n){return d(u(t),n.length)},u:function(t,n){return d(t.getUTCFullYear(),n.length)},Q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return d(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){var r=t.getUTCMonth();switch(n){case"M":case"MM":return h(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,i,o,u){var f=function(t,i){e(1,arguments);var o=r(t),u=c(o,i).getTime()-function(t,r){var i,o,u,d,f,h,l,m;e(1,arguments);var v=a(),w=n(null!==(i=null!==(o=null!==(u=null!==(d=null==r?void 0:r.firstWeekContainsDate)&&void 0!==d?d:null==r||null===(f=r.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==u?u:v.firstWeekContainsDate)&&void 0!==o?o:null===(l=v.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==i?i:1),g=s(t,r),b=new Date(0);return b.setUTCFullYear(g,0,w),b.setUTCHours(0,0,0,0),c(b,r)}(o,i).getTime();return Math.round(u/6048e5)+1}(t,u);return"wo"===i?o.ordinalNumber(f,{unit:"week"}):d(f,i.length)},I:function(t,n,i){var a=function(t){e(1,arguments);var n=r(t),i=o(n).getTime()-function(t){e(1,arguments);var n=u(t),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),o(r)}(n).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===n?i.ordinalNumber(a,{unit:"week"}):d(a,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):l(t,n)},D:function(t,n,i){var a=function(t){e(1,arguments);var n=r(t),i=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var a=n.getTime();return Math.floor((i-a)/864e5)+1}(t);return"Do"===n?i.ordinalNumber(a,{unit:"dayOfYear"}):d(a,n.length)},E:function(t,n,e){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return d(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});default:return e.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return d(a,n.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});default:return e.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),i=0===r?7:r;switch(n){case"i":return String(i);case"ii":return d(i,n.length);case"io":return e.ordinalNumber(i,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){var r,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){var r,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if("ho"===n){var r=t.getUTCHours()%12;return 0===r&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return m(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):v(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):d(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):d(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):w(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):g(t,n)},S:function(t,n){return b(t,n)},X:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(n){case"X":return M(i);case"XXXX":case"XX":return D(i);default:return D(i,":")}},x:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return M(i);case"xxxx":case"xx":return D(i);default:return D(i,":")}},O:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+p(i,":");default:return"GMT"+D(i,":")}},z:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+p(i,":");default:return"GMT"+D(i,":")}},t:function(t,n,e,r){return d(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return d((r._originalDate||t).getTime(),n.length)}};function p(t,n){var e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return e+String(i);var o=n||"";return e+String(i)+o+d(a,2)}function M(t,n){return t%60==0?(t>0?"-":"+")+d(Math.abs(t)/60,2):D(t,n)}function D(t,n){var e=n||"",r=t>0?"-":"+",i=Math.abs(t);return r+d(Math.floor(i/60),2)+e+d(i%60,2)}const S=y;var x=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},E=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},O={p:E,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return x(t,n);switch(i){case"P":e=n.dateTime({width:"short"});break;case"PP":e=n.dateTime({width:"medium"});break;case"PPP":e=n.dateTime({width:"long"});break;default:e=n.dateTime({width:"full"})}return e.replace("{{date}}",x(i,n)).replace("{{time}}",E(a,n))}};const P=O;var j=["D","DD"],A=["YY","YYYY"];function T(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Y(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var k,N={date:Y({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Y({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Y({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function L(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=e&&e.width?String(e.width):i;r=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,u=null!=e&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(n):n]}}function R(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(o))return n}(u):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(o))return n}(u);return a=t.valueCallback?t.valueCallback(c):c,{value:a=e.valueCallback?e.valueCallback(a):a,rest:n.slice(o.length)}}}const F={code:"en-US",formatDistance:function(t,n,e){var r,i=W[t];return r="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:N,formatRelative:function(t){return q[t]},localize:{ordinalNumber:function(t){var n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:L({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:L({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:L({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:L({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:L({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(k={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.match(k.matchPattern);if(!e)return null;var r=e[0],i=t.match(k.parsePattern);if(!i)return null;var a=k.valueCallback?k.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}),era:R({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:R({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:R({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:R({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var G=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q=/^'([^]*?)'?$/,z=/''/g,X=/[a-zA-Z]/;function _(i,o,u){var c,s,d,f,h,l,m,v,w,g,b,y,p,M,D,x,E,O;e(2,arguments);var W=String(o),Y=a(),k=null!==(c=null!==(s=null==u?void 0:u.locale)&&void 0!==s?s:Y.locale)&&void 0!==c?c:F,N=n(null!==(d=null!==(f=null!==(h=null!==(l=null==u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:null==u||null===(m=u.locale)||void 0===m||null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==h?h:Y.firstWeekContainsDate)&&void 0!==f?f:null===(w=Y.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==d?d:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=n(null!==(b=null!==(y=null!==(p=null!==(M=null==u?void 0:u.weekStartsOn)&&void 0!==M?M:null==u||null===(D=u.locale)||void 0===D||null===(x=D.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==p?p:Y.weekStartsOn)&&void 0!==y?y:null===(E=Y.locale)||void 0===E||null===(O=E.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==b?b:0);if(!(q>=0&&q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var L=r(i);if(!function(n){if(e(1,arguments),!function(n){return e(1,arguments),n instanceof Date||"object"===t(n)&&"[object Date]"===Object.prototype.toString.call(n)}(n)&&"number"!=typeof n)return!1;var i=r(n);return!isNaN(Number(i))}(L))throw new RangeError("Invalid time value");var R=function(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(L),_=function(t,i){return e(2,arguments),function(t,i){e(2,arguments);var a=r(t).getTime(),o=n(i);return new Date(a+o)}(t,-n(i))}(L,R),B={firstWeekContainsDate:N,weekStartsOn:q,locale:k,_originalDate:L};return W.match(U).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,P[n])(t,k.formatLong):t})).join("").match(G).map((function(t){if("''"===t)return"'";var n,e,r=t[0];if("'"===r)return(e=(n=t).match(Q))?e[1].replace(z,"'"):n;var a=S[r];if(a)return null!=u&&u.useAdditionalWeekYearTokens||-1===A.indexOf(t)||T(t,o,String(i)),null!=u&&u.useAdditionalDayOfYearTokens||!(-1!==j.indexOf(t))||T(t,o,String(i)),a(_,t,k.localize,B);if(r.match(X))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return t})).join("")}function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function H(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return I(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?I(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var C={normalizePrecision:function(t){var n=t.reduce((function(t,n){return Math.max(t.getPrecision(),n.getPrecision())}));return t.map((function(t){return t.getPrecision()!==n?t.convertPrecision(n):t}))},minimum:function(t){var n=H(t),e=n[0],r=n.slice(1),i=e;return r.forEach((function(t){i=i.lessThan(t)?i:t})),i},maximum:function(t){var n=H(t),e=n[0],r=n.slice(1),i=e;return r.forEach((function(t){i=i.greaterThan(t)?i:t})),i}};function $(t){return!isNaN(parseInt(t))&&isFinite(t)}function J(t){return t%2==0}function Z(t){return $(t)&&!Number.isInteger(t)}function K(t){return Math.abs(t)%1==.5}function V(t){return void 0===t}function tt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e={};return Object.entries(t).forEach((function(t){if("object"===B(t[1])){var r=tt(t[1]);Object.entries(r).forEach((function(r){e[t[0]+n+r[0]]=r[1]}))}else e[t[0]]=t[1]})),e}function nt(){var t={HALF_ODD:function(t){var n=Math.round(t);return K(t)&&J(n)?n-1:n},HALF_EVEN:function(t){var n=Math.round(t);return K(t)?J(n)?n:n-1:n},HALF_UP:function(t){return Math.round(t)},HALF_DOWN:function(t){return K(t)?Math.floor(t):Math.round(t)},HALF_TOWARDS_ZERO:function(t){return K(t)?Math.sign(t)*Math.floor(Math.abs(t)):Math.round(t)},HALF_AWAY_FROM_ZERO:function(t){return K(t)?Math.sign(t)*Math.ceil(Math.abs(t)):Math.round(t)},DOWN:function(t){return Math.floor(t)}};return{add:function(t,n){return t+n},subtract:function(t,n){return t-n},multiply:function(t,n){return Z(t)||Z(n)?function(t,n){var e=function(t){return Math.pow(10,function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toString();if(t.indexOf("e-")>0)return parseInt(t.split("e-")[1]);var n=t.split(".")[1];return n?n.length:0}(t))},r=Math.max(e(t),e(n));return Math.round(t*r)*Math.round(n*r)/(r*r)}(t,n):t*n},divide:function(t,n){return t/n},modulo:function(t,n){return t%n},round:function(n){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN"](n)}}}var et=nt();function rt(t){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;for(var e in n)t=t.replace("{{".concat(e,"}}"),n[e]);return t};return{getExchangeRate:function(e,r){return(i=t.endpoint,!Boolean(i)||"object"!==B(i)&&"function"!=typeof i||"function"!=typeof i.then?function(e,r){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(e,r){var i=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===i.readyState&&(i.status>=200&&i.status<400?e(JSON.parse(i.responseText)):r(new Error(i.statusText)))},onerror:function(){r(new Error("Network error"))}});i.open("GET",t,!0),function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var e in n)t.setRequestHeader(e,n[e])}(i,n.headers),i.send()}))}(n(t.endpoint,{from:e,to:r}),{headers:t.headers})}(e,r):t.endpoint).then((function(i){return tt(i)[n(t.propertyPath,{from:e,to:r})]}));var i}}}function it(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!t)throw new e(n)}function at(t){it(Number.isInteger(t),"You must provide an integer.",TypeError)}var ot=nt(),ut=Object.assign((function t(n){var e=Object.assign({},{amount:t.defaultAmount,currency:t.defaultCurrency,precision:t.defaultPrecision},n),r=e.amount,i=e.currency,a=e.precision;at(r),at(a);var o=t.globalLocale,u=t.globalFormat,c=t.globalRoundingMode,s=t.globalFormatRoundingMode,d=Object.assign({},t.globalExchangeRatesApi),f=function(n){var e=Object.assign({},Object.assign({},{amount:r,currency:i,precision:a},n),Object.assign({},{locale:this.locale},n));return Object.assign(t({amount:e.amount,currency:e.currency,precision:e.precision}),{locale:e.locale})},h=function(t){it(this.hasSameCurrency(t),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return r},getCurrency:function(){return i},getLocale:function(){return this.locale||o},setLocale:function(t){return f.call(this,{locale:t})},getPrecision:function(){return a},convertPrecision:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;at(t);var e=this.getPrecision(),r=t>e,i=r?ot.multiply:ot.divide,a=Math.pow(10,ot.subtract.apply(ot,r?[t,e]:[e,t]));return f.call(this,{amount:ot.round(i(this.getAmount(),a),n),precision:t})},add:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return f.call(this,{amount:ot.add(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},subtract:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return f.call(this,{amount:ot.subtract(e[0].getAmount(),e[1].getAmount()),precision:e[0].getPrecision()})},multiply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return f.call(this,{amount:ot.round(ot.multiply(this.getAmount(),t),n)})},divide:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return f.call(this,{amount:ot.round(ot.divide(this.getAmount(),t),n)})},percentage:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return it(function(t){return $(t)&&t<=100&&t>=0}(t),"You must provide a numeric value between 0 and 100.",RangeError),this.multiply(ot.divide(t,100),n)},allocate:function(t){var n=this;!function(t){it(function(t){return t.length>0&&t.every((function(t){return t>=0}))&&t.some((function(t){return t>0}))}(t),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}(t);for(var e=t.reduce((function(t,n){return ot.add(t,n)})),r=this.getAmount(),i=t.map((function(t){var i=Math.floor(ot.divide(ot.multiply(n.getAmount(),t),e));return r=ot.subtract(r,i),f.call(n,{amount:i})})),a=0;r>0;)t[a]>0&&(i[a]=i[a].add(f.call(this,{amount:1})),r=ot.subtract(r,1)),a+=1;return i},convert:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.endpoint,i=e.propertyPath,a=e.headers,o=e.roundingMode,u=Object.assign({},{endpoint:void 0===r?d.endpoint:r,propertyPath:void 0===i?d.propertyPath||"rates.{{to}}":i,headers:void 0===a?d.headers:a,roundingMode:void 0===o?c:o});return rt(u).getExchangeRate(this.getCurrency(),t).then((function(e){return it(!V(e),'No rate was found for the destination currency "'.concat(t,'".'),TypeError),f.call(n,{amount:ot.round(ot.multiply(n.getAmount(),parseFloat(e)),u.roundingMode),currency:t})}))},equalsTo:function(t){return this.hasSameAmount(t)&&this.hasSameCurrency(t)},lessThan:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()<e[1].getAmount()},lessThanOrEqual:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()<=e[1].getAmount()},greaterThan:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()>e[1].getAmount()},greaterThanOrEqual:function(n){h.call(this,n);var e=t.normalizePrecision([this,n]);return e[0].getAmount()>=e[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return 0!==ot.modulo(this.getAmount(),Math.pow(10,a))},hasCents:function(){return 0!==ot.modulo(this.getAmount(),Math.pow(10,a))},hasSameCurrency:function(t){return this.getCurrency()===t.getCurrency()},hasSameAmount:function(n){var e=t.normalizePrecision([this,n]);return e[0].getAmount()===e[1].getAmount()},toFormat:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=function(t){var n=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(t);return{getMatches:function(){return null!==n?n.slice(1).filter((function(t){return!V(t)})):[]},getMinimumFractionDigits:function(){var t=function(t){return"."===t};return V(this.getMatches().find(t))?0:this.getMatches()[et.add(this.getMatches().findIndex(t),1)].split("").length},getCurrencyDisplay:function(){return{USD:"code",dollar:"name",$:"symbol"}[this.getMatches().find((function(t){return"USD"===t||"dollar"===t||"$"===t}))]},getStyle:function(){return V(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!V(this.getMatches().find((function(t){return","===t})))}}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:u);return this.toRoundedUnit(n.getMinimumFractionDigits(),t).toLocaleString(this.getLocale(),{currencyDisplay:n.getCurrencyDisplay(),useGrouping:n.getUseGrouping(),minimumFractionDigits:n.getMinimumFractionDigits(),style:n.getStyle(),currency:this.getCurrency()})},toUnit:function(){return ot.divide(this.getAmount(),Math.pow(10,a))},toRoundedUnit:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,e=Math.pow(10,t);return ot.divide(ot.round(ot.multiply(this.toUnit(),e),n),e)},toObject:function(){return{amount:r,currency:i,precision:a}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},{globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}},C);function ct(t,n=!0,e=!1){function r(t){const e=n?"$0,0.00":"0,0.00";return ut({amount:t,currency:"USD"}).toFormat(e)}t||(t=0);const i=t<0?`(${r(-t)})`:r(t);return e?`${i} USD`:i}function st(t){return t?_(new Date(t),"MMM d, yyyy"):""}function dt(t){return"string"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)?"Invalid input":isNaN(t.getTime())?"Invalid date":t.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function ft(t,n){return t===n?"Today":_(new Date(t.replace(/-/g,"/")),"MMM d")}function ht(t){return t?_(new Date(t),"h:mmaaa"):""}function lt(t){return t?_(new Date(t),"h:mm:ssaaa"):""}const mt=(t,n)=>{const{setEndOfDay:e,setExactTime:r}=n;if(!t)return"";const i=new Date(t);return e?(i.setUTCHours(23,59,59,999),new Date(i.toUTCString()).toISOString()):r?new Date(i.toUTCString()).toISOString():void 0},vt=(t,n)=>{const{showDisplayDate:e,showInputDate:r,showTime:i,showInputDateTime:a}=n;if(!t)return"";const o=new Date(t),u=new Date(o.toLocaleString("en-US",{timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}));return e?_(u,"MMM d, yyyy"):r?_(u,"yyyy-MM-dd"):i?_(u,"h:mmaaa"):a?_(u,"yyyy-MM-dd'T'HH:mm"):void 0};function wt(t){return t?t.split("_").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" "):""}function gt(t){return t?t.replace(/([-_][a-z])/g,(t=>t.toUpperCase().replace("-","").replace("_",""))):""}function bt(t){return 0===Object.keys(t).length&&t.constructor===Object}const yt=(t,n,e)=>t>=n&&t<=e;function pt(t,n){const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll(`[${n}]`).forEach((t=>{t.removeAttribute(n)})),e.innerHTML}function Mt(t,n,e,r){const i=document.createElement("div");i.innerHTML=t;const a=i.getElementsByTagName(n);return Array.from(a).forEach((t=>{t.setAttribute(e,r)})),i.innerHTML}function Dt(t,n){let e=t;return n.forEach((t=>{e=t(e)})),e}export{st as a,ct as b,vt as c,mt as d,ft as e,ht as f,Mt as g,dt as h,bt as i,gt as j,yt as k,lt as l,Dt as p,pt as r,wt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as a}from"./p-2783e363.js";import{l as o,c as h,b as r,D as c,a as d,R as l,S as n,T as f}from"./p-ef4c49b9.js";import{F as b}from"./p-4d916b2d.js";const p=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit(s.value)},this.updateInput=t=>{this.selectElement.value=t},this.isFocused=!1,this.name=void 0,this.label=void 0,this.options=void 0,this.inputHandler=void 0,this.defaultValue=void 0,this.helpText=void 0,this.errorText=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=h;return this.errorText&&(t=r),this.disabled&&(t=c),this.isFocused&&(t=d),t}render(){var t;return i(e,{key:"f7c77b6bcef56ad9bee73f9bfcac24bea025893d"},i("div",{key:"f6a15dd79da5e8c6c41219e68a025cecdc12e7d8",class:"form-group d-flex flex-column"},i("div",{key:"73bbe07c72a568a4c70e1f806fc6c53d78902b56",class:"d-flex align-items-start gap-2"},i("label",{key:"79d749b1a0d818cb4b65468cc0b4fdfc9c76136f",part:o,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"34f1dd32c494652df248c492990ad5bda62aa59d",helpText:this.helpText})),i("select",{key:"257d4cd10e37b1707a299ef1bce0e36102cad16b",ref:t=>this.selectElement=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-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>i("option",{value:t.value},t.label)))),i(b,{key:"8aba26a249c5fdcead2ace90d47cdb891e152dba",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},u=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit({name:i,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")},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.maxLength=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?r:this.disabled?c:this.isFocused?d:h}render(){return i(e,{key:"1303fabdad4bbf9ec2cf02e8dacbcafed74d3b8f"},i("div",{key:"d5438a9fd0c6b197a23f546181c1c57342824f7b",class:"form-group d-flex flex-column"},i("div",{key:"df99160e9af69f44bc369e579de9219e10797114",class:"d-flex align-items-start gap-2"},i("label",{key:"669a04f01feac1aa712b6d8d43576a2f2f352cef",part:o,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"e2572600e8d8a64d2b5db676cf5e407921a280e9",helpText:this.helpText})),i("input",{key:"9bae401bab3d6183b0b1f5bcee0546a8cb8bb499",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i(b,{key:"098d7991c5c68730eedcc19ad62424a84a9acc70",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},m=class{constructor(s){t(this,s),this.anchorIcon=void 0,this.tooltip=void 0,this.helpText=void 0}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?i("div",{class:"tooltip-container"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:f},i("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),i("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),i("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},i("div",{class:"tooltip bs-tooltip-top",part:l,role:"tooltip",ref:t=>this.tooltip=t},i("div",{class:"tooltip-inner",part:n},this.helpText)))):null}};export{p as form_control_select,u as form_control_text,m as form_control_tooltip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t,H as r}from"./p-2783e363.js";import{E as e}from"./p-9c2e00cc.js";import{B as o}from"./p-edb57087.js";import{B as a}from"./p-275f2154.js";import{C as n,a as p}from"./p-14c91ffd.js";import{g as c,a as h}from"./p-8115b2f4.js";import{c as d,J as m}from"./p-5456a794.js";import"./p-ef4c49b9.js";import"./p-0f23ff58.js";import"./p-0e180654.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-a07b1816.js";const f=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){d(),this.analytics=new m(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR});this.getBusiness=(({id:s,authToken:i,service:t})=>async({onSuccess:r,onError:e})=>{var o;try{const p=await t.fetchBusiness(s,i);if(p.error)return e({error:c(p.error),code:h(null===(o=p.error)||void 0===o?void 0:o.code),severity:n.ERROR});r({business:new a(p.data)})}catch(s){const i=h(null==s?void 0:s.code);return e({error:s.message||s,code:i,severity:n.ERROR})}})({id:this.businessId,authToken:this.authToken,service:new o})}render(){return t(r,null,this.errorMessage?e(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{f as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-2783e363.js";import{c as e,J as o}from"./p-5456a794.js";import{a as r,C as a}from"./p-14c91ffd.js";import{m as n,a as h}from"./p-5968ff8a.js";import{B as p}from"./p-edb57087.js";import{c as d}from"./p-0f23ff58.js";import{A as c}from"./p-0e180654.js";import"./p-a07b1816.js";import"./p-8115b2f4.js";class m{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return c({authToken:s,apiOrigin:d.proxyApiOrigin}).post("entities/provisioning",e)}}const u=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){e(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new p}),this.postProvisioning=h({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new m})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:r.MISSING_PROPS,severity:a.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"845a347f0aead4523515a3a6d34ce7a08cda278a",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{u as justifi_payment_provisioning}
|