@saasquatch/mint-components 1.12.0-8 → 1.12.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-80d7642e.js → GenericTableView-bb2fcd95.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-652aa5e4.js} +178 -236
- package/dist/cjs/copy-text-view-f1ce8888.js +231 -0
- package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-54cedb43.js} +2 -2
- package/dist/cjs/{global-c3637175.js → global-ae358e7d.js} +3 -3
- package/dist/cjs/{index-b0129cd6.js → index-ff72278c.js} +2 -0
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-191d84c2.js} +19 -52
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-05098e19.js → luxon-45228ff5.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-d6be2267.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-811491ef.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-a0e33f21.js → sqm-asset-card-view-30ca5188.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 → sqm-banking-info-form_17.cjs.entry.js} +927 -239
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +226 -164
- package/dist/cjs/{sqm-close-button-view-fd6e8f60.js → sqm-close-button-view-6a709e00.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +5 -5
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-email-verification.cjs.entry.js +30 -22
- package/dist/cjs/sqm-empty_4.cjs.entry.js +12 -8
- 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 +7 -7
- package/dist/cjs/{sqm-invoice-table-view-5d3a2d35.js → sqm-invoice-table-view-bfea11c8.js} +117 -5
- package/dist/cjs/{sqm-leaderboard-rank-view-5a3d4a88.js → sqm-leaderboard-rank-view-317eb84f.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-c9f18d96.js → sqm-logout-current-user-view-1912b773.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-67d1184c.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-navigation-sidebar-view-921704fb.js → sqm-navigation-sidebar-view-215eba1d.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +392 -0
- package/dist/cjs/sqm-password-field.cjs.entry.js +6 -6
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-990a85a3.js → sqm-portal-container-view-976bf0f5.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-1a852b01.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-forgot-password-view-969c49ed.js → sqm-portal-forgot-password-view-24339191.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-a2ed3b27.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +11 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-reset-password-view-96f329ed.js → sqm-portal-reset-password-view-1b85b8cf.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-verify-email-view-7ffcc0d4.js → sqm-portal-verify-email-view-cc3c87c3.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +15 -13
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- 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 +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +17 -17
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +427 -183
- 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-e1cd9bd3.js → sqm-text-span-view-38222836.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +104 -111
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-8f69ed33.js} +1 -1
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-d64dfedd.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-fb1d317a.js} +4 -4
- package/dist/cjs/usePayoutStatus-9f25038a.js +1045 -0
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-b09d9b9e.js} +11 -11
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-b07ba3d4.js} +3 -3
- package/dist/cjs/{useVerificationEmail-6aacdb71.js → useVerificationEmail-f3db90da.js} +13 -9
- package/dist/cjs/{utilities-f7de6c04.js → utilities-cec246be.js} +2 -2
- package/dist/collection/collection-manifest.json +11 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty.js +10 -2
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +12 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +32 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +112 -0
- package/dist/collection/components/sqm-pagination/usePagination.js +29 -0
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +7 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +2 -1
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +0 -4
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +20 -0
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +60 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +317 -0
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +63 -0
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +65 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +69 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +219 -0
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +131 -0
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +6 -2
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +8 -15
- package/dist/collection/components/sqm-share-button/useShareButton.js +29 -18
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +11 -4
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
- package/dist/collection/components/sqm-text/sqm-text.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +3 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +10 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +29 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +106 -127
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +5 -1
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +60 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +18 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +111 -3
- package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +127 -14
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +5 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +84 -24
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +186 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +31 -20
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +414 -23
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +133 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +276 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +15 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +2 -0
- package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
- package/dist/collection/components/views/copy-text-view.js +18 -3
- package/dist/collection/stories/Widget.stories.js +5 -0
- package/dist/esm/{GenericTableView-d59d8ab4.js → GenericTableView-706f5b56.js} +2 -2
- package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-a0cff36f.js} +177 -234
- package/dist/esm/copy-text-view-200d6958.js +225 -0
- package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-5ecee6f8.js} +2 -2
- package/dist/esm/{global-6306a9b8.js → global-9832e13a.js} +3 -3
- package/dist/esm/{index-17b4da69.js → index-014ddfa3.js} +2 -1
- package/dist/esm/{index.module-6c840c4e.js → index.module-32d2bf62.js} +4 -37
- package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-7600be8d.js → luxon-12195d94.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-133c20ca.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-1bcfd0de.js → re-render-6977623c.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-da88351a.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +927 -240
- package/dist/esm/sqm-big-stat_39.entry.js +223 -161
- package/dist/esm/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-8058642b.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +31 -23
- package/dist/esm/sqm-empty_4.entry.js +12 -8
- 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 +7 -7
- package/dist/esm/{sqm-invoice-table-view-e9075c0b.js → sqm-invoice-table-view-e3a1287a.js} +117 -5
- package/dist/esm/{sqm-leaderboard-rank-view-10657658.js → sqm-leaderboard-rank-view-773a586f.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-dfcd508a.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +7 -7
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-721b0060.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -7
- package/dist/esm/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-5f332ea1.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-pagination_3.entry.js +386 -0
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-83df005d.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-d90f5490.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +12 -12
- package/dist/esm/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-8629f753.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +9 -9
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-9ac8ea4d.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +11 -11
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/sqm-portal-registration-form.entry.js +11 -11
- package/dist/esm/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-865655da.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +12 -12
- package/dist/esm/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-6c60df25.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +12 -12
- package/dist/esm/sqm-referral-table_11.entry.js +15 -13
- package/dist/esm/sqm-referred-registration.entry.js +7 -7
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +17 -17
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +414 -170
- 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-8d140661.js → sqm-text-span-view-d6e03f93.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
- package/dist/esm/sqm-widget-verification.entry.js +105 -112
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-576d7f01.js} +1 -1
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-dd86d4a4.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-82ac94b9.js} +4 -4
- package/dist/esm/usePayoutStatus-a7510912.js +1039 -0
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-f677f1aa.js} +11 -11
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-6e89095a.js} +3 -3
- package/dist/esm/{useVerificationEmail-c32696ba.js → useVerificationEmail-7e3eb7c0.js} +13 -9
- package/dist/esm/{utilities-443732be.js → utilities-34fdb9e3.js} +2 -2
- package/dist/esm-es5/{GenericTableView-d59d8ab4.js → GenericTableView-706f5b56.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-a0cff36f.js +1 -0
- package/dist/esm-es5/copy-text-view-200d6958.js +1 -0
- package/dist/esm-es5/{email-registration-view-a89a88bf.js → email-registration-view-5ecee6f8.js} +1 -1
- package/dist/esm-es5/{global-6306a9b8.js → global-9832e13a.js} +2 -2
- package/dist/esm-es5/{index-17b4da69.js → index-014ddfa3.js} +1 -1
- package/dist/esm-es5/index.module-32d2bf62.js +1 -0
- package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-12195d94.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-133c20ca.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-6977623c.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-da88351a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-8058642b.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-email-verification.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-e3a1287a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-773a586f.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-dfcd508a.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-721b0060.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-5f332ea1.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -0
- 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-6c582684.js → sqm-portal-container-view-83df005d.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-d90f5490.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-8629f753.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-15ddbec8.js → sqm-portal-profile-view-9ac8ea4d.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-79a85e02.js → sqm-portal-reset-password-view-865655da.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-6c60df25.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-scroll.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-8d140661.js → sqm-text-span-view-d6e03f93.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-576d7f01.js} +1 -1
- package/dist/esm-es5/useChildElements-dd86d4a4.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-82ac94b9.js} +1 -1
- package/dist/esm-es5/usePayoutStatus-a7510912.js +6 -0
- package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-f677f1aa.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-6e89095a.js +1 -0
- package/dist/esm-es5/useVerificationEmail-7e3eb7c0.js +1 -0
- package/dist/esm-es5/{utilities-443732be.js → utilities-34fdb9e3.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-fd2c5407.js → p-019506c4.js} +1 -1
- package/dist/mint-components/{p-43621f12.system.js → p-01d6c1f0.system.js} +1 -1
- package/dist/mint-components/{p-59818690.system.entry.js → p-04a17b6f.system.entry.js} +1 -1
- package/dist/mint-components/p-062051ad.entry.js +1 -0
- package/dist/mint-components/{p-c5577dd7.system.js → p-06b8a582.system.js} +1 -1
- package/dist/mint-components/p-0740469e.entry.js +33 -0
- package/dist/mint-components/p-0d485762.system.entry.js +1 -0
- package/dist/mint-components/{p-a51533cb.system.js → p-0dc18b5c.system.js} +1 -1
- package/dist/mint-components/p-11c8ad61.entry.js +9 -0
- package/dist/mint-components/{p-d468925f.entry.js → p-135356c8.entry.js} +1 -1
- package/dist/mint-components/p-147eddc7.system.js +1 -0
- package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-14f23e8b.system.entry.js} +1 -1
- package/dist/mint-components/{p-251e7567.js → p-1a4e5a3a.js} +1 -1
- package/dist/mint-components/p-1d00f622.entry.js +25 -0
- package/dist/mint-components/{p-cb433855.system.entry.js → p-1da85c55.system.entry.js} +1 -1
- package/dist/mint-components/{p-7d5e0645.system.js → p-1e03d640.system.js} +1 -1
- package/dist/mint-components/{p-f4cbbe47.entry.js → p-1f03999a.entry.js} +1 -1
- package/dist/mint-components/{p-ff17b3a4.system.js → p-21d94eab.system.js} +1 -1
- package/dist/mint-components/p-2478ab2e.js +1 -0
- package/dist/mint-components/p-26989f51.system.entry.js +1 -0
- package/dist/mint-components/{p-04348a9b.js → p-27063220.js} +1 -1
- package/dist/mint-components/{p-fd21ae8f.entry.js → p-27f4da12.entry.js} +1 -1
- package/dist/mint-components/{p-e12d3414.system.entry.js → p-28e02729.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1a47137.system.entry.js → p-29952a5b.system.entry.js} +1 -1
- package/dist/mint-components/p-2a2fb958.system.js +1 -0
- package/dist/mint-components/{p-ac51940e.system.js → p-2ae74e3d.system.js} +1 -1
- package/dist/mint-components/{p-5becb2ff.system.js → p-2bc74e74.system.js} +1 -1
- package/dist/mint-components/{p-4f775e84.system.js → p-2be11651.system.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-2be940fd.entry.js} +1 -1
- package/dist/mint-components/{p-d83b0cf3.js → p-346b0453.js} +1 -1
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-38e25302.system.js +1 -0
- package/dist/mint-components/{p-cd44de66.system.js → p-38eeea85.system.js} +1 -1
- package/dist/mint-components/p-3a82938a.system.js +1 -0
- package/dist/mint-components/p-3b9a0443.js +1 -0
- package/dist/mint-components/{p-3ed71bef.system.js → p-3c6bc373.system.js} +1 -1
- package/dist/mint-components/{p-fb93c962.js → p-42390bcc.js} +1 -1
- package/dist/mint-components/p-437d9179.entry.js +1 -0
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-4460a1b5.system.entry.js} +1 -1
- package/dist/mint-components/{p-e546347e.system.js → p-4531488f.system.js} +1 -1
- package/dist/mint-components/{p-5291891c.entry.js → p-45348151.entry.js} +2 -2
- package/dist/mint-components/{p-2a414b2e.system.js → p-45d71b2a.system.js} +1 -1
- package/dist/mint-components/{p-fc422446.system.js → p-4665c2df.system.js} +1 -1
- package/dist/mint-components/p-4769ea4e.js +1 -0
- package/dist/mint-components/p-4810eded.js +52 -0
- package/dist/mint-components/p-493ceeaa.system.entry.js +1 -0
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4d50c2fd.system.entry.js} +1 -1
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-4e88b1cc.system.entry.js} +1 -1
- package/dist/mint-components/p-5327c91f.system.js +1 -0
- package/dist/mint-components/p-533a6058.entry.js +1 -0
- package/dist/mint-components/p-558daf4f.system.js +1 -0
- package/dist/mint-components/p-55a5bbca.system.entry.js +1 -0
- package/dist/mint-components/{p-3925bcd6.entry.js → p-567510ed.entry.js} +1 -1
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/p-57f92fe0.entry.js +1 -0
- package/dist/mint-components/{p-c3b37bbf.js → p-597d9584.js} +1 -1
- package/dist/mint-components/{p-1b9e6fc6.js → p-59e310c8.js} +1 -1
- package/dist/mint-components/p-59fb25c9.system.entry.js +1 -0
- package/dist/mint-components/{p-2816bf6a.js → p-5c3bf70d.js} +1 -1
- package/dist/mint-components/{p-92110eef.entry.js → p-5c70bc39.entry.js} +1 -1
- package/dist/mint-components/p-606f8320.js +31 -0
- package/dist/mint-components/{p-64c3217a.js → p-61d5f26e.js} +1 -1
- package/dist/mint-components/{p-509e29e6.js → p-6568392b.js} +1 -1
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-6765a6d5.entry.js} +1 -1
- package/dist/mint-components/{p-0c9ad5f3.system.entry.js → p-69429d09.system.entry.js} +1 -1
- package/dist/mint-components/p-6b3cb50a.entry.js +1 -0
- package/dist/mint-components/{p-0121e044.js → p-6c03512b.js} +1 -1
- package/dist/mint-components/{p-79da7f18.js → p-6d164a9e.js} +1 -1
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-70f4aab2.system.entry.js} +1 -1
- package/dist/mint-components/p-72aff425.js +48 -0
- package/dist/mint-components/p-72b57205.js +1 -0
- package/dist/mint-components/p-73e9caad.system.js +1 -0
- package/dist/mint-components/{p-3036cf58.system.js → p-752650b9.system.js} +1 -1
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-775685a2.system.entry.js} +1 -1
- package/dist/mint-components/p-7a4a47b2.entry.js +205 -0
- package/dist/mint-components/{p-f3053c61.js → p-7ae55645.js} +1 -1
- package/dist/mint-components/{p-f450654b.system.entry.js → p-7c1650bb.system.entry.js} +1 -1
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-7d85fba4.system.entry.js} +1 -1
- package/dist/mint-components/p-7ddd0248.entry.js +1 -0
- package/dist/mint-components/{p-c3babfa4.system.entry.js → p-7e0c2fd5.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-813f6633.entry.js} +1 -1
- package/dist/mint-components/{p-370a1a73.system.js → p-81ed0e97.system.js} +1 -1
- package/dist/mint-components/p-81fd8e56.system.js +1 -0
- package/dist/mint-components/{p-6b5e355c.system.js → p-842cbd05.system.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-87bde6c3.system.entry.js} +1 -1
- package/dist/mint-components/{p-64491210.system.entry.js → p-89283c37.system.entry.js} +1 -1
- package/dist/mint-components/{p-d35d8c06.entry.js → p-8b24b795.entry.js} +2 -2
- package/dist/mint-components/{p-6c928c7d.entry.js → p-8b66735f.entry.js} +1 -1
- package/dist/mint-components/p-8e6c97b5.system.entry.js +1 -0
- package/dist/mint-components/{p-8d554a89.system.js → p-90b906e3.system.js} +1 -1
- package/dist/mint-components/p-95f71da6.entry.js +1 -0
- package/dist/mint-components/p-96755021.entry.js +16 -0
- package/dist/mint-components/{p-ead27698.system.entry.js → p-98c5589b.system.entry.js} +1 -1
- package/dist/mint-components/p-9a3612e3.system.js +1 -0
- package/dist/mint-components/{p-012daf3c.entry.js → p-9c980a21.entry.js} +1 -1
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-9f9f851d.system.entry.js} +1 -1
- package/dist/mint-components/{p-4e48267b.system.js → p-9fc73ff8.system.js} +1 -1
- package/dist/mint-components/p-a13c83c5.entry.js +1 -0
- package/dist/mint-components/p-a1cc7c75.system.js +6 -0
- package/dist/mint-components/{p-e8dde8f4.system.js → p-a2aed0da.system.js} +1 -1
- package/dist/mint-components/{p-178d2d2e.entry.js → p-a3fdbfed.entry.js} +1 -1
- package/dist/mint-components/{p-fbdf0738.entry.js → p-a4c1b404.entry.js} +1 -1
- package/dist/mint-components/p-a5c46b1f.system.entry.js +1 -0
- package/dist/mint-components/p-a966450d.entry.js +1 -0
- package/dist/mint-components/{p-1f7d7524.system.entry.js → p-a9ad04e3.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5d2e4ba.js → p-a9ff5495.js} +1 -1
- package/dist/mint-components/{p-ce9e7c98.system.js → p-b210bcc2.system.js} +1 -1
- package/dist/mint-components/{p-bc826117.system.entry.js → p-b38c43c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-04ced592.system.entry.js → p-b4fd6877.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8610d0c.js → p-b7705066.js} +1 -1
- package/dist/mint-components/p-b7ea46a9.system.entry.js +1 -0
- package/dist/mint-components/{p-a85f57bb.entry.js → p-b8e79be3.entry.js} +1 -1
- package/dist/mint-components/p-bc827206.entry.js +241 -0
- package/dist/mint-components/p-bd5cb4f3.system.js +1 -0
- package/dist/mint-components/{p-51d53165.system.entry.js → p-bf1ce947.system.entry.js} +1 -1
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-c10eb4d9.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-c2281e04.system.entry.js} +1 -1
- package/dist/mint-components/{p-1d27da33.js → p-c49e034d.js} +2 -2
- package/dist/mint-components/p-c5a86ae0.system.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-c6b10310.entry.js} +1 -1
- package/dist/mint-components/p-c7d74b3d.entry.js +1 -0
- package/dist/mint-components/{p-f56348dc.system.entry.js → p-c9a1e91f.system.entry.js} +1 -1
- package/dist/mint-components/{p-9e0230c3.entry.js → p-ce7d155e.entry.js} +1 -1
- package/dist/mint-components/{p-e3e16c36.js → p-d25af377.js} +1 -1
- package/dist/mint-components/{p-f531a5c9.system.entry.js → p-d2ce8962.system.entry.js} +1 -1
- package/dist/mint-components/{p-76392386.entry.js → p-d2fdccaf.entry.js} +1 -1
- package/dist/mint-components/p-d30d4615.system.entry.js +1 -0
- package/dist/mint-components/p-d72ca162.entry.js +13 -0
- package/dist/mint-components/p-d8d97ff5.js +1 -0
- package/dist/mint-components/p-d9125705.entry.js +1 -0
- package/dist/mint-components/{p-bdd6bb13.js → p-d998f2cf.js} +1 -1
- package/dist/mint-components/{p-e0e7635a.js → p-da694498.js} +1 -1
- package/dist/mint-components/p-dc10f1c8.entry.js +1 -0
- package/dist/mint-components/p-dd5a844d.entry.js +1 -0
- package/dist/mint-components/{p-ac1bf045.js → p-e039ce2f.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-e401cb44.system.entry.js} +1 -1
- package/dist/mint-components/{p-68747d88.js → p-e445df4e.js} +1 -1
- package/dist/mint-components/{p-ed6ebd60.system.js → p-e479d77e.system.js} +1 -1
- package/dist/mint-components/{p-88a2e66e.system.entry.js → p-e53e95ce.system.entry.js} +1 -1
- package/dist/mint-components/p-e9561792.entry.js +1 -0
- package/dist/mint-components/{p-36e9296e.system.entry.js → p-ea99fae7.system.entry.js} +1 -1
- package/dist/mint-components/{p-5d0c9424.js → p-ee343d0b.js} +1 -1
- package/dist/mint-components/{p-22425c71.system.entry.js → p-f1a8e889.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7fd9e16.js → p-f29e62e1.js} +1 -1
- package/dist/mint-components/{p-9eae245f.js → p-f754e08b.js} +23 -23
- package/dist/mint-components/p-f831ddd1.entry.js +13 -0
- package/dist/mint-components/{p-b3b5b4b7.system.entry.js → p-f9564398.system.entry.js} +1 -1
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +1 -1
- package/dist/types/components/sqm-pagination/Pagination.stories.d.ts +5 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +15 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +22 -0
- package/dist/types/components/sqm-pagination/usePagination.d.ts +16 -0
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -1
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +18 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +70 -0
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +3 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +12 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +16 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +39 -0
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +52 -0
- package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +13 -4
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +5 -0
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +4 -0
- package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +3 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +8 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +30 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +5 -4
- 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/extractProps.d.ts +5 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +82 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +14 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +45 -0
- 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 +4 -0
- package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
- package/dist/types/components/views/copy-text-view.d.ts +3 -0
- package/dist/types/components.d.ts +625 -92
- package/dist/types/stories/Widget.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 +3 -2
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -345
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
- package/dist/esm/sqm-code-verification.entry.js +0 -341
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-e9075c0b.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-10657658.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
- package/dist/mint-components/p-0893073b.entry.js +0 -1
- package/dist/mint-components/p-0a898ab1.js +0 -1
- package/dist/mint-components/p-11d1b212.js +0 -1
- package/dist/mint-components/p-1649ee1e.entry.js +0 -240
- package/dist/mint-components/p-1712a9fd.entry.js +0 -11
- package/dist/mint-components/p-1b861be5.entry.js +0 -1
- package/dist/mint-components/p-1e616d45.system.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-39e412e8.system.entry.js +0 -1
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-4671e644.entry.js +0 -1
- package/dist/mint-components/p-4babe350.system.js +0 -1
- package/dist/mint-components/p-4e373c3d.system.js +0 -1
- package/dist/mint-components/p-4eae91a9.system.js +0 -1
- package/dist/mint-components/p-54ffae13.entry.js +0 -194
- package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
- package/dist/mint-components/p-639d3dd3.entry.js +0 -1
- package/dist/mint-components/p-63ac51e1.system.entry.js +0 -1
- package/dist/mint-components/p-84b25a46.entry.js +0 -1
- package/dist/mint-components/p-8690f682.system.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-947fe79b.entry.js +0 -1
- package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
- package/dist/mint-components/p-974070c4.system.entry.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
- package/dist/mint-components/p-9dcfa187.system.js +0 -1
- package/dist/mint-components/p-9ec008cb.system.entry.js +0 -1
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-c510fb88.entry.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-c92a743e.entry.js +0 -1
- package/dist/mint-components/p-c9fb6102.entry.js +0 -1
- package/dist/mint-components/p-ca809fdd.system.js +0 -1
- package/dist/mint-components/p-d238372a.system.entry.js +0 -1
- package/dist/mint-components/p-d49e2f7a.js +0 -1
- package/dist/mint-components/p-d7806f31.js +0 -48
- package/dist/mint-components/p-dd0d79bf.entry.js +0 -1
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-e01ac27c.system.js +0 -1
- package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
- package/dist/mint-components/p-f340214f.entry.js +0 -25
- package/dist/mint-components/p-f36e33ff.entry.js +0 -13
- package/dist/mint-components/p-f55060db.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/mint-components/p-fffc3590.entry.js +0 -9
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as Host, g as getElement } from './index-
|
|
2
|
-
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
1
|
+
import { h, r as registerInstance, c as Host, g as getElement } from './index-014ddfa3.js';
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-576d7f01.js';
|
|
3
|
+
import { i as intl } from './global-9832e13a.js';
|
|
4
|
+
import { d as dist, _, L, Q, t as bn, I as In, M as Mn, $ as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, C as Cn, F as Fn } from './index.module-32d2bf62.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import './mixins-f60a614c.js';
|
|
8
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
10
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-1bcfd0de.js';
|
|
11
|
-
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
12
|
-
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-f6ffa103.js';
|
|
14
7
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
8
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
+
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
10
|
+
import { G as GenericTableView } from './GenericTableView-706f5b56.js';
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-6977623c.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-dd86d4a4.js';
|
|
13
|
+
import { l as luxon } from './luxon-12195d94.js';
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-f677f1aa.js';
|
|
15
|
+
import { T as TextSpanView } from './sqm-text-span-view-d6e03f93.js';
|
|
16
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-e3a1287a.js';
|
|
17
17
|
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
18
|
+
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
19
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-a7510912.js';
|
|
20
|
+
import { u as useVerificationEmail } from './useVerificationEmail-7e3eb7c0.js';
|
|
18
21
|
|
|
19
22
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
20
23
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -84,6 +87,7 @@ const GET_USER = dist.gql `
|
|
|
84
87
|
}
|
|
85
88
|
payoutsAccount {
|
|
86
89
|
hold
|
|
90
|
+
holdReasons
|
|
87
91
|
balance
|
|
88
92
|
}
|
|
89
93
|
}
|
|
@@ -860,12 +864,22 @@ const BankingInfoFormView = (props) => {
|
|
|
860
864
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
861
865
|
h("strong", null, text.error.generalTitle),
|
|
862
866
|
h("br", null),
|
|
863
|
-
|
|
867
|
+
intl.formatMessage({
|
|
868
|
+
id: "generalDescription",
|
|
869
|
+
defaultMessage: text.error.generalDescription,
|
|
870
|
+
}, {
|
|
871
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
872
|
+
}))),
|
|
864
873
|
states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
865
874
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
866
875
|
h("strong", null, text.isPartnerAlertHeader),
|
|
867
876
|
h("br", null),
|
|
868
|
-
|
|
877
|
+
intl.formatMessage({
|
|
878
|
+
id: "isPartnerAlertDescription",
|
|
879
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
880
|
+
}, {
|
|
881
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
882
|
+
}))),
|
|
869
883
|
h("div", null,
|
|
870
884
|
h("h4", null, text.paymentMethod),
|
|
871
885
|
h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
@@ -978,18 +992,18 @@ function parseImpactThreshold(threshold) {
|
|
|
978
992
|
return parsed.toString();
|
|
979
993
|
}
|
|
980
994
|
function useBankingInfoForm(props) {
|
|
981
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
982
|
-
const host =
|
|
983
|
-
const locale =
|
|
984
|
-
const user =
|
|
985
|
-
const [step, setStep] =
|
|
986
|
-
const context =
|
|
987
|
-
const countries =
|
|
995
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
996
|
+
const host = _();
|
|
997
|
+
const locale = L();
|
|
998
|
+
const user = Q();
|
|
999
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
1000
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1001
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
988
1002
|
const formRef = useRef(null);
|
|
989
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } =
|
|
990
|
-
const { data: userData, refetch, errors: userError, } =
|
|
991
|
-
const [saveWithdrawalSettings] =
|
|
992
|
-
const [updateWithdrawalSettings] =
|
|
1003
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
1004
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
1005
|
+
const [saveWithdrawalSettings] = $e(SAVE_WITHDRAWAL_SETTINGS);
|
|
1006
|
+
const [updateWithdrawalSettings] = $e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
993
1007
|
const [showVerification, setShowVerification] = useState(false);
|
|
994
1008
|
const [currentFormData, setCurrentFormData] = useState(null);
|
|
995
1009
|
const [formState, setFormState] = useState({});
|
|
@@ -1103,6 +1117,8 @@ function useBankingInfoForm(props) {
|
|
|
1103
1117
|
// Call difference mutations based on whether the user is updating
|
|
1104
1118
|
// the info for setting it for the first time
|
|
1105
1119
|
if (isPartner) {
|
|
1120
|
+
if (!token)
|
|
1121
|
+
return; // Require token for this mutation
|
|
1106
1122
|
response = await updateWithdrawalSettings({
|
|
1107
1123
|
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1108
1124
|
...body,
|
|
@@ -1140,6 +1156,8 @@ function useBankingInfoForm(props) {
|
|
|
1140
1156
|
});
|
|
1141
1157
|
return;
|
|
1142
1158
|
}
|
|
1159
|
+
// Fire form change event
|
|
1160
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1143
1161
|
await refetch();
|
|
1144
1162
|
setStep("/dashboard");
|
|
1145
1163
|
}
|
|
@@ -1215,6 +1233,7 @@ function useBankingInfoForm(props) {
|
|
|
1215
1233
|
onBack: () => setStep("/dashboard"),
|
|
1216
1234
|
setCountrySearch,
|
|
1217
1235
|
onVerification,
|
|
1236
|
+
onVerificationHide: () => onVerification(null),
|
|
1218
1237
|
},
|
|
1219
1238
|
states: {
|
|
1220
1239
|
showVerification,
|
|
@@ -1247,6 +1266,7 @@ function useBankingInfoForm(props) {
|
|
|
1247
1266
|
hasPayPal,
|
|
1248
1267
|
bankCountry: formState.bankCountry,
|
|
1249
1268
|
countrySearch,
|
|
1269
|
+
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1250
1270
|
},
|
|
1251
1271
|
refs: {
|
|
1252
1272
|
formRef,
|
|
@@ -1453,7 +1473,16 @@ const BankingInfoForm = class {
|
|
|
1453
1473
|
* @uiName Participant is a partner alert description
|
|
1454
1474
|
* @uiWidget textArea
|
|
1455
1475
|
*/
|
|
1456
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our
|
|
1476
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
1477
|
+
/**
|
|
1478
|
+
* Text for verify email dialog
|
|
1479
|
+
* @uiName Verify email header
|
|
1480
|
+
*/
|
|
1481
|
+
this.verifyEmailHeaderText = "Verify your email";
|
|
1482
|
+
/**
|
|
1483
|
+
* @uiName Verify code widget header text
|
|
1484
|
+
*/
|
|
1485
|
+
this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
1457
1486
|
/**
|
|
1458
1487
|
* Part of the alert displayed at the top of the page.
|
|
1459
1488
|
* @uiName Form submission error message title
|
|
@@ -1465,7 +1494,7 @@ const BankingInfoForm = class {
|
|
|
1465
1494
|
* @uiName Form submission error message description
|
|
1466
1495
|
* @uiWidget textArea
|
|
1467
1496
|
*/
|
|
1468
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
1497
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
1469
1498
|
/**
|
|
1470
1499
|
* Displayed under a field that is missing required information.
|
|
1471
1500
|
* @uiName Empty form field error message
|
|
@@ -1476,6 +1505,10 @@ const BankingInfoForm = class {
|
|
|
1476
1505
|
* @uiName Form field error message
|
|
1477
1506
|
*/
|
|
1478
1507
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
1508
|
+
/**
|
|
1509
|
+
* @uiName Support link text
|
|
1510
|
+
*/
|
|
1511
|
+
this.supportLink = "support team";
|
|
1479
1512
|
/**
|
|
1480
1513
|
* @uiName Continue button label
|
|
1481
1514
|
*/
|
|
@@ -1548,23 +1581,55 @@ const BankingInfoForm = class {
|
|
|
1548
1581
|
bitset: props.states.bitset,
|
|
1549
1582
|
formMap,
|
|
1550
1583
|
});
|
|
1551
|
-
const
|
|
1584
|
+
const style = {
|
|
1585
|
+
Dialog: {
|
|
1586
|
+
position: "relative",
|
|
1587
|
+
"&::part(panel)": {
|
|
1588
|
+
maxWidth: "420px",
|
|
1589
|
+
},
|
|
1590
|
+
"&::part(title)": {
|
|
1591
|
+
padding: "var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1592
|
+
},
|
|
1593
|
+
"&::part(base)": {
|
|
1594
|
+
position: "absolute",
|
|
1595
|
+
},
|
|
1596
|
+
"&::part(close-button)": {
|
|
1597
|
+
marginBottom: "var(--sl-spacing-large)",
|
|
1598
|
+
},
|
|
1599
|
+
"&::part(body)": {
|
|
1600
|
+
padding: "0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1601
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1602
|
+
},
|
|
1603
|
+
"&::part(footer)": {
|
|
1604
|
+
display: "flex",
|
|
1605
|
+
flexDirection: "column",
|
|
1606
|
+
gap: "var(--sl-spacing-small)",
|
|
1607
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
1608
|
+
alignItems: "center",
|
|
1609
|
+
flex: "1",
|
|
1610
|
+
},
|
|
1611
|
+
},
|
|
1552
1612
|
SearchInput: {
|
|
1553
1613
|
padding: "var(--sl-spacing-x-small)",
|
|
1554
1614
|
},
|
|
1555
1615
|
};
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1616
|
+
const sheet = createStyleSheet(style);
|
|
1617
|
+
const styleString = sheet.toString();
|
|
1618
|
+
const verifyDescription = intl.formatMessage({
|
|
1619
|
+
id: "codeResentSuccessfully",
|
|
1620
|
+
defaultMessage: props.text.verifyEmailDescriptionText,
|
|
1621
|
+
}, {
|
|
1622
|
+
email: props.states.email,
|
|
1623
|
+
});
|
|
1624
|
+
return (h(Host, null, h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1560
1625
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1561
|
-
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1626
|
+
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1562
1627
|
class: "error-input",
|
|
1563
1628
|
helpText: getValidationErrorMessage({
|
|
1564
1629
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
|
|
1565
1630
|
label: props.text.bankLocationLabel,
|
|
1566
1631
|
}),
|
|
1567
|
-
})), h("sl-input", { class:
|
|
1632
|
+
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1568
1633
|
// Stop shoelace intercepting key presses
|
|
1569
1634
|
e.stopPropagation();
|
|
1570
1635
|
}, "onSl-input": (e) => {
|
|
@@ -1575,21 +1640,21 @@ const BankingInfoForm = class {
|
|
|
1575
1640
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1576
1641
|
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1577
1642
|
paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1578
|
-
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1643
|
+
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1579
1644
|
class: "error-input",
|
|
1580
1645
|
helpText: getValidationErrorMessage({
|
|
1581
1646
|
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1582
1647
|
label: props.text.paymentThresholdSelectLabel,
|
|
1583
1648
|
}),
|
|
1584
1649
|
})), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1585
|
-
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1650
|
+
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1586
1651
|
class: "error-input",
|
|
1587
1652
|
helpText: getValidationErrorMessage({
|
|
1588
1653
|
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1589
1654
|
label: props.text.paymentDaySelectLabel,
|
|
1590
1655
|
}),
|
|
1591
1656
|
})), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1592
|
-
paypalInputSlot: (h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1657
|
+
paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1593
1658
|
class: "error-input",
|
|
1594
1659
|
helpText: getValidationErrorMessage({
|
|
1595
1660
|
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
@@ -1605,7 +1670,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1605
1670
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1606
1671
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1607
1672
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1608
|
-
const setStep =
|
|
1673
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
1609
1674
|
const [paymentMethodChecked, setPaymentMethodChecked] = useState(undefined);
|
|
1610
1675
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1611
1676
|
const [currency, setCurrency] = useState(defaultCurrency);
|
|
@@ -1680,6 +1745,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1680
1745
|
hasPayPal: true,
|
|
1681
1746
|
},
|
|
1682
1747
|
callbacks: {
|
|
1748
|
+
onVerificationHide: () => { },
|
|
1683
1749
|
onSubmit: async () => {
|
|
1684
1750
|
setStep("/dashboard");
|
|
1685
1751
|
},
|
|
@@ -1697,6 +1763,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1697
1763
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1698
1764
|
}
|
|
1699
1765
|
|
|
1766
|
+
const style$1 = {
|
|
1767
|
+
Wrapper: {
|
|
1768
|
+
display: "flex",
|
|
1769
|
+
flexDirection: "column",
|
|
1770
|
+
gap: "var(--sl-spacing-medium)",
|
|
1771
|
+
maxWidth: "550px",
|
|
1772
|
+
},
|
|
1773
|
+
HeaderContainer: {
|
|
1774
|
+
display: "flex",
|
|
1775
|
+
flexDirection: "column",
|
|
1776
|
+
},
|
|
1777
|
+
InputsContainer: {
|
|
1778
|
+
display: "flex",
|
|
1779
|
+
gap: "var(--sl-spacing-medium)",
|
|
1780
|
+
position: "relative",
|
|
1781
|
+
flexDirection: "column",
|
|
1782
|
+
},
|
|
1783
|
+
CodeInputContainer: {
|
|
1784
|
+
display: "flex",
|
|
1785
|
+
gap: "var(--sl-spacing-medium)",
|
|
1786
|
+
},
|
|
1787
|
+
CodeInput: {
|
|
1788
|
+
maxWidth: "40px",
|
|
1789
|
+
"&::part(input)": {
|
|
1790
|
+
margin: "0",
|
|
1791
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1792
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1793
|
+
},
|
|
1794
|
+
},
|
|
1795
|
+
CodeInputError: {
|
|
1796
|
+
...ErrorStyles,
|
|
1797
|
+
maxWidth: "40px",
|
|
1798
|
+
"&::part(input)": {
|
|
1799
|
+
margin: "0",
|
|
1800
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1801
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1802
|
+
},
|
|
1803
|
+
},
|
|
1804
|
+
ErrorText: {
|
|
1805
|
+
color: "var(--sl-color-danger-500)",
|
|
1806
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1807
|
+
margin: "0",
|
|
1808
|
+
},
|
|
1809
|
+
ContinueButton: {
|
|
1810
|
+
width: "100%",
|
|
1811
|
+
maxWidth: "100px",
|
|
1812
|
+
},
|
|
1813
|
+
FooterContainer: {
|
|
1814
|
+
display: "flex",
|
|
1815
|
+
flexDirection: "column",
|
|
1816
|
+
},
|
|
1817
|
+
SkeletonOne: {
|
|
1818
|
+
width: "50%",
|
|
1819
|
+
height: "16px",
|
|
1820
|
+
},
|
|
1821
|
+
SkeletonTwo: {
|
|
1822
|
+
width: "30%",
|
|
1823
|
+
height: "34px",
|
|
1824
|
+
},
|
|
1825
|
+
SkeletonThree: {
|
|
1826
|
+
width: "15%",
|
|
1827
|
+
height: "24px",
|
|
1828
|
+
},
|
|
1829
|
+
};
|
|
1830
|
+
const vanillaStyle$1 = `
|
|
1831
|
+
:host {
|
|
1832
|
+
display: block;
|
|
1833
|
+
}
|
|
1834
|
+
:host([hidden]): {
|
|
1835
|
+
display: none;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
`;
|
|
1840
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1841
|
+
const styleString$1 = sheet$1.toString();
|
|
1842
|
+
function WidgetCodeVerificationView(props) {
|
|
1843
|
+
const { states, refs, callbacks, text } = props;
|
|
1844
|
+
const resendCodeText = intl.formatMessage({
|
|
1845
|
+
id: "resendCodeText",
|
|
1846
|
+
defaultMessage: text.resendCodeText,
|
|
1847
|
+
}, {
|
|
1848
|
+
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1849
|
+
e.preventDefault();
|
|
1850
|
+
callbacks.resendEmail();
|
|
1851
|
+
} }, text.resendCodeLabel)),
|
|
1852
|
+
});
|
|
1853
|
+
const codeResentSuccessfully = intl.formatMessage({
|
|
1854
|
+
id: "codeResentSuccessfully",
|
|
1855
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1856
|
+
}, {
|
|
1857
|
+
email: states.email,
|
|
1858
|
+
});
|
|
1859
|
+
const inputClass = states.verifyFailed
|
|
1860
|
+
? sheet$1.classes.CodeInputError
|
|
1861
|
+
: sheet$1.classes.CodeInput;
|
|
1862
|
+
return (h("div", { part: "sqm-base" },
|
|
1863
|
+
h("style", { type: "text/css" },
|
|
1864
|
+
vanillaStyle$1,
|
|
1865
|
+
styleString$1),
|
|
1866
|
+
h("div", { class: sheet$1.classes.Wrapper },
|
|
1867
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1868
|
+
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1869
|
+
id: `emailHeaderText`,
|
|
1870
|
+
defaultMessage: states.verifyFailed
|
|
1871
|
+
? text.reverifyCodeHeaderText
|
|
1872
|
+
: text.verifyCodeHeaderText,
|
|
1873
|
+
}, { email: states.email }))),
|
|
1874
|
+
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1875
|
+
h("b", null, codeResentSuccessfully))),
|
|
1876
|
+
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1877
|
+
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1878
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1879
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1880
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1881
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1882
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1883
|
+
h("sl-input", { class: inputClass, name: "code" })),
|
|
1884
|
+
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1885
|
+
h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
1886
|
+
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1887
|
+
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1891
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1892
|
+
$user: UserIdInput!
|
|
1893
|
+
$code: String!
|
|
1894
|
+
) {
|
|
1895
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1896
|
+
verifiedEmail
|
|
1897
|
+
accessKey
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
`;
|
|
1901
|
+
function useWidgetCodeVerification(props) {
|
|
1902
|
+
const host = l();
|
|
1903
|
+
const [_, setShowCode] = bn(SHOW_CODE_NAMESPACE);
|
|
1904
|
+
const email = In(VERIFICATION_EMAIL_NAMESPACE);
|
|
1905
|
+
const [emailSent, setEmailSent] = useState(false);
|
|
1906
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
1907
|
+
const [codeRef, setCodeRef] = useState(null);
|
|
1908
|
+
const [validationError, setValidationError] = useState(false);
|
|
1909
|
+
const [emailError, setEmailError] = useState(false);
|
|
1910
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1911
|
+
useEffect(() => {
|
|
1912
|
+
if (!codeRef)
|
|
1913
|
+
return;
|
|
1914
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1915
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1916
|
+
codeElements.forEach((element, idx) => {
|
|
1917
|
+
element.addEventListener("focus", (e) => {
|
|
1918
|
+
e.target.select();
|
|
1919
|
+
});
|
|
1920
|
+
element.addEventListener("keydown", (e) => {
|
|
1921
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1922
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
element.addEventListener("input", (e) => {
|
|
1926
|
+
const input = e.data;
|
|
1927
|
+
if (!input)
|
|
1928
|
+
return;
|
|
1929
|
+
if (idx === codeElements.length - 1) {
|
|
1930
|
+
e.target.value = input.slice(0, 1);
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
if (input.length > 1) {
|
|
1934
|
+
const rest = input.slice(1);
|
|
1935
|
+
e.target.value = input.slice(0, 1);
|
|
1936
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1937
|
+
inputType: "insertFromPaste",
|
|
1938
|
+
data: rest,
|
|
1939
|
+
}));
|
|
1940
|
+
}
|
|
1941
|
+
codeElements[idx + 1].focus();
|
|
1942
|
+
});
|
|
1943
|
+
});
|
|
1944
|
+
}, [codeRef]);
|
|
1945
|
+
const reset = () => {
|
|
1946
|
+
setShowCode(false);
|
|
1947
|
+
setValidationError(false);
|
|
1948
|
+
};
|
|
1949
|
+
const resendEmail = async () => {
|
|
1950
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1951
|
+
if (!initialized)
|
|
1952
|
+
return;
|
|
1953
|
+
const result = await sendEmail();
|
|
1954
|
+
if (!result) {
|
|
1955
|
+
setEmailError(true);
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
if (emailSent)
|
|
1959
|
+
setEmailResent(true);
|
|
1960
|
+
setEmailSent(true);
|
|
1961
|
+
};
|
|
1962
|
+
const submitCode = async () => {
|
|
1963
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1964
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1965
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1966
|
+
setValidationError(true);
|
|
1967
|
+
return;
|
|
1968
|
+
}
|
|
1969
|
+
let code = "";
|
|
1970
|
+
codeElements.forEach((element) => {
|
|
1971
|
+
code = `${code}${element.value}`;
|
|
1972
|
+
});
|
|
1973
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1974
|
+
if (!initialized)
|
|
1975
|
+
return;
|
|
1976
|
+
setValidationError(false);
|
|
1977
|
+
const res = await verifyEmail(code);
|
|
1978
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1979
|
+
props.onVerification(res.accessKey);
|
|
1980
|
+
reset();
|
|
1981
|
+
}
|
|
1982
|
+
else {
|
|
1983
|
+
setValidationError(true);
|
|
1984
|
+
}
|
|
1985
|
+
};
|
|
1986
|
+
useEffect(() => {
|
|
1987
|
+
// Wait for mutations to be determined from user lookup
|
|
1988
|
+
if (!initialized)
|
|
1989
|
+
return;
|
|
1990
|
+
// email should already exist if user has completed email-verification
|
|
1991
|
+
if (!email)
|
|
1992
|
+
resendEmail();
|
|
1993
|
+
else
|
|
1994
|
+
setEmailSent(true);
|
|
1995
|
+
}, [initialized]);
|
|
1996
|
+
return {
|
|
1997
|
+
refs: {
|
|
1998
|
+
codeWrapperRef: setCodeRef,
|
|
1999
|
+
},
|
|
2000
|
+
states: {
|
|
2001
|
+
email: verificationEmail,
|
|
2002
|
+
emailResent,
|
|
2003
|
+
resendError: sendErrors || verifyErrors,
|
|
2004
|
+
initialiseLoading: !initialized,
|
|
2005
|
+
loading: sendLoading || verifyLoading,
|
|
2006
|
+
verifyFailed: !!validationError,
|
|
2007
|
+
},
|
|
2008
|
+
callbacks: {
|
|
2009
|
+
resendEmail,
|
|
2010
|
+
submitCode,
|
|
2011
|
+
},
|
|
2012
|
+
text: props.getTextProps(),
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
const WidgetCodeVerification = class {
|
|
2017
|
+
constructor(hostRef) {
|
|
2018
|
+
registerInstance(this, hostRef);
|
|
2019
|
+
/**
|
|
2020
|
+
* @uiName Verify code widget header text
|
|
2021
|
+
*/
|
|
2022
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2023
|
+
/**
|
|
2024
|
+
* @uiName Reverify code widget header text
|
|
2025
|
+
*/
|
|
2026
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2027
|
+
/**
|
|
2028
|
+
* Text displayed under verify button
|
|
2029
|
+
* @uiName Resend code text
|
|
2030
|
+
*/
|
|
2031
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2032
|
+
/**
|
|
2033
|
+
* The link that appears in the resend code link
|
|
2034
|
+
* @uiName Resend code label
|
|
2035
|
+
*/
|
|
2036
|
+
this.resendCodeLabel = "Resend code";
|
|
2037
|
+
/**
|
|
2038
|
+
* Link text displayed under verify button
|
|
2039
|
+
* @uiName Resend code text
|
|
2040
|
+
*/
|
|
2041
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2042
|
+
/**
|
|
2043
|
+
* Error text displayed under verification input
|
|
2044
|
+
* @uiName Invalid code text
|
|
2045
|
+
*/
|
|
2046
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2047
|
+
/**
|
|
2048
|
+
* @uiName Verify code button text
|
|
2049
|
+
*/
|
|
2050
|
+
this.verifyText = "Verify";
|
|
2051
|
+
/**
|
|
2052
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2053
|
+
* @uiName Network error message
|
|
2054
|
+
*/
|
|
2055
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2056
|
+
h$1(this);
|
|
2057
|
+
}
|
|
2058
|
+
disconnectedCallback() { }
|
|
2059
|
+
getTextProps() {
|
|
2060
|
+
return getProps(this);
|
|
2061
|
+
}
|
|
2062
|
+
render() {
|
|
2063
|
+
const props = isDemo()
|
|
2064
|
+
? useDemoWidgetCodeVerification(this)
|
|
2065
|
+
: useWidgetCodeVerification(this);
|
|
2066
|
+
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2070
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
2071
|
+
const setVerifiedContext = wn(VERIFICATION_PARENT_NAMESPACE);
|
|
2072
|
+
return cjs({
|
|
2073
|
+
states: {
|
|
2074
|
+
loading: false,
|
|
2075
|
+
email: "test@example.com",
|
|
2076
|
+
emailResent,
|
|
2077
|
+
resendError: false,
|
|
2078
|
+
verifyFailed: false,
|
|
2079
|
+
},
|
|
2080
|
+
refs: {
|
|
2081
|
+
codeWrapperRef: () => { },
|
|
2082
|
+
},
|
|
2083
|
+
callbacks: {
|
|
2084
|
+
resendEmail: async () => setEmailResent(true),
|
|
2085
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2086
|
+
},
|
|
2087
|
+
text: props.getTextProps(),
|
|
2088
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2089
|
+
}
|
|
2090
|
+
|
|
1700
2091
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1701
2092
|
mutation createImpactPublisherTaxDocument(
|
|
1702
2093
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1724,13 +2115,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1724
2115
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1725
2116
|
function useDocusignForm(props) {
|
|
1726
2117
|
var _a, _b, _c;
|
|
1727
|
-
const user =
|
|
1728
|
-
const context =
|
|
1729
|
-
const [step, setStep] =
|
|
1730
|
-
const { data, loading: userLoading, refetch, } =
|
|
2118
|
+
const user = Q();
|
|
2119
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2120
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
2121
|
+
const { data, loading: userLoading, refetch, } = Mn(USER_QUERY_NAMESPACE);
|
|
1731
2122
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1732
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] =
|
|
1733
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] =
|
|
2123
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = $e(GET_TAX_DOCUMENT);
|
|
2124
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = $e(COMPLETE_TAX_DOCUMENT);
|
|
1734
2125
|
const [docusignStatus, setDocusignStatus] = useState(undefined);
|
|
1735
2126
|
const [participantType, setParticipantType] = useState(undefined);
|
|
1736
2127
|
const [errors, setErrors] = useState({});
|
|
@@ -1794,6 +2185,8 @@ function useDocusignForm(props) {
|
|
|
1794
2185
|
// @ts-expect-error: no data type for result
|
|
1795
2186
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1796
2187
|
throw new Error();
|
|
2188
|
+
// Fire form change event
|
|
2189
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1797
2190
|
setShowExitButton(true);
|
|
1798
2191
|
}
|
|
1799
2192
|
catch (e) {
|
|
@@ -1852,7 +2245,7 @@ function getDocumentType(p) {
|
|
|
1852
2245
|
return undefined;
|
|
1853
2246
|
}
|
|
1854
2247
|
|
|
1855
|
-
const style$
|
|
2248
|
+
const style$2 = {
|
|
1856
2249
|
DocusignStatusContainer: {
|
|
1857
2250
|
width: "100%",
|
|
1858
2251
|
minHeight: "600px",
|
|
@@ -1879,13 +2272,13 @@ const style$1 = {
|
|
|
1879
2272
|
},
|
|
1880
2273
|
},
|
|
1881
2274
|
};
|
|
1882
|
-
const sheet$
|
|
1883
|
-
const styleString$
|
|
2275
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2276
|
+
const styleString$2 = sheet$2.toString();
|
|
1884
2277
|
const DocusignExpiredView = (props) => {
|
|
1885
|
-
const { classes } = sheet$
|
|
2278
|
+
const { classes } = sheet$2;
|
|
1886
2279
|
const { text } = props;
|
|
1887
2280
|
return (h("div", null,
|
|
1888
|
-
h("style", { type: "text/css" }, styleString$
|
|
2281
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1889
2282
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1890
2283
|
h("sl-icon", { style: {
|
|
1891
2284
|
width: "50px",
|
|
@@ -1897,10 +2290,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1897
2290
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1898
2291
|
};
|
|
1899
2292
|
const DocusignErrorView = (props) => {
|
|
1900
|
-
const { classes } = sheet$
|
|
2293
|
+
const { classes } = sheet$2;
|
|
1901
2294
|
const { text } = props;
|
|
1902
2295
|
return (h("div", null,
|
|
1903
|
-
h("style", { type: "text/css" }, styleString$
|
|
2296
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1904
2297
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1905
2298
|
h("sl-icon", { style: {
|
|
1906
2299
|
width: "50px",
|
|
@@ -1912,14 +2305,14 @@ const DocusignErrorView = (props) => {
|
|
|
1912
2305
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1913
2306
|
};
|
|
1914
2307
|
const DocusignLoadingView = () => {
|
|
1915
|
-
const { classes } = sheet$
|
|
2308
|
+
const { classes } = sheet$2;
|
|
1916
2309
|
return (h("div", null,
|
|
1917
|
-
h("style", { type: "text/css" }, styleString$
|
|
2310
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1918
2311
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1919
2312
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1920
2313
|
};
|
|
1921
2314
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1922
|
-
const { classes } = sheet$
|
|
2315
|
+
const { classes } = sheet$2;
|
|
1923
2316
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1924
2317
|
const allowedDomains = [
|
|
1925
2318
|
"referralsaasquatch.com",
|
|
@@ -1952,12 +2345,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1952
2345
|
return h(DocusignExpiredView, { text: text });
|
|
1953
2346
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1954
2347
|
return (h("div", { style: { height: iFrameHeight } },
|
|
1955
|
-
h("style", { type: "text/css" }, styleString$
|
|
2348
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1956
2349
|
h("div", { class: classes.IFrameContainer },
|
|
1957
2350
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1958
2351
|
};
|
|
1959
2352
|
|
|
1960
|
-
const style$
|
|
2353
|
+
const style$3 = {
|
|
1961
2354
|
FormWrapper: {
|
|
1962
2355
|
display: "flex",
|
|
1963
2356
|
justifyContent: "flex-start",
|
|
@@ -2070,9 +2463,9 @@ const style$2 = {
|
|
|
2070
2463
|
fontSize: "var(--sl-font-size-medium)",
|
|
2071
2464
|
},
|
|
2072
2465
|
};
|
|
2073
|
-
const sheet$
|
|
2074
|
-
const styleString$
|
|
2075
|
-
const vanillaStyle$
|
|
2466
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2467
|
+
const styleString$3 = sheet$3.toString();
|
|
2468
|
+
const vanillaStyle$2 = `
|
|
2076
2469
|
:host{
|
|
2077
2470
|
display: block;
|
|
2078
2471
|
}
|
|
@@ -2097,11 +2490,11 @@ const vanillaStyle$1 = `
|
|
|
2097
2490
|
const DocusignFormView = (props) => {
|
|
2098
2491
|
var _a;
|
|
2099
2492
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2100
|
-
const { classes } = sheet$
|
|
2493
|
+
const { classes } = sheet$3;
|
|
2101
2494
|
return (h("div", { class: classes.Container },
|
|
2102
2495
|
h("style", { type: "text/css" },
|
|
2103
|
-
styleString$
|
|
2104
|
-
vanillaStyle$
|
|
2496
|
+
styleString$3,
|
|
2497
|
+
vanillaStyle$2),
|
|
2105
2498
|
h("div", { class: classes.TextContainer },
|
|
2106
2499
|
h("div", null,
|
|
2107
2500
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2111,16 +2504,26 @@ const DocusignFormView = (props) => {
|
|
|
2111
2504
|
h("h3", null, text.taxForm),
|
|
2112
2505
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2113
2506
|
states.loadingError && (h("div", null,
|
|
2114
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2507
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2115
2508
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2116
2509
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2117
2510
|
h("br", null),
|
|
2118
|
-
|
|
2119
|
-
|
|
2511
|
+
intl.formatMessage({
|
|
2512
|
+
id: "loadingErrorAlertDescription",
|
|
2513
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2514
|
+
}, {
|
|
2515
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2516
|
+
})))),
|
|
2517
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2120
2518
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2121
2519
|
h("strong", null, text.error.generalTitle),
|
|
2122
2520
|
h("br", null),
|
|
2123
|
-
|
|
2521
|
+
intl.formatMessage({
|
|
2522
|
+
id: "generalDescription",
|
|
2523
|
+
defaultMessage: text.error.generalDescription,
|
|
2524
|
+
}, {
|
|
2525
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2526
|
+
}))),
|
|
2124
2527
|
h("div", null,
|
|
2125
2528
|
h("div", null,
|
|
2126
2529
|
h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
@@ -2159,6 +2562,10 @@ const DocusignForm = class {
|
|
|
2159
2562
|
* @uiWidget textArea
|
|
2160
2563
|
*/
|
|
2161
2564
|
this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
2565
|
+
/**
|
|
2566
|
+
* @uiName Support link text
|
|
2567
|
+
*/
|
|
2568
|
+
this.supportLink = "support team";
|
|
2162
2569
|
/**
|
|
2163
2570
|
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
2164
2571
|
* @uiName W-8 BEN tax form description
|
|
@@ -2202,7 +2609,7 @@ const DocusignForm = class {
|
|
|
2202
2609
|
* @uiName Docusign form error message
|
|
2203
2610
|
* @uiWidget textArea
|
|
2204
2611
|
*/
|
|
2205
|
-
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
2612
|
+
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
2206
2613
|
/**
|
|
2207
2614
|
* @uiName Refresh page button label
|
|
2208
2615
|
*/
|
|
@@ -2218,7 +2625,7 @@ const DocusignForm = class {
|
|
|
2218
2625
|
* @uiName Form submission error message description
|
|
2219
2626
|
* @uiWidget textArea
|
|
2220
2627
|
*/
|
|
2221
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
2628
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2222
2629
|
/**
|
|
2223
2630
|
* Part of the alert displayed at the top of the page.
|
|
2224
2631
|
* @uiName Page load error message title
|
|
@@ -2230,7 +2637,7 @@ const DocusignForm = class {
|
|
|
2230
2637
|
* @uiName Page load error message description
|
|
2231
2638
|
* @uiWidget textArea
|
|
2232
2639
|
*/
|
|
2233
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
2640
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2234
2641
|
/**
|
|
2235
2642
|
* Displayed at the top of the page on all set up steps.
|
|
2236
2643
|
* @uiName Page description
|
|
@@ -2278,7 +2685,7 @@ const DocusignForm = class {
|
|
|
2278
2685
|
get el() { return getElement(this); }
|
|
2279
2686
|
};
|
|
2280
2687
|
function useDocusignFormDemo(props) {
|
|
2281
|
-
const setStep =
|
|
2688
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2282
2689
|
return cjs({
|
|
2283
2690
|
text: props.getTextProps(),
|
|
2284
2691
|
states: {
|
|
@@ -2327,7 +2734,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2327
2734
|
} }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2328
2735
|
};
|
|
2329
2736
|
|
|
2330
|
-
const style$
|
|
2737
|
+
const style$4 = {
|
|
2331
2738
|
FormWrapper: {
|
|
2332
2739
|
display: "flex",
|
|
2333
2740
|
justifyContent: "flex-start",
|
|
@@ -2415,11 +2822,9 @@ const style$3 = {
|
|
|
2415
2822
|
border: "none",
|
|
2416
2823
|
},
|
|
2417
2824
|
"&::part(message)": {
|
|
2418
|
-
display: "flex",
|
|
2419
2825
|
alignItems: "center",
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
height: "max-content",
|
|
2826
|
+
padding: "var(--sl-spacing-small)",
|
|
2827
|
+
whiteSpace: "nowrap",
|
|
2423
2828
|
},
|
|
2424
2829
|
"& sl-icon::part(base)": {
|
|
2425
2830
|
color: "var(--sl-color-yellow-500)",
|
|
@@ -2435,9 +2840,9 @@ const style$3 = {
|
|
|
2435
2840
|
marginBottom: "var(--sl-spacing-small)",
|
|
2436
2841
|
},
|
|
2437
2842
|
};
|
|
2438
|
-
const sheet$
|
|
2439
|
-
const styleString$
|
|
2440
|
-
const vanillaStyle$
|
|
2843
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2844
|
+
const styleString$4 = sheet$4.toString();
|
|
2845
|
+
const vanillaStyle$3 = `
|
|
2441
2846
|
:host{
|
|
2442
2847
|
display: block;
|
|
2443
2848
|
}
|
|
@@ -2456,11 +2861,11 @@ const vanillaStyle$2 = `
|
|
|
2456
2861
|
const IndirectTaxFormView = (props) => {
|
|
2457
2862
|
var _a;
|
|
2458
2863
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2459
|
-
const { classes } = sheet$
|
|
2864
|
+
const { classes } = sheet$4;
|
|
2460
2865
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2461
2866
|
h("style", { type: "text/css" },
|
|
2462
|
-
styleString$
|
|
2463
|
-
vanillaStyle$
|
|
2867
|
+
styleString$4,
|
|
2868
|
+
vanillaStyle$3),
|
|
2464
2869
|
h("div", { class: classes.TextContainer },
|
|
2465
2870
|
h("div", null,
|
|
2466
2871
|
!states.hideSteps && (h("p", null,
|
|
@@ -2473,21 +2878,36 @@ const IndirectTaxFormView = (props) => {
|
|
|
2473
2878
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2474
2879
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2475
2880
|
states.loadingError && (h("div", null,
|
|
2476
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2881
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2477
2882
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2478
2883
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2479
2884
|
h("br", null),
|
|
2480
|
-
|
|
2481
|
-
|
|
2885
|
+
intl.formatMessage({
|
|
2886
|
+
id: "loadingErrorAlertDescription",
|
|
2887
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2888
|
+
}, {
|
|
2889
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2890
|
+
})))),
|
|
2891
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
2482
2892
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2483
2893
|
h("strong", null, text.error.generalTitle),
|
|
2484
2894
|
h("br", null),
|
|
2485
|
-
|
|
2486
|
-
|
|
2895
|
+
intl.formatMessage({
|
|
2896
|
+
id: "generalDescription",
|
|
2897
|
+
defaultMessage: text.error.generalDescription,
|
|
2898
|
+
}, {
|
|
2899
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2900
|
+
}))),
|
|
2901
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2487
2902
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2488
2903
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2489
2904
|
h("br", null),
|
|
2490
|
-
|
|
2905
|
+
intl.formatMessage({
|
|
2906
|
+
id: "isPartnerAlertDescription",
|
|
2907
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
2908
|
+
}, {
|
|
2909
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2910
|
+
}))),
|
|
2491
2911
|
h("div", null,
|
|
2492
2912
|
h("h4", null, text.indirectTaxDetails))),
|
|
2493
2913
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
@@ -2504,7 +2924,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2504
2924
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2505
2925
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2506
2926
|
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2507
|
-
|
|
2927
|
+
intl.formatMessage({
|
|
2928
|
+
id: "cannotChangeInfoAlert",
|
|
2929
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2930
|
+
}, {
|
|
2931
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2932
|
+
})),
|
|
2508
2933
|
h("div", { class: classes.BtnContainer },
|
|
2509
2934
|
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2510
2935
|
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -2548,15 +2973,15 @@ function getOption(countries, countryCode) {
|
|
|
2548
2973
|
}
|
|
2549
2974
|
function useIndirectTaxForm(props) {
|
|
2550
2975
|
var _a, _b, _c, _d, _e;
|
|
2551
|
-
const user =
|
|
2552
|
-
const locale =
|
|
2976
|
+
const user = Q();
|
|
2977
|
+
const locale = L();
|
|
2553
2978
|
const formRef = useRef(null);
|
|
2554
|
-
const context =
|
|
2555
|
-
const [step, setStep] =
|
|
2556
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] =
|
|
2557
|
-
const userForm =
|
|
2558
|
-
const { data: userData, refetch, errors: userError, } =
|
|
2559
|
-
const { data: _countriesRes, loading: countriesLoading } =
|
|
2979
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2980
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
2981
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
2982
|
+
const userForm = In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2983
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
2984
|
+
const { data: _countriesRes, loading: countriesLoading } = Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2560
2985
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2561
2986
|
const _countries = useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2562
2987
|
const [loading, setLoading] = useState(false);
|
|
@@ -2674,6 +3099,8 @@ function useIndirectTaxForm(props) {
|
|
|
2674
3099
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2675
3100
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2676
3101
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3102
|
+
// Fire form change event
|
|
3103
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2677
3104
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2678
3105
|
!hasValidCurrentDocument) {
|
|
2679
3106
|
// Go to docusign form
|
|
@@ -2832,7 +3259,7 @@ const IndirectTaxForm = class {
|
|
|
2832
3259
|
* @uiName Submission confirmation alert
|
|
2833
3260
|
* @uiWidget textArea
|
|
2834
3261
|
*/
|
|
2835
|
-
this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
3262
|
+
this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
2836
3263
|
/**
|
|
2837
3264
|
* @uiName Missing indirect tax number error message
|
|
2838
3265
|
*/
|
|
@@ -2858,11 +3285,15 @@ const IndirectTaxForm = class {
|
|
|
2858
3285
|
* @uiName Participant is a partner alert description
|
|
2859
3286
|
* @uiWidget textArea
|
|
2860
3287
|
*/
|
|
2861
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
3288
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
2862
3289
|
/**
|
|
2863
3290
|
* @uiName Continue button label
|
|
2864
3291
|
*/
|
|
2865
3292
|
this.continueButton = "Continue";
|
|
3293
|
+
/**
|
|
3294
|
+
* @uiName Support link text
|
|
3295
|
+
*/
|
|
3296
|
+
this.supportLink = "support team";
|
|
2866
3297
|
/**
|
|
2867
3298
|
* Part of the alert displayed at the top of the page.
|
|
2868
3299
|
* @uiName Form submission error message title
|
|
@@ -2874,7 +3305,7 @@ const IndirectTaxForm = class {
|
|
|
2874
3305
|
* @uiName Form submission error message description
|
|
2875
3306
|
* @uiWidget textArea
|
|
2876
3307
|
*/
|
|
2877
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
3308
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2878
3309
|
/**
|
|
2879
3310
|
* Part of the alert displayed at the top of the page.
|
|
2880
3311
|
* @uiName Page load error message title
|
|
@@ -2886,7 +3317,7 @@ const IndirectTaxForm = class {
|
|
|
2886
3317
|
* @uiName Page load error message description
|
|
2887
3318
|
* @uiWidget textArea
|
|
2888
3319
|
*/
|
|
2889
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
3320
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2890
3321
|
/**
|
|
2891
3322
|
* Displayed at the top of the page on all set up steps.
|
|
2892
3323
|
* @uiName Page description
|
|
@@ -2945,7 +3376,7 @@ const IndirectTaxForm = class {
|
|
|
2945
3376
|
}
|
|
2946
3377
|
};
|
|
2947
3378
|
function useDemoIndirectTaxForm(props) {
|
|
2948
|
-
const setStep =
|
|
3379
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2949
3380
|
const [option, setOption] = useState(null);
|
|
2950
3381
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2951
3382
|
return cjs({
|
|
@@ -3055,8 +3486,8 @@ const GET_INVOICES = dist.gql `
|
|
|
3055
3486
|
`;
|
|
3056
3487
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
3057
3488
|
var _a;
|
|
3058
|
-
const user =
|
|
3059
|
-
const locale =
|
|
3489
|
+
const user = Q();
|
|
3490
|
+
const locale = L();
|
|
3060
3491
|
const [content, setContent] = useReducer((state, next) => ({
|
|
3061
3492
|
...state,
|
|
3062
3493
|
...next,
|
|
@@ -3066,7 +3497,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3066
3497
|
loading: false,
|
|
3067
3498
|
page: 0,
|
|
3068
3499
|
});
|
|
3069
|
-
const { envelope: invoicesData, states, callbacks, } =
|
|
3500
|
+
const { envelope: invoicesData, states, callbacks, } = kn(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.invoices; }, {
|
|
3070
3501
|
limit: props.perPage,
|
|
3071
3502
|
offset: 0,
|
|
3072
3503
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3442,7 +3873,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3442
3873
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3443
3874
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3444
3875
|
|
|
3445
|
-
const style$
|
|
3876
|
+
const style$5 = {
|
|
3446
3877
|
CardContainer: {
|
|
3447
3878
|
display: "grid",
|
|
3448
3879
|
gridTemplateColumns: "1fr",
|
|
@@ -3576,7 +4007,7 @@ const style$4 = {
|
|
|
3576
4007
|
},
|
|
3577
4008
|
};
|
|
3578
4009
|
function PayoutDetailsCardView(props) {
|
|
3579
|
-
const sheet = createStyleSheet(style$
|
|
4010
|
+
const sheet = createStyleSheet(style$5);
|
|
3580
4011
|
const styleString = sheet.toString();
|
|
3581
4012
|
const { classes } = sheet;
|
|
3582
4013
|
const { states, text } = props;
|
|
@@ -3606,11 +4037,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3606
4037
|
});
|
|
3607
4038
|
return (h("div", { class: classes.Container },
|
|
3608
4039
|
h("style", { type: "text/css" }, styleString),
|
|
3609
|
-
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3610
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3611
|
-
h("div", { class: classes.AlertContent },
|
|
3612
|
-
h("b", null, text.error.errorTitleText),
|
|
3613
|
-
text.error.errorDescriptionText))),
|
|
3614
4040
|
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
3615
4041
|
h("div", { class: classes.StatusContainer },
|
|
3616
4042
|
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3632,7 +4058,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3632
4058
|
|
|
3633
4059
|
function usePayoutDetailsCard(props) {
|
|
3634
4060
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3635
|
-
const { data, loading } =
|
|
4061
|
+
const { data, loading } = Mn(USER_QUERY_NAMESPACE);
|
|
3636
4062
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3637
4063
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3638
4064
|
var _a;
|
|
@@ -3706,16 +4132,6 @@ const PayoutDetailsCard = class {
|
|
|
3706
4132
|
* @uiName Bank account field label
|
|
3707
4133
|
*/
|
|
3708
4134
|
this.accountText = "Account";
|
|
3709
|
-
/**
|
|
3710
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3711
|
-
* @uiName Payout error message title
|
|
3712
|
-
*/
|
|
3713
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3714
|
-
/**
|
|
3715
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3716
|
-
* @uiName Payout error message description
|
|
3717
|
-
*/
|
|
3718
|
-
this.errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
|
|
3719
4135
|
/**
|
|
3720
4136
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3721
4137
|
* @uiName Payout missing information subtext
|
|
@@ -3728,10 +4144,6 @@ const PayoutDetailsCard = class {
|
|
|
3728
4144
|
const props = getProps(this);
|
|
3729
4145
|
return {
|
|
3730
4146
|
...props,
|
|
3731
|
-
error: {
|
|
3732
|
-
errorTitleText: this.errorTitleText,
|
|
3733
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3734
|
-
},
|
|
3735
4147
|
};
|
|
3736
4148
|
}
|
|
3737
4149
|
render() {
|
|
@@ -3803,21 +4215,21 @@ function getCurrentStep(user) {
|
|
|
3803
4215
|
}
|
|
3804
4216
|
function useTaxAndCash() {
|
|
3805
4217
|
var _a, _b, _c, _d, _e;
|
|
3806
|
-
const host =
|
|
3807
|
-
const user =
|
|
3808
|
-
const locale =
|
|
4218
|
+
const host = _();
|
|
4219
|
+
const user = Q();
|
|
4220
|
+
const locale = L();
|
|
3809
4221
|
// State for current step of form
|
|
3810
|
-
const [step, setStep] =
|
|
4222
|
+
const [step, setStep] = Cn({
|
|
3811
4223
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3812
4224
|
initialValue: "/loading",
|
|
3813
4225
|
});
|
|
3814
4226
|
// State for when to hide steps, or override certain actions
|
|
3815
|
-
const [context, _setContext] =
|
|
4227
|
+
const [context, _setContext] = Cn({
|
|
3816
4228
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3817
4229
|
initialValue: {},
|
|
3818
4230
|
});
|
|
3819
4231
|
// State to carry user form information into step 2
|
|
3820
|
-
const [userFormContext, _setUserFormContext] =
|
|
4232
|
+
const [userFormContext, _setUserFormContext] = Cn({
|
|
3821
4233
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3822
4234
|
initialValue: {
|
|
3823
4235
|
firstName: undefined,
|
|
@@ -3827,19 +4239,19 @@ function useTaxAndCash() {
|
|
|
3827
4239
|
currency: undefined,
|
|
3828
4240
|
},
|
|
3829
4241
|
});
|
|
3830
|
-
const [_currenciesContext, setCurrenciesContext] =
|
|
4242
|
+
const [_currenciesContext, setCurrenciesContext] = Cn({
|
|
3831
4243
|
namespace: CURRENCIES_NAMESPACE,
|
|
3832
4244
|
initialValue: [],
|
|
3833
4245
|
});
|
|
3834
|
-
const [_countriesContext, _setCountriesContext] =
|
|
4246
|
+
const [_countriesContext, _setCountriesContext] = Cn({
|
|
3835
4247
|
namespace: COUNTRIES_NAMESPACE,
|
|
3836
4248
|
initialValue: [],
|
|
3837
4249
|
});
|
|
3838
|
-
const [_sortedCountriesContext, setSortedCountriesContext] =
|
|
4250
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = Cn({
|
|
3839
4251
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3840
4252
|
initialValue: [],
|
|
3841
4253
|
});
|
|
3842
|
-
const { data, errors } =
|
|
4254
|
+
const { data, errors } = Fn({
|
|
3843
4255
|
namespace: USER_QUERY_NAMESPACE,
|
|
3844
4256
|
query: GET_USER,
|
|
3845
4257
|
skip: !user,
|
|
@@ -3849,12 +4261,12 @@ function useTaxAndCash() {
|
|
|
3849
4261
|
});
|
|
3850
4262
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
3851
4263
|
userFormContext.countryCode;
|
|
3852
|
-
|
|
4264
|
+
Fn({
|
|
3853
4265
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3854
4266
|
query: GET_COUNTRIES,
|
|
3855
4267
|
skip: !user,
|
|
3856
4268
|
});
|
|
3857
|
-
const { data: financeNetworkData, refetch } =
|
|
4269
|
+
const { data: financeNetworkData, refetch } = Fn({
|
|
3858
4270
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3859
4271
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3860
4272
|
skip: !user,
|
|
@@ -3862,7 +4274,7 @@ function useTaxAndCash() {
|
|
|
3862
4274
|
filter: getFinanceNetworkFilter(),
|
|
3863
4275
|
},
|
|
3864
4276
|
});
|
|
3865
|
-
const { data: currenciesData } =
|
|
4277
|
+
const { data: currenciesData } = Fn({
|
|
3866
4278
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3867
4279
|
query: GET_CURRENCIES,
|
|
3868
4280
|
skip: !user,
|
|
@@ -3943,7 +4355,7 @@ function useTaxAndCash() {
|
|
|
3943
4355
|
step,
|
|
3944
4356
|
setStep,
|
|
3945
4357
|
context,
|
|
3946
|
-
namespace:
|
|
4358
|
+
namespace: Pn(TAX_CONTEXT_NAMESPACE),
|
|
3947
4359
|
loading: step === "/loading",
|
|
3948
4360
|
};
|
|
3949
4361
|
}
|
|
@@ -4045,13 +4457,15 @@ const TaxAndCashMonolith = class {
|
|
|
4045
4457
|
* @uiName Terms and conditions link
|
|
4046
4458
|
* @uiGroup Step 1 Properties
|
|
4047
4459
|
*/
|
|
4048
|
-
this.step1_termsAndConditionsLink = "/
|
|
4460
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4049
4461
|
/**
|
|
4050
4462
|
* Placeholder text displayed in the currency search dropdown
|
|
4051
4463
|
* @uiName Currency field placeholder text
|
|
4052
4464
|
* @uiGroup Step 1 Properties
|
|
4053
4465
|
*/
|
|
4054
4466
|
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4467
|
+
/**
|
|
4468
|
+
|
|
4055
4469
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4056
4470
|
STEP 2 PROPS:
|
|
4057
4471
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4154,7 +4568,7 @@ const TaxAndCashMonolith = class {
|
|
|
4154
4568
|
* @uiGroup Step 2 Properties
|
|
4155
4569
|
* @uiWidget textArea
|
|
4156
4570
|
*/
|
|
4157
|
-
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
4571
|
+
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
4158
4572
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4159
4573
|
STEP 3 PROPS:
|
|
4160
4574
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4227,7 +4641,7 @@ const TaxAndCashMonolith = class {
|
|
|
4227
4641
|
* @uiGroup Step 3 Properties
|
|
4228
4642
|
* @uiWidget textArea
|
|
4229
4643
|
*/
|
|
4230
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
4644
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4231
4645
|
/**
|
|
4232
4646
|
* @uiName Refresh page button label
|
|
4233
4647
|
* @uiGroup Step 3 Properties
|
|
@@ -4452,6 +4866,16 @@ const TaxAndCashMonolith = class {
|
|
|
4452
4866
|
* @uiGroup Step 4 Properties
|
|
4453
4867
|
*/
|
|
4454
4868
|
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4869
|
+
/**
|
|
4870
|
+
* @uiName Text for verify email dialog
|
|
4871
|
+
* @uiGroup Step 4 Properties
|
|
4872
|
+
*/
|
|
4873
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4874
|
+
/**
|
|
4875
|
+
* @uiName Verify code widget header text
|
|
4876
|
+
* @uiGroup Step 4 Properties
|
|
4877
|
+
*/
|
|
4878
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4455
4879
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4456
4880
|
DASHBOARD PROPS:
|
|
4457
4881
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4589,7 +5013,7 @@ const TaxAndCashMonolith = class {
|
|
|
4589
5013
|
* @uiGroup Dashboard Properties
|
|
4590
5014
|
* @uiWidget textArea
|
|
4591
5015
|
*/
|
|
4592
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact
|
|
5016
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4593
5017
|
/**
|
|
4594
5018
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4595
5019
|
*
|
|
@@ -4612,7 +5036,7 @@ const TaxAndCashMonolith = class {
|
|
|
4612
5036
|
* @uiGroup Dashboard Properties
|
|
4613
5037
|
* @uiWidget textArea
|
|
4614
5038
|
*/
|
|
4615
|
-
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
5039
|
+
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
4616
5040
|
/**
|
|
4617
5041
|
* Displayed to participants registered in Quebec, Canada.
|
|
4618
5042
|
* @uiName QST indirect tax details
|
|
@@ -4684,14 +5108,14 @@ const TaxAndCashMonolith = class {
|
|
|
4684
5108
|
* @uiGroup Dashboard Properties
|
|
4685
5109
|
* @uiWidget textArea
|
|
4686
5110
|
*/
|
|
4687
|
-
this.
|
|
5111
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
4688
5112
|
/**
|
|
4689
5113
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4690
5114
|
* @uiName Payout error message description
|
|
4691
5115
|
* @uiGroup Dashboard Properties
|
|
4692
5116
|
* @uiWidget textArea
|
|
4693
5117
|
*/
|
|
4694
|
-
this.
|
|
5118
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
4695
5119
|
/**
|
|
4696
5120
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4697
5121
|
* @uiName Payout missing information subtext
|
|
@@ -4739,6 +5163,63 @@ const TaxAndCashMonolith = class {
|
|
|
4739
5163
|
* @uiWidget textArea
|
|
4740
5164
|
*/
|
|
4741
5165
|
this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
5166
|
+
/**
|
|
5167
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5168
|
+
* @uiName Verification required alert message title
|
|
5169
|
+
* @uiGroup Dashboard Properties
|
|
5170
|
+
* @uiWidget textArea
|
|
5171
|
+
*/
|
|
5172
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5173
|
+
/**
|
|
5174
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5175
|
+
* @uiName Verification required alert message description
|
|
5176
|
+
* @uiGroup Dashboard Properties
|
|
5177
|
+
* @uiWidget textArea
|
|
5178
|
+
*/
|
|
5179
|
+
this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
5180
|
+
/**
|
|
5181
|
+
* @uiName Verification required internal alert header
|
|
5182
|
+
* @uiGroup Dashboard Properties
|
|
5183
|
+
* @uiWidget textArea
|
|
5184
|
+
*/
|
|
5185
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5186
|
+
/**
|
|
5187
|
+
* @uiName Verification required internal alert description
|
|
5188
|
+
* @uiGroup Dashboard Properties
|
|
5189
|
+
* @uiWidget textArea
|
|
5190
|
+
*/
|
|
5191
|
+
this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
5192
|
+
/**
|
|
5193
|
+
* @uiName Verification review internal alert header
|
|
5194
|
+
* @uiGroup Dashboard Properties
|
|
5195
|
+
* @uiWidget textArea
|
|
5196
|
+
*/
|
|
5197
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5198
|
+
/**
|
|
5199
|
+
* @uiName Verification review internal alert description
|
|
5200
|
+
* @uiGroup Dashboard Properties
|
|
5201
|
+
* @uiWidget textArea
|
|
5202
|
+
*/
|
|
5203
|
+
this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
5204
|
+
/**
|
|
5205
|
+
* @uiName Verification failed internal alert header
|
|
5206
|
+
* @uiGroup Dashboard Properties
|
|
5207
|
+
* @uiWidget textArea
|
|
5208
|
+
*/
|
|
5209
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5210
|
+
/**
|
|
5211
|
+
* @uiName Verification failed internal alert description
|
|
5212
|
+
* @uiGroup Dashboard Properties
|
|
5213
|
+
* @uiWidget textArea
|
|
5214
|
+
*/
|
|
5215
|
+
this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
5216
|
+
/**
|
|
5217
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5218
|
+
* @uiName Verification required alert button text
|
|
5219
|
+
* @uiGroup Dashboard Properties
|
|
5220
|
+
* @uiWidget textArea
|
|
5221
|
+
*/
|
|
5222
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
4742
5223
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4743
5224
|
GENERAL PROPS:
|
|
4744
5225
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4760,7 +5241,7 @@ const TaxAndCashMonolith = class {
|
|
|
4760
5241
|
* @uiGroup General Form Properties
|
|
4761
5242
|
* @uiWidget textArea
|
|
4762
5243
|
*/
|
|
4763
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
5244
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
4764
5245
|
/**
|
|
4765
5246
|
* Displayed under a field that is missing required information.
|
|
4766
5247
|
* @uiName Empty form field error message
|
|
@@ -4807,7 +5288,7 @@ const TaxAndCashMonolith = class {
|
|
|
4807
5288
|
* @uiGroup General Form Properties
|
|
4808
5289
|
* @uiWidget textArea
|
|
4809
5290
|
*/
|
|
4810
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
5291
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
4811
5292
|
/**
|
|
4812
5293
|
* Placeholder text displayed in the country search dropdown
|
|
4813
5294
|
* @uiName Country field placeholder text
|
|
@@ -4827,13 +5308,19 @@ const TaxAndCashMonolith = class {
|
|
|
4827
5308
|
* @uiGroup General Form Properties
|
|
4828
5309
|
* @uiWidget textArea
|
|
4829
5310
|
*/
|
|
4830
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
5311
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
4831
5312
|
/**
|
|
4832
5313
|
* Displayed at the top of the page on all set up steps.
|
|
4833
5314
|
* @uiName Page description
|
|
4834
5315
|
* @uiGroup General Form Properties
|
|
4835
5316
|
*/
|
|
4836
5317
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5318
|
+
/**
|
|
5319
|
+
* Link text for contacting support team
|
|
5320
|
+
* @uiName Suport link text
|
|
5321
|
+
* @uiGroup General Form Properties
|
|
5322
|
+
*/
|
|
5323
|
+
this.supportLink = "support team";
|
|
4837
5324
|
h$1(this);
|
|
4838
5325
|
}
|
|
4839
5326
|
disconnectedCallback() { }
|
|
@@ -4857,6 +5344,7 @@ const TaxAndCashMonolith = class {
|
|
|
4857
5344
|
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
4858
5345
|
searchForCountryText: props.searchForCountryText,
|
|
4859
5346
|
formStep: props.formStep,
|
|
5347
|
+
supportLink: props.supportLink,
|
|
4860
5348
|
};
|
|
4861
5349
|
}
|
|
4862
5350
|
render() {
|
|
@@ -4889,7 +5377,7 @@ const TaxAndCashMonolith = class {
|
|
|
4889
5377
|
}
|
|
4890
5378
|
};
|
|
4891
5379
|
function useDemoTaxAndCash(props) {
|
|
4892
|
-
const [step, setStep] =
|
|
5380
|
+
const [step, setStep] = Cn({
|
|
4893
5381
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4894
5382
|
initialValue: "/1",
|
|
4895
5383
|
});
|
|
@@ -4899,18 +5387,47 @@ function useDemoTaxAndCash(props) {
|
|
|
4899
5387
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4900
5388
|
}
|
|
4901
5389
|
|
|
4902
|
-
const style$
|
|
4903
|
-
|
|
5390
|
+
const style$6 = {
|
|
5391
|
+
ErrorAlertContainer: {
|
|
4904
5392
|
"&::part(base)": {
|
|
4905
5393
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4906
5394
|
borderTop: "none",
|
|
4907
5395
|
},
|
|
5396
|
+
"& sl-icon::part(base)": {
|
|
5397
|
+
color: "var(--sl-color-danger-500)",
|
|
5398
|
+
},
|
|
5399
|
+
},
|
|
5400
|
+
WarningAlertContainer: {
|
|
5401
|
+
"&::part(base)": {
|
|
5402
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5403
|
+
borderTop: "none",
|
|
5404
|
+
maxWidth: "600px",
|
|
5405
|
+
},
|
|
5406
|
+
"& sl-icon::part(base)": {
|
|
5407
|
+
color: "var(--sl-color-warning-500)",
|
|
5408
|
+
},
|
|
4908
5409
|
},
|
|
4909
|
-
|
|
5410
|
+
WarningHoldAlertContainer: {
|
|
5411
|
+
marginLeft: "-20px",
|
|
4910
5412
|
"&::part(base)": {
|
|
5413
|
+
maxWidth: "850px",
|
|
4911
5414
|
border: "none",
|
|
4912
5415
|
backgroundColor: "transparent",
|
|
4913
5416
|
},
|
|
5417
|
+
"& sl-icon::part(base)": {
|
|
5418
|
+
color: "var(--sl-color-warning-500)",
|
|
5419
|
+
},
|
|
5420
|
+
},
|
|
5421
|
+
ErrorHoldAlertContainer: {
|
|
5422
|
+
marginLeft: "-20px",
|
|
5423
|
+
"&::part(base)": {
|
|
5424
|
+
maxWidth: "850px",
|
|
5425
|
+
border: "none",
|
|
5426
|
+
backgroundColor: "transparent",
|
|
5427
|
+
},
|
|
5428
|
+
"& sl-icon::part(base)": {
|
|
5429
|
+
color: "var(--sl-color-danger-500)",
|
|
5430
|
+
},
|
|
4914
5431
|
},
|
|
4915
5432
|
ExpiringSoonAlertContainer: {
|
|
4916
5433
|
"&::part(base)": {
|
|
@@ -5031,6 +5548,7 @@ const style$5 = {
|
|
|
5031
5548
|
PageDescriptionText: {
|
|
5032
5549
|
color: "var(--sl-color-neutral-500)",
|
|
5033
5550
|
fontSize: "var(--sl-font-size-medium)",
|
|
5551
|
+
marginTop: "0",
|
|
5034
5552
|
},
|
|
5035
5553
|
Dialog: {
|
|
5036
5554
|
"&::part(panel)": {
|
|
@@ -5060,13 +5578,86 @@ const style$5 = {
|
|
|
5060
5578
|
},
|
|
5061
5579
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5062
5580
|
};
|
|
5063
|
-
const sheet$
|
|
5064
|
-
const styleString$
|
|
5581
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5582
|
+
const styleString$5 = sheet$5.toString();
|
|
5065
5583
|
const TaxAndCashDashboardView = (props) => {
|
|
5066
|
-
var _a;
|
|
5584
|
+
var _a, _b, _c, _d;
|
|
5067
5585
|
const { states, text, callbacks, slots } = props;
|
|
5586
|
+
function getAlert(status) {
|
|
5587
|
+
switch (status) {
|
|
5588
|
+
case "VERIFICATION:REQUIRED":
|
|
5589
|
+
return {
|
|
5590
|
+
header: text.verificationRequiredHeader,
|
|
5591
|
+
description: intl.formatMessage({
|
|
5592
|
+
id: "verificationRequiredDescription",
|
|
5593
|
+
defaultMessage: text.verificationRequiredDescription,
|
|
5594
|
+
}, {
|
|
5595
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5596
|
+
}),
|
|
5597
|
+
buttonText: text.verificationRequiredButtonText,
|
|
5598
|
+
alertType: "warning",
|
|
5599
|
+
icon: "exclamation-triangle",
|
|
5600
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5601
|
+
};
|
|
5602
|
+
case "VERIFICATION:INTERNAL":
|
|
5603
|
+
return {
|
|
5604
|
+
header: text.verificationRequiredInternalHeader,
|
|
5605
|
+
description: intl.formatMessage({
|
|
5606
|
+
id: "verificationRequiredInternalDescription",
|
|
5607
|
+
defaultMessage: text.verificationRequiredInternalDescription,
|
|
5608
|
+
}, {
|
|
5609
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5610
|
+
}),
|
|
5611
|
+
alertType: "warning",
|
|
5612
|
+
icon: "exclamation-triangle",
|
|
5613
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5614
|
+
};
|
|
5615
|
+
case "VERIFICATION:REVIEW":
|
|
5616
|
+
return {
|
|
5617
|
+
header: text.verificationReviewInternalHeader,
|
|
5618
|
+
description: intl.formatMessage({
|
|
5619
|
+
id: "verificationReviewInternalDescription",
|
|
5620
|
+
defaultMessage: text.verificationReviewInternalDescription,
|
|
5621
|
+
}, {
|
|
5622
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5623
|
+
}),
|
|
5624
|
+
alertType: "warning",
|
|
5625
|
+
icon: "exclamation-triangle",
|
|
5626
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5627
|
+
};
|
|
5628
|
+
case "VERIFICATION:FAILED":
|
|
5629
|
+
return {
|
|
5630
|
+
header: text.verificationFailedInternalHeader,
|
|
5631
|
+
description: intl.formatMessage({
|
|
5632
|
+
id: "verificationFailedInternalDescription",
|
|
5633
|
+
defaultMessage: text.verificationFailedInternalDescription,
|
|
5634
|
+
}, {
|
|
5635
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5636
|
+
}),
|
|
5637
|
+
alertType: "critical",
|
|
5638
|
+
icon: "exclamation-octagon",
|
|
5639
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5640
|
+
};
|
|
5641
|
+
case "HOLD":
|
|
5642
|
+
return {
|
|
5643
|
+
header: text.payoutHoldAlertHeader,
|
|
5644
|
+
description: intl.formatMessage({
|
|
5645
|
+
id: "payoutHoldAlertDescription",
|
|
5646
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5647
|
+
}, {
|
|
5648
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5649
|
+
}),
|
|
5650
|
+
buttonText: null,
|
|
5651
|
+
alertType: "warning",
|
|
5652
|
+
icon: "exclamation-triangle",
|
|
5653
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5654
|
+
};
|
|
5655
|
+
default:
|
|
5656
|
+
return;
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5068
5659
|
const statusMap = {
|
|
5069
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
5660
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5070
5661
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5071
5662
|
h("p", null, intl.formatMessage({
|
|
5072
5663
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5074,7 +5665,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5074
5665
|
}, {
|
|
5075
5666
|
dateSubmitted: states.dateSubmitted,
|
|
5076
5667
|
})))),
|
|
5077
|
-
ACTIVE: (h("div", { class: sheet$
|
|
5668
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5078
5669
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5079
5670
|
h("p", null, intl.formatMessage({
|
|
5080
5671
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5084,12 +5675,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5084
5675
|
}, {
|
|
5085
5676
|
dateSubmitted: states.dateSubmitted,
|
|
5086
5677
|
})))),
|
|
5087
|
-
INACTIVE: (h("div", { class: sheet$
|
|
5678
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5088
5679
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5089
5680
|
h("p", null, text.invalidForm))),
|
|
5090
5681
|
};
|
|
5091
5682
|
const alertMap = {
|
|
5092
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5683
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5093
5684
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5094
5685
|
h("strong", null, intl.formatMessage({
|
|
5095
5686
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5139,61 +5730,76 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5139
5730
|
};
|
|
5140
5731
|
return (h("div", null,
|
|
5141
5732
|
h("div", null,
|
|
5142
|
-
h("style", { type: "text/css" }, styleString$
|
|
5733
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
5143
5734
|
states.loadingError && (h("div", null,
|
|
5144
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5735
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5145
5736
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5146
5737
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5147
5738
|
h("br", null),
|
|
5148
|
-
|
|
5149
|
-
|
|
5739
|
+
intl.formatMessage({
|
|
5740
|
+
id: "loadingErrorAlertDescription",
|
|
5741
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5742
|
+
}, {
|
|
5743
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5744
|
+
})))),
|
|
5745
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5150
5746
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5151
5747
|
h("strong", null, text.error.generalTitle),
|
|
5152
5748
|
h("br", null),
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
h("sl-
|
|
5749
|
+
intl.formatMessage({
|
|
5750
|
+
id: "generalDescription",
|
|
5751
|
+
defaultMessage: text.error.generalDescription,
|
|
5752
|
+
}, {
|
|
5753
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5754
|
+
}))),
|
|
5755
|
+
getAlert(states.payoutStatus) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
|
|
5756
|
+
h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
5757
|
+
h("strong", null, getAlert(states.payoutStatus).header),
|
|
5758
|
+
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5759
|
+
getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
5760
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5160
5761
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5161
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5162
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5762
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5763
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5163
5764
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5164
5765
|
h("div", null,
|
|
5165
|
-
h("h3",
|
|
5166
|
-
h("p", { class: sheet$
|
|
5167
|
-
h("div", { class: sheet$
|
|
5766
|
+
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5767
|
+
h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5768
|
+
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
5168
5769
|
slots.payoutDetailsCardSlot,
|
|
5169
|
-
!states.loading && (h("p", { class: sheet$
|
|
5170
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5171
|
-
h("div", { class: sheet$
|
|
5172
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
5173
|
-
h("sl-skeleton", { class: sheet$
|
|
5174
|
-
h("sl-skeleton", { class: sheet$
|
|
5175
|
-
h("h3", { class: sheet$
|
|
5176
|
-
h("p", { class: sheet$
|
|
5177
|
-
h("span", { class: sheet$
|
|
5178
|
-
h("div", { class: sheet$
|
|
5770
|
+
!states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5771
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5772
|
+
h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5773
|
+
h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5774
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5775
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
|
|
5776
|
+
h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5777
|
+
h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
|
|
5778
|
+
h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5779
|
+
h("div", { class: sheet$5.classes.StatusContainer },
|
|
5179
5780
|
h("h3", null, intl.formatMessage({
|
|
5180
5781
|
id: "section-subheader",
|
|
5181
5782
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5182
5783
|
}, {
|
|
5183
5784
|
documentType: states.documentTypeString,
|
|
5184
5785
|
})),
|
|
5185
|
-
h("span", { class: sheet$
|
|
5186
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5187
|
-
h("div", { class: sheet$
|
|
5188
|
-
h("sl-skeleton", { class: sheet$
|
|
5189
|
-
h("sl-skeleton", { class: sheet$
|
|
5190
|
-
h("h3", { class: sheet$
|
|
5786
|
+
h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5787
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5788
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5789
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5790
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
5791
|
+
h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
5191
5792
|
text.indirectTaxInfoSectionHeader,
|
|
5192
|
-
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5193
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
5194
|
-
h("div", { class: sheet$
|
|
5195
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
5196
|
-
|
|
5793
|
+
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5794
|
+
h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5795
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5796
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
5797
|
+
id: "notRegisteredForTax",
|
|
5798
|
+
defaultMessage: text.notRegisteredForTax,
|
|
5799
|
+
}, {
|
|
5800
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5801
|
+
}))) : (getIndirectTaxRegisteredIn())),
|
|
5802
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
5197
5803
|
h("span", null, intl.formatMessage({
|
|
5198
5804
|
id: `indirectTaxDetails`,
|
|
5199
5805
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5216,7 +5822,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5216
5822
|
}, {
|
|
5217
5823
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5218
5824
|
})))),
|
|
5219
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
5825
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
5220
5826
|
h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5221
5827
|
h("sqm-invoice-table-download-column", null),
|
|
5222
5828
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5262,15 +5868,16 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5262
5868
|
}
|
|
5263
5869
|
const useTaxAndCashDashboard = (props) => {
|
|
5264
5870
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5265
|
-
const setStep =
|
|
5266
|
-
const setContext =
|
|
5871
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
5872
|
+
const setContext = wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5267
5873
|
const [showDialog, setShowDialog] = useState(false);
|
|
5268
|
-
const
|
|
5874
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
5875
|
+
const locale = L();
|
|
5269
5876
|
useEffect(() => {
|
|
5270
5877
|
// Clear override context once on submitted
|
|
5271
5878
|
setContext({});
|
|
5272
5879
|
}, []);
|
|
5273
|
-
const { data, loading, errors: userError, } =
|
|
5880
|
+
const { data, loading, errors: userError, refetch, } = Mn(USER_QUERY_NAMESPACE);
|
|
5274
5881
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5275
5882
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5276
5883
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5295,6 +5902,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5295
5902
|
setStep("/3");
|
|
5296
5903
|
};
|
|
5297
5904
|
const provinceName = (_d = INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
5905
|
+
const payoutStatus = data ? getStatus(data) : null;
|
|
5906
|
+
useEffect(() => {
|
|
5907
|
+
const cb = () => refetch();
|
|
5908
|
+
window.addEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5909
|
+
return () => {
|
|
5910
|
+
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5911
|
+
};
|
|
5912
|
+
}, []);
|
|
5298
5913
|
return {
|
|
5299
5914
|
states: {
|
|
5300
5915
|
dateSubmitted,
|
|
@@ -5317,9 +5932,12 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5317
5932
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5318
5933
|
showNewFormDialog: showDialog,
|
|
5319
5934
|
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5935
|
+
payoutStatus,
|
|
5936
|
+
veriffLoading,
|
|
5320
5937
|
},
|
|
5321
5938
|
callbacks: {
|
|
5322
5939
|
onClick: () => setShowDialog(true),
|
|
5940
|
+
onVerifyClick: () => render(),
|
|
5323
5941
|
onEditPayoutInfo,
|
|
5324
5942
|
onNewFormCancel: () => setShowDialog(false),
|
|
5325
5943
|
onNewFormClick,
|
|
@@ -5445,7 +6063,7 @@ const TaxAndCashDashboard = class {
|
|
|
5445
6063
|
* @uiName Indirect tax tooltip
|
|
5446
6064
|
* @uiWidget textArea
|
|
5447
6065
|
*/
|
|
5448
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact Support.";
|
|
6066
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our Support team.";
|
|
5449
6067
|
/**
|
|
5450
6068
|
* Displayed to participants who have submitted their indirect tax information.
|
|
5451
6069
|
*
|
|
@@ -5465,7 +6083,7 @@ const TaxAndCashDashboard = class {
|
|
|
5465
6083
|
* @uiName Not registered for indirect tax text
|
|
5466
6084
|
* @uiWidget textArea
|
|
5467
6085
|
*/
|
|
5468
|
-
this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
6086
|
+
this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
5469
6087
|
/**
|
|
5470
6088
|
* Displayed to participants registered in Quebec, Canada.
|
|
5471
6089
|
* @uiName QST indirect tax details
|
|
@@ -5500,12 +6118,53 @@ const TaxAndCashDashboard = class {
|
|
|
5500
6118
|
* @uiName Payout error message description
|
|
5501
6119
|
* @uiWidget textArea
|
|
5502
6120
|
*/
|
|
5503
|
-
this.payoutHoldAlertDescription = "Please contact
|
|
6121
|
+
this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5504
6122
|
/**
|
|
5505
6123
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5506
6124
|
* @uiName Payout missing information subtext
|
|
5507
6125
|
*/
|
|
5508
6126
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
6127
|
+
/**
|
|
6128
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
6129
|
+
* @uiName Verification required alert message title
|
|
6130
|
+
* @uiWidget textArea
|
|
6131
|
+
*/
|
|
6132
|
+
this.verificationRequiredHeader = "Verify your identity";
|
|
6133
|
+
/**
|
|
6134
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
6135
|
+
* @uiName Verification required alert message description
|
|
6136
|
+
* @uiWidget textArea
|
|
6137
|
+
*/
|
|
6138
|
+
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
6139
|
+
/**
|
|
6140
|
+
* @uiName Verification required internal alert header
|
|
6141
|
+
*/
|
|
6142
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
6143
|
+
/**
|
|
6144
|
+
* @uiName Verification required internal alert description
|
|
6145
|
+
*/
|
|
6146
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
6147
|
+
/**
|
|
6148
|
+
* @uiName Verification review internal alert header
|
|
6149
|
+
*/
|
|
6150
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
6151
|
+
/**
|
|
6152
|
+
* @uiName Verification review internal alert description
|
|
6153
|
+
*/
|
|
6154
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
6155
|
+
/**
|
|
6156
|
+
* @uiName Verification failed internal alert header
|
|
6157
|
+
*/
|
|
6158
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
6159
|
+
/**
|
|
6160
|
+
* @uiName Verification failed internal alert description
|
|
6161
|
+
*/
|
|
6162
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
6163
|
+
/**
|
|
6164
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
6165
|
+
* @uiName Verification required alert button text
|
|
6166
|
+
*/
|
|
6167
|
+
this.verificationRequiredButtonText = "Start Verification";
|
|
5509
6168
|
/**
|
|
5510
6169
|
* Part of the alert displayed at the top of the page.
|
|
5511
6170
|
* @uiName Form submission error message title
|
|
@@ -5517,7 +6176,7 @@ const TaxAndCashDashboard = class {
|
|
|
5517
6176
|
* @uiName Form submission error message description
|
|
5518
6177
|
* @uiWidget textArea
|
|
5519
6178
|
*/
|
|
5520
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
6179
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5521
6180
|
/**
|
|
5522
6181
|
* Displayed under the payout details card.
|
|
5523
6182
|
* @uiName Payout from impact text
|
|
@@ -5535,7 +6194,7 @@ const TaxAndCashDashboard = class {
|
|
|
5535
6194
|
* @uiName Page load error message description
|
|
5536
6195
|
* @uiWidget textArea
|
|
5537
6196
|
*/
|
|
5538
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
6197
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5539
6198
|
/**
|
|
5540
6199
|
* Part of the Invoice table displayed at the bottom of the page.
|
|
5541
6200
|
* @uiName Invoice number column title
|
|
@@ -5586,6 +6245,10 @@ const TaxAndCashDashboard = class {
|
|
|
5586
6245
|
* @uiName Replace tax form modal body text
|
|
5587
6246
|
*/
|
|
5588
6247
|
this.replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
6248
|
+
/**
|
|
6249
|
+
* @uiName Support link text
|
|
6250
|
+
*/
|
|
6251
|
+
this.supportLink = "support team";
|
|
5589
6252
|
/**
|
|
5590
6253
|
* @uiName Cancel button label
|
|
5591
6254
|
*/
|
|
@@ -5629,12 +6292,16 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5629
6292
|
loading: false,
|
|
5630
6293
|
showNewFormDialog: false,
|
|
5631
6294
|
hasHold: false,
|
|
6295
|
+
showVerifyIdentity: false,
|
|
6296
|
+
payoutStatus: "DONE",
|
|
6297
|
+
veriffLoading: false,
|
|
5632
6298
|
},
|
|
5633
6299
|
callbacks: {
|
|
5634
6300
|
onClick: () => console.debug("check step"),
|
|
5635
6301
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5636
6302
|
onNewFormCancel: () => console.log("hide"),
|
|
5637
6303
|
onNewFormClick: () => console.log("show"),
|
|
6304
|
+
onVerifyClick: () => console.log("verify"),
|
|
5638
6305
|
},
|
|
5639
6306
|
text: props.getTextProps(),
|
|
5640
6307
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -6611,7 +7278,7 @@ const PHONE_EXTENSIONS = {
|
|
|
6611
7278
|
},
|
|
6612
7279
|
};
|
|
6613
7280
|
|
|
6614
|
-
const style$
|
|
7281
|
+
const style$7 = {
|
|
6615
7282
|
FormWrapper: {},
|
|
6616
7283
|
ErrorInput: {
|
|
6617
7284
|
"&::part(base)": {
|
|
@@ -6691,7 +7358,6 @@ const style$6 = {
|
|
|
6691
7358
|
},
|
|
6692
7359
|
PhoneInputsSection: {
|
|
6693
7360
|
display: "flex",
|
|
6694
|
-
alignItems: "flex-end",
|
|
6695
7361
|
flexDirection: "column",
|
|
6696
7362
|
gap: "4px",
|
|
6697
7363
|
"& p": {
|
|
@@ -6702,7 +7368,6 @@ const style$6 = {
|
|
|
6702
7368
|
},
|
|
6703
7369
|
PhoneInputsContainer: {
|
|
6704
7370
|
display: "flex",
|
|
6705
|
-
alignItems: "flex-end",
|
|
6706
7371
|
gap: "4px",
|
|
6707
7372
|
width: "100%",
|
|
6708
7373
|
"& #phoneNumber": {
|
|
@@ -6711,9 +7376,9 @@ const style$6 = {
|
|
|
6711
7376
|
},
|
|
6712
7377
|
},
|
|
6713
7378
|
};
|
|
6714
|
-
const sheet$
|
|
6715
|
-
const styleString$
|
|
6716
|
-
const vanillaStyle$
|
|
7379
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7380
|
+
const styleString$6 = sheet$6.toString();
|
|
7381
|
+
const vanillaStyle$4 = `
|
|
6717
7382
|
:host{
|
|
6718
7383
|
display: block;
|
|
6719
7384
|
}
|
|
@@ -6741,7 +7406,7 @@ const vanillaStyle$3 = `
|
|
|
6741
7406
|
const UserInfoFormView = (props) => {
|
|
6742
7407
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
6743
7408
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
6744
|
-
const { classes } = sheet$
|
|
7409
|
+
const { classes } = sheet$6;
|
|
6745
7410
|
const bankingCollectionText = intl.formatMessage({
|
|
6746
7411
|
id: "bankingCollectionText",
|
|
6747
7412
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -6764,14 +7429,19 @@ const UserInfoFormView = (props) => {
|
|
|
6764
7429
|
}
|
|
6765
7430
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6766
7431
|
h("style", { type: "text/css" },
|
|
6767
|
-
styleString$
|
|
6768
|
-
vanillaStyle$
|
|
7432
|
+
styleString$6,
|
|
7433
|
+
vanillaStyle$4),
|
|
6769
7434
|
states.loadingError && (h("div", null,
|
|
6770
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7435
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
6771
7436
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6772
7437
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6773
7438
|
h("br", null),
|
|
6774
|
-
|
|
7439
|
+
intl.formatMessage({
|
|
7440
|
+
id: "loadingErrorAlertDescription",
|
|
7441
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7442
|
+
}, {
|
|
7443
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7444
|
+
})),
|
|
6775
7445
|
h("br", null))),
|
|
6776
7446
|
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
6777
7447
|
h("div", { class: classes.TextContainer },
|
|
@@ -6782,16 +7452,26 @@ const UserInfoFormView = (props) => {
|
|
|
6782
7452
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6783
7453
|
h("h3", null, text.personalInformation),
|
|
6784
7454
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6785
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
7455
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
6786
7456
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6787
7457
|
h("strong", null, text.error.generalTitle),
|
|
6788
7458
|
h("br", null),
|
|
6789
|
-
|
|
6790
|
-
|
|
7459
|
+
intl.formatMessage({
|
|
7460
|
+
id: "generalDescription",
|
|
7461
|
+
defaultMessage: text.error.generalDescription,
|
|
7462
|
+
}, {
|
|
7463
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7464
|
+
}))),
|
|
7465
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6791
7466
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6792
7467
|
h("strong", null, text.isPartnerAlertHeader),
|
|
6793
7468
|
h("br", null),
|
|
6794
|
-
|
|
7469
|
+
intl.formatMessage({
|
|
7470
|
+
id: "isPartnerAlertDescription",
|
|
7471
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
7472
|
+
}, {
|
|
7473
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7474
|
+
}))),
|
|
6795
7475
|
h("div", null,
|
|
6796
7476
|
h("div", { class: classes.InputContainer },
|
|
6797
7477
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -6843,10 +7523,11 @@ const UserInfoFormView = (props) => {
|
|
|
6843
7523
|
h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6844
7524
|
_b.dial_code));
|
|
6845
7525
|
})),
|
|
6846
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
7526
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7527
|
+
// Naive phone number validation
|
|
7528
|
+
validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7529
|
+
formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7530
|
+
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6850
7531
|
class: classes.ErrorInput,
|
|
6851
7532
|
helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6852
7533
|
}
|
|
@@ -6909,12 +7590,12 @@ function useUserInfoForm(props) {
|
|
|
6909
7590
|
const currencyRef = useRef(undefined);
|
|
6910
7591
|
const phoneCountryRef = useRef(undefined);
|
|
6911
7592
|
const formRef = useRef(null);
|
|
6912
|
-
const context =
|
|
6913
|
-
const countries =
|
|
6914
|
-
const [step, setStep] =
|
|
6915
|
-
const [userFormContext, setUserFormContext] =
|
|
6916
|
-
const { data, loading, errors: userError, } =
|
|
6917
|
-
const _currencies =
|
|
7593
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7594
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
7595
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
7596
|
+
const [userFormContext, setUserFormContext] = bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7597
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
7598
|
+
const _currencies = In(CURRENCIES_NAMESPACE);
|
|
6918
7599
|
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6919
7600
|
const [countrySearch, setCountrySearch] = useState("");
|
|
6920
7601
|
const [phoneCountrySearch, setPhoneCountrySearch] = useState("");
|
|
@@ -7042,6 +7723,8 @@ function useUserInfoForm(props) {
|
|
|
7042
7723
|
const { allowBankingCollection, ...userData } = formData;
|
|
7043
7724
|
setUserFormContext({
|
|
7044
7725
|
...userFormContext,
|
|
7726
|
+
firstName: userData.firstName,
|
|
7727
|
+
lastName: userData.lastName,
|
|
7045
7728
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
7046
7729
|
phoneNumber: userData.phoneNumber,
|
|
7047
7730
|
countryCode: userData.countryCode,
|
|
@@ -7178,7 +7861,7 @@ const TaxForm = class {
|
|
|
7178
7861
|
* @uiName Participant is a partner alert description
|
|
7179
7862
|
* @uiWidget textArea
|
|
7180
7863
|
*/
|
|
7181
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
7864
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
7182
7865
|
/**
|
|
7183
7866
|
* Part of the alert displayed at the top of the page.
|
|
7184
7867
|
* @uiName Form submission error message title
|
|
@@ -7190,7 +7873,7 @@ const TaxForm = class {
|
|
|
7190
7873
|
* @uiName Form submission error message description
|
|
7191
7874
|
* @uiWidget textArea
|
|
7192
7875
|
*/
|
|
7193
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
7876
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
7194
7877
|
/**
|
|
7195
7878
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
7196
7879
|
* @uiName Terms and conditions checkbox
|
|
@@ -7206,7 +7889,7 @@ const TaxForm = class {
|
|
|
7206
7889
|
* The link that appears in the terms and conditions checkbox
|
|
7207
7890
|
* @uiName Terms and conditions link
|
|
7208
7891
|
*/
|
|
7209
|
-
this.termsAndConditionsLink = "/
|
|
7892
|
+
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
7210
7893
|
/**
|
|
7211
7894
|
* Placeholder text displayed in the country search dropdown
|
|
7212
7895
|
* @uiName Country field placeholder text
|
|
@@ -7243,12 +7926,16 @@ const TaxForm = class {
|
|
|
7243
7926
|
* @uiName Page load error message description
|
|
7244
7927
|
* @uiWidget textArea
|
|
7245
7928
|
*/
|
|
7246
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
7929
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
7247
7930
|
/**
|
|
7248
7931
|
* Displayed at the top of the page on all set up steps.
|
|
7249
7932
|
* @uiName Page description
|
|
7250
7933
|
*/
|
|
7251
7934
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7935
|
+
/**
|
|
7936
|
+
* @uiName Support link text
|
|
7937
|
+
*/
|
|
7938
|
+
this.supportLink = "support team";
|
|
7252
7939
|
h$1(this);
|
|
7253
7940
|
}
|
|
7254
7941
|
disconnectedCallback() { }
|
|
@@ -7278,7 +7965,7 @@ const TaxForm = class {
|
|
|
7278
7965
|
}
|
|
7279
7966
|
};
|
|
7280
7967
|
function useDemoUserInfoForm(props) {
|
|
7281
|
-
const setStep =
|
|
7968
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
7282
7969
|
return cjs({
|
|
7283
7970
|
setStep,
|
|
7284
7971
|
onSubmit: () => {
|
|
@@ -7324,4 +8011,4 @@ function useDemoUserInfoForm(props) {
|
|
|
7324
8011
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7325
8012
|
}
|
|
7326
8013
|
|
|
7327
|
-
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|
|
8014
|
+
export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|