@saasquatch/mint-components 1.8.0-98 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-b2b3d9fb.js → GenericTableView-80d7642e.js} +1 -1
- package/dist/cjs/{ShadowViewAddon-119ea8d4.js → ShadowViewAddon-7b5c40eb.js} +66 -34
- package/dist/cjs/{email-registration-view-5924a3c7.js → email-registration-view-a6b6430e.js} +1 -1
- package/dist/cjs/{global-f28745b3.js → global-b277b460.js} +3 -3
- package/dist/cjs/{index-78c52836.js → index-b0129cd6.js} +0 -18
- package/dist/cjs/{index.module-9243c470.js → index.module-76379dd7.js} +582 -16
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-33ebaf57.js → luxon-a4661470.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mockRewardData-08b362bc.js → mockRewardData-8e760564.js} +8 -7
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-731799e5.js → re-render-dbeba624.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-b6f5e3f6.js → sqm-asset-card-view-a0e33f21.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +1354 -1779
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +66 -66
- package/dist/cjs/{sqm-close-button-view-a41308c2.js → sqm-close-button-view-fd6e8f60.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-26aeebca.js → sqm-invoice-table-view-035d5aed.js} +74 -11
- package/dist/cjs/{sqm-leaderboard-rank-view-5c12ea2a.js → sqm-leaderboard-rank-view-5a3d4a88.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-8ccfc185.js → sqm-logout-current-user-view-c9f18d96.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4ebb86ac.js → sqm-navigation-sidebar-item-view-a3d8eedf.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-1bac8b89.js → sqm-navigation-sidebar-view-dd53f947.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-container-view-e565003b.js → sqm-portal-container-view-5fb2ad49.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-423633a1.js → sqm-portal-email-verification-view-05fad72d.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +14 -11
- package/dist/cjs/{sqm-portal-forgot-password-view-8d0923e1.js → sqm-portal-forgot-password-view-ca5f6db9.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-a6fc5fdd.js → sqm-portal-profile-view-e28f61d6.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-reset-password-view-d639e312.js → sqm-portal-reset-password-view-07a13210.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-verify-email-view-1e6255e9.js → sqm-portal-verify-email-view-ce552bbc.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +14 -16
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +21 -21
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +107 -122
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-text-span-view-2e945b0c.js → sqm-text-span-view-e1cd9bd3.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-7c2013c9.js → stencil-hooks.module-faabb426.js} +1 -1
- package/dist/cjs/{useChildElements-3caf3e22.js → useChildElements-ad37ecbf.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-fb690bc3.js → useInstantAccessRegistration-01509697.js} +4 -4
- package/dist/cjs/{useReferralTable-6a7ad97b.js → useReferralTable-6cbd3b88.js} +11 -13
- package/dist/cjs/{useRegistrationFormState-98b2818e.js → useRegistrationFormState-1d403dd8.js} +3 -3
- package/dist/cjs/{utilities-0541106d.js → utilities-6d5addc7.js} +2 -2
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +11 -11
- package/dist/collection/components/sqm-invoice-table/InvoiceTableCell.stories.js +2 -2
- package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -2
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +0 -1
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +4 -4
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +0 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -3
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -1
- package/dist/collection/components/sqm-invoice-table/mockInvoiceData.js +4 -4
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +2 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +61 -16
- package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +5 -4
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -1
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +1 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +1 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -0
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -1
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +31 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +10 -3
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +4 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -3
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -5
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +6 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +14 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +47 -7
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +200 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +259 -235
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -237
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +8 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +127 -251
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +15 -19
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +187 -154
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +33 -18
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +32 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +42 -16
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +4 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +961 -880
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +40 -88
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +46 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +476 -171
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +19 -27
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +1 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +7 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +154 -113
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -12
- package/dist/collection/components/tax-and-cash/utils.js +18 -1
- package/dist/collection/stories/PortalTemplates.stories.js +5 -0
- package/dist/esm/{GenericTableView-a2b0ba19.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm/{ShadowViewAddon-8ab7e840.js → ShadowViewAddon-d9424229.js} +66 -34
- package/dist/esm/{email-registration-view-f48adc22.js → email-registration-view-4a4202e7.js} +1 -1
- package/dist/esm/{global-2d34c7d9.js → global-35b8d91c.js} +3 -3
- package/dist/esm/{index-f16aa635.js → index-17b4da69.js} +1 -18
- package/dist/esm/{index.module-a46df001.js → index.module-6242dccd.js} +563 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-01b10a1d.js → luxon-4706d11b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mockRewardData-e9fdc4fa.js → mockRewardData-6f03c9fb.js} +8 -7
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-22af3424.js → re-render-9542be16.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-24845a25.js → sqm-asset-card-view-9d93fbdd.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-banking-info-form_16.entry.js +1354 -1779
- package/dist/esm/sqm-big-stat_38.entry.js +66 -66
- package/dist/esm/{sqm-close-button-view-233e2434.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +4 -4
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-45e3b5c2.js → sqm-invoice-table-view-1115795f.js} +73 -12
- package/dist/esm/{sqm-leaderboard-rank-view-d704f03c.js → sqm-leaderboard-rank-view-10657658.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-8ae8f259.js → sqm-logout-current-user-view-2c6122cd.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-e06988b9.js → sqm-navigation-sidebar-item-view-058eba98.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-view-6f66acc9.js → sqm-navigation-sidebar-view-414bcb19.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +7 -7
- package/dist/esm/{sqm-portal-container-view-e42e3789.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-de885af1.js → sqm-portal-email-verification-view-251945de.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +14 -11
- package/dist/esm/{sqm-portal-forgot-password-view-c57e849c.js → sqm-portal-forgot-password-view-a764ad67.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-1ec985ec.js → sqm-portal-profile-view-0294c422.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +10 -10
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/sqm-portal-registration-form.entry.js +10 -10
- package/dist/esm/{sqm-portal-reset-password-view-e523c018.js → sqm-portal-reset-password-view-d3e726a9.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +10 -10
- package/dist/esm/{sqm-portal-verify-email-view-fb6875bb.js → sqm-portal-verify-email-view-283bf637.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +10 -10
- package/dist/esm/sqm-referral-table_11.entry.js +14 -16
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +5 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +21 -21
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +107 -122
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +6 -6
- package/dist/esm/{sqm-text-span-view-d776bd9c.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-aa42e74f.js → stencil-hooks.module-8032b139.js} +2 -2
- package/dist/esm/{useChildElements-b6d750df.js → useChildElements-92ae8069.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-ad474a64.js → useInstantAccessRegistration-8dca4f2a.js} +4 -4
- package/dist/esm/{useReferralTable-ae86bc4f.js → useReferralTable-e5d6476f.js} +11 -13
- package/dist/esm/{useRegistrationFormState-4d8fe860.js → useRegistrationFormState-0703f6b0.js} +3 -3
- package/dist/esm/{utilities-8d9fb379.js → utilities-94e1e2b4.js} +2 -2
- package/dist/esm-es5/{GenericTableView-a2b0ba19.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-d9424229.js +1 -0
- package/dist/esm-es5/{email-registration-view-f48adc22.js → email-registration-view-4a4202e7.js} +1 -1
- package/dist/esm-es5/{global-2d34c7d9.js → global-35b8d91c.js} +2 -2
- package/dist/esm-es5/{index-f16aa635.js → index-17b4da69.js} +1 -1
- package/dist/esm-es5/index.module-6242dccd.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-01b10a1d.js → luxon-4706d11b.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mockRewardData-6f03c9fb.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-22af3424.js → re-render-9542be16.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-24845a25.js → sqm-asset-card-view-9d93fbdd.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-233e2434.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-1115795f.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-10657658.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-8ae8f259.js → sqm-logout-current-user-view-2c6122cd.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-e06988b9.js → sqm-navigation-sidebar-item-view-058eba98.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-6f66acc9.js → sqm-navigation-sidebar-view-414bcb19.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-e42e3789.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-de885af1.js → sqm-portal-email-verification-view-251945de.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-c57e849c.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-1ec985ec.js → sqm-portal-profile-view-0294c422.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-e523c018.js → sqm-portal-reset-password-view-d3e726a9.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-fb6875bb.js → sqm-portal-verify-email-view-283bf637.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-d776bd9c.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-aa42e74f.js → stencil-hooks.module-8032b139.js} +2 -2
- package/dist/esm-es5/useChildElements-92ae8069.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-8dca4f2a.js +1 -0
- package/dist/esm-es5/{useReferralTable-ae86bc4f.js → useReferralTable-e5d6476f.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-0703f6b0.js +1 -0
- package/dist/esm-es5/{utilities-8d9fb379.js → utilities-94e1e2b4.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-cb6b695d.js → p-0076de9e.js} +1 -1
- package/dist/mint-components/{p-7a1fdfcc.js → p-0570c048.js} +1 -1
- package/dist/mint-components/{p-867e46a4.js → p-05a69cbe.js} +2 -2
- package/dist/mint-components/p-06cb48d2.system.entry.js +1 -0
- package/dist/mint-components/{p-12929f2d.entry.js → p-08a97a39.entry.js} +1 -1
- package/dist/mint-components/p-0a898ab1.js +1 -0
- package/dist/mint-components/p-0dede431.entry.js +1 -0
- package/dist/mint-components/p-166c69f2.system.entry.js +1 -0
- package/dist/mint-components/p-18c843e3.system.entry.js +1 -0
- package/dist/mint-components/p-1b22871f.system.entry.js +1 -0
- package/dist/mint-components/{p-8d37b2a1.js → p-2446212d.js} +2 -2
- package/dist/mint-components/p-24b8cd17.system.entry.js +1 -0
- package/dist/mint-components/{p-48c6cec0.entry.js → p-2ee988c7.entry.js} +10 -10
- package/dist/mint-components/{p-5fb5d99b.system.js → p-3036cf58.system.js} +1 -1
- package/dist/mint-components/{p-d7e09410.system.entry.js → p-32096f32.system.entry.js} +1 -1
- package/dist/mint-components/p-34d72151.js +1 -0
- package/dist/mint-components/p-3684cab6.js +1 -0
- package/dist/mint-components/p-37d97a22.system.js +1 -0
- package/dist/mint-components/p-38be1e51.system.entry.js +1 -0
- package/dist/mint-components/{p-ee74765c.entry.js → p-399d6f42.entry.js} +1 -1
- package/dist/mint-components/p-3da3974e.js +1 -0
- package/dist/mint-components/{p-1821e198.system.entry.js → p-3f75df7b.system.entry.js} +1 -1
- package/dist/mint-components/p-3f8d6a52.entry.js +1 -0
- package/dist/mint-components/p-409c030a.system.entry.js +1 -0
- package/dist/mint-components/{p-9e1850fb.js → p-4153fbb6.js} +1 -1
- package/dist/mint-components/p-44119827.system.js +1 -0
- package/dist/mint-components/{p-283c5cbc.js → p-46ef82ed.js} +1 -1
- package/dist/mint-components/p-491f2603.entry.js +1 -0
- package/dist/mint-components/p-4944f4c4.entry.js +1 -0
- package/dist/mint-components/p-4bdfee88.entry.js +1 -0
- package/dist/mint-components/{p-923f5b38.system.js → p-4ceba64c.system.js} +1 -1
- package/dist/mint-components/p-4d9744bf.js +1 -0
- package/dist/mint-components/{p-62697548.system.js → p-4f775e84.system.js} +1 -1
- package/dist/mint-components/{p-021207af.entry.js → p-53c5e69a.entry.js} +2 -2
- package/dist/mint-components/{p-a985672d.system.entry.js → p-5532c083.system.entry.js} +1 -1
- package/dist/mint-components/{p-73e3e768.entry.js → p-5935bae5.entry.js} +2 -2
- package/dist/mint-components/p-5b52e8fb.system.js +1 -0
- package/dist/mint-components/{p-b1bc8951.js → p-5d0c9424.js} +1 -1
- package/dist/mint-components/{p-9400590c.system.js → p-5e8996cd.system.js} +1 -1
- package/dist/mint-components/p-60d0d672.entry.js +152 -0
- package/dist/mint-components/{p-d1cde664.entry.js → p-6163a7a4.entry.js} +1 -1
- package/dist/mint-components/{p-a7ac3831.system.entry.js → p-61ad3dd4.system.entry.js} +1 -1
- package/dist/mint-components/{p-02b7a1a3.entry.js → p-61eb751c.entry.js} +1 -1
- package/dist/mint-components/p-639d3dd3.entry.js +1 -0
- package/dist/mint-components/{p-ea544e8b.system.js → p-6465d2e7.system.js} +1 -1
- package/dist/mint-components/p-64c3217a.js +1 -0
- package/dist/mint-components/p-65106298.js +1 -0
- package/dist/mint-components/{p-95e549a9.system.entry.js → p-6713ef50.system.entry.js} +1 -1
- package/dist/mint-components/p-67b91751.system.js +1 -0
- package/dist/mint-components/{p-98fb8aae.system.js → p-6b5e355c.system.js} +1 -1
- package/dist/mint-components/{p-129d5cfc.system.entry.js → p-6bb4054f.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ec76885.js → p-70955f74.js} +1 -1
- package/dist/mint-components/p-73fb8be6.js +1 -0
- package/dist/mint-components/{p-140def64.system.js → p-7487f23c.system.js} +1 -1
- package/dist/mint-components/{p-f8de07af.system.entry.js → p-74c9a1a4.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ae285ad.js → p-79da7f18.js} +1 -1
- package/dist/mint-components/p-79fc68b0.js +1 -0
- package/dist/mint-components/p-7eb6fab2.system.js +1 -0
- package/dist/mint-components/{p-32866386.entry.js → p-7f9eaa09.entry.js} +1 -1
- package/dist/mint-components/{p-0cf35f9d.system.entry.js → p-83082eeb.system.entry.js} +1 -1
- package/dist/mint-components/p-848f1a2e.system.entry.js +1 -0
- package/dist/mint-components/{p-5b4a77b3.system.entry.js → p-88a2e66e.system.entry.js} +1 -1
- package/dist/mint-components/p-89995fd0.js +391 -0
- package/dist/mint-components/p-8a0c7deb.system.entry.js +1 -0
- package/dist/mint-components/p-8a577aad.entry.js +144 -0
- package/dist/mint-components/p-8a9132a1.entry.js +1 -0
- package/dist/mint-components/{p-23669a93.entry.js → p-8d6eda67.entry.js} +1 -1
- package/dist/mint-components/p-8e3e3f21.system.entry.js +1 -0
- package/dist/mint-components/p-9149f891.entry.js +1 -0
- package/dist/mint-components/p-91749794.system.js +1 -0
- package/dist/mint-components/{p-1c9fe397.entry.js → p-92110eef.entry.js} +1 -1
- package/dist/mint-components/{p-4c4f0973.system.js → p-922578e4.system.js} +1 -1
- package/dist/mint-components/p-92b99bb2.system.entry.js +1 -0
- package/dist/mint-components/p-9755ab8f.system.js +1 -0
- package/dist/mint-components/{p-42949824.entry.js → p-97e55da3.entry.js} +1 -1
- package/dist/mint-components/p-9dcfa187.system.js +1 -0
- package/dist/mint-components/{p-e04a924c.js → p-9df0dca8.js} +1 -1
- package/dist/mint-components/{p-ddbcf186.system.entry.js → p-9fe25b2d.system.entry.js} +1 -1
- package/dist/mint-components/{p-0f60f863.system.js → p-a0634399.system.js} +1 -1
- package/dist/mint-components/{p-1911ed09.system.entry.js → p-a2d9fed8.system.entry.js} +1 -1
- package/dist/mint-components/{p-2cb996af.entry.js → p-a3875af8.entry.js} +2 -2
- package/dist/mint-components/{p-45cc2a06.system.entry.js → p-a6ebb722.system.entry.js} +1 -1
- package/dist/mint-components/p-a7e54efb.js +1 -0
- package/dist/mint-components/p-a93e0eb8.system.js +1 -0
- package/dist/mint-components/{p-07a2b404.system.js → p-b153fc0c.system.js} +1 -1
- package/dist/mint-components/p-b322725f.entry.js +1 -0
- package/dist/mint-components/p-b689baf8.system.js +1 -0
- package/dist/mint-components/p-b7afcca4.system.entry.js +1 -0
- package/dist/mint-components/{p-caca3160.js → p-b9474165.js} +1 -1
- package/dist/mint-components/{p-698b699e.system.js → p-bc1d707d.system.js} +1 -1
- package/dist/mint-components/{p-86b8d490.system.entry.js → p-be584089.system.entry.js} +1 -1
- package/dist/mint-components/{p-7c80164e.system.js → p-c06048c9.system.js} +1 -1
- package/dist/mint-components/{p-abc149fe.system.entry.js → p-c1a47137.system.entry.js} +1 -1
- package/dist/mint-components/p-c53f12df.entry.js +13 -0
- package/dist/mint-components/{p-b52d8951.system.js → p-c5577dd7.system.js} +1 -1
- package/dist/mint-components/{p-1fa36f98.js → p-c5d2e4ba.js} +1 -1
- package/dist/mint-components/{p-66ad53b1.entry.js → p-c74a8f95.entry.js} +1 -1
- package/dist/mint-components/{p-ef158fe8.system.js → p-d079af07.system.js} +1 -1
- package/dist/mint-components/{p-f1524d37.system.js → p-d4b174e1.system.js} +1 -1
- package/dist/mint-components/{p-c23bbbc4.system.js → p-d5a682bf.system.js} +2 -2
- package/dist/mint-components/p-d943d0e8.system.entry.js +1 -0
- package/dist/mint-components/{p-82d7a656.system.entry.js → p-d95ab3ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-a399550d.system.entry.js → p-dad6d93d.system.entry.js} +1 -1
- package/dist/mint-components/{p-61f546e6.entry.js → p-dda8a486.entry.js} +1 -1
- package/dist/mint-components/{p-57644280.js → p-df1b9e5b.js} +1 -1
- package/dist/mint-components/p-e02fb133.system.js +1 -0
- package/dist/mint-components/p-e15443a8.entry.js +1 -0
- package/dist/mint-components/{p-f0c0bec9.entry.js → p-e1f3a863.entry.js} +1 -1
- package/dist/mint-components/{p-d8b73a80.system.entry.js → p-e2fbe1a1.system.entry.js} +1 -1
- package/dist/mint-components/{p-9bd20f34.system.entry.js → p-e31a3242.system.entry.js} +1 -1
- package/dist/mint-components/{p-03ce2c9b.js → p-e3e16c36.js} +1 -1
- package/dist/mint-components/p-e48c06c7.system.entry.js +1 -0
- package/dist/mint-components/{p-d234546c.system.entry.js → p-e5802992.system.entry.js} +1 -1
- package/dist/mint-components/{p-054c86e8.js → p-e704842c.js} +1 -1
- package/dist/mint-components/p-e78a9295.entry.js +1 -0
- package/dist/mint-components/{p-5e8b7e98.entry.js → p-e88f7872.entry.js} +1 -1
- package/dist/mint-components/{p-ca83944e.system.js → p-e8dde8f4.system.js} +1 -1
- package/dist/mint-components/{p-34c938bb.system.entry.js → p-e8fc71f5.system.entry.js} +1 -1
- package/dist/mint-components/{p-98694b8a.js → p-ea6a7135.js} +1 -1
- package/dist/mint-components/{p-c59d4f22.entry.js → p-ed5c7e8a.entry.js} +1 -1
- package/dist/mint-components/{p-d812f2f1.entry.js → p-eed578fa.entry.js} +1 -1
- package/dist/mint-components/{p-c3160411.entry.js → p-f0cfe297.entry.js} +1 -1
- package/dist/mint-components/p-f1963937.entry.js +1 -0
- package/dist/mint-components/p-f37b7296.entry.js +9 -0
- package/dist/mint-components/{p-4220a501.system.entry.js → p-f4a6e490.system.entry.js} +1 -1
- package/dist/mint-components/{p-256aff43.js → p-f5f25aba.js} +1 -1
- package/dist/mint-components/{p-e6973d80.js → p-fb93c962.js} +1 -1
- package/dist/mint-components/{p-07529a98.system.js → p-fca0dc98.system.js} +1 -1
- package/dist/mint-components/{p-1e56ab57.system.js → p-ff17b3a4.system.js} +1 -1
- package/dist/types/components/sqm-invoice-table/InvoiceTableCell.stories.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +9 -5
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +1 -1
- package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +2 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +55 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +9 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +79 -98
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +1 -53
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +3 -9
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +44 -72
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -4
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +60 -60
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +8 -3
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +13 -8
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +287 -324
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +14 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +114 -84
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +44 -43
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +11 -5
- package/dist/types/components/tax-and-cash/utils.d.ts +8 -0
- package/dist/types/components.d.ts +1352 -1380
- package/dist/types/saasquatch.d.ts +8 -7
- package/dist/types/stories/PortalTemplates.stories.d.ts +6 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -3
- package/dist/cjs/sqm-docusign-embed.cjs.entry.js +0 -34
- package/dist/collection/components/sqm-docusign-embed/sqm-docusign-embed.js +0 -65
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignCompletedView.js +0 -29
- package/dist/collection/utils/useParentQuery.js +0 -27
- package/dist/collection/utils/useParentState.js +0 -37
- package/dist/esm/sqm-docusign-embed.entry.js +0 -30
- package/dist/esm-es5/ShadowViewAddon-8ab7e840.js +0 -1
- package/dist/esm-es5/index.module-a46df001.js +0 -1
- package/dist/esm-es5/mockRewardData-e9fdc4fa.js +0 -1
- package/dist/esm-es5/sqm-docusign-embed.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-45e3b5c2.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-d704f03c.js +0 -1
- package/dist/esm-es5/useChildElements-b6d750df.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-ad474a64.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-4d8fe860.js +0 -1
- package/dist/mint-components/p-020ccace.js +0 -1
- package/dist/mint-components/p-0251c974.system.js +0 -1
- package/dist/mint-components/p-03aa1079.js +0 -1
- package/dist/mint-components/p-0b1330d9.entry.js +0 -1
- package/dist/mint-components/p-0b4f95fe.system.entry.js +0 -1
- package/dist/mint-components/p-0c2a6340.entry.js +0 -144
- package/dist/mint-components/p-11d95a57.entry.js +0 -1
- package/dist/mint-components/p-18b77c5f.entry.js +0 -9
- package/dist/mint-components/p-1a69f973.entry.js +0 -1
- package/dist/mint-components/p-1a8335fb.system.entry.js +0 -1
- package/dist/mint-components/p-1fba8a7d.entry.js +0 -148
- package/dist/mint-components/p-26ec23ad.entry.js +0 -1
- package/dist/mint-components/p-2e5c408f.entry.js +0 -1
- package/dist/mint-components/p-2f7c3f5c.js +0 -1
- package/dist/mint-components/p-3ac706c9.js +0 -1
- package/dist/mint-components/p-3ca2e26d.system.entry.js +0 -1
- package/dist/mint-components/p-474c202e.system.entry.js +0 -1
- package/dist/mint-components/p-4df8a784.system.js +0 -1
- package/dist/mint-components/p-67eadc94.js +0 -391
- package/dist/mint-components/p-69cdf17a.system.js +0 -1
- package/dist/mint-components/p-6e356df6.system.entry.js +0 -1
- package/dist/mint-components/p-7266c84f.system.entry.js +0 -1
- package/dist/mint-components/p-7520e15a.js +0 -1
- package/dist/mint-components/p-7689bdec.entry.js +0 -1
- package/dist/mint-components/p-7d81da49.system.entry.js +0 -1
- package/dist/mint-components/p-8019e18f.system.entry.js +0 -1
- package/dist/mint-components/p-830f82bb.system.entry.js +0 -1
- package/dist/mint-components/p-8502e27c.entry.js +0 -1
- package/dist/mint-components/p-88380a45.entry.js +0 -1
- package/dist/mint-components/p-94ad6231.js +0 -1
- package/dist/mint-components/p-965b6a7d.entry.js +0 -13
- package/dist/mint-components/p-9b2e401c.js +0 -1
- package/dist/mint-components/p-a2728372.system.entry.js +0 -1
- package/dist/mint-components/p-a448f535.system.js +0 -1
- package/dist/mint-components/p-a5ce663d.system.entry.js +0 -1
- package/dist/mint-components/p-b5b0128d.js +0 -1
- package/dist/mint-components/p-baddce7c.system.entry.js +0 -1
- package/dist/mint-components/p-c0dd4993.system.js +0 -1
- package/dist/mint-components/p-c7d2b2e3.entry.js +0 -1
- package/dist/mint-components/p-cc570915.system.entry.js +0 -1
- package/dist/mint-components/p-d5364cae.system.js +0 -1
- package/dist/mint-components/p-d87be499.system.js +0 -1
- package/dist/mint-components/p-df8f553b.entry.js +0 -1
- package/dist/mint-components/p-e1335d59.system.entry.js +0 -1
- package/dist/mint-components/p-e36ffd5d.system.js +0 -1
- package/dist/mint-components/p-e37a287c.entry.js +0 -1
- package/dist/mint-components/p-e5b44552.system.js +0 -1
- package/dist/mint-components/p-e86ec70c.system.js +0 -1
- package/dist/mint-components/p-e9419043.js +0 -1
- package/dist/mint-components/p-eb537272.system.js +0 -1
- package/dist/mint-components/p-eba772a8.entry.js +0 -1
- package/dist/mint-components/p-f438972d.system.entry.js +0 -1
- package/dist/mint-components/p-f6e5df75.js +0 -1
- package/dist/mint-components/p-fa11bb8f.entry.js +0 -1
- package/dist/types/components/sqm-docusign-embed/sqm-docusign-embed.d.ts +0 -20
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/DocusignCompletedView.d.ts +0 -1
- package/dist/types/utils/useParentQuery.d.ts +0 -12
- package/dist/types/utils/useParentState.d.ts +0 -12
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { useLocale, useMutation, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { useLocale, useMutation, useParent, useParentQueryValue, useParentValue, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect, useRef, useState } from "@saasquatch/universal-hooks";
|
|
3
|
-
import { h } from "@stencil/core";
|
|
4
3
|
import { gql } from "graphql-request";
|
|
5
4
|
import JSONPointer from "jsonpointer";
|
|
6
5
|
import { intl } from "../../../global/global";
|
|
7
|
-
import {
|
|
8
|
-
import { useParent, useParentValue } from "../../../utils/useParentState";
|
|
9
|
-
import { FINANCE_NETWORK_SETTINGS_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
|
|
6
|
+
import { FINANCE_NETWORK_SETTINGS_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
|
|
10
7
|
// Hardcoded in Impact backend
|
|
11
8
|
export const paypalFeeMap = {
|
|
12
9
|
USD: "USD20.00",
|
|
@@ -26,205 +23,6 @@ export const paypalFeeMap = {
|
|
|
26
23
|
const ACH_PAYMENT_METHOD = 3;
|
|
27
24
|
const WIRE_PAYMENT_METHOD = 5;
|
|
28
25
|
const PAYPAL_PAYMENT_METHOD = 7;
|
|
29
|
-
export function getFormMap({ props, getValidationErrorMessage, }) {
|
|
30
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
31
|
-
const { errors, ...formState } = props.states.formState;
|
|
32
|
-
const country = props.states.bankCountry;
|
|
33
|
-
return {
|
|
34
|
-
0: {
|
|
35
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
36
|
-
class: "error-input",
|
|
37
|
-
helpText: getValidationErrorMessage({
|
|
38
|
-
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
39
|
-
label: props.text.beneficiaryAccountNameLabel,
|
|
40
|
-
}),
|
|
41
|
-
})))),
|
|
42
|
-
},
|
|
43
|
-
1: {
|
|
44
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
45
|
-
class: "error-input",
|
|
46
|
-
helpText: getValidationErrorMessage({
|
|
47
|
-
type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
|
|
48
|
-
label: props.text.bankAccountTypeLabel,
|
|
49
|
-
}),
|
|
50
|
-
})),
|
|
51
|
-
h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
52
|
-
h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
53
|
-
},
|
|
54
|
-
2: {
|
|
55
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
56
|
-
class: "error-input",
|
|
57
|
-
helpText: getValidationErrorMessage({
|
|
58
|
-
type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
|
|
59
|
-
label: props.text.bankAccountNumberLabel,
|
|
60
|
-
}),
|
|
61
|
-
})))),
|
|
62
|
-
},
|
|
63
|
-
3: {
|
|
64
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
65
|
-
class: "error-input",
|
|
66
|
-
helpText: getValidationErrorMessage({
|
|
67
|
-
type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
|
|
68
|
-
label: props.text.ibanLabel,
|
|
69
|
-
}),
|
|
70
|
-
})))),
|
|
71
|
-
},
|
|
72
|
-
4: {
|
|
73
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
74
|
-
class: "error-input",
|
|
75
|
-
helpText: getValidationErrorMessage({
|
|
76
|
-
type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
|
|
77
|
-
label: props.text.swiftCodeLabel,
|
|
78
|
-
}),
|
|
79
|
-
})))),
|
|
80
|
-
},
|
|
81
|
-
5: {
|
|
82
|
-
input: (h("sl-input", Object.assign({ required: true, label: intl.formatMessage({
|
|
83
|
-
id: "routingCodeText",
|
|
84
|
-
defaultMessage: props.text.routingCodeLabel,
|
|
85
|
-
}, {
|
|
86
|
-
country,
|
|
87
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.routingCode) && {
|
|
88
|
-
class: "error-input",
|
|
89
|
-
helpText: getValidationErrorMessage({
|
|
90
|
-
type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.routingCode) === null || _t === void 0 ? void 0 : _t.type,
|
|
91
|
-
label: intl.formatMessage({
|
|
92
|
-
id: "routingCodeErrorText",
|
|
93
|
-
defaultMessage: props.text.routingCodeLabel,
|
|
94
|
-
}, {
|
|
95
|
-
country,
|
|
96
|
-
}),
|
|
97
|
-
}),
|
|
98
|
-
})))),
|
|
99
|
-
},
|
|
100
|
-
6: {
|
|
101
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
102
|
-
class: "error-input",
|
|
103
|
-
helpText: getValidationErrorMessage({
|
|
104
|
-
type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
|
|
105
|
-
label: props.text.bankNameLabel,
|
|
106
|
-
}),
|
|
107
|
-
})))),
|
|
108
|
-
},
|
|
109
|
-
7: {
|
|
110
|
-
input: [
|
|
111
|
-
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
112
|
-
class: "error-input",
|
|
113
|
-
helpText: getValidationErrorMessage({
|
|
114
|
-
type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
|
|
115
|
-
label: props.text.classificationLabel,
|
|
116
|
-
}),
|
|
117
|
-
})),
|
|
118
|
-
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
119
|
-
h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
120
|
-
h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
121
|
-
h("sl-input", Object.assign({ required: true, label: intl.formatMessage({
|
|
122
|
-
id: "fxWireText",
|
|
123
|
-
defaultMessage: props.text.taxPayerIdLabel,
|
|
124
|
-
}, {
|
|
125
|
-
country,
|
|
126
|
-
}), type: "text", name: "/taxPayerId", id: "taxPayerId", key: "taxPayerId" }, (((_0 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _0 === void 0 ? void 0 : _0.taxPayerId) && {
|
|
127
|
-
class: "error-input",
|
|
128
|
-
helpText: getValidationErrorMessage({
|
|
129
|
-
type: (_2 = (_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.taxPayerId) === null || _2 === void 0 ? void 0 : _2.type,
|
|
130
|
-
label: props.text.taxPayerIdLabel,
|
|
131
|
-
}),
|
|
132
|
-
}))),
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
8: {
|
|
136
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
137
|
-
class: "error-input",
|
|
138
|
-
helpText: getValidationErrorMessage({
|
|
139
|
-
type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
|
|
140
|
-
label: props.text.classificationCPFLabel,
|
|
141
|
-
}),
|
|
142
|
-
})),
|
|
143
|
-
h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
144
|
-
h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
145
|
-
},
|
|
146
|
-
9: {
|
|
147
|
-
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
148
|
-
class: "error-input",
|
|
149
|
-
helpText: getValidationErrorMessage({
|
|
150
|
-
type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
|
|
151
|
-
label: props.text.patronymicNameLabel,
|
|
152
|
-
}),
|
|
153
|
-
})))),
|
|
154
|
-
},
|
|
155
|
-
10: {
|
|
156
|
-
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
157
|
-
class: "error-input",
|
|
158
|
-
helpText: getValidationErrorMessage({
|
|
159
|
-
type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
|
|
160
|
-
label: props.text.voCodeLabel,
|
|
161
|
-
}),
|
|
162
|
-
})))),
|
|
163
|
-
},
|
|
164
|
-
11: {
|
|
165
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
166
|
-
class: "error-input",
|
|
167
|
-
helpText: getValidationErrorMessage({
|
|
168
|
-
type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
|
|
169
|
-
label: props.text.agencyCodeLabel,
|
|
170
|
-
}),
|
|
171
|
-
})))),
|
|
172
|
-
},
|
|
173
|
-
12: {
|
|
174
|
-
input: [
|
|
175
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
176
|
-
class: "error-input",
|
|
177
|
-
helpText: getValidationErrorMessage({
|
|
178
|
-
type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
|
|
179
|
-
label: props.text.bankAddressLabel,
|
|
180
|
-
}),
|
|
181
|
-
}))),
|
|
182
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
183
|
-
class: "error-input",
|
|
184
|
-
helpText: getValidationErrorMessage({
|
|
185
|
-
type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
|
|
186
|
-
label: props.text.bankCityLabel,
|
|
187
|
-
}),
|
|
188
|
-
}))),
|
|
189
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
190
|
-
class: "error-input",
|
|
191
|
-
helpText: getValidationErrorMessage({
|
|
192
|
-
type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
|
|
193
|
-
label: props.text.bankStateLabel,
|
|
194
|
-
}),
|
|
195
|
-
}))),
|
|
196
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
197
|
-
class: "error-input",
|
|
198
|
-
helpText: getValidationErrorMessage({
|
|
199
|
-
type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
|
|
200
|
-
label: props.text.bankPostalCodeLabel,
|
|
201
|
-
}),
|
|
202
|
-
}))),
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
13: {
|
|
206
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
207
|
-
class: "error-input",
|
|
208
|
-
helpText: getValidationErrorMessage({
|
|
209
|
-
type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
|
|
210
|
-
label: props.text.branchCodeLabel,
|
|
211
|
-
}),
|
|
212
|
-
})))),
|
|
213
|
-
},
|
|
214
|
-
14: {
|
|
215
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
216
|
-
class: "error-input",
|
|
217
|
-
helpText: getValidationErrorMessage({
|
|
218
|
-
type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
|
|
219
|
-
label: props.text.classificationLabel,
|
|
220
|
-
}),
|
|
221
|
-
})),
|
|
222
|
-
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
223
|
-
h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
224
|
-
h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
225
|
-
},
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
26
|
export function getFormInputs({ bitset, formMap }) {
|
|
229
27
|
// Convert bitset to binary representation
|
|
230
28
|
const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
|
|
@@ -271,9 +69,10 @@ export function useBankingInfoForm(props) {
|
|
|
271
69
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
272
70
|
const locale = useLocale();
|
|
273
71
|
const user = useUserIdentity();
|
|
274
|
-
const formRef = useRef(null);
|
|
275
72
|
const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
|
|
276
73
|
const context = useParentValue(TAX_FORM_CONTEXT_NAMESPACE);
|
|
74
|
+
const countries = useParentValue(SORTED_COUNTRIES_NAMESPACE);
|
|
75
|
+
const formRef = useRef(null);
|
|
277
76
|
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = useParentQueryValue(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
278
77
|
const { data: userData, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
279
78
|
const [saveWithdrawalSettings] = useMutation(SAVE_WITHDRAWAL_SETTINGS);
|
|
@@ -283,6 +82,8 @@ export function useBankingInfoForm(props) {
|
|
|
283
82
|
const [errors, setErrors] = useState({});
|
|
284
83
|
const [_paymentMethodChecked, _setPaymentMethodChecked] = useState(undefined);
|
|
285
84
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
85
|
+
const [countrySearch, setCountrySearch] = useState("");
|
|
86
|
+
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
286
87
|
const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
|
|
287
88
|
const feeCap = paypalFeeMap[currency] || "";
|
|
288
89
|
const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
@@ -297,29 +98,6 @@ export function useBankingInfoForm(props) {
|
|
|
297
98
|
}),
|
|
298
99
|
};
|
|
299
100
|
const paymentMethodFeeLabel = paymentMethodFeeMap[currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.defaultFinancePaymentMethodId];
|
|
300
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
301
|
-
// filter out any duplicate countries and null countryCode
|
|
302
|
-
const availableCountries = new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value));
|
|
303
|
-
const getCountryObj = (country) => {
|
|
304
|
-
// @ts-ignore DisplayNames not in Intl type
|
|
305
|
-
const name = new Intl.DisplayNames([intlLocale], {
|
|
306
|
-
type: "region",
|
|
307
|
-
}).of(country);
|
|
308
|
-
return {
|
|
309
|
-
code: country,
|
|
310
|
-
name,
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
const sortByName = (a, b) => a.name < b.name ? -1 : 1;
|
|
314
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
315
|
-
const countries = Array.from(availableCountries)
|
|
316
|
-
.map((c) => getCountryObj(c))
|
|
317
|
-
.sort(sortByName)
|
|
318
|
-
.reduce((prev, countryObj) => {
|
|
319
|
-
if (_topCountries.includes(countryObj.code))
|
|
320
|
-
return [countryObj, ...prev];
|
|
321
|
-
return [...prev, countryObj];
|
|
322
|
-
}, []);
|
|
323
101
|
const hasPayPal = !!(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((option) => option.defaultFinancePaymentMethodId === PAYPAL_PAYMENT_METHOD));
|
|
324
102
|
const paymentMethodChecked = !hasPayPal
|
|
325
103
|
? "toBankAccount"
|
|
@@ -335,6 +113,7 @@ export function useBankingInfoForm(props) {
|
|
|
335
113
|
// Use currentPaymentOption and initialise form with userData
|
|
336
114
|
let initialData = {
|
|
337
115
|
bankCountry: (withdrawalSettings === null || withdrawalSettings === void 0 ? void 0 : withdrawalSettings.bankCountry) || publisherCountry,
|
|
116
|
+
paymentMethod: "BANK_TRANSFER",
|
|
338
117
|
};
|
|
339
118
|
if (withdrawalSettings && ((_j = (_h = (_g = userData.user) === null || _g === void 0 ? void 0 : _g.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.brandedSignup)) {
|
|
340
119
|
initialData = {
|
|
@@ -346,22 +125,39 @@ export function useBankingInfoForm(props) {
|
|
|
346
125
|
paymentDay: withdrawalSettings.paymentDay,
|
|
347
126
|
};
|
|
348
127
|
}
|
|
349
|
-
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) =>
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
128
|
+
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
129
|
+
if (initialData.paymentMethod === "PAYPAL" &&
|
|
130
|
+
paymentOption.defaultFinancePaymentMethodId === 7)
|
|
131
|
+
return true;
|
|
132
|
+
if (paymentOption.countryCode !== initialData.bankCountry)
|
|
133
|
+
return false;
|
|
134
|
+
return true;
|
|
135
|
+
});
|
|
136
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
353
137
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
354
138
|
? "toPayPalAccount"
|
|
355
139
|
: "toBankAccount");
|
|
356
|
-
|
|
140
|
+
setCurrentPaymentOption(currentPaymentOption);
|
|
141
|
+
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
142
|
+
setFormState(initialData);
|
|
357
143
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
144
|
+
useEffect(() => {
|
|
145
|
+
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
146
|
+
return;
|
|
147
|
+
if (countrySearch.trim() === "") {
|
|
148
|
+
setFilteredCountries(countries || []);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
152
|
+
}
|
|
153
|
+
}, [countrySearch, countries]);
|
|
358
154
|
const updateBankCountry = (bankCountry) => {
|
|
359
155
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
360
156
|
if (paymentOption.countryCode === bankCountry)
|
|
361
157
|
return true;
|
|
362
158
|
return false;
|
|
363
159
|
});
|
|
364
|
-
setFormState((p) => ({
|
|
160
|
+
setFormState((p) => ({ ...p, bankCountry }));
|
|
365
161
|
setCurrentPaymentOption(currentPaymentOption);
|
|
366
162
|
};
|
|
367
163
|
const onSubmit = async (event) => {
|
|
@@ -387,7 +183,7 @@ export function useBankingInfoForm(props) {
|
|
|
387
183
|
try {
|
|
388
184
|
if (!currentPaymentOption)
|
|
389
185
|
throw new Error("No currentPaymentOption");
|
|
390
|
-
const
|
|
186
|
+
const input = {
|
|
391
187
|
setImpactPublisherWithdrawalSettingsInput: {
|
|
392
188
|
user: {
|
|
393
189
|
id: user.id,
|
|
@@ -397,7 +193,8 @@ export function useBankingInfoForm(props) {
|
|
|
397
193
|
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
398
194
|
paymentSchedulingType: paymentScheduleChecked,
|
|
399
195
|
},
|
|
400
|
-
}
|
|
196
|
+
};
|
|
197
|
+
const response = await saveWithdrawalSettings(input);
|
|
401
198
|
if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
402
199
|
throw new Error();
|
|
403
200
|
}
|
|
@@ -454,6 +251,7 @@ export function useBankingInfoForm(props) {
|
|
|
454
251
|
setPaymentMethodChecked,
|
|
455
252
|
setPaymentScheduleChecked,
|
|
456
253
|
onBack: () => setStep("/dashboard"),
|
|
254
|
+
setCountrySearch,
|
|
457
255
|
},
|
|
458
256
|
states: {
|
|
459
257
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
@@ -480,8 +278,11 @@ export function useBankingInfoForm(props) {
|
|
|
480
278
|
bitset: (currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.withdrawalSettingId) || 0,
|
|
481
279
|
currency,
|
|
482
280
|
thresholds: ((_h = currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.thresholdOptions) === null || _h === void 0 ? void 0 : _h.split(",")) || [],
|
|
483
|
-
countries,
|
|
281
|
+
countries: filteredCountries,
|
|
282
|
+
allCountries: countries,
|
|
484
283
|
hasPayPal,
|
|
284
|
+
bankCountry: formState.bankCountry,
|
|
285
|
+
countrySearch,
|
|
485
286
|
},
|
|
486
287
|
refs: {
|
|
487
288
|
formRef,
|
package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js
CHANGED
|
@@ -63,8 +63,8 @@ export const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
|
63
63
|
if (states.urlLoading)
|
|
64
64
|
return h(DocusignLoadingView, null);
|
|
65
65
|
const callback = useCallback((e) => {
|
|
66
|
-
|
|
67
|
-
if (e.origin
|
|
66
|
+
var _a;
|
|
67
|
+
if (!((_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes("referralsaasquatch.com")))
|
|
68
68
|
return;
|
|
69
69
|
if (!e.data)
|
|
70
70
|
return;
|
|
@@ -110,6 +110,10 @@ const style = {
|
|
|
110
110
|
RadioText: {
|
|
111
111
|
fontSize: "var(--sl-font-size-small)",
|
|
112
112
|
},
|
|
113
|
+
PageDescriptionText: {
|
|
114
|
+
color: "var(--sl-color-neutral-500)",
|
|
115
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
116
|
+
},
|
|
113
117
|
};
|
|
114
118
|
const sheet = createStyleSheet(style);
|
|
115
119
|
const styleString = sheet.toString();
|
|
@@ -149,7 +153,8 @@ export const DocusignFormView = (props) => {
|
|
|
149
153
|
id: "formStep",
|
|
150
154
|
defaultMessage: text.formStep,
|
|
151
155
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
152
|
-
h("h3", null, text.taxForm)
|
|
156
|
+
h("h3", null, text.taxForm),
|
|
157
|
+
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
153
158
|
states.loadingError && (h("div", null,
|
|
154
159
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
155
160
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
@@ -191,7 +196,6 @@ export const DocusignFormView = (props) => {
|
|
|
191
196
|
h("div", null,
|
|
192
197
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
193
198
|
h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
|
|
194
|
-
text.
|
|
195
|
-
slots.docusignIframeSlot
|
|
196
|
-
!states.hideBackButton && (h("sl-button", { class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.cancelButton)))))));
|
|
199
|
+
text.docusignSessionWarning),
|
|
200
|
+
slots.docusignIframeSlot)))));
|
|
197
201
|
};
|