@saasquatch/mint-components 1.15.0-43 → 1.15.0-44
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/{ErrorView-b2fcf954.js → ErrorView-5504c2b6.js} +1 -1
- package/dist/cjs/{GenericTableView-a9d0b798.js → GenericTableView-107ade89.js} +1 -1
- package/dist/cjs/{ShadowViewAddon-9cb7a310.js → ShadowViewAddon-85d2eed4.js} +1070 -1070
- package/dist/cjs/{copy-text-view-ee147291.js → copy-text-view-95cf4875.js} +15 -4
- package/dist/cjs/{email-registration-view-dca94dc9.js → email-registration-view-996fb438.js} +1 -1
- package/dist/cjs/{extractProps-e9c55ba8.js → extractProps-fd93ba62.js} +0 -14
- package/dist/cjs/{global-d62c5561.js → global-2298fc8b.js} +118 -112
- package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
- package/dist/cjs/{index.module-ee84433d.js → index.module-39955732.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-2926d85f.js → luxon-3b809948.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-6e4a90f9.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-b324deab.js → re-render-28fed959.js} +2 -2
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1927 -219
- package/dist/cjs/{sqm-base-registration-form-view-1c5094d3.js → sqm-base-registration-form-view-8847804c.js} +2 -2
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +376 -88
- package/dist/cjs/{sqm-close-button-view-b297e933.js → sqm-close-button-view-5e85ac51.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +6 -6
- package/dist/cjs/sqm-empty_4.cjs.entry.js +5 -5
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-invoice-table-view-90b2433f.js +2038 -0
- package/dist/cjs/{sqm-leaderboard-rank-view-7c6cebe3.js → sqm-leaderboard-rank-view-6a1e63de.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-navigation-sidebar-item-view-10b62df1.js → sqm-navigation-sidebar-item-view-188bfc41.js} +7 -7
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-navigation-sidebar-view-38a5227a.js → sqm-navigation-sidebar-view-50ee8796.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +6 -6
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-70eaf785.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-156accab.js → sqm-portal-email-verification-view-0a93a148.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-forgot-password-view-fdd97c18.js → sqm-portal-forgot-password-view-7519a332.js} +10 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +19 -11
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-login-view-0fbbda1b.js → sqm-portal-login-view-bb50304c.js} +2 -2
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-f226725e.js → sqm-portal-profile-view-44a83439.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-registration-form-view-399f4eaf.js → sqm-portal-registration-form-view-5a96c2f5.js} +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-reset-password-view-0439a9e5.js → sqm-portal-reset-password-view-25eb2099.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-verify-email-view-05f72dec.js → sqm-portal-verify-email-view-1c4e781f.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-qr-code-view-7ee9fa56.js → sqm-qr-code-view-b18b42a8.js} +2 -2
- package/dist/cjs/sqm-qr-code.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +19 -19
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +17 -36
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14028 -15355
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-text-span-view-ce4c0178.js → sqm-text-span-view-7a61ae4c.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +6 -14
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +10 -20
- package/dist/cjs/{stencil-hooks.module-3a336b0f.js → stencil-hooks.module-62264802.js} +1 -1
- package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-e5fa605c.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-86b7164c.js} +3 -3
- package/dist/cjs/{usePayoutStatus-feeac99b.js → usePayoutStatus-f26f0467.js} +7 -10
- package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-e246988e.js} +2 -2
- package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-d28621de.js} +3 -3
- package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-a47dcbc2.js} +2 -2
- package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-19e7523a.js} +5 -5
- package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-5f44ca80.js} +2 -2
- package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-1496b993.js} +2 -2
- package/dist/cjs/{utilities-78f5e169.js → utilities-be3ce1f8.js} +2 -2
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +5 -5
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +2 -2
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +7 -6
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +17 -10
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +2 -9
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +4 -4
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +4 -4
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +7 -26
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +44 -25
- package/dist/collection/components/sqm-stencilbook/Themes.js +311 -36
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -82
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +5 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +7 -42
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +8 -12
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +9 -7
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +18 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +28 -77
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +4 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +4 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/components/views/copy-text-view.js +14 -3
- package/dist/collection/global/styles.js +116 -110
- package/dist/collection/global/styles.ts +202 -106
- package/dist/esm/{ErrorView-48e2b969.js → ErrorView-eaafd6f5.js} +1 -1
- package/dist/esm/{GenericTableView-3b6f9ccc.js → GenericTableView-dd9be3ea.js} +1 -1
- package/dist/esm/{ShadowViewAddon-d8cfd6c7.js → ShadowViewAddon-d59ef625.js} +1071 -1071
- package/dist/esm/{copy-text-view-4a207b17.js → copy-text-view-6dec9902.js} +15 -4
- package/dist/esm/{email-registration-view-8782c01b.js → email-registration-view-db81655f.js} +1 -1
- package/dist/esm/{extractProps-54064fb0.js → extractProps-ae1afbb3.js} +1 -14
- package/dist/esm/{global-632fb2fa.js → global-2da1dcec.js} +118 -112
- package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
- package/dist/esm/{index.module-89a79f66.js → index.module-d49ae5e7.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-8d51c92b.js → luxon-793b7f13.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-bdc54f2e.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-cc945f38.js → re-render-789f9123.js} +2 -2
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +1842 -141
- package/dist/esm/{sqm-base-registration-form-view-d732a5df.js → sqm-base-registration-form-view-193f1721.js} +2 -2
- package/dist/esm/sqm-big-stat_42.entry.js +376 -88
- package/dist/esm/{sqm-close-button-view-bc2bc10e.js → sqm-close-button-view-2fa57229.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +4 -4
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-email-verification.entry.js +6 -6
- package/dist/esm/sqm-empty_4.entry.js +5 -5
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/sqm-invoice-table-view-df370e4a.js +2022 -0
- package/dist/esm/{sqm-leaderboard-rank-view-84b3c539.js → sqm-leaderboard-rank-view-18baae5b.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +4 -4
- package/dist/esm/{sqm-navigation-sidebar-item-view-6e046743.js → sqm-navigation-sidebar-item-view-30c52ccd.js} +7 -7
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/{sqm-navigation-sidebar-view-f898265a.js → sqm-navigation-sidebar-view-6c13798c.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-pagination_3.entry.js +6 -6
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +3 -3
- package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-f0b1ccfc.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-24ea7b3c.js → sqm-portal-email-verification-view-e38ec8cc.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
- package/dist/esm/{sqm-portal-forgot-password-view-55fc0873.js → sqm-portal-forgot-password-view-dc6b4f26.js} +10 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +19 -11
- package/dist/esm/sqm-portal-google-login.entry.js +6 -6
- package/dist/esm/sqm-portal-google-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-login-view-e870b4b0.js → sqm-portal-login-view-7670cd86.js} +2 -2
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-9b4d7ec1.js → sqm-portal-profile-view-e594d1ee.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-5d651c04.js → sqm-portal-registration-form-view-8bdc3804.js} +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +7 -7
- package/dist/esm/{sqm-portal-reset-password-view-6903828e.js → sqm-portal-reset-password-view-abef7286.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +5 -5
- package/dist/esm/{sqm-portal-verify-email-view-01ac711f.js → sqm-portal-verify-email-view-33805220.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
- package/dist/esm/{sqm-qr-code-view-62c10948.js → sqm-qr-code-view-358607d1.js} +2 -2
- package/dist/esm/sqm-qr-code.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +19 -19
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +17 -36
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +14041 -15368
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-cd3902e5.js → sqm-text-span-view-4c17b8c9.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/sqm-widget-verification-controller.entry.js +6 -14
- package/dist/esm/sqm-widget-verification.entry.js +10 -20
- package/dist/esm/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-20ad2b5f.js} +1 -1
- package/dist/esm/{useChildElements-7945ae56.js → useChildElements-0ca9a015.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-b224f3ce.js} +3 -3
- package/dist/esm/{usePayoutStatus-fed17fc9.js → usePayoutStatus-3768c8c3.js} +7 -10
- package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-6b1951c6.js} +2 -2
- package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-61bf948d.js} +3 -3
- package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-0b798295.js} +2 -2
- package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-c1511d9d.js} +5 -5
- package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-2db047e9.js} +2 -2
- package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-085eda87.js} +2 -2
- package/dist/esm/{utilities-5b0ca040.js → utilities-6341d9fd.js} +2 -2
- package/dist/esm-es5/{ErrorView-48e2b969.js → ErrorView-eaafd6f5.js} +1 -1
- package/dist/esm-es5/{GenericTableView-3b6f9ccc.js → GenericTableView-dd9be3ea.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-d59ef625.js +1 -0
- package/dist/esm-es5/copy-text-view-6dec9902.js +1 -0
- package/dist/esm-es5/{email-registration-view-8782c01b.js → email-registration-view-db81655f.js} +1 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/{global-632fb2fa.js → global-2da1dcec.js} +5 -5
- package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
- package/dist/esm-es5/{index.module-89a79f66.js → index.module-d49ae5e7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-8d51c92b.js → luxon-793b7f13.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-bdc54f2e.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-cc945f38.js → re-render-789f9123.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-d732a5df.js → sqm-base-registration-form-view-193f1721.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-bc2bc10e.js → sqm-close-button-view-2fa57229.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +1 -0
- package/dist/esm-es5/{sqm-leaderboard-rank-view-84b3c539.js → sqm-leaderboard-rank-view-18baae5b.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-30c52ccd.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-f898265a.js → sqm-navigation-sidebar-view-6c13798c.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-container-view-1683ae32.js → sqm-portal-container-view-f0b1ccfc.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-24ea7b3c.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-dc6b4f26.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-login-view-e870b4b0.js → sqm-portal-login-view-7670cd86.js} +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9b4d7ec1.js → sqm-portal-profile-view-e594d1ee.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-5d651c04.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-6903828e.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-01ac711f.js → sqm-portal-verify-email-view-33805220.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-62c10948.js → sqm-qr-code-view-358607d1.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-cd3902e5.js → sqm-text-span-view-4c17b8c9.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-20ad2b5f.js} +1 -1
- package/dist/esm-es5/{useChildElements-7945ae56.js → useChildElements-0ca9a015.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-b224f3ce.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-fed17fc9.js → usePayoutStatus-3768c8c3.js} +2 -2
- package/dist/esm-es5/{usePortalLogin-ef647a50.js → usePortalLogin-6b1951c6.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-61bf948d.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-8f75921a.js → useReferralCodes-0b798295.js} +1 -1
- package/dist/esm-es5/{useReferralTable-b3876ed6.js → useReferralTable-c1511d9d.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-2db047e9.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-edc318cb.js → useVerificationEmail-085eda87.js} +1 -1
- package/dist/esm-es5/{utilities-5b0ca040.js → utilities-6341d9fd.js} +1 -1
- package/dist/mint-components/global/styles.ts +202 -106
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-66d22d46.entry.js → p-0019d57c.entry.js} +1 -1
- package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
- package/dist/mint-components/p-0126962c.entry.js +1 -0
- package/dist/mint-components/p-01dd6b18.system.js +1 -0
- package/dist/mint-components/{p-6d9e52c7.system.js → p-02c92db1.system.js} +1 -1
- package/dist/mint-components/{p-6d2f5a1d.js → p-037da77e.js} +2 -2
- package/dist/mint-components/{p-8175e85f.system.js → p-04007292.system.js} +1 -1
- package/dist/mint-components/p-04cc08e7.system.entry.js +1 -0
- package/dist/mint-components/{p-1fa9ed0d.system.entry.js → p-055e6ebd.system.entry.js} +1 -1
- package/dist/mint-components/p-0592dc0b.system.js +1 -0
- package/dist/mint-components/{p-d12e9cfd.system.entry.js → p-0714554e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e518a60d.js → p-07dc6d68.js} +1 -1
- package/dist/mint-components/p-097a255f.js +1 -0
- package/dist/mint-components/p-0c327ec3.entry.js +1 -0
- package/dist/mint-components/p-0e532b53.entry.js +1 -0
- package/dist/mint-components/{p-ca9e0322.system.js → p-0e73c48c.system.js} +1 -1
- package/dist/mint-components/{p-3c3aab4c.system.js → p-10c2a48c.system.js} +1 -1
- package/dist/mint-components/{p-3a62a7e2.system.js → p-12fd7ee9.system.js} +1 -1
- package/dist/mint-components/p-15ad1e97.entry.js +16 -0
- package/dist/mint-components/{p-7c2b9fe4.system.js → p-167be4b9.system.js} +1 -1
- package/dist/mint-components/p-16c55bb4.entry.js +205 -0
- package/dist/mint-components/p-1bdc4f94.system.entry.js +1 -0
- package/dist/mint-components/{p-32a47b41.system.js → p-1cd0e1e9.system.js} +1 -1
- package/dist/mint-components/{p-b7d1469d.system.entry.js → p-1d46f8fa.system.entry.js} +1 -1
- package/dist/mint-components/{p-41d051b1.system.entry.js → p-1f82181b.system.entry.js} +1 -1
- package/dist/mint-components/{p-e309a219.js → p-204861a6.js} +1 -1
- package/dist/mint-components/{p-c0f19490.js → p-20b2f691.js} +1 -1
- package/dist/mint-components/p-22405668.entry.js +1 -0
- package/dist/mint-components/{p-cf157c6e.system.entry.js → p-232996b5.system.entry.js} +1 -1
- package/dist/mint-components/{p-a60d5315.entry.js → p-238fcec6.entry.js} +1 -1
- package/dist/mint-components/p-2403c6e1.system.js +1 -0
- package/dist/mint-components/{p-0e32981f.js → p-240bec23.js} +1 -1
- package/dist/mint-components/p-24af584d.js +1 -0
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-df223bff.entry.js → p-27903fca.entry.js} +1 -1
- package/dist/mint-components/{p-da7708a7.entry.js → p-27bb9d05.entry.js} +1 -1
- package/dist/mint-components/{p-12e61414.system.entry.js → p-28aed7f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-a71b9154.system.js → p-2f2bced4.system.js} +1 -1
- package/dist/mint-components/{p-d5b3397c.system.entry.js → p-30826d8f.system.entry.js} +1 -1
- package/dist/mint-components/p-3168fa90.js +1 -0
- package/dist/mint-components/p-3174c756.entry.js +1 -0
- package/dist/mint-components/p-31b8f0ca.system.js +1 -0
- package/dist/mint-components/{p-865f812e.entry.js → p-322c1e5e.entry.js} +1 -1
- package/dist/mint-components/{p-3e4e74a2.system.entry.js → p-33b13e55.system.entry.js} +1 -1
- package/dist/mint-components/{p-11dff275.js → p-3466bfaa.js} +2 -2
- package/dist/mint-components/{p-cd651f81.js → p-35b2fde0.js} +1 -1
- package/dist/mint-components/p-36bbd4de.entry.js +1 -0
- package/dist/mint-components/{p-5ef6de10.entry.js → p-37c4ae42.entry.js} +1 -1
- package/dist/mint-components/p-37e58170.system.entry.js +1 -0
- package/dist/mint-components/{p-82113e37.js → p-3eba9036.js} +1 -1
- package/dist/mint-components/{p-457962b7.system.entry.js → p-4115e328.system.entry.js} +1 -1
- package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
- package/dist/mint-components/{p-726a9924.js → p-4254a9b6.js} +1 -1
- package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
- package/dist/mint-components/{p-faba3198.entry.js → p-43ce09f0.entry.js} +1 -1
- package/dist/mint-components/{p-9f2edf59.system.js → p-470c9c64.system.js} +1 -1
- package/dist/mint-components/{p-4e451f75.js → p-4b12067f.js} +1 -1
- package/dist/mint-components/p-4ce7e3b1.entry.js +1 -0
- package/dist/mint-components/{p-7dabdca6.system.entry.js → p-4d8e3766.system.entry.js} +1 -1
- package/dist/mint-components/{p-f4a72903.system.entry.js → p-4e5dff09.system.entry.js} +1 -1
- package/dist/mint-components/{p-af516659.system.entry.js → p-4edcf988.system.entry.js} +1 -1
- package/dist/mint-components/{p-9d41d676.system.entry.js → p-5125ec72.system.entry.js} +1 -1
- package/dist/mint-components/p-54212ad6.system.js +1 -0
- package/dist/mint-components/{p-fb584d7a.js → p-5500bd38.js} +1 -1
- package/dist/mint-components/{p-a9f4ddb1.js → p-572ec8d4.js} +1 -1
- package/dist/mint-components/p-59b028db.system.js +1 -0
- package/dist/mint-components/{p-6a49b077.system.entry.js → p-5cd3030b.system.entry.js} +1 -1
- package/dist/mint-components/{p-9721a29a.system.js → p-5efed40f.system.js} +2 -2
- package/dist/mint-components/{p-bb6e411d.system.entry.js → p-5fbbc259.system.entry.js} +1 -1
- package/dist/mint-components/p-62d924e6.system.entry.js +1 -0
- package/dist/mint-components/{p-223dd3f7.system.js → p-64997b59.system.js} +1 -1
- package/dist/mint-components/{p-6a5f57d7.entry.js → p-64e3e87a.entry.js} +3 -3
- package/dist/mint-components/{p-505951d2.system.js → p-6578ea31.system.js} +1 -1
- package/dist/mint-components/{p-94a876b9.js → p-66ac6bed.js} +1 -1
- package/dist/mint-components/p-676ca2c0.system.js +1 -0
- package/dist/mint-components/{p-74afdafb.system.js → p-67ad2252.system.js} +1 -1
- package/dist/mint-components/{p-36ffebd8.system.entry.js → p-67ca8443.system.entry.js} +1 -1
- package/dist/mint-components/{p-057f5402.js → p-68043f30.js} +1 -1
- package/dist/mint-components/p-6bcac9ed.system.entry.js +1 -0
- package/dist/mint-components/{p-dbc0e4f8.system.js → p-6c0c466f.system.js} +1 -1
- package/dist/mint-components/{p-8413ade9.system.js → p-6cff599f.system.js} +1 -1
- package/dist/mint-components/{p-fbef4ecb.system.js → p-71271fbd.system.js} +1 -1
- package/dist/mint-components/{p-b6761073.entry.js → p-71a0adcf.entry.js} +1 -1
- package/dist/mint-components/{p-dbb83730.entry.js → p-73069eba.entry.js} +1 -1
- package/dist/mint-components/{p-e217afd9.system.entry.js → p-7371218f.system.entry.js} +1 -1
- package/dist/mint-components/{p-d6831af5.js → p-73feb66f.js} +2 -2
- package/dist/mint-components/{p-3f7b81b8.js → p-74eaa3c0.js} +2 -2
- package/dist/mint-components/p-761ee9ea.entry.js +13 -0
- package/dist/mint-components/{p-b73a4df4.entry.js → p-7953c3da.entry.js} +2 -2
- package/dist/mint-components/{p-be89074c.entry.js → p-799d62fe.entry.js} +1 -1
- package/dist/mint-components/{p-7adb141e.js → p-7aba33e1.js} +1 -1
- package/dist/mint-components/{p-96e339f6.system.js → p-7ae3ec51.system.js} +20 -20
- package/dist/mint-components/{p-674b82ac.js → p-7b4f0dbc.js} +1 -1
- package/dist/mint-components/p-7b97c0f4.system.entry.js +1 -0
- package/dist/mint-components/{p-8362cb4c.system.entry.js → p-7d456d0a.system.entry.js} +1 -1
- package/dist/mint-components/{p-33f640f6.system.js → p-7daa731c.system.js} +1 -1
- package/dist/mint-components/{p-6fa624ff.system.entry.js → p-7dac5a58.system.entry.js} +1 -1
- package/dist/mint-components/{p-13ed8586.system.js → p-7f499d2f.system.js} +1 -1
- package/dist/mint-components/{p-44891949.entry.js → p-8278225e.entry.js} +1 -1
- package/dist/mint-components/{p-2df6ce8f.entry.js → p-836d3ec7.entry.js} +2 -2
- package/dist/mint-components/{p-2ae0e06a.entry.js → p-84079726.entry.js} +1 -1
- package/dist/mint-components/{p-cd0ee247.entry.js → p-8408b84b.entry.js} +1 -1
- package/dist/mint-components/{p-48135f99.system.js → p-88e32c4a.system.js} +1 -1
- package/dist/mint-components/p-8caef004.js +1 -0
- package/dist/mint-components/{p-846aff6a.system.entry.js → p-8f6e124b.system.entry.js} +1 -1
- package/dist/mint-components/{p-0b3218a5.entry.js → p-92d706e7.entry.js} +1 -1
- package/dist/mint-components/p-951ded9b.js +1 -0
- package/dist/mint-components/{p-2bbff88f.entry.js → p-9713e9a9.entry.js} +1 -1
- package/dist/mint-components/{p-9acf0b39.system.entry.js → p-99a82e5a.system.entry.js} +1 -1
- package/dist/mint-components/{p-66a2b1a4.js → p-99fb2a50.js} +1 -1
- package/dist/mint-components/{p-284e4ed5.entry.js → p-9cc40be1.entry.js} +1 -1
- package/dist/mint-components/{p-450a7705.system.entry.js → p-9fcc7901.system.entry.js} +1 -1
- package/dist/mint-components/p-a121e5a1.system.entry.js +1 -0
- package/dist/mint-components/{p-d1ae7a2d.js → p-a45680fe.js} +1 -1
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/{p-1b3ab15a.system.entry.js → p-a9be22a6.system.entry.js} +1 -1
- package/dist/mint-components/p-ac71b501.js +1 -0
- package/dist/mint-components/p-b0362941.js +1 -0
- package/dist/mint-components/{p-dc293b10.js → p-b090bbd2.js} +27 -27
- package/dist/mint-components/{p-4d478108.system.entry.js → p-b143d532.system.entry.js} +1 -1
- package/dist/mint-components/{p-de136dd3.js → p-b1ddc706.js} +1 -1
- package/dist/mint-components/p-b4638167.entry.js +1 -0
- package/dist/mint-components/p-b4eca678.js +1 -0
- package/dist/mint-components/{p-3a21f8f9.system.entry.js → p-b6083f58.system.entry.js} +1 -1
- package/dist/mint-components/{p-0df294ad.system.js → p-b6911812.system.js} +1 -1
- package/dist/mint-components/p-b6bdf89e.entry.js +1 -0
- package/dist/mint-components/{p-527216de.system.js → p-bd11230d.system.js} +1 -1
- package/dist/mint-components/{p-fa37513e.system.entry.js → p-bdb9e05a.system.entry.js} +1 -1
- package/dist/mint-components/p-be88596c.system.js +1 -0
- package/dist/mint-components/p-bfe08ca4.system.js +1 -0
- package/dist/mint-components/{p-a3e68251.entry.js → p-c1821c6d.entry.js} +1 -1
- package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
- package/dist/mint-components/p-c53bd5bd.entry.js +9 -0
- package/dist/mint-components/p-c7c11325.js +1 -0
- package/dist/mint-components/{p-51aa8c38.system.entry.js → p-cc5f9775.system.entry.js} +1 -1
- package/dist/mint-components/p-cfce2cfa.system.js +1 -0
- package/dist/mint-components/{p-a3383f54.system.js → p-d49373b7.system.js} +1 -1
- package/dist/mint-components/{p-1878da9b.entry.js → p-d4e49019.entry.js} +2 -2
- package/dist/mint-components/{p-731d06a9.entry.js → p-d54fa68e.entry.js} +1 -1
- package/dist/mint-components/p-d6c151e3.system.js +1 -0
- package/dist/mint-components/{p-a572db9b.system.entry.js → p-d7cbca3c.system.entry.js} +1 -1
- package/dist/mint-components/{p-18425f38.system.entry.js → p-dccfe305.system.entry.js} +1 -1
- package/dist/mint-components/{p-c96a25c6.js → p-ddf3c05e.js} +1 -1
- package/dist/mint-components/{p-5bedb58c.js → p-de3ef27e.js} +1 -1
- package/dist/mint-components/{p-c2fdd608.system.entry.js → p-df34f189.system.entry.js} +1 -1
- package/dist/mint-components/p-e05d092a.entry.js +1 -0
- package/dist/mint-components/p-e13ed54a.entry.js +1 -0
- package/dist/mint-components/p-e1e96de9.entry.js +258 -0
- package/dist/mint-components/p-e523b22e.entry.js +11 -0
- package/dist/mint-components/p-e53c3c6e.system.js +1 -0
- package/dist/mint-components/{p-0a8a6d45.system.entry.js → p-e70d8201.system.entry.js} +1 -1
- package/dist/mint-components/{p-59274a91.system.js → p-e7aa4f3b.system.js} +1 -1
- package/dist/mint-components/{p-98698131.js → p-ea1eed5d.js} +1 -1
- package/dist/mint-components/p-ecf91505.system.js +1 -0
- package/dist/mint-components/{p-d94a4d50.system.entry.js → p-edf6bf2e.system.entry.js} +1 -1
- package/dist/mint-components/{p-9b6a0152.system.entry.js → p-efd2b6ec.system.entry.js} +1 -1
- package/dist/mint-components/p-f0368b8b.system.js +1 -0
- package/dist/mint-components/{p-da71337b.entry.js → p-f2c48bc8.entry.js} +1 -1
- package/dist/mint-components/p-f3558ef0.js +394 -0
- package/dist/mint-components/{p-a1e17fd2.js → p-f3a52eb6.js} +1 -1
- package/dist/mint-components/p-f66ccd51.entry.js +1 -0
- package/dist/mint-components/p-f6baa0c9.system.js +1 -0
- package/dist/mint-components/{p-042642d3.entry.js → p-f826665a.entry.js} +1 -1
- package/dist/mint-components/{p-4e526a94.js → p-fa420231.js} +1 -1
- package/dist/mint-components/p-fad1752b.system.entry.js +1 -0
- package/dist/mint-components/{p-6cd4f2b1.system.js → p-fca47a45.system.js} +1 -1
- package/dist/mint-components/p-ff3c651c.js +1 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +0 -3
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -1
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +3 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +5 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +0 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +1 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -10
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +8 -91
- package/dist/types/saasquatch.d.ts +23 -5
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -2
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/IndirectTaxDetailsView-d0290a12.js +0 -646
- package/dist/cjs/data-6d96b89c.js +0 -137
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
- package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1220
- package/dist/cjs/utils-ce18d1bc.js +0 -105
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +0 -639
- package/dist/esm/data-a05c78ae.js +0 -121
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
- package/dist/esm/sqm-asset-card.entry.js +0 -41
- package/dist/esm/sqm-code-verification.entry.js +0 -338
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1216
- package/dist/esm/utils-1654e233.js +0 -97
- package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +0 -1
- package/dist/esm-es5/copy-text-view-4a207b17.js +0 -1
- package/dist/esm-es5/data-a05c78ae.js +0 -1
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6e046743.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-55fc0873.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/utils-1654e233.js +0 -1
- package/dist/mint-components/p-04a6e457.entry.js +0 -1
- package/dist/mint-components/p-05f29f64.js +0 -1
- package/dist/mint-components/p-06ce54e2.entry.js +0 -258
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-0984523b.js +0 -1
- package/dist/mint-components/p-0a37a288.system.entry.js +0 -1
- package/dist/mint-components/p-0f76b2dd.entry.js +0 -93
- package/dist/mint-components/p-127e66c2.system.js +0 -1
- package/dist/mint-components/p-1513309d.entry.js +0 -1
- package/dist/mint-components/p-155cf177.system.js +0 -1
- package/dist/mint-components/p-19ccb4ce.js +0 -1
- package/dist/mint-components/p-229f797b.js +0 -1
- package/dist/mint-components/p-275b4767.entry.js +0 -1
- package/dist/mint-components/p-2d52e2d7.system.js +0 -1
- package/dist/mint-components/p-301ddcaa.system.entry.js +0 -1
- package/dist/mint-components/p-32d60c34.entry.js +0 -16
- package/dist/mint-components/p-38fc919b.entry.js +0 -1
- package/dist/mint-components/p-46a672e4.entry.js +0 -1
- package/dist/mint-components/p-4b42b756.entry.js +0 -1
- package/dist/mint-components/p-4b9789a2.system.js +0 -1
- package/dist/mint-components/p-4bb1c4b2.system.js +0 -1
- package/dist/mint-components/p-4cbd7eec.js +0 -394
- package/dist/mint-components/p-52d15f87.system.js +0 -1
- package/dist/mint-components/p-5488fdd9.system.js +0 -1
- package/dist/mint-components/p-54b0b768.system.js +0 -1
- package/dist/mint-components/p-5c5964e0.js +0 -1
- package/dist/mint-components/p-5d407714.system.entry.js +0 -1
- package/dist/mint-components/p-5eebc8b4.system.entry.js +0 -1
- package/dist/mint-components/p-637c0357.system.entry.js +0 -1
- package/dist/mint-components/p-65ba9e94.entry.js +0 -1
- package/dist/mint-components/p-6798cad1.system.js +0 -1
- package/dist/mint-components/p-6b7a595f.system.js +0 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
- package/dist/mint-components/p-704f162e.entry.js +0 -1
- package/dist/mint-components/p-767485b8.system.js +0 -1
- package/dist/mint-components/p-84a78d09.entry.js +0 -1
- package/dist/mint-components/p-8568a6ef.entry.js +0 -1
- package/dist/mint-components/p-8abfeff8.entry.js +0 -1
- package/dist/mint-components/p-8c23d1b8.js +0 -1
- package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
- package/dist/mint-components/p-8feb4180.entry.js +0 -1
- package/dist/mint-components/p-9711efb7.entry.js +0 -1
- package/dist/mint-components/p-97d4d651.system.js +0 -1
- package/dist/mint-components/p-9acb5038.js +0 -1
- package/dist/mint-components/p-a27a15c5.system.entry.js +0 -1
- package/dist/mint-components/p-a8cc450b.system.entry.js +0 -1
- package/dist/mint-components/p-a91e7c05.system.entry.js +0 -1
- package/dist/mint-components/p-b637f1e4.js +0 -1
- package/dist/mint-components/p-bdd80fce.js +0 -1
- package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
- package/dist/mint-components/p-c0b07067.system.js +0 -1
- package/dist/mint-components/p-c1b1f8ae.system.entry.js +0 -1
- package/dist/mint-components/p-c75a3b4a.js +0 -103
- package/dist/mint-components/p-c8a7e3ba.system.entry.js +0 -1
- package/dist/mint-components/p-c9745c8f.system.js +0 -1
- package/dist/mint-components/p-d6352d15.js +0 -1
- package/dist/mint-components/p-e1e62d55.entry.js +0 -1
- package/dist/mint-components/p-e2705fbe.system.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-e5d9e709.entry.js +0 -13
- package/dist/mint-components/p-e8ffcc68.entry.js +0 -11
- package/dist/mint-components/p-eb998f7b.entry.js +0 -9
- package/dist/mint-components/p-ee6ec12d.entry.js +0 -11
- package/dist/mint-components/p-f26aedcd.system.js +0 -1
- package/dist/mint-components/p-f53f5304.system.entry.js +0 -1
- package/dist/mint-components/p-f708da7b.js +0 -1
- package/dist/mint-components/p-f8175201.system.js +0 -1
- package/dist/mint-components/p-fb13065a.js +0 -1
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
- package/dist/types/utils/parseStates.d.ts +0 -1
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
|
@@ -1,22 +1,142 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as Host, g as getElement } from './index-
|
|
2
|
-
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, _, 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 } from './index.module-
|
|
1
|
+
import { h, r as registerInstance, c as Host, g as getElement } from './index-b3a06de8.js';
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-20ad2b5f.js';
|
|
3
|
+
import { i as intl } from './global-2da1dcec.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-d49ae5e7.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as getProps } from './utils-334c1e34.js';
|
|
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-f750863a.js';
|
|
10
|
-
import { G as GenericTableView } from './GenericTableView-
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
13
|
-
import { l as luxon } from './luxon-
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
9
|
+
import { E as ErrorStyles } from './mixins-f750863a.js';
|
|
10
|
+
import { G as GenericTableView } from './GenericTableView-dd9be3ea.js';
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-789f9123.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-0ca9a015.js';
|
|
13
|
+
import { l as luxon } from './luxon-793b7f13.js';
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-c1511d9d.js';
|
|
15
|
+
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
16
|
+
import { E as ErrorView } from './ErrorView-eaafd6f5.js';
|
|
17
|
+
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, 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-df370e4a.js';
|
|
18
|
+
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
|
+
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';
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-3768c8c3.js';
|
|
21
|
+
import { u as useVerificationEmail } from './useVerificationEmail-085eda87.js';
|
|
22
|
+
|
|
23
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
24
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
25
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
26
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
27
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
28
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
29
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
30
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
31
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
32
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
33
|
+
const GET_USER = dist.gql `
|
|
34
|
+
query getUserTaxInfo {
|
|
35
|
+
user: viewer {
|
|
36
|
+
... on User {
|
|
37
|
+
id
|
|
38
|
+
firstName
|
|
39
|
+
lastName
|
|
40
|
+
email
|
|
41
|
+
countryCode
|
|
42
|
+
customFields
|
|
43
|
+
managedIdentity {
|
|
44
|
+
uid
|
|
45
|
+
email
|
|
46
|
+
emailVerified
|
|
47
|
+
}
|
|
48
|
+
impactConnection {
|
|
49
|
+
connected
|
|
50
|
+
user {
|
|
51
|
+
firstName
|
|
52
|
+
lastName
|
|
53
|
+
}
|
|
54
|
+
publisher {
|
|
55
|
+
id
|
|
56
|
+
brandedSignup
|
|
57
|
+
countryCode
|
|
58
|
+
currency
|
|
59
|
+
billingAddress
|
|
60
|
+
billingCity
|
|
61
|
+
billingState
|
|
62
|
+
billingCountryCode
|
|
63
|
+
billingPostalCode
|
|
64
|
+
phoneNumberCountryCode
|
|
65
|
+
phoneNumber
|
|
66
|
+
taxInformation {
|
|
67
|
+
indirectTaxId
|
|
68
|
+
indirectTaxCountryCode
|
|
69
|
+
indirectTaxRegion
|
|
70
|
+
additionalTaxId
|
|
71
|
+
withholdingTaxId
|
|
72
|
+
withholdingTaxCountryCode
|
|
73
|
+
}
|
|
74
|
+
requiredTaxDocumentType
|
|
75
|
+
currentTaxDocument {
|
|
76
|
+
status
|
|
77
|
+
type
|
|
78
|
+
dateCreated
|
|
79
|
+
}
|
|
80
|
+
withdrawalSettings {
|
|
81
|
+
paymentMethod
|
|
82
|
+
paypalEmailAddress
|
|
83
|
+
bankCountry
|
|
84
|
+
bankAccountNumber
|
|
85
|
+
paymentSchedulingType
|
|
86
|
+
paymentThreshold
|
|
87
|
+
paymentDay
|
|
88
|
+
}
|
|
89
|
+
payoutsAccount {
|
|
90
|
+
hold
|
|
91
|
+
holdReasons
|
|
92
|
+
balance
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
const GET_COUNTRIES = dist.gql `
|
|
101
|
+
query getCountries {
|
|
102
|
+
impactPayoutCountries(limit: 1000) {
|
|
103
|
+
data {
|
|
104
|
+
countryCode
|
|
105
|
+
displayName
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
const GET_CURRENCIES = dist.gql `
|
|
111
|
+
query currencies($locale: RSLocale) {
|
|
112
|
+
currencies(limit: 300) {
|
|
113
|
+
data {
|
|
114
|
+
displayName(locale: $locale)
|
|
115
|
+
currencyCode
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
121
|
+
query impactFinanceNetworkSettings(
|
|
122
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
123
|
+
) {
|
|
124
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
125
|
+
data {
|
|
126
|
+
countryCode
|
|
127
|
+
currency
|
|
128
|
+
defaultFinancePaymentMethodId
|
|
129
|
+
thresholdOptions
|
|
130
|
+
withdrawalSettingId
|
|
131
|
+
internationalEftFee
|
|
132
|
+
foreignFxFee
|
|
133
|
+
defaultFxFee
|
|
134
|
+
}
|
|
135
|
+
totalCount
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
139
|
+
const FORM_STEPS = 4;
|
|
20
140
|
|
|
21
141
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
22
142
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
@@ -628,20 +748,20 @@ const style = {
|
|
|
628
748
|
width: "16px",
|
|
629
749
|
height: "16px",
|
|
630
750
|
borderRadius: "50%",
|
|
631
|
-
background: "var(--
|
|
751
|
+
background: "var(--sqm-skeleton-background)",
|
|
632
752
|
},
|
|
633
753
|
SmallSkeleton: {
|
|
634
754
|
width: "100px",
|
|
635
755
|
height: "16px",
|
|
636
756
|
borderRadius: "50px",
|
|
637
|
-
background: "var(--
|
|
757
|
+
background: "var(--sqm-skeleton-background)",
|
|
638
758
|
},
|
|
639
759
|
LargeSkeleton: {
|
|
640
760
|
width: "100%",
|
|
641
761
|
maxWidth: "320px",
|
|
642
762
|
height: "40px",
|
|
643
763
|
borderRadius: "50px",
|
|
644
|
-
background: "var(--
|
|
764
|
+
background: "var(--sqm-skeleton-background)",
|
|
645
765
|
},
|
|
646
766
|
InfoWarningIcon: {
|
|
647
767
|
height: "26px",
|
|
@@ -667,8 +787,10 @@ const vanillaStyle = `
|
|
|
667
787
|
|
|
668
788
|
/* this class is dynamically applied in controller */
|
|
669
789
|
.error-input::part(base) {
|
|
670
|
-
border:
|
|
671
|
-
border-
|
|
790
|
+
--sqm-input-border-color: var(--sqm-danger-color-border);
|
|
791
|
+
--sl-input-border-color: var(--sqm-danger-color-border);
|
|
792
|
+
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
793
|
+
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
672
794
|
}
|
|
673
795
|
|
|
674
796
|
.error-input::part(help-text) {
|
|
@@ -770,7 +892,7 @@ const BankingInfoFormView = (props) => {
|
|
|
770
892
|
: slots.paymentFixedDaySelectSlot))))),
|
|
771
893
|
h("div", { class: classes.BtnContainer },
|
|
772
894
|
h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
773
|
-
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "
|
|
895
|
+
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
|
|
774
896
|
};
|
|
775
897
|
|
|
776
898
|
// Hardcoded in Impact backend
|
|
@@ -1621,6 +1743,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1621
1743
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1622
1744
|
}
|
|
1623
1745
|
|
|
1746
|
+
const style$1 = {
|
|
1747
|
+
Wrapper: {
|
|
1748
|
+
display: "flex",
|
|
1749
|
+
flexDirection: "column",
|
|
1750
|
+
gap: "var(--sl-spacing-medium)",
|
|
1751
|
+
maxWidth: "550px",
|
|
1752
|
+
},
|
|
1753
|
+
HeaderContainer: {
|
|
1754
|
+
display: "flex",
|
|
1755
|
+
flexDirection: "column",
|
|
1756
|
+
},
|
|
1757
|
+
InputsContainer: {
|
|
1758
|
+
display: "flex",
|
|
1759
|
+
gap: "var(--sl-spacing-medium)",
|
|
1760
|
+
position: "relative",
|
|
1761
|
+
flexDirection: "column",
|
|
1762
|
+
},
|
|
1763
|
+
CodeInputContainer: {
|
|
1764
|
+
display: "flex",
|
|
1765
|
+
gap: "var(--sl-spacing-medium)",
|
|
1766
|
+
},
|
|
1767
|
+
CodeInput: {
|
|
1768
|
+
maxWidth: "40px",
|
|
1769
|
+
"&::part(input)": {
|
|
1770
|
+
margin: "0",
|
|
1771
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1772
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1773
|
+
},
|
|
1774
|
+
},
|
|
1775
|
+
CodeInputError: {
|
|
1776
|
+
...ErrorStyles,
|
|
1777
|
+
maxWidth: "40px",
|
|
1778
|
+
"&::part(input)": {
|
|
1779
|
+
margin: "0",
|
|
1780
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1781
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1782
|
+
},
|
|
1783
|
+
},
|
|
1784
|
+
ErrorText: {
|
|
1785
|
+
color: "var(--sl-color-danger-500)",
|
|
1786
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1787
|
+
margin: "0",
|
|
1788
|
+
},
|
|
1789
|
+
ContinueButton: {
|
|
1790
|
+
width: "100%",
|
|
1791
|
+
maxWidth: "100px",
|
|
1792
|
+
},
|
|
1793
|
+
FooterContainer: {
|
|
1794
|
+
display: "flex",
|
|
1795
|
+
flexDirection: "column",
|
|
1796
|
+
},
|
|
1797
|
+
SkeletonOne: {
|
|
1798
|
+
width: "50%",
|
|
1799
|
+
height: "16px",
|
|
1800
|
+
},
|
|
1801
|
+
SkeletonTwo: {
|
|
1802
|
+
width: "30%",
|
|
1803
|
+
height: "34px",
|
|
1804
|
+
},
|
|
1805
|
+
SkeletonThree: {
|
|
1806
|
+
width: "15%",
|
|
1807
|
+
height: "24px",
|
|
1808
|
+
},
|
|
1809
|
+
};
|
|
1810
|
+
const vanillaStyle$1 = `
|
|
1811
|
+
:host {
|
|
1812
|
+
display: block;
|
|
1813
|
+
}
|
|
1814
|
+
:host([hidden]): {
|
|
1815
|
+
display: none;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
`;
|
|
1820
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1821
|
+
const styleString$1 = sheet$1.toString();
|
|
1822
|
+
function WidgetCodeVerificationView(props) {
|
|
1823
|
+
const { states, refs, callbacks, text } = props;
|
|
1824
|
+
const resendCodeText = intl.formatMessage({
|
|
1825
|
+
id: "resendCodeText",
|
|
1826
|
+
defaultMessage: text.resendCodeText,
|
|
1827
|
+
}, {
|
|
1828
|
+
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1829
|
+
e.preventDefault();
|
|
1830
|
+
callbacks.resendEmail();
|
|
1831
|
+
} }, text.resendCodeLabel)),
|
|
1832
|
+
});
|
|
1833
|
+
const codeResentSuccessfully = intl.formatMessage({
|
|
1834
|
+
id: "codeResentSuccessfully",
|
|
1835
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1836
|
+
}, {
|
|
1837
|
+
email: states.email,
|
|
1838
|
+
});
|
|
1839
|
+
const inputClass = states.verifyFailed
|
|
1840
|
+
? sheet$1.classes.CodeInputError
|
|
1841
|
+
: sheet$1.classes.CodeInput;
|
|
1842
|
+
return (h("div", { part: "sqm-base" },
|
|
1843
|
+
h("style", { type: "text/css" },
|
|
1844
|
+
vanillaStyle$1,
|
|
1845
|
+
styleString$1),
|
|
1846
|
+
h("div", { class: sheet$1.classes.Wrapper },
|
|
1847
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1848
|
+
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1849
|
+
id: `emailHeaderText`,
|
|
1850
|
+
defaultMessage: states.verifyFailed
|
|
1851
|
+
? text.reverifyCodeHeaderText
|
|
1852
|
+
: text.verifyCodeHeaderText,
|
|
1853
|
+
}, { email: states.email }))),
|
|
1854
|
+
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1855
|
+
h("b", null, codeResentSuccessfully))),
|
|
1856
|
+
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1857
|
+
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1858
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1859
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1860
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1861
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1862
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1863
|
+
h("sl-input", { class: inputClass, name: "code" })),
|
|
1864
|
+
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1865
|
+
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)),
|
|
1866
|
+
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1867
|
+
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1871
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1872
|
+
$user: UserIdInput!
|
|
1873
|
+
$code: String!
|
|
1874
|
+
) {
|
|
1875
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1876
|
+
verifiedEmail
|
|
1877
|
+
accessKey
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
`;
|
|
1881
|
+
function useWidgetCodeVerification(props) {
|
|
1882
|
+
const host = l();
|
|
1883
|
+
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1884
|
+
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1885
|
+
const [emailSent, setEmailSent] = useState(false);
|
|
1886
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
1887
|
+
const [codeRef, setCodeRef] = useState(null);
|
|
1888
|
+
const [validationError, setValidationError] = useState(false);
|
|
1889
|
+
const [emailError, setEmailError] = useState(false);
|
|
1890
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1891
|
+
useEffect(() => {
|
|
1892
|
+
if (!codeRef)
|
|
1893
|
+
return;
|
|
1894
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1895
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1896
|
+
codeElements.forEach((element, idx) => {
|
|
1897
|
+
element.addEventListener("focus", (e) => {
|
|
1898
|
+
e.target.select();
|
|
1899
|
+
});
|
|
1900
|
+
element.addEventListener("keydown", (e) => {
|
|
1901
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1902
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1905
|
+
element.addEventListener("input", (e) => {
|
|
1906
|
+
const input = e.data;
|
|
1907
|
+
if (!input)
|
|
1908
|
+
return;
|
|
1909
|
+
if (idx === codeElements.length - 1) {
|
|
1910
|
+
e.target.value = input.slice(0, 1);
|
|
1911
|
+
return;
|
|
1912
|
+
}
|
|
1913
|
+
if (input.length > 1) {
|
|
1914
|
+
const rest = input.slice(1);
|
|
1915
|
+
e.target.value = input.slice(0, 1);
|
|
1916
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1917
|
+
inputType: "insertFromPaste",
|
|
1918
|
+
data: rest,
|
|
1919
|
+
}));
|
|
1920
|
+
}
|
|
1921
|
+
codeElements[idx + 1].focus();
|
|
1922
|
+
});
|
|
1923
|
+
});
|
|
1924
|
+
}, [codeRef]);
|
|
1925
|
+
const reset = () => {
|
|
1926
|
+
setShowCode(false);
|
|
1927
|
+
setValidationError(false);
|
|
1928
|
+
};
|
|
1929
|
+
const resendEmail = async () => {
|
|
1930
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1931
|
+
if (!initialized)
|
|
1932
|
+
return;
|
|
1933
|
+
const result = await sendEmail();
|
|
1934
|
+
if (!result) {
|
|
1935
|
+
setEmailError(true);
|
|
1936
|
+
return;
|
|
1937
|
+
}
|
|
1938
|
+
if (emailSent)
|
|
1939
|
+
setEmailResent(true);
|
|
1940
|
+
setEmailSent(true);
|
|
1941
|
+
};
|
|
1942
|
+
const submitCode = async () => {
|
|
1943
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1944
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1945
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1946
|
+
setValidationError(true);
|
|
1947
|
+
return;
|
|
1948
|
+
}
|
|
1949
|
+
let code = "";
|
|
1950
|
+
codeElements.forEach((element) => {
|
|
1951
|
+
code = `${code}${element.value}`;
|
|
1952
|
+
});
|
|
1953
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1954
|
+
if (!initialized)
|
|
1955
|
+
return;
|
|
1956
|
+
setValidationError(false);
|
|
1957
|
+
const res = await verifyEmail(code);
|
|
1958
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1959
|
+
props.onVerification(res.accessKey);
|
|
1960
|
+
reset();
|
|
1961
|
+
}
|
|
1962
|
+
else {
|
|
1963
|
+
setValidationError(true);
|
|
1964
|
+
}
|
|
1965
|
+
};
|
|
1966
|
+
useEffect(() => {
|
|
1967
|
+
// Wait for mutations to be determined from user lookup
|
|
1968
|
+
if (!initialized)
|
|
1969
|
+
return;
|
|
1970
|
+
// email should already exist if user has completed email-verification
|
|
1971
|
+
if (!email)
|
|
1972
|
+
resendEmail();
|
|
1973
|
+
else
|
|
1974
|
+
setEmailSent(true);
|
|
1975
|
+
}, [initialized]);
|
|
1976
|
+
return {
|
|
1977
|
+
refs: {
|
|
1978
|
+
codeWrapperRef: setCodeRef,
|
|
1979
|
+
},
|
|
1980
|
+
states: {
|
|
1981
|
+
email: verificationEmail,
|
|
1982
|
+
emailResent,
|
|
1983
|
+
resendError: sendErrors || verifyErrors,
|
|
1984
|
+
initialiseLoading: !initialized,
|
|
1985
|
+
loading: sendLoading || verifyLoading,
|
|
1986
|
+
verifyFailed: !!validationError,
|
|
1987
|
+
},
|
|
1988
|
+
callbacks: {
|
|
1989
|
+
resendEmail,
|
|
1990
|
+
submitCode,
|
|
1991
|
+
},
|
|
1992
|
+
text: props.getTextProps(),
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
const WidgetCodeVerification = class {
|
|
1997
|
+
constructor(hostRef) {
|
|
1998
|
+
registerInstance(this, hostRef);
|
|
1999
|
+
/**
|
|
2000
|
+
* @uiName Verify code widget header text
|
|
2001
|
+
*/
|
|
2002
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2003
|
+
/**
|
|
2004
|
+
* @uiName Reverify code widget header text
|
|
2005
|
+
*/
|
|
2006
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2007
|
+
/**
|
|
2008
|
+
* Text displayed under verify button
|
|
2009
|
+
* @uiName Resend code text
|
|
2010
|
+
*/
|
|
2011
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2012
|
+
/**
|
|
2013
|
+
* The link that appears in the resend code link
|
|
2014
|
+
* @uiName Resend code label
|
|
2015
|
+
*/
|
|
2016
|
+
this.resendCodeLabel = "Resend code";
|
|
2017
|
+
/**
|
|
2018
|
+
* Link text displayed under verify button
|
|
2019
|
+
* @uiName Resend code text
|
|
2020
|
+
*/
|
|
2021
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2022
|
+
/**
|
|
2023
|
+
* Error text displayed under verification input
|
|
2024
|
+
* @uiName Invalid code text
|
|
2025
|
+
*/
|
|
2026
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2027
|
+
/**
|
|
2028
|
+
* @uiName Verify code button text
|
|
2029
|
+
*/
|
|
2030
|
+
this.verifyText = "Verify";
|
|
2031
|
+
/**
|
|
2032
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2033
|
+
* @uiName Network error message
|
|
2034
|
+
*/
|
|
2035
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2036
|
+
h$1(this);
|
|
2037
|
+
}
|
|
2038
|
+
disconnectedCallback() { }
|
|
2039
|
+
getTextProps() {
|
|
2040
|
+
return getProps(this);
|
|
2041
|
+
}
|
|
2042
|
+
render() {
|
|
2043
|
+
const props = isDemo()
|
|
2044
|
+
? useDemoWidgetCodeVerification(this)
|
|
2045
|
+
: useWidgetCodeVerification(this);
|
|
2046
|
+
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2049
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2050
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
2051
|
+
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2052
|
+
return cjs({
|
|
2053
|
+
states: {
|
|
2054
|
+
loading: false,
|
|
2055
|
+
email: "test@example.com",
|
|
2056
|
+
emailResent,
|
|
2057
|
+
resendError: false,
|
|
2058
|
+
verifyFailed: false,
|
|
2059
|
+
},
|
|
2060
|
+
refs: {
|
|
2061
|
+
codeWrapperRef: () => { },
|
|
2062
|
+
},
|
|
2063
|
+
callbacks: {
|
|
2064
|
+
resendEmail: async () => setEmailResent(true),
|
|
2065
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2066
|
+
},
|
|
2067
|
+
text: props.getTextProps(),
|
|
2068
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2069
|
+
}
|
|
2070
|
+
|
|
1624
2071
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1625
2072
|
mutation createImpactPublisherTaxDocument(
|
|
1626
2073
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1778,7 +2225,7 @@ function getDocumentType(p) {
|
|
|
1778
2225
|
return undefined;
|
|
1779
2226
|
}
|
|
1780
2227
|
|
|
1781
|
-
const style$
|
|
2228
|
+
const style$2 = {
|
|
1782
2229
|
DocusignStatusContainer: {
|
|
1783
2230
|
width: "100%",
|
|
1784
2231
|
minHeight: "600px",
|
|
@@ -1790,7 +2237,7 @@ const style$1 = {
|
|
|
1790
2237
|
gap: "10px",
|
|
1791
2238
|
margin: "auto",
|
|
1792
2239
|
textAlign: "center",
|
|
1793
|
-
border: "1px solid var(--
|
|
2240
|
+
border: "1px solid var(--sqm-border-color)",
|
|
1794
2241
|
justifyContent: "center",
|
|
1795
2242
|
},
|
|
1796
2243
|
MessageContainer: {
|
|
@@ -1805,13 +2252,13 @@ const style$1 = {
|
|
|
1805
2252
|
},
|
|
1806
2253
|
},
|
|
1807
2254
|
};
|
|
1808
|
-
const sheet$
|
|
1809
|
-
const styleString$
|
|
2255
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2256
|
+
const styleString$2 = sheet$2.toString();
|
|
1810
2257
|
const DocusignExpiredView = (props) => {
|
|
1811
|
-
const { classes } = sheet$
|
|
2258
|
+
const { classes } = sheet$2;
|
|
1812
2259
|
const { text } = props;
|
|
1813
2260
|
return (h("div", null,
|
|
1814
|
-
h("style", { type: "text/css" }, styleString$
|
|
2261
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1815
2262
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1816
2263
|
h("sl-icon", { style: {
|
|
1817
2264
|
width: "50px",
|
|
@@ -1823,10 +2270,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1823
2270
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1824
2271
|
};
|
|
1825
2272
|
const DocusignErrorView = (props) => {
|
|
1826
|
-
const { classes } = sheet$
|
|
2273
|
+
const { classes } = sheet$2;
|
|
1827
2274
|
const { text } = props;
|
|
1828
2275
|
return (h("div", null,
|
|
1829
|
-
h("style", { type: "text/css" }, styleString$
|
|
2276
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1830
2277
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1831
2278
|
h("sl-icon", { style: {
|
|
1832
2279
|
width: "50px",
|
|
@@ -1838,14 +2285,14 @@ const DocusignErrorView = (props) => {
|
|
|
1838
2285
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1839
2286
|
};
|
|
1840
2287
|
const DocusignLoadingView = () => {
|
|
1841
|
-
const { classes } = sheet$
|
|
2288
|
+
const { classes } = sheet$2;
|
|
1842
2289
|
return (h("div", null,
|
|
1843
|
-
h("style", { type: "text/css" }, styleString$
|
|
2290
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1844
2291
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1845
2292
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1846
2293
|
};
|
|
1847
2294
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1848
|
-
const { classes } = sheet$
|
|
2295
|
+
const { classes } = sheet$2;
|
|
1849
2296
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1850
2297
|
const allowedDomains = [
|
|
1851
2298
|
"referralsaasquatch.com",
|
|
@@ -1878,12 +2325,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1878
2325
|
return h(DocusignExpiredView, { text: text });
|
|
1879
2326
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1880
2327
|
return (h("div", { style: { height: iFrameHeight } },
|
|
1881
|
-
h("style", { type: "text/css" }, styleString$
|
|
2328
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1882
2329
|
h("div", { class: classes.IFrameContainer },
|
|
1883
2330
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1884
2331
|
};
|
|
1885
2332
|
|
|
1886
|
-
const style$
|
|
2333
|
+
const style$3 = {
|
|
1887
2334
|
FormWrapper: {
|
|
1888
2335
|
display: "flex",
|
|
1889
2336
|
justifyContent: "flex-start",
|
|
@@ -1973,9 +2420,9 @@ const style$2 = {
|
|
|
1973
2420
|
fontSize: "var(--sl-font-size-medium)",
|
|
1974
2421
|
},
|
|
1975
2422
|
};
|
|
1976
|
-
const sheet$
|
|
1977
|
-
const styleString$
|
|
1978
|
-
const vanillaStyle$
|
|
2423
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2424
|
+
const styleString$3 = sheet$3.toString();
|
|
2425
|
+
const vanillaStyle$2 = `
|
|
1979
2426
|
:host{
|
|
1980
2427
|
display: block;
|
|
1981
2428
|
}
|
|
@@ -1996,11 +2443,11 @@ const vanillaStyle$1 = `
|
|
|
1996
2443
|
const DocusignFormView = (props) => {
|
|
1997
2444
|
var _a;
|
|
1998
2445
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
1999
|
-
const { classes } = sheet$
|
|
2446
|
+
const { classes } = sheet$3;
|
|
2000
2447
|
return (h("div", { class: classes.Container },
|
|
2001
2448
|
h("style", { type: "text/css" },
|
|
2002
|
-
styleString$
|
|
2003
|
-
vanillaStyle$
|
|
2449
|
+
styleString$3,
|
|
2450
|
+
vanillaStyle$2),
|
|
2004
2451
|
h("div", { class: classes.TextContainer },
|
|
2005
2452
|
h("div", null,
|
|
2006
2453
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2010,7 +2457,7 @@ const DocusignFormView = (props) => {
|
|
|
2010
2457
|
h("h3", null, text.taxForm),
|
|
2011
2458
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2012
2459
|
states.loadingError && (h("div", null,
|
|
2013
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2460
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2014
2461
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2015
2462
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2016
2463
|
h("br", null),
|
|
@@ -2020,7 +2467,7 @@ const DocusignFormView = (props) => {
|
|
|
2020
2467
|
}, {
|
|
2021
2468
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2022
2469
|
})))),
|
|
2023
|
-
((_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$
|
|
2470
|
+
((_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 },
|
|
2024
2471
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2025
2472
|
h("strong", null, text.error.generalTitle),
|
|
2026
2473
|
h("br", null),
|
|
@@ -2240,7 +2687,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2240
2687
|
} }, 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
2688
|
};
|
|
2242
2689
|
|
|
2243
|
-
const style$
|
|
2690
|
+
const style$4 = {
|
|
2244
2691
|
FormWrapper: {
|
|
2245
2692
|
display: "flex",
|
|
2246
2693
|
justifyContent: "flex-start",
|
|
@@ -2372,9 +2819,9 @@ const style$3 = {
|
|
|
2372
2819
|
},
|
|
2373
2820
|
},
|
|
2374
2821
|
};
|
|
2375
|
-
const sheet$
|
|
2376
|
-
const styleString$
|
|
2377
|
-
const vanillaStyle$
|
|
2822
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2823
|
+
const styleString$4 = sheet$4.toString();
|
|
2824
|
+
const vanillaStyle$3 = `
|
|
2378
2825
|
:host{
|
|
2379
2826
|
display: block;
|
|
2380
2827
|
}
|
|
@@ -2401,11 +2848,11 @@ const vanillaStyle$2 = `
|
|
|
2401
2848
|
const IndirectTaxFormView = (props) => {
|
|
2402
2849
|
var _a;
|
|
2403
2850
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2404
|
-
const { classes } = sheet$
|
|
2851
|
+
const { classes } = sheet$4;
|
|
2405
2852
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2406
2853
|
h("style", { type: "text/css" },
|
|
2407
|
-
styleString$
|
|
2408
|
-
vanillaStyle$
|
|
2854
|
+
styleString$4,
|
|
2855
|
+
vanillaStyle$3),
|
|
2409
2856
|
h("div", { class: classes.TextContainer },
|
|
2410
2857
|
h("div", null,
|
|
2411
2858
|
!states.hideSteps && (h("p", null,
|
|
@@ -2418,7 +2865,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2418
2865
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2419
2866
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2420
2867
|
states.loadingError && (h("div", null,
|
|
2421
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2868
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2422
2869
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2423
2870
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2424
2871
|
h("br", null),
|
|
@@ -2428,7 +2875,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2428
2875
|
}, {
|
|
2429
2876
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2430
2877
|
})))),
|
|
2431
|
-
((_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$
|
|
2878
|
+
((_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 },
|
|
2432
2879
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2433
2880
|
h("strong", null, text.error.generalTitle),
|
|
2434
2881
|
h("br", null),
|
|
@@ -2438,7 +2885,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2438
2885
|
}, {
|
|
2439
2886
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2440
2887
|
}))),
|
|
2441
|
-
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2888
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2442
2889
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2443
2890
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2444
2891
|
h("br", null),
|
|
@@ -2917,7 +3364,7 @@ const IndirectTaxForm = class {
|
|
|
2917
3364
|
};
|
|
2918
3365
|
function useDemoIndirectTaxForm(props) {
|
|
2919
3366
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
2920
|
-
const [option, setOption] = useState(
|
|
3367
|
+
const [option, setOption] = useState(null);
|
|
2921
3368
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2922
3369
|
return cjs({
|
|
2923
3370
|
states: {
|
|
@@ -3311,6 +3758,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3311
3758
|
return demoProps;
|
|
3312
3759
|
}
|
|
3313
3760
|
|
|
3761
|
+
const InvoiceTableDataCell = class {
|
|
3762
|
+
constructor(hostRef) {
|
|
3763
|
+
registerInstance(this, hostRef);
|
|
3764
|
+
this.ignored = true;
|
|
3765
|
+
h$1(this);
|
|
3766
|
+
}
|
|
3767
|
+
disconnectedCallback() { }
|
|
3768
|
+
render() {
|
|
3769
|
+
return this.data;
|
|
3770
|
+
}
|
|
3771
|
+
};
|
|
3772
|
+
|
|
3314
3773
|
const InvoiceTableDataColumn = class {
|
|
3315
3774
|
constructor(hostRef) {
|
|
3316
3775
|
registerInstance(this, hostRef);
|
|
@@ -3329,6 +3788,23 @@ const InvoiceTableDataColumn = class {
|
|
|
3329
3788
|
}
|
|
3330
3789
|
};
|
|
3331
3790
|
|
|
3791
|
+
const RewardTableDateCell = class {
|
|
3792
|
+
constructor(hostRef) {
|
|
3793
|
+
registerInstance(this, hostRef);
|
|
3794
|
+
this.ignored = true;
|
|
3795
|
+
this.locale = "en";
|
|
3796
|
+
h$1(this);
|
|
3797
|
+
}
|
|
3798
|
+
disconnectedCallback() { }
|
|
3799
|
+
render() {
|
|
3800
|
+
var _a, _b;
|
|
3801
|
+
const date = !this.date
|
|
3802
|
+
? "-"
|
|
3803
|
+
: (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
|
|
3804
|
+
return date;
|
|
3805
|
+
}
|
|
3806
|
+
};
|
|
3807
|
+
|
|
3332
3808
|
const InvoiceTableDateColumn = class {
|
|
3333
3809
|
constructor(hostRef) {
|
|
3334
3810
|
registerInstance(this, hostRef);
|
|
@@ -3347,6 +3823,21 @@ const InvoiceTableDateColumn = class {
|
|
|
3347
3823
|
}
|
|
3348
3824
|
};
|
|
3349
3825
|
|
|
3826
|
+
const InvoiceTableDownloadCell = class {
|
|
3827
|
+
constructor(hostRef) {
|
|
3828
|
+
registerInstance(this, hostRef);
|
|
3829
|
+
this.ignored = true;
|
|
3830
|
+
h$1(this);
|
|
3831
|
+
}
|
|
3832
|
+
disconnectedCallback() { }
|
|
3833
|
+
render() {
|
|
3834
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3835
|
+
cursor: pointer;
|
|
3836
|
+
}`;
|
|
3837
|
+
return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "var(--sqm-text-subdued)" }), h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "var(--sqm-text-subdued)" }))))));
|
|
3838
|
+
}
|
|
3839
|
+
};
|
|
3840
|
+
|
|
3350
3841
|
const InvoiceTableGenericColumn = class {
|
|
3351
3842
|
constructor(hostRef) {
|
|
3352
3843
|
registerInstance(this, hostRef);
|
|
@@ -3369,7 +3860,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3369
3860
|
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" }),
|
|
3370
3861
|
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" })));
|
|
3371
3862
|
|
|
3372
|
-
const style$
|
|
3863
|
+
const style$5 = {
|
|
3373
3864
|
CardContainer: {
|
|
3374
3865
|
display: "grid",
|
|
3375
3866
|
gridTemplateColumns: "1fr",
|
|
@@ -3490,6 +3981,22 @@ const style$4 = {
|
|
|
3490
3981
|
margin: 0,
|
|
3491
3982
|
},
|
|
3492
3983
|
},
|
|
3984
|
+
SuccessBadge: {
|
|
3985
|
+
"&::part(base)": {
|
|
3986
|
+
textAlign: "center",
|
|
3987
|
+
whiteSpace: "pre-line",
|
|
3988
|
+
background: "var(--sqm-success-color-icon)",
|
|
3989
|
+
color: "var(--sqm-success-color-text)",
|
|
3990
|
+
},
|
|
3991
|
+
},
|
|
3992
|
+
PrimaryBadge: {
|
|
3993
|
+
"&::part(base)": {
|
|
3994
|
+
textAlign: "center",
|
|
3995
|
+
whiteSpace: "pre-line",
|
|
3996
|
+
background: "var(--sqm-informative-color-icon)",
|
|
3997
|
+
color: "var(--sqm-informative-color-text)",
|
|
3998
|
+
},
|
|
3999
|
+
},
|
|
3493
4000
|
AlertContent: {
|
|
3494
4001
|
display: "flex",
|
|
3495
4002
|
alignItems: "flex-start",
|
|
@@ -3503,7 +4010,7 @@ const style$4 = {
|
|
|
3503
4010
|
},
|
|
3504
4011
|
};
|
|
3505
4012
|
function PayoutDetailsCardView(props) {
|
|
3506
|
-
const sheet = createStyleSheet(style$
|
|
4013
|
+
const sheet = createStyleSheet(style$5);
|
|
3507
4014
|
const styleString = sheet.toString();
|
|
3508
4015
|
const { classes } = sheet;
|
|
3509
4016
|
const { states, text } = props;
|
|
@@ -3517,13 +4024,14 @@ function PayoutDetailsCardView(props) {
|
|
|
3517
4024
|
};
|
|
3518
4025
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3519
4026
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
4027
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3520
4028
|
const statusText = intl.formatMessage({
|
|
3521
4029
|
id: "badgeText",
|
|
3522
4030
|
defaultMessage: statusBadgeText,
|
|
3523
4031
|
}, {
|
|
3524
4032
|
badgeText: status,
|
|
3525
4033
|
});
|
|
3526
|
-
return (h("sl-badge", { pill: true,
|
|
4034
|
+
return (h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
3527
4035
|
};
|
|
3528
4036
|
const thresholdText = intl.formatMessage({
|
|
3529
4037
|
id: "thresholdText",
|
|
@@ -3633,10 +4141,6 @@ const PayoutDetailsCard = class {
|
|
|
3633
4141
|
* @uiName Payout missing information subtext
|
|
3634
4142
|
*/
|
|
3635
4143
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3636
|
-
/**
|
|
3637
|
-
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3638
|
-
*/
|
|
3639
|
-
this.stateController = "{}";
|
|
3640
4144
|
h$1(this);
|
|
3641
4145
|
}
|
|
3642
4146
|
disconnectedCallback() { }
|
|
@@ -3674,10 +4178,1223 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3674
4178
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3675
4179
|
}
|
|
3676
4180
|
|
|
3677
|
-
const
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
4181
|
+
const TableCell = class {
|
|
4182
|
+
constructor(hostRef) {
|
|
4183
|
+
registerInstance(this, hostRef);
|
|
4184
|
+
/** @uiName Column span */
|
|
4185
|
+
this.colspan = 1;
|
|
4186
|
+
/** @uiName Padding */
|
|
4187
|
+
this.padding = "15px 10px";
|
|
4188
|
+
}
|
|
4189
|
+
render() {
|
|
4190
|
+
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4191
|
+
}
|
|
4192
|
+
};
|
|
4193
|
+
|
|
4194
|
+
const TableRow = class {
|
|
4195
|
+
constructor(hostRef) {
|
|
4196
|
+
registerInstance(this, hostRef);
|
|
4197
|
+
/**
|
|
4198
|
+
* @uiName Border
|
|
4199
|
+
*/
|
|
4200
|
+
this.border = "1px solid #EAEAEA";
|
|
4201
|
+
}
|
|
4202
|
+
render() {
|
|
4203
|
+
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4204
|
+
}
|
|
4205
|
+
};
|
|
4206
|
+
|
|
4207
|
+
function getCurrentStep(user) {
|
|
4208
|
+
var _a, _b;
|
|
4209
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4210
|
+
return "/1";
|
|
4211
|
+
}
|
|
4212
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4213
|
+
// If they do have a required document, look at current document
|
|
4214
|
+
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4215
|
+
return "/3";
|
|
4216
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4217
|
+
return "/4";
|
|
4218
|
+
return "/dashboard";
|
|
4219
|
+
}
|
|
4220
|
+
function useTaxAndCash() {
|
|
4221
|
+
var _a, _b, _c, _d, _e;
|
|
4222
|
+
const host = _();
|
|
4223
|
+
const user = J();
|
|
4224
|
+
const locale = L();
|
|
4225
|
+
// State for current step of form
|
|
4226
|
+
const [step, setStep] = In({
|
|
4227
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4228
|
+
initialValue: "/loading",
|
|
4229
|
+
});
|
|
4230
|
+
// State for when to hide steps, or override certain actions
|
|
4231
|
+
const [context, _setContext] = In({
|
|
4232
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4233
|
+
initialValue: {},
|
|
4234
|
+
});
|
|
4235
|
+
// State to carry user form information into step 2
|
|
4236
|
+
const [userFormContext, _setUserFormContext] = In({
|
|
4237
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4238
|
+
initialValue: {
|
|
4239
|
+
firstName: undefined,
|
|
4240
|
+
lastName: undefined,
|
|
4241
|
+
email: undefined,
|
|
4242
|
+
countryCode: undefined,
|
|
4243
|
+
currency: undefined,
|
|
4244
|
+
},
|
|
4245
|
+
});
|
|
4246
|
+
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4247
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4248
|
+
initialValue: [],
|
|
4249
|
+
});
|
|
4250
|
+
const [_countriesContext, _setCountriesContext] = In({
|
|
4251
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4252
|
+
initialValue: [],
|
|
4253
|
+
});
|
|
4254
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4255
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4256
|
+
initialValue: [],
|
|
4257
|
+
});
|
|
4258
|
+
const { data, errors } = Sn({
|
|
4259
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4260
|
+
query: GET_USER,
|
|
4261
|
+
skip: !user,
|
|
4262
|
+
options: {
|
|
4263
|
+
batch: false,
|
|
4264
|
+
},
|
|
4265
|
+
});
|
|
4266
|
+
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
4267
|
+
userFormContext.countryCode;
|
|
4268
|
+
Sn({
|
|
4269
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4270
|
+
query: GET_COUNTRIES,
|
|
4271
|
+
skip: !user,
|
|
4272
|
+
});
|
|
4273
|
+
const { data: financeNetworkData, refetch } = Sn({
|
|
4274
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4275
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4276
|
+
skip: !user,
|
|
4277
|
+
variables: {
|
|
4278
|
+
filter: getFinanceNetworkFilter(),
|
|
4279
|
+
},
|
|
4280
|
+
});
|
|
4281
|
+
const { data: currenciesData } = Sn({
|
|
4282
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4283
|
+
query: GET_CURRENCIES,
|
|
4284
|
+
skip: !user,
|
|
4285
|
+
variables: {
|
|
4286
|
+
locale,
|
|
4287
|
+
},
|
|
4288
|
+
});
|
|
4289
|
+
const supportedCurrencies = useMemo(() => {
|
|
4290
|
+
var _a, _b;
|
|
4291
|
+
// Filter out any currencies not supported by finance network settings
|
|
4292
|
+
const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
|
|
4293
|
+
var _a, _b;
|
|
4294
|
+
const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
|
|
4295
|
+
// Currency not in supported list
|
|
4296
|
+
if (!currency)
|
|
4297
|
+
return agg;
|
|
4298
|
+
// Currency already added to list
|
|
4299
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4300
|
+
return agg;
|
|
4301
|
+
// Currency not supported by selected country
|
|
4302
|
+
if (userFormContext.countryCode &&
|
|
4303
|
+
settings.countryCode !== countryCode)
|
|
4304
|
+
return agg;
|
|
4305
|
+
return [...agg, currency];
|
|
4306
|
+
}, []);
|
|
4307
|
+
return allValidCurrencies;
|
|
4308
|
+
}, [financeNetworkData, countryCode]);
|
|
4309
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4310
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4311
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4312
|
+
// filter out any duplicate countries and null countryCode
|
|
4313
|
+
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4314
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4315
|
+
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4316
|
+
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4317
|
+
.sort(sortByName)
|
|
4318
|
+
.reduce((prev, countryObj) => {
|
|
4319
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4320
|
+
return [countryObj, ...prev];
|
|
4321
|
+
return [...prev, countryObj];
|
|
4322
|
+
}, []), [availableCountries]);
|
|
4323
|
+
useEffect(() => {
|
|
4324
|
+
if (sortedCountries)
|
|
4325
|
+
setSortedCountriesContext(sortedCountries);
|
|
4326
|
+
}, [sortedCountries]);
|
|
4327
|
+
useEffect(() => {
|
|
4328
|
+
if (supportedCurrencies)
|
|
4329
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4330
|
+
}, [supportedCurrencies]);
|
|
4331
|
+
useEffect(() => {
|
|
4332
|
+
if (errors) {
|
|
4333
|
+
setStep("/error");
|
|
4334
|
+
return;
|
|
4335
|
+
}
|
|
4336
|
+
if (!host || !user)
|
|
4337
|
+
return;
|
|
4338
|
+
if (data) {
|
|
4339
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4340
|
+
if (!user || step !== "/loading")
|
|
4341
|
+
return;
|
|
4342
|
+
const currentStep = getCurrentStep(user);
|
|
4343
|
+
setStep(currentStep);
|
|
4344
|
+
}
|
|
4345
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4346
|
+
function getFinanceNetworkFilter() {
|
|
4347
|
+
var _a, _b, _c;
|
|
4348
|
+
if (step === "/1")
|
|
4349
|
+
return {};
|
|
4350
|
+
if (step === "/4")
|
|
4351
|
+
return { currency_eq: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency };
|
|
4352
|
+
if (countryCode)
|
|
4353
|
+
return {
|
|
4354
|
+
countryCode_eq: countryCode,
|
|
4355
|
+
};
|
|
4356
|
+
return {};
|
|
4357
|
+
}
|
|
4358
|
+
return {
|
|
4359
|
+
step,
|
|
4360
|
+
setStep,
|
|
4361
|
+
context,
|
|
4362
|
+
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4363
|
+
loading: step === "/loading",
|
|
4364
|
+
};
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
const TaxAndCashMonolith = class {
|
|
4368
|
+
constructor(hostRef) {
|
|
4369
|
+
registerInstance(this, hostRef);
|
|
4370
|
+
/*---------------------------------------------------------------------------------
|
|
4371
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4372
|
+
-----------------------------------------------------------------------------------*/
|
|
4373
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4374
|
+
STEP 1 PROPS:
|
|
4375
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4376
|
+
/**
|
|
4377
|
+
* @uiName First name field label
|
|
4378
|
+
* @uiGroup Step 1 Properties
|
|
4379
|
+
*/
|
|
4380
|
+
this.step1_firstName = "First name";
|
|
4381
|
+
/**
|
|
4382
|
+
* @uiName Last name field label
|
|
4383
|
+
* @uiGroup Step 1 Properties
|
|
4384
|
+
*/
|
|
4385
|
+
this.step1_lastName = "Last name";
|
|
4386
|
+
/**
|
|
4387
|
+
* @uiName Email field label
|
|
4388
|
+
* @uiGroup Step 1 Properties
|
|
4389
|
+
*/
|
|
4390
|
+
this.step1_email = "Email";
|
|
4391
|
+
/**
|
|
4392
|
+
* @uiName Country field label
|
|
4393
|
+
* @uiGroup Step 1 Properties
|
|
4394
|
+
*/
|
|
4395
|
+
this.step1_country = "Country";
|
|
4396
|
+
/**
|
|
4397
|
+
* @uiName Phone number field label
|
|
4398
|
+
* @uiGroup Step 1 Properties
|
|
4399
|
+
*/
|
|
4400
|
+
this.step1_phoneNumber = "Phone number";
|
|
4401
|
+
/**
|
|
4402
|
+
* @uiName Address field label
|
|
4403
|
+
* @uiGroup Step 1 Properties
|
|
4404
|
+
*/
|
|
4405
|
+
this.step1_address = "Address";
|
|
4406
|
+
/**
|
|
4407
|
+
* @uiName City field label
|
|
4408
|
+
* @uiGroup Step 1 Properties
|
|
4409
|
+
*/
|
|
4410
|
+
this.step1_city = "City";
|
|
4411
|
+
/**
|
|
4412
|
+
* @uiName State field label for states
|
|
4413
|
+
* @uiGroup Step 1 Properties
|
|
4414
|
+
*/
|
|
4415
|
+
this.step1_state = "State";
|
|
4416
|
+
/**
|
|
4417
|
+
* @uiName State field label for provinces
|
|
4418
|
+
* @uiGroup Step 1 Properties
|
|
4419
|
+
*/
|
|
4420
|
+
this.step1_province = "Province";
|
|
4421
|
+
/**
|
|
4422
|
+
* @uiName State field label for regions
|
|
4423
|
+
* @uiGroup Step 1 Properties
|
|
4424
|
+
*/
|
|
4425
|
+
this.step1_region = "Region";
|
|
4426
|
+
/**
|
|
4427
|
+
* @uiName Postal code field label
|
|
4428
|
+
* @uiGroup Step 1 Properties
|
|
4429
|
+
*/
|
|
4430
|
+
this.step1_postalCode = "Postal code";
|
|
4431
|
+
/**
|
|
4432
|
+
* @uiName Currency field label
|
|
4433
|
+
* @uiGroup Step 1 Properties
|
|
4434
|
+
*/
|
|
4435
|
+
this.step1_currency = "Currency";
|
|
4436
|
+
/**
|
|
4437
|
+
* @uiName Currency field help text
|
|
4438
|
+
* @uiGroup Step 1 Properties
|
|
4439
|
+
*/
|
|
4440
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4441
|
+
/**
|
|
4442
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4443
|
+
* @uiName Terms and conditions checkbox
|
|
4444
|
+
* @uiGroup Step 1 Properties
|
|
4445
|
+
*/
|
|
4446
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4447
|
+
/**
|
|
4448
|
+
* @uiName Step 1 title
|
|
4449
|
+
* @uiGroup Step 1 Properties
|
|
4450
|
+
*/
|
|
4451
|
+
this.step1_personalInformation = "Personal Information";
|
|
4452
|
+
/**
|
|
4453
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4454
|
+
* @uiName Terms and conditions text
|
|
4455
|
+
* @uiGroup Step 1 Properties
|
|
4456
|
+
* @uiWidget textArea
|
|
4457
|
+
*/
|
|
4458
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4459
|
+
/**
|
|
4460
|
+
* The link that appears in the terms and conditions checkbox
|
|
4461
|
+
* @uiName Terms and conditions link
|
|
4462
|
+
* @uiGroup Step 1 Properties
|
|
4463
|
+
*/
|
|
4464
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4465
|
+
/**
|
|
4466
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4467
|
+
* @uiName Currency field placeholder text
|
|
4468
|
+
* @uiGroup Step 1 Properties
|
|
4469
|
+
*/
|
|
4470
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4471
|
+
/**
|
|
4472
|
+
|
|
4473
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4474
|
+
STEP 2 PROPS:
|
|
4475
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4476
|
+
/**
|
|
4477
|
+
* @uiName Step 2 title
|
|
4478
|
+
* @uiGroup Step 2 Properties
|
|
4479
|
+
*/
|
|
4480
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4481
|
+
/**
|
|
4482
|
+
* Displayed under the title of this step.
|
|
4483
|
+
* @uiName Step 2 description
|
|
4484
|
+
* @uiGroup Step 2 Properties
|
|
4485
|
+
* @uiWidget textArea
|
|
4486
|
+
*/
|
|
4487
|
+
this.step2_indirectTaxDescription = "Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";
|
|
4488
|
+
/**
|
|
4489
|
+
* Displayed with indirect tax registration options.
|
|
4490
|
+
* @uiName Indirect tax details section title
|
|
4491
|
+
* @uiGroup Step 2 Properties
|
|
4492
|
+
*/
|
|
4493
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4494
|
+
/**
|
|
4495
|
+
* @uiName Registered for indirect tax option
|
|
4496
|
+
* @uiGroup Step 2 Properties
|
|
4497
|
+
* @uiWidget textArea
|
|
4498
|
+
*
|
|
4499
|
+
*/
|
|
4500
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4501
|
+
/**
|
|
4502
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4503
|
+
* @uiName Registered for indirect tax option description
|
|
4504
|
+
* @uiGroup Step 2 Properties
|
|
4505
|
+
*/
|
|
4506
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4507
|
+
/**
|
|
4508
|
+
* @uiName Not registered for indirect tax option
|
|
4509
|
+
* @uiGroup Step 2 Properties
|
|
4510
|
+
* @uiWidget textArea
|
|
4511
|
+
*/
|
|
4512
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4513
|
+
/**
|
|
4514
|
+
* Participants based in the US are considered not registered.
|
|
4515
|
+
* @uiName Not registered for indirect tax option description
|
|
4516
|
+
* @uiGroup Step 2 Properties
|
|
4517
|
+
*/
|
|
4518
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4519
|
+
/**
|
|
4520
|
+
* @uiName Region of indirect tax field label
|
|
4521
|
+
* @uiGroup Step 2 Properties
|
|
4522
|
+
*/
|
|
4523
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4524
|
+
/**
|
|
4525
|
+
* @uiName Indirect tax number field label
|
|
4526
|
+
* @uiGroup Step 2 Properties
|
|
4527
|
+
*/
|
|
4528
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4529
|
+
/**
|
|
4530
|
+
* @uiName Province field label
|
|
4531
|
+
* @uiGroup Step 2 Properties
|
|
4532
|
+
*/
|
|
4533
|
+
this.step2_province = "Province";
|
|
4534
|
+
/**
|
|
4535
|
+
* @uiName Missing indirect tax number error message
|
|
4536
|
+
* @uiGroup Step 2 Properties
|
|
4537
|
+
*/
|
|
4538
|
+
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
4539
|
+
/**
|
|
4540
|
+
* Displayed to participants registered for QST.
|
|
4541
|
+
* @uiName QST number field label
|
|
4542
|
+
* @uiGroup Step 2 Properties
|
|
4543
|
+
*/
|
|
4544
|
+
this.step2_qstNumber = "QST number";
|
|
4545
|
+
/**
|
|
4546
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4547
|
+
* @uiName QST tax checkbox
|
|
4548
|
+
* @uiGroup Step 2 Properties
|
|
4549
|
+
*/
|
|
4550
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4551
|
+
/**
|
|
4552
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4553
|
+
* @uiName Spain income tax checkbox
|
|
4554
|
+
* @uiGroup Step 2 Properties
|
|
4555
|
+
* @uiWidget textArea
|
|
4556
|
+
*/
|
|
4557
|
+
this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
|
|
4558
|
+
/**
|
|
4559
|
+
* Displayed to participants registered in Spain.
|
|
4560
|
+
* @uiName Sub-region of indirect tax field label
|
|
4561
|
+
* @uiGroup Step 2 Properties
|
|
4562
|
+
*/
|
|
4563
|
+
this.step2_subRegion = "Sub-region";
|
|
4564
|
+
/**
|
|
4565
|
+
* @uiName Income tax field label
|
|
4566
|
+
* @uiGroup Step 2 Properties
|
|
4567
|
+
*/
|
|
4568
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4569
|
+
/**
|
|
4570
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4571
|
+
* @uiName Submission confirmation alert
|
|
4572
|
+
* @uiGroup Step 2 Properties
|
|
4573
|
+
* @uiWidget textArea
|
|
4574
|
+
*/
|
|
4575
|
+
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
4576
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4577
|
+
STEP 3 PROPS:
|
|
4578
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4579
|
+
/**
|
|
4580
|
+
* @uiName Step 3 title
|
|
4581
|
+
* @uiGroup Step 3 Properties
|
|
4582
|
+
*/
|
|
4583
|
+
this.step3_taxForm = "Tax form";
|
|
4584
|
+
/**
|
|
4585
|
+
* Display the type of tax form that the participant must submit.
|
|
4586
|
+
* @uiName Tax form name
|
|
4587
|
+
* @uiGroup Step 3 Properties
|
|
4588
|
+
*/
|
|
4589
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4590
|
+
/**
|
|
4591
|
+
* @uiName Participant type field label
|
|
4592
|
+
* @uiGroup Step 3 Properties
|
|
4593
|
+
*/
|
|
4594
|
+
this.step3_participantType = "Participant type";
|
|
4595
|
+
/**
|
|
4596
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4597
|
+
* @uiName Business representative participant type label
|
|
4598
|
+
* @uiGroup Step 3 Properties
|
|
4599
|
+
*/
|
|
4600
|
+
this.step3_businessEntity = "I represent a business";
|
|
4601
|
+
/**
|
|
4602
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4603
|
+
* @uiName Individual participant type label
|
|
4604
|
+
* @uiGroup Step 3 Properties
|
|
4605
|
+
*/
|
|
4606
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4607
|
+
/**
|
|
4608
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4609
|
+
* @uiName W-9 tax form description
|
|
4610
|
+
* @uiGroup Step 3 Properties
|
|
4611
|
+
* @uiWidget textArea
|
|
4612
|
+
*/
|
|
4613
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4614
|
+
/**
|
|
4615
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4616
|
+
* @uiName W-8 BEN tax form description
|
|
4617
|
+
* @uiGroup Step 3 Properties
|
|
4618
|
+
* @uiWidget textArea
|
|
4619
|
+
*/
|
|
4620
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4621
|
+
/**
|
|
4622
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4623
|
+
* @uiName W-8 BEN-E tax form description
|
|
4624
|
+
* @uiGroup Step 3 Properties
|
|
4625
|
+
* @uiWidget textArea
|
|
4626
|
+
*/
|
|
4627
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4628
|
+
/**
|
|
4629
|
+
* This appears inside the Docusign frame.
|
|
4630
|
+
* @uiName Docusign session expired message
|
|
4631
|
+
* @uiGroup Step 3 Properties
|
|
4632
|
+
* @uiWidget textArea
|
|
4633
|
+
*/
|
|
4634
|
+
this.step3_docusignExpired = "For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";
|
|
4635
|
+
/**
|
|
4636
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4637
|
+
* @uiName Docusign timed session message
|
|
4638
|
+
* @uiGroup Step 3 Properties
|
|
4639
|
+
* @uiWidget textArea
|
|
4640
|
+
*/
|
|
4641
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4642
|
+
/**
|
|
4643
|
+
* This appears inside the Docusign frame.
|
|
4644
|
+
* @uiName Docusign form error message
|
|
4645
|
+
* @uiGroup Step 3 Properties
|
|
4646
|
+
* @uiWidget textArea
|
|
4647
|
+
*/
|
|
4648
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4649
|
+
/**
|
|
4650
|
+
* @uiName Refresh page button label
|
|
4651
|
+
* @uiGroup Step 3 Properties
|
|
4652
|
+
*/
|
|
4653
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4654
|
+
/**
|
|
4655
|
+
* @uiName Exit button text
|
|
4656
|
+
* @uiGroup Step 3 Properties
|
|
4657
|
+
*/
|
|
4658
|
+
this.step3_exitButton = "Exit";
|
|
4659
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4660
|
+
STEP 4 PROPS:
|
|
4661
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4662
|
+
/**
|
|
4663
|
+
* @uiName Step 4 title
|
|
4664
|
+
* @uiGroup Step 4 Properties
|
|
4665
|
+
*/
|
|
4666
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4667
|
+
/**
|
|
4668
|
+
* @uiName Direct to bank payout option
|
|
4669
|
+
* @uiGroup Step 4 Properties
|
|
4670
|
+
*/
|
|
4671
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4672
|
+
/**
|
|
4673
|
+
* @uiName PayPal payout option
|
|
4674
|
+
* @uiGroup Step 4 Properties
|
|
4675
|
+
*/
|
|
4676
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4677
|
+
/**
|
|
4678
|
+
* @uiName Threshold balance payment schedule option
|
|
4679
|
+
* @uiGroup Step 4 Properties
|
|
4680
|
+
*/
|
|
4681
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4682
|
+
/**
|
|
4683
|
+
* @uiName Fixed day payment schedule option
|
|
4684
|
+
* @uiGroup Step 4 Properties
|
|
4685
|
+
*/
|
|
4686
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4687
|
+
/**
|
|
4688
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4689
|
+
* @uiName Payment day field label
|
|
4690
|
+
* @uiGroup Step 4 Properties
|
|
4691
|
+
*/
|
|
4692
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4693
|
+
/**
|
|
4694
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4695
|
+
* @uiName Payment threshold field label
|
|
4696
|
+
* @uiGroup Step 4 Properties
|
|
4697
|
+
*/
|
|
4698
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4699
|
+
/**
|
|
4700
|
+
* One of two payment day options
|
|
4701
|
+
* @uiName First of month payday option
|
|
4702
|
+
* @uiGroup Step 4 Properties
|
|
4703
|
+
*/
|
|
4704
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4705
|
+
/**
|
|
4706
|
+
* One of two payment day options
|
|
4707
|
+
* @uiName Fifteenth of month payday option
|
|
4708
|
+
* @uiGroup Step 4 Properties
|
|
4709
|
+
*/
|
|
4710
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4711
|
+
/**
|
|
4712
|
+
* @uiName Payment method section header
|
|
4713
|
+
* @uiGroup Step 4 Properties
|
|
4714
|
+
*/
|
|
4715
|
+
this.step4_paymentMethod = "Payment method";
|
|
4716
|
+
/**
|
|
4717
|
+
* @uiName Payment schedule section header
|
|
4718
|
+
* @uiGroup Step 4 Properties
|
|
4719
|
+
*/
|
|
4720
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4721
|
+
/**
|
|
4722
|
+
* @uiName Payment method section description
|
|
4723
|
+
* @uiGroup Step 4 Properties
|
|
4724
|
+
*/
|
|
4725
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4726
|
+
/**
|
|
4727
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4728
|
+
* @uiName PayPal email field label
|
|
4729
|
+
* @uiGroup Step 4 Properties
|
|
4730
|
+
*/
|
|
4731
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4732
|
+
/**
|
|
4733
|
+
* @uiName Bank country field label
|
|
4734
|
+
* @uiGroup Step 4 Properties
|
|
4735
|
+
*/
|
|
4736
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4737
|
+
/**
|
|
4738
|
+
* @uiName Beneficiary account field label
|
|
4739
|
+
* @uiGroup Step 4 Properties
|
|
4740
|
+
*/
|
|
4741
|
+
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4742
|
+
/**
|
|
4743
|
+
* @uiName Bank account type field label
|
|
4744
|
+
* @uiGroup Step 4 Properties
|
|
4745
|
+
*/
|
|
4746
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4747
|
+
/**
|
|
4748
|
+
* @uiName Checking account option
|
|
4749
|
+
* @uiGroup Step 4 Properties
|
|
4750
|
+
*/
|
|
4751
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4752
|
+
/**
|
|
4753
|
+
* Label text for the savings account type select item
|
|
4754
|
+
* @uiName Savings account options
|
|
4755
|
+
* @uiGroup Step 4 Properties
|
|
4756
|
+
*/
|
|
4757
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4758
|
+
/**
|
|
4759
|
+
* @uiName Bank account number field label
|
|
4760
|
+
* @uiGroup Step 4 Properties
|
|
4761
|
+
*/
|
|
4762
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4763
|
+
/**
|
|
4764
|
+
* @uiName IBAN field label
|
|
4765
|
+
* @uiGroup Step 4 Properties
|
|
4766
|
+
*/
|
|
4767
|
+
this.step4_ibanLabel = "IBAN";
|
|
4768
|
+
/**
|
|
4769
|
+
* @uiName SWIFT code field label
|
|
4770
|
+
* @uiGroup Step 4 Properties
|
|
4771
|
+
*/
|
|
4772
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4773
|
+
/**
|
|
4774
|
+
* @uiName Routing code field label
|
|
4775
|
+
* @uiGroup Step 4 Properties
|
|
4776
|
+
*/
|
|
4777
|
+
this.step4_routingCodeLabel = "{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";
|
|
4778
|
+
/**
|
|
4779
|
+
* @uiName Bank name field label
|
|
4780
|
+
* @uiGroup Step 4 Properties
|
|
4781
|
+
*/
|
|
4782
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4783
|
+
/**
|
|
4784
|
+
* @uiName Classification entity field label
|
|
4785
|
+
* @uiGroup Step 4 Properties
|
|
4786
|
+
*/
|
|
4787
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4788
|
+
/**
|
|
4789
|
+
* One of three options listed for the classification field
|
|
4790
|
+
* @uiName Business classification option
|
|
4791
|
+
* @uiGroup Step 4 Properties
|
|
4792
|
+
*/
|
|
4793
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4794
|
+
/**
|
|
4795
|
+
* One of three options listed for the classification field
|
|
4796
|
+
* @uiName Individual classification option
|
|
4797
|
+
* @uiGroup Step 4 Properties
|
|
4798
|
+
*/
|
|
4799
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4800
|
+
/**
|
|
4801
|
+
* One of three options listed for the classification field
|
|
4802
|
+
* @uiName Foreign classification option
|
|
4803
|
+
* @uiGroup Step 4 Properties
|
|
4804
|
+
*/
|
|
4805
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4806
|
+
/**
|
|
4807
|
+
* @uiName Classification CPF field label
|
|
4808
|
+
* @uiGroup Step 4 Properties
|
|
4809
|
+
*/
|
|
4810
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4811
|
+
/**
|
|
4812
|
+
* @uiName Patronymic name field label
|
|
4813
|
+
* @uiGroup Step 4 Properties
|
|
4814
|
+
*/
|
|
4815
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4816
|
+
/**
|
|
4817
|
+
* @uiName VO code field label
|
|
4818
|
+
* @uiGroup Step 4 Properties
|
|
4819
|
+
*/
|
|
4820
|
+
this.step4_voCodeLabel = "VO code";
|
|
4821
|
+
/**
|
|
4822
|
+
* @uiName Agency code field label
|
|
4823
|
+
* @uiGroup Step 4 Properties
|
|
4824
|
+
*/
|
|
4825
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4826
|
+
/**
|
|
4827
|
+
* @uiName Branch code field label
|
|
4828
|
+
* @uiGroup Step 4 Properties
|
|
4829
|
+
*/
|
|
4830
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4831
|
+
/**
|
|
4832
|
+
* Label text for the classification input field
|
|
4833
|
+
* @uiName Classification field label
|
|
4834
|
+
* @uiGroup Step 4 Properties
|
|
4835
|
+
*/
|
|
4836
|
+
this.step4_classificationLabel = "Classification";
|
|
4837
|
+
/**
|
|
4838
|
+
* @uiName Taxpayer ID field label
|
|
4839
|
+
* @uiGroup Step 4 Properties
|
|
4840
|
+
*/
|
|
4841
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4842
|
+
/**
|
|
4843
|
+
* @uiName Bank address field label
|
|
4844
|
+
* @uiGroup Step 4 Properties
|
|
4845
|
+
*/
|
|
4846
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4847
|
+
/**
|
|
4848
|
+
* @uiName Bank city field label
|
|
4849
|
+
* @uiGroup Step 4 Properties
|
|
4850
|
+
*/
|
|
4851
|
+
this.step4_bankCityLabel = "Bank city";
|
|
4852
|
+
/**
|
|
4853
|
+
* @uiName Bank province/state field label
|
|
4854
|
+
* @uiGroup Step 4 Properties
|
|
4855
|
+
*/
|
|
4856
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
4857
|
+
/**
|
|
4858
|
+
* @uiName Bank postal code field label
|
|
4859
|
+
* @uiGroup Step 4 Properties
|
|
4860
|
+
*/
|
|
4861
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4862
|
+
/**
|
|
4863
|
+
* Default payment method to the participants’ bank account.
|
|
4864
|
+
* @uiName EFT withdrawal payment method
|
|
4865
|
+
* @uiGroup Step 4 Properties
|
|
4866
|
+
*/
|
|
4867
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4868
|
+
/**
|
|
4869
|
+
* @uiName FX Wire Processing fee text
|
|
4870
|
+
* @uiGroup Step 4 Properties
|
|
4871
|
+
*/
|
|
4872
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4873
|
+
/**
|
|
4874
|
+
* @uiName Text for verify email dialog
|
|
4875
|
+
* @uiGroup Step 4 Properties
|
|
4876
|
+
*/
|
|
4877
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4878
|
+
/**
|
|
4879
|
+
* @uiName Verify code widget header text
|
|
4880
|
+
* @uiGroup Step 4 Properties
|
|
4881
|
+
*/
|
|
4882
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4883
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4884
|
+
DASHBOARD PROPS:
|
|
4885
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4886
|
+
/**
|
|
4887
|
+
* @uiName Active tax form badge label
|
|
4888
|
+
* @uiGroup Dashboard Properties
|
|
4889
|
+
*/
|
|
4890
|
+
this.dashboard_statusTextActive = "Active";
|
|
4891
|
+
/**
|
|
4892
|
+
* @uiName Invalid tax form badge label
|
|
4893
|
+
* @uiGroup Dashboard Properties
|
|
4894
|
+
*/
|
|
4895
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4896
|
+
/**
|
|
4897
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4898
|
+
*
|
|
4899
|
+
* @uiName Not verified tax form badge label
|
|
4900
|
+
* @uiGroup Dashboard Properties
|
|
4901
|
+
*/
|
|
4902
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4903
|
+
/**
|
|
4904
|
+
* Additional text displayed next to the tax form's status badge
|
|
4905
|
+
*
|
|
4906
|
+
* @uiName Active W-9 description
|
|
4907
|
+
* @uiGroup Dashboard Properties
|
|
4908
|
+
*/
|
|
4909
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4910
|
+
/**
|
|
4911
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4912
|
+
*
|
|
4913
|
+
* @uiName Active W-8 description
|
|
4914
|
+
* @uiGroup Dashboard Properties
|
|
4915
|
+
*/
|
|
4916
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4917
|
+
/**
|
|
4918
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4919
|
+
*
|
|
4920
|
+
* @uiName Tax form in review description
|
|
4921
|
+
* @uiGroup Dashboard Properties
|
|
4922
|
+
*/
|
|
4923
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4924
|
+
/**
|
|
4925
|
+
* Part of the alert displayed at the top of the page.
|
|
4926
|
+
*
|
|
4927
|
+
* @uiName Inactive W-9 error message title
|
|
4928
|
+
* @uiGroup Dashboard Properties
|
|
4929
|
+
* @uiWidget textArea
|
|
4930
|
+
*/
|
|
4931
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4932
|
+
/**
|
|
4933
|
+
* Part of the alert displayed at the top of the page.
|
|
4934
|
+
*
|
|
4935
|
+
* @uiName Inactive W-8 error message title
|
|
4936
|
+
* @uiGroup Dashboard Properties
|
|
4937
|
+
* @uiWidget textArea
|
|
4938
|
+
*/
|
|
4939
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4940
|
+
/**
|
|
4941
|
+
* Part of the alert displayed at the top of the page.
|
|
4942
|
+
*
|
|
4943
|
+
* @uiName Inactive W-9 error message description
|
|
4944
|
+
* @uiGroup Dashboard Properties
|
|
4945
|
+
* @uiWidget textArea
|
|
4946
|
+
*/
|
|
4947
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4948
|
+
/**
|
|
4949
|
+
* Part of the alert displayed at the top of the page.
|
|
4950
|
+
*
|
|
4951
|
+
* @uiName Inactive W-8 error message description
|
|
4952
|
+
* @uiGroup Dashboard Properties
|
|
4953
|
+
*/
|
|
4954
|
+
this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
4955
|
+
/**
|
|
4956
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4957
|
+
*
|
|
4958
|
+
* @uiName Invalid tax form description
|
|
4959
|
+
* @uiGroup Dashboard Properties
|
|
4960
|
+
* @uiWidget textArea
|
|
4961
|
+
*/
|
|
4962
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4963
|
+
/**
|
|
4964
|
+
* @uiName Payout information section header
|
|
4965
|
+
* @uiGroup Dashboard Properties
|
|
4966
|
+
*/
|
|
4967
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4968
|
+
/**
|
|
4969
|
+
* @uiName Tax document section header
|
|
4970
|
+
* @uiGroup Dashboard Properties
|
|
4971
|
+
*/
|
|
4972
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4973
|
+
/**
|
|
4974
|
+
* Displayed under the tax document section header.
|
|
4975
|
+
*
|
|
4976
|
+
* @uiName Tax documents section description
|
|
4977
|
+
* @uiGroup Dashboard Properties
|
|
4978
|
+
*/
|
|
4979
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4980
|
+
/**
|
|
4981
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4982
|
+
*
|
|
4983
|
+
* @uiName Tax form not required text
|
|
4984
|
+
* @uiGroup Dashboard Properties
|
|
4985
|
+
* @uiWidget textArea
|
|
4986
|
+
*/
|
|
4987
|
+
this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4988
|
+
/**
|
|
4989
|
+
*
|
|
4990
|
+
* @uiName Indirect tax section header
|
|
4991
|
+
* @uiGroup Dashboard Properties
|
|
4992
|
+
*/
|
|
4993
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4994
|
+
/**
|
|
4995
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4996
|
+
*
|
|
4997
|
+
* @uiName Canadian province of indirect tax
|
|
4998
|
+
* @uiGroup Dashboard Properties
|
|
4999
|
+
*/
|
|
5000
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5001
|
+
/**
|
|
5002
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5003
|
+
*
|
|
5004
|
+
* @uiName Indirect tax country
|
|
5005
|
+
* @uiGroup Dashboard Properties
|
|
5006
|
+
*/
|
|
5007
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5008
|
+
/**
|
|
5009
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5010
|
+
*
|
|
5011
|
+
* @uiName Spanish region of indirect tax
|
|
5012
|
+
* @uiGroup Dashboard Properties
|
|
5013
|
+
*/
|
|
5014
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5015
|
+
/**
|
|
5016
|
+
* @uiName Indirect tax tooltip
|
|
5017
|
+
* @uiGroup Dashboard Properties
|
|
5018
|
+
* @uiWidget textArea
|
|
5019
|
+
*/
|
|
5020
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5021
|
+
/**
|
|
5022
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5023
|
+
*
|
|
5024
|
+
* @uiName Indirect tax details
|
|
5025
|
+
* @uiGroup Dashboard Properties
|
|
5026
|
+
*/
|
|
5027
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5028
|
+
/**
|
|
5029
|
+
* @uiName Submit new tax form button label
|
|
5030
|
+
* @uiGroup Dashboard Properties
|
|
5031
|
+
*/
|
|
5032
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5033
|
+
/**
|
|
5034
|
+
* @uiName Edit payment info button label
|
|
5035
|
+
* @uiGroup Dashboard Properties
|
|
5036
|
+
*/
|
|
5037
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5038
|
+
/**
|
|
5039
|
+
* @uiName Not registered for indirect tax text
|
|
5040
|
+
* @uiGroup Dashboard Properties
|
|
5041
|
+
* @uiWidget textArea
|
|
5042
|
+
*/
|
|
5043
|
+
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
5044
|
+
/**
|
|
5045
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5046
|
+
* @uiName QST indirect tax details
|
|
5047
|
+
* @uiGroup Dashboard Properties
|
|
5048
|
+
*/
|
|
5049
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5050
|
+
/**
|
|
5051
|
+
* @uiName Spain sub-region indirect tax number
|
|
5052
|
+
* @uiGroup Dashboard Properties
|
|
5053
|
+
*/
|
|
5054
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5055
|
+
/**
|
|
5056
|
+
* @uiName Payout status badge
|
|
5057
|
+
* @uiGroup Dashboard Properties
|
|
5058
|
+
*/
|
|
5059
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5060
|
+
/**
|
|
5061
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5062
|
+
* @uiName Payout schedule by threshold text
|
|
5063
|
+
* @uiGroup Dashboard Properties
|
|
5064
|
+
*/
|
|
5065
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5066
|
+
/**
|
|
5067
|
+
* Shown before the participant’s bank account information.
|
|
5068
|
+
* @uiName Bank account field label
|
|
5069
|
+
* @uiGroup Dashboard Properties
|
|
5070
|
+
*/
|
|
5071
|
+
this.dashboard_accountText = "Account";
|
|
5072
|
+
/**
|
|
5073
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5074
|
+
* @uiName Invoice number column title
|
|
5075
|
+
* @uiGroup Dashboard Properties
|
|
5076
|
+
*/
|
|
5077
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5078
|
+
/**
|
|
5079
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5080
|
+
* @uiName Date column title
|
|
5081
|
+
* @uiGroup Dashboard Properties
|
|
5082
|
+
*/
|
|
5083
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5084
|
+
/**
|
|
5085
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5086
|
+
* @uiName Earnings column title
|
|
5087
|
+
* @uiGroup Dashboard Properties
|
|
5088
|
+
*/
|
|
5089
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5090
|
+
/**
|
|
5091
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5092
|
+
* @uiName Indirect tax column title
|
|
5093
|
+
* @uiGroup Dashboard Properties
|
|
5094
|
+
*/
|
|
5095
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5096
|
+
/**
|
|
5097
|
+
* Displayed under the payout details card.
|
|
5098
|
+
* @uiName Payout from impact text
|
|
5099
|
+
* @uiGroup Dashboard Properties
|
|
5100
|
+
* @uiWidget textArea
|
|
5101
|
+
*/
|
|
5102
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5103
|
+
/**
|
|
5104
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5105
|
+
* @uiName Earnings after tax column title
|
|
5106
|
+
* @uiGroup Dashboard Properties
|
|
5107
|
+
*/
|
|
5108
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5109
|
+
/**
|
|
5110
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5111
|
+
* @uiName Payout error message title
|
|
5112
|
+
* @uiGroup Dashboard Properties
|
|
5113
|
+
* @uiWidget textArea
|
|
5114
|
+
*/
|
|
5115
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5116
|
+
/**
|
|
5117
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5118
|
+
* @uiName Payout error message description
|
|
5119
|
+
* @uiGroup Dashboard Properties
|
|
5120
|
+
* @uiWidget textArea
|
|
5121
|
+
*/
|
|
5122
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5123
|
+
/**
|
|
5124
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5125
|
+
* @uiName Payout missing information subtext
|
|
5126
|
+
* @uiGroup Dashboard Properties
|
|
5127
|
+
*/
|
|
5128
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5129
|
+
/**
|
|
5130
|
+
* @uiName Invoice table description
|
|
5131
|
+
* @uiGroup Dashboard Properties
|
|
5132
|
+
*/
|
|
5133
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5134
|
+
/**
|
|
5135
|
+
* @uiName Invoice table previous page button label
|
|
5136
|
+
* @uiGroup Dashboard Properties
|
|
5137
|
+
*/
|
|
5138
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5139
|
+
/**
|
|
5140
|
+
* @uiName Invoice table next page button label
|
|
5141
|
+
* @uiGroup Dashboard Properties
|
|
5142
|
+
*/
|
|
5143
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5144
|
+
/**
|
|
5145
|
+
* @uiName Invoice table title
|
|
5146
|
+
* @uiGroup Dashboard Properties
|
|
5147
|
+
*/
|
|
5148
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5149
|
+
/**
|
|
5150
|
+
* @uiName Empty invoice table header
|
|
5151
|
+
* @uiGroup Dashboard Properties
|
|
5152
|
+
*/
|
|
5153
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5154
|
+
/**
|
|
5155
|
+
* @uiName Empty invoice table description
|
|
5156
|
+
* @uiGroup Dashboard Properties
|
|
5157
|
+
*/
|
|
5158
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5159
|
+
/**
|
|
5160
|
+
* @uiName Replace tax form modal header
|
|
5161
|
+
* @uiGroup Dashboard Properties
|
|
5162
|
+
*/
|
|
5163
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5164
|
+
/**
|
|
5165
|
+
* @uiName Replace tax form modal body text
|
|
5166
|
+
* @uiGroup Dashboard Properties
|
|
5167
|
+
* @uiWidget textArea
|
|
5168
|
+
*/
|
|
5169
|
+
this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
5170
|
+
/**
|
|
5171
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5172
|
+
* @uiName Verification required alert message title
|
|
5173
|
+
* @uiGroup Dashboard Properties
|
|
5174
|
+
* @uiWidget textArea
|
|
5175
|
+
*/
|
|
5176
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5177
|
+
/**
|
|
5178
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5179
|
+
* @uiName Verification required alert message description
|
|
5180
|
+
* @uiGroup Dashboard Properties
|
|
5181
|
+
* @uiWidget textArea
|
|
5182
|
+
*/
|
|
5183
|
+
this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
5184
|
+
/**
|
|
5185
|
+
* @uiName Verification required internal alert header
|
|
5186
|
+
* @uiGroup Dashboard Properties
|
|
5187
|
+
* @uiWidget textArea
|
|
5188
|
+
*/
|
|
5189
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5190
|
+
/**
|
|
5191
|
+
* @uiName Verification required internal alert description
|
|
5192
|
+
* @uiGroup Dashboard Properties
|
|
5193
|
+
* @uiWidget textArea
|
|
5194
|
+
*/
|
|
5195
|
+
this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
5196
|
+
/**
|
|
5197
|
+
* @uiName Verification review internal alert header
|
|
5198
|
+
* @uiGroup Dashboard Properties
|
|
5199
|
+
* @uiWidget textArea
|
|
5200
|
+
*/
|
|
5201
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5202
|
+
/**
|
|
5203
|
+
* @uiName Verification review internal alert description
|
|
5204
|
+
* @uiGroup Dashboard Properties
|
|
5205
|
+
* @uiWidget textArea
|
|
5206
|
+
*/
|
|
5207
|
+
this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
5208
|
+
/**
|
|
5209
|
+
* @uiName Verification failed internal alert header
|
|
5210
|
+
* @uiGroup Dashboard Properties
|
|
5211
|
+
* @uiWidget textArea
|
|
5212
|
+
*/
|
|
5213
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5214
|
+
/**
|
|
5215
|
+
* @uiName Verification failed internal alert description
|
|
5216
|
+
* @uiGroup Dashboard Properties
|
|
5217
|
+
* @uiWidget textArea
|
|
5218
|
+
*/
|
|
5219
|
+
this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
5220
|
+
/**
|
|
5221
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5222
|
+
* @uiName Verification required alert button text
|
|
5223
|
+
* @uiGroup Dashboard Properties
|
|
5224
|
+
* @uiWidget textArea
|
|
5225
|
+
*/
|
|
5226
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5227
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5228
|
+
GENERAL PROPS:
|
|
5229
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5230
|
+
/**
|
|
5231
|
+
* @uiName Setup progress
|
|
5232
|
+
* @uiGroup General Form Properties
|
|
5233
|
+
*/
|
|
5234
|
+
this.formStep = "Step {step} of {count}";
|
|
5235
|
+
/**
|
|
5236
|
+
* Part of the alert displayed at the top of the page.
|
|
5237
|
+
* @uiName Form submission error message title
|
|
5238
|
+
* @uiGroup General Form Properties
|
|
5239
|
+
* @uiWidget textArea
|
|
5240
|
+
*/
|
|
5241
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5242
|
+
/**
|
|
5243
|
+
* Part of the alert displayed at the top of the page.
|
|
5244
|
+
* @uiName Form submission error message description
|
|
5245
|
+
* @uiGroup General Form Properties
|
|
5246
|
+
* @uiWidget textArea
|
|
5247
|
+
*/
|
|
5248
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5249
|
+
/**
|
|
5250
|
+
* Displayed under a field that is missing required information.
|
|
5251
|
+
* @uiName Empty form field error message
|
|
5252
|
+
* @uiGroup General Form Properties
|
|
5253
|
+
*/
|
|
5254
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5255
|
+
/**
|
|
5256
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5257
|
+
* @uiName Invalid character error message
|
|
5258
|
+
* @uiGroup General Form Properties
|
|
5259
|
+
*/
|
|
5260
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5261
|
+
/**
|
|
5262
|
+
* Displayed under a field when it has an invalid entry.
|
|
5263
|
+
* @uiName Form field error message
|
|
5264
|
+
* @uiGroup General Form Properties
|
|
5265
|
+
*/
|
|
5266
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5267
|
+
/**
|
|
5268
|
+
* @uiName Continue button label
|
|
5269
|
+
* @uiGroup General Form Properties
|
|
5270
|
+
*/
|
|
5271
|
+
this.continueButton = "Continue";
|
|
5272
|
+
/**
|
|
5273
|
+
* @uiName Back button label
|
|
5274
|
+
* @uiGroup General Form Properties
|
|
5275
|
+
*/
|
|
5276
|
+
this.backButton = "Back";
|
|
5277
|
+
/**
|
|
5278
|
+
* @uiName Cancel button label
|
|
5279
|
+
* @uiGroup General Form Properties
|
|
5280
|
+
*/
|
|
5281
|
+
this.cancelButton = "Cancel";
|
|
5282
|
+
/**
|
|
5283
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5284
|
+
* @uiName Participant is a partner alert title
|
|
5285
|
+
* @uiGroup General Form Properties
|
|
5286
|
+
* @uiWidget textArea
|
|
5287
|
+
*/
|
|
5288
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5289
|
+
/**
|
|
5290
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5291
|
+
* @uiName Participant is a partner alert description
|
|
5292
|
+
* @uiGroup General Form Properties
|
|
5293
|
+
* @uiWidget textArea
|
|
5294
|
+
*/
|
|
5295
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
5296
|
+
/**
|
|
5297
|
+
* Placeholder text displayed in the country search dropdown
|
|
5298
|
+
* @uiName Country field placeholder text
|
|
5299
|
+
* @uiGroup General Form Properties
|
|
5300
|
+
*/
|
|
5301
|
+
this.searchForCountryText = "Search for country..";
|
|
5302
|
+
/**
|
|
5303
|
+
* Part of the alert displayed at the top of the page.
|
|
5304
|
+
* @uiName Page load error message title
|
|
5305
|
+
* @uiGroup General Form Properties
|
|
5306
|
+
* @uiWidget textArea
|
|
5307
|
+
*/
|
|
5308
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5309
|
+
/**
|
|
5310
|
+
* Part of the alert displayed at the top of the page.
|
|
5311
|
+
* @uiName Page load error message description
|
|
5312
|
+
* @uiGroup General Form Properties
|
|
5313
|
+
* @uiWidget textArea
|
|
5314
|
+
*/
|
|
5315
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5316
|
+
/**
|
|
5317
|
+
* Displayed at the top of the page on all set up steps.
|
|
5318
|
+
* @uiName Page description
|
|
5319
|
+
* @uiGroup General Form Properties
|
|
5320
|
+
*/
|
|
5321
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5322
|
+
/**
|
|
5323
|
+
* Link text for contacting support team
|
|
5324
|
+
* @uiName Suport link text
|
|
5325
|
+
* @uiGroup General Form Properties
|
|
5326
|
+
*/
|
|
5327
|
+
this.supportLink = "support team";
|
|
5328
|
+
h$1(this);
|
|
5329
|
+
}
|
|
5330
|
+
disconnectedCallback() { }
|
|
5331
|
+
// this field is required prop
|
|
5332
|
+
getGeneralStepTextProps(prefix) {
|
|
5333
|
+
const props = getProps(this);
|
|
5334
|
+
return {
|
|
5335
|
+
...extractProps(props, prefix),
|
|
5336
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5337
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5338
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5339
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5340
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5341
|
+
continueButton: props.continueButton,
|
|
5342
|
+
backButton: props.backButton,
|
|
5343
|
+
cancelButton: props.cancelButton,
|
|
5344
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5345
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5346
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5347
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5348
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5349
|
+
searchForCountryText: props.searchForCountryText,
|
|
5350
|
+
formStep: props.formStep,
|
|
5351
|
+
supportLink: props.supportLink,
|
|
5352
|
+
};
|
|
5353
|
+
}
|
|
5354
|
+
render() {
|
|
5355
|
+
var _a, _b;
|
|
5356
|
+
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5357
|
+
// @ts-ignore
|
|
5358
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5359
|
+
const textProps = getProps(this);
|
|
5360
|
+
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5361
|
+
if (prop === "demoData")
|
|
5362
|
+
return;
|
|
5363
|
+
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5364
|
+
})));
|
|
5365
|
+
}
|
|
5366
|
+
switch (props.step) {
|
|
5367
|
+
case "/1":
|
|
5368
|
+
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5369
|
+
case "/2":
|
|
5370
|
+
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5371
|
+
case "/3":
|
|
5372
|
+
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5373
|
+
case "/4":
|
|
5374
|
+
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5375
|
+
case "/dashboard":
|
|
5376
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5377
|
+
case "/error":
|
|
5378
|
+
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5379
|
+
}
|
|
5380
|
+
return h(LoadingView, null);
|
|
5381
|
+
}
|
|
5382
|
+
};
|
|
5383
|
+
function useDemoTaxAndCash(props) {
|
|
5384
|
+
const [step, setStep] = In({
|
|
5385
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5386
|
+
initialValue: "/1",
|
|
5387
|
+
});
|
|
5388
|
+
return cjs({
|
|
5389
|
+
step,
|
|
5390
|
+
setStep,
|
|
5391
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5394
|
+
const style$6 = {
|
|
5395
|
+
ErrorAlertContainer: {
|
|
5396
|
+
"&::part(base)": {
|
|
5397
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
3681
5398
|
border: "none",
|
|
3682
5399
|
},
|
|
3683
5400
|
"& sl-icon::part(base)": {
|
|
@@ -3865,8 +5582,8 @@ const style$5 = {
|
|
|
3865
5582
|
},
|
|
3866
5583
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3867
5584
|
};
|
|
3868
|
-
const sheet$
|
|
3869
|
-
const styleString$
|
|
5585
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5586
|
+
const styleString$5 = sheet$5.toString();
|
|
3870
5587
|
const TaxAndCashDashboardView = (props) => {
|
|
3871
5588
|
var _a, _b, _c, _d;
|
|
3872
5589
|
const { states, text, callbacks, slots } = props;
|
|
@@ -3884,7 +5601,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3884
5601
|
buttonText: text.verificationRequiredButtonText,
|
|
3885
5602
|
alertType: "warning",
|
|
3886
5603
|
icon: "exclamation-triangle",
|
|
3887
|
-
class: sheet$
|
|
5604
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3888
5605
|
};
|
|
3889
5606
|
case "VERIFICATION:INTERNAL":
|
|
3890
5607
|
return {
|
|
@@ -3897,7 +5614,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3897
5614
|
}),
|
|
3898
5615
|
alertType: "warning",
|
|
3899
5616
|
icon: "exclamation-triangle",
|
|
3900
|
-
class: sheet$
|
|
5617
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3901
5618
|
};
|
|
3902
5619
|
case "VERIFICATION:REVIEW":
|
|
3903
5620
|
return {
|
|
@@ -3910,7 +5627,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3910
5627
|
}),
|
|
3911
5628
|
alertType: "warning",
|
|
3912
5629
|
icon: "exclamation-triangle",
|
|
3913
|
-
class: sheet$
|
|
5630
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3914
5631
|
};
|
|
3915
5632
|
case "VERIFICATION:FAILED":
|
|
3916
5633
|
return {
|
|
@@ -3923,7 +5640,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3923
5640
|
}),
|
|
3924
5641
|
alertType: "critical",
|
|
3925
5642
|
icon: "exclamation-octagon",
|
|
3926
|
-
class: sheet$
|
|
5643
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3927
5644
|
};
|
|
3928
5645
|
case "HOLD":
|
|
3929
5646
|
return {
|
|
@@ -3937,14 +5654,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3937
5654
|
buttonText: null,
|
|
3938
5655
|
alertType: "warning",
|
|
3939
5656
|
icon: "exclamation-triangle",
|
|
3940
|
-
class: sheet$
|
|
5657
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3941
5658
|
};
|
|
3942
5659
|
default:
|
|
3943
5660
|
return;
|
|
3944
5661
|
}
|
|
3945
5662
|
}
|
|
3946
5663
|
const statusMap = {
|
|
3947
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
5664
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3948
5665
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3949
5666
|
h("p", null, intl.formatMessage({
|
|
3950
5667
|
id: `badgeTextAwaitingReview`,
|
|
@@ -3952,7 +5669,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3952
5669
|
}, {
|
|
3953
5670
|
dateSubmitted: states.dateSubmitted,
|
|
3954
5671
|
})))),
|
|
3955
|
-
ACTIVE: (h("div", { class: sheet$
|
|
5672
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3956
5673
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3957
5674
|
h("p", null, intl.formatMessage({
|
|
3958
5675
|
id: `badgeTextSubmittedOn`,
|
|
@@ -3962,12 +5679,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3962
5679
|
}, {
|
|
3963
5680
|
dateSubmitted: states.dateSubmitted,
|
|
3964
5681
|
})))),
|
|
3965
|
-
INACTIVE: (h("div", { class: sheet$
|
|
5682
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3966
5683
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3967
5684
|
h("p", null, text.invalidForm))),
|
|
3968
5685
|
};
|
|
3969
5686
|
const alertMap = {
|
|
3970
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5687
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
3971
5688
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3972
5689
|
h("strong", null, intl.formatMessage({
|
|
3973
5690
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -4017,9 +5734,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4017
5734
|
};
|
|
4018
5735
|
return (h("div", null,
|
|
4019
5736
|
h("div", null,
|
|
4020
|
-
h("style", { type: "text/css" }, styleString$
|
|
5737
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
4021
5738
|
states.loadingError && (h("div", null,
|
|
4022
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5739
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
4023
5740
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4024
5741
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4025
5742
|
h("br", null),
|
|
@@ -4029,7 +5746,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4029
5746
|
}, {
|
|
4030
5747
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4031
5748
|
})))),
|
|
4032
|
-
((_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$
|
|
5749
|
+
((_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 },
|
|
4033
5750
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4034
5751
|
h("strong", null, text.error.generalTitle),
|
|
4035
5752
|
h("br", null),
|
|
@@ -4044,49 +5761,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4044
5761
|
h("strong", null, getAlert(states.payoutStatus).header),
|
|
4045
5762
|
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
4046
5763
|
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)))),
|
|
4047
|
-
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
5764
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4048
5765
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
4049
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
4050
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5766
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5767
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4051
5768
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4052
5769
|
h("div", null,
|
|
4053
5770
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4054
|
-
h("p", { class: sheet$
|
|
4055
|
-
h("div", { class: sheet$
|
|
5771
|
+
h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5772
|
+
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4056
5773
|
slots.payoutDetailsCardSlot,
|
|
4057
|
-
!states.loading && (h("p", { class: sheet$
|
|
4058
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
4059
|
-
h("div", { class: sheet$
|
|
4060
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
4061
|
-
h("sl-skeleton", { class: sheet$
|
|
4062
|
-
h("sl-skeleton", { class: sheet$
|
|
4063
|
-
h("h3", { class: sheet$
|
|
4064
|
-
h("p", { class: sheet$
|
|
4065
|
-
h("span", { class: sheet$
|
|
4066
|
-
h("div", { class: sheet$
|
|
5774
|
+
!states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5775
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5776
|
+
h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5777
|
+
h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5778
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5779
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
|
|
5780
|
+
h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5781
|
+
h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
|
|
5782
|
+
h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5783
|
+
h("div", { class: sheet$5.classes.StatusContainer },
|
|
4067
5784
|
h("h3", null, intl.formatMessage({
|
|
4068
5785
|
id: "section-subheader",
|
|
4069
5786
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
4070
5787
|
}, {
|
|
4071
5788
|
documentType: states.documentTypeString,
|
|
4072
5789
|
})),
|
|
4073
|
-
h("span", { class: sheet$
|
|
4074
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
4075
|
-
h("div", { class: sheet$
|
|
4076
|
-
h("sl-skeleton", { class: sheet$
|
|
4077
|
-
h("sl-skeleton", { class: sheet$
|
|
4078
|
-
h("h3", { class: sheet$
|
|
5790
|
+
h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5791
|
+
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)))))))),
|
|
5792
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5793
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5794
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
5795
|
+
h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4079
5796
|
text.indirectTaxInfoSectionHeader,
|
|
4080
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4081
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
4082
|
-
h("div", { class: sheet$
|
|
4083
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
5797
|
+
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5798
|
+
h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5799
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5800
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
4084
5801
|
id: "notRegisteredForTax",
|
|
4085
5802
|
defaultMessage: text.notRegisteredForTax,
|
|
4086
5803
|
}, {
|
|
4087
5804
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4088
5805
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4089
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
5806
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4090
5807
|
h("span", null, intl.formatMessage({
|
|
4091
5808
|
id: `indirectTaxDetails`,
|
|
4092
5809
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4109,7 +5826,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4109
5826
|
}, {
|
|
4110
5827
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4111
5828
|
})))),
|
|
4112
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
5829
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4113
5830
|
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 },
|
|
4114
5831
|
h("sqm-invoice-table-download-column", null),
|
|
4115
5832
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4565,31 +6282,23 @@ const TaxAndCashDashboard = class {
|
|
|
4565
6282
|
}
|
|
4566
6283
|
};
|
|
4567
6284
|
function useDemoTaxAndCashDashboard(props) {
|
|
4568
|
-
// const states = parseStates(props.stateController);
|
|
4569
6285
|
return cjs({
|
|
4570
6286
|
states: {
|
|
4571
6287
|
dateSubmitted: "today",
|
|
4572
6288
|
documentType: "W9",
|
|
4573
6289
|
documentTypeString: "W9",
|
|
6290
|
+
status: "ACTIVE",
|
|
4574
6291
|
country: "United States",
|
|
4575
|
-
indirectTaxNumber:
|
|
6292
|
+
indirectTaxNumber: 55555555,
|
|
4576
6293
|
indirectTaxType: "Indirect Tax",
|
|
4577
|
-
noFormNeeded:
|
|
6294
|
+
noFormNeeded: true,
|
|
4578
6295
|
disabled: false,
|
|
4579
6296
|
loading: false,
|
|
4580
6297
|
showNewFormDialog: false,
|
|
4581
6298
|
hasHold: false,
|
|
4582
|
-
|
|
4583
|
-
subRegionTaxNumber: undefined,
|
|
4584
|
-
qstNumber: undefined,
|
|
4585
|
-
isBusinessEntity: false,
|
|
4586
|
-
province: undefined,
|
|
4587
|
-
notRegistered: true,
|
|
4588
|
-
loadingError: false,
|
|
6299
|
+
showVerifyIdentity: false,
|
|
4589
6300
|
payoutStatus: "DONE",
|
|
4590
6301
|
veriffLoading: false,
|
|
4591
|
-
canEditPayoutInfo: true,
|
|
4592
|
-
status: "ACTIVE",
|
|
4593
6302
|
},
|
|
4594
6303
|
callbacks: {
|
|
4595
6304
|
onClick: () => console.debug("check step"),
|
|
@@ -4599,13 +6308,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4599
6308
|
onVerifyClick: () => console.log("verify"),
|
|
4600
6309
|
},
|
|
4601
6310
|
text: props.getTextProps(),
|
|
4602
|
-
slots: {
|
|
4603
|
-
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
|
|
4604
|
-
states: {
|
|
4605
|
-
badgeStatus: "nextPayout",
|
|
4606
|
-
},
|
|
4607
|
-
} })),
|
|
4608
|
-
},
|
|
4609
6311
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4610
6312
|
}
|
|
4611
6313
|
|
|
@@ -5580,7 +7282,7 @@ const PHONE_EXTENSIONS = {
|
|
|
5580
7282
|
},
|
|
5581
7283
|
};
|
|
5582
7284
|
|
|
5583
|
-
const style$
|
|
7285
|
+
const style$7 = {
|
|
5584
7286
|
FormWrapper: {},
|
|
5585
7287
|
ErrorInput: {
|
|
5586
7288
|
"&::part(base)": {
|
|
@@ -5680,9 +7382,9 @@ const style$6 = {
|
|
|
5680
7382
|
},
|
|
5681
7383
|
},
|
|
5682
7384
|
};
|
|
5683
|
-
const sheet$
|
|
5684
|
-
const styleString$
|
|
5685
|
-
const vanillaStyle$
|
|
7385
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7386
|
+
const styleString$6 = sheet$6.toString();
|
|
7387
|
+
const vanillaStyle$4 = `
|
|
5686
7388
|
:host{
|
|
5687
7389
|
display: block;
|
|
5688
7390
|
}
|
|
@@ -5860,7 +7562,7 @@ const vanillaStyle$3 = `
|
|
|
5860
7562
|
const UserInfoFormView = (props) => {
|
|
5861
7563
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5862
7564
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
5863
|
-
const { classes } = sheet$
|
|
7565
|
+
const { classes } = sheet$6;
|
|
5864
7566
|
const bankingCollectionText = intl.formatMessage({
|
|
5865
7567
|
id: "bankingCollectionText",
|
|
5866
7568
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5883,10 +7585,10 @@ const UserInfoFormView = (props) => {
|
|
|
5883
7585
|
}
|
|
5884
7586
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5885
7587
|
h("style", { type: "text/css" },
|
|
5886
|
-
styleString$
|
|
5887
|
-
vanillaStyle$
|
|
7588
|
+
styleString$6,
|
|
7589
|
+
vanillaStyle$4),
|
|
5888
7590
|
states.loadingError && (h("div", null,
|
|
5889
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7591
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
5890
7592
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5891
7593
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5892
7594
|
h("br", null),
|
|
@@ -5897,7 +7599,7 @@ const UserInfoFormView = (props) => {
|
|
|
5897
7599
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5898
7600
|
})),
|
|
5899
7601
|
h("br", null))),
|
|
5900
|
-
states.loading ? (h(
|
|
7602
|
+
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
5901
7603
|
h("div", { class: classes.TextContainer },
|
|
5902
7604
|
h("div", null,
|
|
5903
7605
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -5906,7 +7608,7 @@ const UserInfoFormView = (props) => {
|
|
|
5906
7608
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
5907
7609
|
h("h3", null, text.personalInformation),
|
|
5908
7610
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5909
|
-
((_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$
|
|
7611
|
+
((_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 },
|
|
5910
7612
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5911
7613
|
h("strong", null, text.error.generalTitle),
|
|
5912
7614
|
h("br", null),
|
|
@@ -5916,7 +7618,7 @@ const UserInfoFormView = (props) => {
|
|
|
5916
7618
|
}, {
|
|
5917
7619
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5918
7620
|
}))),
|
|
5919
|
-
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
7621
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
5920
7622
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
5921
7623
|
h("strong", null, text.isPartnerAlertHeader),
|
|
5922
7624
|
h("br", null),
|
|
@@ -6410,20 +8112,19 @@ const TaxForm = class {
|
|
|
6410
8112
|
}
|
|
6411
8113
|
render() {
|
|
6412
8114
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6413
|
-
return (h(UserInfoFormView, { data: props.data,
|
|
8115
|
+
return (h(Host, null, h(UserInfoFormView, { data: props.data,
|
|
6414
8116
|
// @ts-ignore
|
|
6415
8117
|
states: props.states, callbacks: {
|
|
6416
8118
|
...props.callbacks,
|
|
6417
8119
|
onSubmit: props.onSubmit,
|
|
6418
|
-
}, text: props.text, refs: props.refs }));
|
|
8120
|
+
}, text: props.text, refs: props.refs })));
|
|
6419
8121
|
}
|
|
6420
8122
|
};
|
|
6421
8123
|
function useDemoUserInfoForm(props) {
|
|
6422
8124
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6423
|
-
// @ts-ignore
|
|
6424
8125
|
return cjs({
|
|
6425
8126
|
setStep,
|
|
6426
|
-
onSubmit:
|
|
8127
|
+
onSubmit: () => {
|
|
6427
8128
|
setStep("/2");
|
|
6428
8129
|
},
|
|
6429
8130
|
onRadioClick: () => { },
|
|
@@ -6466,4 +8167,4 @@ function useDemoUserInfoForm(props) {
|
|
|
6466
8167
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6467
8168
|
}
|
|
6468
8169
|
|
|
6469
|
-
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|
|
8170
|
+
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 };
|