@saasquatch/mint-components 1.13.0-9 → 1.13.1-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/{ShadowViewAddon-44cb1a98.js → ShadowViewAddon-bd00066a.js} +121 -163
- package/dist/cjs/{copy-text-view-9b950efe.js → copy-text-view-a5524c20.js} +1 -1
- package/dist/cjs/extractProps-fd93ba62.js +21 -0
- package/dist/cjs/{global-19fc8a7a.js → global-e31dc4f5.js} +1 -1
- package/dist/cjs/{index.module-57703088.js → index.module-ee84433d.js} +4 -0
- package/dist/cjs/keys-cff24974.js +11 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-35b016ed.js → re-render-b324deab.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1012 -239
- package/dist/cjs/{sqm-base-registration-form-view-d5685747.js → sqm-base-registration-form-view-8a2c8763.js} +1 -1
- package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +402 -191
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +291 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +38 -35
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-9dfa2a16.js → sqm-invoice-table-view-baded4af.js} +172 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba5f7e.js → sqm-navigation-sidebar-item-view-6f35d2ee.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-98d84549.js → sqm-portal-email-verification-view-7ebb426a.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +130 -0
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-login-view-761a4d8e.js +58 -0
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-bae28ea0.js → sqm-portal-profile-view-33164798.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-registration-form-view-e947a5b3.js → sqm-portal-registration-form-view-ebf355a6.js} +13 -12
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
- package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +279 -74
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.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 +203 -0
- package/dist/cjs/{useChildElements-854cd1e5.js → useChildElements-1b35d945.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-daff8290.js → useInstantAccessRegistration-9a46c324.js} +2 -2
- package/dist/cjs/usePayoutStatus-4b5894ef.js +1045 -0
- package/dist/cjs/usePortalLogin-63d896d1.js +74 -0
- package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f25d89e7.js} +2 -2
- package/dist/cjs/{useReferralTable-283d2316.js → useReferralTable-7c3f9600.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-7b820f0c.js} +1 -1
- package/dist/cjs/useVerificationEmail-95a82767.js +173 -0
- package/dist/cjs/{utilities-c135f16f.js → utilities-78f5e169.js} +1 -1
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +24 -10
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +34 -27
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +15 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +24 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +122 -0
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +37 -0
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +428 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -3
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -13
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -30
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +9 -4
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +13 -12
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -3
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +13 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-button/useShareButton.js +11 -5
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -0
- package/dist/collection/components/sqm-text/sqm-text.js +1 -1
- package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +36 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +128 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +301 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +153 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +58 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +95 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +251 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +126 -0
- 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 +536 -0
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +169 -0
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +60 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +20 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +165 -1
- 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 +128 -11
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +109 -39
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +15 -2
- 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 +18 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +176 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +527 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +76 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +415 -24
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +138 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +283 -17
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +17 -2
- 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 +16 -11
- package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
- package/dist/esm/{ShadowViewAddon-eba44767.js → ShadowViewAddon-444b1f38.js} +122 -163
- package/dist/esm/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
- package/dist/esm/extractProps-ae1afbb3.js +19 -0
- package/dist/esm/{global-bedc4329.js → global-be1f9992.js} +1 -1
- package/dist/esm/{index.module-a2989d3c.js → index.module-89a79f66.js} +5 -1
- package/dist/esm/keys-406491dc.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-268bb9c8.js → re-render-cc945f38.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +1012 -240
- package/dist/esm/{sqm-base-registration-form-view-98c4db70.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
- package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +400 -190
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +287 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-google-sign-in.entry.js +39 -36
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-af69cd33.js} +172 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-google-login.entry.js +126 -0
- package/dist/esm/sqm-portal-google-registration-form.entry.js +6 -6
- package/dist/esm/sqm-portal-login-view-7e49609a.js +56 -0
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-90e2bfd5.js → sqm-portal-registration-form-view-32c4b488.js} +13 -12
- package/dist/esm/sqm-portal-registration-form.entry.js +4 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-scroll.entry.js +105 -0
- package/dist/esm/sqm-stencilbook.entry.js +277 -72
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
- package/dist/esm/sqm-widget-verification.entry.js +199 -0
- package/dist/esm/stencil-hooks.module-4bc38af4.js +1 -1
- package/dist/esm/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +2 -2
- package/dist/esm/usePayoutStatus-58aa56b4.js +1039 -0
- package/dist/esm/usePortalLogin-ef647a50.js +72 -0
- package/dist/esm/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +2 -2
- package/dist/esm/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +3 -3
- package/dist/esm/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
- package/dist/esm/useVerificationEmail-edc318cb.js +171 -0
- package/dist/esm/{utilities-863d06d1.js → utilities-5b0ca040.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-444b1f38.js +1 -0
- package/dist/esm-es5/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/{global-bedc4329.js → global-be1f9992.js} +1 -1
- package/dist/esm-es5/index.module-89a79f66.js +1 -0
- package/dist/esm-es5/keys-406491dc.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-268bb9c8.js → re-render-cc945f38.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-base-registration-form-view-593d4ac3.js +1 -0
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-af69cd33.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.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-view-32c4b488.js +1 -0
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.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-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -0
- 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-widget-verification-controller.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +1 -1
- package/dist/esm-es5/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +1 -1
- package/dist/esm-es5/usePayoutStatus-58aa56b4.js +6 -0
- package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
- package/dist/esm-es5/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +1 -1
- package/dist/esm-es5/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
- package/dist/esm-es5/{utilities-863d06d1.js → utilities-5b0ca040.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-2126e1e6.entry.js → p-04a6e457.entry.js} +1 -1
- package/dist/mint-components/{p-3e1b7fb4.entry.js → p-079405ff.entry.js} +1 -1
- package/dist/mint-components/{p-35698aaa.system.js → p-0d182dc1.system.js} +1 -1
- package/dist/mint-components/p-0ebab63e.system.js +1 -0
- package/dist/mint-components/{p-ca04737a.entry.js → p-10d17989.entry.js} +1 -1
- package/dist/mint-components/{p-95c64cfd.system.js → p-13ed8586.system.js} +1 -1
- package/dist/mint-components/{p-3972037c.system.entry.js → p-141bf5c1.system.entry.js} +1 -1
- package/dist/mint-components/{p-80fc549b.entry.js → p-1513309d.entry.js} +1 -1
- package/dist/mint-components/{p-79ea1597.system.entry.js → p-164a9103.system.entry.js} +1 -1
- package/dist/mint-components/p-17cc7c9b.js +394 -0
- package/dist/mint-components/p-18425f38.system.entry.js +1 -0
- package/dist/mint-components/p-19ccb4ce.js +1 -0
- package/dist/mint-components/{p-0aa62b64.entry.js → p-1a6b7d2a.entry.js} +1 -1
- package/dist/mint-components/{p-de9afac2.system.entry.js → p-1fa9ed0d.system.entry.js} +1 -1
- package/dist/mint-components/p-21620f81.system.entry.js +1 -0
- package/dist/mint-components/p-22111c97.entry.js +9 -0
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-53aaa0a4.entry.js → p-275b4767.entry.js} +1 -1
- package/dist/mint-components/{p-618e1342.entry.js → p-284e4ed5.entry.js} +1 -1
- package/dist/mint-components/{p-e544bb9a.entry.js → p-2ae0e06a.entry.js} +1 -1
- package/dist/mint-components/p-2d52e2d7.system.js +1 -0
- package/dist/mint-components/{p-4ae54b04.entry.js → p-2da21ba4.entry.js} +1 -1
- package/dist/mint-components/{p-45436d5a.entry.js → p-2f101bae.entry.js} +1 -1
- package/dist/mint-components/p-301ddcaa.system.entry.js +1 -0
- package/dist/mint-components/p-33c96e14.entry.js +16 -0
- package/dist/mint-components/{p-731aa5c6.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -0
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/{p-4448febd.entry.js → p-38fc919b.entry.js} +1 -1
- package/dist/mint-components/{p-40e99b24.js → p-3db34d68.js} +1 -1
- package/dist/mint-components/{p-ebdcea27.system.entry.js → p-420554af.system.entry.js} +1 -1
- package/dist/mint-components/{p-571c451e.entry.js → p-4428294b.entry.js} +1 -1
- package/dist/mint-components/{p-a21d1a30.system.entry.js → p-4469fea6.system.entry.js} +1 -1
- package/dist/mint-components/p-44891949.entry.js +1 -0
- package/dist/mint-components/p-4794641c.system.js +1 -0
- package/dist/mint-components/p-480e08e9.js +31 -0
- package/dist/mint-components/p-48135f99.system.js +2 -2
- package/dist/mint-components/p-4acd5340.system.js +1 -0
- package/dist/mint-components/{p-492fdaf9.js → p-4e451f75.js} +1 -1
- package/dist/mint-components/p-4e526a94.js +1 -0
- package/dist/mint-components/{p-92a25556.system.entry.js → p-50c902ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-4bcb04aa.system.entry.js → p-51d3cde7.system.entry.js} +1 -1
- package/dist/mint-components/p-527216de.system.js +1 -0
- package/dist/mint-components/{p-2dc5e60a.entry.js → p-54440d8d.entry.js} +1 -1
- package/dist/mint-components/p-5488fdd9.system.js +1 -0
- package/dist/mint-components/{p-8da47802.system.entry.js → p-54adee71.system.entry.js} +1 -1
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/{p-a8524459.system.js → p-59274a91.system.js} +1 -1
- package/dist/mint-components/{p-7989a098.system.entry.js → p-5c28406d.system.entry.js} +1 -1
- package/dist/mint-components/{p-9a0c3ed9.system.entry.js → p-5d7e308c.system.entry.js} +1 -1
- package/dist/mint-components/{p-09c5e3ee.system.js → p-635d5ef2.system.js} +1 -1
- package/dist/mint-components/{p-6de85677.js → p-63a75798.js} +1 -1
- package/dist/mint-components/p-6427e963.entry.js +1 -0
- package/dist/mint-components/{p-506679e9.js → p-65069b66.js} +1 -1
- package/dist/mint-components/{p-9e49479a.entry.js → p-653f963f.entry.js} +2 -2
- package/dist/mint-components/{p-b9d17fa1.entry.js → p-693942df.entry.js} +1 -1
- package/dist/mint-components/p-6b7a595f.system.js +1 -0
- package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
- package/dist/mint-components/{p-550ef977.js → p-6d2f5a1d.js} +2 -2
- package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
- package/dist/mint-components/{p-7166caa6.system.js → p-717cc8ac.system.js} +1 -1
- package/dist/mint-components/{p-7bcf4467.system.entry.js → p-71bc04d2.system.entry.js} +1 -1
- package/dist/mint-components/p-78078e48.system.entry.js +1 -0
- package/dist/mint-components/p-784a69ac.system.entry.js +1 -0
- package/dist/mint-components/p-793d2130.js +1 -0
- package/dist/mint-components/{p-b114e746.entry.js → p-7ab21e4d.entry.js} +1 -1
- package/dist/mint-components/{p-2ab3b8d6.js → p-7f2d4212.js} +1 -1
- package/dist/mint-components/p-8175e85f.system.js +1 -0
- package/dist/mint-components/{p-81665df6.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
- package/dist/mint-components/p-84cea9dd.entry.js +241 -0
- package/dist/mint-components/{p-bd4810c7.system.entry.js → p-85671c3d.system.entry.js} +1 -1
- package/dist/mint-components/{p-f9de8a59.system.js → p-89903f6d.system.js} +1 -1
- package/dist/mint-components/{p-0873eaa8.entry.js → p-8abfeff8.entry.js} +1 -1
- package/dist/mint-components/p-8c23d1b8.js +1 -0
- package/dist/mint-components/{p-8056fd5b.system.entry.js → p-8d9d04b7.system.entry.js} +1 -1
- package/dist/mint-components/{p-988ea164.system.entry.js → p-90fc6774.system.entry.js} +1 -1
- package/dist/mint-components/p-91959fbe.js +1 -0
- package/dist/mint-components/p-9320582e.system.js +1 -0
- package/dist/mint-components/p-94a876b9.js +1 -0
- package/dist/mint-components/p-962f3200.js +1 -0
- package/dist/mint-components/{p-1c5cffae.js → p-98698131.js} +1 -1
- package/dist/mint-components/{p-f32c8cb5.entry.js → p-99374849.entry.js} +1 -1
- package/dist/mint-components/{p-a4a5beb5.system.entry.js → p-99bc1231.system.entry.js} +1 -1
- package/dist/mint-components/{p-9a16a3d8.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
- package/dist/mint-components/{p-f4a1dc19.entry.js → p-a2fde301.entry.js} +1 -1
- package/dist/mint-components/p-a71b9154.system.js +1 -0
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/{p-635aaf11.system.entry.js → p-b287833c.system.entry.js} +1 -1
- package/dist/mint-components/{p-8975c2be.entry.js → p-b51e79b3.entry.js} +1 -1
- package/dist/mint-components/{p-f0c23e81.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7cb919d4.system.entry.js → p-b82e1935.system.entry.js} +1 -1
- package/dist/mint-components/p-b93fd99c.system.entry.js +1 -0
- package/dist/mint-components/p-bb0f585c.system.js +1 -0
- package/dist/mint-components/{p-1833c4f5.js → p-bbcd824a.js} +1 -1
- package/dist/mint-components/p-bd91bba4.js +1 -0
- package/dist/mint-components/{p-f2fd1910.system.js → p-bdb7d451.system.js} +1 -1
- package/dist/mint-components/{p-24c4e0b8.system.entry.js → p-c060f770.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ef299d7.js → p-c0f19490.js} +1 -1
- package/dist/mint-components/{p-ca740238.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
- package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
- package/dist/mint-components/p-cbbfac66.entry.js +25 -0
- package/dist/mint-components/p-cc7af682.system.js +6 -0
- package/dist/mint-components/{p-4f45be94.system.js → p-cd569259.system.js} +1 -1
- package/dist/mint-components/p-cd651f81.js +2 -2
- package/dist/mint-components/p-d07f3090.entry.js +1 -0
- package/dist/mint-components/p-d6831af5.js +48 -0
- package/dist/mint-components/p-da7708a7.entry.js +1 -0
- package/dist/mint-components/p-dbcb5359.js +1 -0
- package/dist/mint-components/{p-75f50e5a.entry.js → p-dcc81e90.entry.js} +1 -1
- package/dist/mint-components/{p-1b0c58bc.system.entry.js → p-de8e9981.system.entry.js} +1 -1
- package/dist/mint-components/{p-857947fa.system.entry.js → p-e5a5ae7f.system.entry.js} +1 -1
- package/dist/mint-components/{p-045d1d49.entry.js → p-e6045498.entry.js} +1 -1
- package/dist/mint-components/{p-9b779add.entry.js → p-e6f50ffd.entry.js} +1 -1
- package/dist/mint-components/{p-c470caf6.entry.js → p-e8ffcc68.entry.js} +2 -2
- package/dist/mint-components/p-f0772618.system.entry.js +1 -0
- package/dist/mint-components/p-f29eda2f.entry.js +205 -0
- package/dist/mint-components/{p-9f231a48.system.entry.js → p-f4a72903.system.entry.js} +1 -1
- package/dist/mint-components/{p-aaeaff1a.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
- package/dist/mint-components/p-fa37513e.system.entry.js +1 -0
- package/dist/mint-components/{p-e0b344fb.entry.js → p-fe2e2f4a.entry.js} +1 -1
- package/dist/mint-components/p-ff8b8067.entry.js +33 -0
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +2 -0
- package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +1 -1
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +6 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +26 -0
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
- package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +74 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +2 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -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-button/ShareButton.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -0
- package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +9 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +54 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +25 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +11 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +22 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +44 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +10 -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 +96 -0
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +15 -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 +6 -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 +8 -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-docusign-form/useDocusignForm.d.ts +1 -1
- 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 +12 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +36 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +90 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +20 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +82 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +17 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +47 -2
- 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.d.ts +1071 -86
- package/docs/docs.docx +0 -0
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -4
- package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +0 -86
- package/dist/esm-es5/ShadowViewAddon-eba44767.js +0 -1
- package/dist/esm-es5/index.module-a2989d3c.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-98c4db70.js +0 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-8e2bb54a.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-90e2bfd5.js +0 -1
- package/dist/mint-components/p-0323586f.entry.js +0 -223
- package/dist/mint-components/p-046f4631.system.js +0 -1
- package/dist/mint-components/p-0e53c59e.system.js +0 -1
- package/dist/mint-components/p-16c7bfda.js +0 -391
- package/dist/mint-components/p-28042d23.entry.js +0 -174
- package/dist/mint-components/p-30108c0e.js +0 -1
- package/dist/mint-components/p-31a691af.js +0 -1
- package/dist/mint-components/p-39b1a7fe.js +0 -1
- package/dist/mint-components/p-3bdd338c.system.js +0 -1
- package/dist/mint-components/p-3ec660e9.js +0 -1
- package/dist/mint-components/p-46ab5f80.system.js +0 -1
- package/dist/mint-components/p-4daa3f8a.system.entry.js +0 -1
- package/dist/mint-components/p-62f6627d.js +0 -1
- package/dist/mint-components/p-6a89b821.system.entry.js +0 -1
- package/dist/mint-components/p-749c7c9c.system.js +0 -1
- package/dist/mint-components/p-868f176e.entry.js +0 -1
- package/dist/mint-components/p-8d77feee.js +0 -1
- package/dist/mint-components/p-96b48c2b.system.js +0 -1
- package/dist/mint-components/p-a1f40614.system.entry.js +0 -1
- package/dist/mint-components/p-ac2b7eb8.system.js +0 -1
- package/dist/mint-components/p-b611eefd.entry.js +0 -1
- package/dist/mint-components/p-c4b21562.system.entry.js +0 -1
- package/dist/mint-components/p-c6a8c075.system.js +0 -1
- package/dist/mint-components/p-cd480e3f.entry.js +0 -33
- package/dist/mint-components/p-cf505e92.system.js +0 -1
- package/dist/mint-components/p-d671e44e.system.js +0 -1
- package/dist/mint-components/p-d7ed4bb5.entry.js +0 -1
- package/dist/mint-components/p-d87ce3d2.js +0 -1
- package/dist/mint-components/p-ea9fd654.entry.js +0 -9
- package/dist/mint-components/p-fe4a9dfe.system.entry.js +0 -1
- package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +0 -31
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
|
|
2
|
-
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, L, J,
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-be1f9992.js';
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn, M as Mn, I as In, S as Sn } from './index.module-89a79f66.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './mixins-83f90fa1.js';
|
|
9
|
+
import { E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
13
13
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import {
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
16
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-af69cd33.js';
|
|
17
|
+
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
18
|
+
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
19
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-58aa56b4.js';
|
|
20
|
+
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
16
21
|
|
|
17
22
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
18
23
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -28,11 +33,17 @@ const GET_USER = dist.gql `
|
|
|
28
33
|
query getUserTaxInfo {
|
|
29
34
|
user: viewer {
|
|
30
35
|
... on User {
|
|
36
|
+
id
|
|
31
37
|
firstName
|
|
32
38
|
lastName
|
|
33
39
|
email
|
|
34
40
|
countryCode
|
|
35
41
|
customFields
|
|
42
|
+
managedIdentity {
|
|
43
|
+
uid
|
|
44
|
+
email
|
|
45
|
+
emailVerified
|
|
46
|
+
}
|
|
36
47
|
impactConnection {
|
|
37
48
|
connected
|
|
38
49
|
user {
|
|
@@ -76,6 +87,7 @@ const GET_USER = dist.gql `
|
|
|
76
87
|
}
|
|
77
88
|
payoutsAccount {
|
|
78
89
|
hold
|
|
90
|
+
holdReasons
|
|
79
91
|
balance
|
|
80
92
|
}
|
|
81
93
|
}
|
|
@@ -852,12 +864,22 @@ const BankingInfoFormView = (props) => {
|
|
|
852
864
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
853
865
|
h("strong", null, text.error.generalTitle),
|
|
854
866
|
h("br", null),
|
|
855
|
-
|
|
867
|
+
intl.formatMessage({
|
|
868
|
+
id: "generalDescription",
|
|
869
|
+
defaultMessage: text.error.generalDescription,
|
|
870
|
+
}, {
|
|
871
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
872
|
+
}))),
|
|
856
873
|
states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
857
874
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
858
875
|
h("strong", null, text.isPartnerAlertHeader),
|
|
859
876
|
h("br", null),
|
|
860
|
-
|
|
877
|
+
intl.formatMessage({
|
|
878
|
+
id: "isPartnerAlertDescription",
|
|
879
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
880
|
+
}, {
|
|
881
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
882
|
+
}))),
|
|
861
883
|
h("div", null,
|
|
862
884
|
h("h4", null, text.paymentMethod),
|
|
863
885
|
h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
@@ -939,6 +961,21 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
939
961
|
}
|
|
940
962
|
}
|
|
941
963
|
`;
|
|
964
|
+
const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
965
|
+
mutation updateImpactPublisherWithdrawalSettings(
|
|
966
|
+
$updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
|
|
967
|
+
) {
|
|
968
|
+
updateImpactPublisherWithdrawalSettings(
|
|
969
|
+
updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
|
|
970
|
+
) {
|
|
971
|
+
success
|
|
972
|
+
validationErrors {
|
|
973
|
+
field
|
|
974
|
+
message
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
`;
|
|
942
979
|
function getPaymentMethod(paymentOption) {
|
|
943
980
|
if (paymentOption.defaultFinancePaymentMethodId === 3 ||
|
|
944
981
|
paymentOption.defaultFinancePaymentMethodId === 5)
|
|
@@ -955,7 +992,8 @@ function parseImpactThreshold(threshold) {
|
|
|
955
992
|
return parsed.toString();
|
|
956
993
|
}
|
|
957
994
|
function useBankingInfoForm(props) {
|
|
958
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
995
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
996
|
+
const host = _();
|
|
959
997
|
const locale = L();
|
|
960
998
|
const user = J();
|
|
961
999
|
const [step, setStep] = Pn(TAX_CONTEXT_NAMESPACE);
|
|
@@ -965,6 +1003,9 @@ function useBankingInfoForm(props) {
|
|
|
965
1003
|
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = $n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
966
1004
|
const { data: userData, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
|
|
967
1005
|
const [saveWithdrawalSettings] = $e(SAVE_WITHDRAWAL_SETTINGS);
|
|
1006
|
+
const [updateWithdrawalSettings] = $e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
1007
|
+
const [showVerification, setShowVerification] = useState(false);
|
|
1008
|
+
const [currentFormData, setCurrentFormData] = useState(null);
|
|
968
1009
|
const [formState, setFormState] = useState({});
|
|
969
1010
|
const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
|
|
970
1011
|
const [loading, setLoading] = useState(false);
|
|
@@ -974,8 +1015,9 @@ function useBankingInfoForm(props) {
|
|
|
974
1015
|
const [countrySearch, setCountrySearch] = useState("");
|
|
975
1016
|
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
976
1017
|
const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
|
|
1018
|
+
const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
|
|
977
1019
|
const feeCap = paypalFeeMap[currency] || "";
|
|
978
|
-
const paymentOptions = (
|
|
1020
|
+
const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
|
|
979
1021
|
const paymentMethodFeeMap = {
|
|
980
1022
|
[ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
|
|
981
1023
|
[WIRE_PAYMENT_METHOD]: intl.formatMessage({
|
|
@@ -1054,49 +1096,52 @@ function useBankingInfoForm(props) {
|
|
|
1054
1096
|
setFormState((p) => ({ ...p, bankCountry }));
|
|
1055
1097
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1056
1098
|
};
|
|
1057
|
-
const
|
|
1058
|
-
var _a, _b, _c, _d;
|
|
1059
|
-
let formData = {};
|
|
1060
|
-
let validationErrors = {};
|
|
1061
|
-
const controls = event.target.getFormControls();
|
|
1062
|
-
controls.forEach((control) => {
|
|
1063
|
-
if (!control.name || !control.id)
|
|
1064
|
-
return;
|
|
1065
|
-
const key = control.name;
|
|
1066
|
-
const value = control.value;
|
|
1067
|
-
jsonpointer.set(formData, key, value);
|
|
1068
|
-
if (control.required && !value) {
|
|
1069
|
-
jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1070
|
-
}
|
|
1071
|
-
});
|
|
1072
|
-
setErrors({ inputErrors: validationErrors });
|
|
1073
|
-
if (Object.keys(validationErrors).length) {
|
|
1074
|
-
return;
|
|
1075
|
-
}
|
|
1099
|
+
const runMutation = async (formData, token) => {
|
|
1100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1076
1101
|
setLoading(true);
|
|
1077
1102
|
try {
|
|
1078
1103
|
if (!currentPaymentOption)
|
|
1079
1104
|
throw new Error("No currentPaymentOption");
|
|
1080
|
-
const
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
accountId: user.accountId,
|
|
1085
|
-
},
|
|
1086
|
-
...formData,
|
|
1087
|
-
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1088
|
-
paymentSchedulingType: paymentScheduleChecked,
|
|
1105
|
+
const body = {
|
|
1106
|
+
user: {
|
|
1107
|
+
id: user.id,
|
|
1108
|
+
accountId: user.accountId,
|
|
1089
1109
|
},
|
|
1110
|
+
...formData,
|
|
1111
|
+
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1112
|
+
paymentSchedulingType: paymentScheduleChecked,
|
|
1090
1113
|
};
|
|
1091
|
-
|
|
1092
|
-
|
|
1114
|
+
let response = null;
|
|
1115
|
+
let success = null;
|
|
1116
|
+
let validationErrors = null;
|
|
1117
|
+
// Call difference mutations based on whether the user is updating
|
|
1118
|
+
// the info for setting it for the first time
|
|
1119
|
+
if (isPartner) {
|
|
1120
|
+
if (!token)
|
|
1121
|
+
return; // Require token for this mutation
|
|
1122
|
+
response = await updateWithdrawalSettings({
|
|
1123
|
+
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1124
|
+
...body,
|
|
1125
|
+
accessKey: token,
|
|
1126
|
+
},
|
|
1127
|
+
});
|
|
1128
|
+
success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
|
|
1129
|
+
validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
response = await saveWithdrawalSettings({
|
|
1133
|
+
setImpactPublisherWithdrawalSettingsInput: {
|
|
1134
|
+
...body,
|
|
1135
|
+
},
|
|
1136
|
+
});
|
|
1137
|
+
success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
|
|
1138
|
+
validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
|
|
1139
|
+
}
|
|
1140
|
+
if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
|
|
1093
1141
|
throw new Error();
|
|
1094
1142
|
}
|
|
1095
|
-
else if (!
|
|
1096
|
-
.
|
|
1097
|
-
console.error("Validation failed: ", (_c = response
|
|
1098
|
-
.setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
|
|
1099
|
-
const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1143
|
+
else if (!success) {
|
|
1144
|
+
console.error("Validation failed: ", validationErrors);
|
|
1100
1145
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1101
1146
|
return {
|
|
1102
1147
|
...agg,
|
|
@@ -1111,6 +1156,8 @@ function useBankingInfoForm(props) {
|
|
|
1111
1156
|
});
|
|
1112
1157
|
return;
|
|
1113
1158
|
}
|
|
1159
|
+
// Fire form change event
|
|
1160
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1114
1161
|
await refetch();
|
|
1115
1162
|
setStep("/dashboard");
|
|
1116
1163
|
}
|
|
@@ -1122,6 +1169,45 @@ function useBankingInfoForm(props) {
|
|
|
1122
1169
|
setLoading(false);
|
|
1123
1170
|
}
|
|
1124
1171
|
};
|
|
1172
|
+
const onSubmit = async (event) => {
|
|
1173
|
+
let formData = {};
|
|
1174
|
+
let validationErrors = {};
|
|
1175
|
+
const controls = event.target.getFormControls();
|
|
1176
|
+
controls.forEach((control) => {
|
|
1177
|
+
if (!control.name || !control.id)
|
|
1178
|
+
return;
|
|
1179
|
+
const key = control.name;
|
|
1180
|
+
const value = control.value;
|
|
1181
|
+
jsonpointer.set(formData, key, value);
|
|
1182
|
+
if (control.required && !value) {
|
|
1183
|
+
jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1184
|
+
}
|
|
1185
|
+
});
|
|
1186
|
+
setErrors({ inputErrors: validationErrors });
|
|
1187
|
+
if (Object.keys(validationErrors).length) {
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
let token = undefined;
|
|
1191
|
+
if (isPartner) {
|
|
1192
|
+
setShowVerification(true);
|
|
1193
|
+
token = await new Promise((res) => {
|
|
1194
|
+
const cb = (e) => {
|
|
1195
|
+
e.stopPropagation();
|
|
1196
|
+
host.removeEventListener(VERIFICATION_EVENT_KEY, cb);
|
|
1197
|
+
res(e.detail.token);
|
|
1198
|
+
};
|
|
1199
|
+
host.addEventListener(VERIFICATION_EVENT_KEY, cb);
|
|
1200
|
+
});
|
|
1201
|
+
setShowVerification(false);
|
|
1202
|
+
}
|
|
1203
|
+
await runMutation(formData, token);
|
|
1204
|
+
};
|
|
1205
|
+
const onVerification = async (token) => {
|
|
1206
|
+
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
1207
|
+
detail: { token },
|
|
1208
|
+
bubbles: false,
|
|
1209
|
+
}));
|
|
1210
|
+
};
|
|
1125
1211
|
function setPaymentMethodChecked(paymentMethod) {
|
|
1126
1212
|
_setPaymentMethodChecked(paymentMethod);
|
|
1127
1213
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -1146,13 +1232,16 @@ function useBankingInfoForm(props) {
|
|
|
1146
1232
|
setPaymentScheduleChecked,
|
|
1147
1233
|
onBack: () => setStep("/dashboard"),
|
|
1148
1234
|
setCountrySearch,
|
|
1235
|
+
onVerification,
|
|
1236
|
+
onVerificationHide: () => onVerification(null),
|
|
1149
1237
|
},
|
|
1150
1238
|
states: {
|
|
1239
|
+
showVerification,
|
|
1151
1240
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
1152
1241
|
hideSteps: !!context.hideSteps,
|
|
1153
1242
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
1154
1243
|
locale,
|
|
1155
|
-
isPartner
|
|
1244
|
+
isPartner,
|
|
1156
1245
|
feeCap,
|
|
1157
1246
|
paymentMethodFeeLabel,
|
|
1158
1247
|
disabled: loading,
|
|
@@ -1177,6 +1266,7 @@ function useBankingInfoForm(props) {
|
|
|
1177
1266
|
hasPayPal,
|
|
1178
1267
|
bankCountry: formState.bankCountry,
|
|
1179
1268
|
countrySearch,
|
|
1269
|
+
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1180
1270
|
},
|
|
1181
1271
|
refs: {
|
|
1182
1272
|
formRef,
|
|
@@ -1383,7 +1473,16 @@ const BankingInfoForm = class {
|
|
|
1383
1473
|
* @uiName Participant is a partner alert description
|
|
1384
1474
|
* @uiWidget textArea
|
|
1385
1475
|
*/
|
|
1386
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our
|
|
1476
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
1477
|
+
/**
|
|
1478
|
+
* Text for verify email dialog
|
|
1479
|
+
* @uiName Verify email header
|
|
1480
|
+
*/
|
|
1481
|
+
this.verifyEmailHeaderText = "Verify your email";
|
|
1482
|
+
/**
|
|
1483
|
+
* @uiName Verify code widget header text
|
|
1484
|
+
*/
|
|
1485
|
+
this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
1387
1486
|
/**
|
|
1388
1487
|
* Part of the alert displayed at the top of the page.
|
|
1389
1488
|
* @uiName Form submission error message title
|
|
@@ -1395,7 +1494,7 @@ const BankingInfoForm = class {
|
|
|
1395
1494
|
* @uiName Form submission error message description
|
|
1396
1495
|
* @uiWidget textArea
|
|
1397
1496
|
*/
|
|
1398
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
1497
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
1399
1498
|
/**
|
|
1400
1499
|
* Displayed under a field that is missing required information.
|
|
1401
1500
|
* @uiName Empty form field error message
|
|
@@ -1406,6 +1505,10 @@ const BankingInfoForm = class {
|
|
|
1406
1505
|
* @uiName Form field error message
|
|
1407
1506
|
*/
|
|
1408
1507
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
1508
|
+
/**
|
|
1509
|
+
* @uiName Support link text
|
|
1510
|
+
*/
|
|
1511
|
+
this.supportLink = "support team";
|
|
1409
1512
|
/**
|
|
1410
1513
|
* @uiName Continue button label
|
|
1411
1514
|
*/
|
|
@@ -1478,20 +1581,55 @@ const BankingInfoForm = class {
|
|
|
1478
1581
|
bitset: props.states.bitset,
|
|
1479
1582
|
formMap,
|
|
1480
1583
|
});
|
|
1481
|
-
const
|
|
1584
|
+
const style = {
|
|
1585
|
+
Dialog: {
|
|
1586
|
+
position: "relative",
|
|
1587
|
+
"&::part(panel)": {
|
|
1588
|
+
maxWidth: "420px",
|
|
1589
|
+
},
|
|
1590
|
+
"&::part(title)": {
|
|
1591
|
+
padding: "var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1592
|
+
},
|
|
1593
|
+
"&::part(base)": {
|
|
1594
|
+
position: "absolute",
|
|
1595
|
+
},
|
|
1596
|
+
"&::part(close-button)": {
|
|
1597
|
+
marginBottom: "var(--sl-spacing-large)",
|
|
1598
|
+
},
|
|
1599
|
+
"&::part(body)": {
|
|
1600
|
+
padding: "0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1601
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1602
|
+
},
|
|
1603
|
+
"&::part(footer)": {
|
|
1604
|
+
display: "flex",
|
|
1605
|
+
flexDirection: "column",
|
|
1606
|
+
gap: "var(--sl-spacing-small)",
|
|
1607
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
1608
|
+
alignItems: "center",
|
|
1609
|
+
flex: "1",
|
|
1610
|
+
},
|
|
1611
|
+
},
|
|
1482
1612
|
SearchInput: {
|
|
1483
1613
|
padding: "var(--sl-spacing-x-small)",
|
|
1484
1614
|
},
|
|
1485
1615
|
};
|
|
1486
|
-
|
|
1616
|
+
const sheet = createStyleSheet(style);
|
|
1617
|
+
const styleString = sheet.toString();
|
|
1618
|
+
const verifyDescription = intl.formatMessage({
|
|
1619
|
+
id: "codeResentSuccessfully",
|
|
1620
|
+
defaultMessage: props.text.verifyEmailDescriptionText,
|
|
1621
|
+
}, {
|
|
1622
|
+
email: props.states.email,
|
|
1623
|
+
});
|
|
1624
|
+
return (h(Host, null, h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1487
1625
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1488
|
-
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1626
|
+
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1489
1627
|
class: "error-input",
|
|
1490
1628
|
helpText: getValidationErrorMessage({
|
|
1491
1629
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
|
|
1492
1630
|
label: props.text.bankLocationLabel,
|
|
1493
1631
|
}),
|
|
1494
|
-
})), h("sl-input", { class:
|
|
1632
|
+
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1495
1633
|
// Stop shoelace intercepting key presses
|
|
1496
1634
|
e.stopPropagation();
|
|
1497
1635
|
}, "onSl-input": (e) => {
|
|
@@ -1502,21 +1640,21 @@ const BankingInfoForm = class {
|
|
|
1502
1640
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1503
1641
|
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1504
1642
|
paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1505
|
-
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1643
|
+
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1506
1644
|
class: "error-input",
|
|
1507
1645
|
helpText: getValidationErrorMessage({
|
|
1508
1646
|
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1509
1647
|
label: props.text.paymentThresholdSelectLabel,
|
|
1510
1648
|
}),
|
|
1511
1649
|
})), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1512
|
-
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1650
|
+
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1513
1651
|
class: "error-input",
|
|
1514
1652
|
helpText: getValidationErrorMessage({
|
|
1515
1653
|
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1516
1654
|
label: props.text.paymentDaySelectLabel,
|
|
1517
1655
|
}),
|
|
1518
1656
|
})), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1519
|
-
paypalInputSlot: (h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1657
|
+
paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1520
1658
|
class: "error-input",
|
|
1521
1659
|
helpText: getValidationErrorMessage({
|
|
1522
1660
|
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
@@ -1607,6 +1745,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1607
1745
|
hasPayPal: true,
|
|
1608
1746
|
},
|
|
1609
1747
|
callbacks: {
|
|
1748
|
+
onVerificationHide: () => { },
|
|
1610
1749
|
onSubmit: async () => {
|
|
1611
1750
|
setStep("/dashboard");
|
|
1612
1751
|
},
|
|
@@ -1615,6 +1754,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1615
1754
|
setPaymentScheduleChecked,
|
|
1616
1755
|
setCountrySearch: () => { },
|
|
1617
1756
|
onBack: async () => setStep("/dashboard"),
|
|
1757
|
+
onVerification: () => { },
|
|
1618
1758
|
},
|
|
1619
1759
|
text: props.getTextProps(),
|
|
1620
1760
|
refs: {
|
|
@@ -1623,6 +1763,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1623
1763
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1624
1764
|
}
|
|
1625
1765
|
|
|
1766
|
+
const style$1 = {
|
|
1767
|
+
Wrapper: {
|
|
1768
|
+
display: "flex",
|
|
1769
|
+
flexDirection: "column",
|
|
1770
|
+
gap: "var(--sl-spacing-medium)",
|
|
1771
|
+
maxWidth: "550px",
|
|
1772
|
+
},
|
|
1773
|
+
HeaderContainer: {
|
|
1774
|
+
display: "flex",
|
|
1775
|
+
flexDirection: "column",
|
|
1776
|
+
},
|
|
1777
|
+
InputsContainer: {
|
|
1778
|
+
display: "flex",
|
|
1779
|
+
gap: "var(--sl-spacing-medium)",
|
|
1780
|
+
position: "relative",
|
|
1781
|
+
flexDirection: "column",
|
|
1782
|
+
},
|
|
1783
|
+
CodeInputContainer: {
|
|
1784
|
+
display: "flex",
|
|
1785
|
+
gap: "var(--sl-spacing-medium)",
|
|
1786
|
+
},
|
|
1787
|
+
CodeInput: {
|
|
1788
|
+
maxWidth: "40px",
|
|
1789
|
+
"&::part(input)": {
|
|
1790
|
+
margin: "0",
|
|
1791
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1792
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1793
|
+
},
|
|
1794
|
+
},
|
|
1795
|
+
CodeInputError: {
|
|
1796
|
+
...ErrorStyles,
|
|
1797
|
+
maxWidth: "40px",
|
|
1798
|
+
"&::part(input)": {
|
|
1799
|
+
margin: "0",
|
|
1800
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1801
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1802
|
+
},
|
|
1803
|
+
},
|
|
1804
|
+
ErrorText: {
|
|
1805
|
+
color: "var(--sl-color-danger-500)",
|
|
1806
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1807
|
+
margin: "0",
|
|
1808
|
+
},
|
|
1809
|
+
ContinueButton: {
|
|
1810
|
+
width: "100%",
|
|
1811
|
+
maxWidth: "100px",
|
|
1812
|
+
},
|
|
1813
|
+
FooterContainer: {
|
|
1814
|
+
display: "flex",
|
|
1815
|
+
flexDirection: "column",
|
|
1816
|
+
},
|
|
1817
|
+
SkeletonOne: {
|
|
1818
|
+
width: "50%",
|
|
1819
|
+
height: "16px",
|
|
1820
|
+
},
|
|
1821
|
+
SkeletonTwo: {
|
|
1822
|
+
width: "30%",
|
|
1823
|
+
height: "34px",
|
|
1824
|
+
},
|
|
1825
|
+
SkeletonThree: {
|
|
1826
|
+
width: "15%",
|
|
1827
|
+
height: "24px",
|
|
1828
|
+
},
|
|
1829
|
+
};
|
|
1830
|
+
const vanillaStyle$1 = `
|
|
1831
|
+
:host {
|
|
1832
|
+
display: block;
|
|
1833
|
+
}
|
|
1834
|
+
:host([hidden]): {
|
|
1835
|
+
display: none;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
`;
|
|
1840
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1841
|
+
const styleString$1 = sheet$1.toString();
|
|
1842
|
+
function WidgetCodeVerificationView(props) {
|
|
1843
|
+
const { states, refs, callbacks, text } = props;
|
|
1844
|
+
const resendCodeText = intl.formatMessage({
|
|
1845
|
+
id: "resendCodeText",
|
|
1846
|
+
defaultMessage: text.resendCodeText,
|
|
1847
|
+
}, {
|
|
1848
|
+
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1849
|
+
e.preventDefault();
|
|
1850
|
+
callbacks.resendEmail();
|
|
1851
|
+
} }, text.resendCodeLabel)),
|
|
1852
|
+
});
|
|
1853
|
+
const codeResentSuccessfully = intl.formatMessage({
|
|
1854
|
+
id: "codeResentSuccessfully",
|
|
1855
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1856
|
+
}, {
|
|
1857
|
+
email: states.email,
|
|
1858
|
+
});
|
|
1859
|
+
const inputClass = states.verifyFailed
|
|
1860
|
+
? sheet$1.classes.CodeInputError
|
|
1861
|
+
: sheet$1.classes.CodeInput;
|
|
1862
|
+
return (h("div", { part: "sqm-base" },
|
|
1863
|
+
h("style", { type: "text/css" },
|
|
1864
|
+
vanillaStyle$1,
|
|
1865
|
+
styleString$1),
|
|
1866
|
+
h("div", { class: sheet$1.classes.Wrapper },
|
|
1867
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1868
|
+
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1869
|
+
id: `emailHeaderText`,
|
|
1870
|
+
defaultMessage: states.verifyFailed
|
|
1871
|
+
? text.reverifyCodeHeaderText
|
|
1872
|
+
: text.verifyCodeHeaderText,
|
|
1873
|
+
}, { email: states.email }))),
|
|
1874
|
+
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1875
|
+
h("b", null, codeResentSuccessfully))),
|
|
1876
|
+
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1877
|
+
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1878
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1879
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1880
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1881
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1882
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1883
|
+
h("sl-input", { class: inputClass, name: "code" })),
|
|
1884
|
+
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1885
|
+
h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
1886
|
+
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1887
|
+
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1891
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1892
|
+
$user: UserIdInput!
|
|
1893
|
+
$code: String!
|
|
1894
|
+
) {
|
|
1895
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1896
|
+
verifiedEmail
|
|
1897
|
+
accessKey
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
`;
|
|
1901
|
+
function useWidgetCodeVerification(props) {
|
|
1902
|
+
const host = l();
|
|
1903
|
+
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1904
|
+
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1905
|
+
const [emailSent, setEmailSent] = useState(false);
|
|
1906
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
1907
|
+
const [codeRef, setCodeRef] = useState(null);
|
|
1908
|
+
const [validationError, setValidationError] = useState(false);
|
|
1909
|
+
const [emailError, setEmailError] = useState(false);
|
|
1910
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1911
|
+
useEffect(() => {
|
|
1912
|
+
if (!codeRef)
|
|
1913
|
+
return;
|
|
1914
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1915
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1916
|
+
codeElements.forEach((element, idx) => {
|
|
1917
|
+
element.addEventListener("focus", (e) => {
|
|
1918
|
+
e.target.select();
|
|
1919
|
+
});
|
|
1920
|
+
element.addEventListener("keydown", (e) => {
|
|
1921
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1922
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
element.addEventListener("input", (e) => {
|
|
1926
|
+
const input = e.data;
|
|
1927
|
+
if (!input)
|
|
1928
|
+
return;
|
|
1929
|
+
if (idx === codeElements.length - 1) {
|
|
1930
|
+
e.target.value = input.slice(0, 1);
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
if (input.length > 1) {
|
|
1934
|
+
const rest = input.slice(1);
|
|
1935
|
+
e.target.value = input.slice(0, 1);
|
|
1936
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1937
|
+
inputType: "insertFromPaste",
|
|
1938
|
+
data: rest,
|
|
1939
|
+
}));
|
|
1940
|
+
}
|
|
1941
|
+
codeElements[idx + 1].focus();
|
|
1942
|
+
});
|
|
1943
|
+
});
|
|
1944
|
+
}, [codeRef]);
|
|
1945
|
+
const reset = () => {
|
|
1946
|
+
setShowCode(false);
|
|
1947
|
+
setValidationError(false);
|
|
1948
|
+
};
|
|
1949
|
+
const resendEmail = async () => {
|
|
1950
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1951
|
+
if (!initialized)
|
|
1952
|
+
return;
|
|
1953
|
+
const result = await sendEmail();
|
|
1954
|
+
if (!result) {
|
|
1955
|
+
setEmailError(true);
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
if (emailSent)
|
|
1959
|
+
setEmailResent(true);
|
|
1960
|
+
setEmailSent(true);
|
|
1961
|
+
};
|
|
1962
|
+
const submitCode = async () => {
|
|
1963
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1964
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1965
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1966
|
+
setValidationError(true);
|
|
1967
|
+
return;
|
|
1968
|
+
}
|
|
1969
|
+
let code = "";
|
|
1970
|
+
codeElements.forEach((element) => {
|
|
1971
|
+
code = `${code}${element.value}`;
|
|
1972
|
+
});
|
|
1973
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1974
|
+
if (!initialized)
|
|
1975
|
+
return;
|
|
1976
|
+
setValidationError(false);
|
|
1977
|
+
const res = await verifyEmail(code);
|
|
1978
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1979
|
+
props.onVerification(res.accessKey);
|
|
1980
|
+
reset();
|
|
1981
|
+
}
|
|
1982
|
+
else {
|
|
1983
|
+
setValidationError(true);
|
|
1984
|
+
}
|
|
1985
|
+
};
|
|
1986
|
+
useEffect(() => {
|
|
1987
|
+
// Wait for mutations to be determined from user lookup
|
|
1988
|
+
if (!initialized)
|
|
1989
|
+
return;
|
|
1990
|
+
// email should already exist if user has completed email-verification
|
|
1991
|
+
if (!email)
|
|
1992
|
+
resendEmail();
|
|
1993
|
+
else
|
|
1994
|
+
setEmailSent(true);
|
|
1995
|
+
}, [initialized]);
|
|
1996
|
+
return {
|
|
1997
|
+
refs: {
|
|
1998
|
+
codeWrapperRef: setCodeRef,
|
|
1999
|
+
},
|
|
2000
|
+
states: {
|
|
2001
|
+
email: verificationEmail,
|
|
2002
|
+
emailResent,
|
|
2003
|
+
resendError: sendErrors || verifyErrors,
|
|
2004
|
+
initialiseLoading: !initialized,
|
|
2005
|
+
loading: sendLoading || verifyLoading,
|
|
2006
|
+
verifyFailed: !!validationError,
|
|
2007
|
+
},
|
|
2008
|
+
callbacks: {
|
|
2009
|
+
resendEmail,
|
|
2010
|
+
submitCode,
|
|
2011
|
+
},
|
|
2012
|
+
text: props.getTextProps(),
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
const WidgetCodeVerification = class {
|
|
2017
|
+
constructor(hostRef) {
|
|
2018
|
+
registerInstance(this, hostRef);
|
|
2019
|
+
/**
|
|
2020
|
+
* @uiName Verify code widget header text
|
|
2021
|
+
*/
|
|
2022
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2023
|
+
/**
|
|
2024
|
+
* @uiName Reverify code widget header text
|
|
2025
|
+
*/
|
|
2026
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2027
|
+
/**
|
|
2028
|
+
* Text displayed under verify button
|
|
2029
|
+
* @uiName Resend code text
|
|
2030
|
+
*/
|
|
2031
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2032
|
+
/**
|
|
2033
|
+
* The link that appears in the resend code link
|
|
2034
|
+
* @uiName Resend code label
|
|
2035
|
+
*/
|
|
2036
|
+
this.resendCodeLabel = "Resend code";
|
|
2037
|
+
/**
|
|
2038
|
+
* Link text displayed under verify button
|
|
2039
|
+
* @uiName Resend code text
|
|
2040
|
+
*/
|
|
2041
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2042
|
+
/**
|
|
2043
|
+
* Error text displayed under verification input
|
|
2044
|
+
* @uiName Invalid code text
|
|
2045
|
+
*/
|
|
2046
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2047
|
+
/**
|
|
2048
|
+
* @uiName Verify code button text
|
|
2049
|
+
*/
|
|
2050
|
+
this.verifyText = "Verify";
|
|
2051
|
+
/**
|
|
2052
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2053
|
+
* @uiName Network error message
|
|
2054
|
+
*/
|
|
2055
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2056
|
+
h$1(this);
|
|
2057
|
+
}
|
|
2058
|
+
disconnectedCallback() { }
|
|
2059
|
+
getTextProps() {
|
|
2060
|
+
return getProps(this);
|
|
2061
|
+
}
|
|
2062
|
+
render() {
|
|
2063
|
+
const props = isDemo()
|
|
2064
|
+
? useDemoWidgetCodeVerification(this)
|
|
2065
|
+
: useWidgetCodeVerification(this);
|
|
2066
|
+
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2070
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
2071
|
+
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2072
|
+
return cjs({
|
|
2073
|
+
states: {
|
|
2074
|
+
loading: false,
|
|
2075
|
+
email: "test@example.com",
|
|
2076
|
+
emailResent,
|
|
2077
|
+
resendError: false,
|
|
2078
|
+
verifyFailed: false,
|
|
2079
|
+
},
|
|
2080
|
+
refs: {
|
|
2081
|
+
codeWrapperRef: () => { },
|
|
2082
|
+
},
|
|
2083
|
+
callbacks: {
|
|
2084
|
+
resendEmail: async () => setEmailResent(true),
|
|
2085
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2086
|
+
},
|
|
2087
|
+
text: props.getTextProps(),
|
|
2088
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2089
|
+
}
|
|
2090
|
+
|
|
1626
2091
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1627
2092
|
mutation createImpactPublisherTaxDocument(
|
|
1628
2093
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1720,6 +2185,8 @@ function useDocusignForm(props) {
|
|
|
1720
2185
|
// @ts-expect-error: no data type for result
|
|
1721
2186
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1722
2187
|
throw new Error();
|
|
2188
|
+
// Fire form change event
|
|
2189
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1723
2190
|
setShowExitButton(true);
|
|
1724
2191
|
}
|
|
1725
2192
|
catch (e) {
|
|
@@ -1778,7 +2245,7 @@ function getDocumentType(p) {
|
|
|
1778
2245
|
return undefined;
|
|
1779
2246
|
}
|
|
1780
2247
|
|
|
1781
|
-
const style$
|
|
2248
|
+
const style$2 = {
|
|
1782
2249
|
DocusignStatusContainer: {
|
|
1783
2250
|
width: "100%",
|
|
1784
2251
|
minHeight: "600px",
|
|
@@ -1796,14 +2263,22 @@ const style$1 = {
|
|
|
1796
2263
|
MessageContainer: {
|
|
1797
2264
|
maxWidth: "400px",
|
|
1798
2265
|
},
|
|
2266
|
+
IFrameContainer: {
|
|
2267
|
+
"@media screen and (max-width: 440px)": {
|
|
2268
|
+
position: "absolute",
|
|
2269
|
+
width: "100vw",
|
|
2270
|
+
left: "-30px",
|
|
2271
|
+
zIndex: "9999",
|
|
2272
|
+
},
|
|
2273
|
+
},
|
|
1799
2274
|
};
|
|
1800
|
-
const sheet$
|
|
1801
|
-
const styleString$
|
|
2275
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2276
|
+
const styleString$2 = sheet$2.toString();
|
|
1802
2277
|
const DocusignExpiredView = (props) => {
|
|
1803
|
-
const { classes } = sheet$
|
|
2278
|
+
const { classes } = sheet$2;
|
|
1804
2279
|
const { text } = props;
|
|
1805
2280
|
return (h("div", null,
|
|
1806
|
-
h("style", { type: "text/css" }, styleString$
|
|
2281
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1807
2282
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1808
2283
|
h("sl-icon", { style: {
|
|
1809
2284
|
width: "50px",
|
|
@@ -1815,10 +2290,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1815
2290
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1816
2291
|
};
|
|
1817
2292
|
const DocusignErrorView = (props) => {
|
|
1818
|
-
const { classes } = sheet$
|
|
2293
|
+
const { classes } = sheet$2;
|
|
1819
2294
|
const { text } = props;
|
|
1820
2295
|
return (h("div", null,
|
|
1821
|
-
h("style", { type: "text/css" }, styleString$
|
|
2296
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1822
2297
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1823
2298
|
h("sl-icon", { style: {
|
|
1824
2299
|
width: "50px",
|
|
@@ -1830,13 +2305,14 @@ const DocusignErrorView = (props) => {
|
|
|
1830
2305
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1831
2306
|
};
|
|
1832
2307
|
const DocusignLoadingView = () => {
|
|
1833
|
-
const { classes } = sheet$
|
|
2308
|
+
const { classes } = sheet$2;
|
|
1834
2309
|
return (h("div", null,
|
|
1835
|
-
h("style", { type: "text/css" }, styleString$
|
|
2310
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1836
2311
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1837
2312
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1838
2313
|
};
|
|
1839
2314
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2315
|
+
const { classes } = sheet$2;
|
|
1840
2316
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1841
2317
|
const allowedDomains = [
|
|
1842
2318
|
"referralsaasquatch.com",
|
|
@@ -1859,7 +2335,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1859
2335
|
return () => {
|
|
1860
2336
|
window.removeEventListener("message", callback, false);
|
|
1861
2337
|
};
|
|
1862
|
-
}, []);
|
|
2338
|
+
}, [iFrameHeight]);
|
|
1863
2339
|
if (states.urlLoading)
|
|
1864
2340
|
return h(DocusignLoadingView, null);
|
|
1865
2341
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -1867,10 +2343,14 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1867
2343
|
}
|
|
1868
2344
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1869
2345
|
return h(DocusignExpiredView, { text: text });
|
|
1870
|
-
|
|
2346
|
+
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2347
|
+
return (h("div", { style: { height: iFrameHeight } },
|
|
2348
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
2349
|
+
h("div", { class: classes.IFrameContainer },
|
|
2350
|
+
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1871
2351
|
};
|
|
1872
2352
|
|
|
1873
|
-
const style$
|
|
2353
|
+
const style$3 = {
|
|
1874
2354
|
FormWrapper: {
|
|
1875
2355
|
display: "flex",
|
|
1876
2356
|
justifyContent: "flex-start",
|
|
@@ -1983,9 +2463,9 @@ const style$2 = {
|
|
|
1983
2463
|
fontSize: "var(--sl-font-size-medium)",
|
|
1984
2464
|
},
|
|
1985
2465
|
};
|
|
1986
|
-
const sheet$
|
|
1987
|
-
const styleString$
|
|
1988
|
-
const vanillaStyle$
|
|
2466
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2467
|
+
const styleString$3 = sheet$3.toString();
|
|
2468
|
+
const vanillaStyle$2 = `
|
|
1989
2469
|
:host{
|
|
1990
2470
|
display: block;
|
|
1991
2471
|
}
|
|
@@ -2010,11 +2490,11 @@ const vanillaStyle$1 = `
|
|
|
2010
2490
|
const DocusignFormView = (props) => {
|
|
2011
2491
|
var _a;
|
|
2012
2492
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2013
|
-
const { classes } = sheet$
|
|
2493
|
+
const { classes } = sheet$3;
|
|
2014
2494
|
return (h("div", { class: classes.Container },
|
|
2015
2495
|
h("style", { type: "text/css" },
|
|
2016
|
-
styleString$
|
|
2017
|
-
vanillaStyle$
|
|
2496
|
+
styleString$3,
|
|
2497
|
+
vanillaStyle$2),
|
|
2018
2498
|
h("div", { class: classes.TextContainer },
|
|
2019
2499
|
h("div", null,
|
|
2020
2500
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2024,16 +2504,26 @@ const DocusignFormView = (props) => {
|
|
|
2024
2504
|
h("h3", null, text.taxForm),
|
|
2025
2505
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2026
2506
|
states.loadingError && (h("div", null,
|
|
2027
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2507
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2028
2508
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2029
2509
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2030
2510
|
h("br", null),
|
|
2031
|
-
|
|
2032
|
-
|
|
2511
|
+
intl.formatMessage({
|
|
2512
|
+
id: "loadingErrorAlertDescription",
|
|
2513
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2514
|
+
}, {
|
|
2515
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2516
|
+
})))),
|
|
2517
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2033
2518
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2034
2519
|
h("strong", null, text.error.generalTitle),
|
|
2035
2520
|
h("br", null),
|
|
2036
|
-
|
|
2521
|
+
intl.formatMessage({
|
|
2522
|
+
id: "generalDescription",
|
|
2523
|
+
defaultMessage: text.error.generalDescription,
|
|
2524
|
+
}, {
|
|
2525
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2526
|
+
}))),
|
|
2037
2527
|
h("div", null,
|
|
2038
2528
|
h("div", null,
|
|
2039
2529
|
h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
@@ -2072,6 +2562,10 @@ const DocusignForm = class {
|
|
|
2072
2562
|
* @uiWidget textArea
|
|
2073
2563
|
*/
|
|
2074
2564
|
this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
2565
|
+
/**
|
|
2566
|
+
* @uiName Support link text
|
|
2567
|
+
*/
|
|
2568
|
+
this.supportLink = "support team";
|
|
2075
2569
|
/**
|
|
2076
2570
|
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
2077
2571
|
* @uiName W-8 BEN tax form description
|
|
@@ -2115,7 +2609,7 @@ const DocusignForm = class {
|
|
|
2115
2609
|
* @uiName Docusign form error message
|
|
2116
2610
|
* @uiWidget textArea
|
|
2117
2611
|
*/
|
|
2118
|
-
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
2612
|
+
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
2119
2613
|
/**
|
|
2120
2614
|
* @uiName Refresh page button label
|
|
2121
2615
|
*/
|
|
@@ -2131,7 +2625,7 @@ const DocusignForm = class {
|
|
|
2131
2625
|
* @uiName Form submission error message description
|
|
2132
2626
|
* @uiWidget textArea
|
|
2133
2627
|
*/
|
|
2134
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
2628
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2135
2629
|
/**
|
|
2136
2630
|
* Part of the alert displayed at the top of the page.
|
|
2137
2631
|
* @uiName Page load error message title
|
|
@@ -2143,7 +2637,7 @@ const DocusignForm = class {
|
|
|
2143
2637
|
* @uiName Page load error message description
|
|
2144
2638
|
* @uiWidget textArea
|
|
2145
2639
|
*/
|
|
2146
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
2640
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2147
2641
|
/**
|
|
2148
2642
|
* Displayed at the top of the page on all set up steps.
|
|
2149
2643
|
* @uiName Page description
|
|
@@ -2240,7 +2734,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2240
2734
|
} }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2241
2735
|
};
|
|
2242
2736
|
|
|
2243
|
-
const style$
|
|
2737
|
+
const style$4 = {
|
|
2244
2738
|
FormWrapper: {
|
|
2245
2739
|
display: "flex",
|
|
2246
2740
|
justifyContent: "flex-start",
|
|
@@ -2328,11 +2822,9 @@ const style$3 = {
|
|
|
2328
2822
|
border: "none",
|
|
2329
2823
|
},
|
|
2330
2824
|
"&::part(message)": {
|
|
2331
|
-
display: "flex",
|
|
2332
2825
|
alignItems: "center",
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
height: "max-content",
|
|
2826
|
+
padding: "var(--sl-spacing-small)",
|
|
2827
|
+
whiteSpace: "nowrap",
|
|
2336
2828
|
},
|
|
2337
2829
|
"& sl-icon::part(base)": {
|
|
2338
2830
|
color: "var(--sl-color-yellow-500)",
|
|
@@ -2348,9 +2840,9 @@ const style$3 = {
|
|
|
2348
2840
|
marginBottom: "var(--sl-spacing-small)",
|
|
2349
2841
|
},
|
|
2350
2842
|
};
|
|
2351
|
-
const sheet$
|
|
2352
|
-
const styleString$
|
|
2353
|
-
const vanillaStyle$
|
|
2843
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2844
|
+
const styleString$4 = sheet$4.toString();
|
|
2845
|
+
const vanillaStyle$3 = `
|
|
2354
2846
|
:host{
|
|
2355
2847
|
display: block;
|
|
2356
2848
|
}
|
|
@@ -2369,11 +2861,11 @@ const vanillaStyle$2 = `
|
|
|
2369
2861
|
const IndirectTaxFormView = (props) => {
|
|
2370
2862
|
var _a;
|
|
2371
2863
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2372
|
-
const { classes } = sheet$
|
|
2864
|
+
const { classes } = sheet$4;
|
|
2373
2865
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2374
2866
|
h("style", { type: "text/css" },
|
|
2375
|
-
styleString$
|
|
2376
|
-
vanillaStyle$
|
|
2867
|
+
styleString$4,
|
|
2868
|
+
vanillaStyle$3),
|
|
2377
2869
|
h("div", { class: classes.TextContainer },
|
|
2378
2870
|
h("div", null,
|
|
2379
2871
|
!states.hideSteps && (h("p", null,
|
|
@@ -2386,21 +2878,36 @@ const IndirectTaxFormView = (props) => {
|
|
|
2386
2878
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2387
2879
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2388
2880
|
states.loadingError && (h("div", null,
|
|
2389
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2881
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2390
2882
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2391
2883
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2392
2884
|
h("br", null),
|
|
2393
|
-
|
|
2394
|
-
|
|
2885
|
+
intl.formatMessage({
|
|
2886
|
+
id: "loadingErrorAlertDescription",
|
|
2887
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2888
|
+
}, {
|
|
2889
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2890
|
+
})))),
|
|
2891
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
2395
2892
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2396
2893
|
h("strong", null, text.error.generalTitle),
|
|
2397
2894
|
h("br", null),
|
|
2398
|
-
|
|
2399
|
-
|
|
2895
|
+
intl.formatMessage({
|
|
2896
|
+
id: "generalDescription",
|
|
2897
|
+
defaultMessage: text.error.generalDescription,
|
|
2898
|
+
}, {
|
|
2899
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2900
|
+
}))),
|
|
2901
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2400
2902
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2401
2903
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2402
2904
|
h("br", null),
|
|
2403
|
-
|
|
2905
|
+
intl.formatMessage({
|
|
2906
|
+
id: "isPartnerAlertDescription",
|
|
2907
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
2908
|
+
}, {
|
|
2909
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2910
|
+
}))),
|
|
2404
2911
|
h("div", null,
|
|
2405
2912
|
h("h4", null, text.indirectTaxDetails))),
|
|
2406
2913
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
@@ -2417,7 +2924,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2417
2924
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2418
2925
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2419
2926
|
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2420
|
-
|
|
2927
|
+
intl.formatMessage({
|
|
2928
|
+
id: "cannotChangeInfoAlert",
|
|
2929
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2930
|
+
}, {
|
|
2931
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2932
|
+
})),
|
|
2421
2933
|
h("div", { class: classes.BtnContainer },
|
|
2422
2934
|
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2423
2935
|
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -2587,6 +3099,8 @@ function useIndirectTaxForm(props) {
|
|
|
2587
3099
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2588
3100
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2589
3101
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3102
|
+
// Fire form change event
|
|
3103
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2590
3104
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2591
3105
|
!hasValidCurrentDocument) {
|
|
2592
3106
|
// Go to docusign form
|
|
@@ -2745,7 +3259,7 @@ const IndirectTaxForm = class {
|
|
|
2745
3259
|
* @uiName Submission confirmation alert
|
|
2746
3260
|
* @uiWidget textArea
|
|
2747
3261
|
*/
|
|
2748
|
-
this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
3262
|
+
this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
2749
3263
|
/**
|
|
2750
3264
|
* @uiName Missing indirect tax number error message
|
|
2751
3265
|
*/
|
|
@@ -2771,11 +3285,15 @@ const IndirectTaxForm = class {
|
|
|
2771
3285
|
* @uiName Participant is a partner alert description
|
|
2772
3286
|
* @uiWidget textArea
|
|
2773
3287
|
*/
|
|
2774
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
3288
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
2775
3289
|
/**
|
|
2776
3290
|
* @uiName Continue button label
|
|
2777
3291
|
*/
|
|
2778
3292
|
this.continueButton = "Continue";
|
|
3293
|
+
/**
|
|
3294
|
+
* @uiName Support link text
|
|
3295
|
+
*/
|
|
3296
|
+
this.supportLink = "support team";
|
|
2779
3297
|
/**
|
|
2780
3298
|
* Part of the alert displayed at the top of the page.
|
|
2781
3299
|
* @uiName Form submission error message title
|
|
@@ -2787,7 +3305,7 @@ const IndirectTaxForm = class {
|
|
|
2787
3305
|
* @uiName Form submission error message description
|
|
2788
3306
|
* @uiWidget textArea
|
|
2789
3307
|
*/
|
|
2790
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
3308
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2791
3309
|
/**
|
|
2792
3310
|
* Part of the alert displayed at the top of the page.
|
|
2793
3311
|
* @uiName Page load error message title
|
|
@@ -2799,7 +3317,7 @@ const IndirectTaxForm = class {
|
|
|
2799
3317
|
* @uiName Page load error message description
|
|
2800
3318
|
* @uiWidget textArea
|
|
2801
3319
|
*/
|
|
2802
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
3320
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2803
3321
|
/**
|
|
2804
3322
|
* Displayed at the top of the page on all set up steps.
|
|
2805
3323
|
* @uiName Page description
|
|
@@ -3355,7 +3873,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3355
3873
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3356
3874
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3357
3875
|
|
|
3358
|
-
const style$
|
|
3876
|
+
const style$5 = {
|
|
3359
3877
|
CardContainer: {
|
|
3360
3878
|
display: "grid",
|
|
3361
3879
|
gridTemplateColumns: "1fr",
|
|
@@ -3489,7 +4007,7 @@ const style$4 = {
|
|
|
3489
4007
|
},
|
|
3490
4008
|
};
|
|
3491
4009
|
function PayoutDetailsCardView(props) {
|
|
3492
|
-
const sheet = createStyleSheet(style$
|
|
4010
|
+
const sheet = createStyleSheet(style$5);
|
|
3493
4011
|
const styleString = sheet.toString();
|
|
3494
4012
|
const { classes } = sheet;
|
|
3495
4013
|
const { states, text } = props;
|
|
@@ -3519,11 +4037,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3519
4037
|
});
|
|
3520
4038
|
return (h("div", { class: classes.Container },
|
|
3521
4039
|
h("style", { type: "text/css" }, styleString),
|
|
3522
|
-
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3523
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3524
|
-
h("div", { class: classes.AlertContent },
|
|
3525
|
-
h("b", null, text.error.errorTitleText),
|
|
3526
|
-
text.error.errorDescriptionText))),
|
|
3527
4040
|
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
3528
4041
|
h("div", { class: classes.StatusContainer },
|
|
3529
4042
|
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3619,16 +4132,6 @@ const PayoutDetailsCard = class {
|
|
|
3619
4132
|
* @uiName Bank account field label
|
|
3620
4133
|
*/
|
|
3621
4134
|
this.accountText = "Account";
|
|
3622
|
-
/**
|
|
3623
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3624
|
-
* @uiName Payout error message title
|
|
3625
|
-
*/
|
|
3626
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3627
|
-
/**
|
|
3628
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3629
|
-
* @uiName Payout error message description
|
|
3630
|
-
*/
|
|
3631
|
-
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.";
|
|
3632
4135
|
/**
|
|
3633
4136
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3634
4137
|
* @uiName Payout missing information subtext
|
|
@@ -3641,10 +4144,6 @@ const PayoutDetailsCard = class {
|
|
|
3641
4144
|
const props = getProps(this);
|
|
3642
4145
|
return {
|
|
3643
4146
|
...props,
|
|
3644
|
-
error: {
|
|
3645
|
-
errorTitleText: this.errorTitleText,
|
|
3646
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3647
|
-
},
|
|
3648
4147
|
};
|
|
3649
4148
|
}
|
|
3650
4149
|
render() {
|
|
@@ -3701,27 +4200,9 @@ const TableRow = class {
|
|
|
3701
4200
|
}
|
|
3702
4201
|
};
|
|
3703
4202
|
|
|
3704
|
-
/**
|
|
3705
|
-
* Util function for getting just the props with a certain prefix.
|
|
3706
|
-
* @param props Text props on stencil component
|
|
3707
|
-
* @param prefix Prefix denoting which group the text prop belongs to
|
|
3708
|
-
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
3709
|
-
*/
|
|
3710
|
-
function extractProps(props, prefix) {
|
|
3711
|
-
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
3712
|
-
const formattedProps = keys.reduce((prev, k) => {
|
|
3713
|
-
const key = k.replace(prefix, "");
|
|
3714
|
-
return {
|
|
3715
|
-
...prev,
|
|
3716
|
-
[key]: props[k],
|
|
3717
|
-
};
|
|
3718
|
-
}, {});
|
|
3719
|
-
return formattedProps;
|
|
3720
|
-
}
|
|
3721
|
-
|
|
3722
4203
|
function getCurrentStep(user) {
|
|
3723
|
-
var _a;
|
|
3724
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
|
|
4204
|
+
var _a, _b;
|
|
4205
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
3725
4206
|
return "/1";
|
|
3726
4207
|
}
|
|
3727
4208
|
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
@@ -3976,13 +4457,15 @@ const TaxAndCashMonolith = class {
|
|
|
3976
4457
|
* @uiName Terms and conditions link
|
|
3977
4458
|
* @uiGroup Step 1 Properties
|
|
3978
4459
|
*/
|
|
3979
|
-
this.step1_termsAndConditionsLink = "/
|
|
4460
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
3980
4461
|
/**
|
|
3981
4462
|
* Placeholder text displayed in the currency search dropdown
|
|
3982
4463
|
* @uiName Currency field placeholder text
|
|
3983
4464
|
* @uiGroup Step 1 Properties
|
|
3984
4465
|
*/
|
|
3985
4466
|
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4467
|
+
/**
|
|
4468
|
+
|
|
3986
4469
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
3987
4470
|
STEP 2 PROPS:
|
|
3988
4471
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4085,7 +4568,7 @@ const TaxAndCashMonolith = class {
|
|
|
4085
4568
|
* @uiGroup Step 2 Properties
|
|
4086
4569
|
* @uiWidget textArea
|
|
4087
4570
|
*/
|
|
4088
|
-
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
4571
|
+
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
4089
4572
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4090
4573
|
STEP 3 PROPS:
|
|
4091
4574
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4158,7 +4641,7 @@ const TaxAndCashMonolith = class {
|
|
|
4158
4641
|
* @uiGroup Step 3 Properties
|
|
4159
4642
|
* @uiWidget textArea
|
|
4160
4643
|
*/
|
|
4161
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
4644
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4162
4645
|
/**
|
|
4163
4646
|
* @uiName Refresh page button label
|
|
4164
4647
|
* @uiGroup Step 3 Properties
|
|
@@ -4383,6 +4866,16 @@ const TaxAndCashMonolith = class {
|
|
|
4383
4866
|
* @uiGroup Step 4 Properties
|
|
4384
4867
|
*/
|
|
4385
4868
|
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4869
|
+
/**
|
|
4870
|
+
* @uiName Text for verify email dialog
|
|
4871
|
+
* @uiGroup Step 4 Properties
|
|
4872
|
+
*/
|
|
4873
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4874
|
+
/**
|
|
4875
|
+
* @uiName Verify code widget header text
|
|
4876
|
+
* @uiGroup Step 4 Properties
|
|
4877
|
+
*/
|
|
4878
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4386
4879
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4387
4880
|
DASHBOARD PROPS:
|
|
4388
4881
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4520,7 +5013,7 @@ const TaxAndCashMonolith = class {
|
|
|
4520
5013
|
* @uiGroup Dashboard Properties
|
|
4521
5014
|
* @uiWidget textArea
|
|
4522
5015
|
*/
|
|
4523
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact
|
|
5016
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4524
5017
|
/**
|
|
4525
5018
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4526
5019
|
*
|
|
@@ -4543,7 +5036,7 @@ const TaxAndCashMonolith = class {
|
|
|
4543
5036
|
* @uiGroup Dashboard Properties
|
|
4544
5037
|
* @uiWidget textArea
|
|
4545
5038
|
*/
|
|
4546
|
-
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
5039
|
+
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
4547
5040
|
/**
|
|
4548
5041
|
* Displayed to participants registered in Quebec, Canada.
|
|
4549
5042
|
* @uiName QST indirect tax details
|
|
@@ -4615,14 +5108,14 @@ const TaxAndCashMonolith = class {
|
|
|
4615
5108
|
* @uiGroup Dashboard Properties
|
|
4616
5109
|
* @uiWidget textArea
|
|
4617
5110
|
*/
|
|
4618
|
-
this.
|
|
5111
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
4619
5112
|
/**
|
|
4620
5113
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4621
5114
|
* @uiName Payout error message description
|
|
4622
5115
|
* @uiGroup Dashboard Properties
|
|
4623
5116
|
* @uiWidget textArea
|
|
4624
5117
|
*/
|
|
4625
|
-
this.
|
|
5118
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
4626
5119
|
/**
|
|
4627
5120
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4628
5121
|
* @uiName Payout missing information subtext
|
|
@@ -4670,6 +5163,63 @@ const TaxAndCashMonolith = class {
|
|
|
4670
5163
|
* @uiWidget textArea
|
|
4671
5164
|
*/
|
|
4672
5165
|
this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
5166
|
+
/**
|
|
5167
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5168
|
+
* @uiName Verification required alert message title
|
|
5169
|
+
* @uiGroup Dashboard Properties
|
|
5170
|
+
* @uiWidget textArea
|
|
5171
|
+
*/
|
|
5172
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5173
|
+
/**
|
|
5174
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5175
|
+
* @uiName Verification required alert message description
|
|
5176
|
+
* @uiGroup Dashboard Properties
|
|
5177
|
+
* @uiWidget textArea
|
|
5178
|
+
*/
|
|
5179
|
+
this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
5180
|
+
/**
|
|
5181
|
+
* @uiName Verification required internal alert header
|
|
5182
|
+
* @uiGroup Dashboard Properties
|
|
5183
|
+
* @uiWidget textArea
|
|
5184
|
+
*/
|
|
5185
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5186
|
+
/**
|
|
5187
|
+
* @uiName Verification required internal alert description
|
|
5188
|
+
* @uiGroup Dashboard Properties
|
|
5189
|
+
* @uiWidget textArea
|
|
5190
|
+
*/
|
|
5191
|
+
this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
5192
|
+
/**
|
|
5193
|
+
* @uiName Verification review internal alert header
|
|
5194
|
+
* @uiGroup Dashboard Properties
|
|
5195
|
+
* @uiWidget textArea
|
|
5196
|
+
*/
|
|
5197
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5198
|
+
/**
|
|
5199
|
+
* @uiName Verification review internal alert description
|
|
5200
|
+
* @uiGroup Dashboard Properties
|
|
5201
|
+
* @uiWidget textArea
|
|
5202
|
+
*/
|
|
5203
|
+
this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
5204
|
+
/**
|
|
5205
|
+
* @uiName Verification failed internal alert header
|
|
5206
|
+
* @uiGroup Dashboard Properties
|
|
5207
|
+
* @uiWidget textArea
|
|
5208
|
+
*/
|
|
5209
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5210
|
+
/**
|
|
5211
|
+
* @uiName Verification failed internal alert description
|
|
5212
|
+
* @uiGroup Dashboard Properties
|
|
5213
|
+
* @uiWidget textArea
|
|
5214
|
+
*/
|
|
5215
|
+
this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
5216
|
+
/**
|
|
5217
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5218
|
+
* @uiName Verification required alert button text
|
|
5219
|
+
* @uiGroup Dashboard Properties
|
|
5220
|
+
* @uiWidget textArea
|
|
5221
|
+
*/
|
|
5222
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
4673
5223
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4674
5224
|
GENERAL PROPS:
|
|
4675
5225
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4691,7 +5241,7 @@ const TaxAndCashMonolith = class {
|
|
|
4691
5241
|
* @uiGroup General Form Properties
|
|
4692
5242
|
* @uiWidget textArea
|
|
4693
5243
|
*/
|
|
4694
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
5244
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
4695
5245
|
/**
|
|
4696
5246
|
* Displayed under a field that is missing required information.
|
|
4697
5247
|
* @uiName Empty form field error message
|
|
@@ -4738,7 +5288,7 @@ const TaxAndCashMonolith = class {
|
|
|
4738
5288
|
* @uiGroup General Form Properties
|
|
4739
5289
|
* @uiWidget textArea
|
|
4740
5290
|
*/
|
|
4741
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
5291
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
4742
5292
|
/**
|
|
4743
5293
|
* Placeholder text displayed in the country search dropdown
|
|
4744
5294
|
* @uiName Country field placeholder text
|
|
@@ -4758,13 +5308,19 @@ const TaxAndCashMonolith = class {
|
|
|
4758
5308
|
* @uiGroup General Form Properties
|
|
4759
5309
|
* @uiWidget textArea
|
|
4760
5310
|
*/
|
|
4761
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
5311
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
4762
5312
|
/**
|
|
4763
5313
|
* Displayed at the top of the page on all set up steps.
|
|
4764
5314
|
* @uiName Page description
|
|
4765
5315
|
* @uiGroup General Form Properties
|
|
4766
5316
|
*/
|
|
4767
5317
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5318
|
+
/**
|
|
5319
|
+
* Link text for contacting support team
|
|
5320
|
+
* @uiName Suport link text
|
|
5321
|
+
* @uiGroup General Form Properties
|
|
5322
|
+
*/
|
|
5323
|
+
this.supportLink = "support team";
|
|
4768
5324
|
h$1(this);
|
|
4769
5325
|
}
|
|
4770
5326
|
disconnectedCallback() { }
|
|
@@ -4788,6 +5344,7 @@ const TaxAndCashMonolith = class {
|
|
|
4788
5344
|
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
4789
5345
|
searchForCountryText: props.searchForCountryText,
|
|
4790
5346
|
formStep: props.formStep,
|
|
5347
|
+
supportLink: props.supportLink,
|
|
4791
5348
|
};
|
|
4792
5349
|
}
|
|
4793
5350
|
render() {
|
|
@@ -4830,12 +5387,47 @@ function useDemoTaxAndCash(props) {
|
|
|
4830
5387
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4831
5388
|
}
|
|
4832
5389
|
|
|
4833
|
-
const style$
|
|
4834
|
-
|
|
5390
|
+
const style$6 = {
|
|
5391
|
+
ErrorAlertContainer: {
|
|
4835
5392
|
"&::part(base)": {
|
|
4836
5393
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4837
5394
|
borderTop: "none",
|
|
4838
5395
|
},
|
|
5396
|
+
"& sl-icon::part(base)": {
|
|
5397
|
+
color: "var(--sl-color-danger-500)",
|
|
5398
|
+
},
|
|
5399
|
+
},
|
|
5400
|
+
WarningAlertContainer: {
|
|
5401
|
+
"&::part(base)": {
|
|
5402
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5403
|
+
borderTop: "none",
|
|
5404
|
+
maxWidth: "600px",
|
|
5405
|
+
},
|
|
5406
|
+
"& sl-icon::part(base)": {
|
|
5407
|
+
color: "var(--sl-color-warning-500)",
|
|
5408
|
+
},
|
|
5409
|
+
},
|
|
5410
|
+
WarningHoldAlertContainer: {
|
|
5411
|
+
marginLeft: "-20px",
|
|
5412
|
+
"&::part(base)": {
|
|
5413
|
+
maxWidth: "850px",
|
|
5414
|
+
border: "none",
|
|
5415
|
+
backgroundColor: "transparent",
|
|
5416
|
+
},
|
|
5417
|
+
"& sl-icon::part(base)": {
|
|
5418
|
+
color: "var(--sl-color-warning-500)",
|
|
5419
|
+
},
|
|
5420
|
+
},
|
|
5421
|
+
ErrorHoldAlertContainer: {
|
|
5422
|
+
marginLeft: "-20px",
|
|
5423
|
+
"&::part(base)": {
|
|
5424
|
+
maxWidth: "850px",
|
|
5425
|
+
border: "none",
|
|
5426
|
+
backgroundColor: "transparent",
|
|
5427
|
+
},
|
|
5428
|
+
"& sl-icon::part(base)": {
|
|
5429
|
+
color: "var(--sl-color-danger-500)",
|
|
5430
|
+
},
|
|
4839
5431
|
},
|
|
4840
5432
|
ExpiringSoonAlertContainer: {
|
|
4841
5433
|
"&::part(base)": {
|
|
@@ -4956,6 +5548,7 @@ const style$5 = {
|
|
|
4956
5548
|
PageDescriptionText: {
|
|
4957
5549
|
color: "var(--sl-color-neutral-500)",
|
|
4958
5550
|
fontSize: "var(--sl-font-size-medium)",
|
|
5551
|
+
marginTop: "0",
|
|
4959
5552
|
},
|
|
4960
5553
|
Dialog: {
|
|
4961
5554
|
"&::part(panel)": {
|
|
@@ -4985,13 +5578,86 @@ const style$5 = {
|
|
|
4985
5578
|
},
|
|
4986
5579
|
DialogButton: { margin: "auto", width: "100%" },
|
|
4987
5580
|
};
|
|
4988
|
-
const sheet$
|
|
4989
|
-
const styleString$
|
|
5581
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5582
|
+
const styleString$5 = sheet$5.toString();
|
|
4990
5583
|
const TaxAndCashDashboardView = (props) => {
|
|
4991
|
-
var _a;
|
|
5584
|
+
var _a, _b, _c, _d;
|
|
4992
5585
|
const { states, text, callbacks, slots } = props;
|
|
5586
|
+
function getAlert(status) {
|
|
5587
|
+
switch (status) {
|
|
5588
|
+
case "VERIFICATION:REQUIRED":
|
|
5589
|
+
return {
|
|
5590
|
+
header: text.verificationRequiredHeader,
|
|
5591
|
+
description: intl.formatMessage({
|
|
5592
|
+
id: "verificationRequiredDescription",
|
|
5593
|
+
defaultMessage: text.verificationRequiredDescription,
|
|
5594
|
+
}, {
|
|
5595
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5596
|
+
}),
|
|
5597
|
+
buttonText: text.verificationRequiredButtonText,
|
|
5598
|
+
alertType: "warning",
|
|
5599
|
+
icon: "exclamation-triangle",
|
|
5600
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5601
|
+
};
|
|
5602
|
+
case "VERIFICATION:INTERNAL":
|
|
5603
|
+
return {
|
|
5604
|
+
header: text.verificationRequiredInternalHeader,
|
|
5605
|
+
description: intl.formatMessage({
|
|
5606
|
+
id: "verificationRequiredInternalDescription",
|
|
5607
|
+
defaultMessage: text.verificationRequiredInternalDescription,
|
|
5608
|
+
}, {
|
|
5609
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5610
|
+
}),
|
|
5611
|
+
alertType: "warning",
|
|
5612
|
+
icon: "exclamation-triangle",
|
|
5613
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5614
|
+
};
|
|
5615
|
+
case "VERIFICATION:REVIEW":
|
|
5616
|
+
return {
|
|
5617
|
+
header: text.verificationReviewInternalHeader,
|
|
5618
|
+
description: intl.formatMessage({
|
|
5619
|
+
id: "verificationReviewInternalDescription",
|
|
5620
|
+
defaultMessage: text.verificationReviewInternalDescription,
|
|
5621
|
+
}, {
|
|
5622
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5623
|
+
}),
|
|
5624
|
+
alertType: "warning",
|
|
5625
|
+
icon: "exclamation-triangle",
|
|
5626
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5627
|
+
};
|
|
5628
|
+
case "VERIFICATION:FAILED":
|
|
5629
|
+
return {
|
|
5630
|
+
header: text.verificationFailedInternalHeader,
|
|
5631
|
+
description: intl.formatMessage({
|
|
5632
|
+
id: "verificationFailedInternalDescription",
|
|
5633
|
+
defaultMessage: text.verificationFailedInternalDescription,
|
|
5634
|
+
}, {
|
|
5635
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5636
|
+
}),
|
|
5637
|
+
alertType: "critical",
|
|
5638
|
+
icon: "exclamation-octagon",
|
|
5639
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5640
|
+
};
|
|
5641
|
+
case "HOLD":
|
|
5642
|
+
return {
|
|
5643
|
+
header: text.payoutHoldAlertHeader,
|
|
5644
|
+
description: intl.formatMessage({
|
|
5645
|
+
id: "payoutHoldAlertDescription",
|
|
5646
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5647
|
+
}, {
|
|
5648
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5649
|
+
}),
|
|
5650
|
+
buttonText: null,
|
|
5651
|
+
alertType: "warning",
|
|
5652
|
+
icon: "exclamation-triangle",
|
|
5653
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5654
|
+
};
|
|
5655
|
+
default:
|
|
5656
|
+
return;
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
4993
5659
|
const statusMap = {
|
|
4994
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
5660
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
4995
5661
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4996
5662
|
h("p", null, intl.formatMessage({
|
|
4997
5663
|
id: `badgeTextAwaitingReview`,
|
|
@@ -4999,7 +5665,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4999
5665
|
}, {
|
|
5000
5666
|
dateSubmitted: states.dateSubmitted,
|
|
5001
5667
|
})))),
|
|
5002
|
-
ACTIVE: (h("div", { class: sheet$
|
|
5668
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5003
5669
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5004
5670
|
h("p", null, intl.formatMessage({
|
|
5005
5671
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5009,12 +5675,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5009
5675
|
}, {
|
|
5010
5676
|
dateSubmitted: states.dateSubmitted,
|
|
5011
5677
|
})))),
|
|
5012
|
-
INACTIVE: (h("div", { class: sheet$
|
|
5678
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5013
5679
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5014
5680
|
h("p", null, text.invalidForm))),
|
|
5015
5681
|
};
|
|
5016
5682
|
const alertMap = {
|
|
5017
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5683
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5018
5684
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5019
5685
|
h("strong", null, intl.formatMessage({
|
|
5020
5686
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5064,56 +5730,76 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5064
5730
|
};
|
|
5065
5731
|
return (h("div", null,
|
|
5066
5732
|
h("div", null,
|
|
5067
|
-
h("style", { type: "text/css" }, styleString$
|
|
5733
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
5068
5734
|
states.loadingError && (h("div", null,
|
|
5069
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5735
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5070
5736
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5071
5737
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5072
5738
|
h("br", null),
|
|
5073
|
-
|
|
5074
|
-
|
|
5739
|
+
intl.formatMessage({
|
|
5740
|
+
id: "loadingErrorAlertDescription",
|
|
5741
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5742
|
+
}, {
|
|
5743
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5744
|
+
})))),
|
|
5745
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5075
5746
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5076
5747
|
h("strong", null, text.error.generalTitle),
|
|
5077
5748
|
h("br", null),
|
|
5078
|
-
|
|
5079
|
-
|
|
5749
|
+
intl.formatMessage({
|
|
5750
|
+
id: "generalDescription",
|
|
5751
|
+
defaultMessage: text.error.generalDescription,
|
|
5752
|
+
}, {
|
|
5753
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5754
|
+
}))),
|
|
5755
|
+
getAlert(states.payoutStatus) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
|
|
5756
|
+
h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
5757
|
+
h("strong", null, getAlert(states.payoutStatus).header),
|
|
5758
|
+
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5759
|
+
getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
5760
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5080
5761
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5081
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5082
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5762
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5763
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5083
5764
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5084
5765
|
h("div", null,
|
|
5085
|
-
h("h3",
|
|
5086
|
-
h("p", { class: sheet$
|
|
5087
|
-
h("div", { class: sheet$
|
|
5766
|
+
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5767
|
+
h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5768
|
+
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
5088
5769
|
slots.payoutDetailsCardSlot,
|
|
5089
|
-
!states.loading && (h("p", { class: sheet$
|
|
5090
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5091
|
-
h("div", { class: sheet$
|
|
5092
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
5093
|
-
h("sl-skeleton", { class: sheet$
|
|
5094
|
-
h("sl-skeleton", { class: sheet$
|
|
5095
|
-
h("h3", { class: sheet$
|
|
5096
|
-
h("p", { class: sheet$
|
|
5097
|
-
h("span", { class: sheet$
|
|
5098
|
-
h("div", { class: sheet$
|
|
5770
|
+
!states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5771
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5772
|
+
h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5773
|
+
h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5774
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5775
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
|
|
5776
|
+
h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5777
|
+
h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
|
|
5778
|
+
h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5779
|
+
h("div", { class: sheet$5.classes.StatusContainer },
|
|
5099
5780
|
h("h3", null, intl.formatMessage({
|
|
5100
5781
|
id: "section-subheader",
|
|
5101
5782
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5102
5783
|
}, {
|
|
5103
5784
|
documentType: states.documentTypeString,
|
|
5104
5785
|
})),
|
|
5105
|
-
h("span", { class: sheet$
|
|
5106
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5107
|
-
h("div", { class: sheet$
|
|
5108
|
-
h("sl-skeleton", { class: sheet$
|
|
5109
|
-
h("sl-skeleton", { class: sheet$
|
|
5110
|
-
h("h3", { class: sheet$
|
|
5786
|
+
h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5787
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5788
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5789
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5790
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
5791
|
+
h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
5111
5792
|
text.indirectTaxInfoSectionHeader,
|
|
5112
|
-
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5113
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
5114
|
-
h("div", { class: sheet$
|
|
5115
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
5116
|
-
|
|
5793
|
+
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5794
|
+
h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5795
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5796
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
5797
|
+
id: "notRegisteredForTax",
|
|
5798
|
+
defaultMessage: text.notRegisteredForTax,
|
|
5799
|
+
}, {
|
|
5800
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5801
|
+
}))) : (getIndirectTaxRegisteredIn())),
|
|
5802
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
5117
5803
|
h("span", null, intl.formatMessage({
|
|
5118
5804
|
id: `indirectTaxDetails`,
|
|
5119
5805
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5136,7 +5822,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5136
5822
|
}, {
|
|
5137
5823
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5138
5824
|
})))),
|
|
5139
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
5825
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
5140
5826
|
h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5141
5827
|
h("sqm-invoice-table-download-column", null),
|
|
5142
5828
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5181,16 +5867,17 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5181
5867
|
return "Indirect Tax";
|
|
5182
5868
|
}
|
|
5183
5869
|
const useTaxAndCashDashboard = (props) => {
|
|
5184
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5870
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5185
5871
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
5186
5872
|
const setContext = En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5187
5873
|
const [showDialog, setShowDialog] = useState(false);
|
|
5874
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
5188
5875
|
const locale = L();
|
|
5189
5876
|
useEffect(() => {
|
|
5190
5877
|
// Clear override context once on submitted
|
|
5191
5878
|
setContext({});
|
|
5192
5879
|
}, []);
|
|
5193
|
-
const { data, loading, errors: userError, } = $n(USER_QUERY_NAMESPACE);
|
|
5880
|
+
const { data, loading, errors: userError, refetch, } = $n(USER_QUERY_NAMESPACE);
|
|
5194
5881
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5195
5882
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5196
5883
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5215,6 +5902,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5215
5902
|
setStep("/3");
|
|
5216
5903
|
};
|
|
5217
5904
|
const provinceName = (_d = INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
5905
|
+
const payoutStatus = data ? getStatus(data) : null;
|
|
5906
|
+
useEffect(() => {
|
|
5907
|
+
const cb = () => refetch();
|
|
5908
|
+
window.addEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5909
|
+
return () => {
|
|
5910
|
+
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5911
|
+
};
|
|
5912
|
+
}, []);
|
|
5218
5913
|
return {
|
|
5219
5914
|
states: {
|
|
5220
5915
|
dateSubmitted,
|
|
@@ -5236,9 +5931,13 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5236
5931
|
loading,
|
|
5237
5932
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5238
5933
|
showNewFormDialog: showDialog,
|
|
5934
|
+
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5935
|
+
payoutStatus,
|
|
5936
|
+
veriffLoading,
|
|
5239
5937
|
},
|
|
5240
5938
|
callbacks: {
|
|
5241
5939
|
onClick: () => setShowDialog(true),
|
|
5940
|
+
onVerifyClick: () => render(),
|
|
5242
5941
|
onEditPayoutInfo,
|
|
5243
5942
|
onNewFormCancel: () => setShowDialog(false),
|
|
5244
5943
|
onNewFormClick,
|
|
@@ -5364,7 +6063,7 @@ const TaxAndCashDashboard = class {
|
|
|
5364
6063
|
* @uiName Indirect tax tooltip
|
|
5365
6064
|
* @uiWidget textArea
|
|
5366
6065
|
*/
|
|
5367
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact Support.";
|
|
6066
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our Support team.";
|
|
5368
6067
|
/**
|
|
5369
6068
|
* Displayed to participants who have submitted their indirect tax information.
|
|
5370
6069
|
*
|
|
@@ -5384,7 +6083,7 @@ const TaxAndCashDashboard = class {
|
|
|
5384
6083
|
* @uiName Not registered for indirect tax text
|
|
5385
6084
|
* @uiWidget textArea
|
|
5386
6085
|
*/
|
|
5387
|
-
this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
6086
|
+
this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
5388
6087
|
/**
|
|
5389
6088
|
* Displayed to participants registered in Quebec, Canada.
|
|
5390
6089
|
* @uiName QST indirect tax details
|
|
@@ -5413,18 +6112,59 @@ const TaxAndCashDashboard = class {
|
|
|
5413
6112
|
* @uiName Payout error message title
|
|
5414
6113
|
* @uiWidget textArea
|
|
5415
6114
|
*/
|
|
5416
|
-
this.
|
|
6115
|
+
this.payoutHoldAlertHeader = "Your payout is on hold";
|
|
5417
6116
|
/**
|
|
5418
6117
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5419
6118
|
* @uiName Payout error message description
|
|
5420
6119
|
* @uiWidget textArea
|
|
5421
6120
|
*/
|
|
5422
|
-
this.
|
|
6121
|
+
this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5423
6122
|
/**
|
|
5424
6123
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5425
6124
|
* @uiName Payout missing information subtext
|
|
5426
6125
|
*/
|
|
5427
6126
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
6127
|
+
/**
|
|
6128
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
6129
|
+
* @uiName Verification required alert message title
|
|
6130
|
+
* @uiWidget textArea
|
|
6131
|
+
*/
|
|
6132
|
+
this.verificationRequiredHeader = "Verify your identity";
|
|
6133
|
+
/**
|
|
6134
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
6135
|
+
* @uiName Verification required alert message description
|
|
6136
|
+
* @uiWidget textArea
|
|
6137
|
+
*/
|
|
6138
|
+
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
6139
|
+
/**
|
|
6140
|
+
* @uiName Verification required internal alert header
|
|
6141
|
+
*/
|
|
6142
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
6143
|
+
/**
|
|
6144
|
+
* @uiName Verification required internal alert description
|
|
6145
|
+
*/
|
|
6146
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
6147
|
+
/**
|
|
6148
|
+
* @uiName Verification review internal alert header
|
|
6149
|
+
*/
|
|
6150
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
6151
|
+
/**
|
|
6152
|
+
* @uiName Verification review internal alert description
|
|
6153
|
+
*/
|
|
6154
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
6155
|
+
/**
|
|
6156
|
+
* @uiName Verification failed internal alert header
|
|
6157
|
+
*/
|
|
6158
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
6159
|
+
/**
|
|
6160
|
+
* @uiName Verification failed internal alert description
|
|
6161
|
+
*/
|
|
6162
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
6163
|
+
/**
|
|
6164
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
6165
|
+
* @uiName Verification required alert button text
|
|
6166
|
+
*/
|
|
6167
|
+
this.verificationRequiredButtonText = "Start Verification";
|
|
5428
6168
|
/**
|
|
5429
6169
|
* Part of the alert displayed at the top of the page.
|
|
5430
6170
|
* @uiName Form submission error message title
|
|
@@ -5436,7 +6176,7 @@ const TaxAndCashDashboard = class {
|
|
|
5436
6176
|
* @uiName Form submission error message description
|
|
5437
6177
|
* @uiWidget textArea
|
|
5438
6178
|
*/
|
|
5439
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
6179
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5440
6180
|
/**
|
|
5441
6181
|
* Displayed under the payout details card.
|
|
5442
6182
|
* @uiName Payout from impact text
|
|
@@ -5454,7 +6194,7 @@ const TaxAndCashDashboard = class {
|
|
|
5454
6194
|
* @uiName Page load error message description
|
|
5455
6195
|
* @uiWidget textArea
|
|
5456
6196
|
*/
|
|
5457
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
6197
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5458
6198
|
/**
|
|
5459
6199
|
* Part of the Invoice table displayed at the bottom of the page.
|
|
5460
6200
|
* @uiName Invoice number column title
|
|
@@ -5505,6 +6245,10 @@ const TaxAndCashDashboard = class {
|
|
|
5505
6245
|
* @uiName Replace tax form modal body text
|
|
5506
6246
|
*/
|
|
5507
6247
|
this.replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
6248
|
+
/**
|
|
6249
|
+
* @uiName Support link text
|
|
6250
|
+
*/
|
|
6251
|
+
this.supportLink = "support team";
|
|
5508
6252
|
/**
|
|
5509
6253
|
* @uiName Cancel button label
|
|
5510
6254
|
*/
|
|
@@ -5547,12 +6291,17 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5547
6291
|
disabled: false,
|
|
5548
6292
|
loading: false,
|
|
5549
6293
|
showNewFormDialog: false,
|
|
6294
|
+
hasHold: false,
|
|
6295
|
+
showVerifyIdentity: false,
|
|
6296
|
+
payoutStatus: "DONE",
|
|
6297
|
+
veriffLoading: false,
|
|
5550
6298
|
},
|
|
5551
6299
|
callbacks: {
|
|
5552
6300
|
onClick: () => console.debug("check step"),
|
|
5553
6301
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5554
6302
|
onNewFormCancel: () => console.log("hide"),
|
|
5555
6303
|
onNewFormClick: () => console.log("show"),
|
|
6304
|
+
onVerifyClick: () => console.log("verify"),
|
|
5556
6305
|
},
|
|
5557
6306
|
text: props.getTextProps(),
|
|
5558
6307
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -6529,7 +7278,7 @@ const PHONE_EXTENSIONS = {
|
|
|
6529
7278
|
},
|
|
6530
7279
|
};
|
|
6531
7280
|
|
|
6532
|
-
const style$
|
|
7281
|
+
const style$7 = {
|
|
6533
7282
|
FormWrapper: {},
|
|
6534
7283
|
ErrorInput: {
|
|
6535
7284
|
"&::part(base)": {
|
|
@@ -6609,7 +7358,6 @@ const style$6 = {
|
|
|
6609
7358
|
},
|
|
6610
7359
|
PhoneInputsSection: {
|
|
6611
7360
|
display: "flex",
|
|
6612
|
-
alignItems: "flex-start",
|
|
6613
7361
|
flexDirection: "column",
|
|
6614
7362
|
gap: "4px",
|
|
6615
7363
|
"& p": {
|
|
@@ -6620,7 +7368,6 @@ const style$6 = {
|
|
|
6620
7368
|
},
|
|
6621
7369
|
PhoneInputsContainer: {
|
|
6622
7370
|
display: "flex",
|
|
6623
|
-
alignItems: "flex-start",
|
|
6624
7371
|
gap: "4px",
|
|
6625
7372
|
width: "100%",
|
|
6626
7373
|
"& #phoneNumber": {
|
|
@@ -6629,9 +7376,9 @@ const style$6 = {
|
|
|
6629
7376
|
},
|
|
6630
7377
|
},
|
|
6631
7378
|
};
|
|
6632
|
-
const sheet$
|
|
6633
|
-
const styleString$
|
|
6634
|
-
const vanillaStyle$
|
|
7379
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7380
|
+
const styleString$6 = sheet$6.toString();
|
|
7381
|
+
const vanillaStyle$4 = `
|
|
6635
7382
|
:host{
|
|
6636
7383
|
display: block;
|
|
6637
7384
|
}
|
|
@@ -6659,7 +7406,7 @@ const vanillaStyle$3 = `
|
|
|
6659
7406
|
const UserInfoFormView = (props) => {
|
|
6660
7407
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
6661
7408
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
6662
|
-
const { classes } = sheet$
|
|
7409
|
+
const { classes } = sheet$6;
|
|
6663
7410
|
const bankingCollectionText = intl.formatMessage({
|
|
6664
7411
|
id: "bankingCollectionText",
|
|
6665
7412
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -6682,14 +7429,19 @@ const UserInfoFormView = (props) => {
|
|
|
6682
7429
|
}
|
|
6683
7430
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6684
7431
|
h("style", { type: "text/css" },
|
|
6685
|
-
styleString$
|
|
6686
|
-
vanillaStyle$
|
|
7432
|
+
styleString$6,
|
|
7433
|
+
vanillaStyle$4),
|
|
6687
7434
|
states.loadingError && (h("div", null,
|
|
6688
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7435
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
6689
7436
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6690
7437
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6691
7438
|
h("br", null),
|
|
6692
|
-
|
|
7439
|
+
intl.formatMessage({
|
|
7440
|
+
id: "loadingErrorAlertDescription",
|
|
7441
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7442
|
+
}, {
|
|
7443
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7444
|
+
})),
|
|
6693
7445
|
h("br", null))),
|
|
6694
7446
|
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
6695
7447
|
h("div", { class: classes.TextContainer },
|
|
@@ -6700,16 +7452,26 @@ const UserInfoFormView = (props) => {
|
|
|
6700
7452
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6701
7453
|
h("h3", null, text.personalInformation),
|
|
6702
7454
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6703
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
7455
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
6704
7456
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6705
7457
|
h("strong", null, text.error.generalTitle),
|
|
6706
7458
|
h("br", null),
|
|
6707
|
-
|
|
6708
|
-
|
|
7459
|
+
intl.formatMessage({
|
|
7460
|
+
id: "generalDescription",
|
|
7461
|
+
defaultMessage: text.error.generalDescription,
|
|
7462
|
+
}, {
|
|
7463
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7464
|
+
}))),
|
|
7465
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6709
7466
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6710
7467
|
h("strong", null, text.isPartnerAlertHeader),
|
|
6711
7468
|
h("br", null),
|
|
6712
|
-
|
|
7469
|
+
intl.formatMessage({
|
|
7470
|
+
id: "isPartnerAlertDescription",
|
|
7471
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
7472
|
+
}, {
|
|
7473
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7474
|
+
}))),
|
|
6713
7475
|
h("div", null,
|
|
6714
7476
|
h("div", { class: classes.InputContainer },
|
|
6715
7477
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -6761,10 +7523,11 @@ const UserInfoFormView = (props) => {
|
|
|
6761
7523
|
h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6762
7524
|
_b.dial_code));
|
|
6763
7525
|
})),
|
|
6764
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
7526
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7527
|
+
// Naive phone number validation
|
|
7528
|
+
validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7529
|
+
formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7530
|
+
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6768
7531
|
class: classes.ErrorInput,
|
|
6769
7532
|
helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6770
7533
|
}
|
|
@@ -6842,17 +7605,20 @@ function useUserInfoForm(props) {
|
|
|
6842
7605
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
6843
7606
|
const [formErrors, setErrors] = useState({});
|
|
6844
7607
|
useEffect(() => {
|
|
6845
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7608
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6846
7609
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6847
7610
|
if (!user || step !== "/1")
|
|
6848
7611
|
return;
|
|
6849
7612
|
// If form already filled out, skip initialising it
|
|
6850
7613
|
if (objectIsFull(userFormContext))
|
|
6851
7614
|
return;
|
|
6852
|
-
|
|
7615
|
+
// Prefer MI email if it was verified before this
|
|
7616
|
+
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
7617
|
+
: user.email;
|
|
7618
|
+
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
6853
7619
|
// Initialise with partner information
|
|
6854
7620
|
setUserFormContext({
|
|
6855
|
-
email
|
|
7621
|
+
email,
|
|
6856
7622
|
firstName: user.impactConnection.user.firstName,
|
|
6857
7623
|
lastName: user.impactConnection.user.lastName,
|
|
6858
7624
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
@@ -6868,17 +7634,17 @@ function useUserInfoForm(props) {
|
|
|
6868
7634
|
else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
|
|
6869
7635
|
// Initialise with user information
|
|
6870
7636
|
setUserFormContext({
|
|
6871
|
-
email
|
|
7637
|
+
email,
|
|
6872
7638
|
firstName: user.firstName,
|
|
6873
7639
|
lastName: user.lastName,
|
|
6874
7640
|
countryCode: user.countryCode || "US",
|
|
6875
|
-
currency: (
|
|
6876
|
-
phoneNumberCountryCode: ((
|
|
6877
|
-
phoneNumber: (
|
|
6878
|
-
address: (
|
|
6879
|
-
city: (
|
|
6880
|
-
state: (
|
|
6881
|
-
postalCode: (
|
|
7641
|
+
currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
|
|
7642
|
+
phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
|
|
7643
|
+
phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
|
|
7644
|
+
address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
|
|
7645
|
+
city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
|
|
7646
|
+
state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
|
|
7647
|
+
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6882
7648
|
});
|
|
6883
7649
|
}
|
|
6884
7650
|
}, [data, step, userFormContext]);
|
|
@@ -6957,6 +7723,8 @@ function useUserInfoForm(props) {
|
|
|
6957
7723
|
const { allowBankingCollection, ...userData } = formData;
|
|
6958
7724
|
setUserFormContext({
|
|
6959
7725
|
...userFormContext,
|
|
7726
|
+
firstName: userData.firstName,
|
|
7727
|
+
lastName: userData.lastName,
|
|
6960
7728
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
6961
7729
|
phoneNumber: userData.phoneNumber,
|
|
6962
7730
|
countryCode: userData.countryCode,
|
|
@@ -7093,7 +7861,7 @@ const TaxForm = class {
|
|
|
7093
7861
|
* @uiName Participant is a partner alert description
|
|
7094
7862
|
* @uiWidget textArea
|
|
7095
7863
|
*/
|
|
7096
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
7864
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
7097
7865
|
/**
|
|
7098
7866
|
* Part of the alert displayed at the top of the page.
|
|
7099
7867
|
* @uiName Form submission error message title
|
|
@@ -7105,7 +7873,7 @@ const TaxForm = class {
|
|
|
7105
7873
|
* @uiName Form submission error message description
|
|
7106
7874
|
* @uiWidget textArea
|
|
7107
7875
|
*/
|
|
7108
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
7876
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
7109
7877
|
/**
|
|
7110
7878
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
7111
7879
|
* @uiName Terms and conditions checkbox
|
|
@@ -7121,7 +7889,7 @@ const TaxForm = class {
|
|
|
7121
7889
|
* The link that appears in the terms and conditions checkbox
|
|
7122
7890
|
* @uiName Terms and conditions link
|
|
7123
7891
|
*/
|
|
7124
|
-
this.termsAndConditionsLink = "/
|
|
7892
|
+
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
7125
7893
|
/**
|
|
7126
7894
|
* Placeholder text displayed in the country search dropdown
|
|
7127
7895
|
* @uiName Country field placeholder text
|
|
@@ -7158,12 +7926,16 @@ const TaxForm = class {
|
|
|
7158
7926
|
* @uiName Page load error message description
|
|
7159
7927
|
* @uiWidget textArea
|
|
7160
7928
|
*/
|
|
7161
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
7929
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
7162
7930
|
/**
|
|
7163
7931
|
* Displayed at the top of the page on all set up steps.
|
|
7164
7932
|
* @uiName Page description
|
|
7165
7933
|
*/
|
|
7166
7934
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7935
|
+
/**
|
|
7936
|
+
* @uiName Support link text
|
|
7937
|
+
*/
|
|
7938
|
+
this.supportLink = "support team";
|
|
7167
7939
|
h$1(this);
|
|
7168
7940
|
}
|
|
7169
7941
|
disconnectedCallback() { }
|
|
@@ -7239,4 +8011,4 @@ function useDemoUserInfoForm(props) {
|
|
|
7239
8011
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7240
8012
|
}
|
|
7241
8013
|
|
|
7242
|
-
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|
|
8014
|
+
export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|