@saasquatch/mint-components 1.12.0-9 → 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} +907 -257
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +211 -102
- 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-c58966f8.js → sqm-invoice-table-view-bfea11c8.js} +98 -26
- 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 -3
- 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 +92 -24
- 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 +70 -25
- 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 +21 -10
- 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 -26
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +190 -14
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +13 -5
- 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} +907 -258
- package/dist/esm/sqm-big-stat_39.entry.js +209 -100
- 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-d1cfdaf4.js → sqm-invoice-table-view-e3a1287a.js} +98 -26
- 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 +3 -4
- 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 +9 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +28 -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 +591 -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 -342
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
- package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
- package/dist/esm/sqm-code-verification.entry.js +0 -338
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
- package/dist/esm/usePayoutStatus-1a635054.js +0 -67
- 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-d1cfdaf4.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/usePayoutStatus-1a635054.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-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-24092973.entry.js +0 -9
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-331d060e.entry.js +0 -223
- package/dist/mint-components/p-39840341.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-4bd7a472.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-517224ef.js +0 -19
- 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-8300d8c8.system.js +0 -1
- package/dist/mint-components/p-84b25a46.entry.js +0 -1
- package/dist/mint-components/p-8bddb468.system.entry.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-b62faaa5.system.entry.js +0 -1
- package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
- package/dist/mint-components/p-c510fb88.entry.js +0 -1
- package/dist/mint-components/p-c7057066.system.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-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-e990dc21.system.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-f655a7df.js +0 -1
- 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,21 +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 {
|
|
17
|
-
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';
|
|
18
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';
|
|
19
21
|
|
|
20
22
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
21
23
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -862,12 +864,22 @@ const BankingInfoFormView = (props) => {
|
|
|
862
864
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
863
865
|
h("strong", null, text.error.generalTitle),
|
|
864
866
|
h("br", null),
|
|
865
|
-
|
|
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
|
+
}))),
|
|
866
873
|
states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
867
874
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
868
875
|
h("strong", null, text.isPartnerAlertHeader),
|
|
869
876
|
h("br", null),
|
|
870
|
-
|
|
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
|
+
}))),
|
|
871
883
|
h("div", null,
|
|
872
884
|
h("h4", null, text.paymentMethod),
|
|
873
885
|
h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
@@ -980,18 +992,18 @@ function parseImpactThreshold(threshold) {
|
|
|
980
992
|
return parsed.toString();
|
|
981
993
|
}
|
|
982
994
|
function useBankingInfoForm(props) {
|
|
983
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
984
|
-
const host =
|
|
985
|
-
const locale =
|
|
986
|
-
const user =
|
|
987
|
-
const [step, setStep] =
|
|
988
|
-
const context =
|
|
989
|
-
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);
|
|
990
1002
|
const formRef = useRef(null);
|
|
991
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } =
|
|
992
|
-
const { data: userData, refetch, errors: userError, } =
|
|
993
|
-
const [saveWithdrawalSettings] =
|
|
994
|
-
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);
|
|
995
1007
|
const [showVerification, setShowVerification] = useState(false);
|
|
996
1008
|
const [currentFormData, setCurrentFormData] = useState(null);
|
|
997
1009
|
const [formState, setFormState] = useState({});
|
|
@@ -1105,6 +1117,8 @@ function useBankingInfoForm(props) {
|
|
|
1105
1117
|
// Call difference mutations based on whether the user is updating
|
|
1106
1118
|
// the info for setting it for the first time
|
|
1107
1119
|
if (isPartner) {
|
|
1120
|
+
if (!token)
|
|
1121
|
+
return; // Require token for this mutation
|
|
1108
1122
|
response = await updateWithdrawalSettings({
|
|
1109
1123
|
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1110
1124
|
...body,
|
|
@@ -1142,6 +1156,8 @@ function useBankingInfoForm(props) {
|
|
|
1142
1156
|
});
|
|
1143
1157
|
return;
|
|
1144
1158
|
}
|
|
1159
|
+
// Fire form change event
|
|
1160
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1145
1161
|
await refetch();
|
|
1146
1162
|
setStep("/dashboard");
|
|
1147
1163
|
}
|
|
@@ -1217,6 +1233,7 @@ function useBankingInfoForm(props) {
|
|
|
1217
1233
|
onBack: () => setStep("/dashboard"),
|
|
1218
1234
|
setCountrySearch,
|
|
1219
1235
|
onVerification,
|
|
1236
|
+
onVerificationHide: () => onVerification(null),
|
|
1220
1237
|
},
|
|
1221
1238
|
states: {
|
|
1222
1239
|
showVerification,
|
|
@@ -1249,6 +1266,7 @@ function useBankingInfoForm(props) {
|
|
|
1249
1266
|
hasPayPal,
|
|
1250
1267
|
bankCountry: formState.bankCountry,
|
|
1251
1268
|
countrySearch,
|
|
1269
|
+
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1252
1270
|
},
|
|
1253
1271
|
refs: {
|
|
1254
1272
|
formRef,
|
|
@@ -1455,7 +1473,16 @@ const BankingInfoForm = class {
|
|
|
1455
1473
|
* @uiName Participant is a partner alert description
|
|
1456
1474
|
* @uiWidget textArea
|
|
1457
1475
|
*/
|
|
1458
|
-
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.";
|
|
1459
1486
|
/**
|
|
1460
1487
|
* Part of the alert displayed at the top of the page.
|
|
1461
1488
|
* @uiName Form submission error message title
|
|
@@ -1467,7 +1494,7 @@ const BankingInfoForm = class {
|
|
|
1467
1494
|
* @uiName Form submission error message description
|
|
1468
1495
|
* @uiWidget textArea
|
|
1469
1496
|
*/
|
|
1470
|
-
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}.";
|
|
1471
1498
|
/**
|
|
1472
1499
|
* Displayed under a field that is missing required information.
|
|
1473
1500
|
* @uiName Empty form field error message
|
|
@@ -1478,6 +1505,10 @@ const BankingInfoForm = class {
|
|
|
1478
1505
|
* @uiName Form field error message
|
|
1479
1506
|
*/
|
|
1480
1507
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
1508
|
+
/**
|
|
1509
|
+
* @uiName Support link text
|
|
1510
|
+
*/
|
|
1511
|
+
this.supportLink = "support team";
|
|
1481
1512
|
/**
|
|
1482
1513
|
* @uiName Continue button label
|
|
1483
1514
|
*/
|
|
@@ -1550,23 +1581,55 @@ const BankingInfoForm = class {
|
|
|
1550
1581
|
bitset: props.states.bitset,
|
|
1551
1582
|
formMap,
|
|
1552
1583
|
});
|
|
1553
|
-
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
|
+
},
|
|
1554
1612
|
SearchInput: {
|
|
1555
1613
|
padding: "var(--sl-spacing-x-small)",
|
|
1556
1614
|
},
|
|
1557
1615
|
};
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
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: {
|
|
1562
1625
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1563
|
-
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) && {
|
|
1564
1627
|
class: "error-input",
|
|
1565
1628
|
helpText: getValidationErrorMessage({
|
|
1566
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,
|
|
1567
1630
|
label: props.text.bankLocationLabel,
|
|
1568
1631
|
}),
|
|
1569
|
-
})), h("sl-input", { class:
|
|
1632
|
+
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1570
1633
|
// Stop shoelace intercepting key presses
|
|
1571
1634
|
e.stopPropagation();
|
|
1572
1635
|
}, "onSl-input": (e) => {
|
|
@@ -1577,21 +1640,21 @@ const BankingInfoForm = class {
|
|
|
1577
1640
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1578
1641
|
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1579
1642
|
paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1580
|
-
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) && {
|
|
1581
1644
|
class: "error-input",
|
|
1582
1645
|
helpText: getValidationErrorMessage({
|
|
1583
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,
|
|
1584
1647
|
label: props.text.paymentThresholdSelectLabel,
|
|
1585
1648
|
}),
|
|
1586
1649
|
})), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1587
|
-
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) && {
|
|
1588
1651
|
class: "error-input",
|
|
1589
1652
|
helpText: getValidationErrorMessage({
|
|
1590
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,
|
|
1591
1654
|
label: props.text.paymentDaySelectLabel,
|
|
1592
1655
|
}),
|
|
1593
1656
|
})), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1594
|
-
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) && {
|
|
1595
1658
|
class: "error-input",
|
|
1596
1659
|
helpText: getValidationErrorMessage({
|
|
1597
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,
|
|
@@ -1607,7 +1670,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1607
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;
|
|
1608
1671
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1609
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;
|
|
1610
|
-
const setStep =
|
|
1673
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
1611
1674
|
const [paymentMethodChecked, setPaymentMethodChecked] = useState(undefined);
|
|
1612
1675
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1613
1676
|
const [currency, setCurrency] = useState(defaultCurrency);
|
|
@@ -1682,6 +1745,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1682
1745
|
hasPayPal: true,
|
|
1683
1746
|
},
|
|
1684
1747
|
callbacks: {
|
|
1748
|
+
onVerificationHide: () => { },
|
|
1685
1749
|
onSubmit: async () => {
|
|
1686
1750
|
setStep("/dashboard");
|
|
1687
1751
|
},
|
|
@@ -1699,6 +1763,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1699
1763
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1700
1764
|
}
|
|
1701
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
|
+
|
|
1702
2091
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1703
2092
|
mutation createImpactPublisherTaxDocument(
|
|
1704
2093
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1726,13 +2115,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1726
2115
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1727
2116
|
function useDocusignForm(props) {
|
|
1728
2117
|
var _a, _b, _c;
|
|
1729
|
-
const user =
|
|
1730
|
-
const context =
|
|
1731
|
-
const [step, setStep] =
|
|
1732
|
-
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);
|
|
1733
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;
|
|
1734
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] =
|
|
1735
|
-
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);
|
|
1736
2125
|
const [docusignStatus, setDocusignStatus] = useState(undefined);
|
|
1737
2126
|
const [participantType, setParticipantType] = useState(undefined);
|
|
1738
2127
|
const [errors, setErrors] = useState({});
|
|
@@ -1796,6 +2185,8 @@ function useDocusignForm(props) {
|
|
|
1796
2185
|
// @ts-expect-error: no data type for result
|
|
1797
2186
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1798
2187
|
throw new Error();
|
|
2188
|
+
// Fire form change event
|
|
2189
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1799
2190
|
setShowExitButton(true);
|
|
1800
2191
|
}
|
|
1801
2192
|
catch (e) {
|
|
@@ -1854,7 +2245,7 @@ function getDocumentType(p) {
|
|
|
1854
2245
|
return undefined;
|
|
1855
2246
|
}
|
|
1856
2247
|
|
|
1857
|
-
const style$
|
|
2248
|
+
const style$2 = {
|
|
1858
2249
|
DocusignStatusContainer: {
|
|
1859
2250
|
width: "100%",
|
|
1860
2251
|
minHeight: "600px",
|
|
@@ -1881,13 +2272,13 @@ const style$1 = {
|
|
|
1881
2272
|
},
|
|
1882
2273
|
},
|
|
1883
2274
|
};
|
|
1884
|
-
const sheet$
|
|
1885
|
-
const styleString$
|
|
2275
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2276
|
+
const styleString$2 = sheet$2.toString();
|
|
1886
2277
|
const DocusignExpiredView = (props) => {
|
|
1887
|
-
const { classes } = sheet$
|
|
2278
|
+
const { classes } = sheet$2;
|
|
1888
2279
|
const { text } = props;
|
|
1889
2280
|
return (h("div", null,
|
|
1890
|
-
h("style", { type: "text/css" }, styleString$
|
|
2281
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1891
2282
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1892
2283
|
h("sl-icon", { style: {
|
|
1893
2284
|
width: "50px",
|
|
@@ -1899,10 +2290,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1899
2290
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1900
2291
|
};
|
|
1901
2292
|
const DocusignErrorView = (props) => {
|
|
1902
|
-
const { classes } = sheet$
|
|
2293
|
+
const { classes } = sheet$2;
|
|
1903
2294
|
const { text } = props;
|
|
1904
2295
|
return (h("div", null,
|
|
1905
|
-
h("style", { type: "text/css" }, styleString$
|
|
2296
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1906
2297
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1907
2298
|
h("sl-icon", { style: {
|
|
1908
2299
|
width: "50px",
|
|
@@ -1914,14 +2305,14 @@ const DocusignErrorView = (props) => {
|
|
|
1914
2305
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1915
2306
|
};
|
|
1916
2307
|
const DocusignLoadingView = () => {
|
|
1917
|
-
const { classes } = sheet$
|
|
2308
|
+
const { classes } = sheet$2;
|
|
1918
2309
|
return (h("div", null,
|
|
1919
|
-
h("style", { type: "text/css" }, styleString$
|
|
2310
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1920
2311
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1921
2312
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1922
2313
|
};
|
|
1923
2314
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1924
|
-
const { classes } = sheet$
|
|
2315
|
+
const { classes } = sheet$2;
|
|
1925
2316
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1926
2317
|
const allowedDomains = [
|
|
1927
2318
|
"referralsaasquatch.com",
|
|
@@ -1954,12 +2345,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1954
2345
|
return h(DocusignExpiredView, { text: text });
|
|
1955
2346
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1956
2347
|
return (h("div", { style: { height: iFrameHeight } },
|
|
1957
|
-
h("style", { type: "text/css" }, styleString$
|
|
2348
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1958
2349
|
h("div", { class: classes.IFrameContainer },
|
|
1959
2350
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1960
2351
|
};
|
|
1961
2352
|
|
|
1962
|
-
const style$
|
|
2353
|
+
const style$3 = {
|
|
1963
2354
|
FormWrapper: {
|
|
1964
2355
|
display: "flex",
|
|
1965
2356
|
justifyContent: "flex-start",
|
|
@@ -2072,9 +2463,9 @@ const style$2 = {
|
|
|
2072
2463
|
fontSize: "var(--sl-font-size-medium)",
|
|
2073
2464
|
},
|
|
2074
2465
|
};
|
|
2075
|
-
const sheet$
|
|
2076
|
-
const styleString$
|
|
2077
|
-
const vanillaStyle$
|
|
2466
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2467
|
+
const styleString$3 = sheet$3.toString();
|
|
2468
|
+
const vanillaStyle$2 = `
|
|
2078
2469
|
:host{
|
|
2079
2470
|
display: block;
|
|
2080
2471
|
}
|
|
@@ -2099,11 +2490,11 @@ const vanillaStyle$1 = `
|
|
|
2099
2490
|
const DocusignFormView = (props) => {
|
|
2100
2491
|
var _a;
|
|
2101
2492
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2102
|
-
const { classes } = sheet$
|
|
2493
|
+
const { classes } = sheet$3;
|
|
2103
2494
|
return (h("div", { class: classes.Container },
|
|
2104
2495
|
h("style", { type: "text/css" },
|
|
2105
|
-
styleString$
|
|
2106
|
-
vanillaStyle$
|
|
2496
|
+
styleString$3,
|
|
2497
|
+
vanillaStyle$2),
|
|
2107
2498
|
h("div", { class: classes.TextContainer },
|
|
2108
2499
|
h("div", null,
|
|
2109
2500
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2113,16 +2504,26 @@ const DocusignFormView = (props) => {
|
|
|
2113
2504
|
h("h3", null, text.taxForm),
|
|
2114
2505
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2115
2506
|
states.loadingError && (h("div", null,
|
|
2116
|
-
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 },
|
|
2117
2508
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2118
2509
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2119
2510
|
h("br", null),
|
|
2120
|
-
|
|
2121
|
-
|
|
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 },
|
|
2122
2518
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2123
2519
|
h("strong", null, text.error.generalTitle),
|
|
2124
2520
|
h("br", null),
|
|
2125
|
-
|
|
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
|
+
}))),
|
|
2126
2527
|
h("div", null,
|
|
2127
2528
|
h("div", null,
|
|
2128
2529
|
h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
@@ -2161,6 +2562,10 @@ const DocusignForm = class {
|
|
|
2161
2562
|
* @uiWidget textArea
|
|
2162
2563
|
*/
|
|
2163
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";
|
|
2164
2569
|
/**
|
|
2165
2570
|
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
2166
2571
|
* @uiName W-8 BEN tax form description
|
|
@@ -2204,7 +2609,7 @@ const DocusignForm = class {
|
|
|
2204
2609
|
* @uiName Docusign form error message
|
|
2205
2610
|
* @uiWidget textArea
|
|
2206
2611
|
*/
|
|
2207
|
-
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}.";
|
|
2208
2613
|
/**
|
|
2209
2614
|
* @uiName Refresh page button label
|
|
2210
2615
|
*/
|
|
@@ -2220,7 +2625,7 @@ const DocusignForm = class {
|
|
|
2220
2625
|
* @uiName Form submission error message description
|
|
2221
2626
|
* @uiWidget textArea
|
|
2222
2627
|
*/
|
|
2223
|
-
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}.";
|
|
2224
2629
|
/**
|
|
2225
2630
|
* Part of the alert displayed at the top of the page.
|
|
2226
2631
|
* @uiName Page load error message title
|
|
@@ -2232,7 +2637,7 @@ const DocusignForm = class {
|
|
|
2232
2637
|
* @uiName Page load error message description
|
|
2233
2638
|
* @uiWidget textArea
|
|
2234
2639
|
*/
|
|
2235
|
-
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}.";
|
|
2236
2641
|
/**
|
|
2237
2642
|
* Displayed at the top of the page on all set up steps.
|
|
2238
2643
|
* @uiName Page description
|
|
@@ -2280,7 +2685,7 @@ const DocusignForm = class {
|
|
|
2280
2685
|
get el() { return getElement(this); }
|
|
2281
2686
|
};
|
|
2282
2687
|
function useDocusignFormDemo(props) {
|
|
2283
|
-
const setStep =
|
|
2688
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2284
2689
|
return cjs({
|
|
2285
2690
|
text: props.getTextProps(),
|
|
2286
2691
|
states: {
|
|
@@ -2329,7 +2734,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2329
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")))));
|
|
2330
2735
|
};
|
|
2331
2736
|
|
|
2332
|
-
const style$
|
|
2737
|
+
const style$4 = {
|
|
2333
2738
|
FormWrapper: {
|
|
2334
2739
|
display: "flex",
|
|
2335
2740
|
justifyContent: "flex-start",
|
|
@@ -2417,11 +2822,9 @@ const style$3 = {
|
|
|
2417
2822
|
border: "none",
|
|
2418
2823
|
},
|
|
2419
2824
|
"&::part(message)": {
|
|
2420
|
-
display: "flex",
|
|
2421
2825
|
alignItems: "center",
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
height: "max-content",
|
|
2826
|
+
padding: "var(--sl-spacing-small)",
|
|
2827
|
+
whiteSpace: "nowrap",
|
|
2425
2828
|
},
|
|
2426
2829
|
"& sl-icon::part(base)": {
|
|
2427
2830
|
color: "var(--sl-color-yellow-500)",
|
|
@@ -2437,9 +2840,9 @@ const style$3 = {
|
|
|
2437
2840
|
marginBottom: "var(--sl-spacing-small)",
|
|
2438
2841
|
},
|
|
2439
2842
|
};
|
|
2440
|
-
const sheet$
|
|
2441
|
-
const styleString$
|
|
2442
|
-
const vanillaStyle$
|
|
2843
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2844
|
+
const styleString$4 = sheet$4.toString();
|
|
2845
|
+
const vanillaStyle$3 = `
|
|
2443
2846
|
:host{
|
|
2444
2847
|
display: block;
|
|
2445
2848
|
}
|
|
@@ -2458,11 +2861,11 @@ const vanillaStyle$2 = `
|
|
|
2458
2861
|
const IndirectTaxFormView = (props) => {
|
|
2459
2862
|
var _a;
|
|
2460
2863
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2461
|
-
const { classes } = sheet$
|
|
2864
|
+
const { classes } = sheet$4;
|
|
2462
2865
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2463
2866
|
h("style", { type: "text/css" },
|
|
2464
|
-
styleString$
|
|
2465
|
-
vanillaStyle$
|
|
2867
|
+
styleString$4,
|
|
2868
|
+
vanillaStyle$3),
|
|
2466
2869
|
h("div", { class: classes.TextContainer },
|
|
2467
2870
|
h("div", null,
|
|
2468
2871
|
!states.hideSteps && (h("p", null,
|
|
@@ -2475,21 +2878,36 @@ const IndirectTaxFormView = (props) => {
|
|
|
2475
2878
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2476
2879
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2477
2880
|
states.loadingError && (h("div", null,
|
|
2478
|
-
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 },
|
|
2479
2882
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2480
2883
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2481
2884
|
h("br", null),
|
|
2482
|
-
|
|
2483
|
-
|
|
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 },
|
|
2484
2892
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2485
2893
|
h("strong", null, text.error.generalTitle),
|
|
2486
2894
|
h("br", null),
|
|
2487
|
-
|
|
2488
|
-
|
|
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" },
|
|
2489
2902
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2490
2903
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2491
2904
|
h("br", null),
|
|
2492
|
-
|
|
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
|
+
}))),
|
|
2493
2911
|
h("div", null,
|
|
2494
2912
|
h("h4", null, text.indirectTaxDetails))),
|
|
2495
2913
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
@@ -2506,7 +2924,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2506
2924
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2507
2925
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2508
2926
|
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2509
|
-
|
|
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
|
+
})),
|
|
2510
2933
|
h("div", { class: classes.BtnContainer },
|
|
2511
2934
|
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2512
2935
|
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -2550,15 +2973,15 @@ function getOption(countries, countryCode) {
|
|
|
2550
2973
|
}
|
|
2551
2974
|
function useIndirectTaxForm(props) {
|
|
2552
2975
|
var _a, _b, _c, _d, _e;
|
|
2553
|
-
const user =
|
|
2554
|
-
const locale =
|
|
2976
|
+
const user = Q();
|
|
2977
|
+
const locale = L();
|
|
2555
2978
|
const formRef = useRef(null);
|
|
2556
|
-
const context =
|
|
2557
|
-
const [step, setStep] =
|
|
2558
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] =
|
|
2559
|
-
const userForm =
|
|
2560
|
-
const { data: userData, refetch, errors: userError, } =
|
|
2561
|
-
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);
|
|
2562
2985
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2563
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]);
|
|
2564
2987
|
const [loading, setLoading] = useState(false);
|
|
@@ -2676,6 +3099,8 @@ function useIndirectTaxForm(props) {
|
|
|
2676
3099
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2677
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;
|
|
2678
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));
|
|
2679
3104
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2680
3105
|
!hasValidCurrentDocument) {
|
|
2681
3106
|
// Go to docusign form
|
|
@@ -2834,7 +3259,7 @@ const IndirectTaxForm = class {
|
|
|
2834
3259
|
* @uiName Submission confirmation alert
|
|
2835
3260
|
* @uiWidget textArea
|
|
2836
3261
|
*/
|
|
2837
|
-
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.";
|
|
2838
3263
|
/**
|
|
2839
3264
|
* @uiName Missing indirect tax number error message
|
|
2840
3265
|
*/
|
|
@@ -2860,11 +3285,15 @@ const IndirectTaxForm = class {
|
|
|
2860
3285
|
* @uiName Participant is a partner alert description
|
|
2861
3286
|
* @uiWidget textArea
|
|
2862
3287
|
*/
|
|
2863
|
-
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.";
|
|
2864
3289
|
/**
|
|
2865
3290
|
* @uiName Continue button label
|
|
2866
3291
|
*/
|
|
2867
3292
|
this.continueButton = "Continue";
|
|
3293
|
+
/**
|
|
3294
|
+
* @uiName Support link text
|
|
3295
|
+
*/
|
|
3296
|
+
this.supportLink = "support team";
|
|
2868
3297
|
/**
|
|
2869
3298
|
* Part of the alert displayed at the top of the page.
|
|
2870
3299
|
* @uiName Form submission error message title
|
|
@@ -2876,7 +3305,7 @@ const IndirectTaxForm = class {
|
|
|
2876
3305
|
* @uiName Form submission error message description
|
|
2877
3306
|
* @uiWidget textArea
|
|
2878
3307
|
*/
|
|
2879
|
-
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}.";
|
|
2880
3309
|
/**
|
|
2881
3310
|
* Part of the alert displayed at the top of the page.
|
|
2882
3311
|
* @uiName Page load error message title
|
|
@@ -2888,7 +3317,7 @@ const IndirectTaxForm = class {
|
|
|
2888
3317
|
* @uiName Page load error message description
|
|
2889
3318
|
* @uiWidget textArea
|
|
2890
3319
|
*/
|
|
2891
|
-
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}.";
|
|
2892
3321
|
/**
|
|
2893
3322
|
* Displayed at the top of the page on all set up steps.
|
|
2894
3323
|
* @uiName Page description
|
|
@@ -2947,7 +3376,7 @@ const IndirectTaxForm = class {
|
|
|
2947
3376
|
}
|
|
2948
3377
|
};
|
|
2949
3378
|
function useDemoIndirectTaxForm(props) {
|
|
2950
|
-
const setStep =
|
|
3379
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2951
3380
|
const [option, setOption] = useState(null);
|
|
2952
3381
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2953
3382
|
return cjs({
|
|
@@ -3057,8 +3486,8 @@ const GET_INVOICES = dist.gql `
|
|
|
3057
3486
|
`;
|
|
3058
3487
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
3059
3488
|
var _a;
|
|
3060
|
-
const user =
|
|
3061
|
-
const locale =
|
|
3489
|
+
const user = Q();
|
|
3490
|
+
const locale = L();
|
|
3062
3491
|
const [content, setContent] = useReducer((state, next) => ({
|
|
3063
3492
|
...state,
|
|
3064
3493
|
...next,
|
|
@@ -3068,7 +3497,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3068
3497
|
loading: false,
|
|
3069
3498
|
page: 0,
|
|
3070
3499
|
});
|
|
3071
|
-
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; }, {
|
|
3072
3501
|
limit: props.perPage,
|
|
3073
3502
|
offset: 0,
|
|
3074
3503
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3444,7 +3873,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3444
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" }),
|
|
3445
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" })));
|
|
3446
3875
|
|
|
3447
|
-
const style$
|
|
3876
|
+
const style$5 = {
|
|
3448
3877
|
CardContainer: {
|
|
3449
3878
|
display: "grid",
|
|
3450
3879
|
gridTemplateColumns: "1fr",
|
|
@@ -3578,7 +4007,7 @@ const style$4 = {
|
|
|
3578
4007
|
},
|
|
3579
4008
|
};
|
|
3580
4009
|
function PayoutDetailsCardView(props) {
|
|
3581
|
-
const sheet = createStyleSheet(style$
|
|
4010
|
+
const sheet = createStyleSheet(style$5);
|
|
3582
4011
|
const styleString = sheet.toString();
|
|
3583
4012
|
const { classes } = sheet;
|
|
3584
4013
|
const { states, text } = props;
|
|
@@ -3608,11 +4037,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3608
4037
|
});
|
|
3609
4038
|
return (h("div", { class: classes.Container },
|
|
3610
4039
|
h("style", { type: "text/css" }, styleString),
|
|
3611
|
-
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3612
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3613
|
-
h("div", { class: classes.AlertContent },
|
|
3614
|
-
h("b", null, text.error.errorTitleText),
|
|
3615
|
-
text.error.errorDescriptionText))),
|
|
3616
4040
|
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
3617
4041
|
h("div", { class: classes.StatusContainer },
|
|
3618
4042
|
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3634,7 +4058,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3634
4058
|
|
|
3635
4059
|
function usePayoutDetailsCard(props) {
|
|
3636
4060
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3637
|
-
const { data, loading } =
|
|
4061
|
+
const { data, loading } = Mn(USER_QUERY_NAMESPACE);
|
|
3638
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;
|
|
3639
4063
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3640
4064
|
var _a;
|
|
@@ -3708,16 +4132,6 @@ const PayoutDetailsCard = class {
|
|
|
3708
4132
|
* @uiName Bank account field label
|
|
3709
4133
|
*/
|
|
3710
4134
|
this.accountText = "Account";
|
|
3711
|
-
/**
|
|
3712
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3713
|
-
* @uiName Payout error message title
|
|
3714
|
-
*/
|
|
3715
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3716
|
-
/**
|
|
3717
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3718
|
-
* @uiName Payout error message description
|
|
3719
|
-
*/
|
|
3720
|
-
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.";
|
|
3721
4135
|
/**
|
|
3722
4136
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3723
4137
|
* @uiName Payout missing information subtext
|
|
@@ -3730,10 +4144,6 @@ const PayoutDetailsCard = class {
|
|
|
3730
4144
|
const props = getProps(this);
|
|
3731
4145
|
return {
|
|
3732
4146
|
...props,
|
|
3733
|
-
error: {
|
|
3734
|
-
errorTitleText: this.errorTitleText,
|
|
3735
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3736
|
-
},
|
|
3737
4147
|
};
|
|
3738
4148
|
}
|
|
3739
4149
|
render() {
|
|
@@ -3805,21 +4215,21 @@ function getCurrentStep(user) {
|
|
|
3805
4215
|
}
|
|
3806
4216
|
function useTaxAndCash() {
|
|
3807
4217
|
var _a, _b, _c, _d, _e;
|
|
3808
|
-
const host =
|
|
3809
|
-
const user =
|
|
3810
|
-
const locale =
|
|
4218
|
+
const host = _();
|
|
4219
|
+
const user = Q();
|
|
4220
|
+
const locale = L();
|
|
3811
4221
|
// State for current step of form
|
|
3812
|
-
const [step, setStep] =
|
|
4222
|
+
const [step, setStep] = Cn({
|
|
3813
4223
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3814
4224
|
initialValue: "/loading",
|
|
3815
4225
|
});
|
|
3816
4226
|
// State for when to hide steps, or override certain actions
|
|
3817
|
-
const [context, _setContext] =
|
|
4227
|
+
const [context, _setContext] = Cn({
|
|
3818
4228
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3819
4229
|
initialValue: {},
|
|
3820
4230
|
});
|
|
3821
4231
|
// State to carry user form information into step 2
|
|
3822
|
-
const [userFormContext, _setUserFormContext] =
|
|
4232
|
+
const [userFormContext, _setUserFormContext] = Cn({
|
|
3823
4233
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3824
4234
|
initialValue: {
|
|
3825
4235
|
firstName: undefined,
|
|
@@ -3829,19 +4239,19 @@ function useTaxAndCash() {
|
|
|
3829
4239
|
currency: undefined,
|
|
3830
4240
|
},
|
|
3831
4241
|
});
|
|
3832
|
-
const [_currenciesContext, setCurrenciesContext] =
|
|
4242
|
+
const [_currenciesContext, setCurrenciesContext] = Cn({
|
|
3833
4243
|
namespace: CURRENCIES_NAMESPACE,
|
|
3834
4244
|
initialValue: [],
|
|
3835
4245
|
});
|
|
3836
|
-
const [_countriesContext, _setCountriesContext] =
|
|
4246
|
+
const [_countriesContext, _setCountriesContext] = Cn({
|
|
3837
4247
|
namespace: COUNTRIES_NAMESPACE,
|
|
3838
4248
|
initialValue: [],
|
|
3839
4249
|
});
|
|
3840
|
-
const [_sortedCountriesContext, setSortedCountriesContext] =
|
|
4250
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = Cn({
|
|
3841
4251
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3842
4252
|
initialValue: [],
|
|
3843
4253
|
});
|
|
3844
|
-
const { data, errors } =
|
|
4254
|
+
const { data, errors } = Fn({
|
|
3845
4255
|
namespace: USER_QUERY_NAMESPACE,
|
|
3846
4256
|
query: GET_USER,
|
|
3847
4257
|
skip: !user,
|
|
@@ -3851,12 +4261,12 @@ function useTaxAndCash() {
|
|
|
3851
4261
|
});
|
|
3852
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) ||
|
|
3853
4263
|
userFormContext.countryCode;
|
|
3854
|
-
|
|
4264
|
+
Fn({
|
|
3855
4265
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3856
4266
|
query: GET_COUNTRIES,
|
|
3857
4267
|
skip: !user,
|
|
3858
4268
|
});
|
|
3859
|
-
const { data: financeNetworkData, refetch } =
|
|
4269
|
+
const { data: financeNetworkData, refetch } = Fn({
|
|
3860
4270
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3861
4271
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3862
4272
|
skip: !user,
|
|
@@ -3864,7 +4274,7 @@ function useTaxAndCash() {
|
|
|
3864
4274
|
filter: getFinanceNetworkFilter(),
|
|
3865
4275
|
},
|
|
3866
4276
|
});
|
|
3867
|
-
const { data: currenciesData } =
|
|
4277
|
+
const { data: currenciesData } = Fn({
|
|
3868
4278
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3869
4279
|
query: GET_CURRENCIES,
|
|
3870
4280
|
skip: !user,
|
|
@@ -3945,7 +4355,7 @@ function useTaxAndCash() {
|
|
|
3945
4355
|
step,
|
|
3946
4356
|
setStep,
|
|
3947
4357
|
context,
|
|
3948
|
-
namespace:
|
|
4358
|
+
namespace: Pn(TAX_CONTEXT_NAMESPACE),
|
|
3949
4359
|
loading: step === "/loading",
|
|
3950
4360
|
};
|
|
3951
4361
|
}
|
|
@@ -4047,13 +4457,15 @@ const TaxAndCashMonolith = class {
|
|
|
4047
4457
|
* @uiName Terms and conditions link
|
|
4048
4458
|
* @uiGroup Step 1 Properties
|
|
4049
4459
|
*/
|
|
4050
|
-
this.step1_termsAndConditionsLink = "/
|
|
4460
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4051
4461
|
/**
|
|
4052
4462
|
* Placeholder text displayed in the currency search dropdown
|
|
4053
4463
|
* @uiName Currency field placeholder text
|
|
4054
4464
|
* @uiGroup Step 1 Properties
|
|
4055
4465
|
*/
|
|
4056
4466
|
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4467
|
+
/**
|
|
4468
|
+
|
|
4057
4469
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4058
4470
|
STEP 2 PROPS:
|
|
4059
4471
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4156,7 +4568,7 @@ const TaxAndCashMonolith = class {
|
|
|
4156
4568
|
* @uiGroup Step 2 Properties
|
|
4157
4569
|
* @uiWidget textArea
|
|
4158
4570
|
*/
|
|
4159
|
-
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.";
|
|
4160
4572
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4161
4573
|
STEP 3 PROPS:
|
|
4162
4574
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4229,7 +4641,7 @@ const TaxAndCashMonolith = class {
|
|
|
4229
4641
|
* @uiGroup Step 3 Properties
|
|
4230
4642
|
* @uiWidget textArea
|
|
4231
4643
|
*/
|
|
4232
|
-
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}.";
|
|
4233
4645
|
/**
|
|
4234
4646
|
* @uiName Refresh page button label
|
|
4235
4647
|
* @uiGroup Step 3 Properties
|
|
@@ -4454,6 +4866,16 @@ const TaxAndCashMonolith = class {
|
|
|
4454
4866
|
* @uiGroup Step 4 Properties
|
|
4455
4867
|
*/
|
|
4456
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.";
|
|
4457
4879
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4458
4880
|
DASHBOARD PROPS:
|
|
4459
4881
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4591,7 +5013,7 @@ const TaxAndCashMonolith = class {
|
|
|
4591
5013
|
* @uiGroup Dashboard Properties
|
|
4592
5014
|
* @uiWidget textArea
|
|
4593
5015
|
*/
|
|
4594
|
-
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}.";
|
|
4595
5017
|
/**
|
|
4596
5018
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4597
5019
|
*
|
|
@@ -4614,7 +5036,7 @@ const TaxAndCashMonolith = class {
|
|
|
4614
5036
|
* @uiGroup Dashboard Properties
|
|
4615
5037
|
* @uiWidget textArea
|
|
4616
5038
|
*/
|
|
4617
|
-
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.";
|
|
4618
5040
|
/**
|
|
4619
5041
|
* Displayed to participants registered in Quebec, Canada.
|
|
4620
5042
|
* @uiName QST indirect tax details
|
|
@@ -4686,14 +5108,14 @@ const TaxAndCashMonolith = class {
|
|
|
4686
5108
|
* @uiGroup Dashboard Properties
|
|
4687
5109
|
* @uiWidget textArea
|
|
4688
5110
|
*/
|
|
4689
|
-
this.
|
|
5111
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
4690
5112
|
/**
|
|
4691
5113
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4692
5114
|
* @uiName Payout error message description
|
|
4693
5115
|
* @uiGroup Dashboard Properties
|
|
4694
5116
|
* @uiWidget textArea
|
|
4695
5117
|
*/
|
|
4696
|
-
this.
|
|
5118
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
4697
5119
|
/**
|
|
4698
5120
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4699
5121
|
* @uiName Payout missing information subtext
|
|
@@ -4741,6 +5163,63 @@ const TaxAndCashMonolith = class {
|
|
|
4741
5163
|
* @uiWidget textArea
|
|
4742
5164
|
*/
|
|
4743
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";
|
|
4744
5223
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4745
5224
|
GENERAL PROPS:
|
|
4746
5225
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4762,7 +5241,7 @@ const TaxAndCashMonolith = class {
|
|
|
4762
5241
|
* @uiGroup General Form Properties
|
|
4763
5242
|
* @uiWidget textArea
|
|
4764
5243
|
*/
|
|
4765
|
-
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}.";
|
|
4766
5245
|
/**
|
|
4767
5246
|
* Displayed under a field that is missing required information.
|
|
4768
5247
|
* @uiName Empty form field error message
|
|
@@ -4809,7 +5288,7 @@ const TaxAndCashMonolith = class {
|
|
|
4809
5288
|
* @uiGroup General Form Properties
|
|
4810
5289
|
* @uiWidget textArea
|
|
4811
5290
|
*/
|
|
4812
|
-
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.";
|
|
4813
5292
|
/**
|
|
4814
5293
|
* Placeholder text displayed in the country search dropdown
|
|
4815
5294
|
* @uiName Country field placeholder text
|
|
@@ -4829,13 +5308,19 @@ const TaxAndCashMonolith = class {
|
|
|
4829
5308
|
* @uiGroup General Form Properties
|
|
4830
5309
|
* @uiWidget textArea
|
|
4831
5310
|
*/
|
|
4832
|
-
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}.";
|
|
4833
5312
|
/**
|
|
4834
5313
|
* Displayed at the top of the page on all set up steps.
|
|
4835
5314
|
* @uiName Page description
|
|
4836
5315
|
* @uiGroup General Form Properties
|
|
4837
5316
|
*/
|
|
4838
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";
|
|
4839
5324
|
h$1(this);
|
|
4840
5325
|
}
|
|
4841
5326
|
disconnectedCallback() { }
|
|
@@ -4859,6 +5344,7 @@ const TaxAndCashMonolith = class {
|
|
|
4859
5344
|
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
4860
5345
|
searchForCountryText: props.searchForCountryText,
|
|
4861
5346
|
formStep: props.formStep,
|
|
5347
|
+
supportLink: props.supportLink,
|
|
4862
5348
|
};
|
|
4863
5349
|
}
|
|
4864
5350
|
render() {
|
|
@@ -4891,7 +5377,7 @@ const TaxAndCashMonolith = class {
|
|
|
4891
5377
|
}
|
|
4892
5378
|
};
|
|
4893
5379
|
function useDemoTaxAndCash(props) {
|
|
4894
|
-
const [step, setStep] =
|
|
5380
|
+
const [step, setStep] = Cn({
|
|
4895
5381
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4896
5382
|
initialValue: "/1",
|
|
4897
5383
|
});
|
|
@@ -4901,18 +5387,47 @@ function useDemoTaxAndCash(props) {
|
|
|
4901
5387
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4902
5388
|
}
|
|
4903
5389
|
|
|
4904
|
-
const style$
|
|
4905
|
-
|
|
5390
|
+
const style$6 = {
|
|
5391
|
+
ErrorAlertContainer: {
|
|
4906
5392
|
"&::part(base)": {
|
|
4907
5393
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4908
5394
|
borderTop: "none",
|
|
4909
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
|
+
},
|
|
4910
5409
|
},
|
|
4911
|
-
|
|
5410
|
+
WarningHoldAlertContainer: {
|
|
5411
|
+
marginLeft: "-20px",
|
|
4912
5412
|
"&::part(base)": {
|
|
5413
|
+
maxWidth: "850px",
|
|
4913
5414
|
border: "none",
|
|
4914
5415
|
backgroundColor: "transparent",
|
|
4915
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
|
+
},
|
|
4916
5431
|
},
|
|
4917
5432
|
ExpiringSoonAlertContainer: {
|
|
4918
5433
|
"&::part(base)": {
|
|
@@ -5033,6 +5548,7 @@ const style$5 = {
|
|
|
5033
5548
|
PageDescriptionText: {
|
|
5034
5549
|
color: "var(--sl-color-neutral-500)",
|
|
5035
5550
|
fontSize: "var(--sl-font-size-medium)",
|
|
5551
|
+
marginTop: "0",
|
|
5036
5552
|
},
|
|
5037
5553
|
Dialog: {
|
|
5038
5554
|
"&::part(panel)": {
|
|
@@ -5062,13 +5578,86 @@ const style$5 = {
|
|
|
5062
5578
|
},
|
|
5063
5579
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5064
5580
|
};
|
|
5065
|
-
const sheet$
|
|
5066
|
-
const styleString$
|
|
5581
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5582
|
+
const styleString$5 = sheet$5.toString();
|
|
5067
5583
|
const TaxAndCashDashboardView = (props) => {
|
|
5068
|
-
var _a;
|
|
5584
|
+
var _a, _b, _c, _d;
|
|
5069
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
|
+
}
|
|
5070
5659
|
const statusMap = {
|
|
5071
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
5660
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5072
5661
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5073
5662
|
h("p", null, intl.formatMessage({
|
|
5074
5663
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5076,7 +5665,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5076
5665
|
}, {
|
|
5077
5666
|
dateSubmitted: states.dateSubmitted,
|
|
5078
5667
|
})))),
|
|
5079
|
-
ACTIVE: (h("div", { class: sheet$
|
|
5668
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5080
5669
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5081
5670
|
h("p", null, intl.formatMessage({
|
|
5082
5671
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5086,12 +5675,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5086
5675
|
}, {
|
|
5087
5676
|
dateSubmitted: states.dateSubmitted,
|
|
5088
5677
|
})))),
|
|
5089
|
-
INACTIVE: (h("div", { class: sheet$
|
|
5678
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5090
5679
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5091
5680
|
h("p", null, text.invalidForm))),
|
|
5092
5681
|
};
|
|
5093
5682
|
const alertMap = {
|
|
5094
|
-
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 },
|
|
5095
5684
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5096
5685
|
h("strong", null, intl.formatMessage({
|
|
5097
5686
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5141,72 +5730,76 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5141
5730
|
};
|
|
5142
5731
|
return (h("div", null,
|
|
5143
5732
|
h("div", null,
|
|
5144
|
-
h("style", { type: "text/css" }, styleString$
|
|
5733
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
5145
5734
|
states.loadingError && (h("div", null,
|
|
5146
|
-
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 },
|
|
5147
5736
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5148
5737
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5149
5738
|
h("br", null),
|
|
5150
|
-
|
|
5151
|
-
|
|
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 },
|
|
5152
5746
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5153
5747
|
h("strong", null, text.error.generalTitle),
|
|
5154
5748
|
h("br", null),
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
states.payoutStatus
|
|
5162
|
-
h("sl-icon", { slot: "icon", name:
|
|
5163
|
-
h("strong", null,
|
|
5164
|
-
h("p", { style: { margin: "0" } },
|
|
5165
|
-
h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.
|
|
5166
|
-
|
|
5167
|
-
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText))),
|
|
5168
|
-
h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
|
|
5169
|
-
h("iframe", {
|
|
5170
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
5171
|
-
scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" })),
|
|
5172
|
-
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
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 },
|
|
5173
5761
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5174
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5175
|
-
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)),
|
|
5176
5764
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5177
5765
|
h("div", null,
|
|
5178
|
-
h("h3",
|
|
5179
|
-
h("p", { class: sheet$
|
|
5180
|
-
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 },
|
|
5181
5769
|
slots.payoutDetailsCardSlot,
|
|
5182
|
-
!states.loading && (h("p", { class: sheet$
|
|
5183
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5184
|
-
h("div", { class: sheet$
|
|
5185
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
5186
|
-
h("sl-skeleton", { class: sheet$
|
|
5187
|
-
h("sl-skeleton", { class: sheet$
|
|
5188
|
-
h("h3", { class: sheet$
|
|
5189
|
-
h("p", { class: sheet$
|
|
5190
|
-
h("span", { class: sheet$
|
|
5191
|
-
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 },
|
|
5192
5780
|
h("h3", null, intl.formatMessage({
|
|
5193
5781
|
id: "section-subheader",
|
|
5194
5782
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5195
5783
|
}, {
|
|
5196
5784
|
documentType: states.documentTypeString,
|
|
5197
5785
|
})),
|
|
5198
|
-
h("span", { class: sheet$
|
|
5199
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5200
|
-
h("div", { class: sheet$
|
|
5201
|
-
h("sl-skeleton", { class: sheet$
|
|
5202
|
-
h("sl-skeleton", { class: sheet$
|
|
5203
|
-
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 },
|
|
5204
5792
|
text.indirectTaxInfoSectionHeader,
|
|
5205
|
-
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5206
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
5207
|
-
h("div", { class: sheet$
|
|
5208
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
5209
|
-
|
|
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 },
|
|
5210
5803
|
h("span", null, intl.formatMessage({
|
|
5211
5804
|
id: `indirectTaxDetails`,
|
|
5212
5805
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5229,7 +5822,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5229
5822
|
}, {
|
|
5230
5823
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5231
5824
|
})))),
|
|
5232
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
5825
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
5233
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 },
|
|
5234
5827
|
h("sqm-invoice-table-download-column", null),
|
|
5235
5828
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5275,16 +5868,16 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5275
5868
|
}
|
|
5276
5869
|
const useTaxAndCashDashboard = (props) => {
|
|
5277
5870
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5278
|
-
const setStep =
|
|
5279
|
-
const setContext =
|
|
5871
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
5872
|
+
const setContext = wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5280
5873
|
const [showDialog, setShowDialog] = useState(false);
|
|
5281
|
-
const
|
|
5282
|
-
const locale =
|
|
5874
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
5875
|
+
const locale = L();
|
|
5283
5876
|
useEffect(() => {
|
|
5284
5877
|
// Clear override context once on submitted
|
|
5285
5878
|
setContext({});
|
|
5286
5879
|
}, []);
|
|
5287
|
-
const { data, loading, errors: userError, } =
|
|
5880
|
+
const { data, loading, errors: userError, refetch, } = Mn(USER_QUERY_NAMESPACE);
|
|
5288
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;
|
|
5289
5882
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5290
5883
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5309,7 +5902,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5309
5902
|
setStep("/3");
|
|
5310
5903
|
};
|
|
5311
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;
|
|
5312
|
-
const payoutStatus = getStatus(data);
|
|
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
|
+
}, []);
|
|
5313
5913
|
return {
|
|
5314
5914
|
states: {
|
|
5315
5915
|
dateSubmitted,
|
|
@@ -5333,14 +5933,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5333
5933
|
showNewFormDialog: showDialog,
|
|
5334
5934
|
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5335
5935
|
payoutStatus,
|
|
5336
|
-
|
|
5936
|
+
veriffLoading,
|
|
5337
5937
|
},
|
|
5338
5938
|
callbacks: {
|
|
5339
5939
|
onClick: () => setShowDialog(true),
|
|
5940
|
+
onVerifyClick: () => render(),
|
|
5340
5941
|
onEditPayoutInfo,
|
|
5341
5942
|
onNewFormCancel: () => setShowDialog(false),
|
|
5342
5943
|
onNewFormClick,
|
|
5343
|
-
onVerifyIdentityCancel: () => setShowVerification(false),
|
|
5344
5944
|
},
|
|
5345
5945
|
text: props.getTextProps(),
|
|
5346
5946
|
};
|
|
@@ -5463,7 +6063,7 @@ const TaxAndCashDashboard = class {
|
|
|
5463
6063
|
* @uiName Indirect tax tooltip
|
|
5464
6064
|
* @uiWidget textArea
|
|
5465
6065
|
*/
|
|
5466
|
-
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.";
|
|
5467
6067
|
/**
|
|
5468
6068
|
* Displayed to participants who have submitted their indirect tax information.
|
|
5469
6069
|
*
|
|
@@ -5483,7 +6083,7 @@ const TaxAndCashDashboard = class {
|
|
|
5483
6083
|
* @uiName Not registered for indirect tax text
|
|
5484
6084
|
* @uiWidget textArea
|
|
5485
6085
|
*/
|
|
5486
|
-
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.";
|
|
5487
6087
|
/**
|
|
5488
6088
|
* Displayed to participants registered in Quebec, Canada.
|
|
5489
6089
|
* @uiName QST indirect tax details
|
|
@@ -5518,7 +6118,7 @@ const TaxAndCashDashboard = class {
|
|
|
5518
6118
|
* @uiName Payout error message description
|
|
5519
6119
|
* @uiWidget textArea
|
|
5520
6120
|
*/
|
|
5521
|
-
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.";
|
|
5522
6122
|
/**
|
|
5523
6123
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5524
6124
|
* @uiName Payout missing information subtext
|
|
@@ -5535,7 +6135,31 @@ const TaxAndCashDashboard = class {
|
|
|
5535
6135
|
* @uiName Verification required alert message description
|
|
5536
6136
|
* @uiWidget textArea
|
|
5537
6137
|
*/
|
|
5538
|
-
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
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}.";
|
|
5539
6163
|
/**
|
|
5540
6164
|
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5541
6165
|
* @uiName Verification required alert button text
|
|
@@ -5552,7 +6176,7 @@ const TaxAndCashDashboard = class {
|
|
|
5552
6176
|
* @uiName Form submission error message description
|
|
5553
6177
|
* @uiWidget textArea
|
|
5554
6178
|
*/
|
|
5555
|
-
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}.";
|
|
5556
6180
|
/**
|
|
5557
6181
|
* Displayed under the payout details card.
|
|
5558
6182
|
* @uiName Payout from impact text
|
|
@@ -5570,7 +6194,7 @@ const TaxAndCashDashboard = class {
|
|
|
5570
6194
|
* @uiName Page load error message description
|
|
5571
6195
|
* @uiWidget textArea
|
|
5572
6196
|
*/
|
|
5573
|
-
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}.";
|
|
5574
6198
|
/**
|
|
5575
6199
|
* Part of the Invoice table displayed at the bottom of the page.
|
|
5576
6200
|
* @uiName Invoice number column title
|
|
@@ -5621,6 +6245,10 @@ const TaxAndCashDashboard = class {
|
|
|
5621
6245
|
* @uiName Replace tax form modal body text
|
|
5622
6246
|
*/
|
|
5623
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";
|
|
5624
6252
|
/**
|
|
5625
6253
|
* @uiName Cancel button label
|
|
5626
6254
|
*/
|
|
@@ -5666,13 +6294,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5666
6294
|
hasHold: false,
|
|
5667
6295
|
showVerifyIdentity: false,
|
|
5668
6296
|
payoutStatus: "DONE",
|
|
6297
|
+
veriffLoading: false,
|
|
5669
6298
|
},
|
|
5670
6299
|
callbacks: {
|
|
5671
6300
|
onClick: () => console.debug("check step"),
|
|
5672
6301
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5673
6302
|
onNewFormCancel: () => console.log("hide"),
|
|
5674
6303
|
onNewFormClick: () => console.log("show"),
|
|
5675
|
-
|
|
6304
|
+
onVerifyClick: () => console.log("verify"),
|
|
5676
6305
|
},
|
|
5677
6306
|
text: props.getTextProps(),
|
|
5678
6307
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -6649,7 +7278,7 @@ const PHONE_EXTENSIONS = {
|
|
|
6649
7278
|
},
|
|
6650
7279
|
};
|
|
6651
7280
|
|
|
6652
|
-
const style$
|
|
7281
|
+
const style$7 = {
|
|
6653
7282
|
FormWrapper: {},
|
|
6654
7283
|
ErrorInput: {
|
|
6655
7284
|
"&::part(base)": {
|
|
@@ -6729,7 +7358,6 @@ const style$6 = {
|
|
|
6729
7358
|
},
|
|
6730
7359
|
PhoneInputsSection: {
|
|
6731
7360
|
display: "flex",
|
|
6732
|
-
alignItems: "flex-end",
|
|
6733
7361
|
flexDirection: "column",
|
|
6734
7362
|
gap: "4px",
|
|
6735
7363
|
"& p": {
|
|
@@ -6740,7 +7368,6 @@ const style$6 = {
|
|
|
6740
7368
|
},
|
|
6741
7369
|
PhoneInputsContainer: {
|
|
6742
7370
|
display: "flex",
|
|
6743
|
-
alignItems: "flex-end",
|
|
6744
7371
|
gap: "4px",
|
|
6745
7372
|
width: "100%",
|
|
6746
7373
|
"& #phoneNumber": {
|
|
@@ -6749,9 +7376,9 @@ const style$6 = {
|
|
|
6749
7376
|
},
|
|
6750
7377
|
},
|
|
6751
7378
|
};
|
|
6752
|
-
const sheet$
|
|
6753
|
-
const styleString$
|
|
6754
|
-
const vanillaStyle$
|
|
7379
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7380
|
+
const styleString$6 = sheet$6.toString();
|
|
7381
|
+
const vanillaStyle$4 = `
|
|
6755
7382
|
:host{
|
|
6756
7383
|
display: block;
|
|
6757
7384
|
}
|
|
@@ -6779,7 +7406,7 @@ const vanillaStyle$3 = `
|
|
|
6779
7406
|
const UserInfoFormView = (props) => {
|
|
6780
7407
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
6781
7408
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
6782
|
-
const { classes } = sheet$
|
|
7409
|
+
const { classes } = sheet$6;
|
|
6783
7410
|
const bankingCollectionText = intl.formatMessage({
|
|
6784
7411
|
id: "bankingCollectionText",
|
|
6785
7412
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -6802,14 +7429,19 @@ const UserInfoFormView = (props) => {
|
|
|
6802
7429
|
}
|
|
6803
7430
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6804
7431
|
h("style", { type: "text/css" },
|
|
6805
|
-
styleString$
|
|
6806
|
-
vanillaStyle$
|
|
7432
|
+
styleString$6,
|
|
7433
|
+
vanillaStyle$4),
|
|
6807
7434
|
states.loadingError && (h("div", null,
|
|
6808
|
-
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 },
|
|
6809
7436
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6810
7437
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6811
7438
|
h("br", null),
|
|
6812
|
-
|
|
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
|
+
})),
|
|
6813
7445
|
h("br", null))),
|
|
6814
7446
|
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
6815
7447
|
h("div", { class: classes.TextContainer },
|
|
@@ -6820,16 +7452,26 @@ const UserInfoFormView = (props) => {
|
|
|
6820
7452
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6821
7453
|
h("h3", null, text.personalInformation),
|
|
6822
7454
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6823
|
-
((_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 },
|
|
6824
7456
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6825
7457
|
h("strong", null, text.error.generalTitle),
|
|
6826
7458
|
h("br", null),
|
|
6827
|
-
|
|
6828
|
-
|
|
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" },
|
|
6829
7466
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6830
7467
|
h("strong", null, text.isPartnerAlertHeader),
|
|
6831
7468
|
h("br", null),
|
|
6832
|
-
|
|
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
|
+
}))),
|
|
6833
7475
|
h("div", null,
|
|
6834
7476
|
h("div", { class: classes.InputContainer },
|
|
6835
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) ? {
|
|
@@ -6881,10 +7523,11 @@ const UserInfoFormView = (props) => {
|
|
|
6881
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 :
|
|
6882
7524
|
_b.dial_code));
|
|
6883
7525
|
})),
|
|
6884
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
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) ? {
|
|
6888
7531
|
class: classes.ErrorInput,
|
|
6889
7532
|
helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6890
7533
|
}
|
|
@@ -6947,12 +7590,12 @@ function useUserInfoForm(props) {
|
|
|
6947
7590
|
const currencyRef = useRef(undefined);
|
|
6948
7591
|
const phoneCountryRef = useRef(undefined);
|
|
6949
7592
|
const formRef = useRef(null);
|
|
6950
|
-
const context =
|
|
6951
|
-
const countries =
|
|
6952
|
-
const [step, setStep] =
|
|
6953
|
-
const [userFormContext, setUserFormContext] =
|
|
6954
|
-
const { data, loading, errors: userError, } =
|
|
6955
|
-
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);
|
|
6956
7599
|
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6957
7600
|
const [countrySearch, setCountrySearch] = useState("");
|
|
6958
7601
|
const [phoneCountrySearch, setPhoneCountrySearch] = useState("");
|
|
@@ -7080,6 +7723,8 @@ function useUserInfoForm(props) {
|
|
|
7080
7723
|
const { allowBankingCollection, ...userData } = formData;
|
|
7081
7724
|
setUserFormContext({
|
|
7082
7725
|
...userFormContext,
|
|
7726
|
+
firstName: userData.firstName,
|
|
7727
|
+
lastName: userData.lastName,
|
|
7083
7728
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
7084
7729
|
phoneNumber: userData.phoneNumber,
|
|
7085
7730
|
countryCode: userData.countryCode,
|
|
@@ -7216,7 +7861,7 @@ const TaxForm = class {
|
|
|
7216
7861
|
* @uiName Participant is a partner alert description
|
|
7217
7862
|
* @uiWidget textArea
|
|
7218
7863
|
*/
|
|
7219
|
-
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.";
|
|
7220
7865
|
/**
|
|
7221
7866
|
* Part of the alert displayed at the top of the page.
|
|
7222
7867
|
* @uiName Form submission error message title
|
|
@@ -7228,7 +7873,7 @@ const TaxForm = class {
|
|
|
7228
7873
|
* @uiName Form submission error message description
|
|
7229
7874
|
* @uiWidget textArea
|
|
7230
7875
|
*/
|
|
7231
|
-
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}.";
|
|
7232
7877
|
/**
|
|
7233
7878
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
7234
7879
|
* @uiName Terms and conditions checkbox
|
|
@@ -7244,7 +7889,7 @@ const TaxForm = class {
|
|
|
7244
7889
|
* The link that appears in the terms and conditions checkbox
|
|
7245
7890
|
* @uiName Terms and conditions link
|
|
7246
7891
|
*/
|
|
7247
|
-
this.termsAndConditionsLink = "/
|
|
7892
|
+
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
7248
7893
|
/**
|
|
7249
7894
|
* Placeholder text displayed in the country search dropdown
|
|
7250
7895
|
* @uiName Country field placeholder text
|
|
@@ -7281,12 +7926,16 @@ const TaxForm = class {
|
|
|
7281
7926
|
* @uiName Page load error message description
|
|
7282
7927
|
* @uiWidget textArea
|
|
7283
7928
|
*/
|
|
7284
|
-
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}.";
|
|
7285
7930
|
/**
|
|
7286
7931
|
* Displayed at the top of the page on all set up steps.
|
|
7287
7932
|
* @uiName Page description
|
|
7288
7933
|
*/
|
|
7289
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";
|
|
7290
7939
|
h$1(this);
|
|
7291
7940
|
}
|
|
7292
7941
|
disconnectedCallback() { }
|
|
@@ -7316,7 +7965,7 @@ const TaxForm = class {
|
|
|
7316
7965
|
}
|
|
7317
7966
|
};
|
|
7318
7967
|
function useDemoUserInfoForm(props) {
|
|
7319
|
-
const setStep =
|
|
7968
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
7320
7969
|
return cjs({
|
|
7321
7970
|
setStep,
|
|
7322
7971
|
onSubmit: () => {
|
|
@@ -7362,4 +8011,4 @@ function useDemoUserInfoForm(props) {
|
|
|
7362
8011
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7363
8012
|
}
|
|
7364
8013
|
|
|
7365
|
-
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 };
|