@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
package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js}
RENAMED
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
5
|
+
const index = require('./index-ff72278c.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-8f69ed33.js');
|
|
7
|
+
const global = require('./global-ae358e7d.js');
|
|
8
|
+
const index_module = require('./index.module-191d84c2.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
|
-
require('./mixins-fe9d4112.js');
|
|
12
|
-
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
14
|
-
const reRender = require('./re-render-5bde3d2e.js');
|
|
15
|
-
const useChildElements = require('./useChildElements-410d2435.js');
|
|
16
|
-
const luxon = require('./luxon-05098e19.js');
|
|
17
|
-
const useReferralTable = require('./useReferralTable-824ac152.js');
|
|
18
11
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
12
|
+
const JSS = require('./JSS-8503a151.js');
|
|
13
|
+
const mixins = require('./mixins-fe9d4112.js');
|
|
14
|
+
const GenericTableView = require('./GenericTableView-bb2fcd95.js');
|
|
15
|
+
const reRender = require('./re-render-811491ef.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-d64dfedd.js');
|
|
17
|
+
const luxon = require('./luxon-45228ff5.js');
|
|
18
|
+
const useReferralTable = require('./useReferralTable-b09d9b9e.js');
|
|
19
|
+
const sqmTextSpanView = require('./sqm-text-span-view-38222836.js');
|
|
20
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-bfea11c8.js');
|
|
22
21
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
22
|
+
const keys = require('./keys-cff24974.js');
|
|
23
|
+
const usePayoutStatus = require('./usePayoutStatus-9f25038a.js');
|
|
24
|
+
const useVerificationEmail = require('./useVerificationEmail-f3db90da.js');
|
|
23
25
|
|
|
24
26
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
25
27
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -866,12 +868,22 @@ const BankingInfoFormView = (props) => {
|
|
|
866
868
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
867
869
|
index.h("strong", null, text.error.generalTitle),
|
|
868
870
|
index.h("br", null),
|
|
869
|
-
|
|
871
|
+
global.intl.formatMessage({
|
|
872
|
+
id: "generalDescription",
|
|
873
|
+
defaultMessage: text.error.generalDescription,
|
|
874
|
+
}, {
|
|
875
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
876
|
+
}))),
|
|
870
877
|
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
871
878
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
872
879
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
873
880
|
index.h("br", null),
|
|
874
|
-
|
|
881
|
+
global.intl.formatMessage({
|
|
882
|
+
id: "isPartnerAlertDescription",
|
|
883
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
884
|
+
}, {
|
|
885
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
886
|
+
}))),
|
|
875
887
|
index.h("div", null,
|
|
876
888
|
index.h("h4", null, text.paymentMethod),
|
|
877
889
|
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
@@ -984,18 +996,18 @@ function parseImpactThreshold(threshold) {
|
|
|
984
996
|
return parsed.toString();
|
|
985
997
|
}
|
|
986
998
|
function useBankingInfoForm(props) {
|
|
987
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
988
|
-
const host = index_module.
|
|
989
|
-
const locale = index_module.
|
|
990
|
-
const user = index_module.
|
|
991
|
-
const [step, setStep] = index_module.
|
|
992
|
-
const context = index_module.
|
|
993
|
-
const countries = index_module.
|
|
999
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1000
|
+
const host = index_module._();
|
|
1001
|
+
const locale = index_module.L();
|
|
1002
|
+
const user = index_module.Q();
|
|
1003
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
1004
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1005
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
994
1006
|
const formRef = stencilHooks_module.useRef(null);
|
|
995
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
996
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
997
|
-
const [saveWithdrawalSettings] = index_module
|
|
998
|
-
const [updateWithdrawalSettings] = index_module
|
|
1007
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
1008
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
1009
|
+
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
1010
|
+
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
999
1011
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
1000
1012
|
const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
|
|
1001
1013
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
@@ -1109,6 +1121,8 @@ function useBankingInfoForm(props) {
|
|
|
1109
1121
|
// Call difference mutations based on whether the user is updating
|
|
1110
1122
|
// the info for setting it for the first time
|
|
1111
1123
|
if (isPartner) {
|
|
1124
|
+
if (!token)
|
|
1125
|
+
return; // Require token for this mutation
|
|
1112
1126
|
response = await updateWithdrawalSettings({
|
|
1113
1127
|
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1114
1128
|
...body,
|
|
@@ -1146,6 +1160,8 @@ function useBankingInfoForm(props) {
|
|
|
1146
1160
|
});
|
|
1147
1161
|
return;
|
|
1148
1162
|
}
|
|
1163
|
+
// Fire form change event
|
|
1164
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1149
1165
|
await refetch();
|
|
1150
1166
|
setStep("/dashboard");
|
|
1151
1167
|
}
|
|
@@ -1221,6 +1237,7 @@ function useBankingInfoForm(props) {
|
|
|
1221
1237
|
onBack: () => setStep("/dashboard"),
|
|
1222
1238
|
setCountrySearch,
|
|
1223
1239
|
onVerification,
|
|
1240
|
+
onVerificationHide: () => onVerification(null),
|
|
1224
1241
|
},
|
|
1225
1242
|
states: {
|
|
1226
1243
|
showVerification,
|
|
@@ -1253,6 +1270,7 @@ function useBankingInfoForm(props) {
|
|
|
1253
1270
|
hasPayPal,
|
|
1254
1271
|
bankCountry: formState.bankCountry,
|
|
1255
1272
|
countrySearch,
|
|
1273
|
+
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1256
1274
|
},
|
|
1257
1275
|
refs: {
|
|
1258
1276
|
formRef,
|
|
@@ -1459,7 +1477,16 @@ const BankingInfoForm = class {
|
|
|
1459
1477
|
* @uiName Participant is a partner alert description
|
|
1460
1478
|
* @uiWidget textArea
|
|
1461
1479
|
*/
|
|
1462
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our
|
|
1480
|
+
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.";
|
|
1481
|
+
/**
|
|
1482
|
+
* Text for verify email dialog
|
|
1483
|
+
* @uiName Verify email header
|
|
1484
|
+
*/
|
|
1485
|
+
this.verifyEmailHeaderText = "Verify your email";
|
|
1486
|
+
/**
|
|
1487
|
+
* @uiName Verify code widget header text
|
|
1488
|
+
*/
|
|
1489
|
+
this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
1463
1490
|
/**
|
|
1464
1491
|
* Part of the alert displayed at the top of the page.
|
|
1465
1492
|
* @uiName Form submission error message title
|
|
@@ -1471,7 +1498,7 @@ const BankingInfoForm = class {
|
|
|
1471
1498
|
* @uiName Form submission error message description
|
|
1472
1499
|
* @uiWidget textArea
|
|
1473
1500
|
*/
|
|
1474
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
1501
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
1475
1502
|
/**
|
|
1476
1503
|
* Displayed under a field that is missing required information.
|
|
1477
1504
|
* @uiName Empty form field error message
|
|
@@ -1482,6 +1509,10 @@ const BankingInfoForm = class {
|
|
|
1482
1509
|
* @uiName Form field error message
|
|
1483
1510
|
*/
|
|
1484
1511
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
1512
|
+
/**
|
|
1513
|
+
* @uiName Support link text
|
|
1514
|
+
*/
|
|
1515
|
+
this.supportLink = "support team";
|
|
1485
1516
|
/**
|
|
1486
1517
|
* @uiName Continue button label
|
|
1487
1518
|
*/
|
|
@@ -1554,23 +1585,55 @@ const BankingInfoForm = class {
|
|
|
1554
1585
|
bitset: props.states.bitset,
|
|
1555
1586
|
formMap,
|
|
1556
1587
|
});
|
|
1557
|
-
const
|
|
1588
|
+
const style = {
|
|
1589
|
+
Dialog: {
|
|
1590
|
+
position: "relative",
|
|
1591
|
+
"&::part(panel)": {
|
|
1592
|
+
maxWidth: "420px",
|
|
1593
|
+
},
|
|
1594
|
+
"&::part(title)": {
|
|
1595
|
+
padding: "var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1596
|
+
},
|
|
1597
|
+
"&::part(base)": {
|
|
1598
|
+
position: "absolute",
|
|
1599
|
+
},
|
|
1600
|
+
"&::part(close-button)": {
|
|
1601
|
+
marginBottom: "var(--sl-spacing-large)",
|
|
1602
|
+
},
|
|
1603
|
+
"&::part(body)": {
|
|
1604
|
+
padding: "0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1605
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1606
|
+
},
|
|
1607
|
+
"&::part(footer)": {
|
|
1608
|
+
display: "flex",
|
|
1609
|
+
flexDirection: "column",
|
|
1610
|
+
gap: "var(--sl-spacing-small)",
|
|
1611
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
1612
|
+
alignItems: "center",
|
|
1613
|
+
flex: "1",
|
|
1614
|
+
},
|
|
1615
|
+
},
|
|
1558
1616
|
SearchInput: {
|
|
1559
1617
|
padding: "var(--sl-spacing-x-small)",
|
|
1560
1618
|
},
|
|
1561
1619
|
};
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1620
|
+
const sheet = JSS.createStyleSheet(style);
|
|
1621
|
+
const styleString = sheet.toString();
|
|
1622
|
+
const verifyDescription = global.intl.formatMessage({
|
|
1623
|
+
id: "codeResentSuccessfully",
|
|
1624
|
+
defaultMessage: props.text.verifyEmailDescriptionText,
|
|
1625
|
+
}, {
|
|
1626
|
+
email: props.states.email,
|
|
1627
|
+
});
|
|
1628
|
+
return (index.h(index.Host, null, index.h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (index.h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, index.h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1566
1629
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1567
|
-
countryInputSlot: (index.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) && {
|
|
1630
|
+
countryInputSlot: (index.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) && {
|
|
1568
1631
|
class: "error-input",
|
|
1569
1632
|
helpText: getValidationErrorMessage({
|
|
1570
1633
|
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,
|
|
1571
1634
|
label: props.text.bankLocationLabel,
|
|
1572
1635
|
}),
|
|
1573
|
-
})), index.h("sl-input", { class:
|
|
1636
|
+
})), index.h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1574
1637
|
// Stop shoelace intercepting key presses
|
|
1575
1638
|
e.stopPropagation();
|
|
1576
1639
|
}, "onSl-input": (e) => {
|
|
@@ -1581,21 +1644,21 @@ const BankingInfoForm = class {
|
|
|
1581
1644
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1582
1645
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1583
1646
|
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1584
|
-
paymentThresholdSelectSlot: (index.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) && {
|
|
1647
|
+
paymentThresholdSelectSlot: (index.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) && {
|
|
1585
1648
|
class: "error-input",
|
|
1586
1649
|
helpText: getValidationErrorMessage({
|
|
1587
1650
|
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,
|
|
1588
1651
|
label: props.text.paymentThresholdSelectLabel,
|
|
1589
1652
|
}),
|
|
1590
1653
|
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1591
|
-
paymentFixedDaySelectSlot: (index.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) && {
|
|
1654
|
+
paymentFixedDaySelectSlot: (index.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) && {
|
|
1592
1655
|
class: "error-input",
|
|
1593
1656
|
helpText: getValidationErrorMessage({
|
|
1594
1657
|
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,
|
|
1595
1658
|
label: props.text.paymentDaySelectLabel,
|
|
1596
1659
|
}),
|
|
1597
1660
|
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1598
|
-
paypalInputSlot: (index.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) && {
|
|
1661
|
+
paypalInputSlot: (index.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) && {
|
|
1599
1662
|
class: "error-input",
|
|
1600
1663
|
helpText: getValidationErrorMessage({
|
|
1601
1664
|
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,
|
|
@@ -1611,7 +1674,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1611
1674
|
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;
|
|
1612
1675
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1613
1676
|
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;
|
|
1614
|
-
const setStep = index_module.
|
|
1677
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
1615
1678
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1616
1679
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1617
1680
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1686,6 +1749,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1686
1749
|
hasPayPal: true,
|
|
1687
1750
|
},
|
|
1688
1751
|
callbacks: {
|
|
1752
|
+
onVerificationHide: () => { },
|
|
1689
1753
|
onSubmit: async () => {
|
|
1690
1754
|
setStep("/dashboard");
|
|
1691
1755
|
},
|
|
@@ -1703,6 +1767,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1703
1767
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1704
1768
|
}
|
|
1705
1769
|
|
|
1770
|
+
const style$1 = {
|
|
1771
|
+
Wrapper: {
|
|
1772
|
+
display: "flex",
|
|
1773
|
+
flexDirection: "column",
|
|
1774
|
+
gap: "var(--sl-spacing-medium)",
|
|
1775
|
+
maxWidth: "550px",
|
|
1776
|
+
},
|
|
1777
|
+
HeaderContainer: {
|
|
1778
|
+
display: "flex",
|
|
1779
|
+
flexDirection: "column",
|
|
1780
|
+
},
|
|
1781
|
+
InputsContainer: {
|
|
1782
|
+
display: "flex",
|
|
1783
|
+
gap: "var(--sl-spacing-medium)",
|
|
1784
|
+
position: "relative",
|
|
1785
|
+
flexDirection: "column",
|
|
1786
|
+
},
|
|
1787
|
+
CodeInputContainer: {
|
|
1788
|
+
display: "flex",
|
|
1789
|
+
gap: "var(--sl-spacing-medium)",
|
|
1790
|
+
},
|
|
1791
|
+
CodeInput: {
|
|
1792
|
+
maxWidth: "40px",
|
|
1793
|
+
"&::part(input)": {
|
|
1794
|
+
margin: "0",
|
|
1795
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1796
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1797
|
+
},
|
|
1798
|
+
},
|
|
1799
|
+
CodeInputError: {
|
|
1800
|
+
...mixins.ErrorStyles,
|
|
1801
|
+
maxWidth: "40px",
|
|
1802
|
+
"&::part(input)": {
|
|
1803
|
+
margin: "0",
|
|
1804
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1805
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1806
|
+
},
|
|
1807
|
+
},
|
|
1808
|
+
ErrorText: {
|
|
1809
|
+
color: "var(--sl-color-danger-500)",
|
|
1810
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1811
|
+
margin: "0",
|
|
1812
|
+
},
|
|
1813
|
+
ContinueButton: {
|
|
1814
|
+
width: "100%",
|
|
1815
|
+
maxWidth: "100px",
|
|
1816
|
+
},
|
|
1817
|
+
FooterContainer: {
|
|
1818
|
+
display: "flex",
|
|
1819
|
+
flexDirection: "column",
|
|
1820
|
+
},
|
|
1821
|
+
SkeletonOne: {
|
|
1822
|
+
width: "50%",
|
|
1823
|
+
height: "16px",
|
|
1824
|
+
},
|
|
1825
|
+
SkeletonTwo: {
|
|
1826
|
+
width: "30%",
|
|
1827
|
+
height: "34px",
|
|
1828
|
+
},
|
|
1829
|
+
SkeletonThree: {
|
|
1830
|
+
width: "15%",
|
|
1831
|
+
height: "24px",
|
|
1832
|
+
},
|
|
1833
|
+
};
|
|
1834
|
+
const vanillaStyle$1 = `
|
|
1835
|
+
:host {
|
|
1836
|
+
display: block;
|
|
1837
|
+
}
|
|
1838
|
+
:host([hidden]): {
|
|
1839
|
+
display: none;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
`;
|
|
1844
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1845
|
+
const styleString$1 = sheet$1.toString();
|
|
1846
|
+
function WidgetCodeVerificationView(props) {
|
|
1847
|
+
const { states, refs, callbacks, text } = props;
|
|
1848
|
+
const resendCodeText = global.intl.formatMessage({
|
|
1849
|
+
id: "resendCodeText",
|
|
1850
|
+
defaultMessage: text.resendCodeText,
|
|
1851
|
+
}, {
|
|
1852
|
+
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1853
|
+
e.preventDefault();
|
|
1854
|
+
callbacks.resendEmail();
|
|
1855
|
+
} }, text.resendCodeLabel)),
|
|
1856
|
+
});
|
|
1857
|
+
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1858
|
+
id: "codeResentSuccessfully",
|
|
1859
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1860
|
+
}, {
|
|
1861
|
+
email: states.email,
|
|
1862
|
+
});
|
|
1863
|
+
const inputClass = states.verifyFailed
|
|
1864
|
+
? sheet$1.classes.CodeInputError
|
|
1865
|
+
: sheet$1.classes.CodeInput;
|
|
1866
|
+
return (index.h("div", { part: "sqm-base" },
|
|
1867
|
+
index.h("style", { type: "text/css" },
|
|
1868
|
+
vanillaStyle$1,
|
|
1869
|
+
styleString$1),
|
|
1870
|
+
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1871
|
+
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1872
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1873
|
+
id: `emailHeaderText`,
|
|
1874
|
+
defaultMessage: states.verifyFailed
|
|
1875
|
+
? text.reverifyCodeHeaderText
|
|
1876
|
+
: text.verifyCodeHeaderText,
|
|
1877
|
+
}, { email: states.email }))),
|
|
1878
|
+
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1879
|
+
index.h("b", null, codeResentSuccessfully))),
|
|
1880
|
+
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1881
|
+
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1882
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1883
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1884
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1885
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1886
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1887
|
+
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1888
|
+
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1889
|
+
index.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)),
|
|
1890
|
+
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1891
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1895
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1896
|
+
$user: UserIdInput!
|
|
1897
|
+
$code: String!
|
|
1898
|
+
) {
|
|
1899
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1900
|
+
verifiedEmail
|
|
1901
|
+
accessKey
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
`;
|
|
1905
|
+
function useWidgetCodeVerification(props) {
|
|
1906
|
+
const host = stencilHooks_module.l();
|
|
1907
|
+
const [_, setShowCode] = index_module.bn(keys.SHOW_CODE_NAMESPACE);
|
|
1908
|
+
const email = index_module.In(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1909
|
+
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1910
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1911
|
+
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1912
|
+
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1913
|
+
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1914
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1915
|
+
stencilHooks_module.useEffect(() => {
|
|
1916
|
+
if (!codeRef)
|
|
1917
|
+
return;
|
|
1918
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1919
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1920
|
+
codeElements.forEach((element, idx) => {
|
|
1921
|
+
element.addEventListener("focus", (e) => {
|
|
1922
|
+
e.target.select();
|
|
1923
|
+
});
|
|
1924
|
+
element.addEventListener("keydown", (e) => {
|
|
1925
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1926
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1927
|
+
}
|
|
1928
|
+
});
|
|
1929
|
+
element.addEventListener("input", (e) => {
|
|
1930
|
+
const input = e.data;
|
|
1931
|
+
if (!input)
|
|
1932
|
+
return;
|
|
1933
|
+
if (idx === codeElements.length - 1) {
|
|
1934
|
+
e.target.value = input.slice(0, 1);
|
|
1935
|
+
return;
|
|
1936
|
+
}
|
|
1937
|
+
if (input.length > 1) {
|
|
1938
|
+
const rest = input.slice(1);
|
|
1939
|
+
e.target.value = input.slice(0, 1);
|
|
1940
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1941
|
+
inputType: "insertFromPaste",
|
|
1942
|
+
data: rest,
|
|
1943
|
+
}));
|
|
1944
|
+
}
|
|
1945
|
+
codeElements[idx + 1].focus();
|
|
1946
|
+
});
|
|
1947
|
+
});
|
|
1948
|
+
}, [codeRef]);
|
|
1949
|
+
const reset = () => {
|
|
1950
|
+
setShowCode(false);
|
|
1951
|
+
setValidationError(false);
|
|
1952
|
+
};
|
|
1953
|
+
const resendEmail = async () => {
|
|
1954
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1955
|
+
if (!initialized)
|
|
1956
|
+
return;
|
|
1957
|
+
const result = await sendEmail();
|
|
1958
|
+
if (!result) {
|
|
1959
|
+
setEmailError(true);
|
|
1960
|
+
return;
|
|
1961
|
+
}
|
|
1962
|
+
if (emailSent)
|
|
1963
|
+
setEmailResent(true);
|
|
1964
|
+
setEmailSent(true);
|
|
1965
|
+
};
|
|
1966
|
+
const submitCode = async () => {
|
|
1967
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1968
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1969
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1970
|
+
setValidationError(true);
|
|
1971
|
+
return;
|
|
1972
|
+
}
|
|
1973
|
+
let code = "";
|
|
1974
|
+
codeElements.forEach((element) => {
|
|
1975
|
+
code = `${code}${element.value}`;
|
|
1976
|
+
});
|
|
1977
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1978
|
+
if (!initialized)
|
|
1979
|
+
return;
|
|
1980
|
+
setValidationError(false);
|
|
1981
|
+
const res = await verifyEmail(code);
|
|
1982
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1983
|
+
props.onVerification(res.accessKey);
|
|
1984
|
+
reset();
|
|
1985
|
+
}
|
|
1986
|
+
else {
|
|
1987
|
+
setValidationError(true);
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1990
|
+
stencilHooks_module.useEffect(() => {
|
|
1991
|
+
// Wait for mutations to be determined from user lookup
|
|
1992
|
+
if (!initialized)
|
|
1993
|
+
return;
|
|
1994
|
+
// email should already exist if user has completed email-verification
|
|
1995
|
+
if (!email)
|
|
1996
|
+
resendEmail();
|
|
1997
|
+
else
|
|
1998
|
+
setEmailSent(true);
|
|
1999
|
+
}, [initialized]);
|
|
2000
|
+
return {
|
|
2001
|
+
refs: {
|
|
2002
|
+
codeWrapperRef: setCodeRef,
|
|
2003
|
+
},
|
|
2004
|
+
states: {
|
|
2005
|
+
email: verificationEmail,
|
|
2006
|
+
emailResent,
|
|
2007
|
+
resendError: sendErrors || verifyErrors,
|
|
2008
|
+
initialiseLoading: !initialized,
|
|
2009
|
+
loading: sendLoading || verifyLoading,
|
|
2010
|
+
verifyFailed: !!validationError,
|
|
2011
|
+
},
|
|
2012
|
+
callbacks: {
|
|
2013
|
+
resendEmail,
|
|
2014
|
+
submitCode,
|
|
2015
|
+
},
|
|
2016
|
+
text: props.getTextProps(),
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
const WidgetCodeVerification = class {
|
|
2021
|
+
constructor(hostRef) {
|
|
2022
|
+
index.registerInstance(this, hostRef);
|
|
2023
|
+
/**
|
|
2024
|
+
* @uiName Verify code widget header text
|
|
2025
|
+
*/
|
|
2026
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2027
|
+
/**
|
|
2028
|
+
* @uiName Reverify code widget header text
|
|
2029
|
+
*/
|
|
2030
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2031
|
+
/**
|
|
2032
|
+
* Text displayed under verify button
|
|
2033
|
+
* @uiName Resend code text
|
|
2034
|
+
*/
|
|
2035
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2036
|
+
/**
|
|
2037
|
+
* The link that appears in the resend code link
|
|
2038
|
+
* @uiName Resend code label
|
|
2039
|
+
*/
|
|
2040
|
+
this.resendCodeLabel = "Resend code";
|
|
2041
|
+
/**
|
|
2042
|
+
* Link text displayed under verify button
|
|
2043
|
+
* @uiName Resend code text
|
|
2044
|
+
*/
|
|
2045
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2046
|
+
/**
|
|
2047
|
+
* Error text displayed under verification input
|
|
2048
|
+
* @uiName Invalid code text
|
|
2049
|
+
*/
|
|
2050
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2051
|
+
/**
|
|
2052
|
+
* @uiName Verify code button text
|
|
2053
|
+
*/
|
|
2054
|
+
this.verifyText = "Verify";
|
|
2055
|
+
/**
|
|
2056
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2057
|
+
* @uiName Network error message
|
|
2058
|
+
*/
|
|
2059
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2060
|
+
stencilHooks_module.h$1(this);
|
|
2061
|
+
}
|
|
2062
|
+
disconnectedCallback() { }
|
|
2063
|
+
getTextProps() {
|
|
2064
|
+
return utils.getProps(this);
|
|
2065
|
+
}
|
|
2066
|
+
render() {
|
|
2067
|
+
const props = index_module.isDemo()
|
|
2068
|
+
? useDemoWidgetCodeVerification(this)
|
|
2069
|
+
: useWidgetCodeVerification(this);
|
|
2070
|
+
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2071
|
+
}
|
|
2072
|
+
};
|
|
2073
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2074
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2075
|
+
const setVerifiedContext = index_module.wn(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2076
|
+
return cjs.cjs({
|
|
2077
|
+
states: {
|
|
2078
|
+
loading: false,
|
|
2079
|
+
email: "test@example.com",
|
|
2080
|
+
emailResent,
|
|
2081
|
+
resendError: false,
|
|
2082
|
+
verifyFailed: false,
|
|
2083
|
+
},
|
|
2084
|
+
refs: {
|
|
2085
|
+
codeWrapperRef: () => { },
|
|
2086
|
+
},
|
|
2087
|
+
callbacks: {
|
|
2088
|
+
resendEmail: async () => setEmailResent(true),
|
|
2089
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2090
|
+
},
|
|
2091
|
+
text: props.getTextProps(),
|
|
2092
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2093
|
+
}
|
|
2094
|
+
|
|
1706
2095
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1707
2096
|
mutation createImpactPublisherTaxDocument(
|
|
1708
2097
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1730,13 +2119,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1730
2119
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1731
2120
|
function useDocusignForm(props) {
|
|
1732
2121
|
var _a, _b, _c;
|
|
1733
|
-
const user = index_module.
|
|
1734
|
-
const context = index_module.
|
|
1735
|
-
const [step, setStep] = index_module.
|
|
1736
|
-
const { data, loading: userLoading, refetch, } = index_module.
|
|
2122
|
+
const user = index_module.Q();
|
|
2123
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2124
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
2125
|
+
const { data, loading: userLoading, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
1737
2126
|
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;
|
|
1738
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1739
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module
|
|
2127
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
2128
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1740
2129
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1741
2130
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1742
2131
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -1800,6 +2189,8 @@ function useDocusignForm(props) {
|
|
|
1800
2189
|
// @ts-expect-error: no data type for result
|
|
1801
2190
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1802
2191
|
throw new Error();
|
|
2192
|
+
// Fire form change event
|
|
2193
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1803
2194
|
setShowExitButton(true);
|
|
1804
2195
|
}
|
|
1805
2196
|
catch (e) {
|
|
@@ -1858,7 +2249,7 @@ function getDocumentType(p) {
|
|
|
1858
2249
|
return undefined;
|
|
1859
2250
|
}
|
|
1860
2251
|
|
|
1861
|
-
const style$
|
|
2252
|
+
const style$2 = {
|
|
1862
2253
|
DocusignStatusContainer: {
|
|
1863
2254
|
width: "100%",
|
|
1864
2255
|
minHeight: "600px",
|
|
@@ -1885,13 +2276,13 @@ const style$1 = {
|
|
|
1885
2276
|
},
|
|
1886
2277
|
},
|
|
1887
2278
|
};
|
|
1888
|
-
const sheet$
|
|
1889
|
-
const styleString$
|
|
2279
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2280
|
+
const styleString$2 = sheet$2.toString();
|
|
1890
2281
|
const DocusignExpiredView = (props) => {
|
|
1891
|
-
const { classes } = sheet$
|
|
2282
|
+
const { classes } = sheet$2;
|
|
1892
2283
|
const { text } = props;
|
|
1893
2284
|
return (index.h("div", null,
|
|
1894
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2285
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1895
2286
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1896
2287
|
index.h("sl-icon", { style: {
|
|
1897
2288
|
width: "50px",
|
|
@@ -1903,10 +2294,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1903
2294
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1904
2295
|
};
|
|
1905
2296
|
const DocusignErrorView = (props) => {
|
|
1906
|
-
const { classes } = sheet$
|
|
2297
|
+
const { classes } = sheet$2;
|
|
1907
2298
|
const { text } = props;
|
|
1908
2299
|
return (index.h("div", null,
|
|
1909
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2300
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1910
2301
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1911
2302
|
index.h("sl-icon", { style: {
|
|
1912
2303
|
width: "50px",
|
|
@@ -1918,14 +2309,14 @@ const DocusignErrorView = (props) => {
|
|
|
1918
2309
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1919
2310
|
};
|
|
1920
2311
|
const DocusignLoadingView = () => {
|
|
1921
|
-
const { classes } = sheet$
|
|
2312
|
+
const { classes } = sheet$2;
|
|
1922
2313
|
return (index.h("div", null,
|
|
1923
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2314
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1924
2315
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1925
2316
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1926
2317
|
};
|
|
1927
2318
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1928
|
-
const { classes } = sheet$
|
|
2319
|
+
const { classes } = sheet$2;
|
|
1929
2320
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1930
2321
|
const allowedDomains = [
|
|
1931
2322
|
"referralsaasquatch.com",
|
|
@@ -1958,12 +2349,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1958
2349
|
return index.h(DocusignExpiredView, { text: text });
|
|
1959
2350
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1960
2351
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1961
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2352
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1962
2353
|
index.h("div", { class: classes.IFrameContainer },
|
|
1963
2354
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1964
2355
|
};
|
|
1965
2356
|
|
|
1966
|
-
const style$
|
|
2357
|
+
const style$3 = {
|
|
1967
2358
|
FormWrapper: {
|
|
1968
2359
|
display: "flex",
|
|
1969
2360
|
justifyContent: "flex-start",
|
|
@@ -2076,9 +2467,9 @@ const style$2 = {
|
|
|
2076
2467
|
fontSize: "var(--sl-font-size-medium)",
|
|
2077
2468
|
},
|
|
2078
2469
|
};
|
|
2079
|
-
const sheet$
|
|
2080
|
-
const styleString$
|
|
2081
|
-
const vanillaStyle$
|
|
2470
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2471
|
+
const styleString$3 = sheet$3.toString();
|
|
2472
|
+
const vanillaStyle$2 = `
|
|
2082
2473
|
:host{
|
|
2083
2474
|
display: block;
|
|
2084
2475
|
}
|
|
@@ -2103,11 +2494,11 @@ const vanillaStyle$1 = `
|
|
|
2103
2494
|
const DocusignFormView = (props) => {
|
|
2104
2495
|
var _a;
|
|
2105
2496
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2106
|
-
const { classes } = sheet$
|
|
2497
|
+
const { classes } = sheet$3;
|
|
2107
2498
|
return (index.h("div", { class: classes.Container },
|
|
2108
2499
|
index.h("style", { type: "text/css" },
|
|
2109
|
-
styleString$
|
|
2110
|
-
vanillaStyle$
|
|
2500
|
+
styleString$3,
|
|
2501
|
+
vanillaStyle$2),
|
|
2111
2502
|
index.h("div", { class: classes.TextContainer },
|
|
2112
2503
|
index.h("div", null,
|
|
2113
2504
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
@@ -2117,16 +2508,26 @@ const DocusignFormView = (props) => {
|
|
|
2117
2508
|
index.h("h3", null, text.taxForm),
|
|
2118
2509
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2119
2510
|
states.loadingError && (index.h("div", null,
|
|
2120
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2511
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2121
2512
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2122
2513
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2123
2514
|
index.h("br", null),
|
|
2124
|
-
|
|
2125
|
-
|
|
2515
|
+
global.intl.formatMessage({
|
|
2516
|
+
id: "loadingErrorAlertDescription",
|
|
2517
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2518
|
+
}, {
|
|
2519
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2520
|
+
})))),
|
|
2521
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2126
2522
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2127
2523
|
index.h("strong", null, text.error.generalTitle),
|
|
2128
2524
|
index.h("br", null),
|
|
2129
|
-
|
|
2525
|
+
global.intl.formatMessage({
|
|
2526
|
+
id: "generalDescription",
|
|
2527
|
+
defaultMessage: text.error.generalDescription,
|
|
2528
|
+
}, {
|
|
2529
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2530
|
+
}))),
|
|
2130
2531
|
index.h("div", null,
|
|
2131
2532
|
index.h("div", null,
|
|
2132
2533
|
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
@@ -2165,6 +2566,10 @@ const DocusignForm = class {
|
|
|
2165
2566
|
* @uiWidget textArea
|
|
2166
2567
|
*/
|
|
2167
2568
|
this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
2569
|
+
/**
|
|
2570
|
+
* @uiName Support link text
|
|
2571
|
+
*/
|
|
2572
|
+
this.supportLink = "support team";
|
|
2168
2573
|
/**
|
|
2169
2574
|
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
2170
2575
|
* @uiName W-8 BEN tax form description
|
|
@@ -2208,7 +2613,7 @@ const DocusignForm = class {
|
|
|
2208
2613
|
* @uiName Docusign form error message
|
|
2209
2614
|
* @uiWidget textArea
|
|
2210
2615
|
*/
|
|
2211
|
-
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
2616
|
+
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
2212
2617
|
/**
|
|
2213
2618
|
* @uiName Refresh page button label
|
|
2214
2619
|
*/
|
|
@@ -2224,7 +2629,7 @@ const DocusignForm = class {
|
|
|
2224
2629
|
* @uiName Form submission error message description
|
|
2225
2630
|
* @uiWidget textArea
|
|
2226
2631
|
*/
|
|
2227
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
2632
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2228
2633
|
/**
|
|
2229
2634
|
* Part of the alert displayed at the top of the page.
|
|
2230
2635
|
* @uiName Page load error message title
|
|
@@ -2236,7 +2641,7 @@ const DocusignForm = class {
|
|
|
2236
2641
|
* @uiName Page load error message description
|
|
2237
2642
|
* @uiWidget textArea
|
|
2238
2643
|
*/
|
|
2239
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
2644
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2240
2645
|
/**
|
|
2241
2646
|
* Displayed at the top of the page on all set up steps.
|
|
2242
2647
|
* @uiName Page description
|
|
@@ -2284,7 +2689,7 @@ const DocusignForm = class {
|
|
|
2284
2689
|
get el() { return index.getElement(this); }
|
|
2285
2690
|
};
|
|
2286
2691
|
function useDocusignFormDemo(props) {
|
|
2287
|
-
const setStep = index_module.
|
|
2692
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2288
2693
|
return cjs.cjs({
|
|
2289
2694
|
text: props.getTextProps(),
|
|
2290
2695
|
states: {
|
|
@@ -2333,7 +2738,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2333
2738
|
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2334
2739
|
};
|
|
2335
2740
|
|
|
2336
|
-
const style$
|
|
2741
|
+
const style$4 = {
|
|
2337
2742
|
FormWrapper: {
|
|
2338
2743
|
display: "flex",
|
|
2339
2744
|
justifyContent: "flex-start",
|
|
@@ -2421,11 +2826,9 @@ const style$3 = {
|
|
|
2421
2826
|
border: "none",
|
|
2422
2827
|
},
|
|
2423
2828
|
"&::part(message)": {
|
|
2424
|
-
display: "flex",
|
|
2425
2829
|
alignItems: "center",
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
height: "max-content",
|
|
2830
|
+
padding: "var(--sl-spacing-small)",
|
|
2831
|
+
whiteSpace: "nowrap",
|
|
2429
2832
|
},
|
|
2430
2833
|
"& sl-icon::part(base)": {
|
|
2431
2834
|
color: "var(--sl-color-yellow-500)",
|
|
@@ -2441,9 +2844,9 @@ const style$3 = {
|
|
|
2441
2844
|
marginBottom: "var(--sl-spacing-small)",
|
|
2442
2845
|
},
|
|
2443
2846
|
};
|
|
2444
|
-
const sheet$
|
|
2445
|
-
const styleString$
|
|
2446
|
-
const vanillaStyle$
|
|
2847
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2848
|
+
const styleString$4 = sheet$4.toString();
|
|
2849
|
+
const vanillaStyle$3 = `
|
|
2447
2850
|
:host{
|
|
2448
2851
|
display: block;
|
|
2449
2852
|
}
|
|
@@ -2462,11 +2865,11 @@ const vanillaStyle$2 = `
|
|
|
2462
2865
|
const IndirectTaxFormView = (props) => {
|
|
2463
2866
|
var _a;
|
|
2464
2867
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2465
|
-
const { classes } = sheet$
|
|
2868
|
+
const { classes } = sheet$4;
|
|
2466
2869
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2467
2870
|
index.h("style", { type: "text/css" },
|
|
2468
|
-
styleString$
|
|
2469
|
-
vanillaStyle$
|
|
2871
|
+
styleString$4,
|
|
2872
|
+
vanillaStyle$3),
|
|
2470
2873
|
index.h("div", { class: classes.TextContainer },
|
|
2471
2874
|
index.h("div", null,
|
|
2472
2875
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2479,21 +2882,36 @@ const IndirectTaxFormView = (props) => {
|
|
|
2479
2882
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2480
2883
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2481
2884
|
states.loadingError && (index.h("div", null,
|
|
2482
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2885
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2483
2886
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2484
2887
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2485
2888
|
index.h("br", null),
|
|
2486
|
-
|
|
2487
|
-
|
|
2889
|
+
global.intl.formatMessage({
|
|
2890
|
+
id: "loadingErrorAlertDescription",
|
|
2891
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2892
|
+
}, {
|
|
2893
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2894
|
+
})))),
|
|
2895
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
2488
2896
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2489
2897
|
index.h("strong", null, text.error.generalTitle),
|
|
2490
2898
|
index.h("br", null),
|
|
2491
|
-
|
|
2492
|
-
|
|
2899
|
+
global.intl.formatMessage({
|
|
2900
|
+
id: "generalDescription",
|
|
2901
|
+
defaultMessage: text.error.generalDescription,
|
|
2902
|
+
}, {
|
|
2903
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2904
|
+
}))),
|
|
2905
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2493
2906
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2494
2907
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2495
2908
|
index.h("br", null),
|
|
2496
|
-
|
|
2909
|
+
global.intl.formatMessage({
|
|
2910
|
+
id: "isPartnerAlertDescription",
|
|
2911
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
2912
|
+
}, {
|
|
2913
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2914
|
+
}))),
|
|
2497
2915
|
index.h("div", null,
|
|
2498
2916
|
index.h("h4", null, text.indirectTaxDetails))),
|
|
2499
2917
|
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
@@ -2510,7 +2928,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2510
2928
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2511
2929
|
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2512
2930
|
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2513
|
-
|
|
2931
|
+
global.intl.formatMessage({
|
|
2932
|
+
id: "cannotChangeInfoAlert",
|
|
2933
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2934
|
+
}, {
|
|
2935
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2936
|
+
})),
|
|
2514
2937
|
index.h("div", { class: classes.BtnContainer },
|
|
2515
2938
|
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2516
2939
|
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -2554,15 +2977,15 @@ function getOption(countries, countryCode) {
|
|
|
2554
2977
|
}
|
|
2555
2978
|
function useIndirectTaxForm(props) {
|
|
2556
2979
|
var _a, _b, _c, _d, _e;
|
|
2557
|
-
const user = index_module.
|
|
2558
|
-
const locale = index_module.
|
|
2980
|
+
const user = index_module.Q();
|
|
2981
|
+
const locale = index_module.L();
|
|
2559
2982
|
const formRef = stencilHooks_module.useRef(null);
|
|
2560
|
-
const context = index_module.
|
|
2561
|
-
const [step, setStep] = index_module.
|
|
2562
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2563
|
-
const userForm = index_module.
|
|
2564
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2565
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.
|
|
2983
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2984
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
2985
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2986
|
+
const userForm = index_module.In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2987
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
2988
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2566
2989
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2567
2990
|
const _countries = stencilHooks_module.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) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2568
2991
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2680,6 +3103,8 @@ function useIndirectTaxForm(props) {
|
|
|
2680
3103
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2681
3104
|
.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;
|
|
2682
3105
|
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3106
|
+
// Fire form change event
|
|
3107
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2683
3108
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2684
3109
|
!hasValidCurrentDocument) {
|
|
2685
3110
|
// Go to docusign form
|
|
@@ -2838,7 +3263,7 @@ const IndirectTaxForm = class {
|
|
|
2838
3263
|
* @uiName Submission confirmation alert
|
|
2839
3264
|
* @uiWidget textArea
|
|
2840
3265
|
*/
|
|
2841
|
-
this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
3266
|
+
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.";
|
|
2842
3267
|
/**
|
|
2843
3268
|
* @uiName Missing indirect tax number error message
|
|
2844
3269
|
*/
|
|
@@ -2864,11 +3289,15 @@ const IndirectTaxForm = class {
|
|
|
2864
3289
|
* @uiName Participant is a partner alert description
|
|
2865
3290
|
* @uiWidget textArea
|
|
2866
3291
|
*/
|
|
2867
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
3292
|
+
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.";
|
|
2868
3293
|
/**
|
|
2869
3294
|
* @uiName Continue button label
|
|
2870
3295
|
*/
|
|
2871
3296
|
this.continueButton = "Continue";
|
|
3297
|
+
/**
|
|
3298
|
+
* @uiName Support link text
|
|
3299
|
+
*/
|
|
3300
|
+
this.supportLink = "support team";
|
|
2872
3301
|
/**
|
|
2873
3302
|
* Part of the alert displayed at the top of the page.
|
|
2874
3303
|
* @uiName Form submission error message title
|
|
@@ -2880,7 +3309,7 @@ const IndirectTaxForm = class {
|
|
|
2880
3309
|
* @uiName Form submission error message description
|
|
2881
3310
|
* @uiWidget textArea
|
|
2882
3311
|
*/
|
|
2883
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
3312
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2884
3313
|
/**
|
|
2885
3314
|
* Part of the alert displayed at the top of the page.
|
|
2886
3315
|
* @uiName Page load error message title
|
|
@@ -2892,7 +3321,7 @@ const IndirectTaxForm = class {
|
|
|
2892
3321
|
* @uiName Page load error message description
|
|
2893
3322
|
* @uiWidget textArea
|
|
2894
3323
|
*/
|
|
2895
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
3324
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2896
3325
|
/**
|
|
2897
3326
|
* Displayed at the top of the page on all set up steps.
|
|
2898
3327
|
* @uiName Page description
|
|
@@ -2951,7 +3380,7 @@ const IndirectTaxForm = class {
|
|
|
2951
3380
|
}
|
|
2952
3381
|
};
|
|
2953
3382
|
function useDemoIndirectTaxForm(props) {
|
|
2954
|
-
const setStep = index_module.
|
|
3383
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2955
3384
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2956
3385
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2957
3386
|
return cjs.cjs({
|
|
@@ -3061,8 +3490,8 @@ const GET_INVOICES = index_module.dist.gql `
|
|
|
3061
3490
|
`;
|
|
3062
3491
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
3063
3492
|
var _a;
|
|
3064
|
-
const user = index_module.
|
|
3065
|
-
const locale = index_module.
|
|
3493
|
+
const user = index_module.Q();
|
|
3494
|
+
const locale = index_module.L();
|
|
3066
3495
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
3067
3496
|
...state,
|
|
3068
3497
|
...next,
|
|
@@ -3072,7 +3501,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3072
3501
|
loading: false,
|
|
3073
3502
|
page: 0,
|
|
3074
3503
|
});
|
|
3075
|
-
const { envelope: invoicesData, states, callbacks, } = index_module.
|
|
3504
|
+
const { envelope: invoicesData, states, callbacks, } = index_module.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; }, {
|
|
3076
3505
|
limit: props.perPage,
|
|
3077
3506
|
offset: 0,
|
|
3078
3507
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3448,7 +3877,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3448
3877
|
index.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" }),
|
|
3449
3878
|
index.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" })));
|
|
3450
3879
|
|
|
3451
|
-
const style$
|
|
3880
|
+
const style$5 = {
|
|
3452
3881
|
CardContainer: {
|
|
3453
3882
|
display: "grid",
|
|
3454
3883
|
gridTemplateColumns: "1fr",
|
|
@@ -3582,7 +4011,7 @@ const style$4 = {
|
|
|
3582
4011
|
},
|
|
3583
4012
|
};
|
|
3584
4013
|
function PayoutDetailsCardView(props) {
|
|
3585
|
-
const sheet = JSS.createStyleSheet(style$
|
|
4014
|
+
const sheet = JSS.createStyleSheet(style$5);
|
|
3586
4015
|
const styleString = sheet.toString();
|
|
3587
4016
|
const { classes } = sheet;
|
|
3588
4017
|
const { states, text } = props;
|
|
@@ -3612,11 +4041,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3612
4041
|
});
|
|
3613
4042
|
return (index.h("div", { class: classes.Container },
|
|
3614
4043
|
index.h("style", { type: "text/css" }, styleString),
|
|
3615
|
-
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3616
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3617
|
-
index.h("div", { class: classes.AlertContent },
|
|
3618
|
-
index.h("b", null, text.error.errorTitleText),
|
|
3619
|
-
text.error.errorDescriptionText))),
|
|
3620
4044
|
states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
|
|
3621
4045
|
index.h("div", { class: classes.StatusContainer },
|
|
3622
4046
|
index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3638,7 +4062,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3638
4062
|
|
|
3639
4063
|
function usePayoutDetailsCard(props) {
|
|
3640
4064
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3641
|
-
const { data, loading } = index_module.
|
|
4065
|
+
const { data, loading } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
3642
4066
|
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;
|
|
3643
4067
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3644
4068
|
var _a;
|
|
@@ -3712,16 +4136,6 @@ const PayoutDetailsCard = class {
|
|
|
3712
4136
|
* @uiName Bank account field label
|
|
3713
4137
|
*/
|
|
3714
4138
|
this.accountText = "Account";
|
|
3715
|
-
/**
|
|
3716
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3717
|
-
* @uiName Payout error message title
|
|
3718
|
-
*/
|
|
3719
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3720
|
-
/**
|
|
3721
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3722
|
-
* @uiName Payout error message description
|
|
3723
|
-
*/
|
|
3724
|
-
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.";
|
|
3725
4139
|
/**
|
|
3726
4140
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3727
4141
|
* @uiName Payout missing information subtext
|
|
@@ -3734,10 +4148,6 @@ const PayoutDetailsCard = class {
|
|
|
3734
4148
|
const props = utils.getProps(this);
|
|
3735
4149
|
return {
|
|
3736
4150
|
...props,
|
|
3737
|
-
error: {
|
|
3738
|
-
errorTitleText: this.errorTitleText,
|
|
3739
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3740
|
-
},
|
|
3741
4151
|
};
|
|
3742
4152
|
}
|
|
3743
4153
|
render() {
|
|
@@ -3809,21 +4219,21 @@ function getCurrentStep(user) {
|
|
|
3809
4219
|
}
|
|
3810
4220
|
function useTaxAndCash() {
|
|
3811
4221
|
var _a, _b, _c, _d, _e;
|
|
3812
|
-
const host = index_module.
|
|
3813
|
-
const user = index_module.
|
|
3814
|
-
const locale = index_module.
|
|
4222
|
+
const host = index_module._();
|
|
4223
|
+
const user = index_module.Q();
|
|
4224
|
+
const locale = index_module.L();
|
|
3815
4225
|
// State for current step of form
|
|
3816
|
-
const [step, setStep] = index_module.
|
|
4226
|
+
const [step, setStep] = index_module.Cn({
|
|
3817
4227
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3818
4228
|
initialValue: "/loading",
|
|
3819
4229
|
});
|
|
3820
4230
|
// State for when to hide steps, or override certain actions
|
|
3821
|
-
const [context, _setContext] = index_module.
|
|
4231
|
+
const [context, _setContext] = index_module.Cn({
|
|
3822
4232
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3823
4233
|
initialValue: {},
|
|
3824
4234
|
});
|
|
3825
4235
|
// State to carry user form information into step 2
|
|
3826
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
4236
|
+
const [userFormContext, _setUserFormContext] = index_module.Cn({
|
|
3827
4237
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3828
4238
|
initialValue: {
|
|
3829
4239
|
firstName: undefined,
|
|
@@ -3833,19 +4243,19 @@ function useTaxAndCash() {
|
|
|
3833
4243
|
currency: undefined,
|
|
3834
4244
|
},
|
|
3835
4245
|
});
|
|
3836
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
4246
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Cn({
|
|
3837
4247
|
namespace: CURRENCIES_NAMESPACE,
|
|
3838
4248
|
initialValue: [],
|
|
3839
4249
|
});
|
|
3840
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
4250
|
+
const [_countriesContext, _setCountriesContext] = index_module.Cn({
|
|
3841
4251
|
namespace: COUNTRIES_NAMESPACE,
|
|
3842
4252
|
initialValue: [],
|
|
3843
4253
|
});
|
|
3844
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
4254
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Cn({
|
|
3845
4255
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3846
4256
|
initialValue: [],
|
|
3847
4257
|
});
|
|
3848
|
-
const { data, errors } = index_module.
|
|
4258
|
+
const { data, errors } = index_module.Fn({
|
|
3849
4259
|
namespace: USER_QUERY_NAMESPACE,
|
|
3850
4260
|
query: GET_USER,
|
|
3851
4261
|
skip: !user,
|
|
@@ -3855,12 +4265,12 @@ function useTaxAndCash() {
|
|
|
3855
4265
|
});
|
|
3856
4266
|
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) ||
|
|
3857
4267
|
userFormContext.countryCode;
|
|
3858
|
-
index_module.
|
|
4268
|
+
index_module.Fn({
|
|
3859
4269
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3860
4270
|
query: GET_COUNTRIES,
|
|
3861
4271
|
skip: !user,
|
|
3862
4272
|
});
|
|
3863
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
4273
|
+
const { data: financeNetworkData, refetch } = index_module.Fn({
|
|
3864
4274
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3865
4275
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3866
4276
|
skip: !user,
|
|
@@ -3868,7 +4278,7 @@ function useTaxAndCash() {
|
|
|
3868
4278
|
filter: getFinanceNetworkFilter(),
|
|
3869
4279
|
},
|
|
3870
4280
|
});
|
|
3871
|
-
const { data: currenciesData } = index_module.
|
|
4281
|
+
const { data: currenciesData } = index_module.Fn({
|
|
3872
4282
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3873
4283
|
query: GET_CURRENCIES,
|
|
3874
4284
|
skip: !user,
|
|
@@ -3949,7 +4359,7 @@ function useTaxAndCash() {
|
|
|
3949
4359
|
step,
|
|
3950
4360
|
setStep,
|
|
3951
4361
|
context,
|
|
3952
|
-
namespace: index_module
|
|
4362
|
+
namespace: index_module.Pn(TAX_CONTEXT_NAMESPACE),
|
|
3953
4363
|
loading: step === "/loading",
|
|
3954
4364
|
};
|
|
3955
4365
|
}
|
|
@@ -4051,13 +4461,15 @@ const TaxAndCashMonolith = class {
|
|
|
4051
4461
|
* @uiName Terms and conditions link
|
|
4052
4462
|
* @uiGroup Step 1 Properties
|
|
4053
4463
|
*/
|
|
4054
|
-
this.step1_termsAndConditionsLink = "/
|
|
4464
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4055
4465
|
/**
|
|
4056
4466
|
* Placeholder text displayed in the currency search dropdown
|
|
4057
4467
|
* @uiName Currency field placeholder text
|
|
4058
4468
|
* @uiGroup Step 1 Properties
|
|
4059
4469
|
*/
|
|
4060
4470
|
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4471
|
+
/**
|
|
4472
|
+
|
|
4061
4473
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4062
4474
|
STEP 2 PROPS:
|
|
4063
4475
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4160,7 +4572,7 @@ const TaxAndCashMonolith = class {
|
|
|
4160
4572
|
* @uiGroup Step 2 Properties
|
|
4161
4573
|
* @uiWidget textArea
|
|
4162
4574
|
*/
|
|
4163
|
-
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
4575
|
+
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.";
|
|
4164
4576
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4165
4577
|
STEP 3 PROPS:
|
|
4166
4578
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4233,7 +4645,7 @@ const TaxAndCashMonolith = class {
|
|
|
4233
4645
|
* @uiGroup Step 3 Properties
|
|
4234
4646
|
* @uiWidget textArea
|
|
4235
4647
|
*/
|
|
4236
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
4648
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4237
4649
|
/**
|
|
4238
4650
|
* @uiName Refresh page button label
|
|
4239
4651
|
* @uiGroup Step 3 Properties
|
|
@@ -4458,6 +4870,16 @@ const TaxAndCashMonolith = class {
|
|
|
4458
4870
|
* @uiGroup Step 4 Properties
|
|
4459
4871
|
*/
|
|
4460
4872
|
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4873
|
+
/**
|
|
4874
|
+
* @uiName Text for verify email dialog
|
|
4875
|
+
* @uiGroup Step 4 Properties
|
|
4876
|
+
*/
|
|
4877
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4878
|
+
/**
|
|
4879
|
+
* @uiName Verify code widget header text
|
|
4880
|
+
* @uiGroup Step 4 Properties
|
|
4881
|
+
*/
|
|
4882
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4461
4883
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4462
4884
|
DASHBOARD PROPS:
|
|
4463
4885
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4595,7 +5017,7 @@ const TaxAndCashMonolith = class {
|
|
|
4595
5017
|
* @uiGroup Dashboard Properties
|
|
4596
5018
|
* @uiWidget textArea
|
|
4597
5019
|
*/
|
|
4598
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact
|
|
5020
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4599
5021
|
/**
|
|
4600
5022
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4601
5023
|
*
|
|
@@ -4618,7 +5040,7 @@ const TaxAndCashMonolith = class {
|
|
|
4618
5040
|
* @uiGroup Dashboard Properties
|
|
4619
5041
|
* @uiWidget textArea
|
|
4620
5042
|
*/
|
|
4621
|
-
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
5043
|
+
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.";
|
|
4622
5044
|
/**
|
|
4623
5045
|
* Displayed to participants registered in Quebec, Canada.
|
|
4624
5046
|
* @uiName QST indirect tax details
|
|
@@ -4690,14 +5112,14 @@ const TaxAndCashMonolith = class {
|
|
|
4690
5112
|
* @uiGroup Dashboard Properties
|
|
4691
5113
|
* @uiWidget textArea
|
|
4692
5114
|
*/
|
|
4693
|
-
this.
|
|
5115
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
4694
5116
|
/**
|
|
4695
5117
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4696
5118
|
* @uiName Payout error message description
|
|
4697
5119
|
* @uiGroup Dashboard Properties
|
|
4698
5120
|
* @uiWidget textArea
|
|
4699
5121
|
*/
|
|
4700
|
-
this.
|
|
5122
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
4701
5123
|
/**
|
|
4702
5124
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4703
5125
|
* @uiName Payout missing information subtext
|
|
@@ -4745,6 +5167,63 @@ const TaxAndCashMonolith = class {
|
|
|
4745
5167
|
* @uiWidget textArea
|
|
4746
5168
|
*/
|
|
4747
5169
|
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.";
|
|
5170
|
+
/**
|
|
5171
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5172
|
+
* @uiName Verification required alert message title
|
|
5173
|
+
* @uiGroup Dashboard Properties
|
|
5174
|
+
* @uiWidget textArea
|
|
5175
|
+
*/
|
|
5176
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5177
|
+
/**
|
|
5178
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5179
|
+
* @uiName Verification required alert message description
|
|
5180
|
+
* @uiGroup Dashboard Properties
|
|
5181
|
+
* @uiWidget textArea
|
|
5182
|
+
*/
|
|
5183
|
+
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}.";
|
|
5184
|
+
/**
|
|
5185
|
+
* @uiName Verification required internal alert header
|
|
5186
|
+
* @uiGroup Dashboard Properties
|
|
5187
|
+
* @uiWidget textArea
|
|
5188
|
+
*/
|
|
5189
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5190
|
+
/**
|
|
5191
|
+
* @uiName Verification required internal alert description
|
|
5192
|
+
* @uiGroup Dashboard Properties
|
|
5193
|
+
* @uiWidget textArea
|
|
5194
|
+
*/
|
|
5195
|
+
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}.";
|
|
5196
|
+
/**
|
|
5197
|
+
* @uiName Verification review internal alert header
|
|
5198
|
+
* @uiGroup Dashboard Properties
|
|
5199
|
+
* @uiWidget textArea
|
|
5200
|
+
*/
|
|
5201
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5202
|
+
/**
|
|
5203
|
+
* @uiName Verification review internal alert description
|
|
5204
|
+
* @uiGroup Dashboard Properties
|
|
5205
|
+
* @uiWidget textArea
|
|
5206
|
+
*/
|
|
5207
|
+
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}.";
|
|
5208
|
+
/**
|
|
5209
|
+
* @uiName Verification failed internal alert header
|
|
5210
|
+
* @uiGroup Dashboard Properties
|
|
5211
|
+
* @uiWidget textArea
|
|
5212
|
+
*/
|
|
5213
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5214
|
+
/**
|
|
5215
|
+
* @uiName Verification failed internal alert description
|
|
5216
|
+
* @uiGroup Dashboard Properties
|
|
5217
|
+
* @uiWidget textArea
|
|
5218
|
+
*/
|
|
5219
|
+
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}.";
|
|
5220
|
+
/**
|
|
5221
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5222
|
+
* @uiName Verification required alert button text
|
|
5223
|
+
* @uiGroup Dashboard Properties
|
|
5224
|
+
* @uiWidget textArea
|
|
5225
|
+
*/
|
|
5226
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
4748
5227
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4749
5228
|
GENERAL PROPS:
|
|
4750
5229
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4766,7 +5245,7 @@ const TaxAndCashMonolith = class {
|
|
|
4766
5245
|
* @uiGroup General Form Properties
|
|
4767
5246
|
* @uiWidget textArea
|
|
4768
5247
|
*/
|
|
4769
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
5248
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
4770
5249
|
/**
|
|
4771
5250
|
* Displayed under a field that is missing required information.
|
|
4772
5251
|
* @uiName Empty form field error message
|
|
@@ -4813,7 +5292,7 @@ const TaxAndCashMonolith = class {
|
|
|
4813
5292
|
* @uiGroup General Form Properties
|
|
4814
5293
|
* @uiWidget textArea
|
|
4815
5294
|
*/
|
|
4816
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
5295
|
+
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.";
|
|
4817
5296
|
/**
|
|
4818
5297
|
* Placeholder text displayed in the country search dropdown
|
|
4819
5298
|
* @uiName Country field placeholder text
|
|
@@ -4833,13 +5312,19 @@ const TaxAndCashMonolith = class {
|
|
|
4833
5312
|
* @uiGroup General Form Properties
|
|
4834
5313
|
* @uiWidget textArea
|
|
4835
5314
|
*/
|
|
4836
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
5315
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
4837
5316
|
/**
|
|
4838
5317
|
* Displayed at the top of the page on all set up steps.
|
|
4839
5318
|
* @uiName Page description
|
|
4840
5319
|
* @uiGroup General Form Properties
|
|
4841
5320
|
*/
|
|
4842
5321
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5322
|
+
/**
|
|
5323
|
+
* Link text for contacting support team
|
|
5324
|
+
* @uiName Suport link text
|
|
5325
|
+
* @uiGroup General Form Properties
|
|
5326
|
+
*/
|
|
5327
|
+
this.supportLink = "support team";
|
|
4843
5328
|
stencilHooks_module.h$1(this);
|
|
4844
5329
|
}
|
|
4845
5330
|
disconnectedCallback() { }
|
|
@@ -4863,6 +5348,7 @@ const TaxAndCashMonolith = class {
|
|
|
4863
5348
|
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
4864
5349
|
searchForCountryText: props.searchForCountryText,
|
|
4865
5350
|
formStep: props.formStep,
|
|
5351
|
+
supportLink: props.supportLink,
|
|
4866
5352
|
};
|
|
4867
5353
|
}
|
|
4868
5354
|
render() {
|
|
@@ -4895,7 +5381,7 @@ const TaxAndCashMonolith = class {
|
|
|
4895
5381
|
}
|
|
4896
5382
|
};
|
|
4897
5383
|
function useDemoTaxAndCash(props) {
|
|
4898
|
-
const [step, setStep] = index_module.
|
|
5384
|
+
const [step, setStep] = index_module.Cn({
|
|
4899
5385
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4900
5386
|
initialValue: "/1",
|
|
4901
5387
|
});
|
|
@@ -4905,18 +5391,47 @@ function useDemoTaxAndCash(props) {
|
|
|
4905
5391
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4906
5392
|
}
|
|
4907
5393
|
|
|
4908
|
-
const style$
|
|
4909
|
-
|
|
5394
|
+
const style$6 = {
|
|
5395
|
+
ErrorAlertContainer: {
|
|
4910
5396
|
"&::part(base)": {
|
|
4911
5397
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4912
5398
|
borderTop: "none",
|
|
4913
5399
|
},
|
|
5400
|
+
"& sl-icon::part(base)": {
|
|
5401
|
+
color: "var(--sl-color-danger-500)",
|
|
5402
|
+
},
|
|
5403
|
+
},
|
|
5404
|
+
WarningAlertContainer: {
|
|
5405
|
+
"&::part(base)": {
|
|
5406
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5407
|
+
borderTop: "none",
|
|
5408
|
+
maxWidth: "600px",
|
|
5409
|
+
},
|
|
5410
|
+
"& sl-icon::part(base)": {
|
|
5411
|
+
color: "var(--sl-color-warning-500)",
|
|
5412
|
+
},
|
|
4914
5413
|
},
|
|
4915
|
-
|
|
5414
|
+
WarningHoldAlertContainer: {
|
|
5415
|
+
marginLeft: "-20px",
|
|
4916
5416
|
"&::part(base)": {
|
|
5417
|
+
maxWidth: "850px",
|
|
4917
5418
|
border: "none",
|
|
4918
5419
|
backgroundColor: "transparent",
|
|
4919
5420
|
},
|
|
5421
|
+
"& sl-icon::part(base)": {
|
|
5422
|
+
color: "var(--sl-color-warning-500)",
|
|
5423
|
+
},
|
|
5424
|
+
},
|
|
5425
|
+
ErrorHoldAlertContainer: {
|
|
5426
|
+
marginLeft: "-20px",
|
|
5427
|
+
"&::part(base)": {
|
|
5428
|
+
maxWidth: "850px",
|
|
5429
|
+
border: "none",
|
|
5430
|
+
backgroundColor: "transparent",
|
|
5431
|
+
},
|
|
5432
|
+
"& sl-icon::part(base)": {
|
|
5433
|
+
color: "var(--sl-color-danger-500)",
|
|
5434
|
+
},
|
|
4920
5435
|
},
|
|
4921
5436
|
ExpiringSoonAlertContainer: {
|
|
4922
5437
|
"&::part(base)": {
|
|
@@ -5037,6 +5552,7 @@ const style$5 = {
|
|
|
5037
5552
|
PageDescriptionText: {
|
|
5038
5553
|
color: "var(--sl-color-neutral-500)",
|
|
5039
5554
|
fontSize: "var(--sl-font-size-medium)",
|
|
5555
|
+
marginTop: "0",
|
|
5040
5556
|
},
|
|
5041
5557
|
Dialog: {
|
|
5042
5558
|
"&::part(panel)": {
|
|
@@ -5066,13 +5582,86 @@ const style$5 = {
|
|
|
5066
5582
|
},
|
|
5067
5583
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5068
5584
|
};
|
|
5069
|
-
const sheet$
|
|
5070
|
-
const styleString$
|
|
5585
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5586
|
+
const styleString$5 = sheet$5.toString();
|
|
5071
5587
|
const TaxAndCashDashboardView = (props) => {
|
|
5072
|
-
var _a;
|
|
5588
|
+
var _a, _b, _c, _d;
|
|
5073
5589
|
const { states, text, callbacks, slots } = props;
|
|
5590
|
+
function getAlert(status) {
|
|
5591
|
+
switch (status) {
|
|
5592
|
+
case "VERIFICATION:REQUIRED":
|
|
5593
|
+
return {
|
|
5594
|
+
header: text.verificationRequiredHeader,
|
|
5595
|
+
description: global.intl.formatMessage({
|
|
5596
|
+
id: "verificationRequiredDescription",
|
|
5597
|
+
defaultMessage: text.verificationRequiredDescription,
|
|
5598
|
+
}, {
|
|
5599
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5600
|
+
}),
|
|
5601
|
+
buttonText: text.verificationRequiredButtonText,
|
|
5602
|
+
alertType: "warning",
|
|
5603
|
+
icon: "exclamation-triangle",
|
|
5604
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5605
|
+
};
|
|
5606
|
+
case "VERIFICATION:INTERNAL":
|
|
5607
|
+
return {
|
|
5608
|
+
header: text.verificationRequiredInternalHeader,
|
|
5609
|
+
description: global.intl.formatMessage({
|
|
5610
|
+
id: "verificationRequiredInternalDescription",
|
|
5611
|
+
defaultMessage: text.verificationRequiredInternalDescription,
|
|
5612
|
+
}, {
|
|
5613
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5614
|
+
}),
|
|
5615
|
+
alertType: "warning",
|
|
5616
|
+
icon: "exclamation-triangle",
|
|
5617
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5618
|
+
};
|
|
5619
|
+
case "VERIFICATION:REVIEW":
|
|
5620
|
+
return {
|
|
5621
|
+
header: text.verificationReviewInternalHeader,
|
|
5622
|
+
description: global.intl.formatMessage({
|
|
5623
|
+
id: "verificationReviewInternalDescription",
|
|
5624
|
+
defaultMessage: text.verificationReviewInternalDescription,
|
|
5625
|
+
}, {
|
|
5626
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5627
|
+
}),
|
|
5628
|
+
alertType: "warning",
|
|
5629
|
+
icon: "exclamation-triangle",
|
|
5630
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5631
|
+
};
|
|
5632
|
+
case "VERIFICATION:FAILED":
|
|
5633
|
+
return {
|
|
5634
|
+
header: text.verificationFailedInternalHeader,
|
|
5635
|
+
description: global.intl.formatMessage({
|
|
5636
|
+
id: "verificationFailedInternalDescription",
|
|
5637
|
+
defaultMessage: text.verificationFailedInternalDescription,
|
|
5638
|
+
}, {
|
|
5639
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5640
|
+
}),
|
|
5641
|
+
alertType: "critical",
|
|
5642
|
+
icon: "exclamation-octagon",
|
|
5643
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5644
|
+
};
|
|
5645
|
+
case "HOLD":
|
|
5646
|
+
return {
|
|
5647
|
+
header: text.payoutHoldAlertHeader,
|
|
5648
|
+
description: global.intl.formatMessage({
|
|
5649
|
+
id: "payoutHoldAlertDescription",
|
|
5650
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5651
|
+
}, {
|
|
5652
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5653
|
+
}),
|
|
5654
|
+
buttonText: null,
|
|
5655
|
+
alertType: "warning",
|
|
5656
|
+
icon: "exclamation-triangle",
|
|
5657
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5658
|
+
};
|
|
5659
|
+
default:
|
|
5660
|
+
return;
|
|
5661
|
+
}
|
|
5662
|
+
}
|
|
5074
5663
|
const statusMap = {
|
|
5075
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5664
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5076
5665
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5077
5666
|
index.h("p", null, global.intl.formatMessage({
|
|
5078
5667
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5080,7 +5669,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5080
5669
|
}, {
|
|
5081
5670
|
dateSubmitted: states.dateSubmitted,
|
|
5082
5671
|
})))),
|
|
5083
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5672
|
+
ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5084
5673
|
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5085
5674
|
index.h("p", null, global.intl.formatMessage({
|
|
5086
5675
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5090,12 +5679,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5090
5679
|
}, {
|
|
5091
5680
|
dateSubmitted: states.dateSubmitted,
|
|
5092
5681
|
})))),
|
|
5093
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5682
|
+
INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5094
5683
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5095
5684
|
index.h("p", null, text.invalidForm))),
|
|
5096
5685
|
};
|
|
5097
5686
|
const alertMap = {
|
|
5098
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5687
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5099
5688
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5100
5689
|
index.h("strong", null, global.intl.formatMessage({
|
|
5101
5690
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5145,72 +5734,76 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5145
5734
|
};
|
|
5146
5735
|
return (index.h("div", null,
|
|
5147
5736
|
index.h("div", null,
|
|
5148
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
5737
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
5149
5738
|
states.loadingError && (index.h("div", null,
|
|
5150
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5739
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5151
5740
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5152
5741
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5153
5742
|
index.h("br", null),
|
|
5154
|
-
|
|
5155
|
-
|
|
5743
|
+
global.intl.formatMessage({
|
|
5744
|
+
id: "loadingErrorAlertDescription",
|
|
5745
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5746
|
+
}, {
|
|
5747
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5748
|
+
})))),
|
|
5749
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5156
5750
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5157
5751
|
index.h("strong", null, text.error.generalTitle),
|
|
5158
5752
|
index.h("br", null),
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
states.payoutStatus
|
|
5166
|
-
index.h("sl-icon", { slot: "icon", name:
|
|
5167
|
-
index.h("strong", null,
|
|
5168
|
-
index.h("p", { style: { margin: "0" } },
|
|
5169
|
-
index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.
|
|
5170
|
-
|
|
5171
|
-
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText))),
|
|
5172
|
-
index.h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
|
|
5173
|
-
index.h("iframe", {
|
|
5174
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
5175
|
-
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" })),
|
|
5176
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5753
|
+
global.intl.formatMessage({
|
|
5754
|
+
id: "generalDescription",
|
|
5755
|
+
defaultMessage: text.error.generalDescription,
|
|
5756
|
+
}, {
|
|
5757
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5758
|
+
}))),
|
|
5759
|
+
getAlert(states.payoutStatus) && (index.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 },
|
|
5760
|
+
index.h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
5761
|
+
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
5762
|
+
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5763
|
+
getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
5764
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5177
5765
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5178
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5179
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5766
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5767
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5180
5768
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5181
5769
|
index.h("div", null,
|
|
5182
|
-
index.h("h3",
|
|
5183
|
-
index.h("p", { class: sheet$
|
|
5184
|
-
index.h("div", { class: sheet$
|
|
5770
|
+
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5771
|
+
index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5772
|
+
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
5185
5773
|
slots.payoutDetailsCardSlot,
|
|
5186
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
5187
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5188
|
-
index.h("div", { class: sheet$
|
|
5189
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
5190
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5191
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5192
|
-
index.h("h3", { class: sheet$
|
|
5193
|
-
index.h("p", { class: sheet$
|
|
5194
|
-
index.h("span", { class: sheet$
|
|
5195
|
-
index.h("div", { class: sheet$
|
|
5774
|
+
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5775
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5776
|
+
index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5777
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5778
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5779
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5780
|
+
index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5781
|
+
index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5782
|
+
index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5783
|
+
index.h("div", { class: sheet$5.classes.StatusContainer },
|
|
5196
5784
|
index.h("h3", null, global.intl.formatMessage({
|
|
5197
5785
|
id: "section-subheader",
|
|
5198
5786
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5199
5787
|
}, {
|
|
5200
5788
|
documentType: states.documentTypeString,
|
|
5201
5789
|
})),
|
|
5202
|
-
index.h("span", { class: sheet$
|
|
5203
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5204
|
-
index.h("div", { class: sheet$
|
|
5205
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5206
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5207
|
-
index.h("h3", { class: sheet$
|
|
5790
|
+
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5791
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5792
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5793
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5794
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5795
|
+
index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
5208
5796
|
text.indirectTaxInfoSectionHeader,
|
|
5209
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5210
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
5211
|
-
index.h("div", { class: sheet$
|
|
5212
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
5213
|
-
|
|
5797
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5798
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5799
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5800
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
5801
|
+
id: "notRegisteredForTax",
|
|
5802
|
+
defaultMessage: text.notRegisteredForTax,
|
|
5803
|
+
}, {
|
|
5804
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5805
|
+
}))) : (getIndirectTaxRegisteredIn())),
|
|
5806
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
5214
5807
|
index.h("span", null, global.intl.formatMessage({
|
|
5215
5808
|
id: `indirectTaxDetails`,
|
|
5216
5809
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5233,7 +5826,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5233
5826
|
}, {
|
|
5234
5827
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5235
5828
|
})))),
|
|
5236
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5829
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
5237
5830
|
index.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 },
|
|
5238
5831
|
index.h("sqm-invoice-table-download-column", null),
|
|
5239
5832
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5279,16 +5872,16 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5279
5872
|
}
|
|
5280
5873
|
const useTaxAndCashDashboard = (props) => {
|
|
5281
5874
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5282
|
-
const setStep = index_module.
|
|
5283
|
-
const setContext = index_module.
|
|
5875
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
5876
|
+
const setContext = index_module.wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5284
5877
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5285
|
-
const
|
|
5286
|
-
const locale = index_module.
|
|
5878
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5879
|
+
const locale = index_module.L();
|
|
5287
5880
|
stencilHooks_module.useEffect(() => {
|
|
5288
5881
|
// Clear override context once on submitted
|
|
5289
5882
|
setContext({});
|
|
5290
5883
|
}, []);
|
|
5291
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5884
|
+
const { data, loading, errors: userError, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
5292
5885
|
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;
|
|
5293
5886
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5294
5887
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5313,7 +5906,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5313
5906
|
setStep("/3");
|
|
5314
5907
|
};
|
|
5315
5908
|
const provinceName = (_d = sqmInvoiceTableView.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;
|
|
5316
|
-
const payoutStatus = usePayoutStatus.getStatus(data);
|
|
5909
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
5910
|
+
stencilHooks_module.useEffect(() => {
|
|
5911
|
+
const cb = () => refetch();
|
|
5912
|
+
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5913
|
+
return () => {
|
|
5914
|
+
window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5915
|
+
};
|
|
5916
|
+
}, []);
|
|
5317
5917
|
return {
|
|
5318
5918
|
states: {
|
|
5319
5919
|
dateSubmitted,
|
|
@@ -5337,14 +5937,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5337
5937
|
showNewFormDialog: showDialog,
|
|
5338
5938
|
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5339
5939
|
payoutStatus,
|
|
5340
|
-
|
|
5940
|
+
veriffLoading,
|
|
5341
5941
|
},
|
|
5342
5942
|
callbacks: {
|
|
5343
5943
|
onClick: () => setShowDialog(true),
|
|
5944
|
+
onVerifyClick: () => render(),
|
|
5344
5945
|
onEditPayoutInfo,
|
|
5345
5946
|
onNewFormCancel: () => setShowDialog(false),
|
|
5346
5947
|
onNewFormClick,
|
|
5347
|
-
onVerifyIdentityCancel: () => setShowVerification(false),
|
|
5348
5948
|
},
|
|
5349
5949
|
text: props.getTextProps(),
|
|
5350
5950
|
};
|
|
@@ -5467,7 +6067,7 @@ const TaxAndCashDashboard = class {
|
|
|
5467
6067
|
* @uiName Indirect tax tooltip
|
|
5468
6068
|
* @uiWidget textArea
|
|
5469
6069
|
*/
|
|
5470
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact Support.";
|
|
6070
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our Support team.";
|
|
5471
6071
|
/**
|
|
5472
6072
|
* Displayed to participants who have submitted their indirect tax information.
|
|
5473
6073
|
*
|
|
@@ -5487,7 +6087,7 @@ const TaxAndCashDashboard = class {
|
|
|
5487
6087
|
* @uiName Not registered for indirect tax text
|
|
5488
6088
|
* @uiWidget textArea
|
|
5489
6089
|
*/
|
|
5490
|
-
this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
6090
|
+
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.";
|
|
5491
6091
|
/**
|
|
5492
6092
|
* Displayed to participants registered in Quebec, Canada.
|
|
5493
6093
|
* @uiName QST indirect tax details
|
|
@@ -5522,7 +6122,7 @@ const TaxAndCashDashboard = class {
|
|
|
5522
6122
|
* @uiName Payout error message description
|
|
5523
6123
|
* @uiWidget textArea
|
|
5524
6124
|
*/
|
|
5525
|
-
this.payoutHoldAlertDescription = "Please contact
|
|
6125
|
+
this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5526
6126
|
/**
|
|
5527
6127
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5528
6128
|
* @uiName Payout missing information subtext
|
|
@@ -5539,7 +6139,31 @@ const TaxAndCashDashboard = class {
|
|
|
5539
6139
|
* @uiName Verification required alert message description
|
|
5540
6140
|
* @uiWidget textArea
|
|
5541
6141
|
*/
|
|
5542
|
-
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
6142
|
+
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}.";
|
|
6143
|
+
/**
|
|
6144
|
+
* @uiName Verification required internal alert header
|
|
6145
|
+
*/
|
|
6146
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
6147
|
+
/**
|
|
6148
|
+
* @uiName Verification required internal alert description
|
|
6149
|
+
*/
|
|
6150
|
+
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}.";
|
|
6151
|
+
/**
|
|
6152
|
+
* @uiName Verification review internal alert header
|
|
6153
|
+
*/
|
|
6154
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
6155
|
+
/**
|
|
6156
|
+
* @uiName Verification review internal alert description
|
|
6157
|
+
*/
|
|
6158
|
+
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}.";
|
|
6159
|
+
/**
|
|
6160
|
+
* @uiName Verification failed internal alert header
|
|
6161
|
+
*/
|
|
6162
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
6163
|
+
/**
|
|
6164
|
+
* @uiName Verification failed internal alert description
|
|
6165
|
+
*/
|
|
6166
|
+
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}.";
|
|
5543
6167
|
/**
|
|
5544
6168
|
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5545
6169
|
* @uiName Verification required alert button text
|
|
@@ -5556,7 +6180,7 @@ const TaxAndCashDashboard = class {
|
|
|
5556
6180
|
* @uiName Form submission error message description
|
|
5557
6181
|
* @uiWidget textArea
|
|
5558
6182
|
*/
|
|
5559
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
6183
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5560
6184
|
/**
|
|
5561
6185
|
* Displayed under the payout details card.
|
|
5562
6186
|
* @uiName Payout from impact text
|
|
@@ -5574,7 +6198,7 @@ const TaxAndCashDashboard = class {
|
|
|
5574
6198
|
* @uiName Page load error message description
|
|
5575
6199
|
* @uiWidget textArea
|
|
5576
6200
|
*/
|
|
5577
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
6201
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5578
6202
|
/**
|
|
5579
6203
|
* Part of the Invoice table displayed at the bottom of the page.
|
|
5580
6204
|
* @uiName Invoice number column title
|
|
@@ -5625,6 +6249,10 @@ const TaxAndCashDashboard = class {
|
|
|
5625
6249
|
* @uiName Replace tax form modal body text
|
|
5626
6250
|
*/
|
|
5627
6251
|
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.";
|
|
6252
|
+
/**
|
|
6253
|
+
* @uiName Support link text
|
|
6254
|
+
*/
|
|
6255
|
+
this.supportLink = "support team";
|
|
5628
6256
|
/**
|
|
5629
6257
|
* @uiName Cancel button label
|
|
5630
6258
|
*/
|
|
@@ -5670,13 +6298,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5670
6298
|
hasHold: false,
|
|
5671
6299
|
showVerifyIdentity: false,
|
|
5672
6300
|
payoutStatus: "DONE",
|
|
6301
|
+
veriffLoading: false,
|
|
5673
6302
|
},
|
|
5674
6303
|
callbacks: {
|
|
5675
6304
|
onClick: () => console.debug("check step"),
|
|
5676
6305
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5677
6306
|
onNewFormCancel: () => console.log("hide"),
|
|
5678
6307
|
onNewFormClick: () => console.log("show"),
|
|
5679
|
-
|
|
6308
|
+
onVerifyClick: () => console.log("verify"),
|
|
5680
6309
|
},
|
|
5681
6310
|
text: props.getTextProps(),
|
|
5682
6311
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -6653,7 +7282,7 @@ const PHONE_EXTENSIONS = {
|
|
|
6653
7282
|
},
|
|
6654
7283
|
};
|
|
6655
7284
|
|
|
6656
|
-
const style$
|
|
7285
|
+
const style$7 = {
|
|
6657
7286
|
FormWrapper: {},
|
|
6658
7287
|
ErrorInput: {
|
|
6659
7288
|
"&::part(base)": {
|
|
@@ -6733,7 +7362,6 @@ const style$6 = {
|
|
|
6733
7362
|
},
|
|
6734
7363
|
PhoneInputsSection: {
|
|
6735
7364
|
display: "flex",
|
|
6736
|
-
alignItems: "flex-end",
|
|
6737
7365
|
flexDirection: "column",
|
|
6738
7366
|
gap: "4px",
|
|
6739
7367
|
"& p": {
|
|
@@ -6744,7 +7372,6 @@ const style$6 = {
|
|
|
6744
7372
|
},
|
|
6745
7373
|
PhoneInputsContainer: {
|
|
6746
7374
|
display: "flex",
|
|
6747
|
-
alignItems: "flex-end",
|
|
6748
7375
|
gap: "4px",
|
|
6749
7376
|
width: "100%",
|
|
6750
7377
|
"& #phoneNumber": {
|
|
@@ -6753,9 +7380,9 @@ const style$6 = {
|
|
|
6753
7380
|
},
|
|
6754
7381
|
},
|
|
6755
7382
|
};
|
|
6756
|
-
const sheet$
|
|
6757
|
-
const styleString$
|
|
6758
|
-
const vanillaStyle$
|
|
7383
|
+
const sheet$6 = JSS.createStyleSheet(style$7);
|
|
7384
|
+
const styleString$6 = sheet$6.toString();
|
|
7385
|
+
const vanillaStyle$4 = `
|
|
6759
7386
|
:host{
|
|
6760
7387
|
display: block;
|
|
6761
7388
|
}
|
|
@@ -6783,7 +7410,7 @@ const vanillaStyle$3 = `
|
|
|
6783
7410
|
const UserInfoFormView = (props) => {
|
|
6784
7411
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
6785
7412
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
6786
|
-
const { classes } = sheet$
|
|
7413
|
+
const { classes } = sheet$6;
|
|
6787
7414
|
const bankingCollectionText = global.intl.formatMessage({
|
|
6788
7415
|
id: "bankingCollectionText",
|
|
6789
7416
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -6806,14 +7433,19 @@ const UserInfoFormView = (props) => {
|
|
|
6806
7433
|
}
|
|
6807
7434
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6808
7435
|
index.h("style", { type: "text/css" },
|
|
6809
|
-
styleString$
|
|
6810
|
-
vanillaStyle$
|
|
7436
|
+
styleString$6,
|
|
7437
|
+
vanillaStyle$4),
|
|
6811
7438
|
states.loadingError && (index.h("div", null,
|
|
6812
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7439
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
6813
7440
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6814
7441
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6815
7442
|
index.h("br", null),
|
|
6816
|
-
|
|
7443
|
+
global.intl.formatMessage({
|
|
7444
|
+
id: "loadingErrorAlertDescription",
|
|
7445
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7446
|
+
}, {
|
|
7447
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7448
|
+
})),
|
|
6817
7449
|
index.h("br", null))),
|
|
6818
7450
|
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
6819
7451
|
index.h("div", { class: classes.TextContainer },
|
|
@@ -6824,16 +7456,26 @@ const UserInfoFormView = (props) => {
|
|
|
6824
7456
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6825
7457
|
index.h("h3", null, text.personalInformation),
|
|
6826
7458
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6827
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
7459
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
6828
7460
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6829
7461
|
index.h("strong", null, text.error.generalTitle),
|
|
6830
7462
|
index.h("br", null),
|
|
6831
|
-
|
|
6832
|
-
|
|
7463
|
+
global.intl.formatMessage({
|
|
7464
|
+
id: "generalDescription",
|
|
7465
|
+
defaultMessage: text.error.generalDescription,
|
|
7466
|
+
}, {
|
|
7467
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7468
|
+
}))),
|
|
7469
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6833
7470
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6834
7471
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
6835
7472
|
index.h("br", null),
|
|
6836
|
-
|
|
7473
|
+
global.intl.formatMessage({
|
|
7474
|
+
id: "isPartnerAlertDescription",
|
|
7475
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
7476
|
+
}, {
|
|
7477
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7478
|
+
}))),
|
|
6837
7479
|
index.h("div", null,
|
|
6838
7480
|
index.h("div", { class: classes.InputContainer },
|
|
6839
7481
|
index.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) ? {
|
|
@@ -6885,10 +7527,11 @@ const UserInfoFormView = (props) => {
|
|
|
6885
7527
|
index.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 :
|
|
6886
7528
|
_b.dial_code));
|
|
6887
7529
|
})),
|
|
6888
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
7530
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7531
|
+
// Naive phone number validation
|
|
7532
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7533
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7534
|
+
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6892
7535
|
class: classes.ErrorInput,
|
|
6893
7536
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6894
7537
|
}
|
|
@@ -6951,12 +7594,12 @@ function useUserInfoForm(props) {
|
|
|
6951
7594
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6952
7595
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6953
7596
|
const formRef = stencilHooks_module.useRef(null);
|
|
6954
|
-
const context = index_module.
|
|
6955
|
-
const countries = index_module.
|
|
6956
|
-
const [step, setStep] = index_module.
|
|
6957
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6958
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6959
|
-
const _currencies = index_module.
|
|
7597
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7598
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
7599
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
7600
|
+
const [userFormContext, setUserFormContext] = index_module.bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7601
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
7602
|
+
const _currencies = index_module.In(CURRENCIES_NAMESPACE);
|
|
6960
7603
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6961
7604
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6962
7605
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -7084,6 +7727,8 @@ function useUserInfoForm(props) {
|
|
|
7084
7727
|
const { allowBankingCollection, ...userData } = formData;
|
|
7085
7728
|
setUserFormContext({
|
|
7086
7729
|
...userFormContext,
|
|
7730
|
+
firstName: userData.firstName,
|
|
7731
|
+
lastName: userData.lastName,
|
|
7087
7732
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
7088
7733
|
phoneNumber: userData.phoneNumber,
|
|
7089
7734
|
countryCode: userData.countryCode,
|
|
@@ -7220,7 +7865,7 @@ const TaxForm = class {
|
|
|
7220
7865
|
* @uiName Participant is a partner alert description
|
|
7221
7866
|
* @uiWidget textArea
|
|
7222
7867
|
*/
|
|
7223
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
7868
|
+
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.";
|
|
7224
7869
|
/**
|
|
7225
7870
|
* Part of the alert displayed at the top of the page.
|
|
7226
7871
|
* @uiName Form submission error message title
|
|
@@ -7232,7 +7877,7 @@ const TaxForm = class {
|
|
|
7232
7877
|
* @uiName Form submission error message description
|
|
7233
7878
|
* @uiWidget textArea
|
|
7234
7879
|
*/
|
|
7235
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
7880
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
7236
7881
|
/**
|
|
7237
7882
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
7238
7883
|
* @uiName Terms and conditions checkbox
|
|
@@ -7248,7 +7893,7 @@ const TaxForm = class {
|
|
|
7248
7893
|
* The link that appears in the terms and conditions checkbox
|
|
7249
7894
|
* @uiName Terms and conditions link
|
|
7250
7895
|
*/
|
|
7251
|
-
this.termsAndConditionsLink = "/
|
|
7896
|
+
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
7252
7897
|
/**
|
|
7253
7898
|
* Placeholder text displayed in the country search dropdown
|
|
7254
7899
|
* @uiName Country field placeholder text
|
|
@@ -7285,12 +7930,16 @@ const TaxForm = class {
|
|
|
7285
7930
|
* @uiName Page load error message description
|
|
7286
7931
|
* @uiWidget textArea
|
|
7287
7932
|
*/
|
|
7288
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
7933
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
7289
7934
|
/**
|
|
7290
7935
|
* Displayed at the top of the page on all set up steps.
|
|
7291
7936
|
* @uiName Page description
|
|
7292
7937
|
*/
|
|
7293
7938
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7939
|
+
/**
|
|
7940
|
+
* @uiName Support link text
|
|
7941
|
+
*/
|
|
7942
|
+
this.supportLink = "support team";
|
|
7294
7943
|
stencilHooks_module.h$1(this);
|
|
7295
7944
|
}
|
|
7296
7945
|
disconnectedCallback() { }
|
|
@@ -7320,7 +7969,7 @@ const TaxForm = class {
|
|
|
7320
7969
|
}
|
|
7321
7970
|
};
|
|
7322
7971
|
function useDemoUserInfoForm(props) {
|
|
7323
|
-
const setStep = index_module.
|
|
7972
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
7324
7973
|
return cjs.cjs({
|
|
7325
7974
|
setStep,
|
|
7326
7975
|
onSubmit: () => {
|
|
@@ -7367,6 +8016,7 @@ function useDemoUserInfoForm(props) {
|
|
|
7367
8016
|
}
|
|
7368
8017
|
|
|
7369
8018
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8019
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
7370
8020
|
exports.sqm_docusign_form = DocusignForm;
|
|
7371
8021
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
7372
8022
|
exports.sqm_invoice_table = InvoiceTable;
|