@justifi/webcomponents 4.7.1-rc.0 → 4.7.1
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/Api-548eaa62.js +0 -2
- package/dist/cjs/Pagination-cae1dcbd.js +0 -2
- package/dist/cjs/Payout-68a99ee3.js +0 -2
- package/dist/cjs/SubAccount-f47c8522.js +0 -2
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +0 -2
- package/dist/cjs/business-form-schema-fe831c30.js +0 -2
- package/dist/cjs/config-a156df17.js +0 -2
- package/dist/cjs/form-1e732a9d.js +0 -2
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +0 -2
- package/dist/cjs/form-control-monetary.cjs.entry.js +0 -2
- package/dist/cjs/form-control-number_3.cjs.entry.js +0 -2
- package/dist/cjs/helpers-c505d861.js +0 -2
- package/dist/cjs/index-5a880722.js +0 -2
- package/dist/cjs/index-c5ace247.js +0 -2
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/index.esm-91ec051e.js +0 -2
- package/dist/cjs/justifi-additional-questions_6.cjs.entry.js +0 -2
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +0 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +0 -2
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js +6 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +0 -2
- package/dist/cjs/justifi-business-list.cjs.entry.js +0 -2
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -2
- package/dist/cjs/justifi-details.cjs.entry.js +0 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +0 -2
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +0 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +0 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +0 -2
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -4
- package/dist/cjs/justifi-payments-list.cjs.entry.js +0 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +0 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +0 -2
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +0 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +0 -2
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js +0 -2
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +0 -2
- package/dist/cjs/justifi-table_2.cjs.entry.js +0 -2
- package/dist/cjs/loader.cjs.js +1 -3
- package/dist/cjs/select-input_2.cjs.entry.js +0 -2
- package/dist/cjs/state-options-83b52cd1.js +0 -2
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js +0 -2
- package/dist/cjs/subaccount-bank-details.cjs.entry.js +0 -2
- package/dist/cjs/subaccount-terms-details.cjs.entry.js +0 -2
- package/dist/cjs/utils-13d069be.js +0 -2
- package/dist/cjs/utils-4622829d.js +0 -2
- package/dist/cjs/webcomponents.cjs.js +1 -3
- package/dist/collection/api/Api.js +0 -1
- package/dist/collection/api/Business.js +0 -1
- package/dist/collection/api/GrossVolume.js +0 -1
- package/dist/collection/api/Pagination.js +0 -1
- package/dist/collection/api/Payment.js +0 -1
- package/dist/collection/api/Payout.js +0 -1
- package/dist/collection/api/Proceed.js +0 -1
- package/dist/collection/api/SubAccount.js +0 -1
- package/dist/collection/api/index.js +0 -1
- package/dist/collection/api/mockData/MockOnboardingData.js +0 -1
- package/dist/collection/api/mockData/MockPayments.js +0 -1
- package/dist/collection/api/mockData/MockSubAccount.js +0 -1
- package/dist/collection/api/mockData/mockGrossVolumeReport.js +0 -1
- package/dist/collection/api/shared.js +0 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js +0 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +8 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +0 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +0 -1
- package/dist/collection/components/billing-form/billing-form-schema.js +0 -1
- package/dist/collection/components/billing-form/billing-form.js +0 -1
- package/dist/collection/components/billing-form/billing-form.stories.js +0 -1
- package/dist/collection/components/billing-form/state-options.js +0 -1
- package/dist/collection/components/billing-form/test/billing-form.spec.js +0 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +0 -1
- package/dist/collection/components/business-details/business-details.js +0 -1
- package/dist/collection/components/business-details/business-details.stories.js +0 -1
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +0 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js +0 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js +0 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +0 -1
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js +0 -1
- package/dist/collection/components/business-form/business-address/business-address-form.js +0 -1
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +0 -1
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +0 -1
- package/dist/collection/components/business-form/business-form-schema.js +0 -1
- package/dist/collection/components/business-form/business-form-stepped.js +24 -1
- package/dist/collection/components/business-form/business-form-stepped.stories.js +2 -2
- package/dist/collection/components/business-form/business-form.js +0 -1
- package/dist/collection/components/business-form/business-form.stories.js +0 -1
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +0 -1
- package/dist/collection/components/business-form/business-owners/business-owners.js +0 -1
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +0 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js +0 -1
- package/dist/collection/components/business-form/helpers.js +0 -1
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js +0 -1
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js +0 -1
- package/dist/collection/components/business-form/test/business-form.spec.js +0 -1
- package/dist/collection/components/business-list/business-list.js +0 -1
- package/dist/collection/components/business-list/business-list.stories.js +0 -1
- package/dist/collection/components/card-form/card-form.js +0 -1
- package/dist/collection/components/card-form/card-form.stories.js +8 -1
- package/dist/collection/components/card-form/test/card-form.e2e.js +0 -1
- package/dist/collection/components/card-form/test/card-form.spec.js +0 -1
- package/dist/collection/components/details/details.js +0 -1
- package/dist/collection/components/details/utils.js +0 -1
- package/dist/collection/components/form/form-control-datepart.js +0 -1
- package/dist/collection/components/form/form-control-monetary.js +0 -1
- package/dist/collection/components/form/form-control-number-masked.js +0 -1
- package/dist/collection/components/form/form-control-number.js +0 -1
- package/dist/collection/components/form/form-control-select.js +0 -1
- package/dist/collection/components/form/form-control-text.js +0 -1
- package/dist/collection/components/form/form.js +0 -1
- package/dist/collection/components/gross-payment-chart/chart-utils.js +0 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +0 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js +1 -2
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +0 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js +0 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +0 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js +0 -1
- package/dist/collection/components/payment-details/payment-details.js +0 -1
- package/dist/collection/components/payment-details/payment-details.stories.js +0 -1
- package/dist/collection/components/payment-form/payment-form.js +0 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +0 -1
- package/dist/collection/components/payment-form/payment-method-selector.js +0 -1
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +0 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +0 -1
- package/dist/collection/components/payment-form/tokenize.js +0 -1
- package/dist/collection/components/payment-method-form/get-computed-theme.js +0 -1
- package/dist/collection/components/payment-method-form/message-event-types.js +0 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +0 -1
- package/dist/collection/components/payment-method-form/payment-method-responses.js +0 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +0 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +0 -1
- package/dist/collection/components/payment-method-form/theme.js +0 -1
- package/dist/collection/components/payments-list/payments-list.js +0 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +0 -1
- package/dist/collection/components/payments-list/test/payments-list.spec.js +0 -1
- package/dist/collection/components/payout-details/payout-details.js +0 -1
- package/dist/collection/components/payout-details/payout-details.stories.js +0 -1
- package/dist/collection/components/payouts-list/payouts-list.js +0 -1
- package/dist/collection/components/payouts-list/payouts-list.stories.js +0 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js +0 -1
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +0 -1
- package/dist/collection/components/refund-form/refund-form-schema.js +0 -1
- package/dist/collection/components/refund-form/refund-form.js +0 -1
- package/dist/collection/components/refund-form/refund-form.stories.js +0 -1
- package/dist/collection/components/select-input/select-input.js +0 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-details.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js +0 -1
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js +0 -1
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js +0 -1
- package/dist/collection/components/subaccounts-list/subaccounts-list.js +0 -1
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js +0 -1
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js +0 -1
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js +0 -1
- package/dist/collection/components/table/table.js +0 -1
- package/dist/collection/components/table/test/table.spec.js +0 -1
- package/dist/collection/components/text-input/test/text-input.spec.js +0 -1
- package/dist/collection/components/text-input/text-input.js +0 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/country-options.js +0 -1
- package/dist/collection/utils/phone-masks.js +0 -1
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/Api.js +0 -2
- package/dist/components/Pagination.js +0 -2
- package/dist/components/Payout.js +0 -2
- package/dist/components/SubAccount.js +0 -2
- package/dist/components/additional-questions-details.js +0 -2
- package/dist/components/additional-questions-details2.js +0 -2
- package/dist/components/additional-questions.js +0 -2
- package/dist/components/billing-form.js +0 -2
- package/dist/components/business-address-form.js +0 -2
- package/dist/components/business-generic-info.js +0 -2
- package/dist/components/business-owners.js +0 -2
- package/dist/components/business-representative.js +0 -2
- package/dist/components/config.js +0 -2
- package/dist/components/details.js +0 -2
- package/dist/components/form-control-datepart.js +0 -2
- package/dist/components/form-control-datepart2.js +0 -2
- package/dist/components/form-control-monetary.js +0 -2
- package/dist/components/form-control-monetary2.js +0 -2
- package/dist/components/form-control-number-masked.js +0 -2
- package/dist/components/form-control-number-masked2.js +0 -2
- package/dist/components/form-control-number.js +0 -2
- package/dist/components/form-control-number2.js +0 -2
- package/dist/components/form-control-select.js +0 -2
- package/dist/components/form-control-select2.js +0 -2
- package/dist/components/form-control-text.js +0 -2
- package/dist/components/form-control-text2.js +0 -2
- package/dist/components/form.js +0 -2
- package/dist/components/generic-info-details.js +0 -2
- package/dist/components/generic-info-details2.js +0 -2
- package/dist/components/helpers.js +0 -2
- package/dist/components/index.esm.js +0 -2
- package/dist/components/index.js +0 -2
- package/dist/components/index2.js +0 -2
- package/dist/components/justifi-additional-questions.js +0 -2
- package/dist/components/justifi-bank-account-form.js +0 -2
- package/dist/components/justifi-billing-form.js +0 -2
- package/dist/components/justifi-business-address-form.js +0 -2
- package/dist/components/justifi-business-details.js +0 -2
- package/dist/components/justifi-business-form-stepped.js +7 -2
- package/dist/components/justifi-business-form.js +0 -2
- package/dist/components/justifi-business-generic-info.js +0 -2
- package/dist/components/justifi-business-list.js +0 -2
- package/dist/components/justifi-business-owners.js +0 -2
- package/dist/components/justifi-business-representative.js +0 -2
- package/dist/components/justifi-card-form.js +0 -2
- package/dist/components/justifi-details.js +0 -2
- package/dist/components/justifi-gross-payment-chart.js +0 -2
- package/dist/components/justifi-legal-address-form.js +0 -2
- package/dist/components/justifi-payment-balance-transactions.js +0 -2
- package/dist/components/justifi-payment-details.js +0 -2
- package/dist/components/justifi-payment-form.js +0 -2
- package/dist/components/justifi-payment-method-form.js +0 -2
- package/dist/components/justifi-payment-method-selector.js +0 -2
- package/dist/components/justifi-payments-list.js +0 -2
- package/dist/components/justifi-payout-details.js +0 -2
- package/dist/components/justifi-payouts-list.js +0 -2
- package/dist/components/justifi-proceeds-list.js +0 -2
- package/dist/components/justifi-refund-form.js +0 -2
- package/dist/components/justifi-subaccount-details.js +0 -2
- package/dist/components/justifi-subaccounts-list.js +0 -2
- package/dist/components/justifi-table.js +0 -2
- package/dist/components/legal-address-details.js +0 -2
- package/dist/components/legal-address-details2.js +0 -2
- package/dist/components/legal-address-form.js +0 -2
- package/dist/components/owner-details.js +0 -2
- package/dist/components/owner-details2.js +0 -2
- package/dist/components/pagination-menu.js +0 -2
- package/dist/components/pagination-menu2.js +0 -2
- package/dist/components/payment-method-form.js +2 -4
- package/dist/components/payment-method-selector.js +0 -2
- package/dist/components/phone-masks.js +0 -2
- package/dist/components/representative-details.js +0 -2
- package/dist/components/representative-details2.js +0 -2
- package/dist/components/select-input.js +0 -2
- package/dist/components/select-input2.js +0 -2
- package/dist/components/state-options.js +0 -2
- package/dist/components/subaccount-account-details.js +0 -2
- package/dist/components/subaccount-account-details2.js +0 -2
- package/dist/components/subaccount-bank-details.js +0 -2
- package/dist/components/subaccount-merchant-details.js +0 -2
- package/dist/components/subaccount-merchant-details2.js +0 -2
- package/dist/components/subaccount-owners-details.js +0 -2
- package/dist/components/subaccount-owners-details2.js +0 -2
- package/dist/components/subaccount-representative-details.js +0 -2
- package/dist/components/subaccount-representative-details2.js +0 -2
- package/dist/components/subaccount-terms-details.js +0 -2
- package/dist/components/table.js +0 -2
- package/dist/components/text-input.js +0 -2
- package/dist/components/text-input2.js +0 -2
- package/dist/components/utils.js +0 -2
- package/dist/components/utils2.js +0 -2
- package/dist/config.js +0 -1
- package/dist/esm/Api-c65d3ed8.js +0 -2
- package/dist/esm/Pagination-31f770d6.js +0 -2
- package/dist/esm/Payout-fcf16887.js +0 -2
- package/dist/esm/SubAccount-128190e9.js +0 -2
- package/dist/esm/additional-questions-details_5.entry.js +0 -2
- package/dist/esm/business-form-schema-30a3eadd.js +0 -2
- package/dist/esm/config-ceb0f902.js +0 -2
- package/dist/esm/form-32cf3d1e.js +0 -2
- package/dist/esm/form-control-datepart_2.entry.js +0 -2
- package/dist/esm/form-control-monetary.entry.js +0 -2
- package/dist/esm/form-control-number_3.entry.js +0 -2
- package/dist/esm/helpers-1d5ecdc8.js +0 -2
- package/dist/esm/index-5ed53c20.js +0 -2
- package/dist/esm/index-7471ed60.js +0 -2
- package/dist/esm/index.esm-9397ffa0.js +0 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/justifi-additional-questions_6.entry.js +0 -2
- package/dist/esm/justifi-bank-account-form.entry.js +0 -2
- package/dist/esm/justifi-billing-form_2.entry.js +0 -2
- package/dist/esm/justifi-business-details.entry.js +0 -2
- package/dist/esm/justifi-business-form-stepped.entry.js +6 -2
- package/dist/esm/justifi-business-form.entry.js +0 -2
- package/dist/esm/justifi-business-list.entry.js +0 -2
- package/dist/esm/justifi-card-form.entry.js +0 -2
- package/dist/esm/justifi-details.entry.js +0 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +0 -2
- package/dist/esm/justifi-payment-balance-transactions.entry.js +0 -2
- package/dist/esm/justifi-payment-details.entry.js +0 -2
- package/dist/esm/justifi-payment-form.entry.js +0 -2
- package/dist/esm/justifi-payment-method-form.entry.js +2 -4
- package/dist/esm/justifi-payments-list.entry.js +0 -2
- package/dist/esm/justifi-payout-details.entry.js +0 -2
- package/dist/esm/justifi-payouts-list.entry.js +0 -2
- package/dist/esm/justifi-proceeds-list.entry.js +0 -2
- package/dist/esm/justifi-refund-form.entry.js +0 -2
- package/dist/esm/justifi-subaccount-details.entry.js +0 -2
- package/dist/esm/justifi-subaccounts-list.entry.js +0 -2
- package/dist/esm/justifi-table_2.entry.js +0 -2
- package/dist/esm/loader.js +1 -3
- package/dist/esm/select-input_2.entry.js +0 -2
- package/dist/esm/state-options-ece00aa2.js +0 -2
- package/dist/esm/subaccount-account-details_4.entry.js +0 -2
- package/dist/esm/subaccount-bank-details.entry.js +0 -2
- package/dist/esm/subaccount-terms-details.entry.js +0 -2
- package/dist/esm/utils-40b7002c.js +0 -2
- package/dist/esm/utils-6352c002.js +0 -2
- package/dist/esm/webcomponents.js +1 -3
- package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +1 -0
- package/dist/types/components/business-form/business-form-stepped.d.ts +1 -0
- package/dist/types/components/card-form/card-form.stories.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +0 -2
- package/dist/webcomponents/p-0d5d02d7.js +1 -2
- package/dist/webcomponents/p-0e51a185.entry.js +1 -0
- package/dist/webcomponents/{p-3d82c8a3.entry.js → p-10210702.entry.js} +1 -2
- package/dist/webcomponents/p-14f7229e.entry.js +1 -0
- package/dist/webcomponents/p-21998fea.entry.js +1 -0
- package/dist/webcomponents/p-2306d7aa.entry.js +1 -0
- package/dist/webcomponents/p-29528eca.entry.js +1 -0
- package/dist/webcomponents/p-2c2cde2d.js +1 -2
- package/dist/webcomponents/p-3b80dc4a.entry.js +1 -0
- package/dist/webcomponents/p-3fd6ff27.entry.js +1 -0
- package/dist/webcomponents/p-44271b0c.entry.js +1 -0
- package/dist/webcomponents/p-46d5f717.entry.js +1 -0
- package/dist/webcomponents/p-47bc59b5.js +1 -2
- package/dist/webcomponents/p-4fb653a8.entry.js +1 -0
- package/dist/webcomponents/p-52643813.entry.js +1 -0
- package/dist/webcomponents/p-526cb161.js +1 -2
- package/dist/webcomponents/p-586c8a4f.entry.js +1 -0
- package/dist/webcomponents/p-59860ac8.js +1 -2
- package/dist/webcomponents/p-5cf9128c.entry.js +1 -0
- package/dist/webcomponents/p-5e78d370.entry.js +1 -0
- package/dist/webcomponents/p-6075122d.entry.js +1 -0
- package/dist/webcomponents/p-6444d443.entry.js +1 -0
- package/dist/webcomponents/p-656a6bc8.entry.js +1 -0
- package/dist/webcomponents/p-742188d9.entry.js +1 -0
- package/dist/webcomponents/p-76983a7e.js +1 -2
- package/dist/webcomponents/p-76dffeec.js +1 -2
- package/dist/webcomponents/p-7d58db66.js +1 -2
- package/dist/webcomponents/p-884b8cf4.entry.js +1 -0
- package/dist/webcomponents/p-8f37e3ee.js +1 -2
- package/dist/webcomponents/p-914d2284.entry.js +1 -0
- package/dist/webcomponents/p-984ff1aa.entry.js +1 -0
- package/dist/webcomponents/p-988191bf.js +1 -2
- package/dist/webcomponents/p-98bb3c6a.entry.js +1 -0
- package/dist/webcomponents/p-9b6dcac5.js +1 -2
- package/dist/webcomponents/p-a82e7fcd.entry.js +1 -0
- package/dist/webcomponents/p-b0fbddb2.entry.js +1 -0
- package/dist/webcomponents/p-b157f6ae.js +1 -2
- package/dist/webcomponents/p-bb70152e.entry.js +1 -0
- package/dist/webcomponents/p-cbb60191.js +2 -3
- package/dist/webcomponents/p-ce2e68df.entry.js +19 -0
- package/dist/webcomponents/p-d0e4eca5.entry.js +1 -0
- package/dist/webcomponents/p-d4b66d74.entry.js +1 -0
- package/dist/webcomponents/p-d6b5793d.js +1 -2
- package/dist/webcomponents/p-d89b1a78.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -2
- package/package.json +3 -3
- package/readme.md +9 -4
- package/dist/cjs/Api-548eaa62.js.map +0 -1
- package/dist/cjs/Pagination-cae1dcbd.js.map +0 -1
- package/dist/cjs/Payout-68a99ee3.js.map +0 -1
- package/dist/cjs/SubAccount-f47c8522.js.map +0 -1
- package/dist/cjs/additional-questions-details_5.cjs.entry.js.map +0 -1
- package/dist/cjs/business-form-schema-fe831c30.js.map +0 -1
- package/dist/cjs/config-a156df17.js.map +0 -1
- package/dist/cjs/form-1e732a9d.js.map +0 -1
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +0 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js.map +0 -1
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +0 -1
- package/dist/cjs/helpers-c505d861.js.map +0 -1
- package/dist/cjs/index-5a880722.js.map +0 -1
- package/dist/cjs/index-c5ace247.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/index.esm-91ec051e.js.map +0 -1
- package/dist/cjs/justifi-additional-questions_6.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-form-stepped.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-details.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-refund-form.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-subaccount-details.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-subaccounts-list.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-table_2.cjs.entry.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/select-input_2.cjs.entry.js.map +0 -1
- package/dist/cjs/state-options-83b52cd1.js.map +0 -1
- package/dist/cjs/subaccount-account-details_4.cjs.entry.js.map +0 -1
- package/dist/cjs/subaccount-bank-details.cjs.entry.js.map +0 -1
- package/dist/cjs/subaccount-terms-details.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-13d069be.js.map +0 -1
- package/dist/cjs/utils-4622829d.js.map +0 -1
- package/dist/cjs/webcomponents.cjs.js.map +0 -1
- package/dist/collection/api/Api.js.map +0 -1
- package/dist/collection/api/Business.js.map +0 -1
- package/dist/collection/api/GrossVolume.js.map +0 -1
- package/dist/collection/api/Pagination.js.map +0 -1
- package/dist/collection/api/Payment.js.map +0 -1
- package/dist/collection/api/Payout.js.map +0 -1
- package/dist/collection/api/Proceed.js.map +0 -1
- package/dist/collection/api/SubAccount.js.map +0 -1
- package/dist/collection/api/index.js.map +0 -1
- package/dist/collection/api/mockData/MockOnboardingData.js.map +0 -1
- package/dist/collection/api/mockData/MockPayments.js.map +0 -1
- package/dist/collection/api/mockData/MockSubAccount.js.map +0 -1
- package/dist/collection/api/mockData/mockGrossVolumeReport.js.map +0 -1
- package/dist/collection/api/shared.js.map +0 -1
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +0 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +0 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js.map +0 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js.map +0 -1
- package/dist/collection/components/billing-form/billing-form-schema.js.map +0 -1
- package/dist/collection/components/billing-form/billing-form.js.map +0 -1
- package/dist/collection/components/billing-form/billing-form.stories.js.map +0 -1
- package/dist/collection/components/billing-form/state-options.js.map +0 -1
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +0 -1
- package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js.map +0 -1
- package/dist/collection/components/business-details/business-details.js.map +0 -1
- package/dist/collection/components/business-details/business-details.stories.js.map +0 -1
- package/dist/collection/components/business-details/generic-info-details/generic-info-details.js.map +0 -1
- package/dist/collection/components/business-details/legal-address-details/legal-address-details.js.map +0 -1
- package/dist/collection/components/business-details/owner-details/owner-details.js.map +0 -1
- package/dist/collection/components/business-details/representative-details/representative-details.js.map +0 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +0 -1
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +0 -1
- package/dist/collection/components/business-form/business-address/business-address-form.js.map +0 -1
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +0 -1
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +0 -1
- package/dist/collection/components/business-form/business-form-schema.js.map +0 -1
- package/dist/collection/components/business-form/business-form-stepped.js.map +0 -1
- package/dist/collection/components/business-form/business-form-stepped.stories.js.map +0 -1
- package/dist/collection/components/business-form/business-form.js.map +0 -1
- package/dist/collection/components/business-form/business-form.stories.js.map +0 -1
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +0 -1
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +0 -1
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +0 -1
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +0 -1
- package/dist/collection/components/business-form/helpers.js.map +0 -1
- package/dist/collection/components/business-form/legal-address-form/legal-address-form-schema.js.map +0 -1
- package/dist/collection/components/business-form/legal-address-form/legal-address-form.js.map +0 -1
- package/dist/collection/components/business-form/test/business-form.spec.js.map +0 -1
- package/dist/collection/components/business-list/business-list.js.map +0 -1
- package/dist/collection/components/business-list/business-list.stories.js.map +0 -1
- package/dist/collection/components/card-form/card-form.js.map +0 -1
- package/dist/collection/components/card-form/card-form.stories.js.map +0 -1
- package/dist/collection/components/card-form/test/card-form.e2e.js.map +0 -1
- package/dist/collection/components/card-form/test/card-form.spec.js.map +0 -1
- package/dist/collection/components/details/details.js.map +0 -1
- package/dist/collection/components/details/utils.js.map +0 -1
- package/dist/collection/components/form/form-control-datepart.js.map +0 -1
- package/dist/collection/components/form/form-control-monetary.js.map +0 -1
- package/dist/collection/components/form/form-control-number-masked.js.map +0 -1
- package/dist/collection/components/form/form-control-number.js.map +0 -1
- package/dist/collection/components/form/form-control-select.js.map +0 -1
- package/dist/collection/components/form/form-control-text.js.map +0 -1
- package/dist/collection/components/form/form.js.map +0 -1
- package/dist/collection/components/gross-payment-chart/chart-utils.js.map +0 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js.map +0 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.stories.js.map +0 -1
- package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js.map +0 -1
- package/dist/collection/components/pagination-menu/pagination-menu.js.map +0 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js.map +0 -1
- package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.stories.js.map +0 -1
- package/dist/collection/components/payment-details/payment-details.js.map +0 -1
- package/dist/collection/components/payment-details/payment-details.stories.js.map +0 -1
- package/dist/collection/components/payment-form/payment-form.js.map +0 -1
- package/dist/collection/components/payment-form/payment-form.stories.js.map +0 -1
- package/dist/collection/components/payment-form/payment-method-selector.js.map +0 -1
- package/dist/collection/components/payment-form/test/payment-form.e2e.js.map +0 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +0 -1
- package/dist/collection/components/payment-form/tokenize.js.map +0 -1
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +0 -1
- package/dist/collection/components/payment-method-form/message-event-types.js.map +0 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +0 -1
- package/dist/collection/components/payment-method-form/payment-method-responses.js.map +0 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js.map +0 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js.map +0 -1
- package/dist/collection/components/payment-method-form/theme.js.map +0 -1
- package/dist/collection/components/payments-list/payments-list.js.map +0 -1
- package/dist/collection/components/payments-list/payments-list.stories.js.map +0 -1
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +0 -1
- package/dist/collection/components/payout-details/payout-details.js.map +0 -1
- package/dist/collection/components/payout-details/payout-details.stories.js.map +0 -1
- package/dist/collection/components/payouts-list/payouts-list.js.map +0 -1
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +0 -1
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +0 -1
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +0 -1
- package/dist/collection/components/refund-form/refund-form-schema.js.map +0 -1
- package/dist/collection/components/refund-form/refund-form.js.map +0 -1
- package/dist/collection/components/refund-form/refund-form.stories.js.map +0 -1
- package/dist/collection/components/select-input/select-input.js.map +0 -1
- package/dist/collection/components/select-input/test/select-input.spec.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-account-details/subaccount-account-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-bank-details/subaccount-bank-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-details.stories.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-merchant-details/subaccount-merchant-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-owners-details/subaccount-owners-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-representative-details/subaccount-representative-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/subaccount-terms-details/subaccount-terms-details.js.map +0 -1
- package/dist/collection/components/subaccount-details/test/subaccount-details.spec.js.map +0 -1
- package/dist/collection/components/subaccounts-list/subaccounts-list.js.map +0 -1
- package/dist/collection/components/subaccounts-list/subaccounts-list.stories.js.map +0 -1
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.e2e.js.map +0 -1
- package/dist/collection/components/subaccounts-list/test/subaccounts-list.spec.js.map +0 -1
- package/dist/collection/components/table/table.js.map +0 -1
- package/dist/collection/components/table/test/table.spec.js.map +0 -1
- package/dist/collection/components/text-input/test/text-input.spec.js.map +0 -1
- package/dist/collection/components/text-input/text-input.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/country-options.js.map +0 -1
- package/dist/collection/utils/phone-masks.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/Api.js.map +0 -1
- package/dist/components/Pagination.js.map +0 -1
- package/dist/components/Payout.js.map +0 -1
- package/dist/components/SubAccount.js.map +0 -1
- package/dist/components/additional-questions-details.js.map +0 -1
- package/dist/components/additional-questions-details2.js.map +0 -1
- package/dist/components/additional-questions.js.map +0 -1
- package/dist/components/billing-form.js.map +0 -1
- package/dist/components/business-address-form.js.map +0 -1
- package/dist/components/business-generic-info.js.map +0 -1
- package/dist/components/business-owners.js.map +0 -1
- package/dist/components/business-representative.js.map +0 -1
- package/dist/components/config.js.map +0 -1
- package/dist/components/details.js.map +0 -1
- package/dist/components/form-control-datepart.js.map +0 -1
- package/dist/components/form-control-datepart2.js.map +0 -1
- package/dist/components/form-control-monetary.js.map +0 -1
- package/dist/components/form-control-monetary2.js.map +0 -1
- package/dist/components/form-control-number-masked.js.map +0 -1
- package/dist/components/form-control-number-masked2.js.map +0 -1
- package/dist/components/form-control-number.js.map +0 -1
- package/dist/components/form-control-number2.js.map +0 -1
- package/dist/components/form-control-select.js.map +0 -1
- package/dist/components/form-control-select2.js.map +0 -1
- package/dist/components/form-control-text.js.map +0 -1
- package/dist/components/form-control-text2.js.map +0 -1
- package/dist/components/form.js.map +0 -1
- package/dist/components/generic-info-details.js.map +0 -1
- package/dist/components/generic-info-details2.js.map +0 -1
- package/dist/components/helpers.js.map +0 -1
- package/dist/components/index.esm.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/justifi-additional-questions.js.map +0 -1
- package/dist/components/justifi-bank-account-form.js.map +0 -1
- package/dist/components/justifi-billing-form.js.map +0 -1
- package/dist/components/justifi-business-address-form.js.map +0 -1
- package/dist/components/justifi-business-details.js.map +0 -1
- package/dist/components/justifi-business-form-stepped.js.map +0 -1
- package/dist/components/justifi-business-form.js.map +0 -1
- package/dist/components/justifi-business-generic-info.js.map +0 -1
- package/dist/components/justifi-business-list.js.map +0 -1
- package/dist/components/justifi-business-owners.js.map +0 -1
- package/dist/components/justifi-business-representative.js.map +0 -1
- package/dist/components/justifi-card-form.js.map +0 -1
- package/dist/components/justifi-details.js.map +0 -1
- package/dist/components/justifi-gross-payment-chart.js.map +0 -1
- package/dist/components/justifi-legal-address-form.js.map +0 -1
- package/dist/components/justifi-payment-balance-transactions.js.map +0 -1
- package/dist/components/justifi-payment-details.js.map +0 -1
- package/dist/components/justifi-payment-form.js.map +0 -1
- package/dist/components/justifi-payment-method-form.js.map +0 -1
- package/dist/components/justifi-payment-method-selector.js.map +0 -1
- package/dist/components/justifi-payments-list.js.map +0 -1
- package/dist/components/justifi-payout-details.js.map +0 -1
- package/dist/components/justifi-payouts-list.js.map +0 -1
- package/dist/components/justifi-proceeds-list.js.map +0 -1
- package/dist/components/justifi-refund-form.js.map +0 -1
- package/dist/components/justifi-subaccount-details.js.map +0 -1
- package/dist/components/justifi-subaccounts-list.js.map +0 -1
- package/dist/components/justifi-table.js.map +0 -1
- package/dist/components/legal-address-details.js.map +0 -1
- package/dist/components/legal-address-details2.js.map +0 -1
- package/dist/components/legal-address-form.js.map +0 -1
- package/dist/components/owner-details.js.map +0 -1
- package/dist/components/owner-details2.js.map +0 -1
- package/dist/components/pagination-menu.js.map +0 -1
- package/dist/components/pagination-menu2.js.map +0 -1
- package/dist/components/payment-method-form.js.map +0 -1
- package/dist/components/payment-method-selector.js.map +0 -1
- package/dist/components/phone-masks.js.map +0 -1
- package/dist/components/representative-details.js.map +0 -1
- package/dist/components/representative-details2.js.map +0 -1
- package/dist/components/select-input.js.map +0 -1
- package/dist/components/select-input2.js.map +0 -1
- package/dist/components/state-options.js.map +0 -1
- package/dist/components/subaccount-account-details.js.map +0 -1
- package/dist/components/subaccount-account-details2.js.map +0 -1
- package/dist/components/subaccount-bank-details.js.map +0 -1
- package/dist/components/subaccount-merchant-details.js.map +0 -1
- package/dist/components/subaccount-merchant-details2.js.map +0 -1
- package/dist/components/subaccount-owners-details.js.map +0 -1
- package/dist/components/subaccount-owners-details2.js.map +0 -1
- package/dist/components/subaccount-representative-details.js.map +0 -1
- package/dist/components/subaccount-representative-details2.js.map +0 -1
- package/dist/components/subaccount-terms-details.js.map +0 -1
- package/dist/components/table.js.map +0 -1
- package/dist/components/text-input.js.map +0 -1
- package/dist/components/text-input2.js.map +0 -1
- package/dist/components/utils.js.map +0 -1
- package/dist/components/utils2.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/esm/Api-c65d3ed8.js.map +0 -1
- package/dist/esm/Pagination-31f770d6.js.map +0 -1
- package/dist/esm/Payout-fcf16887.js.map +0 -1
- package/dist/esm/SubAccount-128190e9.js.map +0 -1
- package/dist/esm/additional-questions-details_5.entry.js.map +0 -1
- package/dist/esm/business-form-schema-30a3eadd.js.map +0 -1
- package/dist/esm/config-ceb0f902.js.map +0 -1
- package/dist/esm/form-32cf3d1e.js.map +0 -1
- package/dist/esm/form-control-datepart_2.entry.js.map +0 -1
- package/dist/esm/form-control-monetary.entry.js.map +0 -1
- package/dist/esm/form-control-number_3.entry.js.map +0 -1
- package/dist/esm/helpers-1d5ecdc8.js.map +0 -1
- package/dist/esm/index-5ed53c20.js.map +0 -1
- package/dist/esm/index-7471ed60.js.map +0 -1
- package/dist/esm/index.esm-9397ffa0.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/justifi-additional-questions_6.entry.js.map +0 -1
- package/dist/esm/justifi-bank-account-form.entry.js.map +0 -1
- package/dist/esm/justifi-billing-form_2.entry.js.map +0 -1
- package/dist/esm/justifi-business-details.entry.js.map +0 -1
- package/dist/esm/justifi-business-form-stepped.entry.js.map +0 -1
- package/dist/esm/justifi-business-form.entry.js.map +0 -1
- package/dist/esm/justifi-business-list.entry.js.map +0 -1
- package/dist/esm/justifi-card-form.entry.js.map +0 -1
- package/dist/esm/justifi-details.entry.js.map +0 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js.map +0 -1
- package/dist/esm/justifi-payment-balance-transactions.entry.js.map +0 -1
- package/dist/esm/justifi-payment-details.entry.js.map +0 -1
- package/dist/esm/justifi-payment-form.entry.js.map +0 -1
- package/dist/esm/justifi-payment-method-form.entry.js.map +0 -1
- package/dist/esm/justifi-payments-list.entry.js.map +0 -1
- package/dist/esm/justifi-payout-details.entry.js.map +0 -1
- package/dist/esm/justifi-payouts-list.entry.js.map +0 -1
- package/dist/esm/justifi-proceeds-list.entry.js.map +0 -1
- package/dist/esm/justifi-refund-form.entry.js.map +0 -1
- package/dist/esm/justifi-subaccount-details.entry.js.map +0 -1
- package/dist/esm/justifi-subaccounts-list.entry.js.map +0 -1
- package/dist/esm/justifi-table_2.entry.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/select-input_2.entry.js.map +0 -1
- package/dist/esm/state-options-ece00aa2.js.map +0 -1
- package/dist/esm/subaccount-account-details_4.entry.js.map +0 -1
- package/dist/esm/subaccount-bank-details.entry.js.map +0 -1
- package/dist/esm/subaccount-terms-details.entry.js.map +0 -1
- package/dist/esm/utils-40b7002c.js.map +0 -1
- package/dist/esm/utils-6352c002.js.map +0 -1
- package/dist/esm/webcomponents.js.map +0 -1
- package/dist/webcomponents/index.esm.js.map +0 -1
- package/dist/webcomponents/p-0d5d02d7.js.map +0 -1
- package/dist/webcomponents/p-160c9fbb.entry.js +0 -2
- package/dist/webcomponents/p-160c9fbb.entry.js.map +0 -1
- package/dist/webcomponents/p-215b4c87.entry.js +0 -2
- package/dist/webcomponents/p-215b4c87.entry.js.map +0 -1
- package/dist/webcomponents/p-26245f01.entry.js +0 -20
- package/dist/webcomponents/p-26245f01.entry.js.map +0 -1
- package/dist/webcomponents/p-26dfa274.entry.js +0 -2
- package/dist/webcomponents/p-26dfa274.entry.js.map +0 -1
- package/dist/webcomponents/p-285a50a6.entry.js +0 -2
- package/dist/webcomponents/p-285a50a6.entry.js.map +0 -1
- package/dist/webcomponents/p-2c2cde2d.js.map +0 -1
- package/dist/webcomponents/p-2cd29187.entry.js +0 -2
- package/dist/webcomponents/p-2cd29187.entry.js.map +0 -1
- package/dist/webcomponents/p-355eabff.entry.js +0 -2
- package/dist/webcomponents/p-355eabff.entry.js.map +0 -1
- package/dist/webcomponents/p-356cf20d.entry.js +0 -2
- package/dist/webcomponents/p-356cf20d.entry.js.map +0 -1
- package/dist/webcomponents/p-378e163d.entry.js +0 -2
- package/dist/webcomponents/p-378e163d.entry.js.map +0 -1
- package/dist/webcomponents/p-397e0d5a.entry.js +0 -2
- package/dist/webcomponents/p-397e0d5a.entry.js.map +0 -1
- package/dist/webcomponents/p-3d82c8a3.entry.js.map +0 -1
- package/dist/webcomponents/p-47bc59b5.js.map +0 -1
- package/dist/webcomponents/p-526cb161.js.map +0 -1
- package/dist/webcomponents/p-59860ac8.js.map +0 -1
- package/dist/webcomponents/p-5b8f004d.entry.js +0 -2
- package/dist/webcomponents/p-5b8f004d.entry.js.map +0 -1
- package/dist/webcomponents/p-62872b87.entry.js +0 -2
- package/dist/webcomponents/p-62872b87.entry.js.map +0 -1
- package/dist/webcomponents/p-635a3b3e.entry.js +0 -2
- package/dist/webcomponents/p-635a3b3e.entry.js.map +0 -1
- package/dist/webcomponents/p-64af0ae9.entry.js +0 -2
- package/dist/webcomponents/p-64af0ae9.entry.js.map +0 -1
- package/dist/webcomponents/p-76983a7e.js.map +0 -1
- package/dist/webcomponents/p-76dffeec.js.map +0 -1
- package/dist/webcomponents/p-77e732b2.entry.js +0 -2
- package/dist/webcomponents/p-77e732b2.entry.js.map +0 -1
- package/dist/webcomponents/p-7d58db66.js.map +0 -1
- package/dist/webcomponents/p-88fa33c1.entry.js +0 -2
- package/dist/webcomponents/p-88fa33c1.entry.js.map +0 -1
- package/dist/webcomponents/p-8f37e3ee.js.map +0 -1
- package/dist/webcomponents/p-931989e6.entry.js +0 -2
- package/dist/webcomponents/p-931989e6.entry.js.map +0 -1
- package/dist/webcomponents/p-96eecdff.entry.js +0 -2
- package/dist/webcomponents/p-96eecdff.entry.js.map +0 -1
- package/dist/webcomponents/p-988191bf.js.map +0 -1
- package/dist/webcomponents/p-9b6dcac5.js.map +0 -1
- package/dist/webcomponents/p-9ce9561a.entry.js +0 -2
- package/dist/webcomponents/p-9ce9561a.entry.js.map +0 -1
- package/dist/webcomponents/p-abc05a34.entry.js +0 -2
- package/dist/webcomponents/p-abc05a34.entry.js.map +0 -1
- package/dist/webcomponents/p-b12691c3.entry.js +0 -2
- package/dist/webcomponents/p-b12691c3.entry.js.map +0 -1
- package/dist/webcomponents/p-b157f6ae.js.map +0 -1
- package/dist/webcomponents/p-b98a3f94.entry.js +0 -2
- package/dist/webcomponents/p-b98a3f94.entry.js.map +0 -1
- package/dist/webcomponents/p-c1ae571b.entry.js +0 -2
- package/dist/webcomponents/p-c1ae571b.entry.js.map +0 -1
- package/dist/webcomponents/p-c4289027.entry.js +0 -2
- package/dist/webcomponents/p-c4289027.entry.js.map +0 -1
- package/dist/webcomponents/p-c43e9572.entry.js +0 -2
- package/dist/webcomponents/p-c43e9572.entry.js.map +0 -1
- package/dist/webcomponents/p-c4c8fb44.entry.js +0 -2
- package/dist/webcomponents/p-c4c8fb44.entry.js.map +0 -1
- package/dist/webcomponents/p-cbb60191.js.map +0 -1
- package/dist/webcomponents/p-d6b5793d.js.map +0 -1
- package/dist/webcomponents/p-dbbd2611.entry.js +0 -2
- package/dist/webcomponents/p-dbbd2611.entry.js.map +0 -1
- package/dist/webcomponents/p-ec1890fc.entry.js +0 -2
- package/dist/webcomponents/p-ec1890fc.entry.js.map +0 -1
- package/dist/webcomponents/p-f0897468.entry.js +0 -2
- package/dist/webcomponents/p-f0897468.entry.js.map +0 -1
- package/dist/webcomponents/webcomponents.esm.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as r}from"./p-cbb60191.js";const i=class{constructor(r){e(this,r);this.cardFormReady=t(this,"cardFormReady",7);this.ready=t(this,"ready",7);this.cardFormTokenize=t(this,"cardFormTokenize",7);this.cardFormValidate=t(this,"cardFormValidate",7);this.validationMode=undefined;this.iframeOrigin=undefined;this.singleLine=false;this.internalStyleOverrides=undefined}readyHandler(e){console.warn(`The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);this.cardFormReady.emit(e);this.ready.emit(e)}tokenizeHandler(e){console.warn(`The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);this.cardFormTokenize.emit(e)}validateHandler(e){console.warn(`The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`);this.cardFormValidate.emit(e)}async tokenize(...e){if(!this.childRef){throw new Error("Cannot call tokenize")}return this.childRef.tokenize(...e)}async validate(){if(!this.childRef){throw new Error("Cannot call validate")}return this.childRef.validate()}async resize(){console.warn(`The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach.`);if(!this.childRef){throw new Error("Cannot call validate")}return this.childRef.resize()}render(){return r("justifi-payment-method-form",{ref:e=>{if(e){this.childRef=e}},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-tokenize":this.cardFormTokenize,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{i as justifi_card_form};
|
|
2
|
-
//# sourceMappingURL=p-96eecdff.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CardForm","readyHandler","event","console","warn","this","cardFormReady","emit","ready","tokenizeHandler","cardFormTokenize","validateHandler","cardFormValidate","tokenize","args","childRef","Error","validate","resize","render","h","ref","el","iframeOrigin","singleLine","validationMode"],"sources":["src/components/card-form/card-form.tsx"],"sourcesContent":["import { Component, Event, Prop, h, EventEmitter, Method, Listen, State } from '@stencil/core';\nimport { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';\nimport { Theme } from '../payment-method-form/theme';\n\n@Component({\n tag: 'justifi-card-form',\n shadow: false,\n})\nexport class CardForm {\n /**\n * When to trigger validation of the form.\n */\n @Prop({ mutable: true }) validationMode: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';\n\n /**\n * URL for the rendered iFrame. End-users need not use this.\n */\n @Prop({ mutable: true }) iframeOrigin?: string;\n\n /**\n * Boolean indicating if the Card Form should render in a single line\n */\n @Prop() singleLine: boolean = false;\n\n @State() internalStyleOverrides: Theme;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-card-form#cardFormReady\n */\n\n @Event() cardFormReady: EventEmitter;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-card-form#ready\n */\n\n @Event() ready: EventEmitter;\n\n /**\n * Triggered when the tokenize method is called on the component\n * @event justifi-card-form#cardFormTokenize\n */\n @Event() cardFormTokenize: EventEmitter<{ data: any }>;\n\n /**\n * Triggered when the validate method is called on the component\n * @event justifi-card-form#cardFormTokenize\n */\n @Event() cardFormValidate: EventEmitter<{ data: { isValid: boolean } }>;\n\n @Listen('paymentMethodFormReady')\n readyHandler(event: CustomEvent) {\n console.warn(`The 'cardFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);\n this.cardFormReady.emit(event);\n this.ready.emit(event);\n }\n\n @Listen('paymentMethodFormTokenize')\n tokenizeHandler(event: { data: any }) {\n console.warn(\n `The 'cardFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.cardFormTokenize.emit(event);\n }\n\n @Listen('paymentMethodFormValidate')\n validateHandler(event: { data: any }) {\n console.warn(\n `The 'cardFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.cardFormValidate.emit(event);\n }\n\n private childRef?: HTMLJustifiPaymentMethodFormElement;\n\n /**\n * Makes a tokenization request to the iframe\n */\n @Method()\n async tokenize(...args: Parameters<HTMLJustifiPaymentMethodFormElement['tokenize']>): Promise<CreatePaymentMethodResponse> {\n if (!this.childRef) {\n throw new Error('Cannot call tokenize');\n }\n return this.childRef.tokenize(...args);\n }\n\n /**\n * Runs a validation on the form and shows errors if any\n */\n @Method()\n async validate(): Promise<{ isValid: boolean }> {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.validate();\n }\n\n /**\n * Manually resizes the iframe to fit the contents of the iframe\n * @deprecated This method will be removed in future releases.\n */\n @Method()\n async resize(): Promise<void> {\n console.warn(\n `The 'resize' method is deprecated and will be removed in the next major release. Please refer to the documentation for the migration process and alternative approach.`,\n );\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.resize();\n }\n\n render() {\n return (\n <justifi-payment-method-form\n ref={el => {\n if (el) {\n this.childRef = el;\n }\n }}\n iframe-origin={this.iframeOrigin}\n payment-method-form-type=\"card\"\n single-line={this.singleLine}\n payment-method-form-ready={this.cardFormReady}\n payment-method-form-tokenize={this.cardFormTokenize}\n payment-method-form-validation-mode={this.validationMode || 'onSubmit'}\n />\n );\n }\n}\n"],"mappings":"wDAQaA,EAAQ,M,mRAcW,M,sCA+B9B,YAAAC,CAAaC,GACXC,QAAQC,KAAK,oGACbC,KAAKC,cAAcC,KAAKL,GACxBG,KAAKG,MAAMD,KAAKL,E,CAIlB,eAAAO,CAAgBP,GACdC,QAAQC,KACN,0MAEFC,KAAKK,iBAAiBH,KAAKL,E,CAI7B,eAAAS,CAAgBT,GACdC,QAAQC,KACN,0MAEFC,KAAKO,iBAAiBL,KAAKL,E,CAS7B,cAAMW,IAAYC,GAChB,IAAKT,KAAKU,SAAU,CAClB,MAAM,IAAIC,MAAM,uB,CAElB,OAAOX,KAAKU,SAASF,YAAYC,E,CAOnC,cAAMG,GACJ,IAAKZ,KAAKU,SAAU,CAClB,MAAM,IAAIC,MAAM,uB,CAElB,OAAOX,KAAKU,SAASE,U,CAQvB,YAAMC,GACJf,QAAQC,KACN,0KAEF,IAAKC,KAAKU,SAAU,CAClB,MAAM,IAAIC,MAAM,uB,CAElB,OAAOX,KAAKU,SAASG,Q,CAGvB,MAAAC,GACE,OACEC,EAAA,+BACEC,IAAKC,IACH,GAAIA,EAAI,CACNjB,KAAKU,SAAWO,C,GAEnB,gBACcjB,KAAKkB,aAAY,2BACP,OAAM,cAClBlB,KAAKmB,WAAU,4BACDnB,KAAKC,cAAa,+BACfD,KAAKK,iBAAgB,sCACdL,KAAKoB,gBAAkB,Y"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TagTypes","SubAccountStatusType","AccountType","BusinessType","ForProfitStructure","NonProfitStructure","GovernmentEntityStructure","SubAccount","constructor","subAccount","this","findActiveRate","type","application_fee_rates","find","rate","rate_type","getBasisPercentage","formatPercentage","basis_point_rate","getTransactionFee","formatCurrency","transaction_fee","getFormattedRate","account_type","created_at","dateString","formatDate","timeString","formatTime","currency","id","name","payout_ready","platform_account_id","processing_ready","status","updated_at","related_accounts","activeCardRate","activeAchRate","cardRate","achRate","statusTagType","typeMap","enabled","success","disabled","error","rejected","information_needed","warning","submitted","info","created","neutral","archived"],"sources":["src/api/SubAccount.ts"],"sourcesContent":["import { formatCurrency, formatDate, formatPercentage, formatTime } from '../utils/utils';\nimport { BusinessStructure } from './Business';\n\nexport enum TagTypes {\n neutral = 'neutral',\n info = 'info',\n success = 'success',\n warning = 'warning',\n error = 'error'\n}\n\nexport enum SubAccountStatusType {\n created = 'created',\n submitted = 'submitted',\n information_needed = 'information_needed',\n enabled = 'enabled',\n disabled = 'disabled',\n rejected = 'rejected',\n archived = 'archived'\n}\n\nexport enum AccountType {\n live = 'live',\n test = 'test'\n}\n\nexport enum BusinessType {\n forProfit = 'for_profit',\n nonProfit = 'non_profit',\n government = 'government_entity',\n individual = 'individual'\n}\n\nexport enum ForProfitStructure {\n none = '',\n soleProprietorship = 'sole_proprietorship',\n singleMember = 'single_llc',\n multiMember = 'multi_llc',\n privatePartnership = 'private_partnership',\n privateCorp = 'private_corporation',\n unincorporatedAssociation = 'unincorporated_association',\n publicPartnership = 'public_partnership',\n publicCorp = 'public_corporation'\n}\n\nexport enum NonProfitStructure {\n incorporated = 'incorporated',\n unincorporated = 'unincorporated'\n}\n\nexport enum GovernmentEntityStructure {\n unit = 'government_unit',\n instrumentality = 'government_instrumentality',\n taxExempt = 'tax_exempt_government_instrumentality'\n}\n\nexport interface ApplicationFeeRate {\n basis_point_rate: number,\n created_at: string,\n currency: string,\n id: string,\n rate_type: string,\n transaction_fee: number,\n updated_at: string\n}\n\nexport interface Legal {\n name?: string,\n address_line1?: string,\n address_line2?: string,\n address_city?: string,\n address_state?: string,\n address_postal_code?: string,\n address_country?: string\n}\n\nexport interface ISubAccount {\n account_type: AccountType,\n application_fee_rates: ApplicationFeeRate[] | [],\n created_at: string,\n currency: string,\n id: string,\n name: string,\n payout_ready: boolean,\n platform_account_id: string,\n processing_ready: boolean,\n status: SubAccountStatusType,\n updated_at: string\n related_accounts?: object,\n readonly statusTagType?: TagTypes\n};\n\nexport class SubAccount implements ISubAccount {\n public account_type: AccountType;\n public application_fee_rates: ApplicationFeeRate[] | [];\n public created_at: string;\n public dateString: string;\n public timeString: string;\n public currency: string;\n public id: string;\n public name: string;\n public payout_ready: boolean;\n public platform_account_id: string;\n public processing_ready: boolean;\n public status: SubAccountStatusType;\n public updated_at: string;\n public related_accounts: object;\n public cardRate: string | undefined;\n public achRate: string | undefined;\n\n constructor(subAccount: ISubAccount) {\n this.account_type = subAccount.account_type;\n this.application_fee_rates = subAccount.application_fee_rates || [];\n this.created_at = subAccount.created_at;\n this.dateString = formatDate(subAccount.created_at);\n this.timeString = formatTime(subAccount.created_at);\n this.currency = subAccount.currency;\n this.id = subAccount.id;\n this.name = subAccount.name;\n this.payout_ready = subAccount.payout_ready;\n this.platform_account_id = subAccount.platform_account_id;\n this.processing_ready = subAccount.processing_ready;\n this.status = subAccount.status;\n this.updated_at = subAccount.updated_at;\n this.related_accounts = subAccount.related_accounts || {};\n const activeCardRate = this.findActiveRate(subAccount, 'cc');\n const activeAchRate = this.findActiveRate(subAccount, 'ach');\n this.cardRate = this.getFormattedRate(activeCardRate);\n this.achRate = this.getFormattedRate(activeAchRate);\n }\n\n findActiveRate = (subAccount: ISubAccount, type: string): ApplicationFeeRate | undefined => {\n return subAccount.application_fee_rates.find(rate => rate.rate_type === type);\n };\n\n getBasisPercentage = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return formatPercentage(rate?.basis_point_rate);\n };\n\n getTransactionFee = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return formatCurrency(rate?.transaction_fee);\n };\n\n getFormattedRate = (rate: ApplicationFeeRate | undefined): string | undefined => {\n return rate ?\n `${this.getBasisPercentage(rate)} + ${this.getTransactionFee(rate)}`\n : 'Not set';\n };\n\n get statusTagType(): TagTypes {\n const typeMap = {\n [SubAccountStatusType.enabled]: TagTypes.success,\n [SubAccountStatusType.disabled]: TagTypes.error,\n [SubAccountStatusType.rejected]: TagTypes.error,\n [SubAccountStatusType.information_needed]: TagTypes.warning,\n [SubAccountStatusType.submitted]: TagTypes.info,\n [SubAccountStatusType.created]: TagTypes.neutral,\n [SubAccountStatusType.archived]: TagTypes.neutral,\n };\n return typeMap[this.status];\n }\n}\n\nexport interface SubAccountBusinessDetails {\n url?: string,\n type?: BusinessType,\n structure?: BusinessStructure,\n industry?: string,\n tax_id?: string,\n phone?: string,\n email?: string,\n date_of_incorporation?: string,\n approximate_annual_volume?: string,\n legal?: Legal,\n doing_business_as?: {name: string}\n}\n\nexport interface SubAccountIdentity {\n name?: string,\n title?: string,\n email?: string,\n identification_number?: string,\n dob_month?: string,\n dob_day?: string,\n dob_year?: string,\n address_line1?: string,\n address_line2?: string,\n address_city?: string,\n address_state?: string,\n address_postal_code?: string,\n address_country?: string,\n phone?: string,\n is_owner?: boolean,\n ssn_last4?: string\n}\n\nexport interface SubaccountBankAccount {\n bank_name?: string,\n account_nickname?: string,\n routing_number?: string,\n account_number?: string,\n account_type?: string,\n account_owner_name?: string\n}\n\nexport interface Terms {\n accepted?: boolean,\n ip?: string,\n user_agent?: string\n}\n\nexport interface IOnboardingPayload {\n onboarding_version: string,\n bank_account?: SubaccountBankAccount,\n business_details?: SubAccountBusinessDetails,\n representative?: SubAccountIdentity,\n terms_and_conditions?: Terms\n owners?: SubAccountIdentity[]\n}\n\nexport interface IOnboardingData {\n account_type?: AccountType,\n payload?: IOnboardingPayload,\n platform_account_id?: string,\n seller_account_id?: string,\n sub_account_id?: string\n}\n"],"mappings":"yDAGA,IAAYA,GAAZ,SAAYA,GACVA,EAAA,qBACAA,EAAA,eACAA,EAAA,qBACAA,EAAA,qBACAA,EAAA,gBACD,EAND,CAAYA,MAAQ,KAQpB,IAAYC,GAAZ,SAAYA,GACVA,EAAA,qBACAA,EAAA,yBACAA,EAAA,2CACAA,EAAA,qBACAA,EAAA,uBACAA,EAAA,uBACAA,EAAA,sBACD,EARD,CAAYA,MAAoB,KAUhC,IAAYC,GAAZ,SAAYA,GACVA,EAAA,eACAA,EAAA,cACD,EAHD,CAAYA,MAAW,KAKvB,IAAYC,GAAZ,SAAYA,GACVA,EAAA,0BACAA,EAAA,0BACAA,EAAA,kCACAA,EAAA,0BACD,EALD,CAAYA,MAAY,KAOxB,IAAYC,GAAZ,SAAYA,GACVA,EAAA,WACAA,EAAA,4CACAA,EAAA,6BACAA,EAAA,2BACAA,EAAA,4CACAA,EAAA,qCACAA,EAAA,0DACAA,EAAA,0CACAA,EAAA,kCACD,EAVD,CAAYA,MAAkB,KAY9B,IAAYC,GAAZ,SAAY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ACd,CAAC3C,EAAqB4C,SAAU7C,EAAS8C,QACzC,CAAC7C,EAAqB8C,UAAW/C,EAASgD,MAC1C,CAAC/C,EAAqBgD,UAAWjD,EAASgD,MAC1C,CAAC/C,EAAqBiD,oBAAqBlD,EAASmD,QACpD,CAAClD,EAAqBmD,WAAYpD,EAASqD,KAC3C,CAACpD,EAAqBqD,SAAUtD,EAASuD,QACzC,CAACtD,EAAqBuD,UAAWxD,EAASuD,SAE5C,OAAOX,EAAQlC,KAAK0B,O"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["config","iframeOrigin","proxyApiOrigin","proxyAuthToken","exampleAccountId","exampleBusinessId","examplePaymentId","examplePayoutId","privateApiOrigin","privateAuthToken"],"sources":["config.ts"],"sourcesContent":["export const config = {\n iframeOrigin: 'https://js.justifi.ai/v2',\n proxyApiOrigin: 'https://wc-proxy.justifi.ai',\n proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',\n exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',\n exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',\n examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',\n examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',\n privateApiOrigin: '',\n privateAuthToken: '',\n};\n"],"mappings":"MAAaA,EAAS,CACpBC,aAAc,2BACdC,eAAgB,8BAChBC,eAAgB,o9BAChBC,iBAAkB,6BAClBC,kBAAmB,6BACnBC,iBAAkB,4BAClBC,gBAAiB,4BACjBC,iBAAkB,GAClBC,iBAAkB,W"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as n,h as t,H as o}from"./p-cbb60191.js";import{c as i}from"./p-9b6dcac5.js";function r(e,n,t){return t={path:n,exports:{},require:function(e,n){return s()}},e(t,t.exports),t.exports}function s(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a=r((function(e){(function(n){if(typeof window==="undefined")return;var t=0,o=false,i=false,r="message",s=r.length,a="[iFrameSizer]",c=a.length,f=null,u=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),l={},m=null,h=Object.freeze({autoResize:true,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:true,inPageLinks:false,enablePublicMethods:true,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:false,maxHeight:Infinity,maxWidth:Infinity,minHeight:0,minWidth:0,mouseEvents:true,resizeFrom:"parent",scrolling:false,sizeHeight:true,sizeWidth:false,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return true},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return true}});function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,false)}function g(e,n,t){e.removeEventListener(n,t,false)}function p(){var e=["moz","webkit","o","ms"];var n;for(n=0;n<e.length&&!u;n+=1){u=window[e[n]+"RequestAnimationFrame"]}if(u){u=u.bind(window)}else{k("setup","RequestAnimationFrame not supported")}}function y(e){var n="Host page: "+e;if(window.top!==window.self){n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e}return n}function v(e){return a+"["+y(e)+"]"}function j(e){return l[e]?l[e].log:o}function k(e,n){M("log",e,n,j(e))}function x(e,n){M("info",e,n,j(e))}function z(e,n){M("warn",e,n,true)}function M(e,n,t,o){if(true===o&&"object"===typeof window.console){console[e](v(n),t)}}function F(e){function n(){function e(){E(_);T(Q);V("onResized",_)}r("Height");r("Width");N(e,_,"init")}function t(){var e=G.slice(c).split(":");var n=e[1]?parseInt(e[1],10):0;var t=l[e[0]]&&l[e[0]].iframe;var r=getComputedStyle(t);return{iframe:t,id:e[0],height:n+o(r)+i(r),width:e[2],type:e[3]}}function o(e){if(e.boxSizing!=="border-box"){return 0}var n=e.paddingTop?parseInt(e.paddingTop,10):0;var t=e.paddingBottom?parseInt(e.paddingBottom,10):0;return n+t}function i(e){if(e.boxSizing!=="border-box"){return 0}var n=e.borderTopWidth?parseInt(e.borderTopWidth,10):0;var t=e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0;return n+t}function r(e){var n=Number(l[Q]["max"+e]),t=Number(l[Q]["min"+e]),o=e.toLowerCase(),i=Number(_[o]);k(Q,"Checking "+o+" is in range "+t+"-"+n);if(i<t){i=t;k(Q,"Set "+o+" to min value")}if(i>n){i=n;k(Q,"Set "+o+" to max value")}_[o]=""+i}function u(){function n(){function e(){var e=0,n=false;k(Q,"Checking connection is from allowed list of origins: "+o);for(;e<o.length;e++){if(o[e]===t){n=true;break}}return n}function n(){var e=l[Q]&&l[Q].remoteHost;k(Q,"Checking connection is from: "+e);return t===e}return o.constructor===Array?e():n()}var t=e.origin,o=l[Q]&&l[Q].checkOrigin;if(o&&""+t!=="null"&&!n()){throw new Error("Unexpected message received from: "+t+" for "+_.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.")}return true}function d(){return a===(""+G).slice(0,c)&&G.slice(c).split(":")[0]in l}function m(){var e=_.type in{true:1,false:1,undefined:1};if(e){k(Q,"Ignoring init message from meta parent page")}return e}function h(e){return G.slice(G.indexOf(":")+s+e)}function b(e){k(Q,"onMessage passed: {iframe: "+_.iframe.id+", message: "+e+"}");V("onMessage",{iframe:_.iframe,message:JSON.parse(e)});k(Q,"--")}function p(){var e=document.body.getBoundingClientRect(),n=_.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:n.height,iframeWidth:n.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(n.top-e.top,10),offsetLeft:parseInt(n.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function y(e,n){function t(){A("Send Page Info","pageInfo:"+p(),e,n)}D(t,32,n)}function v(){function e(e,t){function i(){if(l[o]){y(l[o].iframe,o)}else{n()}}["scroll","resize"].forEach((function(n){k(o,e+n+" listener for sendPageInfo");t(window,n,i)}))}function n(){e("Remove ",g)}function t(){e("Add ",w)}var o=Q;t();if(l[o]){l[o].stopPageInfo=n}}function j(){if(l[Q]&&l[Q].stopPageInfo){l[Q].stopPageInfo();delete l[Q].stopPageInfo}}function M(){var e=true;if(null===_.iframe){z(Q,"IFrame ("+_.id+") not found");e=false}return e}function F(e){var n=e.getBoundingClientRect();C(Q);return{x:Math.floor(Number(n.left)+Number(f.x)),y:Math.floor(Number(n.top)+Number(f.y))}}function S(e){function n(){f=r;L();k(Q,"--")}function t(){return{x:Number(_.width)+i.x,y:Number(_.height)+i.y}}function o(){if(window.parentIFrame){window.parentIFrame["scrollTo"+(e?"Offset":"")](r.x,r.y)}else{z(Q,"Unable to scroll to requested position, window.parentIFrame not found")}}var i=e?F(_.iframe):{x:0,y:0},r=t();k(Q,"Reposition requested from iFrame (offset x:"+i.x+" y:"+i.y+")");if(window.top===window.self){n()}else{o()}}function L(){if(false===V("onScroll",f)){W()}else{T(Q)}}function q(e){function n(){var e=F(r);k(Q,"Moving to in page link (#"+o+") at x: "+e.x+" y: "+e.y);f={x:e.x,y:e.y};L();k(Q,"--")}function t(){if(window.parentIFrame){window.parentIFrame.moveToAnchor(o)}else{k(Q,"In page link #"+o+" not found and window.parentIFrame not found")}}var o=e.split("#")[1]||"",i=decodeURIComponent(o),r=document.getElementById(i)||document.getElementsByName(i)[0];if(r){n()}else if(window.top===window.self){k(Q,"In page link #"+o+" not found")}else{t()}}function P(e){var n={};if(Number(_.width)===0&&Number(_.height)===0){var t=h(9).split(":");n={x:t[1],y:t[0]}}else{n={x:_.width,y:_.height}}V(e,{iframe:_.iframe,screenX:Number(n.x),screenY:Number(n.y),type:_.type})}function V(e,n){return I(Q,e,n)}function $(){if(l[Q]&&l[Q].firstRun)B();switch(_.type){case"close":{O(_.iframe);break}case"message":{b(h(6));break}case"mouseenter":{P("onMouseEnter");break}case"mouseleave":{P("onMouseLeave");break}case"autoResize":{l[Q].autoResize=JSON.parse(h(9));break}case"scrollTo":{S(false);break}case"scrollToOffset":{S(true);break}case"pageInfo":{y(l[Q]&&l[Q].iframe,Q);v();break}case"pageInfoStop":{j();break}case"inPageLink":{q(h(9));break}case"reset":{R(_);break}case"init":{n();V("onInit",_.iframe);break}default:{if(Number(_.width)===0&&Number(_.height)===0){z("Unsupported message received ("+_.type+"), this is likely due to the iframe containing a later "+"version of iframe-resizer than the parent page")}else{n()}}}}function U(e){var n=true;if(!l[e]){n=false;z(_.type+" No settings for "+e+". Message was: "+G)}return n}function J(){for(var e in l){A("iFrame requested init",H(e),l[e].iframe,e)}}function B(){if(l[Q]){l[Q].firstRun=false}}var G=e.data,_={},Q=null;if("[iFrameResizerChild]Ready"===G){J()}else if(d()){_=t();Q=_.id;if(l[Q]){l[Q].loaded=true}if(!m()&&U(Q)){k(Q,"Received: "+G);if(M()&&u()){$()}}}else{x(Q,"Ignored: "+G)}}function I(e,n,t){var o=null,i=null;if(l[e]){o=l[e][n];if("function"===typeof o){i=o(t)}else{throw new TypeError(n+" on iFrame["+e+"] is not a function")}}return i}function S(e){var n=e.id;delete l[n]}function O(e){var n=e.id;if(I(n,"onClose",n)===false){k(n,"Close iframe cancelled by onClose event");return}k(n,"Removing iFrame: "+n);try{if(e.parentNode){e.parentNode.removeChild(e)}}catch(e){z(e)}I(n,"onClosed",n);k(n,"--");S(e)}function C(e){if(null===f){f={x:window.pageXOffset===n?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===n?document.documentElement.scrollTop:window.pageYOffset};k(e,"Get page position: "+f.x+","+f.y)}}function T(e){if(null!==f){window.scrollTo(f.x,f.y);k(e,"Set page position: "+f.x+","+f.y);W()}}function W(){f=null}function R(e){function n(){E(e);A("reset","reset",e.iframe,e.id)}k(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame"));C(e.id);N(n,e,"reset")}function E(e){function n(n){if(!e.id){k("undefined","messageData id not set");return}e.iframe.style[n]=e[n]+"px";k(e.id,"IFrame ("+r+") "+n+" set to "+e[n]+"px")}function t(n){if(!i&&"0"===e[n]){i=true;k(r,"Hidden iFrame detected, creating visibility listener");$()}}function o(e){n(e);t(e)}var r=e.iframe.id;if(l[r]){if(l[r].sizeHeight){o("height")}if(l[r].sizeWidth){o("width")}}}function N(e,n,t){if(t!==n.type&&u&&!window.jasmine){k(n.id,"Requesting animation frame");u(e)}else{e()}}function A(e,n,t,o,i){function r(){var i=l[o]&&l[o].targetOrigin;k(o,"["+e+"] Sending msg to iframe["+o+"] ("+n+") targetOrigin: "+i);t.contentWindow.postMessage(a+n,i)}function s(){z(o,"["+e+"] IFrame("+o+") not found")}function c(){if(t&&"contentWindow"in t&&null!==t.contentWindow){r()}else{s()}}function f(){function e(){if(l[o]&&!l[o].loaded&&!u){u=true;z(o,"IFrame has not responded within "+l[o].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.")}}if(!!i&&l[o]&&!!l[o].warningTimeout){l[o].msgTimeout=setTimeout(e,l[o].warningTimeout)}}var u=false;o=o||t.id;if(l[o]){c();f()}}function H(e){return e+":"+l[e].bodyMarginV1+":"+l[e].sizeWidth+":"+l[e].log+":"+l[e].interval+":"+l[e].enablePublicMethods+":"+l[e].autoResize+":"+l[e].bodyMargin+":"+l[e].heightCalculationMethod+":"+l[e].bodyBackground+":"+l[e].bodyPadding+":"+l[e].tolerance+":"+l[e].inPageLinks+":"+l[e].resizeFrom+":"+l[e].widthCalculationMethod+":"+l[e].mouseEvents}function L(e){return typeof e==="number"}function q(e,i){function r(){function n(n){var t=l[F][n];if(Infinity!==t&&0!==t){e.style[n]=L(t)?t+"px":t;k(F,"Set "+n+" = "+e.style[n])}}function t(e){if(l[F]["min"+e]>l[F]["max"+e]){throw new Error("Value for min"+e+" can not be greater than max"+e)}}t("Height");t("Width");n("maxHeight");n("minHeight");n("maxWidth");n("minWidth")}function s(){var e=i&&i.id||h.id+t++;if(null!==document.getElementById(e)){e+=t++}return e}function a(n){if(typeof n!=="string"){throw new TypeError("Invaild id for iFrame. Expected String")}if(""===n){e.id=n=s();o=(i||{}).log;k(n,"Added missing iframe ID: "+n+" ("+e.src+")")}return n}function c(){k(F,"IFrame scrolling "+(l[F]&&l[F].scrolling?"enabled":"disabled")+" for "+F);e.style.overflow=false===(l[F]&&l[F].scrolling)?"hidden":"auto";switch(l[F]&&l[F].scrolling){case"omit":{break}case true:{e.scrolling="yes";break}case false:{e.scrolling="no";break}default:{e.scrolling=l[F]?l[F].scrolling:"no"}}}function f(){if("number"===typeof(l[F]&&l[F].bodyMargin)||"0"===(l[F]&&l[F].bodyMargin)){l[F].bodyMarginV1=l[F].bodyMargin;l[F].bodyMargin=""+l[F].bodyMargin+"px"}}function u(){var n=l[F]&&l[F].firstRun,t=l[F]&&l[F].heightCalculationMethod in d;if(!n&&t){R({iframe:e,height:0,width:0,type:"init"})}}function m(){if(l[F]){l[F].iframe.iFrameResizer={close:O.bind(null,l[F].iframe),removeListeners:S.bind(null,l[F].iframe),resize:A.bind(null,"Window resize","resize",l[F].iframe),moveToAnchor:function(e){A("Move to anchor","moveToAnchor:"+e,l[F].iframe,F)},sendMessage:function(e){e=JSON.stringify(e);A("Send Message","message:"+e,l[F].iframe,F)}}}}function g(t){function o(){A("iFrame.onload",t,e,n,true);u()}function i(n){if(!e.parentNode){return}var t=new n((function(n){n.forEach((function(n){var t=Array.prototype.slice.call(n.removedNodes);t.forEach((function(n){if(n===e){O(e)}}))}))}));t.observe(e.parentNode,{childList:true})}var r=b();if(r){i(r)}w(e,"load",o);A("init",t,e,n,true)}function p(e){if("object"!==typeof e){throw new TypeError("Options is not an object")}}function y(e){for(var n in h){if(Object.prototype.hasOwnProperty.call(h,n)){l[F][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:h[n]}}}function v(e){return""===e||null!==e.match(/^(about:blank|javascript:|file:\/\/)/)?"*":e}function j(e){var n=e.split("Callback");if(n.length===2){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e];delete this[e];z(F,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}function x(n){n=n||{};l[F]=Object.create(null);l[F].iframe=e;l[F].firstRun=true;l[F].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/");p(n);Object.keys(n).forEach(j,n);y(n);if(l[F]){l[F].targetOrigin=true===l[F].checkOrigin?v(l[F].remoteHost):"*"}}function M(){return F in l&&"iFrameResizer"in e}var F=a(e.id);if(M()){z(F,"Ignored iFrame, already setup.")}else{x(i);c();r();f();g(H(F));m()}}function P(e,n){if(null===m){m=setTimeout((function(){m=null;e()}),n)}}var V={};function D(e,n,t){if(!V[t]){V[t]=setTimeout((function(){V[t]=null;e()}),n)}}function $(){function e(){function e(e){function n(n){return"0px"===(l[e]&&l[e].iframe.style[n])}function t(e){return null!==e.offsetParent}if(l[e]&&t(l[e].iframe)&&(n("height")||n("width"))){A("Visibility change","resize",l[e].iframe,e)}}Object.keys(l).forEach((function(n){e(n)}))}function n(n){k("window","Mutation observed: "+n[0].target+" "+n[0].type);P(e,16)}function t(){var e=document.querySelector("body"),t={attributes:true,attributeOldValue:false,characterData:true,characterDataOldValue:false,childList:true,subtree:true},i=new o(n);i.observe(e,t)}var o=b();if(o){t()}}function U(e){function n(){B("Window "+e,"resize")}k("window","Trigger event: "+e);P(n,16)}function J(){function e(){B("Tab Visible","resize")}if("hidden"!==document.visibilityState){k("document","Trigger event: Visibility change");P(e,16)}}function B(e,n){function t(e){return l[e]&&"parent"===l[e].resizeFrom&&l[e].autoResize&&!l[e].firstRun}Object.keys(l).forEach((function(o){if(t(o)){A(e,n,l[o].iframe,o)}}))}function G(){w(window,"message",F);w(window,"resize",(function(){U("resize")}));w(document,"visibilitychange",J);w(document,"-webkit-visibilitychange",J)}function _(){function e(e,n){function t(){if(!n.tagName){throw new TypeError("Object is not a valid DOM element")}else if("IFRAME"!==n.tagName.toUpperCase()){throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}}if(n){t();q(n,e);o.push(n)}}function t(e){if(e&&e.enablePublicMethods){z("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}}var o;p();G();return function i(r,s){o=[];t(r);switch(typeof s){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(s||"iframe"),e.bind(n,r));break}case"object":{e(r,s);break}default:{throw new TypeError("Unexpected data type ("+typeof s+")")}}return o}}function Q(e){if(!e.fn){x("","Unable to bind to jQuery, it is not fully loaded.")}else if(!e.fn.iFrameResize){e.fn.iFrameResize=function e(n){function t(e,t){q(t,n)}return this.filter("iframe").each(t).end()}}}if(window.jQuery!==n){Q(window.jQuery)}if(typeof n==="function"&&n.amd){n([],_)}else{e.exports=_()}window.iFrameResize=window.iFrameResize||_()})()}));const c={card:{ready:"justifi.card.ready",tokenize:"justifi.card.tokenize",validate:"justifi.card.validate",resize:"justifi.card.resize",styleOverrides:"justifi.card.styleOverrides"},bankAccount:{ready:"justifi.bankAccount.ready",tokenize:"justifi.bankAccount.tokenize",validate:"justifi.bankAccount.validate",resize:"justifi.bankAccount.resize",styleOverrides:"justifi.bankAccount.styleOverrides"}};const f="@justifi/webcomponents";const u="4.7.1-rc.0";const d="JustiFi Web Components";const l="dist/index.cjs.js";const m="dist/components/index.js";const h="dist/esm/index.mjs";const b="dist/esm/index.mjs";const w="dist/types/index.d.ts";const g="dist/collection/collection-manifest.json";const p={type:"git",url:"git+https://github.com/justifi-tech/web-component-library.git"};const y={registry:"https://registry.npmjs.org"};const v=["dist/","loader/"];const j={build:"stencil build --docs",start:'concurrently --restart-tries 3 -c "bgBlue.bold,bgMagenta.bold,bgGreen.bold" "npm run start-stencil" "npm run storybook"',"start-stencil":"stencil build --watch",test:"stencil test --spec","test:watch":"stencil test --spec --watchAll","test:e2e":"stencil test --e2e",generate:"stencil generate",storybook:"storybook dev -p 6006 --quiet","build-storybook":"storybook build -o ../docs"};const k={"@stencil/core":"^4.0.5",bootstrap:"^5.2.3","chart.js":"^4.4.1","date-fns":"^2.29.3","dinero.js":"^1.9.1","iframe-resizer":"^4.3.7",imask:"^7.1.3",rxjs:"^7.8.1","ts-dedent":"^2.2.0",uuid:"^9.0.0",yup:"^1.0.0"};const x={"@babel/preset-env":"^7.21.5","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.5","@pxtrn/storybook-addon-docs-stencil":"^6.4.1","@stencil/angular-output-target":"^0.7.1","@stencil/react-output-target":"^0.5.3","@stencil/sass":"^3.0.1","@stencil/store":"^2.0.8","@stencil/vue-output-target":"^0.8.6","@storybook/addon-actions":"^7.0.4","@storybook/addon-essentials":"^7.0.4","@storybook/addon-interactions":"^7.0.4","@storybook/addon-links":"^7.0.4","@storybook/html":"^7.0.4","@storybook/html-webpack5":"^7.0.4","@storybook/jest":"^0.1.0","@storybook/testing-library":"^0.1.0","@types/jest":"27.0.3","@types/node":"^20.1.4","@types/react":"^18.0.37","@types/react-dom":"^18.0.11",concurrently:"^7.6.0",dotenv:"^16.3.1",jest:"^27.4.5","jest-cli":"^27.4.5",puppeteer:"^10.0.0",react:"^18.2.0","react-dom":"^18.2.0","rollup-plugin-replace":"^2.2.0",storybook:"^7.0.4"};const z="MIT";const M="507bac1d941eae6e1f56e185ecd9bc9d22637783";const F={name:f,version:u,description:d,main:l,module:m,es2015:h,es2017:b,types:w,collection:g,"collection:main":"dist/collection/index.js",repository:p,publishConfig:y,files:v,scripts:j,dependencies:k,devDependencies:x,license:z,gitHead:M};const I=()=>{const e=getComputedStyle(document.body);const n={loadGoogleFont:e.getPropertyValue("--jfi-load-google-font"),layout:{fontFamily:e.getPropertyValue("--jfi-layout-font-family"),padding:e.getPropertyValue("--jfi-layout-padding"),formControlSpacingHorizontal:e.getPropertyValue("--jfi-layout-form-control-spacing-x"),formControlSpacingVertical:e.getPropertyValue("--jfi-layout-form-control-spacing-y")},formControl:{backgroundColor:e.getPropertyValue("--jfi-form-control-background-color"),borderColor:e.getPropertyValue("--jfi-form-control-border-color"),borderColorFocus:e.getPropertyValue("--jfi-form-control-border-color-focus"),borderColorError:e.getPropertyValue("--jfi-form-control-border-color-error"),borderWidth:e.getPropertyValue("--jfi-form-control-border-width"),borderBottomWidth:e.getPropertyValue("--jfi-form-control-border-bottom-width"),borderLeftWidth:e.getPropertyValue("--jfi-form-control-border-left-width"),borderRightWidth:e.getPropertyValue("--jfi-form-control-border-right-width"),borderTopWidth:e.getPropertyValue("--jfi-form-control-border-top-width"),borderRadius:e.getPropertyValue("--jfi-form-control-border-radius"),borderStyle:e.getPropertyValue("--jfi-form-control-border-style"),boxShadow:e.getPropertyValue("--jfi-form-control-box-shadow"),boxShadowError:e.getPropertyValue("--jfi-form-control-box-shadow-error"),boxShadowErrorFocus:e.getPropertyValue("--jfi-form-control-box-shadow-error-focus"),boxShadowFocus:e.getPropertyValue("--jfi-form-control-box-shadow-focus"),color:e.getPropertyValue("--jfi-form-control-color"),colorFocus:e.getPropertyValue("--jfi-form-control-color-focus"),fontSize:e.getPropertyValue("--jfi-form-control-font-size"),fontWeight:e.getPropertyValue("--jfi-form-control-font-weight"),lineHeight:e.getPropertyValue("--jfi-form-control-line-height"),margin:e.getPropertyValue("--jfi-form-control-margin"),padding:e.getPropertyValue("--jfi-form-control-padding")},formLabel:{color:e.getPropertyValue("--jfi-form-label-color"),fontFamily:e.getPropertyValue("--jfi-form-label-font-family"),fontSize:e.getPropertyValue("--jfi-form-label-font-size"),fontWeight:e.getPropertyValue("--jfi-form-label-font-weight"),margin:e.getPropertyValue("--jfi-form-label-margin")},errorMessage:{color:e.getPropertyValue("--jfi-error-message-color"),margin:e.getPropertyValue("--jfi-error-message-margin"),fontSize:e.getPropertyValue("--jfi-error-message-font-size")}};return n};const S=":host{display:block}justifi-payment-method-form iframe{border:none;width:100%}iframe{width:1px;min-width:100%}";const O=class{constructor(t){e(this,t);this.paymentMethodFormReady=n(this,"paymentMethodFormReady",7);this.paymentMethodFormTokenize=n(this,"paymentMethodFormTokenize",7);this.computedTheme=I();this.paymentMethodFormType=undefined;this.paymentMethodFormValidationMode=undefined;this.iframeOrigin=undefined;this.singleLine=undefined}connectedCallback(){window.addEventListener("message",this.dispatchMessageEvent.bind(this))}disconnectedCallback(){window.removeEventListener("message",this.dispatchMessageEvent.bind(this))}sendStyleOverrides(){if(this.computedTheme){this.postMessage(c[this.paymentMethodFormType].styleOverrides,{styleOverrides:this.computedTheme})}}dispatchMessageEvent(e){const n=e.data;const t=n.eventType;const o=n.data;if(t===c[this.paymentMethodFormType].ready){this.paymentMethodFormReady.emit(o)}}postMessage(e,n){var t,o;(o=(t=this.iframeElement)===null||t===void 0?void 0:t.contentWindow)===null||o===void 0?void 0:o.postMessage(Object.assign({eventType:e},n),i.iframeOrigin)}async resize(){this.postMessage(c[this.paymentMethodFormType].resize)}async postMessageWithResponseListener(e,n){return new Promise((t=>{const o=n=>{if(n.data.eventType!==e)return;window.removeEventListener("message",o);t(n.data.data)};window.addEventListener("message",o);this.postMessage(e,n)}))}async tokenize(e,n,t){const o=c[this.paymentMethodFormType].tokenize;const i={clientId:e,componentVersion:F.version,paymentMethodMetadata:n,account:t};return this.postMessageWithResponseListener(o,i)}async validate(){return this.postMessageWithResponseListener(c[this.paymentMethodFormType].validate)}composeQueryParams(e){const n=e.map((n=>{if(n===e[0]){return n=`?${n}`}else{return n=`&${n}`}}));return n.join("")}getIframeSrc(){const e=i.iframeOrigin;let n=`${e}/${this.paymentMethodFormType}`;let t=[];if(this.paymentMethodFormValidationMode){t.push(`validationMode=${this.paymentMethodFormValidationMode}`)}if(this.singleLine){t.push(`singleLine=${this.singleLine}`)}return n.concat(this.composeQueryParams(t))}render(){return t(o,null,t("iframe",{id:`justifi-payment-method-form-${this.paymentMethodFormType}`,src:this.getIframeSrc(),ref:e=>{this.iframeElement=e},onLoad:()=>{a(this.iframeElement);this.sendStyleOverrides()}}))}};O.style=S;export{O as justifi_payment_method_form};
|
|
2
|
-
//# sourceMappingURL=p-9ce9561a.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["undefined","window","count","logEnabled","hiddenCheckEnabled","msgHeader","msgHeaderLen","length","msgId","msgIdLen","pagePosition","requestAnimationFrame","resetRequiredMethods","Object","freeze","max","scroll","bodyScroll","documentElementScroll","settings","timer","defaults","autoResize","bodyBackground","bodyMargin","bodyMarginV1","bodyPadding","checkOrigin","inPageLinks","enablePublicMethods","heightCalculationMethod","id","interval","log","maxHeight","Infinity","maxWidth","minHeight","minWidth","mouseEvents","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClose","onClosed","onInit","onMessage","warn","onMouseEnter","onMouseLeave","onResized","onScroll","getMutationObserver","MutationObserver","WebKitMutationObserver","MozMutationObserver","addEventListener","el","evt","func","removeEventListener","setupRequestAnimationFrame","vendors","x","bind","getMyID","iframeId","retStr","top","self","parentIFrame","getId","formatLogHeader","isLogEnabled","msg","output","info","type","enabled","console","iFrameListener","event","resizeIFrame","resize","setSize","messageData","setPagePosition","on","ensureInRange","syncResize","processMsg","data","slice","split","height","parseInt","iframe","compStyle","getComputedStyle","getPaddingEnds","getBorderEnds","width","boxSizing","paddingTop","bot","paddingBottom","borderTopWidth","borderBottomWidth","Dimension","Number","min","dimension","toLowerCase","size","isMessageFromIFrame","checkAllowedOrigin","checkList","i","retCode","origin","checkSingle","remoteHost","constructor","Array","Error","isMessageForUs","isMessageFromMetaParent","true","false","getMsgBody","offset","indexOf","forwardMsgFromIFrame","msgBody","message","JSON","parse","getPageInfo","bodyPosition","document","body","getBoundingClientRect","iFramePosition","stringify","iframeHeight","iframeWidth","clientHeight","Math","documentElement","innerHeight","clientWidth","innerWidth","offsetTop","offsetLeft","left","scrollTop","pageYOffset","scrollLeft","pageXOffset","documentHeight","documentWidth","windowHeight","windowWidth","sendPageInfoToIframe","debouncedTrigger","trigger","debounceFrameEvents","startPageInfoMonitor","setListener","sendPageInfo","stop","forEach","start","stopPageInfo","stopPageInfoMonitor","checkIFrameExists","retBool","getElementPosition","target","getPagePosition","floor","y","scrollRequestFromChild","addOffset","reposition","newPosition","scrollTo","calcOffset","scrollParent","unsetPagePosition","findTarget","location","jumpToTarget","jumpPosition","hash","jumpToParent","moveToAnchor","hashData","decodeURIComponent","getElementById","getElementsByName","onMouse","mousePos","screenX","screenY","funcName","val","chkEvent","actionMsg","firstRun","closeIFrame","resetIFrame","hasSettings","iFrameReadyMsgReceived","createOutgoingMsg","loaded","retVal","TypeError","removeIframeListeners","parentNode","removeChild","error","reset","setDimension","style","chkZero","fixHiddenIFrames","processDimension","doNotSync","jasmine","calleeMsg","noResponseWarning","postMessageToIFrame","targetOrigin","contentWindow","postMessage","iFrameNotFound","chkAndSend","warnOnNoResponse","warning","errorShown","msgTimeout","setTimeout","isNumber","value","setupIFrame","options","setLimits","addStyle","styleValue","chkMinMax","newId","ensureHasId","src","setScrolling","overflow","setupBodyMarginValues","checkReset","resetRequertMethod","setupIFrameObject","iFrameResizer","close","removeListeners","anchor","sendMessage","init","iFrameLoaded","createDestroyObserver","destroyObserver","mutations","mutation","removedNodes","prototype","call","removedNode","observe","childList","checkOptions","copyOptions","option","hasOwnProperty","getTargetOrigin","match","depricate","key","splitName","name","charAt","toUpperCase","this","processOptions","create","join","keys","beenHere","debouce","fn","time","frameTimer","frameId","checkIFrames","checkIFrame","settingId","chkDimension","isVisible","offsetParent","mutationObserved","createMutationObserver","querySelector","config","attributes","attributeOldValue","characterData","characterDataOldValue","subtree","observer","resizeIFrames","sendTriggerMsg","tabVisible","visibilityState","eventName","isIFrameResizeEnabled","setupEventListeners","factory","element","chkType","tagName","iFrames","push","warnDeprecatedOptions","iFrameResizeF","querySelectorAll","createJQueryPublicMethod","$","iFrameResize","$iFrameResizeF","index","filter","each","end","jQuery","define","amd","module","exports","MessageEventType","card","ready","tokenize","validate","styleOverrides","bankAccount","getComputedTheme","computedStyles","computedTheme","loadGoogleFont","getPropertyValue","layout","fontFamily","padding","formControlSpacingHorizontal","formControlSpacingVertical","formControl","backgroundColor","borderColor","borderColorFocus","borderColorError","borderWidth","borderLeftWidth","borderRightWidth","borderRadius","borderStyle","boxShadow","boxShadowError","boxShadowErrorFocus","boxShadowFocus","color","colorFocus","fontSize","fontWeight","lineHeight","margin","formLabel","errorMessage","paymentMethodFormCss","PaymentMethodForm","connectedCallback","dispatchMessageEvent","disconnectedCallback","sendStyleOverrides","paymentMethodFormType","messageEvent","messagePayload","messageType","eventType","paymentMethodFormReady","emit","payload","_b","_a","iframeElement","assign","iframeOrigin","postMessageWithResponseListener","Promise","resolve","responseListener","clientId","paymentMethodMetadata","account","componentVersion","packageJson","version","composeQueryParams","values","queryParams","map","getIframeSrc","iframeSrc","paramsList","paymentMethodFormValidationMode","singleLine","concat","render","h","Host","ref","onLoad"],"sources":["../node_modules/iframe-resizer/js/iframeResizer.js","src/components/payment-method-form/message-event-types.ts","src/components/payment-method-form/get-computed-theme.ts","src/components/payment-method-form/payment-method-form.css?tag=justifi-payment-method-form","src/components/payment-method-form/payment-method-form.tsx"],"sourcesContent":["/*\n * File: iframeResizer.js\n * Desc: Force iframes to size to content.\n * Requires: iframeResizer.contentWindow.js to be loaded into the target frame.\n * Doc: https://github.com/davidjbradshaw/iframe-resizer\n * Author: David J. Bradshaw - dave@bradshaw.net\n * Contributor: Jure Mav - jure.mav@gmail.com\n * Contributor: Reed Dadoune - reed@dadoune.com\n */\n\n// eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names\n;(function (undefined) {\n if (typeof window === 'undefined') return // don't run for server side render\n\n var count = 0,\n logEnabled = false,\n hiddenCheckEnabled = false,\n msgHeader = 'message',\n msgHeaderLen = msgHeader.length,\n msgId = '[iFrameSizer]', // Must match iframe msg ID\n msgIdLen = msgId.length,\n pagePosition = null,\n requestAnimationFrame = window.requestAnimationFrame,\n resetRequiredMethods = Object.freeze({\n max: 1,\n scroll: 1,\n bodyScroll: 1,\n documentElementScroll: 1\n }),\n settings = {},\n timer = null,\n defaults = Object.freeze({\n autoResize: true,\n bodyBackground: null,\n bodyMargin: null,\n bodyMarginV1: 8,\n bodyPadding: null,\n checkOrigin: true,\n inPageLinks: false,\n enablePublicMethods: true,\n heightCalculationMethod: 'bodyOffset',\n id: 'iFrameResizer',\n interval: 32,\n log: false,\n maxHeight: Infinity,\n maxWidth: Infinity,\n minHeight: 0,\n minWidth: 0,\n mouseEvents: true,\n resizeFrom: 'parent',\n scrolling: false,\n sizeHeight: true,\n sizeWidth: false,\n warningTimeout: 5000,\n tolerance: 0,\n widthCalculationMethod: 'scroll',\n onClose: function () {\n return true\n },\n onClosed: function () {},\n onInit: function () {},\n onMessage: function () {\n warn('onMessage function not defined')\n },\n onMouseEnter: function () {},\n onMouseLeave: function () {},\n onResized: function () {},\n onScroll: function () {\n return true\n }\n })\n\n function getMutationObserver() {\n return (\n window.MutationObserver ||\n window.WebKitMutationObserver ||\n window.MozMutationObserver\n )\n }\n\n function addEventListener(el, evt, func) {\n el.addEventListener(evt, func, false)\n }\n\n function removeEventListener(el, evt, func) {\n el.removeEventListener(evt, func, false)\n }\n\n function setupRequestAnimationFrame() {\n var vendors = ['moz', 'webkit', 'o', 'ms']\n var x\n\n // Remove vendor prefixing if prefixed and break early if not\n for (x = 0; x < vendors.length && !requestAnimationFrame; x += 1) {\n requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']\n }\n\n if (requestAnimationFrame) {\n // Firefox extension content-scripts have a globalThis object that is not the same as window.\n // Binding `requestAnimationFrame` to window allows the function to work and prevents errors\n // being thrown when run in that context, and should be a no-op in every other context.\n requestAnimationFrame = requestAnimationFrame.bind(window)\n } else {\n log('setup', 'RequestAnimationFrame not supported')\n }\n }\n\n function getMyID(iframeId) {\n var retStr = 'Host page: ' + iframeId\n\n if (window.top !== window.self) {\n retStr =\n window.parentIFrame && window.parentIFrame.getId\n ? window.parentIFrame.getId() + ': ' + iframeId\n : 'Nested host page: ' + iframeId\n }\n\n return retStr\n }\n\n function formatLogHeader(iframeId) {\n return msgId + '[' + getMyID(iframeId) + ']'\n }\n\n function isLogEnabled(iframeId) {\n return settings[iframeId] ? settings[iframeId].log : logEnabled\n }\n\n function log(iframeId, msg) {\n output('log', iframeId, msg, isLogEnabled(iframeId))\n }\n\n function info(iframeId, msg) {\n output('info', iframeId, msg, isLogEnabled(iframeId))\n }\n\n function warn(iframeId, msg) {\n output('warn', iframeId, msg, true)\n }\n\n function output(type, iframeId, msg, enabled) {\n if (true === enabled && 'object' === typeof window.console) {\n // eslint-disable-next-line no-console\n console[type](formatLogHeader(iframeId), msg)\n }\n }\n\n function iFrameListener(event) {\n function resizeIFrame() {\n function resize() {\n setSize(messageData)\n setPagePosition(iframeId)\n on('onResized', messageData)\n }\n\n ensureInRange('Height')\n ensureInRange('Width')\n\n syncResize(resize, messageData, 'init')\n }\n\n function processMsg() {\n var data = msg.slice(msgIdLen).split(':')\n var height = data[1] ? parseInt(data[1], 10) : 0\n var iframe = settings[data[0]] && settings[data[0]].iframe\n var compStyle = getComputedStyle(iframe)\n\n return {\n iframe: iframe,\n id: data[0],\n height: height + getPaddingEnds(compStyle) + getBorderEnds(compStyle),\n width: data[2],\n type: data[3]\n }\n }\n\n function getPaddingEnds(compStyle) {\n if (compStyle.boxSizing !== 'border-box') {\n return 0\n }\n var top = compStyle.paddingTop ? parseInt(compStyle.paddingTop, 10) : 0\n var bot = compStyle.paddingBottom\n ? parseInt(compStyle.paddingBottom, 10)\n : 0\n return top + bot\n }\n\n function getBorderEnds(compStyle) {\n if (compStyle.boxSizing !== 'border-box') {\n return 0\n }\n var top = compStyle.borderTopWidth\n ? parseInt(compStyle.borderTopWidth, 10)\n : 0\n var bot = compStyle.borderBottomWidth\n ? parseInt(compStyle.borderBottomWidth, 10)\n : 0\n return top + bot\n }\n\n function ensureInRange(Dimension) {\n var max = Number(settings[iframeId]['max' + Dimension]),\n min = Number(settings[iframeId]['min' + Dimension]),\n dimension = Dimension.toLowerCase(),\n size = Number(messageData[dimension])\n\n log(iframeId, 'Checking ' + dimension + ' is in range ' + min + '-' + max)\n\n if (size < min) {\n size = min\n log(iframeId, 'Set ' + dimension + ' to min value')\n }\n\n if (size > max) {\n size = max\n log(iframeId, 'Set ' + dimension + ' to max value')\n }\n\n messageData[dimension] = '' + size\n }\n\n function isMessageFromIFrame() {\n function checkAllowedOrigin() {\n function checkList() {\n var i = 0,\n retCode = false\n\n log(\n iframeId,\n 'Checking connection is from allowed list of origins: ' +\n checkOrigin\n )\n\n for (; i < checkOrigin.length; i++) {\n if (checkOrigin[i] === origin) {\n retCode = true\n break\n }\n }\n return retCode\n }\n\n function checkSingle() {\n var remoteHost = settings[iframeId] && settings[iframeId].remoteHost\n log(iframeId, 'Checking connection is from: ' + remoteHost)\n return origin === remoteHost\n }\n\n return checkOrigin.constructor === Array ? checkList() : checkSingle()\n }\n\n var origin = event.origin,\n checkOrigin = settings[iframeId] && settings[iframeId].checkOrigin\n\n if (checkOrigin && '' + origin !== 'null' && !checkAllowedOrigin()) {\n throw new Error(\n 'Unexpected message received from: ' +\n origin +\n ' for ' +\n messageData.iframe.id +\n '. Message was: ' +\n event.data +\n '. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.'\n )\n }\n\n return true\n }\n\n function isMessageForUs() {\n return (\n msgId === ('' + msg).slice(0, msgIdLen) &&\n msg.slice(msgIdLen).split(':')[0] in settings\n ) // ''+Protects against non-string msg\n }\n\n function isMessageFromMetaParent() {\n // Test if this message is from a parent above us. This is an ugly test, however, updating\n // the message format would break backwards compatibility.\n var retCode = messageData.type in { true: 1, false: 1, undefined: 1 }\n\n if (retCode) {\n log(iframeId, 'Ignoring init message from meta parent page')\n }\n\n return retCode\n }\n\n function getMsgBody(offset) {\n return msg.slice(msg.indexOf(':') + msgHeaderLen + offset)\n }\n\n function forwardMsgFromIFrame(msgBody) {\n log(\n iframeId,\n 'onMessage passed: {iframe: ' +\n messageData.iframe.id +\n ', message: ' +\n msgBody +\n '}'\n )\n\n on('onMessage', {\n iframe: messageData.iframe,\n message: JSON.parse(msgBody)\n })\n\n log(iframeId, '--')\n }\n\n function getPageInfo() {\n var bodyPosition = document.body.getBoundingClientRect(),\n iFramePosition = messageData.iframe.getBoundingClientRect()\n\n return JSON.stringify({\n iframeHeight: iFramePosition.height,\n iframeWidth: iFramePosition.width,\n clientHeight: Math.max(\n document.documentElement.clientHeight,\n window.innerHeight || 0\n ),\n clientWidth: Math.max(\n document.documentElement.clientWidth,\n window.innerWidth || 0\n ),\n offsetTop: parseInt(iFramePosition.top - bodyPosition.top, 10),\n offsetLeft: parseInt(iFramePosition.left - bodyPosition.left, 10),\n scrollTop: window.pageYOffset,\n scrollLeft: window.pageXOffset,\n documentHeight: document.documentElement.clientHeight,\n documentWidth: document.documentElement.clientWidth,\n windowHeight: window.innerHeight,\n windowWidth: window.innerWidth\n })\n }\n\n function sendPageInfoToIframe(iframe, iframeId) {\n function debouncedTrigger() {\n trigger('Send Page Info', 'pageInfo:' + getPageInfo(), iframe, iframeId)\n }\n debounceFrameEvents(debouncedTrigger, 32, iframeId)\n }\n\n function startPageInfoMonitor() {\n function setListener(type, func) {\n function sendPageInfo() {\n if (settings[id]) {\n sendPageInfoToIframe(settings[id].iframe, id)\n } else {\n stop()\n }\n }\n\n ;['scroll', 'resize'].forEach(function (evt) {\n log(id, type + evt + ' listener for sendPageInfo')\n func(window, evt, sendPageInfo)\n })\n }\n\n function stop() {\n setListener('Remove ', removeEventListener)\n }\n\n function start() {\n setListener('Add ', addEventListener)\n }\n\n var id = iframeId // Create locally scoped copy of iFrame ID\n\n start()\n\n if (settings[id]) {\n settings[id].stopPageInfo = stop\n }\n }\n\n function stopPageInfoMonitor() {\n if (settings[iframeId] && settings[iframeId].stopPageInfo) {\n settings[iframeId].stopPageInfo()\n delete settings[iframeId].stopPageInfo\n }\n }\n\n function checkIFrameExists() {\n var retBool = true\n\n if (null === messageData.iframe) {\n warn(iframeId, 'IFrame (' + messageData.id + ') not found')\n retBool = false\n }\n return retBool\n }\n\n function getElementPosition(target) {\n var iFramePosition = target.getBoundingClientRect()\n\n getPagePosition(iframeId)\n\n return {\n x: Math.floor(Number(iFramePosition.left) + Number(pagePosition.x)),\n y: Math.floor(Number(iFramePosition.top) + Number(pagePosition.y))\n }\n }\n\n function scrollRequestFromChild(addOffset) {\n /* istanbul ignore next */ // Not testable in Karma\n function reposition() {\n pagePosition = newPosition\n scrollTo()\n log(iframeId, '--')\n }\n\n function calcOffset() {\n return {\n x: Number(messageData.width) + offset.x,\n y: Number(messageData.height) + offset.y\n }\n }\n\n function scrollParent() {\n if (window.parentIFrame) {\n window.parentIFrame['scrollTo' + (addOffset ? 'Offset' : '')](\n newPosition.x,\n newPosition.y\n )\n } else {\n warn(\n iframeId,\n 'Unable to scroll to requested position, window.parentIFrame not found'\n )\n }\n }\n\n var offset = addOffset\n ? getElementPosition(messageData.iframe)\n : { x: 0, y: 0 },\n newPosition = calcOffset()\n\n log(\n iframeId,\n 'Reposition requested from iFrame (offset x:' +\n offset.x +\n ' y:' +\n offset.y +\n ')'\n )\n\n if (window.top === window.self) {\n reposition()\n } else {\n scrollParent()\n }\n }\n\n function scrollTo() {\n if (false === on('onScroll', pagePosition)) {\n unsetPagePosition()\n } else {\n setPagePosition(iframeId)\n }\n }\n\n function findTarget(location) {\n function jumpToTarget() {\n var jumpPosition = getElementPosition(target)\n\n log(\n iframeId,\n 'Moving to in page link (#' +\n hash +\n ') at x: ' +\n jumpPosition.x +\n ' y: ' +\n jumpPosition.y\n )\n pagePosition = {\n x: jumpPosition.x,\n y: jumpPosition.y\n }\n\n scrollTo()\n log(iframeId, '--')\n }\n\n function jumpToParent() {\n if (window.parentIFrame) {\n window.parentIFrame.moveToAnchor(hash)\n } else {\n log(\n iframeId,\n 'In page link #' +\n hash +\n ' not found and window.parentIFrame not found'\n )\n }\n }\n\n var hash = location.split('#')[1] || '',\n hashData = decodeURIComponent(hash),\n target =\n document.getElementById(hashData) ||\n document.getElementsByName(hashData)[0]\n\n if (target) {\n jumpToTarget()\n } else if (window.top === window.self) {\n log(iframeId, 'In page link #' + hash + ' not found')\n } else {\n jumpToParent()\n }\n }\n\n function onMouse(event) {\n var mousePos = {}\n\n if (Number(messageData.width) === 0 && Number(messageData.height) === 0) {\n var data = getMsgBody(9).split(':')\n mousePos = {\n x: data[1],\n y: data[0]\n }\n } else {\n mousePos = {\n x: messageData.width,\n y: messageData.height\n }\n }\n\n on(event, {\n iframe: messageData.iframe,\n screenX: Number(mousePos.x),\n screenY: Number(mousePos.y),\n type: messageData.type\n })\n }\n\n function on(funcName, val) {\n return chkEvent(iframeId, funcName, val)\n }\n\n function actionMsg() {\n if (settings[iframeId] && settings[iframeId].firstRun) firstRun()\n\n switch (messageData.type) {\n case 'close': {\n closeIFrame(messageData.iframe)\n break\n }\n\n case 'message': {\n forwardMsgFromIFrame(getMsgBody(6))\n break\n }\n\n case 'mouseenter': {\n onMouse('onMouseEnter')\n break\n }\n\n case 'mouseleave': {\n onMouse('onMouseLeave')\n break\n }\n\n case 'autoResize': {\n settings[iframeId].autoResize = JSON.parse(getMsgBody(9))\n break\n }\n\n case 'scrollTo': {\n scrollRequestFromChild(false)\n break\n }\n\n case 'scrollToOffset': {\n scrollRequestFromChild(true)\n break\n }\n\n case 'pageInfo': {\n sendPageInfoToIframe(\n settings[iframeId] && settings[iframeId].iframe,\n iframeId\n )\n startPageInfoMonitor()\n break\n }\n\n case 'pageInfoStop': {\n stopPageInfoMonitor()\n break\n }\n\n case 'inPageLink': {\n findTarget(getMsgBody(9))\n break\n }\n\n case 'reset': {\n resetIFrame(messageData)\n break\n }\n\n case 'init': {\n resizeIFrame()\n on('onInit', messageData.iframe)\n break\n }\n\n default: {\n if (\n Number(messageData.width) === 0 &&\n Number(messageData.height) === 0\n ) {\n warn(\n 'Unsupported message received (' +\n messageData.type +\n '), this is likely due to the iframe containing a later ' +\n 'version of iframe-resizer than the parent page'\n )\n } else {\n resizeIFrame()\n }\n }\n }\n }\n\n function hasSettings(iframeId) {\n var retBool = true\n\n if (!settings[iframeId]) {\n retBool = false\n warn(\n messageData.type +\n ' No settings for ' +\n iframeId +\n '. Message was: ' +\n msg\n )\n }\n\n return retBool\n }\n\n function iFrameReadyMsgReceived() {\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n for (var iframeId in settings) {\n trigger(\n 'iFrame requested init',\n createOutgoingMsg(iframeId),\n settings[iframeId].iframe,\n iframeId\n )\n }\n }\n\n function firstRun() {\n if (settings[iframeId]) {\n settings[iframeId].firstRun = false\n }\n }\n\n var msg = event.data,\n messageData = {},\n iframeId = null\n\n if ('[iFrameResizerChild]Ready' === msg) {\n iFrameReadyMsgReceived()\n } else if (isMessageForUs()) {\n messageData = processMsg()\n iframeId = messageData.id\n if (settings[iframeId]) {\n settings[iframeId].loaded = true\n }\n\n if (!isMessageFromMetaParent() && hasSettings(iframeId)) {\n log(iframeId, 'Received: ' + msg)\n\n if (checkIFrameExists() && isMessageFromIFrame()) {\n actionMsg()\n }\n }\n } else {\n info(iframeId, 'Ignored: ' + msg)\n }\n }\n\n function chkEvent(iframeId, funcName, val) {\n var func = null,\n retVal = null\n\n if (settings[iframeId]) {\n func = settings[iframeId][funcName]\n\n if ('function' === typeof func) {\n retVal = func(val)\n } else {\n throw new TypeError(\n funcName + ' on iFrame[' + iframeId + '] is not a function'\n )\n }\n }\n\n return retVal\n }\n\n function removeIframeListeners(iframe) {\n var iframeId = iframe.id\n delete settings[iframeId]\n }\n\n function closeIFrame(iframe) {\n var iframeId = iframe.id\n if (chkEvent(iframeId, 'onClose', iframeId) === false) {\n log(iframeId, 'Close iframe cancelled by onClose event')\n return\n }\n log(iframeId, 'Removing iFrame: ' + iframeId)\n\n try {\n // Catch race condition error with React\n if (iframe.parentNode) {\n iframe.parentNode.removeChild(iframe)\n }\n } catch (error) {\n warn(error)\n }\n\n chkEvent(iframeId, 'onClosed', iframeId)\n log(iframeId, '--')\n removeIframeListeners(iframe)\n }\n\n function getPagePosition(iframeId) {\n if (null === pagePosition) {\n pagePosition = {\n x:\n window.pageXOffset === undefined\n ? document.documentElement.scrollLeft\n : window.pageXOffset,\n y:\n window.pageYOffset === undefined\n ? document.documentElement.scrollTop\n : window.pageYOffset\n }\n log(\n iframeId,\n 'Get page position: ' + pagePosition.x + ',' + pagePosition.y\n )\n }\n }\n\n function setPagePosition(iframeId) {\n if (null !== pagePosition) {\n window.scrollTo(pagePosition.x, pagePosition.y)\n log(\n iframeId,\n 'Set page position: ' + pagePosition.x + ',' + pagePosition.y\n )\n unsetPagePosition()\n }\n }\n\n function unsetPagePosition() {\n pagePosition = null\n }\n\n function resetIFrame(messageData) {\n function reset() {\n setSize(messageData)\n trigger('reset', 'reset', messageData.iframe, messageData.id)\n }\n\n log(\n messageData.id,\n 'Size reset requested by ' +\n ('init' === messageData.type ? 'host page' : 'iFrame')\n )\n getPagePosition(messageData.id)\n syncResize(reset, messageData, 'reset')\n }\n\n function setSize(messageData) {\n function setDimension(dimension) {\n if (!messageData.id) {\n log('undefined', 'messageData id not set')\n return\n }\n messageData.iframe.style[dimension] = messageData[dimension] + 'px'\n log(\n messageData.id,\n 'IFrame (' +\n iframeId +\n ') ' +\n dimension +\n ' set to ' +\n messageData[dimension] +\n 'px'\n )\n }\n\n function chkZero(dimension) {\n // FireFox sets dimension of hidden iFrames to zero.\n // So if we detect that set up an event to check for\n // when iFrame becomes visible.\n\n /* istanbul ignore next */ // Not testable in PhantomJS\n if (!hiddenCheckEnabled && '0' === messageData[dimension]) {\n hiddenCheckEnabled = true\n log(iframeId, 'Hidden iFrame detected, creating visibility listener')\n fixHiddenIFrames()\n }\n }\n\n function processDimension(dimension) {\n setDimension(dimension)\n chkZero(dimension)\n }\n\n var iframeId = messageData.iframe.id\n\n if (settings[iframeId]) {\n if (settings[iframeId].sizeHeight) {\n processDimension('height')\n }\n if (settings[iframeId].sizeWidth) {\n processDimension('width')\n }\n }\n }\n\n function syncResize(func, messageData, doNotSync) {\n /* istanbul ignore if */ // Not testable in PhantomJS\n if (\n doNotSync !== messageData.type &&\n requestAnimationFrame &&\n // including check for jasmine because had trouble getting spy to work in unit test using requestAnimationFrame\n !window.jasmine\n ) {\n log(messageData.id, 'Requesting animation frame')\n requestAnimationFrame(func)\n } else {\n func()\n }\n }\n\n function trigger(calleeMsg, msg, iframe, id, noResponseWarning) {\n function postMessageToIFrame() {\n var target = settings[id] && settings[id].targetOrigin\n log(\n id,\n '[' +\n calleeMsg +\n '] Sending msg to iframe[' +\n id +\n '] (' +\n msg +\n ') targetOrigin: ' +\n target\n )\n iframe.contentWindow.postMessage(msgId + msg, target)\n }\n\n function iFrameNotFound() {\n warn(id, '[' + calleeMsg + '] IFrame(' + id + ') not found')\n }\n\n function chkAndSend() {\n if (\n iframe &&\n 'contentWindow' in iframe &&\n null !== iframe.contentWindow\n ) {\n // Null test for PhantomJS\n postMessageToIFrame()\n } else {\n iFrameNotFound()\n }\n }\n\n function warnOnNoResponse() {\n function warning() {\n if (settings[id] && !settings[id].loaded && !errorShown) {\n errorShown = true\n warn(\n id,\n 'IFrame has not responded within ' +\n settings[id].warningTimeout / 1000 +\n ' 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.'\n )\n }\n }\n\n if (\n !!noResponseWarning &&\n settings[id] &&\n !!settings[id].warningTimeout\n ) {\n settings[id].msgTimeout = setTimeout(\n warning,\n settings[id].warningTimeout\n )\n }\n }\n\n var errorShown = false\n\n id = id || iframe.id\n\n if (settings[id]) {\n chkAndSend()\n warnOnNoResponse()\n }\n }\n\n function createOutgoingMsg(iframeId) {\n return (\n iframeId +\n ':' +\n settings[iframeId].bodyMarginV1 +\n ':' +\n settings[iframeId].sizeWidth +\n ':' +\n settings[iframeId].log +\n ':' +\n settings[iframeId].interval +\n ':' +\n settings[iframeId].enablePublicMethods +\n ':' +\n settings[iframeId].autoResize +\n ':' +\n settings[iframeId].bodyMargin +\n ':' +\n settings[iframeId].heightCalculationMethod +\n ':' +\n settings[iframeId].bodyBackground +\n ':' +\n settings[iframeId].bodyPadding +\n ':' +\n settings[iframeId].tolerance +\n ':' +\n settings[iframeId].inPageLinks +\n ':' +\n settings[iframeId].resizeFrom +\n ':' +\n settings[iframeId].widthCalculationMethod +\n ':' +\n settings[iframeId].mouseEvents\n )\n }\n\n function isNumber(value) {\n return typeof value === 'number'\n }\n\n function setupIFrame(iframe, options) {\n function setLimits() {\n function addStyle(style) {\n var styleValue = settings[iframeId][style]\n if (Infinity !== styleValue && 0 !== styleValue) {\n iframe.style[style] = isNumber(styleValue)\n ? styleValue + 'px'\n : styleValue\n log(iframeId, 'Set ' + style + ' = ' + iframe.style[style])\n }\n }\n\n function chkMinMax(dimension) {\n if (\n settings[iframeId]['min' + dimension] >\n settings[iframeId]['max' + dimension]\n ) {\n throw new Error(\n 'Value for min' +\n dimension +\n ' can not be greater than max' +\n dimension\n )\n }\n }\n\n chkMinMax('Height')\n chkMinMax('Width')\n\n addStyle('maxHeight')\n addStyle('minHeight')\n addStyle('maxWidth')\n addStyle('minWidth')\n }\n\n function newId() {\n var id = (options && options.id) || defaults.id + count++\n if (null !== document.getElementById(id)) {\n id += count++\n }\n return id\n }\n\n function ensureHasId(iframeId) {\n if (typeof iframeId !== 'string') {\n throw new TypeError('Invaild id for iFrame. Expected String')\n }\n\n if ('' === iframeId) {\n // eslint-disable-next-line no-multi-assign\n iframe.id = iframeId = newId()\n logEnabled = (options || {}).log\n log(\n iframeId,\n 'Added missing iframe ID: ' + iframeId + ' (' + iframe.src + ')'\n )\n }\n\n return iframeId\n }\n\n function setScrolling() {\n log(\n iframeId,\n 'IFrame scrolling ' +\n (settings[iframeId] && settings[iframeId].scrolling\n ? 'enabled'\n : 'disabled') +\n ' for ' +\n iframeId\n )\n iframe.style.overflow =\n false === (settings[iframeId] && settings[iframeId].scrolling)\n ? 'hidden'\n : 'auto'\n switch (settings[iframeId] && settings[iframeId].scrolling) {\n case 'omit': {\n break\n }\n\n case true: {\n iframe.scrolling = 'yes'\n break\n }\n\n case false: {\n iframe.scrolling = 'no'\n break\n }\n\n default: {\n iframe.scrolling = settings[iframeId]\n ? settings[iframeId].scrolling\n : 'no'\n }\n }\n }\n\n // The V1 iFrame script expects an int, where as in V2 expects a CSS\n // string value such as '1px 3em', so if we have an int for V2, set V1=V2\n // and then convert V2 to a string PX value.\n function setupBodyMarginValues() {\n if (\n 'number' ===\n typeof (settings[iframeId] && settings[iframeId].bodyMargin) ||\n '0' === (settings[iframeId] && settings[iframeId].bodyMargin)\n ) {\n settings[iframeId].bodyMarginV1 = settings[iframeId].bodyMargin\n settings[iframeId].bodyMargin =\n '' + settings[iframeId].bodyMargin + 'px'\n }\n }\n\n function checkReset() {\n // Reduce scope of firstRun to function, because IE8's JS execution\n // context stack is borked and this value gets externally\n // changed midway through running this function!!!\n var firstRun = settings[iframeId] && settings[iframeId].firstRun,\n resetRequertMethod =\n settings[iframeId] &&\n settings[iframeId].heightCalculationMethod in resetRequiredMethods\n\n if (!firstRun && resetRequertMethod) {\n resetIFrame({ iframe: iframe, height: 0, width: 0, type: 'init' })\n }\n }\n\n function setupIFrameObject() {\n if (settings[iframeId]) {\n settings[iframeId].iframe.iFrameResizer = {\n close: closeIFrame.bind(null, settings[iframeId].iframe),\n\n removeListeners: removeIframeListeners.bind(\n null,\n settings[iframeId].iframe\n ),\n\n resize: trigger.bind(\n null,\n 'Window resize',\n 'resize',\n settings[iframeId].iframe\n ),\n\n moveToAnchor: function (anchor) {\n trigger(\n 'Move to anchor',\n 'moveToAnchor:' + anchor,\n settings[iframeId].iframe,\n iframeId\n )\n },\n\n sendMessage: function (message) {\n message = JSON.stringify(message)\n trigger(\n 'Send Message',\n 'message:' + message,\n settings[iframeId].iframe,\n iframeId\n )\n }\n }\n }\n }\n\n // We have to call trigger twice, as we can not be sure if all\n // iframes have completed loading when this code runs. The\n // event listener also catches the page changing in the iFrame.\n function init(msg) {\n function iFrameLoaded() {\n trigger('iFrame.onload', msg, iframe, undefined, true)\n checkReset()\n }\n\n function createDestroyObserver(MutationObserver) {\n if (!iframe.parentNode) {\n return\n }\n\n var destroyObserver = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array\n removedNodes.forEach(function (removedNode) {\n if (removedNode === iframe) {\n closeIFrame(iframe)\n }\n })\n })\n })\n destroyObserver.observe(iframe.parentNode, {\n childList: true\n })\n }\n\n var MutationObserver = getMutationObserver()\n if (MutationObserver) {\n createDestroyObserver(MutationObserver)\n }\n\n addEventListener(iframe, 'load', iFrameLoaded)\n trigger('init', msg, iframe, undefined, true)\n }\n\n function checkOptions(options) {\n if ('object' !== typeof options) {\n throw new TypeError('Options is not an object')\n }\n }\n\n function copyOptions(options) {\n // eslint-disable-next-line no-restricted-syntax\n for (var option in defaults) {\n if (Object.prototype.hasOwnProperty.call(defaults, option)) {\n settings[iframeId][option] = Object.prototype.hasOwnProperty.call(\n options,\n option\n )\n ? options[option]\n : defaults[option]\n }\n }\n }\n\n function getTargetOrigin(remoteHost) {\n return '' === remoteHost ||\n null !== remoteHost.match(/^(about:blank|javascript:|file:\\/\\/)/)\n ? '*'\n : remoteHost\n }\n\n function depricate(key) {\n var splitName = key.split('Callback')\n\n if (splitName.length === 2) {\n var name =\n 'on' + splitName[0].charAt(0).toUpperCase() + splitName[0].slice(1)\n this[name] = this[key]\n delete this[key]\n warn(\n iframeId,\n \"Deprecated: '\" +\n key +\n \"' has been renamed '\" +\n name +\n \"'. The old method will be removed in the next major version.\"\n )\n }\n }\n\n function processOptions(options) {\n options = options || {}\n\n settings[iframeId] = Object.create(null) // Protect against prototype attacks\n settings[iframeId].iframe = iframe\n settings[iframeId].firstRun = true\n settings[iframeId].remoteHost =\n iframe.src && iframe.src.split('/').slice(0, 3).join('/')\n\n checkOptions(options)\n Object.keys(options).forEach(depricate, options)\n copyOptions(options)\n\n if (settings[iframeId]) {\n settings[iframeId].targetOrigin =\n true === settings[iframeId].checkOrigin\n ? getTargetOrigin(settings[iframeId].remoteHost)\n : '*'\n }\n }\n\n function beenHere() {\n return iframeId in settings && 'iFrameResizer' in iframe\n }\n\n var iframeId = ensureHasId(iframe.id)\n\n if (beenHere()) {\n warn(iframeId, 'Ignored iFrame, already setup.')\n } else {\n processOptions(options)\n setScrolling()\n setLimits()\n setupBodyMarginValues()\n init(createOutgoingMsg(iframeId))\n setupIFrameObject()\n }\n }\n\n function debouce(fn, time) {\n if (null === timer) {\n timer = setTimeout(function () {\n timer = null\n fn()\n }, time)\n }\n }\n\n var frameTimer = {}\n function debounceFrameEvents(fn, time, frameId) {\n if (!frameTimer[frameId]) {\n frameTimer[frameId] = setTimeout(function () {\n frameTimer[frameId] = null\n fn()\n }, time)\n }\n }\n\n // Not testable in PhantomJS\n /* istanbul ignore next */\n\n function fixHiddenIFrames() {\n function checkIFrames() {\n function checkIFrame(settingId) {\n function chkDimension(dimension) {\n return (\n '0px' ===\n (settings[settingId] && settings[settingId].iframe.style[dimension])\n )\n }\n\n function isVisible(el) {\n return null !== el.offsetParent\n }\n\n if (\n settings[settingId] &&\n isVisible(settings[settingId].iframe) &&\n (chkDimension('height') || chkDimension('width'))\n ) {\n trigger(\n 'Visibility change',\n 'resize',\n settings[settingId].iframe,\n settingId\n )\n }\n }\n\n Object.keys(settings).forEach(function (key) {\n checkIFrame(key)\n })\n }\n\n function mutationObserved(mutations) {\n log(\n 'window',\n 'Mutation observed: ' + mutations[0].target + ' ' + mutations[0].type\n )\n debouce(checkIFrames, 16)\n }\n\n function createMutationObserver() {\n var target = document.querySelector('body'),\n config = {\n attributes: true,\n attributeOldValue: false,\n characterData: true,\n characterDataOldValue: false,\n childList: true,\n subtree: true\n },\n observer = new MutationObserver(mutationObserved)\n\n observer.observe(target, config)\n }\n\n var MutationObserver = getMutationObserver()\n if (MutationObserver) {\n createMutationObserver()\n }\n }\n\n function resizeIFrames(event) {\n function resize() {\n sendTriggerMsg('Window ' + event, 'resize')\n }\n\n log('window', 'Trigger event: ' + event)\n debouce(resize, 16)\n }\n\n // Not testable in PhantomJS\n /* istanbul ignore next */\n function tabVisible() {\n function resize() {\n sendTriggerMsg('Tab Visible', 'resize')\n }\n\n if ('hidden' !== document.visibilityState) {\n log('document', 'Trigger event: Visibility change')\n debouce(resize, 16)\n }\n }\n\n function sendTriggerMsg(eventName, event) {\n function isIFrameResizeEnabled(iframeId) {\n return (\n settings[iframeId] &&\n 'parent' === settings[iframeId].resizeFrom &&\n settings[iframeId].autoResize &&\n !settings[iframeId].firstRun\n )\n }\n\n Object.keys(settings).forEach(function (iframeId) {\n if (isIFrameResizeEnabled(iframeId)) {\n trigger(eventName, event, settings[iframeId].iframe, iframeId)\n }\n })\n }\n\n function setupEventListeners() {\n addEventListener(window, 'message', iFrameListener)\n\n addEventListener(window, 'resize', function () {\n resizeIFrames('resize')\n })\n\n addEventListener(document, 'visibilitychange', tabVisible)\n\n addEventListener(document, '-webkit-visibilitychange', tabVisible)\n }\n\n function factory() {\n function init(options, element) {\n function chkType() {\n if (!element.tagName) {\n throw new TypeError('Object is not a valid DOM element')\n } else if ('IFRAME' !== element.tagName.toUpperCase()) {\n throw new TypeError(\n 'Expected <IFRAME> tag, found <' + element.tagName + '>'\n )\n }\n }\n\n if (element) {\n chkType()\n setupIFrame(element, options)\n iFrames.push(element)\n }\n }\n\n function warnDeprecatedOptions(options) {\n if (options && options.enablePublicMethods) {\n warn(\n 'enablePublicMethods option has been removed, public methods are now always available in the iFrame'\n )\n }\n }\n\n var iFrames\n\n setupRequestAnimationFrame()\n setupEventListeners()\n\n return function iFrameResizeF(options, target) {\n iFrames = [] // Only return iFrames past in on this call\n\n warnDeprecatedOptions(options)\n\n switch (typeof target) {\n case 'undefined':\n case 'string': {\n Array.prototype.forEach.call(\n document.querySelectorAll(target || 'iframe'),\n init.bind(undefined, options)\n )\n break\n }\n\n case 'object': {\n init(options, target)\n break\n }\n\n default: {\n throw new TypeError('Unexpected data type (' + typeof target + ')')\n }\n }\n\n return iFrames\n }\n }\n\n function createJQueryPublicMethod($) {\n if (!$.fn) {\n info('', 'Unable to bind to jQuery, it is not fully loaded.')\n } else if (!$.fn.iFrameResize) {\n $.fn.iFrameResize = function $iFrameResizeF(options) {\n function init(index, element) {\n setupIFrame(element, options)\n }\n\n return this.filter('iframe').each(init).end()\n }\n }\n }\n\n if (window.jQuery !== undefined) {\n createJQueryPublicMethod(window.jQuery)\n }\n\n if (typeof define === 'function' && define.amd) {\n define([], factory)\n } else if (typeof module === 'object' && typeof module.exports === 'object') {\n // Node for browserfy\n module.exports = factory()\n }\n window.iFrameResize = window.iFrameResize || factory()\n})()\n","export const MessageEventType = {\n card: {\n ready: 'justifi.card.ready',\n tokenize: 'justifi.card.tokenize',\n validate: 'justifi.card.validate',\n resize: 'justifi.card.resize',\n styleOverrides: 'justifi.card.styleOverrides',\n },\n bankAccount: {\n ready: 'justifi.bankAccount.ready',\n tokenize: 'justifi.bankAccount.tokenize',\n validate: 'justifi.bankAccount.validate',\n resize: 'justifi.bankAccount.resize',\n styleOverrides: 'justifi.bankAccount.styleOverrides',\n },\n};\n","import { Theme } from './theme';\n\nconst getComputedTheme = () => {\n const computedStyles = getComputedStyle(document.body);\n\n const computedTheme: Theme = {\n loadGoogleFont: computedStyles.getPropertyValue('--jfi-load-google-font'),\n layout: {\n fontFamily: computedStyles.getPropertyValue('--jfi-layout-font-family'),\n padding: computedStyles.getPropertyValue('--jfi-layout-padding'),\n formControlSpacingHorizontal: computedStyles.getPropertyValue('--jfi-layout-form-control-spacing-x'),\n formControlSpacingVertical: computedStyles.getPropertyValue('--jfi-layout-form-control-spacing-y'),\n },\n formControl: {\n backgroundColor: computedStyles.getPropertyValue('--jfi-form-control-background-color'),\n borderColor: computedStyles.getPropertyValue('--jfi-form-control-border-color'),\n borderColorFocus: computedStyles.getPropertyValue('--jfi-form-control-border-color-focus'),\n borderColorError: computedStyles.getPropertyValue('--jfi-form-control-border-color-error'),\n borderWidth: computedStyles.getPropertyValue('--jfi-form-control-border-width'),\n borderBottomWidth: computedStyles.getPropertyValue('--jfi-form-control-border-bottom-width'),\n borderLeftWidth: computedStyles.getPropertyValue('--jfi-form-control-border-left-width'),\n borderRightWidth: computedStyles.getPropertyValue('--jfi-form-control-border-right-width'),\n borderTopWidth: computedStyles.getPropertyValue('--jfi-form-control-border-top-width'),\n borderRadius: computedStyles.getPropertyValue('--jfi-form-control-border-radius'),\n borderStyle: computedStyles.getPropertyValue('--jfi-form-control-border-style'),\n boxShadow: computedStyles.getPropertyValue('--jfi-form-control-box-shadow'),\n boxShadowError: computedStyles.getPropertyValue('--jfi-form-control-box-shadow-error'),\n boxShadowErrorFocus: computedStyles.getPropertyValue('--jfi-form-control-box-shadow-error-focus'),\n boxShadowFocus: computedStyles.getPropertyValue('--jfi-form-control-box-shadow-focus'),\n color: computedStyles.getPropertyValue('--jfi-form-control-color'),\n colorFocus: computedStyles.getPropertyValue('--jfi-form-control-color-focus'),\n fontSize: computedStyles.getPropertyValue('--jfi-form-control-font-size'),\n fontWeight: computedStyles.getPropertyValue('--jfi-form-control-font-weight'),\n lineHeight: computedStyles.getPropertyValue('--jfi-form-control-line-height'),\n margin: computedStyles.getPropertyValue('--jfi-form-control-margin'),\n padding: computedStyles.getPropertyValue('--jfi-form-control-padding'),\n },\n formLabel: {\n color: computedStyles.getPropertyValue('--jfi-form-label-color'),\n fontFamily: computedStyles.getPropertyValue('--jfi-form-label-font-family'),\n fontSize: computedStyles.getPropertyValue('--jfi-form-label-font-size'),\n fontWeight: computedStyles.getPropertyValue('--jfi-form-label-font-weight'),\n margin: computedStyles.getPropertyValue('--jfi-form-label-margin'),\n },\n errorMessage: {\n color: computedStyles.getPropertyValue('--jfi-error-message-color'),\n margin: computedStyles.getPropertyValue('--jfi-error-message-margin'),\n fontSize: computedStyles.getPropertyValue('--jfi-error-message-font-size'),\n },\n };\n\n return computedTheme;\n};\n\nexport default getComputedTheme;\n",":host {\n display: block;\n}\n\njustifi-payment-method-form iframe {\n border: none;\n width: 100%;\n}\n\niframe {\n width: 1px;\n min-width: 100%;\n}\n","import {\n Component,\n Event,\n Host,\n Prop,\n h,\n EventEmitter,\n Method,\n} from '@stencil/core';\nimport iFrameResize from 'iframe-resizer/js/iframeResizer';\nimport { MessageEventType } from './message-event-types';\nimport { Theme } from './theme';\nimport packageJson from '../../../package.json';\nimport getComputedTheme from './get-computed-theme';\nimport { CreatePaymentMethodResponse } from './payment-method-responses';\nimport { config } from '../../../config';\n\n@Component({\n tag: 'justifi-payment-method-form',\n styleUrl: 'payment-method-form.css',\n shadow: false,\n})\nexport class PaymentMethodForm {\n @Prop() paymentMethodFormType: 'card' | 'bankAccount';\n @Prop({\n mutable: true,\n })\n paymentMethodFormValidationMode:\n | 'onChange'\n | 'onBlur'\n | 'onSubmit'\n | 'onTouched'\n | 'all';\n @Prop() iframeOrigin?: string;\n @Prop() singleLine: boolean;\n @Event({ bubbles: true }) paymentMethodFormReady: EventEmitter;\n @Event({ bubbles: true }) paymentMethodFormTokenize: EventEmitter<{\n data: any;\n }>;\n\n private computedTheme: Theme = getComputedTheme();\n\n iframeElement!: HTMLIFrameElement;\n\n connectedCallback() {\n window.addEventListener('message', this.dispatchMessageEvent.bind(this));\n }\n\n disconnectedCallback() {\n window.removeEventListener('message', this.dispatchMessageEvent.bind(this));\n }\n\n sendStyleOverrides() {\n if (this.computedTheme) {\n this.postMessage(\n MessageEventType[this.paymentMethodFormType].styleOverrides,\n { styleOverrides: this.computedTheme },\n );\n }\n }\n\n private dispatchMessageEvent(messageEvent: MessageEvent) {\n const messagePayload = messageEvent.data;\n const messageType = messagePayload.eventType;\n const messageData = messagePayload.data;\n\n if (messageType === MessageEventType[this.paymentMethodFormType].ready) {\n this.paymentMethodFormReady.emit(messageData);\n }\n }\n\n private postMessage(eventType: string, payload?: any) {\n this.iframeElement?.contentWindow?.postMessage({ eventType: eventType, ...payload }, config.iframeOrigin || '*');\n }\n\n @Method()\n async resize(): Promise<any> {\n this.postMessage(MessageEventType[this.paymentMethodFormType].resize);\n }\n\n private async postMessageWithResponseListener(\n eventType: string,\n payload?: any,\n ): Promise<any> {\n return new Promise(resolve => {\n const responseListener = (event: MessageEvent) => {\n if (event.data.eventType !== eventType) return;\n window.removeEventListener('message', responseListener);\n resolve(event.data.data);\n };\n window.addEventListener('message', responseListener);\n this.postMessage(eventType, payload);\n });\n }\n\n @Method()\n async tokenize(\n clientId: string,\n paymentMethodMetadata: any,\n account?: string,\n ): Promise<CreatePaymentMethodResponse> {\n const eventType = MessageEventType[this.paymentMethodFormType].tokenize;\n const payload = {\n clientId: clientId,\n componentVersion: packageJson.version,\n paymentMethodMetadata: paymentMethodMetadata,\n account: account,\n };\n\n return this.postMessageWithResponseListener(eventType, payload);\n }\n\n @Method()\n async validate(): Promise<any> {\n return this.postMessageWithResponseListener(\n MessageEventType[this.paymentMethodFormType].validate,\n );\n }\n\n private composeQueryParams(values: string[]) {\n const queryParams = values.map(value => {\n if (value === values[0]) {\n return (value = `?${value}`);\n } else {\n return (value = `&${value}`);\n }\n });\n return queryParams.join('');\n }\n\n private getIframeSrc() {\n const iframeOrigin = config.iframeOrigin;\n\n let iframeSrc = `${iframeOrigin}/${this.paymentMethodFormType}`;\n let paramsList = [];\n if (this.paymentMethodFormValidationMode) {\n paramsList.push(`validationMode=${this.paymentMethodFormValidationMode}`);\n }\n if (this.singleLine) {\n paramsList.push(`singleLine=${this.singleLine}`);\n }\n\n return iframeSrc.concat(this.composeQueryParams(paramsList));\n }\n\n render() {\n return (\n <Host>\n <iframe\n id={`justifi-payment-method-form-${this.paymentMethodFormType}`}\n src={this.getIframeSrc()}\n ref={el => {\n this.iframeElement = el as HTMLIFrameElement;\n }}\n onLoad={() => {\n iFrameResize(this.iframeElement);\n this.sendStyleOverrides();\n }}\n ></iframe>\n </Host>\n );\n }\n}\n"],"mappings":"qUAWC,SAAWA,GACV,UAAWC,SAAW,YAAa,OAEnC,IAAIC,EAAQ,EACVC,EAAa,MACbC,EAAqB,MACrBC,EAAY,UACZC,EAAeD,EAAUE,OACzBC,EAAQ,g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p-b157f6ae.js";import{p as h}from"./p-0d5d02d7.js";import"./p-76983a7e.js";import{c as r}from"./p-9b6dcac5.js";const o=":host{display:block}";const d=class{constructor(s){t(this,s);this.rowClicked=e(this,"subaccount-row-clicked",7);this.handleClickPrevious=t=>{const e=Object.assign({},this.params);delete e.after_cursor;this.params=Object.assign(Object.assign({},e),{before_cursor:t})};this.handleClickNext=t=>{const e=Object.assign({},this.params);delete e.before_cursor;this.params=Object.assign(Object.assign({},e),{after_cursor:t})};this.accountId=undefined;this.authToken=undefined;this.subaccounts=[];this.loading=true;this.errorMessage=undefined;this.paging=h;this.params=undefined}updateOnPropChange(){this.fetchData()}connectedCallback(){this.fetchData()}async fetchData(){if(!this.accountId||!this.authToken){this.errorMessage="Can not fetch any data without an AccountID and an AuthToken";this.loading=false;return}this.loading=true;const t=c(this.authToken,r.privateApiOrigin);const e=`account/${this.accountId}/seller_accounts`;const s=await t.get(e,this.params);if(!s.error){this.paging=Object.assign(Object.assign({},this.paging),s.page_info);const t=s===null||s===void 0?void 0:s.data.map((t=>new i(t)));this.subaccounts=t}else{this.errorMessage=typeof s.error==="string"?s.error:s.error.message}this.loading=false}render(){return s(a,null,s("justifi-table",{rowClickHandler:t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e){return}this.rowClicked.emit(this.subaccounts.find((t=>t.id===e)))},entityId:this.subaccounts.map((t=>t.id)),columnData:[["Created On","The date and time each sub account was created"],["Name","The name provided for each sub account"],["Account\t","The unique live or test account ID for each sub account"],["Card Rate\t","The rate that determines the fees charged per payment, when paid by card"],["ACH Rate\t","The rate that determines the fees charged per payment, when paid by eCheck"],["Status","The onboarding status of each sub account"]],rowData:this.subaccounts.map((t=>[{type:"head",value:`\n <div>${t.dateString}</div>\n <div>${t.timeString}</div>\n `},t.name,t.id,t.cardRate,t.achRate,{type:"inner",value:n(t.status)}])),loading:this.loading,"error-message":this.errorMessage,params:this.params,paging:Object.assign(Object.assign({},this.paging),{handleClickNext:this.handleClickNext,handleClickPrevious:this.handleClickPrevious})}))}static get watchers(){return{accountId:["updateOnPropChange"],authToken:["updateOnPropChange"],params:["updateOnPropChange"]}}};d.style=o;export{d as justifi_subaccounts_list};
|
|
2
|
-
//# sourceMappingURL=p-abc05a34.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["subaccountsListCss","SubaccountsList","this","handleClickPrevious","beforeCursor","newParams","Object","assign","params","after_cursor","before_cursor","handleClickNext","afterCursor","pagingDefaults","updateOnPropChange","fetchData","connectedCallback","accountId","authToken","errorMessage","loading","api","Api","config","privateApiOrigin","endpoint","response","get","error","paging","page_info","data","map","dataItem","SubAccount","subaccounts","message","render","h","Host","rowClickHandler","e","clickSubAccountId","target","closest","dataset","rowEntityId","rowClicked","emit","find","subaccount","id","entityId","columnData","rowData","type","value","dateString","timeString","name","cardRate","achRate","MapSubAccountStatusToBadge","status"],"sources":["src/components/subaccounts-list/subaccounts-list.css?tag=justifi-subaccounts-list&encapsulation=shadow","src/components/subaccounts-list/subaccounts-list.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Host, h, Prop, State, Event, EventEmitter, Watch } from '@stencil/core';\nimport { SubAccount } from '../../api/SubAccount';\nimport { MapSubAccountStatusToBadge } from '../../utils/utils';\nimport { Api, IApiResponseCollection, PagingInfo, pagingDefaults } from '../../api';\nimport { config } from '../../../config';\n\n@Component({\n tag: 'justifi-subaccounts-list',\n styleUrl: 'subaccounts-list.css',\n shadow: true,\n})\nexport class SubaccountsList {\n @Prop() accountId: string;\n @Prop() authToken: string;\n @State() subaccounts: SubAccount[] = [];\n @State() loading: boolean = true;\n @State() errorMessage: string;\n @State() paging: PagingInfo = pagingDefaults;\n @State() params: any;\n @Event({\n eventName: 'subaccount-row-clicked',\n bubbles: true,\n }) rowClicked: EventEmitter<SubAccount>;\n\n\n @Watch('accountId')\n @Watch('authToken')\n @Watch('params')\n updateOnPropChange() {\n this.fetchData();\n }\n\n connectedCallback() {\n this.fetchData();\n }\n\n handleClickPrevious = (beforeCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.after_cursor;\n this.params = ({ ...newParams, before_cursor: beforeCursor });\n };\n\n handleClickNext = (afterCursor: string) => {\n const newParams: any = { ...this.params };\n delete newParams.before_cursor;\n this.params = ({ ...newParams, after_cursor: afterCursor });\n };\n\n async fetchData(): Promise<void> {\n if (!this.accountId || !this.authToken) {\n this.errorMessage = \"Can not fetch any data without an AccountID and an AuthToken\";\n this.loading = false;\n return;\n }\n this.loading = true;\n const api = Api(this.authToken, config.privateApiOrigin);\n const endpoint = `account/${this.accountId}/seller_accounts`;\n\n\n const response: IApiResponseCollection<SubAccount[]> = await api.get(endpoint, this.params);\n if (!response.error) {\n this.paging = {\n ...this.paging,\n ...response.page_info\n }\n const data = response?.data.map(dataItem => new SubAccount(dataItem));\n this.subaccounts = data;\n } else {\n this.errorMessage = typeof response.error === 'string' ? response.error : response.error.message;\n }\n this.loading = false;\n }\n\n render() {\n return (\n <Host>\n <justifi-table\n rowClickHandler={e => {\n const clickSubAccountId = e.target.closest('tr').dataset.rowEntityId;\n if (!clickSubAccountId) { return }\n this.rowClicked.emit(this.subaccounts.find((subaccount) => subaccount.id === clickSubAccountId));\n }}\n entityId={this.subaccounts.map((subaccount) => subaccount.id)}\n columnData={[\n ['Created On', 'The date and time each sub account was created'],\n ['Name', 'The name provided for each sub account'],\n ['Account\t', 'The unique live or test account ID for each sub account'],\n ['Card Rate\t', 'The rate that determines the fees charged per payment, when paid by card'],\n ['ACH Rate\t', 'The rate that determines the fees charged per payment, when paid by eCheck'],\n ['Status', 'The onboarding status of each sub account']\n ]}\n rowData={\n this.subaccounts.map((subaccount) => (\n [\n {\n type: 'head',\n value: `\n <div>${subaccount.dateString}</div>\n <div>${subaccount.timeString}</div>\n `,\n },\n subaccount.name,\n subaccount.id,\n subaccount.cardRate,\n subaccount.achRate,\n {\n type: 'inner',\n value: MapSubAccountStatusToBadge(subaccount.status)\n }\n ]\n ))\n }\n loading={this.loading}\n error-message={this.errorMessage}\n params={this.params}\n paging={{\n ...this.paging,\n handleClickNext: this.handleClickNext,\n handleClickPrevious: this.handleClickPrevious\n }}\n />\n </Host>\n );\n }\n}\n"],"mappings":"qQAAA,MAAMA,EAAqB,uB,MCWdC,EAAe,M,4EAyB1BC,KAAAC,oBAAuBC,IACrB,MAAMC,EAASC,OAAAC,OAAA,GAAaL,KAAKM,eAC1BH,EAAUI,aACjBP,KAAKM,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEK,cAAeN,GAAe,EAG/DF,KAAAS,gBAAmBC,IACjB,MAAMP,EAASC,OAAAC,OAAA,GAAaL,KAAKM,eAC1BH,EAAUK,cACjBR,KAAKM,OAAMF,OAAAC,OAAAD,OAAAC,OAAA,GAASF,GAAS,CAAEI,aAAcG,GAAc,E,mEA/BxB,G,aACT,K,wCAEEC,E,sBAW9B,kBAAAC,GACEZ,KAAKa,W,CAGP,iBAAAC,GACEd,KAAKa,W,CAeP,eAAMA,GACJ,IAAKb,KAAKe,YAAcf,KAAKgB,UAAW,CACtChB,KAAKiB,aAAe,+DACpBjB,KAAKkB,QAAU,MACf,M,CAEFlB,KAAKkB,QAAU,KACf,MAAMC,EAAMC,EAAIpB,KAAKgB,UAAWK,EAAOC,kBACvC,MAAMC,EAAW,WAAWvB,KAAKe,4BAGjC,MAAMS,QAAuDL,EAAIM,IAAIF,EAAUvB,KAAKM,QACpF,IAAKkB,EAASE,MAAO,CACnB1B,KAAK2B,OAAMvB,OAAAC,OAAAD,OAAAC,OAAA,GACNL,KAAK2B,QACLH,EAASI,WAEd,MAAMC,EAAOL,IAAQ,MAARA,SAAQ,SAARA,EAAUK,KAAKC,KAAIC,GAAY,IAAIC,EAAWD,KAC3D/B,KAAKiC,YAAcJ,C,KACd,CACL7B,KAAKiB,oBAAsBO,EAASE,QAAU,SAAWF,EAASE,MAAQF,EAASE,MAAMQ,O,CAE3FlC,KAAKkB,QAAU,K,CAGjB,MAAAiB,GAC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