@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
package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js}
RENAMED
|
@@ -2,25 +2,145 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
5
|
+
const index = require('./index-a43a63b4.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
|
|
7
|
+
const global = require('./global-2298fc8b.js');
|
|
8
|
+
const index_module = require('./index.module-39955732.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
require('./mixins-4761d472.js');
|
|
14
|
-
const GenericTableView = require('./GenericTableView-
|
|
15
|
-
const reRender = require('./re-render-
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
17
|
-
const luxon = require('./luxon-
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
13
|
+
const mixins = require('./mixins-4761d472.js');
|
|
14
|
+
const GenericTableView = require('./GenericTableView-107ade89.js');
|
|
15
|
+
const reRender = require('./re-render-28fed959.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-e5fa605c.js');
|
|
17
|
+
const luxon = require('./luxon-3b809948.js');
|
|
18
|
+
const useReferralTable = require('./useReferralTable-19e7523a.js');
|
|
19
|
+
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
20
|
+
const ErrorView = require('./ErrorView-5504c2b6.js');
|
|
21
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-90b2433f.js');
|
|
22
|
+
const extractProps = require('./extractProps-fd93ba62.js');
|
|
22
23
|
const keys = require('./keys-cff24974.js');
|
|
23
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-f26f0467.js');
|
|
25
|
+
const useVerificationEmail = require('./useVerificationEmail-1496b993.js');
|
|
26
|
+
|
|
27
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
28
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
29
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
30
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
31
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
32
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
33
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
34
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
35
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
36
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
37
|
+
const GET_USER = index_module.dist.gql `
|
|
38
|
+
query getUserTaxInfo {
|
|
39
|
+
user: viewer {
|
|
40
|
+
... on User {
|
|
41
|
+
id
|
|
42
|
+
firstName
|
|
43
|
+
lastName
|
|
44
|
+
email
|
|
45
|
+
countryCode
|
|
46
|
+
customFields
|
|
47
|
+
managedIdentity {
|
|
48
|
+
uid
|
|
49
|
+
email
|
|
50
|
+
emailVerified
|
|
51
|
+
}
|
|
52
|
+
impactConnection {
|
|
53
|
+
connected
|
|
54
|
+
user {
|
|
55
|
+
firstName
|
|
56
|
+
lastName
|
|
57
|
+
}
|
|
58
|
+
publisher {
|
|
59
|
+
id
|
|
60
|
+
brandedSignup
|
|
61
|
+
countryCode
|
|
62
|
+
currency
|
|
63
|
+
billingAddress
|
|
64
|
+
billingCity
|
|
65
|
+
billingState
|
|
66
|
+
billingCountryCode
|
|
67
|
+
billingPostalCode
|
|
68
|
+
phoneNumberCountryCode
|
|
69
|
+
phoneNumber
|
|
70
|
+
taxInformation {
|
|
71
|
+
indirectTaxId
|
|
72
|
+
indirectTaxCountryCode
|
|
73
|
+
indirectTaxRegion
|
|
74
|
+
additionalTaxId
|
|
75
|
+
withholdingTaxId
|
|
76
|
+
withholdingTaxCountryCode
|
|
77
|
+
}
|
|
78
|
+
requiredTaxDocumentType
|
|
79
|
+
currentTaxDocument {
|
|
80
|
+
status
|
|
81
|
+
type
|
|
82
|
+
dateCreated
|
|
83
|
+
}
|
|
84
|
+
withdrawalSettings {
|
|
85
|
+
paymentMethod
|
|
86
|
+
paypalEmailAddress
|
|
87
|
+
bankCountry
|
|
88
|
+
bankAccountNumber
|
|
89
|
+
paymentSchedulingType
|
|
90
|
+
paymentThreshold
|
|
91
|
+
paymentDay
|
|
92
|
+
}
|
|
93
|
+
payoutsAccount {
|
|
94
|
+
hold
|
|
95
|
+
holdReasons
|
|
96
|
+
balance
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const GET_COUNTRIES = index_module.dist.gql `
|
|
105
|
+
query getCountries {
|
|
106
|
+
impactPayoutCountries(limit: 1000) {
|
|
107
|
+
data {
|
|
108
|
+
countryCode
|
|
109
|
+
displayName
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
const GET_CURRENCIES = index_module.dist.gql `
|
|
115
|
+
query currencies($locale: RSLocale) {
|
|
116
|
+
currencies(limit: 300) {
|
|
117
|
+
data {
|
|
118
|
+
displayName(locale: $locale)
|
|
119
|
+
currencyCode
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
125
|
+
query impactFinanceNetworkSettings(
|
|
126
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
127
|
+
) {
|
|
128
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
129
|
+
data {
|
|
130
|
+
countryCode
|
|
131
|
+
currency
|
|
132
|
+
defaultFinancePaymentMethodId
|
|
133
|
+
thresholdOptions
|
|
134
|
+
withdrawalSettingId
|
|
135
|
+
internationalEftFee
|
|
136
|
+
foreignFxFee
|
|
137
|
+
defaultFxFee
|
|
138
|
+
}
|
|
139
|
+
totalCount
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
143
|
+
const FORM_STEPS = 4;
|
|
24
144
|
|
|
25
145
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
26
146
|
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;
|
|
@@ -632,20 +752,20 @@ const style = {
|
|
|
632
752
|
width: "16px",
|
|
633
753
|
height: "16px",
|
|
634
754
|
borderRadius: "50%",
|
|
635
|
-
background: "var(--
|
|
755
|
+
background: "var(--sqm-skeleton-background)",
|
|
636
756
|
},
|
|
637
757
|
SmallSkeleton: {
|
|
638
758
|
width: "100px",
|
|
639
759
|
height: "16px",
|
|
640
760
|
borderRadius: "50px",
|
|
641
|
-
background: "var(--
|
|
761
|
+
background: "var(--sqm-skeleton-background)",
|
|
642
762
|
},
|
|
643
763
|
LargeSkeleton: {
|
|
644
764
|
width: "100%",
|
|
645
765
|
maxWidth: "320px",
|
|
646
766
|
height: "40px",
|
|
647
767
|
borderRadius: "50px",
|
|
648
|
-
background: "var(--
|
|
768
|
+
background: "var(--sqm-skeleton-background)",
|
|
649
769
|
},
|
|
650
770
|
InfoWarningIcon: {
|
|
651
771
|
height: "26px",
|
|
@@ -671,8 +791,10 @@ const vanillaStyle = `
|
|
|
671
791
|
|
|
672
792
|
/* this class is dynamically applied in controller */
|
|
673
793
|
.error-input::part(base) {
|
|
674
|
-
border:
|
|
675
|
-
border-
|
|
794
|
+
--sqm-input-border-color: var(--sqm-danger-color-border);
|
|
795
|
+
--sl-input-border-color: var(--sqm-danger-color-border);
|
|
796
|
+
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
797
|
+
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
676
798
|
}
|
|
677
799
|
|
|
678
800
|
.error-input::part(help-text) {
|
|
@@ -719,7 +841,7 @@ const BankingInfoFormView = (props) => {
|
|
|
719
841
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
720
842
|
id: "formStep",
|
|
721
843
|
defaultMessage: text.formStep,
|
|
722
|
-
}, { step: states.step, count:
|
|
844
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
723
845
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
724
846
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
725
847
|
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
@@ -774,7 +896,7 @@ const BankingInfoFormView = (props) => {
|
|
|
774
896
|
: slots.paymentFixedDaySelectSlot))))),
|
|
775
897
|
index.h("div", { class: classes.BtnContainer },
|
|
776
898
|
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
777
|
-
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "
|
|
899
|
+
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
|
|
778
900
|
};
|
|
779
901
|
|
|
780
902
|
// Hardcoded in Impact backend
|
|
@@ -858,12 +980,12 @@ function useBankingInfoForm(props) {
|
|
|
858
980
|
const host = index_module._();
|
|
859
981
|
const locale = index_module.L();
|
|
860
982
|
const user = index_module.J();
|
|
861
|
-
const [step, setStep] = index_module.Pn(
|
|
862
|
-
const context = index_module.Fn(
|
|
863
|
-
const countries = index_module.Fn(
|
|
983
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
984
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
985
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
864
986
|
const formRef = stencilHooks_module.useRef(null);
|
|
865
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(
|
|
866
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
987
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
988
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
867
989
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
868
990
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
869
991
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
@@ -1532,7 +1654,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1532
1654
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1533
1655
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1534
1656
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1535
|
-
const setStep = index_module.En(
|
|
1657
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1536
1658
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1537
1659
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1538
1660
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1625,6 +1747,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1625
1747
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1626
1748
|
}
|
|
1627
1749
|
|
|
1750
|
+
const style$1 = {
|
|
1751
|
+
Wrapper: {
|
|
1752
|
+
display: "flex",
|
|
1753
|
+
flexDirection: "column",
|
|
1754
|
+
gap: "var(--sl-spacing-medium)",
|
|
1755
|
+
maxWidth: "550px",
|
|
1756
|
+
},
|
|
1757
|
+
HeaderContainer: {
|
|
1758
|
+
display: "flex",
|
|
1759
|
+
flexDirection: "column",
|
|
1760
|
+
},
|
|
1761
|
+
InputsContainer: {
|
|
1762
|
+
display: "flex",
|
|
1763
|
+
gap: "var(--sl-spacing-medium)",
|
|
1764
|
+
position: "relative",
|
|
1765
|
+
flexDirection: "column",
|
|
1766
|
+
},
|
|
1767
|
+
CodeInputContainer: {
|
|
1768
|
+
display: "flex",
|
|
1769
|
+
gap: "var(--sl-spacing-medium)",
|
|
1770
|
+
},
|
|
1771
|
+
CodeInput: {
|
|
1772
|
+
maxWidth: "40px",
|
|
1773
|
+
"&::part(input)": {
|
|
1774
|
+
margin: "0",
|
|
1775
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1776
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1777
|
+
},
|
|
1778
|
+
},
|
|
1779
|
+
CodeInputError: {
|
|
1780
|
+
...mixins.ErrorStyles,
|
|
1781
|
+
maxWidth: "40px",
|
|
1782
|
+
"&::part(input)": {
|
|
1783
|
+
margin: "0",
|
|
1784
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1785
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1786
|
+
},
|
|
1787
|
+
},
|
|
1788
|
+
ErrorText: {
|
|
1789
|
+
color: "var(--sl-color-danger-500)",
|
|
1790
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1791
|
+
margin: "0",
|
|
1792
|
+
},
|
|
1793
|
+
ContinueButton: {
|
|
1794
|
+
width: "100%",
|
|
1795
|
+
maxWidth: "100px",
|
|
1796
|
+
},
|
|
1797
|
+
FooterContainer: {
|
|
1798
|
+
display: "flex",
|
|
1799
|
+
flexDirection: "column",
|
|
1800
|
+
},
|
|
1801
|
+
SkeletonOne: {
|
|
1802
|
+
width: "50%",
|
|
1803
|
+
height: "16px",
|
|
1804
|
+
},
|
|
1805
|
+
SkeletonTwo: {
|
|
1806
|
+
width: "30%",
|
|
1807
|
+
height: "34px",
|
|
1808
|
+
},
|
|
1809
|
+
SkeletonThree: {
|
|
1810
|
+
width: "15%",
|
|
1811
|
+
height: "24px",
|
|
1812
|
+
},
|
|
1813
|
+
};
|
|
1814
|
+
const vanillaStyle$1 = `
|
|
1815
|
+
:host {
|
|
1816
|
+
display: block;
|
|
1817
|
+
}
|
|
1818
|
+
:host([hidden]): {
|
|
1819
|
+
display: none;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
`;
|
|
1824
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1825
|
+
const styleString$1 = sheet$1.toString();
|
|
1826
|
+
function WidgetCodeVerificationView(props) {
|
|
1827
|
+
const { states, refs, callbacks, text } = props;
|
|
1828
|
+
const resendCodeText = global.intl.formatMessage({
|
|
1829
|
+
id: "resendCodeText",
|
|
1830
|
+
defaultMessage: text.resendCodeText,
|
|
1831
|
+
}, {
|
|
1832
|
+
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1833
|
+
e.preventDefault();
|
|
1834
|
+
callbacks.resendEmail();
|
|
1835
|
+
} }, text.resendCodeLabel)),
|
|
1836
|
+
});
|
|
1837
|
+
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1838
|
+
id: "codeResentSuccessfully",
|
|
1839
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1840
|
+
}, {
|
|
1841
|
+
email: states.email,
|
|
1842
|
+
});
|
|
1843
|
+
const inputClass = states.verifyFailed
|
|
1844
|
+
? sheet$1.classes.CodeInputError
|
|
1845
|
+
: sheet$1.classes.CodeInput;
|
|
1846
|
+
return (index.h("div", { part: "sqm-base" },
|
|
1847
|
+
index.h("style", { type: "text/css" },
|
|
1848
|
+
vanillaStyle$1,
|
|
1849
|
+
styleString$1),
|
|
1850
|
+
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1851
|
+
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1852
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1853
|
+
id: `emailHeaderText`,
|
|
1854
|
+
defaultMessage: states.verifyFailed
|
|
1855
|
+
? text.reverifyCodeHeaderText
|
|
1856
|
+
: text.verifyCodeHeaderText,
|
|
1857
|
+
}, { email: states.email }))),
|
|
1858
|
+
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1859
|
+
index.h("b", null, codeResentSuccessfully))),
|
|
1860
|
+
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1861
|
+
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1862
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1863
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1864
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1865
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1866
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1867
|
+
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1868
|
+
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1869
|
+
index.h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
1870
|
+
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1871
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1875
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1876
|
+
$user: UserIdInput!
|
|
1877
|
+
$code: String!
|
|
1878
|
+
) {
|
|
1879
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1880
|
+
verifiedEmail
|
|
1881
|
+
accessKey
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
`;
|
|
1885
|
+
function useWidgetCodeVerification(props) {
|
|
1886
|
+
const host = stencilHooks_module.l();
|
|
1887
|
+
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1888
|
+
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1889
|
+
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1890
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1891
|
+
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1892
|
+
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1893
|
+
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1894
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1895
|
+
stencilHooks_module.useEffect(() => {
|
|
1896
|
+
if (!codeRef)
|
|
1897
|
+
return;
|
|
1898
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1899
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1900
|
+
codeElements.forEach((element, idx) => {
|
|
1901
|
+
element.addEventListener("focus", (e) => {
|
|
1902
|
+
e.target.select();
|
|
1903
|
+
});
|
|
1904
|
+
element.addEventListener("keydown", (e) => {
|
|
1905
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1906
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
element.addEventListener("input", (e) => {
|
|
1910
|
+
const input = e.data;
|
|
1911
|
+
if (!input)
|
|
1912
|
+
return;
|
|
1913
|
+
if (idx === codeElements.length - 1) {
|
|
1914
|
+
e.target.value = input.slice(0, 1);
|
|
1915
|
+
return;
|
|
1916
|
+
}
|
|
1917
|
+
if (input.length > 1) {
|
|
1918
|
+
const rest = input.slice(1);
|
|
1919
|
+
e.target.value = input.slice(0, 1);
|
|
1920
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1921
|
+
inputType: "insertFromPaste",
|
|
1922
|
+
data: rest,
|
|
1923
|
+
}));
|
|
1924
|
+
}
|
|
1925
|
+
codeElements[idx + 1].focus();
|
|
1926
|
+
});
|
|
1927
|
+
});
|
|
1928
|
+
}, [codeRef]);
|
|
1929
|
+
const reset = () => {
|
|
1930
|
+
setShowCode(false);
|
|
1931
|
+
setValidationError(false);
|
|
1932
|
+
};
|
|
1933
|
+
const resendEmail = async () => {
|
|
1934
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1935
|
+
if (!initialized)
|
|
1936
|
+
return;
|
|
1937
|
+
const result = await sendEmail();
|
|
1938
|
+
if (!result) {
|
|
1939
|
+
setEmailError(true);
|
|
1940
|
+
return;
|
|
1941
|
+
}
|
|
1942
|
+
if (emailSent)
|
|
1943
|
+
setEmailResent(true);
|
|
1944
|
+
setEmailSent(true);
|
|
1945
|
+
};
|
|
1946
|
+
const submitCode = async () => {
|
|
1947
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1948
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1949
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1950
|
+
setValidationError(true);
|
|
1951
|
+
return;
|
|
1952
|
+
}
|
|
1953
|
+
let code = "";
|
|
1954
|
+
codeElements.forEach((element) => {
|
|
1955
|
+
code = `${code}${element.value}`;
|
|
1956
|
+
});
|
|
1957
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1958
|
+
if (!initialized)
|
|
1959
|
+
return;
|
|
1960
|
+
setValidationError(false);
|
|
1961
|
+
const res = await verifyEmail(code);
|
|
1962
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1963
|
+
props.onVerification(res.accessKey);
|
|
1964
|
+
reset();
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
setValidationError(true);
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
stencilHooks_module.useEffect(() => {
|
|
1971
|
+
// Wait for mutations to be determined from user lookup
|
|
1972
|
+
if (!initialized)
|
|
1973
|
+
return;
|
|
1974
|
+
// email should already exist if user has completed email-verification
|
|
1975
|
+
if (!email)
|
|
1976
|
+
resendEmail();
|
|
1977
|
+
else
|
|
1978
|
+
setEmailSent(true);
|
|
1979
|
+
}, [initialized]);
|
|
1980
|
+
return {
|
|
1981
|
+
refs: {
|
|
1982
|
+
codeWrapperRef: setCodeRef,
|
|
1983
|
+
},
|
|
1984
|
+
states: {
|
|
1985
|
+
email: verificationEmail,
|
|
1986
|
+
emailResent,
|
|
1987
|
+
resendError: sendErrors || verifyErrors,
|
|
1988
|
+
initialiseLoading: !initialized,
|
|
1989
|
+
loading: sendLoading || verifyLoading,
|
|
1990
|
+
verifyFailed: !!validationError,
|
|
1991
|
+
},
|
|
1992
|
+
callbacks: {
|
|
1993
|
+
resendEmail,
|
|
1994
|
+
submitCode,
|
|
1995
|
+
},
|
|
1996
|
+
text: props.getTextProps(),
|
|
1997
|
+
};
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
const WidgetCodeVerification = class {
|
|
2001
|
+
constructor(hostRef) {
|
|
2002
|
+
index.registerInstance(this, hostRef);
|
|
2003
|
+
/**
|
|
2004
|
+
* @uiName Verify code widget header text
|
|
2005
|
+
*/
|
|
2006
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2007
|
+
/**
|
|
2008
|
+
* @uiName Reverify code widget header text
|
|
2009
|
+
*/
|
|
2010
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2011
|
+
/**
|
|
2012
|
+
* Text displayed under verify button
|
|
2013
|
+
* @uiName Resend code text
|
|
2014
|
+
*/
|
|
2015
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2016
|
+
/**
|
|
2017
|
+
* The link that appears in the resend code link
|
|
2018
|
+
* @uiName Resend code label
|
|
2019
|
+
*/
|
|
2020
|
+
this.resendCodeLabel = "Resend code";
|
|
2021
|
+
/**
|
|
2022
|
+
* Link text displayed under verify button
|
|
2023
|
+
* @uiName Resend code text
|
|
2024
|
+
*/
|
|
2025
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2026
|
+
/**
|
|
2027
|
+
* Error text displayed under verification input
|
|
2028
|
+
* @uiName Invalid code text
|
|
2029
|
+
*/
|
|
2030
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2031
|
+
/**
|
|
2032
|
+
* @uiName Verify code button text
|
|
2033
|
+
*/
|
|
2034
|
+
this.verifyText = "Verify";
|
|
2035
|
+
/**
|
|
2036
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2037
|
+
* @uiName Network error message
|
|
2038
|
+
*/
|
|
2039
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2040
|
+
stencilHooks_module.h$1(this);
|
|
2041
|
+
}
|
|
2042
|
+
disconnectedCallback() { }
|
|
2043
|
+
getTextProps() {
|
|
2044
|
+
return utils.getProps(this);
|
|
2045
|
+
}
|
|
2046
|
+
render() {
|
|
2047
|
+
const props = index_module.isDemo()
|
|
2048
|
+
? useDemoWidgetCodeVerification(this)
|
|
2049
|
+
: useWidgetCodeVerification(this);
|
|
2050
|
+
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2054
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2055
|
+
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2056
|
+
return cjs.cjs({
|
|
2057
|
+
states: {
|
|
2058
|
+
loading: false,
|
|
2059
|
+
email: "test@example.com",
|
|
2060
|
+
emailResent,
|
|
2061
|
+
resendError: false,
|
|
2062
|
+
verifyFailed: false,
|
|
2063
|
+
},
|
|
2064
|
+
refs: {
|
|
2065
|
+
codeWrapperRef: () => { },
|
|
2066
|
+
},
|
|
2067
|
+
callbacks: {
|
|
2068
|
+
resendEmail: async () => setEmailResent(true),
|
|
2069
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2070
|
+
},
|
|
2071
|
+
text: props.getTextProps(),
|
|
2072
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2073
|
+
}
|
|
2074
|
+
|
|
1628
2075
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1629
2076
|
mutation createImpactPublisherTaxDocument(
|
|
1630
2077
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1653,10 +2100,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
1653
2100
|
function useDocusignForm(props) {
|
|
1654
2101
|
var _a, _b, _c;
|
|
1655
2102
|
const user = index_module.J();
|
|
1656
|
-
const context = index_module.Fn(
|
|
1657
|
-
const [step, setStep] = index_module.Pn(
|
|
1658
|
-
const { data
|
|
1659
|
-
const publisher = (_b = (_a = data
|
|
2103
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2104
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2105
|
+
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2106
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1660
2107
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1661
2108
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1662
2109
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
@@ -1665,7 +2112,7 @@ function useDocusignForm(props) {
|
|
|
1665
2112
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1666
2113
|
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
1667
2114
|
// Only look at current document if it's valid (same as required type)
|
|
1668
|
-
const existingDocumentType =
|
|
2115
|
+
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1669
2116
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1670
2117
|
const actualDocumentType = existingDocumentType ||
|
|
1671
2118
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
@@ -1757,7 +2204,7 @@ function useDocusignForm(props) {
|
|
|
1757
2204
|
},
|
|
1758
2205
|
docusignStatus,
|
|
1759
2206
|
documentType: actualDocumentType,
|
|
1760
|
-
documentTypeString:
|
|
2207
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1761
2208
|
showExitButton,
|
|
1762
2209
|
},
|
|
1763
2210
|
data: {
|
|
@@ -1782,7 +2229,7 @@ function getDocumentType(p) {
|
|
|
1782
2229
|
return undefined;
|
|
1783
2230
|
}
|
|
1784
2231
|
|
|
1785
|
-
const style$
|
|
2232
|
+
const style$2 = {
|
|
1786
2233
|
DocusignStatusContainer: {
|
|
1787
2234
|
width: "100%",
|
|
1788
2235
|
minHeight: "600px",
|
|
@@ -1794,7 +2241,7 @@ const style$1 = {
|
|
|
1794
2241
|
gap: "10px",
|
|
1795
2242
|
margin: "auto",
|
|
1796
2243
|
textAlign: "center",
|
|
1797
|
-
border: "1px solid var(--
|
|
2244
|
+
border: "1px solid var(--sqm-border-color)",
|
|
1798
2245
|
justifyContent: "center",
|
|
1799
2246
|
},
|
|
1800
2247
|
MessageContainer: {
|
|
@@ -1809,13 +2256,13 @@ const style$1 = {
|
|
|
1809
2256
|
},
|
|
1810
2257
|
},
|
|
1811
2258
|
};
|
|
1812
|
-
const sheet$
|
|
1813
|
-
const styleString$
|
|
2259
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2260
|
+
const styleString$2 = sheet$2.toString();
|
|
1814
2261
|
const DocusignExpiredView = (props) => {
|
|
1815
|
-
const { classes } = sheet$
|
|
2262
|
+
const { classes } = sheet$2;
|
|
1816
2263
|
const { text } = props;
|
|
1817
2264
|
return (index.h("div", null,
|
|
1818
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2265
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1819
2266
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1820
2267
|
index.h("sl-icon", { style: {
|
|
1821
2268
|
width: "50px",
|
|
@@ -1827,10 +2274,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1827
2274
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1828
2275
|
};
|
|
1829
2276
|
const DocusignErrorView = (props) => {
|
|
1830
|
-
const { classes } = sheet$
|
|
2277
|
+
const { classes } = sheet$2;
|
|
1831
2278
|
const { text } = props;
|
|
1832
2279
|
return (index.h("div", null,
|
|
1833
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2280
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1834
2281
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1835
2282
|
index.h("sl-icon", { style: {
|
|
1836
2283
|
width: "50px",
|
|
@@ -1842,14 +2289,14 @@ const DocusignErrorView = (props) => {
|
|
|
1842
2289
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1843
2290
|
};
|
|
1844
2291
|
const DocusignLoadingView = () => {
|
|
1845
|
-
const { classes } = sheet$
|
|
2292
|
+
const { classes } = sheet$2;
|
|
1846
2293
|
return (index.h("div", null,
|
|
1847
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2294
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1848
2295
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1849
2296
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1850
2297
|
};
|
|
1851
2298
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1852
|
-
const { classes } = sheet$
|
|
2299
|
+
const { classes } = sheet$2;
|
|
1853
2300
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1854
2301
|
const allowedDomains = [
|
|
1855
2302
|
"referralsaasquatch.com",
|
|
@@ -1882,12 +2329,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1882
2329
|
return index.h(DocusignExpiredView, { text: text });
|
|
1883
2330
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1884
2331
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1885
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2332
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1886
2333
|
index.h("div", { class: classes.IFrameContainer },
|
|
1887
2334
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1888
2335
|
};
|
|
1889
2336
|
|
|
1890
|
-
const style$
|
|
2337
|
+
const style$3 = {
|
|
1891
2338
|
FormWrapper: {
|
|
1892
2339
|
display: "flex",
|
|
1893
2340
|
justifyContent: "flex-start",
|
|
@@ -1977,9 +2424,9 @@ const style$2 = {
|
|
|
1977
2424
|
fontSize: "var(--sl-font-size-medium)",
|
|
1978
2425
|
},
|
|
1979
2426
|
};
|
|
1980
|
-
const sheet$
|
|
1981
|
-
const styleString$
|
|
1982
|
-
const vanillaStyle$
|
|
2427
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2428
|
+
const styleString$3 = sheet$3.toString();
|
|
2429
|
+
const vanillaStyle$2 = `
|
|
1983
2430
|
:host{
|
|
1984
2431
|
display: block;
|
|
1985
2432
|
}
|
|
@@ -2000,21 +2447,21 @@ const vanillaStyle$1 = `
|
|
|
2000
2447
|
const DocusignFormView = (props) => {
|
|
2001
2448
|
var _a;
|
|
2002
2449
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2003
|
-
const { classes } = sheet$
|
|
2450
|
+
const { classes } = sheet$3;
|
|
2004
2451
|
return (index.h("div", { class: classes.Container },
|
|
2005
2452
|
index.h("style", { type: "text/css" },
|
|
2006
|
-
styleString$
|
|
2007
|
-
vanillaStyle$
|
|
2453
|
+
styleString$3,
|
|
2454
|
+
vanillaStyle$2),
|
|
2008
2455
|
index.h("div", { class: classes.TextContainer },
|
|
2009
2456
|
index.h("div", null,
|
|
2010
2457
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2011
2458
|
id: "formStep",
|
|
2012
2459
|
defaultMessage: text.formStep,
|
|
2013
|
-
}, { step: states.step, count:
|
|
2460
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2014
2461
|
index.h("h3", null, text.taxForm),
|
|
2015
2462
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2016
2463
|
states.loadingError && (index.h("div", null,
|
|
2017
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2464
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2018
2465
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2019
2466
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2020
2467
|
index.h("br", null),
|
|
@@ -2024,7 +2471,7 @@ const DocusignFormView = (props) => {
|
|
|
2024
2471
|
}, {
|
|
2025
2472
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2026
2473
|
})))),
|
|
2027
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2474
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2028
2475
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2029
2476
|
index.h("strong", null, text.error.generalTitle),
|
|
2030
2477
|
index.h("br", null),
|
|
@@ -2195,7 +2642,7 @@ const DocusignForm = class {
|
|
|
2195
2642
|
get el() { return index.getElement(this); }
|
|
2196
2643
|
};
|
|
2197
2644
|
function useDocusignFormDemo(props) {
|
|
2198
|
-
const setStep = index_module.En(
|
|
2645
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2199
2646
|
return cjs.cjs({
|
|
2200
2647
|
text: props.getTextProps(),
|
|
2201
2648
|
states: {
|
|
@@ -2244,7 +2691,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2244
2691
|
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2245
2692
|
};
|
|
2246
2693
|
|
|
2247
|
-
const style$
|
|
2694
|
+
const style$4 = {
|
|
2248
2695
|
FormWrapper: {
|
|
2249
2696
|
display: "flex",
|
|
2250
2697
|
justifyContent: "flex-start",
|
|
@@ -2376,9 +2823,9 @@ const style$3 = {
|
|
|
2376
2823
|
},
|
|
2377
2824
|
},
|
|
2378
2825
|
};
|
|
2379
|
-
const sheet$
|
|
2380
|
-
const styleString$
|
|
2381
|
-
const vanillaStyle$
|
|
2826
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2827
|
+
const styleString$4 = sheet$4.toString();
|
|
2828
|
+
const vanillaStyle$3 = `
|
|
2382
2829
|
:host{
|
|
2383
2830
|
display: block;
|
|
2384
2831
|
}
|
|
@@ -2405,11 +2852,11 @@ const vanillaStyle$2 = `
|
|
|
2405
2852
|
const IndirectTaxFormView = (props) => {
|
|
2406
2853
|
var _a;
|
|
2407
2854
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2408
|
-
const { classes } = sheet$
|
|
2855
|
+
const { classes } = sheet$4;
|
|
2409
2856
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2410
2857
|
index.h("style", { type: "text/css" },
|
|
2411
|
-
styleString$
|
|
2412
|
-
vanillaStyle$
|
|
2858
|
+
styleString$4,
|
|
2859
|
+
vanillaStyle$3),
|
|
2413
2860
|
index.h("div", { class: classes.TextContainer },
|
|
2414
2861
|
index.h("div", null,
|
|
2415
2862
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2417,12 +2864,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2417
2864
|
global.intl.formatMessage({
|
|
2418
2865
|
id: "formStep",
|
|
2419
2866
|
defaultMessage: text.formStep,
|
|
2420
|
-
}, { step: states.step, count:
|
|
2867
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2421
2868
|
index.h("h3", null, text.indirectTax),
|
|
2422
2869
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2423
2870
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2424
2871
|
states.loadingError && (index.h("div", null,
|
|
2425
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2872
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2426
2873
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2427
2874
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2428
2875
|
index.h("br", null),
|
|
@@ -2432,7 +2879,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2432
2879
|
}, {
|
|
2433
2880
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2434
2881
|
})))),
|
|
2435
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2882
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
2436
2883
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2437
2884
|
index.h("strong", null, text.error.generalTitle),
|
|
2438
2885
|
index.h("br", null),
|
|
@@ -2442,7 +2889,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2442
2889
|
}, {
|
|
2443
2890
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2444
2891
|
}))),
|
|
2445
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2892
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2446
2893
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2447
2894
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2448
2895
|
index.h("br", null),
|
|
@@ -2520,14 +2967,14 @@ function useIndirectTaxForm(props) {
|
|
|
2520
2967
|
const user = index_module.J();
|
|
2521
2968
|
const locale = index_module.L();
|
|
2522
2969
|
const formRef = stencilHooks_module.useRef(null);
|
|
2523
|
-
const context = index_module.Fn(
|
|
2524
|
-
const [step, setStep] = index_module.Pn(
|
|
2970
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2971
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2525
2972
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2526
|
-
const userForm = index_module.Fn(
|
|
2527
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
2528
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(
|
|
2973
|
+
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2974
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2975
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2529
2976
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2530
|
-
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) =>
|
|
2977
|
+
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2531
2978
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2532
2979
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
2533
2980
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -2642,7 +3089,7 @@ function useIndirectTaxForm(props) {
|
|
|
2642
3089
|
await refetch();
|
|
2643
3090
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2644
3091
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2645
|
-
const hasValidCurrentDocument =
|
|
3092
|
+
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2646
3093
|
// Fire form change event
|
|
2647
3094
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2648
3095
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -2697,10 +3144,10 @@ function useIndirectTaxForm(props) {
|
|
|
2697
3144
|
})),
|
|
2698
3145
|
},
|
|
2699
3146
|
data: {
|
|
2700
|
-
esRegions:
|
|
3147
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2701
3148
|
countries: filteredCountries,
|
|
2702
3149
|
allCountries: _countries,
|
|
2703
|
-
provinces:
|
|
3150
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2704
3151
|
},
|
|
2705
3152
|
text: props.getTextProps(),
|
|
2706
3153
|
refs: {
|
|
@@ -2902,7 +3349,7 @@ const IndirectTaxForm = class {
|
|
|
2902
3349
|
const props = index_module.isDemo()
|
|
2903
3350
|
? useDemoIndirectTaxForm(this)
|
|
2904
3351
|
: useIndirectTaxForm(this);
|
|
2905
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
3352
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2906
3353
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2907
3354
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2908
3355
|
formState: props.slotProps.formState,
|
|
@@ -2920,8 +3367,8 @@ const IndirectTaxForm = class {
|
|
|
2920
3367
|
}
|
|
2921
3368
|
};
|
|
2922
3369
|
function useDemoIndirectTaxForm(props) {
|
|
2923
|
-
const setStep = index_module.En(
|
|
2924
|
-
const [option, setOption] = stencilHooks_module.useState(
|
|
3370
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3371
|
+
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2925
3372
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2926
3373
|
return cjs.cjs({
|
|
2927
3374
|
states: {
|
|
@@ -2961,7 +3408,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2961
3408
|
setCountrySearch: (c) => console.log(c),
|
|
2962
3409
|
},
|
|
2963
3410
|
data: {
|
|
2964
|
-
esRegions:
|
|
3411
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2965
3412
|
countries: [
|
|
2966
3413
|
{
|
|
2967
3414
|
countryCode: "CA",
|
|
@@ -2980,7 +3427,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2980
3427
|
displayName: "United States",
|
|
2981
3428
|
},
|
|
2982
3429
|
],
|
|
2983
|
-
provinces:
|
|
3430
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2984
3431
|
},
|
|
2985
3432
|
text: props.getTextProps(),
|
|
2986
3433
|
refs: {
|
|
@@ -3213,7 +3660,7 @@ const InvoiceTable = class {
|
|
|
3213
3660
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3214
3661
|
: useInvoiceTable(this, empty, loading);
|
|
3215
3662
|
reRender.useRequestRerender([this.perPage]);
|
|
3216
|
-
return (index.h(
|
|
3663
|
+
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3217
3664
|
}
|
|
3218
3665
|
};
|
|
3219
3666
|
function EmptySlot(props) {
|
|
@@ -3315,6 +3762,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3315
3762
|
return demoProps;
|
|
3316
3763
|
}
|
|
3317
3764
|
|
|
3765
|
+
const InvoiceTableDataCell = class {
|
|
3766
|
+
constructor(hostRef) {
|
|
3767
|
+
index.registerInstance(this, hostRef);
|
|
3768
|
+
this.ignored = true;
|
|
3769
|
+
stencilHooks_module.h$1(this);
|
|
3770
|
+
}
|
|
3771
|
+
disconnectedCallback() { }
|
|
3772
|
+
render() {
|
|
3773
|
+
return this.data;
|
|
3774
|
+
}
|
|
3775
|
+
};
|
|
3776
|
+
|
|
3318
3777
|
const InvoiceTableDataColumn = class {
|
|
3319
3778
|
constructor(hostRef) {
|
|
3320
3779
|
index.registerInstance(this, hostRef);
|
|
@@ -3333,6 +3792,23 @@ const InvoiceTableDataColumn = class {
|
|
|
3333
3792
|
}
|
|
3334
3793
|
};
|
|
3335
3794
|
|
|
3795
|
+
const RewardTableDateCell = class {
|
|
3796
|
+
constructor(hostRef) {
|
|
3797
|
+
index.registerInstance(this, hostRef);
|
|
3798
|
+
this.ignored = true;
|
|
3799
|
+
this.locale = "en";
|
|
3800
|
+
stencilHooks_module.h$1(this);
|
|
3801
|
+
}
|
|
3802
|
+
disconnectedCallback() { }
|
|
3803
|
+
render() {
|
|
3804
|
+
var _a, _b;
|
|
3805
|
+
const date = !this.date
|
|
3806
|
+
? "-"
|
|
3807
|
+
: (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
|
|
3808
|
+
return date;
|
|
3809
|
+
}
|
|
3810
|
+
};
|
|
3811
|
+
|
|
3336
3812
|
const InvoiceTableDateColumn = class {
|
|
3337
3813
|
constructor(hostRef) {
|
|
3338
3814
|
index.registerInstance(this, hostRef);
|
|
@@ -3351,6 +3827,21 @@ const InvoiceTableDateColumn = class {
|
|
|
3351
3827
|
}
|
|
3352
3828
|
};
|
|
3353
3829
|
|
|
3830
|
+
const InvoiceTableDownloadCell = class {
|
|
3831
|
+
constructor(hostRef) {
|
|
3832
|
+
index.registerInstance(this, hostRef);
|
|
3833
|
+
this.ignored = true;
|
|
3834
|
+
stencilHooks_module.h$1(this);
|
|
3835
|
+
}
|
|
3836
|
+
disconnectedCallback() { }
|
|
3837
|
+
render() {
|
|
3838
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3839
|
+
cursor: pointer;
|
|
3840
|
+
}`;
|
|
3841
|
+
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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)" }), index.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)" }))))));
|
|
3842
|
+
}
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3354
3845
|
const InvoiceTableGenericColumn = class {
|
|
3355
3846
|
constructor(hostRef) {
|
|
3356
3847
|
index.registerInstance(this, hostRef);
|
|
@@ -3373,7 +3864,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3373
3864
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3374
3865
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3375
3866
|
|
|
3376
|
-
const style$
|
|
3867
|
+
const style$5 = {
|
|
3377
3868
|
CardContainer: {
|
|
3378
3869
|
display: "grid",
|
|
3379
3870
|
gridTemplateColumns: "1fr",
|
|
@@ -3494,6 +3985,22 @@ const style$4 = {
|
|
|
3494
3985
|
margin: 0,
|
|
3495
3986
|
},
|
|
3496
3987
|
},
|
|
3988
|
+
SuccessBadge: {
|
|
3989
|
+
"&::part(base)": {
|
|
3990
|
+
textAlign: "center",
|
|
3991
|
+
whiteSpace: "pre-line",
|
|
3992
|
+
background: "var(--sqm-success-color-icon)",
|
|
3993
|
+
color: "var(--sqm-success-color-text)",
|
|
3994
|
+
},
|
|
3995
|
+
},
|
|
3996
|
+
PrimaryBadge: {
|
|
3997
|
+
"&::part(base)": {
|
|
3998
|
+
textAlign: "center",
|
|
3999
|
+
whiteSpace: "pre-line",
|
|
4000
|
+
background: "var(--sqm-informative-color-icon)",
|
|
4001
|
+
color: "var(--sqm-informative-color-text)",
|
|
4002
|
+
},
|
|
4003
|
+
},
|
|
3497
4004
|
AlertContent: {
|
|
3498
4005
|
display: "flex",
|
|
3499
4006
|
alignItems: "flex-start",
|
|
@@ -3507,7 +4014,7 @@ const style$4 = {
|
|
|
3507
4014
|
},
|
|
3508
4015
|
};
|
|
3509
4016
|
function PayoutDetailsCardView(props) {
|
|
3510
|
-
const sheet = JSS.createStyleSheet(style$
|
|
4017
|
+
const sheet = JSS.createStyleSheet(style$5);
|
|
3511
4018
|
const styleString = sheet.toString();
|
|
3512
4019
|
const { classes } = sheet;
|
|
3513
4020
|
const { states, text } = props;
|
|
@@ -3521,13 +4028,14 @@ function PayoutDetailsCardView(props) {
|
|
|
3521
4028
|
};
|
|
3522
4029
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3523
4030
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
4031
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3524
4032
|
const statusText = global.intl.formatMessage({
|
|
3525
4033
|
id: "badgeText",
|
|
3526
4034
|
defaultMessage: statusBadgeText,
|
|
3527
4035
|
}, {
|
|
3528
4036
|
badgeText: status,
|
|
3529
4037
|
});
|
|
3530
|
-
return (index.h("sl-badge", { pill: true,
|
|
4038
|
+
return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
3531
4039
|
};
|
|
3532
4040
|
const thresholdText = global.intl.formatMessage({
|
|
3533
4041
|
id: "thresholdText",
|
|
@@ -3558,8 +4066,8 @@ function PayoutDetailsCardView(props) {
|
|
|
3558
4066
|
|
|
3559
4067
|
function usePayoutDetailsCard(props) {
|
|
3560
4068
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3561
|
-
const { data
|
|
3562
|
-
const publisher = (_b = (_a = data
|
|
4069
|
+
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4070
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3563
4071
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3564
4072
|
var _a;
|
|
3565
4073
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -3637,10 +4145,6 @@ const PayoutDetailsCard = class {
|
|
|
3637
4145
|
* @uiName Payout missing information subtext
|
|
3638
4146
|
*/
|
|
3639
4147
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3640
|
-
/**
|
|
3641
|
-
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3642
|
-
*/
|
|
3643
|
-
this.stateController = "{}";
|
|
3644
4148
|
stencilHooks_module.h$1(this);
|
|
3645
4149
|
}
|
|
3646
4150
|
disconnectedCallback() { }
|
|
@@ -3678,10 +4182,1223 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3678
4182
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3679
4183
|
}
|
|
3680
4184
|
|
|
3681
|
-
const
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
4185
|
+
const TableCell = class {
|
|
4186
|
+
constructor(hostRef) {
|
|
4187
|
+
index.registerInstance(this, hostRef);
|
|
4188
|
+
/** @uiName Column span */
|
|
4189
|
+
this.colspan = 1;
|
|
4190
|
+
/** @uiName Padding */
|
|
4191
|
+
this.padding = "15px 10px";
|
|
4192
|
+
}
|
|
4193
|
+
render() {
|
|
4194
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4195
|
+
}
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
const TableRow = class {
|
|
4199
|
+
constructor(hostRef) {
|
|
4200
|
+
index.registerInstance(this, hostRef);
|
|
4201
|
+
/**
|
|
4202
|
+
* @uiName Border
|
|
4203
|
+
*/
|
|
4204
|
+
this.border = "1px solid #EAEAEA";
|
|
4205
|
+
}
|
|
4206
|
+
render() {
|
|
4207
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4208
|
+
}
|
|
4209
|
+
};
|
|
4210
|
+
|
|
4211
|
+
function getCurrentStep(user) {
|
|
4212
|
+
var _a, _b;
|
|
4213
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4214
|
+
return "/1";
|
|
4215
|
+
}
|
|
4216
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4217
|
+
// If they do have a required document, look at current document
|
|
4218
|
+
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4219
|
+
return "/3";
|
|
4220
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4221
|
+
return "/4";
|
|
4222
|
+
return "/dashboard";
|
|
4223
|
+
}
|
|
4224
|
+
function useTaxAndCash() {
|
|
4225
|
+
var _a, _b, _c, _d, _e;
|
|
4226
|
+
const host = index_module._();
|
|
4227
|
+
const user = index_module.J();
|
|
4228
|
+
const locale = index_module.L();
|
|
4229
|
+
// State for current step of form
|
|
4230
|
+
const [step, setStep] = index_module.In({
|
|
4231
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4232
|
+
initialValue: "/loading",
|
|
4233
|
+
});
|
|
4234
|
+
// State for when to hide steps, or override certain actions
|
|
4235
|
+
const [context, _setContext] = index_module.In({
|
|
4236
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4237
|
+
initialValue: {},
|
|
4238
|
+
});
|
|
4239
|
+
// State to carry user form information into step 2
|
|
4240
|
+
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4241
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4242
|
+
initialValue: {
|
|
4243
|
+
firstName: undefined,
|
|
4244
|
+
lastName: undefined,
|
|
4245
|
+
email: undefined,
|
|
4246
|
+
countryCode: undefined,
|
|
4247
|
+
currency: undefined,
|
|
4248
|
+
},
|
|
4249
|
+
});
|
|
4250
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4251
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4252
|
+
initialValue: [],
|
|
4253
|
+
});
|
|
4254
|
+
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4255
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4256
|
+
initialValue: [],
|
|
4257
|
+
});
|
|
4258
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4259
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4260
|
+
initialValue: [],
|
|
4261
|
+
});
|
|
4262
|
+
const { data, errors } = index_module.Sn({
|
|
4263
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4264
|
+
query: GET_USER,
|
|
4265
|
+
skip: !user,
|
|
4266
|
+
options: {
|
|
4267
|
+
batch: false,
|
|
4268
|
+
},
|
|
4269
|
+
});
|
|
4270
|
+
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) ||
|
|
4271
|
+
userFormContext.countryCode;
|
|
4272
|
+
index_module.Sn({
|
|
4273
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4274
|
+
query: GET_COUNTRIES,
|
|
4275
|
+
skip: !user,
|
|
4276
|
+
});
|
|
4277
|
+
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4278
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4279
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4280
|
+
skip: !user,
|
|
4281
|
+
variables: {
|
|
4282
|
+
filter: getFinanceNetworkFilter(),
|
|
4283
|
+
},
|
|
4284
|
+
});
|
|
4285
|
+
const { data: currenciesData } = index_module.Sn({
|
|
4286
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4287
|
+
query: GET_CURRENCIES,
|
|
4288
|
+
skip: !user,
|
|
4289
|
+
variables: {
|
|
4290
|
+
locale,
|
|
4291
|
+
},
|
|
4292
|
+
});
|
|
4293
|
+
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4294
|
+
var _a, _b;
|
|
4295
|
+
// Filter out any currencies not supported by finance network settings
|
|
4296
|
+
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) => {
|
|
4297
|
+
var _a, _b;
|
|
4298
|
+
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);
|
|
4299
|
+
// Currency not in supported list
|
|
4300
|
+
if (!currency)
|
|
4301
|
+
return agg;
|
|
4302
|
+
// Currency already added to list
|
|
4303
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4304
|
+
return agg;
|
|
4305
|
+
// Currency not supported by selected country
|
|
4306
|
+
if (userFormContext.countryCode &&
|
|
4307
|
+
settings.countryCode !== countryCode)
|
|
4308
|
+
return agg;
|
|
4309
|
+
return [...agg, currency];
|
|
4310
|
+
}, []);
|
|
4311
|
+
return allValidCurrencies;
|
|
4312
|
+
}, [financeNetworkData, countryCode]);
|
|
4313
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4314
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4315
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4316
|
+
// filter out any duplicate countries and null countryCode
|
|
4317
|
+
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4318
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4319
|
+
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4320
|
+
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4321
|
+
.sort(sortByName)
|
|
4322
|
+
.reduce((prev, countryObj) => {
|
|
4323
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4324
|
+
return [countryObj, ...prev];
|
|
4325
|
+
return [...prev, countryObj];
|
|
4326
|
+
}, []), [availableCountries]);
|
|
4327
|
+
stencilHooks_module.useEffect(() => {
|
|
4328
|
+
if (sortedCountries)
|
|
4329
|
+
setSortedCountriesContext(sortedCountries);
|
|
4330
|
+
}, [sortedCountries]);
|
|
4331
|
+
stencilHooks_module.useEffect(() => {
|
|
4332
|
+
if (supportedCurrencies)
|
|
4333
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4334
|
+
}, [supportedCurrencies]);
|
|
4335
|
+
stencilHooks_module.useEffect(() => {
|
|
4336
|
+
if (errors) {
|
|
4337
|
+
setStep("/error");
|
|
4338
|
+
return;
|
|
4339
|
+
}
|
|
4340
|
+
if (!host || !user)
|
|
4341
|
+
return;
|
|
4342
|
+
if (data) {
|
|
4343
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4344
|
+
if (!user || step !== "/loading")
|
|
4345
|
+
return;
|
|
4346
|
+
const currentStep = getCurrentStep(user);
|
|
4347
|
+
setStep(currentStep);
|
|
4348
|
+
}
|
|
4349
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4350
|
+
function getFinanceNetworkFilter() {
|
|
4351
|
+
var _a, _b, _c;
|
|
4352
|
+
if (step === "/1")
|
|
4353
|
+
return {};
|
|
4354
|
+
if (step === "/4")
|
|
4355
|
+
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 };
|
|
4356
|
+
if (countryCode)
|
|
4357
|
+
return {
|
|
4358
|
+
countryCode_eq: countryCode,
|
|
4359
|
+
};
|
|
4360
|
+
return {};
|
|
4361
|
+
}
|
|
4362
|
+
return {
|
|
4363
|
+
step,
|
|
4364
|
+
setStep,
|
|
4365
|
+
context,
|
|
4366
|
+
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4367
|
+
loading: step === "/loading",
|
|
4368
|
+
};
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
const TaxAndCashMonolith = class {
|
|
4372
|
+
constructor(hostRef) {
|
|
4373
|
+
index.registerInstance(this, hostRef);
|
|
4374
|
+
/*---------------------------------------------------------------------------------
|
|
4375
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4376
|
+
-----------------------------------------------------------------------------------*/
|
|
4377
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4378
|
+
STEP 1 PROPS:
|
|
4379
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4380
|
+
/**
|
|
4381
|
+
* @uiName First name field label
|
|
4382
|
+
* @uiGroup Step 1 Properties
|
|
4383
|
+
*/
|
|
4384
|
+
this.step1_firstName = "First name";
|
|
4385
|
+
/**
|
|
4386
|
+
* @uiName Last name field label
|
|
4387
|
+
* @uiGroup Step 1 Properties
|
|
4388
|
+
*/
|
|
4389
|
+
this.step1_lastName = "Last name";
|
|
4390
|
+
/**
|
|
4391
|
+
* @uiName Email field label
|
|
4392
|
+
* @uiGroup Step 1 Properties
|
|
4393
|
+
*/
|
|
4394
|
+
this.step1_email = "Email";
|
|
4395
|
+
/**
|
|
4396
|
+
* @uiName Country field label
|
|
4397
|
+
* @uiGroup Step 1 Properties
|
|
4398
|
+
*/
|
|
4399
|
+
this.step1_country = "Country";
|
|
4400
|
+
/**
|
|
4401
|
+
* @uiName Phone number field label
|
|
4402
|
+
* @uiGroup Step 1 Properties
|
|
4403
|
+
*/
|
|
4404
|
+
this.step1_phoneNumber = "Phone number";
|
|
4405
|
+
/**
|
|
4406
|
+
* @uiName Address field label
|
|
4407
|
+
* @uiGroup Step 1 Properties
|
|
4408
|
+
*/
|
|
4409
|
+
this.step1_address = "Address";
|
|
4410
|
+
/**
|
|
4411
|
+
* @uiName City field label
|
|
4412
|
+
* @uiGroup Step 1 Properties
|
|
4413
|
+
*/
|
|
4414
|
+
this.step1_city = "City";
|
|
4415
|
+
/**
|
|
4416
|
+
* @uiName State field label for states
|
|
4417
|
+
* @uiGroup Step 1 Properties
|
|
4418
|
+
*/
|
|
4419
|
+
this.step1_state = "State";
|
|
4420
|
+
/**
|
|
4421
|
+
* @uiName State field label for provinces
|
|
4422
|
+
* @uiGroup Step 1 Properties
|
|
4423
|
+
*/
|
|
4424
|
+
this.step1_province = "Province";
|
|
4425
|
+
/**
|
|
4426
|
+
* @uiName State field label for regions
|
|
4427
|
+
* @uiGroup Step 1 Properties
|
|
4428
|
+
*/
|
|
4429
|
+
this.step1_region = "Region";
|
|
4430
|
+
/**
|
|
4431
|
+
* @uiName Postal code field label
|
|
4432
|
+
* @uiGroup Step 1 Properties
|
|
4433
|
+
*/
|
|
4434
|
+
this.step1_postalCode = "Postal code";
|
|
4435
|
+
/**
|
|
4436
|
+
* @uiName Currency field label
|
|
4437
|
+
* @uiGroup Step 1 Properties
|
|
4438
|
+
*/
|
|
4439
|
+
this.step1_currency = "Currency";
|
|
4440
|
+
/**
|
|
4441
|
+
* @uiName Currency field help text
|
|
4442
|
+
* @uiGroup Step 1 Properties
|
|
4443
|
+
*/
|
|
4444
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4445
|
+
/**
|
|
4446
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4447
|
+
* @uiName Terms and conditions checkbox
|
|
4448
|
+
* @uiGroup Step 1 Properties
|
|
4449
|
+
*/
|
|
4450
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4451
|
+
/**
|
|
4452
|
+
* @uiName Step 1 title
|
|
4453
|
+
* @uiGroup Step 1 Properties
|
|
4454
|
+
*/
|
|
4455
|
+
this.step1_personalInformation = "Personal Information";
|
|
4456
|
+
/**
|
|
4457
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4458
|
+
* @uiName Terms and conditions text
|
|
4459
|
+
* @uiGroup Step 1 Properties
|
|
4460
|
+
* @uiWidget textArea
|
|
4461
|
+
*/
|
|
4462
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4463
|
+
/**
|
|
4464
|
+
* The link that appears in the terms and conditions checkbox
|
|
4465
|
+
* @uiName Terms and conditions link
|
|
4466
|
+
* @uiGroup Step 1 Properties
|
|
4467
|
+
*/
|
|
4468
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4469
|
+
/**
|
|
4470
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4471
|
+
* @uiName Currency field placeholder text
|
|
4472
|
+
* @uiGroup Step 1 Properties
|
|
4473
|
+
*/
|
|
4474
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4475
|
+
/**
|
|
4476
|
+
|
|
4477
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4478
|
+
STEP 2 PROPS:
|
|
4479
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4480
|
+
/**
|
|
4481
|
+
* @uiName Step 2 title
|
|
4482
|
+
* @uiGroup Step 2 Properties
|
|
4483
|
+
*/
|
|
4484
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4485
|
+
/**
|
|
4486
|
+
* Displayed under the title of this step.
|
|
4487
|
+
* @uiName Step 2 description
|
|
4488
|
+
* @uiGroup Step 2 Properties
|
|
4489
|
+
* @uiWidget textArea
|
|
4490
|
+
*/
|
|
4491
|
+
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.";
|
|
4492
|
+
/**
|
|
4493
|
+
* Displayed with indirect tax registration options.
|
|
4494
|
+
* @uiName Indirect tax details section title
|
|
4495
|
+
* @uiGroup Step 2 Properties
|
|
4496
|
+
*/
|
|
4497
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4498
|
+
/**
|
|
4499
|
+
* @uiName Registered for indirect tax option
|
|
4500
|
+
* @uiGroup Step 2 Properties
|
|
4501
|
+
* @uiWidget textArea
|
|
4502
|
+
*
|
|
4503
|
+
*/
|
|
4504
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4505
|
+
/**
|
|
4506
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4507
|
+
* @uiName Registered for indirect tax option description
|
|
4508
|
+
* @uiGroup Step 2 Properties
|
|
4509
|
+
*/
|
|
4510
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4511
|
+
/**
|
|
4512
|
+
* @uiName Not registered for indirect tax option
|
|
4513
|
+
* @uiGroup Step 2 Properties
|
|
4514
|
+
* @uiWidget textArea
|
|
4515
|
+
*/
|
|
4516
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4517
|
+
/**
|
|
4518
|
+
* Participants based in the US are considered not registered.
|
|
4519
|
+
* @uiName Not registered for indirect tax option description
|
|
4520
|
+
* @uiGroup Step 2 Properties
|
|
4521
|
+
*/
|
|
4522
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4523
|
+
/**
|
|
4524
|
+
* @uiName Region of indirect tax field label
|
|
4525
|
+
* @uiGroup Step 2 Properties
|
|
4526
|
+
*/
|
|
4527
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4528
|
+
/**
|
|
4529
|
+
* @uiName Indirect tax number field label
|
|
4530
|
+
* @uiGroup Step 2 Properties
|
|
4531
|
+
*/
|
|
4532
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4533
|
+
/**
|
|
4534
|
+
* @uiName Province field label
|
|
4535
|
+
* @uiGroup Step 2 Properties
|
|
4536
|
+
*/
|
|
4537
|
+
this.step2_province = "Province";
|
|
4538
|
+
/**
|
|
4539
|
+
* @uiName Missing indirect tax number error message
|
|
4540
|
+
* @uiGroup Step 2 Properties
|
|
4541
|
+
*/
|
|
4542
|
+
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";
|
|
4543
|
+
/**
|
|
4544
|
+
* Displayed to participants registered for QST.
|
|
4545
|
+
* @uiName QST number field label
|
|
4546
|
+
* @uiGroup Step 2 Properties
|
|
4547
|
+
*/
|
|
4548
|
+
this.step2_qstNumber = "QST number";
|
|
4549
|
+
/**
|
|
4550
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4551
|
+
* @uiName QST tax checkbox
|
|
4552
|
+
* @uiGroup Step 2 Properties
|
|
4553
|
+
*/
|
|
4554
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4555
|
+
/**
|
|
4556
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4557
|
+
* @uiName Spain income tax checkbox
|
|
4558
|
+
* @uiGroup Step 2 Properties
|
|
4559
|
+
* @uiWidget textArea
|
|
4560
|
+
*/
|
|
4561
|
+
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.";
|
|
4562
|
+
/**
|
|
4563
|
+
* Displayed to participants registered in Spain.
|
|
4564
|
+
* @uiName Sub-region of indirect tax field label
|
|
4565
|
+
* @uiGroup Step 2 Properties
|
|
4566
|
+
*/
|
|
4567
|
+
this.step2_subRegion = "Sub-region";
|
|
4568
|
+
/**
|
|
4569
|
+
* @uiName Income tax field label
|
|
4570
|
+
* @uiGroup Step 2 Properties
|
|
4571
|
+
*/
|
|
4572
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4573
|
+
/**
|
|
4574
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4575
|
+
* @uiName Submission confirmation alert
|
|
4576
|
+
* @uiGroup Step 2 Properties
|
|
4577
|
+
* @uiWidget textArea
|
|
4578
|
+
*/
|
|
4579
|
+
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.";
|
|
4580
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4581
|
+
STEP 3 PROPS:
|
|
4582
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4583
|
+
/**
|
|
4584
|
+
* @uiName Step 3 title
|
|
4585
|
+
* @uiGroup Step 3 Properties
|
|
4586
|
+
*/
|
|
4587
|
+
this.step3_taxForm = "Tax form";
|
|
4588
|
+
/**
|
|
4589
|
+
* Display the type of tax form that the participant must submit.
|
|
4590
|
+
* @uiName Tax form name
|
|
4591
|
+
* @uiGroup Step 3 Properties
|
|
4592
|
+
*/
|
|
4593
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4594
|
+
/**
|
|
4595
|
+
* @uiName Participant type field label
|
|
4596
|
+
* @uiGroup Step 3 Properties
|
|
4597
|
+
*/
|
|
4598
|
+
this.step3_participantType = "Participant type";
|
|
4599
|
+
/**
|
|
4600
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4601
|
+
* @uiName Business representative participant type label
|
|
4602
|
+
* @uiGroup Step 3 Properties
|
|
4603
|
+
*/
|
|
4604
|
+
this.step3_businessEntity = "I represent a business";
|
|
4605
|
+
/**
|
|
4606
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4607
|
+
* @uiName Individual participant type label
|
|
4608
|
+
* @uiGroup Step 3 Properties
|
|
4609
|
+
*/
|
|
4610
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4611
|
+
/**
|
|
4612
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4613
|
+
* @uiName W-9 tax form description
|
|
4614
|
+
* @uiGroup Step 3 Properties
|
|
4615
|
+
* @uiWidget textArea
|
|
4616
|
+
*/
|
|
4617
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4618
|
+
/**
|
|
4619
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4620
|
+
* @uiName W-8 BEN tax form description
|
|
4621
|
+
* @uiGroup Step 3 Properties
|
|
4622
|
+
* @uiWidget textArea
|
|
4623
|
+
*/
|
|
4624
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4625
|
+
/**
|
|
4626
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4627
|
+
* @uiName W-8 BEN-E tax form description
|
|
4628
|
+
* @uiGroup Step 3 Properties
|
|
4629
|
+
* @uiWidget textArea
|
|
4630
|
+
*/
|
|
4631
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4632
|
+
/**
|
|
4633
|
+
* This appears inside the Docusign frame.
|
|
4634
|
+
* @uiName Docusign session expired message
|
|
4635
|
+
* @uiGroup Step 3 Properties
|
|
4636
|
+
* @uiWidget textArea
|
|
4637
|
+
*/
|
|
4638
|
+
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.";
|
|
4639
|
+
/**
|
|
4640
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4641
|
+
* @uiName Docusign timed session message
|
|
4642
|
+
* @uiGroup Step 3 Properties
|
|
4643
|
+
* @uiWidget textArea
|
|
4644
|
+
*/
|
|
4645
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4646
|
+
/**
|
|
4647
|
+
* This appears inside the Docusign frame.
|
|
4648
|
+
* @uiName Docusign form error message
|
|
4649
|
+
* @uiGroup Step 3 Properties
|
|
4650
|
+
* @uiWidget textArea
|
|
4651
|
+
*/
|
|
4652
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4653
|
+
/**
|
|
4654
|
+
* @uiName Refresh page button label
|
|
4655
|
+
* @uiGroup Step 3 Properties
|
|
4656
|
+
*/
|
|
4657
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4658
|
+
/**
|
|
4659
|
+
* @uiName Exit button text
|
|
4660
|
+
* @uiGroup Step 3 Properties
|
|
4661
|
+
*/
|
|
4662
|
+
this.step3_exitButton = "Exit";
|
|
4663
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4664
|
+
STEP 4 PROPS:
|
|
4665
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4666
|
+
/**
|
|
4667
|
+
* @uiName Step 4 title
|
|
4668
|
+
* @uiGroup Step 4 Properties
|
|
4669
|
+
*/
|
|
4670
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4671
|
+
/**
|
|
4672
|
+
* @uiName Direct to bank payout option
|
|
4673
|
+
* @uiGroup Step 4 Properties
|
|
4674
|
+
*/
|
|
4675
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4676
|
+
/**
|
|
4677
|
+
* @uiName PayPal payout option
|
|
4678
|
+
* @uiGroup Step 4 Properties
|
|
4679
|
+
*/
|
|
4680
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4681
|
+
/**
|
|
4682
|
+
* @uiName Threshold balance payment schedule option
|
|
4683
|
+
* @uiGroup Step 4 Properties
|
|
4684
|
+
*/
|
|
4685
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4686
|
+
/**
|
|
4687
|
+
* @uiName Fixed day payment schedule option
|
|
4688
|
+
* @uiGroup Step 4 Properties
|
|
4689
|
+
*/
|
|
4690
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4691
|
+
/**
|
|
4692
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4693
|
+
* @uiName Payment day field label
|
|
4694
|
+
* @uiGroup Step 4 Properties
|
|
4695
|
+
*/
|
|
4696
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4697
|
+
/**
|
|
4698
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4699
|
+
* @uiName Payment threshold field label
|
|
4700
|
+
* @uiGroup Step 4 Properties
|
|
4701
|
+
*/
|
|
4702
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4703
|
+
/**
|
|
4704
|
+
* One of two payment day options
|
|
4705
|
+
* @uiName First of month payday option
|
|
4706
|
+
* @uiGroup Step 4 Properties
|
|
4707
|
+
*/
|
|
4708
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4709
|
+
/**
|
|
4710
|
+
* One of two payment day options
|
|
4711
|
+
* @uiName Fifteenth of month payday option
|
|
4712
|
+
* @uiGroup Step 4 Properties
|
|
4713
|
+
*/
|
|
4714
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4715
|
+
/**
|
|
4716
|
+
* @uiName Payment method section header
|
|
4717
|
+
* @uiGroup Step 4 Properties
|
|
4718
|
+
*/
|
|
4719
|
+
this.step4_paymentMethod = "Payment method";
|
|
4720
|
+
/**
|
|
4721
|
+
* @uiName Payment schedule section header
|
|
4722
|
+
* @uiGroup Step 4 Properties
|
|
4723
|
+
*/
|
|
4724
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4725
|
+
/**
|
|
4726
|
+
* @uiName Payment method section description
|
|
4727
|
+
* @uiGroup Step 4 Properties
|
|
4728
|
+
*/
|
|
4729
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4730
|
+
/**
|
|
4731
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4732
|
+
* @uiName PayPal email field label
|
|
4733
|
+
* @uiGroup Step 4 Properties
|
|
4734
|
+
*/
|
|
4735
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4736
|
+
/**
|
|
4737
|
+
* @uiName Bank country field label
|
|
4738
|
+
* @uiGroup Step 4 Properties
|
|
4739
|
+
*/
|
|
4740
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4741
|
+
/**
|
|
4742
|
+
* @uiName Beneficiary account field label
|
|
4743
|
+
* @uiGroup Step 4 Properties
|
|
4744
|
+
*/
|
|
4745
|
+
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4746
|
+
/**
|
|
4747
|
+
* @uiName Bank account type field label
|
|
4748
|
+
* @uiGroup Step 4 Properties
|
|
4749
|
+
*/
|
|
4750
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4751
|
+
/**
|
|
4752
|
+
* @uiName Checking account option
|
|
4753
|
+
* @uiGroup Step 4 Properties
|
|
4754
|
+
*/
|
|
4755
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4756
|
+
/**
|
|
4757
|
+
* Label text for the savings account type select item
|
|
4758
|
+
* @uiName Savings account options
|
|
4759
|
+
* @uiGroup Step 4 Properties
|
|
4760
|
+
*/
|
|
4761
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4762
|
+
/**
|
|
4763
|
+
* @uiName Bank account number field label
|
|
4764
|
+
* @uiGroup Step 4 Properties
|
|
4765
|
+
*/
|
|
4766
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4767
|
+
/**
|
|
4768
|
+
* @uiName IBAN field label
|
|
4769
|
+
* @uiGroup Step 4 Properties
|
|
4770
|
+
*/
|
|
4771
|
+
this.step4_ibanLabel = "IBAN";
|
|
4772
|
+
/**
|
|
4773
|
+
* @uiName SWIFT code field label
|
|
4774
|
+
* @uiGroup Step 4 Properties
|
|
4775
|
+
*/
|
|
4776
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4777
|
+
/**
|
|
4778
|
+
* @uiName Routing code field label
|
|
4779
|
+
* @uiGroup Step 4 Properties
|
|
4780
|
+
*/
|
|
4781
|
+
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} }";
|
|
4782
|
+
/**
|
|
4783
|
+
* @uiName Bank name field label
|
|
4784
|
+
* @uiGroup Step 4 Properties
|
|
4785
|
+
*/
|
|
4786
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4787
|
+
/**
|
|
4788
|
+
* @uiName Classification entity field label
|
|
4789
|
+
* @uiGroup Step 4 Properties
|
|
4790
|
+
*/
|
|
4791
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4792
|
+
/**
|
|
4793
|
+
* One of three options listed for the classification field
|
|
4794
|
+
* @uiName Business classification option
|
|
4795
|
+
* @uiGroup Step 4 Properties
|
|
4796
|
+
*/
|
|
4797
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4798
|
+
/**
|
|
4799
|
+
* One of three options listed for the classification field
|
|
4800
|
+
* @uiName Individual classification option
|
|
4801
|
+
* @uiGroup Step 4 Properties
|
|
4802
|
+
*/
|
|
4803
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4804
|
+
/**
|
|
4805
|
+
* One of three options listed for the classification field
|
|
4806
|
+
* @uiName Foreign classification option
|
|
4807
|
+
* @uiGroup Step 4 Properties
|
|
4808
|
+
*/
|
|
4809
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4810
|
+
/**
|
|
4811
|
+
* @uiName Classification CPF field label
|
|
4812
|
+
* @uiGroup Step 4 Properties
|
|
4813
|
+
*/
|
|
4814
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4815
|
+
/**
|
|
4816
|
+
* @uiName Patronymic name field label
|
|
4817
|
+
* @uiGroup Step 4 Properties
|
|
4818
|
+
*/
|
|
4819
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4820
|
+
/**
|
|
4821
|
+
* @uiName VO code field label
|
|
4822
|
+
* @uiGroup Step 4 Properties
|
|
4823
|
+
*/
|
|
4824
|
+
this.step4_voCodeLabel = "VO code";
|
|
4825
|
+
/**
|
|
4826
|
+
* @uiName Agency code field label
|
|
4827
|
+
* @uiGroup Step 4 Properties
|
|
4828
|
+
*/
|
|
4829
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4830
|
+
/**
|
|
4831
|
+
* @uiName Branch code field label
|
|
4832
|
+
* @uiGroup Step 4 Properties
|
|
4833
|
+
*/
|
|
4834
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4835
|
+
/**
|
|
4836
|
+
* Label text for the classification input field
|
|
4837
|
+
* @uiName Classification field label
|
|
4838
|
+
* @uiGroup Step 4 Properties
|
|
4839
|
+
*/
|
|
4840
|
+
this.step4_classificationLabel = "Classification";
|
|
4841
|
+
/**
|
|
4842
|
+
* @uiName Taxpayer ID field label
|
|
4843
|
+
* @uiGroup Step 4 Properties
|
|
4844
|
+
*/
|
|
4845
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4846
|
+
/**
|
|
4847
|
+
* @uiName Bank address field label
|
|
4848
|
+
* @uiGroup Step 4 Properties
|
|
4849
|
+
*/
|
|
4850
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4851
|
+
/**
|
|
4852
|
+
* @uiName Bank city field label
|
|
4853
|
+
* @uiGroup Step 4 Properties
|
|
4854
|
+
*/
|
|
4855
|
+
this.step4_bankCityLabel = "Bank city";
|
|
4856
|
+
/**
|
|
4857
|
+
* @uiName Bank province/state field label
|
|
4858
|
+
* @uiGroup Step 4 Properties
|
|
4859
|
+
*/
|
|
4860
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
4861
|
+
/**
|
|
4862
|
+
* @uiName Bank postal code field label
|
|
4863
|
+
* @uiGroup Step 4 Properties
|
|
4864
|
+
*/
|
|
4865
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4866
|
+
/**
|
|
4867
|
+
* Default payment method to the participants’ bank account.
|
|
4868
|
+
* @uiName EFT withdrawal payment method
|
|
4869
|
+
* @uiGroup Step 4 Properties
|
|
4870
|
+
*/
|
|
4871
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4872
|
+
/**
|
|
4873
|
+
* @uiName FX Wire Processing fee text
|
|
4874
|
+
* @uiGroup Step 4 Properties
|
|
4875
|
+
*/
|
|
4876
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4877
|
+
/**
|
|
4878
|
+
* @uiName Text for verify email dialog
|
|
4879
|
+
* @uiGroup Step 4 Properties
|
|
4880
|
+
*/
|
|
4881
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4882
|
+
/**
|
|
4883
|
+
* @uiName Verify code widget header text
|
|
4884
|
+
* @uiGroup Step 4 Properties
|
|
4885
|
+
*/
|
|
4886
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4887
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4888
|
+
DASHBOARD PROPS:
|
|
4889
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4890
|
+
/**
|
|
4891
|
+
* @uiName Active tax form badge label
|
|
4892
|
+
* @uiGroup Dashboard Properties
|
|
4893
|
+
*/
|
|
4894
|
+
this.dashboard_statusTextActive = "Active";
|
|
4895
|
+
/**
|
|
4896
|
+
* @uiName Invalid tax form badge label
|
|
4897
|
+
* @uiGroup Dashboard Properties
|
|
4898
|
+
*/
|
|
4899
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4900
|
+
/**
|
|
4901
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4902
|
+
*
|
|
4903
|
+
* @uiName Not verified tax form badge label
|
|
4904
|
+
* @uiGroup Dashboard Properties
|
|
4905
|
+
*/
|
|
4906
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4907
|
+
/**
|
|
4908
|
+
* Additional text displayed next to the tax form's status badge
|
|
4909
|
+
*
|
|
4910
|
+
* @uiName Active W-9 description
|
|
4911
|
+
* @uiGroup Dashboard Properties
|
|
4912
|
+
*/
|
|
4913
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4914
|
+
/**
|
|
4915
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4916
|
+
*
|
|
4917
|
+
* @uiName Active W-8 description
|
|
4918
|
+
* @uiGroup Dashboard Properties
|
|
4919
|
+
*/
|
|
4920
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4921
|
+
/**
|
|
4922
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4923
|
+
*
|
|
4924
|
+
* @uiName Tax form in review description
|
|
4925
|
+
* @uiGroup Dashboard Properties
|
|
4926
|
+
*/
|
|
4927
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4928
|
+
/**
|
|
4929
|
+
* Part of the alert displayed at the top of the page.
|
|
4930
|
+
*
|
|
4931
|
+
* @uiName Inactive W-9 error message title
|
|
4932
|
+
* @uiGroup Dashboard Properties
|
|
4933
|
+
* @uiWidget textArea
|
|
4934
|
+
*/
|
|
4935
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4936
|
+
/**
|
|
4937
|
+
* Part of the alert displayed at the top of the page.
|
|
4938
|
+
*
|
|
4939
|
+
* @uiName Inactive W-8 error message title
|
|
4940
|
+
* @uiGroup Dashboard Properties
|
|
4941
|
+
* @uiWidget textArea
|
|
4942
|
+
*/
|
|
4943
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4944
|
+
/**
|
|
4945
|
+
* Part of the alert displayed at the top of the page.
|
|
4946
|
+
*
|
|
4947
|
+
* @uiName Inactive W-9 error message description
|
|
4948
|
+
* @uiGroup Dashboard Properties
|
|
4949
|
+
* @uiWidget textArea
|
|
4950
|
+
*/
|
|
4951
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4952
|
+
/**
|
|
4953
|
+
* Part of the alert displayed at the top of the page.
|
|
4954
|
+
*
|
|
4955
|
+
* @uiName Inactive W-8 error message description
|
|
4956
|
+
* @uiGroup Dashboard Properties
|
|
4957
|
+
*/
|
|
4958
|
+
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.";
|
|
4959
|
+
/**
|
|
4960
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4961
|
+
*
|
|
4962
|
+
* @uiName Invalid tax form description
|
|
4963
|
+
* @uiGroup Dashboard Properties
|
|
4964
|
+
* @uiWidget textArea
|
|
4965
|
+
*/
|
|
4966
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4967
|
+
/**
|
|
4968
|
+
* @uiName Payout information section header
|
|
4969
|
+
* @uiGroup Dashboard Properties
|
|
4970
|
+
*/
|
|
4971
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4972
|
+
/**
|
|
4973
|
+
* @uiName Tax document section header
|
|
4974
|
+
* @uiGroup Dashboard Properties
|
|
4975
|
+
*/
|
|
4976
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4977
|
+
/**
|
|
4978
|
+
* Displayed under the tax document section header.
|
|
4979
|
+
*
|
|
4980
|
+
* @uiName Tax documents section description
|
|
4981
|
+
* @uiGroup Dashboard Properties
|
|
4982
|
+
*/
|
|
4983
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4984
|
+
/**
|
|
4985
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4986
|
+
*
|
|
4987
|
+
* @uiName Tax form not required text
|
|
4988
|
+
* @uiGroup Dashboard Properties
|
|
4989
|
+
* @uiWidget textArea
|
|
4990
|
+
*/
|
|
4991
|
+
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.";
|
|
4992
|
+
/**
|
|
4993
|
+
*
|
|
4994
|
+
* @uiName Indirect tax section header
|
|
4995
|
+
* @uiGroup Dashboard Properties
|
|
4996
|
+
*/
|
|
4997
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4998
|
+
/**
|
|
4999
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5000
|
+
*
|
|
5001
|
+
* @uiName Canadian province of indirect tax
|
|
5002
|
+
* @uiGroup Dashboard Properties
|
|
5003
|
+
*/
|
|
5004
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5005
|
+
/**
|
|
5006
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5007
|
+
*
|
|
5008
|
+
* @uiName Indirect tax country
|
|
5009
|
+
* @uiGroup Dashboard Properties
|
|
5010
|
+
*/
|
|
5011
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5012
|
+
/**
|
|
5013
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5014
|
+
*
|
|
5015
|
+
* @uiName Spanish region of indirect tax
|
|
5016
|
+
* @uiGroup Dashboard Properties
|
|
5017
|
+
*/
|
|
5018
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5019
|
+
/**
|
|
5020
|
+
* @uiName Indirect tax tooltip
|
|
5021
|
+
* @uiGroup Dashboard Properties
|
|
5022
|
+
* @uiWidget textArea
|
|
5023
|
+
*/
|
|
5024
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5025
|
+
/**
|
|
5026
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5027
|
+
*
|
|
5028
|
+
* @uiName Indirect tax details
|
|
5029
|
+
* @uiGroup Dashboard Properties
|
|
5030
|
+
*/
|
|
5031
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5032
|
+
/**
|
|
5033
|
+
* @uiName Submit new tax form button label
|
|
5034
|
+
* @uiGroup Dashboard Properties
|
|
5035
|
+
*/
|
|
5036
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5037
|
+
/**
|
|
5038
|
+
* @uiName Edit payment info button label
|
|
5039
|
+
* @uiGroup Dashboard Properties
|
|
5040
|
+
*/
|
|
5041
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5042
|
+
/**
|
|
5043
|
+
* @uiName Not registered for indirect tax text
|
|
5044
|
+
* @uiGroup Dashboard Properties
|
|
5045
|
+
* @uiWidget textArea
|
|
5046
|
+
*/
|
|
5047
|
+
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.";
|
|
5048
|
+
/**
|
|
5049
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5050
|
+
* @uiName QST indirect tax details
|
|
5051
|
+
* @uiGroup Dashboard Properties
|
|
5052
|
+
*/
|
|
5053
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5054
|
+
/**
|
|
5055
|
+
* @uiName Spain sub-region indirect tax number
|
|
5056
|
+
* @uiGroup Dashboard Properties
|
|
5057
|
+
*/
|
|
5058
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5059
|
+
/**
|
|
5060
|
+
* @uiName Payout status badge
|
|
5061
|
+
* @uiGroup Dashboard Properties
|
|
5062
|
+
*/
|
|
5063
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5064
|
+
/**
|
|
5065
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5066
|
+
* @uiName Payout schedule by threshold text
|
|
5067
|
+
* @uiGroup Dashboard Properties
|
|
5068
|
+
*/
|
|
5069
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5070
|
+
/**
|
|
5071
|
+
* Shown before the participant’s bank account information.
|
|
5072
|
+
* @uiName Bank account field label
|
|
5073
|
+
* @uiGroup Dashboard Properties
|
|
5074
|
+
*/
|
|
5075
|
+
this.dashboard_accountText = "Account";
|
|
5076
|
+
/**
|
|
5077
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5078
|
+
* @uiName Invoice number column title
|
|
5079
|
+
* @uiGroup Dashboard Properties
|
|
5080
|
+
*/
|
|
5081
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5082
|
+
/**
|
|
5083
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5084
|
+
* @uiName Date column title
|
|
5085
|
+
* @uiGroup Dashboard Properties
|
|
5086
|
+
*/
|
|
5087
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5088
|
+
/**
|
|
5089
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5090
|
+
* @uiName Earnings column title
|
|
5091
|
+
* @uiGroup Dashboard Properties
|
|
5092
|
+
*/
|
|
5093
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5094
|
+
/**
|
|
5095
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5096
|
+
* @uiName Indirect tax column title
|
|
5097
|
+
* @uiGroup Dashboard Properties
|
|
5098
|
+
*/
|
|
5099
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5100
|
+
/**
|
|
5101
|
+
* Displayed under the payout details card.
|
|
5102
|
+
* @uiName Payout from impact text
|
|
5103
|
+
* @uiGroup Dashboard Properties
|
|
5104
|
+
* @uiWidget textArea
|
|
5105
|
+
*/
|
|
5106
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5107
|
+
/**
|
|
5108
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5109
|
+
* @uiName Earnings after tax column title
|
|
5110
|
+
* @uiGroup Dashboard Properties
|
|
5111
|
+
*/
|
|
5112
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5113
|
+
/**
|
|
5114
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5115
|
+
* @uiName Payout error message title
|
|
5116
|
+
* @uiGroup Dashboard Properties
|
|
5117
|
+
* @uiWidget textArea
|
|
5118
|
+
*/
|
|
5119
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5120
|
+
/**
|
|
5121
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5122
|
+
* @uiName Payout error message description
|
|
5123
|
+
* @uiGroup Dashboard Properties
|
|
5124
|
+
* @uiWidget textArea
|
|
5125
|
+
*/
|
|
5126
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5127
|
+
/**
|
|
5128
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5129
|
+
* @uiName Payout missing information subtext
|
|
5130
|
+
* @uiGroup Dashboard Properties
|
|
5131
|
+
*/
|
|
5132
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5133
|
+
/**
|
|
5134
|
+
* @uiName Invoice table description
|
|
5135
|
+
* @uiGroup Dashboard Properties
|
|
5136
|
+
*/
|
|
5137
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5138
|
+
/**
|
|
5139
|
+
* @uiName Invoice table previous page button label
|
|
5140
|
+
* @uiGroup Dashboard Properties
|
|
5141
|
+
*/
|
|
5142
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5143
|
+
/**
|
|
5144
|
+
* @uiName Invoice table next page button label
|
|
5145
|
+
* @uiGroup Dashboard Properties
|
|
5146
|
+
*/
|
|
5147
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5148
|
+
/**
|
|
5149
|
+
* @uiName Invoice table title
|
|
5150
|
+
* @uiGroup Dashboard Properties
|
|
5151
|
+
*/
|
|
5152
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5153
|
+
/**
|
|
5154
|
+
* @uiName Empty invoice table header
|
|
5155
|
+
* @uiGroup Dashboard Properties
|
|
5156
|
+
*/
|
|
5157
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5158
|
+
/**
|
|
5159
|
+
* @uiName Empty invoice table description
|
|
5160
|
+
* @uiGroup Dashboard Properties
|
|
5161
|
+
*/
|
|
5162
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5163
|
+
/**
|
|
5164
|
+
* @uiName Replace tax form modal header
|
|
5165
|
+
* @uiGroup Dashboard Properties
|
|
5166
|
+
*/
|
|
5167
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5168
|
+
/**
|
|
5169
|
+
* @uiName Replace tax form modal body text
|
|
5170
|
+
* @uiGroup Dashboard Properties
|
|
5171
|
+
* @uiWidget textArea
|
|
5172
|
+
*/
|
|
5173
|
+
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.";
|
|
5174
|
+
/**
|
|
5175
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5176
|
+
* @uiName Verification required alert message title
|
|
5177
|
+
* @uiGroup Dashboard Properties
|
|
5178
|
+
* @uiWidget textArea
|
|
5179
|
+
*/
|
|
5180
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5181
|
+
/**
|
|
5182
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5183
|
+
* @uiName Verification required alert message description
|
|
5184
|
+
* @uiGroup Dashboard Properties
|
|
5185
|
+
* @uiWidget textArea
|
|
5186
|
+
*/
|
|
5187
|
+
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}.";
|
|
5188
|
+
/**
|
|
5189
|
+
* @uiName Verification required internal alert header
|
|
5190
|
+
* @uiGroup Dashboard Properties
|
|
5191
|
+
* @uiWidget textArea
|
|
5192
|
+
*/
|
|
5193
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5194
|
+
/**
|
|
5195
|
+
* @uiName Verification required internal alert description
|
|
5196
|
+
* @uiGroup Dashboard Properties
|
|
5197
|
+
* @uiWidget textArea
|
|
5198
|
+
*/
|
|
5199
|
+
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}.";
|
|
5200
|
+
/**
|
|
5201
|
+
* @uiName Verification review internal alert header
|
|
5202
|
+
* @uiGroup Dashboard Properties
|
|
5203
|
+
* @uiWidget textArea
|
|
5204
|
+
*/
|
|
5205
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5206
|
+
/**
|
|
5207
|
+
* @uiName Verification review internal alert description
|
|
5208
|
+
* @uiGroup Dashboard Properties
|
|
5209
|
+
* @uiWidget textArea
|
|
5210
|
+
*/
|
|
5211
|
+
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}.";
|
|
5212
|
+
/**
|
|
5213
|
+
* @uiName Verification failed internal alert header
|
|
5214
|
+
* @uiGroup Dashboard Properties
|
|
5215
|
+
* @uiWidget textArea
|
|
5216
|
+
*/
|
|
5217
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5218
|
+
/**
|
|
5219
|
+
* @uiName Verification failed internal alert description
|
|
5220
|
+
* @uiGroup Dashboard Properties
|
|
5221
|
+
* @uiWidget textArea
|
|
5222
|
+
*/
|
|
5223
|
+
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}.";
|
|
5224
|
+
/**
|
|
5225
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5226
|
+
* @uiName Verification required alert button text
|
|
5227
|
+
* @uiGroup Dashboard Properties
|
|
5228
|
+
* @uiWidget textArea
|
|
5229
|
+
*/
|
|
5230
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5231
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5232
|
+
GENERAL PROPS:
|
|
5233
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5234
|
+
/**
|
|
5235
|
+
* @uiName Setup progress
|
|
5236
|
+
* @uiGroup General Form Properties
|
|
5237
|
+
*/
|
|
5238
|
+
this.formStep = "Step {step} of {count}";
|
|
5239
|
+
/**
|
|
5240
|
+
* Part of the alert displayed at the top of the page.
|
|
5241
|
+
* @uiName Form submission error message title
|
|
5242
|
+
* @uiGroup General Form Properties
|
|
5243
|
+
* @uiWidget textArea
|
|
5244
|
+
*/
|
|
5245
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5246
|
+
/**
|
|
5247
|
+
* Part of the alert displayed at the top of the page.
|
|
5248
|
+
* @uiName Form submission error message description
|
|
5249
|
+
* @uiGroup General Form Properties
|
|
5250
|
+
* @uiWidget textArea
|
|
5251
|
+
*/
|
|
5252
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5253
|
+
/**
|
|
5254
|
+
* Displayed under a field that is missing required information.
|
|
5255
|
+
* @uiName Empty form field error message
|
|
5256
|
+
* @uiGroup General Form Properties
|
|
5257
|
+
*/
|
|
5258
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5259
|
+
/**
|
|
5260
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5261
|
+
* @uiName Invalid character error message
|
|
5262
|
+
* @uiGroup General Form Properties
|
|
5263
|
+
*/
|
|
5264
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5265
|
+
/**
|
|
5266
|
+
* Displayed under a field when it has an invalid entry.
|
|
5267
|
+
* @uiName Form field error message
|
|
5268
|
+
* @uiGroup General Form Properties
|
|
5269
|
+
*/
|
|
5270
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5271
|
+
/**
|
|
5272
|
+
* @uiName Continue button label
|
|
5273
|
+
* @uiGroup General Form Properties
|
|
5274
|
+
*/
|
|
5275
|
+
this.continueButton = "Continue";
|
|
5276
|
+
/**
|
|
5277
|
+
* @uiName Back button label
|
|
5278
|
+
* @uiGroup General Form Properties
|
|
5279
|
+
*/
|
|
5280
|
+
this.backButton = "Back";
|
|
5281
|
+
/**
|
|
5282
|
+
* @uiName Cancel button label
|
|
5283
|
+
* @uiGroup General Form Properties
|
|
5284
|
+
*/
|
|
5285
|
+
this.cancelButton = "Cancel";
|
|
5286
|
+
/**
|
|
5287
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5288
|
+
* @uiName Participant is a partner alert title
|
|
5289
|
+
* @uiGroup General Form Properties
|
|
5290
|
+
* @uiWidget textArea
|
|
5291
|
+
*/
|
|
5292
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5293
|
+
/**
|
|
5294
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5295
|
+
* @uiName Participant is a partner alert description
|
|
5296
|
+
* @uiGroup General Form Properties
|
|
5297
|
+
* @uiWidget textArea
|
|
5298
|
+
*/
|
|
5299
|
+
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.";
|
|
5300
|
+
/**
|
|
5301
|
+
* Placeholder text displayed in the country search dropdown
|
|
5302
|
+
* @uiName Country field placeholder text
|
|
5303
|
+
* @uiGroup General Form Properties
|
|
5304
|
+
*/
|
|
5305
|
+
this.searchForCountryText = "Search for country..";
|
|
5306
|
+
/**
|
|
5307
|
+
* Part of the alert displayed at the top of the page.
|
|
5308
|
+
* @uiName Page load error message title
|
|
5309
|
+
* @uiGroup General Form Properties
|
|
5310
|
+
* @uiWidget textArea
|
|
5311
|
+
*/
|
|
5312
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5313
|
+
/**
|
|
5314
|
+
* Part of the alert displayed at the top of the page.
|
|
5315
|
+
* @uiName Page load error message description
|
|
5316
|
+
* @uiGroup General Form Properties
|
|
5317
|
+
* @uiWidget textArea
|
|
5318
|
+
*/
|
|
5319
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5320
|
+
/**
|
|
5321
|
+
* Displayed at the top of the page on all set up steps.
|
|
5322
|
+
* @uiName Page description
|
|
5323
|
+
* @uiGroup General Form Properties
|
|
5324
|
+
*/
|
|
5325
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5326
|
+
/**
|
|
5327
|
+
* Link text for contacting support team
|
|
5328
|
+
* @uiName Suport link text
|
|
5329
|
+
* @uiGroup General Form Properties
|
|
5330
|
+
*/
|
|
5331
|
+
this.supportLink = "support team";
|
|
5332
|
+
stencilHooks_module.h$1(this);
|
|
5333
|
+
}
|
|
5334
|
+
disconnectedCallback() { }
|
|
5335
|
+
// this field is required prop
|
|
5336
|
+
getGeneralStepTextProps(prefix) {
|
|
5337
|
+
const props = utils.getProps(this);
|
|
5338
|
+
return {
|
|
5339
|
+
...extractProps.extractProps(props, prefix),
|
|
5340
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5341
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5342
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5343
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5344
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5345
|
+
continueButton: props.continueButton,
|
|
5346
|
+
backButton: props.backButton,
|
|
5347
|
+
cancelButton: props.cancelButton,
|
|
5348
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5349
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5350
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5351
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5352
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5353
|
+
searchForCountryText: props.searchForCountryText,
|
|
5354
|
+
formStep: props.formStep,
|
|
5355
|
+
supportLink: props.supportLink,
|
|
5356
|
+
};
|
|
5357
|
+
}
|
|
5358
|
+
render() {
|
|
5359
|
+
var _a, _b;
|
|
5360
|
+
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5361
|
+
// @ts-ignore
|
|
5362
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5363
|
+
const textProps = utils.getProps(this);
|
|
5364
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5365
|
+
if (prop === "demoData")
|
|
5366
|
+
return;
|
|
5367
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5368
|
+
})));
|
|
5369
|
+
}
|
|
5370
|
+
switch (props.step) {
|
|
5371
|
+
case "/1":
|
|
5372
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5373
|
+
case "/2":
|
|
5374
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5375
|
+
case "/3":
|
|
5376
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5377
|
+
case "/4":
|
|
5378
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5379
|
+
case "/dashboard":
|
|
5380
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5381
|
+
case "/error":
|
|
5382
|
+
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5383
|
+
}
|
|
5384
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
5385
|
+
}
|
|
5386
|
+
};
|
|
5387
|
+
function useDemoTaxAndCash(props) {
|
|
5388
|
+
const [step, setStep] = index_module.In({
|
|
5389
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5390
|
+
initialValue: "/1",
|
|
5391
|
+
});
|
|
5392
|
+
return cjs.cjs({
|
|
5393
|
+
step,
|
|
5394
|
+
setStep,
|
|
5395
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
const style$6 = {
|
|
5399
|
+
ErrorAlertContainer: {
|
|
5400
|
+
"&::part(base)": {
|
|
5401
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
3685
5402
|
border: "none",
|
|
3686
5403
|
},
|
|
3687
5404
|
"& sl-icon::part(base)": {
|
|
@@ -3869,8 +5586,8 @@ const style$5 = {
|
|
|
3869
5586
|
},
|
|
3870
5587
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3871
5588
|
};
|
|
3872
|
-
const sheet$
|
|
3873
|
-
const styleString$
|
|
5589
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5590
|
+
const styleString$5 = sheet$5.toString();
|
|
3874
5591
|
const TaxAndCashDashboardView = (props) => {
|
|
3875
5592
|
var _a, _b, _c, _d;
|
|
3876
5593
|
const { states, text, callbacks, slots } = props;
|
|
@@ -3888,7 +5605,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3888
5605
|
buttonText: text.verificationRequiredButtonText,
|
|
3889
5606
|
alertType: "warning",
|
|
3890
5607
|
icon: "exclamation-triangle",
|
|
3891
|
-
class: sheet$
|
|
5608
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3892
5609
|
};
|
|
3893
5610
|
case "VERIFICATION:INTERNAL":
|
|
3894
5611
|
return {
|
|
@@ -3901,7 +5618,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3901
5618
|
}),
|
|
3902
5619
|
alertType: "warning",
|
|
3903
5620
|
icon: "exclamation-triangle",
|
|
3904
|
-
class: sheet$
|
|
5621
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3905
5622
|
};
|
|
3906
5623
|
case "VERIFICATION:REVIEW":
|
|
3907
5624
|
return {
|
|
@@ -3914,7 +5631,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3914
5631
|
}),
|
|
3915
5632
|
alertType: "warning",
|
|
3916
5633
|
icon: "exclamation-triangle",
|
|
3917
|
-
class: sheet$
|
|
5634
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3918
5635
|
};
|
|
3919
5636
|
case "VERIFICATION:FAILED":
|
|
3920
5637
|
return {
|
|
@@ -3927,7 +5644,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3927
5644
|
}),
|
|
3928
5645
|
alertType: "critical",
|
|
3929
5646
|
icon: "exclamation-octagon",
|
|
3930
|
-
class: sheet$
|
|
5647
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3931
5648
|
};
|
|
3932
5649
|
case "HOLD":
|
|
3933
5650
|
return {
|
|
@@ -3941,14 +5658,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3941
5658
|
buttonText: null,
|
|
3942
5659
|
alertType: "warning",
|
|
3943
5660
|
icon: "exclamation-triangle",
|
|
3944
|
-
class: sheet$
|
|
5661
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3945
5662
|
};
|
|
3946
5663
|
default:
|
|
3947
5664
|
return;
|
|
3948
5665
|
}
|
|
3949
5666
|
}
|
|
3950
5667
|
const statusMap = {
|
|
3951
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5668
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3952
5669
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3953
5670
|
index.h("p", null, global.intl.formatMessage({
|
|
3954
5671
|
id: `badgeTextAwaitingReview`,
|
|
@@ -3956,7 +5673,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3956
5673
|
}, {
|
|
3957
5674
|
dateSubmitted: states.dateSubmitted,
|
|
3958
5675
|
})))),
|
|
3959
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5676
|
+
ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3960
5677
|
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3961
5678
|
index.h("p", null, global.intl.formatMessage({
|
|
3962
5679
|
id: `badgeTextSubmittedOn`,
|
|
@@ -3966,12 +5683,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3966
5683
|
}, {
|
|
3967
5684
|
dateSubmitted: states.dateSubmitted,
|
|
3968
5685
|
})))),
|
|
3969
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5686
|
+
INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3970
5687
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3971
5688
|
index.h("p", null, text.invalidForm))),
|
|
3972
5689
|
};
|
|
3973
5690
|
const alertMap = {
|
|
3974
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5691
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
3975
5692
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3976
5693
|
index.h("strong", null, global.intl.formatMessage({
|
|
3977
5694
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -4021,9 +5738,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4021
5738
|
};
|
|
4022
5739
|
return (index.h("div", null,
|
|
4023
5740
|
index.h("div", null,
|
|
4024
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
5741
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
4025
5742
|
states.loadingError && (index.h("div", null,
|
|
4026
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5743
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
4027
5744
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4028
5745
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4029
5746
|
index.h("br", null),
|
|
@@ -4033,7 +5750,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4033
5750
|
}, {
|
|
4034
5751
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4035
5752
|
})))),
|
|
4036
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5753
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
4037
5754
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4038
5755
|
index.h("strong", null, text.error.generalTitle),
|
|
4039
5756
|
index.h("br", null),
|
|
@@ -4048,49 +5765,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4048
5765
|
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
4049
5766
|
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
4050
5767
|
getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
4051
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
5768
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4052
5769
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
4053
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
4054
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5770
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5771
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4055
5772
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4056
5773
|
index.h("div", null,
|
|
4057
5774
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4058
|
-
index.h("p", { class: sheet$
|
|
4059
|
-
index.h("div", { class: sheet$
|
|
5775
|
+
index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5776
|
+
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4060
5777
|
slots.payoutDetailsCardSlot,
|
|
4061
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
4062
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
4063
|
-
index.h("div", { class: sheet$
|
|
4064
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
4065
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4066
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4067
|
-
index.h("h3", { class: sheet$
|
|
4068
|
-
index.h("p", { class: sheet$
|
|
4069
|
-
index.h("span", { class: sheet$
|
|
4070
|
-
index.h("div", { class: sheet$
|
|
5778
|
+
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5779
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5780
|
+
index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5781
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5782
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5783
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5784
|
+
index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5785
|
+
index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5786
|
+
index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5787
|
+
index.h("div", { class: sheet$5.classes.StatusContainer },
|
|
4071
5788
|
index.h("h3", null, global.intl.formatMessage({
|
|
4072
5789
|
id: "section-subheader",
|
|
4073
5790
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
4074
5791
|
}, {
|
|
4075
5792
|
documentType: states.documentTypeString,
|
|
4076
5793
|
})),
|
|
4077
|
-
index.h("span", { class: sheet$
|
|
4078
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
4079
|
-
index.h("div", { class: sheet$
|
|
4080
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4081
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4082
|
-
index.h("h3", { class: sheet$
|
|
5794
|
+
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5795
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5796
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5797
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5798
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5799
|
+
index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4083
5800
|
text.indirectTaxInfoSectionHeader,
|
|
4084
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4085
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
4086
|
-
index.h("div", { class: sheet$
|
|
4087
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
5801
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5802
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5803
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5804
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
4088
5805
|
id: "notRegisteredForTax",
|
|
4089
5806
|
defaultMessage: text.notRegisteredForTax,
|
|
4090
5807
|
}, {
|
|
4091
5808
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4092
5809
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4093
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5810
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4094
5811
|
index.h("span", null, global.intl.formatMessage({
|
|
4095
5812
|
id: `indirectTaxDetails`,
|
|
4096
5813
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4113,7 +5830,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4113
5830
|
}, {
|
|
4114
5831
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4115
5832
|
})))),
|
|
4116
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5833
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4117
5834
|
index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
4118
5835
|
index.h("sqm-invoice-table-download-column", null),
|
|
4119
5836
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4137,12 +5854,12 @@ function getSubRegionName(regionCode) {
|
|
|
4137
5854
|
return "";
|
|
4138
5855
|
// Impact adds an underscore to some regions
|
|
4139
5856
|
const standardCode = regionCode.replace("_", "");
|
|
4140
|
-
const regions = [...
|
|
5857
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4141
5858
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
4142
5859
|
}
|
|
4143
5860
|
function getIndirectTaxType(taxInformation) {
|
|
4144
5861
|
var _a;
|
|
4145
|
-
const regions = [...
|
|
5862
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4146
5863
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
4147
5864
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
4148
5865
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -4153,14 +5870,14 @@ function getIndirectTaxType(taxInformation) {
|
|
|
4153
5870
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
4154
5871
|
return "VAT";
|
|
4155
5872
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
4156
|
-
return
|
|
5873
|
+
return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
4157
5874
|
}
|
|
4158
5875
|
return "Indirect Tax";
|
|
4159
5876
|
}
|
|
4160
5877
|
const useTaxAndCashDashboard = (props) => {
|
|
4161
5878
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4162
|
-
const setStep = index_module.En(
|
|
4163
|
-
const setContext = index_module.En(
|
|
5879
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5880
|
+
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
4164
5881
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
4165
5882
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
4166
5883
|
const locale = index_module.L();
|
|
@@ -4168,8 +5885,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4168
5885
|
// Clear override context once on submitted
|
|
4169
5886
|
setContext({});
|
|
4170
5887
|
}, []);
|
|
4171
|
-
const { data
|
|
4172
|
-
const publisher = (_b = (_a = data
|
|
5888
|
+
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
5889
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4173
5890
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
4174
5891
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
4175
5892
|
const dateSubmitted = submissionDate
|
|
@@ -4192,8 +5909,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4192
5909
|
});
|
|
4193
5910
|
setStep("/3");
|
|
4194
5911
|
};
|
|
4195
|
-
const provinceName = (_d =
|
|
4196
|
-
const payoutStatus = data
|
|
5912
|
+
const provinceName = (_d = sqmInvoiceTableView.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
5913
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
4197
5914
|
stencilHooks_module.useEffect(() => {
|
|
4198
5915
|
const cb = () => refetch();
|
|
4199
5916
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
@@ -4206,7 +5923,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4206
5923
|
dateSubmitted,
|
|
4207
5924
|
documentType,
|
|
4208
5925
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
4209
|
-
documentTypeString:
|
|
5926
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
|
|
4210
5927
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
4211
5928
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
4212
5929
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -4569,31 +6286,23 @@ const TaxAndCashDashboard = class {
|
|
|
4569
6286
|
}
|
|
4570
6287
|
};
|
|
4571
6288
|
function useDemoTaxAndCashDashboard(props) {
|
|
4572
|
-
// const states = parseStates(props.stateController);
|
|
4573
6289
|
return cjs.cjs({
|
|
4574
6290
|
states: {
|
|
4575
6291
|
dateSubmitted: "today",
|
|
4576
6292
|
documentType: "W9",
|
|
4577
6293
|
documentTypeString: "W9",
|
|
6294
|
+
status: "ACTIVE",
|
|
4578
6295
|
country: "United States",
|
|
4579
|
-
indirectTaxNumber:
|
|
6296
|
+
indirectTaxNumber: 55555555,
|
|
4580
6297
|
indirectTaxType: "Indirect Tax",
|
|
4581
|
-
noFormNeeded:
|
|
6298
|
+
noFormNeeded: true,
|
|
4582
6299
|
disabled: false,
|
|
4583
6300
|
loading: false,
|
|
4584
6301
|
showNewFormDialog: false,
|
|
4585
6302
|
hasHold: false,
|
|
4586
|
-
|
|
4587
|
-
subRegionTaxNumber: undefined,
|
|
4588
|
-
qstNumber: undefined,
|
|
4589
|
-
isBusinessEntity: false,
|
|
4590
|
-
province: undefined,
|
|
4591
|
-
notRegistered: true,
|
|
4592
|
-
loadingError: false,
|
|
6303
|
+
showVerifyIdentity: false,
|
|
4593
6304
|
payoutStatus: "DONE",
|
|
4594
6305
|
veriffLoading: false,
|
|
4595
|
-
canEditPayoutInfo: true,
|
|
4596
|
-
status: "ACTIVE",
|
|
4597
6306
|
},
|
|
4598
6307
|
callbacks: {
|
|
4599
6308
|
onClick: () => console.debug("check step"),
|
|
@@ -4603,13 +6312,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4603
6312
|
onVerifyClick: () => console.log("verify"),
|
|
4604
6313
|
},
|
|
4605
6314
|
text: props.getTextProps(),
|
|
4606
|
-
slots: {
|
|
4607
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4608
|
-
states: {
|
|
4609
|
-
badgeStatus: "nextPayout",
|
|
4610
|
-
},
|
|
4611
|
-
} })),
|
|
4612
|
-
},
|
|
4613
6315
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4614
6316
|
}
|
|
4615
6317
|
|
|
@@ -5584,7 +7286,7 @@ const PHONE_EXTENSIONS = {
|
|
|
5584
7286
|
},
|
|
5585
7287
|
};
|
|
5586
7288
|
|
|
5587
|
-
const style$
|
|
7289
|
+
const style$7 = {
|
|
5588
7290
|
FormWrapper: {},
|
|
5589
7291
|
ErrorInput: {
|
|
5590
7292
|
"&::part(base)": {
|
|
@@ -5684,9 +7386,9 @@ const style$6 = {
|
|
|
5684
7386
|
},
|
|
5685
7387
|
},
|
|
5686
7388
|
};
|
|
5687
|
-
const sheet$
|
|
5688
|
-
const styleString$
|
|
5689
|
-
const vanillaStyle$
|
|
7389
|
+
const sheet$6 = JSS.createStyleSheet(style$7);
|
|
7390
|
+
const styleString$6 = sheet$6.toString();
|
|
7391
|
+
const vanillaStyle$4 = `
|
|
5690
7392
|
:host{
|
|
5691
7393
|
display: block;
|
|
5692
7394
|
}
|
|
@@ -5863,8 +7565,8 @@ const vanillaStyle$3 = `
|
|
|
5863
7565
|
`;
|
|
5864
7566
|
const UserInfoFormView = (props) => {
|
|
5865
7567
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5866
|
-
const { states, states: { formState }, callbacks, text, refs, data
|
|
5867
|
-
const { classes } = sheet$
|
|
7568
|
+
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7569
|
+
const { classes } = sheet$6;
|
|
5868
7570
|
const bankingCollectionText = global.intl.formatMessage({
|
|
5869
7571
|
id: "bankingCollectionText",
|
|
5870
7572
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5872,7 +7574,7 @@ const UserInfoFormView = (props) => {
|
|
|
5872
7574
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
5873
7575
|
});
|
|
5874
7576
|
let regionLabel = undefined;
|
|
5875
|
-
switch (data
|
|
7577
|
+
switch (data.regionLabelEnum) {
|
|
5876
7578
|
case "STATE":
|
|
5877
7579
|
regionLabel = text.state;
|
|
5878
7580
|
break;
|
|
@@ -5887,10 +7589,10 @@ const UserInfoFormView = (props) => {
|
|
|
5887
7589
|
}
|
|
5888
7590
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5889
7591
|
index.h("style", { type: "text/css" },
|
|
5890
|
-
styleString$
|
|
5891
|
-
vanillaStyle$
|
|
7592
|
+
styleString$6,
|
|
7593
|
+
vanillaStyle$4),
|
|
5892
7594
|
states.loadingError && (index.h("div", null,
|
|
5893
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7595
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
5894
7596
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5895
7597
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5896
7598
|
index.h("br", null),
|
|
@@ -5901,16 +7603,16 @@ const UserInfoFormView = (props) => {
|
|
|
5901
7603
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5902
7604
|
})),
|
|
5903
7605
|
index.h("br", null))),
|
|
5904
|
-
states.loading ? (index.h(
|
|
7606
|
+
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5905
7607
|
index.h("div", { class: classes.TextContainer },
|
|
5906
7608
|
index.h("div", null,
|
|
5907
7609
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
5908
7610
|
id: "formStep",
|
|
5909
7611
|
defaultMessage: text.formStep,
|
|
5910
|
-
}, { step: states.step, count:
|
|
7612
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
5911
7613
|
index.h("h3", null, text.personalInformation),
|
|
5912
7614
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5913
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
7615
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
5914
7616
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5915
7617
|
index.h("strong", null, text.error.generalTitle),
|
|
5916
7618
|
index.h("br", null),
|
|
@@ -5920,7 +7622,7 @@ const UserInfoFormView = (props) => {
|
|
|
5920
7622
|
}, {
|
|
5921
7623
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5922
7624
|
}))),
|
|
5923
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
7625
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
5924
7626
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
5925
7627
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
5926
7628
|
index.h("br", null),
|
|
@@ -5934,18 +7636,18 @@ const UserInfoFormView = (props) => {
|
|
|
5934
7636
|
index.h("div", { class: classes.InputContainer },
|
|
5935
7637
|
index.h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
5936
7638
|
class: classes.ErrorInput,
|
|
5937
|
-
helpText:
|
|
7639
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5938
7640
|
}
|
|
5939
7641
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
5940
7642
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
5941
7643
|
class: classes.ErrorInput,
|
|
5942
|
-
helpText:
|
|
7644
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
5943
7645
|
}
|
|
5944
7646
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
5945
7647
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
5946
7648
|
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
5947
7649
|
class: classes.ErrorInput,
|
|
5948
|
-
helpText:
|
|
7650
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
5949
7651
|
}
|
|
5950
7652
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
5951
7653
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -5953,8 +7655,8 @@ const UserInfoFormView = (props) => {
|
|
|
5953
7655
|
e.stopPropagation();
|
|
5954
7656
|
}, "onSl-input": (e) => {
|
|
5955
7657
|
callbacks.setCountrySearch(e.target.value);
|
|
5956
|
-
} }), (_e = data
|
|
5957
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data
|
|
7658
|
+
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7659
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
5958
7660
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
5959
7661
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
5960
7662
|
index.h("p", null, text.phoneNumber),
|
|
@@ -5968,13 +7670,13 @@ const UserInfoFormView = (props) => {
|
|
|
5968
7670
|
e.stopPropagation();
|
|
5969
7671
|
}, "onSl-input": (e) => {
|
|
5970
7672
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
5971
|
-
} }), (_h = data
|
|
7673
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5972
7674
|
_h.map((c) => {
|
|
5973
7675
|
var _a, _b;
|
|
5974
7676
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
5975
7677
|
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
5976
7678
|
_b.dial_code));
|
|
5977
|
-
}), (_j = data
|
|
7679
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5978
7680
|
_j.map((c) => {
|
|
5979
7681
|
var _a, _b;
|
|
5980
7682
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -5983,42 +7685,42 @@ const UserInfoFormView = (props) => {
|
|
|
5983
7685
|
})),
|
|
5984
7686
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
5985
7687
|
// Naive phone number validation
|
|
5986
|
-
|
|
5987
|
-
|
|
7688
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7689
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
5988
7690
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
5989
7691
|
class: classes.ErrorInput,
|
|
5990
|
-
helpText:
|
|
7692
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
5991
7693
|
}
|
|
5992
7694
|
: {}), { required: true })))),
|
|
5993
7695
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
5994
7696
|
// Checks for non-ASCII characters
|
|
5995
|
-
!
|
|
5996
|
-
|
|
7697
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7698
|
+
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
5997
7699
|
class: classes.ErrorInput,
|
|
5998
|
-
helpText:
|
|
7700
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
5999
7701
|
}
|
|
6000
7702
|
: {}), { required: true })),
|
|
6001
7703
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6002
7704
|
// Checks for non-ASCII characters
|
|
6003
|
-
!
|
|
6004
|
-
|
|
7705
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7706
|
+
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
6005
7707
|
class: classes.ErrorInput,
|
|
6006
|
-
helpText:
|
|
7708
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6007
7709
|
}
|
|
6008
7710
|
: {}), { required: true })),
|
|
6009
7711
|
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6010
7712
|
class: classes.ErrorInput,
|
|
6011
|
-
helpText:
|
|
7713
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6012
7714
|
}
|
|
6013
|
-
: {}), { required: true }), (_p = data
|
|
7715
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6014
7716
|
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6015
7717
|
class: classes.ErrorInput,
|
|
6016
|
-
helpText:
|
|
7718
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6017
7719
|
}
|
|
6018
7720
|
: {}), { required: true })),
|
|
6019
7721
|
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6020
7722
|
class: classes.ErrorInput,
|
|
6021
|
-
helpText:
|
|
7723
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6022
7724
|
}
|
|
6023
7725
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6024
7726
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -6026,11 +7728,11 @@ const UserInfoFormView = (props) => {
|
|
|
6026
7728
|
e.stopPropagation();
|
|
6027
7729
|
}, "onSl-input": (e) => {
|
|
6028
7730
|
callbacks.setCurrencySearch(e.target.value);
|
|
6029
|
-
} }), (_s = data
|
|
7731
|
+
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6030
7732
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6031
7733
|
c.currencyCode,
|
|
6032
7734
|
" - ",
|
|
6033
|
-
c.displayName))), (_t = data
|
|
7735
|
+
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6034
7736
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6035
7737
|
c.currencyCode,
|
|
6036
7738
|
" - ",
|
|
@@ -6039,7 +7741,7 @@ const UserInfoFormView = (props) => {
|
|
|
6039
7741
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6040
7742
|
e.target.value = e.target.checked;
|
|
6041
7743
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6042
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
7744
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6043
7745
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6044
7746
|
};
|
|
6045
7747
|
|
|
@@ -6048,12 +7750,12 @@ function useUserInfoForm(props) {
|
|
|
6048
7750
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6049
7751
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6050
7752
|
const formRef = stencilHooks_module.useRef(null);
|
|
6051
|
-
const context = index_module.Fn(
|
|
6052
|
-
const countries = index_module.Fn(
|
|
6053
|
-
const [step, setStep] = index_module.Pn(
|
|
6054
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(
|
|
6055
|
-
const { data
|
|
6056
|
-
const _currencies = index_module.Fn(
|
|
7753
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7754
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7755
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7756
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7757
|
+
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7758
|
+
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
6057
7759
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6058
7760
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6059
7761
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6064,11 +7766,11 @@ function useUserInfoForm(props) {
|
|
|
6064
7766
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
6065
7767
|
stencilHooks_module.useEffect(() => {
|
|
6066
7768
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6067
|
-
const user = data
|
|
7769
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6068
7770
|
if (!user || step !== "/1")
|
|
6069
7771
|
return;
|
|
6070
7772
|
// If form already filled out, skip initialising it
|
|
6071
|
-
if (
|
|
7773
|
+
if (sqmInvoiceTableView.objectIsFull(userFormContext))
|
|
6072
7774
|
return;
|
|
6073
7775
|
// Prefer MI email if it was verified before this
|
|
6074
7776
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -6105,7 +7807,7 @@ function useUserInfoForm(props) {
|
|
|
6105
7807
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6106
7808
|
});
|
|
6107
7809
|
}
|
|
6108
|
-
}, [data
|
|
7810
|
+
}, [data, step, userFormContext]);
|
|
6109
7811
|
const onFormChange = (field, e) => {
|
|
6110
7812
|
var _a, _b;
|
|
6111
7813
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -6197,7 +7899,7 @@ function useUserInfoForm(props) {
|
|
|
6197
7899
|
}
|
|
6198
7900
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
6199
7901
|
const regionObj = hasStates
|
|
6200
|
-
?
|
|
7902
|
+
? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
6201
7903
|
: {};
|
|
6202
7904
|
return {
|
|
6203
7905
|
setStep: setStep,
|
|
@@ -6230,8 +7932,8 @@ function useUserInfoForm(props) {
|
|
|
6230
7932
|
disabled: loading,
|
|
6231
7933
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6232
7934
|
loading: loading,
|
|
6233
|
-
isPartner: !!((_b = (_a = data
|
|
6234
|
-
isUser: !!((_d = (_c = data
|
|
7935
|
+
isPartner: !!((_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),
|
|
7936
|
+
isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
6235
7937
|
formState: {
|
|
6236
7938
|
...userFormContext,
|
|
6237
7939
|
errors: formErrors,
|
|
@@ -6414,20 +8116,19 @@ const TaxForm = class {
|
|
|
6414
8116
|
}
|
|
6415
8117
|
render() {
|
|
6416
8118
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6417
|
-
return (index.h(UserInfoFormView, { data: props.data,
|
|
8119
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
6418
8120
|
// @ts-ignore
|
|
6419
8121
|
states: props.states, callbacks: {
|
|
6420
8122
|
...props.callbacks,
|
|
6421
8123
|
onSubmit: props.onSubmit,
|
|
6422
|
-
}, text: props.text, refs: props.refs }));
|
|
8124
|
+
}, text: props.text, refs: props.refs })));
|
|
6423
8125
|
}
|
|
6424
8126
|
};
|
|
6425
8127
|
function useDemoUserInfoForm(props) {
|
|
6426
|
-
const setStep = index_module.En(
|
|
6427
|
-
// @ts-ignore
|
|
8128
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6428
8129
|
return cjs.cjs({
|
|
6429
8130
|
setStep,
|
|
6430
|
-
onSubmit:
|
|
8131
|
+
onSubmit: () => {
|
|
6431
8132
|
setStep("/2");
|
|
6432
8133
|
},
|
|
6433
8134
|
onRadioClick: () => { },
|
|
@@ -6471,12 +8172,19 @@ function useDemoUserInfoForm(props) {
|
|
|
6471
8172
|
}
|
|
6472
8173
|
|
|
6473
8174
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8175
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
6474
8176
|
exports.sqm_docusign_form = DocusignForm;
|
|
6475
8177
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
6476
8178
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8179
|
+
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
6477
8180
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8181
|
+
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
6478
8182
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8183
|
+
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
6479
8184
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
6480
8185
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8186
|
+
exports.sqm_table_cell = TableCell;
|
|
8187
|
+
exports.sqm_table_row = TableRow;
|
|
8188
|
+
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
6481
8189
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
6482
8190
|
exports.sqm_user_info_form = TaxForm;
|