@saasquatch/mint-components 1.15.0-41 → 1.15.0-42
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-42af4b57.js} +1070 -1070
- package/dist/cjs/{copy-text-view-ee147291.js → copy-text-view-af017955.js} +1 -1
- package/dist/cjs/{email-registration-view-dca94dc9.js → email-registration-view-996fb438.js} +1 -1
- package/dist/cjs/{global-d62c5561.js → global-b34bf5f2.js} +95 -102
- 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} +1913 -234
- 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 +373 -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-deaf0385.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-06eb9721.js} +2 -2
- 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-4100f28c.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-ba34601e.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +6 -7
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-f226725e.js → sqm-portal-profile-view-1fc7fb29.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 +14 -14
- 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 +14022 -15352
- 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 +9 -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-bd975a79.js} +57 -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-leaderboard/sqm-leaderboard-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +2 -2
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +9 -6
- 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-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-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 +4 -4
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +41 -24
- package/dist/collection/components/sqm-stencilbook/Themes.js +311 -36
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +79 -81
- 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 +3 -33
- 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 +6 -41
- 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 +6 -4
- 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/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 +1 -1
- 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.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 +3 -62
- 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 +11 -49
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/global/styles.js +93 -100
- package/dist/collection/global/styles.ts +177 -97
- 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-173ce794.js} +1071 -1071
- package/dist/esm/{copy-text-view-4a207b17.js → copy-text-view-38c7c3d5.js} +1 -1
- package/dist/esm/{email-registration-view-8782c01b.js → email-registration-view-db81655f.js} +1 -1
- package/dist/esm/{global-632fb2fa.js → global-16971a34.js} +95 -102
- 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} +1828 -156
- 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 +372 -87
- 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-e43241aa.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-48b224fa.js} +2 -2
- 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-7ac99890.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-2628bc62.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +5 -5
- package/dist/esm/sqm-portal-google-login.entry.js +5 -6
- package/dist/esm/sqm-portal-google-registration-form.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-9b4d7ec1.js → sqm-portal-profile-view-c68753ea.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 +14 -14
- 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 +14035 -15365
- 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 +9 -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-2b813acc.js} +57 -3
- 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-173ce794.js +1 -0
- package/dist/esm-es5/{copy-text-view-4a207b17.js → copy-text-view-38c7c3d5.js} +1 -1
- package/dist/esm-es5/{email-registration-view-8782c01b.js → email-registration-view-db81655f.js} +1 -1
- package/dist/esm-es5/{global-632fb2fa.js → global-16971a34.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-e43241aa.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-6e046743.js → sqm-navigation-sidebar-item-view-48b224fa.js} +1 -1
- 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-7ac99890.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-55fc0873.js → sqm-portal-forgot-password-view-2628bc62.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.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-c68753ea.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-2b813acc.js +1 -0
- 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 +177 -97
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00673c96.js +1 -0
- 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-66d22d46.entry.js → p-028d61de.entry.js} +1 -1
- 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-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-51aa8c38.system.entry.js → p-0a1666ef.system.entry.js} +1 -1
- package/dist/mint-components/p-0bf0409f.entry.js +205 -0
- package/dist/mint-components/p-0c327ec3.entry.js +1 -0
- package/dist/mint-components/{p-dbb83730.entry.js → p-0d3e4788.entry.js} +1 -1
- 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-dc293b10.js → p-1238fbd0.js} +27 -27
- 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-7adb141e.js → p-16dbd9cb.js} +1 -1
- package/dist/mint-components/p-1bdc4f94.system.entry.js +1 -0
- package/dist/mint-components/{p-b7d1469d.system.entry.js → p-1d46f8fa.system.entry.js} +1 -1
- package/dist/mint-components/{p-33f640f6.system.js → p-1e07c5b4.system.js} +1 -1
- package/dist/mint-components/p-1f6cfd37.js +1 -0
- 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-a60d5315.entry.js → p-238fcec6.entry.js} +1 -1
- package/dist/mint-components/p-2403c6e1.system.js +1 -0
- package/dist/mint-components/p-24af584d.js +1 -0
- package/dist/mint-components/{p-96e339f6.system.js → p-27201067.system.js} +20 -20
- 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-2df6ce8f.entry.js → p-29e61db2.entry.js} +2 -2
- package/dist/mint-components/p-2c227f02.js +394 -0
- package/dist/mint-components/p-2c637c26.system.js +1 -0
- 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-865f812e.entry.js → p-322c1e5e.entry.js} +1 -1
- package/dist/mint-components/p-32e6850d.entry.js +13 -0
- 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-54b0b768.system.js → p-34b652a9.system.js} +1 -1
- 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-6fa624ff.system.entry.js → p-3b7c875b.system.entry.js} +1 -1
- 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-490864af.entry.js +258 -0
- package/dist/mint-components/p-492d810b.js +1 -0
- package/dist/mint-components/{p-4e451f75.js → p-4b12067f.js} +1 -1
- 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-cf157c6e.system.entry.js → p-4fc78f20.system.entry.js} +1 -1
- package/dist/mint-components/p-50bfb01f.system.entry.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-d6352d15.js → p-5cff2ac4.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-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-12e61414.system.entry.js → p-692e8ff2.system.entry.js} +1 -1
- package/dist/mint-components/{p-bdd80fce.js → p-69e77f43.js} +1 -1
- package/dist/mint-components/p-6b166700.system.entry.js +1 -0
- 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-e217afd9.system.entry.js → p-7371218f.system.entry.js} +1 -1
- package/dist/mint-components/{p-0a8a6d45.system.entry.js → p-73b3e5a9.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-be89074c.entry.js → p-799d62fe.entry.js} +1 -1
- 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-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-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-a3383f54.system.js → p-84f3732f.system.js} +1 -1
- package/dist/mint-components/{p-48135f99.system.js → p-88e32c4a.system.js} +1 -1
- package/dist/mint-components/{p-042642d3.entry.js → p-88e3b87a.entry.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-450a7705.system.entry.js → p-968e5a9e.system.entry.js} +1 -1
- package/dist/mint-components/p-96c0860e.system.js +1 -0
- package/dist/mint-components/p-96d3900f.entry.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-9daf835f.system.js +1 -0
- package/dist/mint-components/p-a09b2393.entry.js +9 -0
- package/dist/mint-components/p-a255bf0e.entry.js +1 -0
- package/dist/mint-components/{p-d1ae7a2d.js → p-a45680fe.js} +1 -1
- 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-de136dd3.js → p-b1ddc706.js} +1 -1
- package/dist/mint-components/p-b4638167.entry.js +1 -0
- 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-fa37513e.system.entry.js → p-bdb9e05a.system.entry.js} +1 -1
- package/dist/mint-components/{p-e1e62d55.entry.js → p-be725c96.entry.js} +1 -1
- package/dist/mint-components/p-be88596c.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-da71337b.entry.js → p-c67034c1.entry.js} +1 -1
- package/dist/mint-components/p-c7c11325.js +1 -0
- package/dist/mint-components/{p-3a21f8f9.system.entry.js → p-c9592908.system.entry.js} +1 -1
- package/dist/mint-components/{p-9d41d676.system.entry.js → p-cfa40c9b.system.entry.js} +1 -1
- package/dist/mint-components/p-d0de4b73.system.js +1 -0
- package/dist/mint-components/{p-a1e17fd2.js → p-d2066cb0.js} +1 -1
- package/dist/mint-components/{p-a572db9b.system.entry.js → p-d533917f.system.entry.js} +1 -1
- package/dist/mint-components/{p-731d06a9.entry.js → p-d54fa68e.entry.js} +1 -1
- package/dist/mint-components/{p-1878da9b.entry.js → p-d63e5657.entry.js} +2 -2
- package/dist/mint-components/p-d6c151e3.system.js +1 -0
- package/dist/mint-components/p-db86c62e.system.entry.js +1 -0
- package/dist/mint-components/{p-767485b8.system.js → p-dbaab44b.system.js} +1 -1
- package/dist/mint-components/{p-18425f38.system.entry.js → p-dccfe305.system.entry.js} +1 -1
- package/dist/mint-components/p-dddac0ee.system.entry.js +1 -0
- 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-e13ed54a.entry.js +1 -0
- package/dist/mint-components/p-e523b22e.entry.js +11 -0
- package/dist/mint-components/{p-b73a4df4.entry.js → p-e72c2b09.entry.js} +2 -2
- 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-f5a7697e.system.entry.js +1 -0
- 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-f8df914b.system.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-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -1
- 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-code-verification/sqm-code-verification.d.ts +0 -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 +0 -5
- 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-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -10
- 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/sqm-user-info-form.d.ts +0 -7
- 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 -135
- 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/dist/cjs/IndirectTaxDetailsView-d0290a12.js +0 -646
- package/dist/cjs/data-6d96b89c.js +0 -137
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- 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 -348
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-portal-login-view-0fbbda1b.js +0 -58
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1221
- 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/parseStates-ed75e224.js +0 -14
- 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 -344
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-portal-login-view-e870b4b0.js +0 -56
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1217
- 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/data-a05c78ae.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.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-portal-login-view-e870b4b0.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/usePortalLogin-ef647a50.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-0984523b.js +0 -1
- package/dist/mint-components/p-0a37a288.system.entry.js +0 -1
- package/dist/mint-components/p-0b3218a5.entry.js +0 -1
- package/dist/mint-components/p-0e32981f.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-127e66c2.system.js +0 -1
- package/dist/mint-components/p-13f3a647.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-2cfe9826.system.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-32a47b41.system.js +0 -1
- 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-4841c5e9.system.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-4d478108.system.entry.js +0 -1
- package/dist/mint-components/p-4e526a94.js +0 -1
- package/dist/mint-components/p-527216de.system.js +0 -1
- 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-5510be1e.system.entry.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-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-6ef506ba.entry.js +0 -16
- package/dist/mint-components/p-704f162e.entry.js +0 -1
- package/dist/mint-components/p-70fddbdd.entry.js +0 -11
- package/dist/mint-components/p-780b981b.entry.js +0 -1
- package/dist/mint-components/p-7b731acd.entry.js +0 -93
- package/dist/mint-components/p-84a78d09.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-a91e7c05.system.entry.js +0 -1
- package/dist/mint-components/p-b637f1e4.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-c9745c8f.system.js +0 -1
- package/dist/mint-components/p-e2705fbe.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-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/mint-components/p-fda43e22.system.entry.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,26 +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-b34bf5f2.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
|
|
22
|
-
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-deaf0385.js');
|
|
22
|
+
const extractProps = require('./extractProps-fd93ba62.js');
|
|
23
23
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
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;
|
|
25
144
|
|
|
26
145
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
27
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;
|
|
@@ -672,8 +791,10 @@ const vanillaStyle = `
|
|
|
672
791
|
|
|
673
792
|
/* this class is dynamically applied in controller */
|
|
674
793
|
.error-input::part(base) {
|
|
675
|
-
border:
|
|
676
|
-
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);
|
|
677
798
|
}
|
|
678
799
|
|
|
679
800
|
.error-input::part(help-text) {
|
|
@@ -720,7 +841,7 @@ const BankingInfoFormView = (props) => {
|
|
|
720
841
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
721
842
|
id: "formStep",
|
|
722
843
|
defaultMessage: text.formStep,
|
|
723
|
-
}, { step: states.step, count:
|
|
844
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
724
845
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
725
846
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
726
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 },
|
|
@@ -775,7 +896,7 @@ const BankingInfoFormView = (props) => {
|
|
|
775
896
|
: slots.paymentFixedDaySelectSlot))))),
|
|
776
897
|
index.h("div", { class: classes.BtnContainer },
|
|
777
898
|
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
778
|
-
!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))))));
|
|
779
900
|
};
|
|
780
901
|
|
|
781
902
|
// Hardcoded in Impact backend
|
|
@@ -859,12 +980,12 @@ function useBankingInfoForm(props) {
|
|
|
859
980
|
const host = index_module._();
|
|
860
981
|
const locale = index_module.L();
|
|
861
982
|
const user = index_module.J();
|
|
862
|
-
const [step, setStep] = index_module.Pn(
|
|
863
|
-
const context = index_module.Fn(
|
|
864
|
-
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);
|
|
865
986
|
const formRef = stencilHooks_module.useRef(null);
|
|
866
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(
|
|
867
|
-
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);
|
|
868
989
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
869
990
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
870
991
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
@@ -1533,7 +1654,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1533
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;
|
|
1534
1655
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1535
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;
|
|
1536
|
-
const setStep = index_module.En(
|
|
1657
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1537
1658
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1538
1659
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1539
1660
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1626,6 +1747,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1626
1747
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1627
1748
|
}
|
|
1628
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
|
+
|
|
1629
2075
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1630
2076
|
mutation createImpactPublisherTaxDocument(
|
|
1631
2077
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1654,10 +2100,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
1654
2100
|
function useDocusignForm(props) {
|
|
1655
2101
|
var _a, _b, _c;
|
|
1656
2102
|
const user = index_module.J();
|
|
1657
|
-
const context = index_module.Fn(
|
|
1658
|
-
const [step, setStep] = index_module.Pn(
|
|
1659
|
-
const { data
|
|
1660
|
-
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;
|
|
1661
2107
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1662
2108
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1663
2109
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
@@ -1666,7 +2112,7 @@ function useDocusignForm(props) {
|
|
|
1666
2112
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1667
2113
|
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
1668
2114
|
// Only look at current document if it's valid (same as required type)
|
|
1669
|
-
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)
|
|
1670
2116
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1671
2117
|
const actualDocumentType = existingDocumentType ||
|
|
1672
2118
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
@@ -1758,7 +2204,7 @@ function useDocusignForm(props) {
|
|
|
1758
2204
|
},
|
|
1759
2205
|
docusignStatus,
|
|
1760
2206
|
documentType: actualDocumentType,
|
|
1761
|
-
documentTypeString:
|
|
2207
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1762
2208
|
showExitButton,
|
|
1763
2209
|
},
|
|
1764
2210
|
data: {
|
|
@@ -1783,7 +2229,7 @@ function getDocumentType(p) {
|
|
|
1783
2229
|
return undefined;
|
|
1784
2230
|
}
|
|
1785
2231
|
|
|
1786
|
-
const style$
|
|
2232
|
+
const style$2 = {
|
|
1787
2233
|
DocusignStatusContainer: {
|
|
1788
2234
|
width: "100%",
|
|
1789
2235
|
minHeight: "600px",
|
|
@@ -1810,13 +2256,13 @@ const style$1 = {
|
|
|
1810
2256
|
},
|
|
1811
2257
|
},
|
|
1812
2258
|
};
|
|
1813
|
-
const sheet$
|
|
1814
|
-
const styleString$
|
|
2259
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2260
|
+
const styleString$2 = sheet$2.toString();
|
|
1815
2261
|
const DocusignExpiredView = (props) => {
|
|
1816
|
-
const { classes } = sheet$
|
|
2262
|
+
const { classes } = sheet$2;
|
|
1817
2263
|
const { text } = props;
|
|
1818
2264
|
return (index.h("div", null,
|
|
1819
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2265
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1820
2266
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1821
2267
|
index.h("sl-icon", { style: {
|
|
1822
2268
|
width: "50px",
|
|
@@ -1828,10 +2274,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1828
2274
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1829
2275
|
};
|
|
1830
2276
|
const DocusignErrorView = (props) => {
|
|
1831
|
-
const { classes } = sheet$
|
|
2277
|
+
const { classes } = sheet$2;
|
|
1832
2278
|
const { text } = props;
|
|
1833
2279
|
return (index.h("div", null,
|
|
1834
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2280
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1835
2281
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1836
2282
|
index.h("sl-icon", { style: {
|
|
1837
2283
|
width: "50px",
|
|
@@ -1843,14 +2289,14 @@ const DocusignErrorView = (props) => {
|
|
|
1843
2289
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1844
2290
|
};
|
|
1845
2291
|
const DocusignLoadingView = () => {
|
|
1846
|
-
const { classes } = sheet$
|
|
2292
|
+
const { classes } = sheet$2;
|
|
1847
2293
|
return (index.h("div", null,
|
|
1848
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2294
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1849
2295
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1850
2296
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1851
2297
|
};
|
|
1852
2298
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1853
|
-
const { classes } = sheet$
|
|
2299
|
+
const { classes } = sheet$2;
|
|
1854
2300
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1855
2301
|
const allowedDomains = [
|
|
1856
2302
|
"referralsaasquatch.com",
|
|
@@ -1883,12 +2329,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1883
2329
|
return index.h(DocusignExpiredView, { text: text });
|
|
1884
2330
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1885
2331
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1886
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2332
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1887
2333
|
index.h("div", { class: classes.IFrameContainer },
|
|
1888
2334
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1889
2335
|
};
|
|
1890
2336
|
|
|
1891
|
-
const style$
|
|
2337
|
+
const style$3 = {
|
|
1892
2338
|
FormWrapper: {
|
|
1893
2339
|
display: "flex",
|
|
1894
2340
|
justifyContent: "flex-start",
|
|
@@ -1978,9 +2424,9 @@ const style$2 = {
|
|
|
1978
2424
|
fontSize: "var(--sl-font-size-medium)",
|
|
1979
2425
|
},
|
|
1980
2426
|
};
|
|
1981
|
-
const sheet$
|
|
1982
|
-
const styleString$
|
|
1983
|
-
const vanillaStyle$
|
|
2427
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2428
|
+
const styleString$3 = sheet$3.toString();
|
|
2429
|
+
const vanillaStyle$2 = `
|
|
1984
2430
|
:host{
|
|
1985
2431
|
display: block;
|
|
1986
2432
|
}
|
|
@@ -2001,21 +2447,21 @@ const vanillaStyle$1 = `
|
|
|
2001
2447
|
const DocusignFormView = (props) => {
|
|
2002
2448
|
var _a;
|
|
2003
2449
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2004
|
-
const { classes } = sheet$
|
|
2450
|
+
const { classes } = sheet$3;
|
|
2005
2451
|
return (index.h("div", { class: classes.Container },
|
|
2006
2452
|
index.h("style", { type: "text/css" },
|
|
2007
|
-
styleString$
|
|
2008
|
-
vanillaStyle$
|
|
2453
|
+
styleString$3,
|
|
2454
|
+
vanillaStyle$2),
|
|
2009
2455
|
index.h("div", { class: classes.TextContainer },
|
|
2010
2456
|
index.h("div", null,
|
|
2011
2457
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2012
2458
|
id: "formStep",
|
|
2013
2459
|
defaultMessage: text.formStep,
|
|
2014
|
-
}, { step: states.step, count:
|
|
2460
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2015
2461
|
index.h("h3", null, text.taxForm),
|
|
2016
2462
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2017
2463
|
states.loadingError && (index.h("div", null,
|
|
2018
|
-
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 },
|
|
2019
2465
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2020
2466
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2021
2467
|
index.h("br", null),
|
|
@@ -2025,7 +2471,7 @@ const DocusignFormView = (props) => {
|
|
|
2025
2471
|
}, {
|
|
2026
2472
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2027
2473
|
})))),
|
|
2028
|
-
((_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 },
|
|
2029
2475
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2030
2476
|
index.h("strong", null, text.error.generalTitle),
|
|
2031
2477
|
index.h("br", null),
|
|
@@ -2196,7 +2642,7 @@ const DocusignForm = class {
|
|
|
2196
2642
|
get el() { return index.getElement(this); }
|
|
2197
2643
|
};
|
|
2198
2644
|
function useDocusignFormDemo(props) {
|
|
2199
|
-
const setStep = index_module.En(
|
|
2645
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2200
2646
|
return cjs.cjs({
|
|
2201
2647
|
text: props.getTextProps(),
|
|
2202
2648
|
states: {
|
|
@@ -2245,7 +2691,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2245
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")))));
|
|
2246
2692
|
};
|
|
2247
2693
|
|
|
2248
|
-
const style$
|
|
2694
|
+
const style$4 = {
|
|
2249
2695
|
FormWrapper: {
|
|
2250
2696
|
display: "flex",
|
|
2251
2697
|
justifyContent: "flex-start",
|
|
@@ -2377,9 +2823,9 @@ const style$3 = {
|
|
|
2377
2823
|
},
|
|
2378
2824
|
},
|
|
2379
2825
|
};
|
|
2380
|
-
const sheet$
|
|
2381
|
-
const styleString$
|
|
2382
|
-
const vanillaStyle$
|
|
2826
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2827
|
+
const styleString$4 = sheet$4.toString();
|
|
2828
|
+
const vanillaStyle$3 = `
|
|
2383
2829
|
:host{
|
|
2384
2830
|
display: block;
|
|
2385
2831
|
}
|
|
@@ -2406,11 +2852,11 @@ const vanillaStyle$2 = `
|
|
|
2406
2852
|
const IndirectTaxFormView = (props) => {
|
|
2407
2853
|
var _a;
|
|
2408
2854
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2409
|
-
const { classes } = sheet$
|
|
2855
|
+
const { classes } = sheet$4;
|
|
2410
2856
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2411
2857
|
index.h("style", { type: "text/css" },
|
|
2412
|
-
styleString$
|
|
2413
|
-
vanillaStyle$
|
|
2858
|
+
styleString$4,
|
|
2859
|
+
vanillaStyle$3),
|
|
2414
2860
|
index.h("div", { class: classes.TextContainer },
|
|
2415
2861
|
index.h("div", null,
|
|
2416
2862
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2418,12 +2864,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2418
2864
|
global.intl.formatMessage({
|
|
2419
2865
|
id: "formStep",
|
|
2420
2866
|
defaultMessage: text.formStep,
|
|
2421
|
-
}, { step: states.step, count:
|
|
2867
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2422
2868
|
index.h("h3", null, text.indirectTax),
|
|
2423
2869
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2424
2870
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2425
2871
|
states.loadingError && (index.h("div", null,
|
|
2426
|
-
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 },
|
|
2427
2873
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2428
2874
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2429
2875
|
index.h("br", null),
|
|
@@ -2433,7 +2879,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2433
2879
|
}, {
|
|
2434
2880
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2435
2881
|
})))),
|
|
2436
|
-
((_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 },
|
|
2437
2883
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2438
2884
|
index.h("strong", null, text.error.generalTitle),
|
|
2439
2885
|
index.h("br", null),
|
|
@@ -2443,7 +2889,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2443
2889
|
}, {
|
|
2444
2890
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2445
2891
|
}))),
|
|
2446
|
-
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" },
|
|
2447
2893
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2448
2894
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2449
2895
|
index.h("br", null),
|
|
@@ -2521,14 +2967,14 @@ function useIndirectTaxForm(props) {
|
|
|
2521
2967
|
const user = index_module.J();
|
|
2522
2968
|
const locale = index_module.L();
|
|
2523
2969
|
const formRef = stencilHooks_module.useRef(null);
|
|
2524
|
-
const context = index_module.Fn(
|
|
2525
|
-
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);
|
|
2526
2972
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2527
|
-
const userForm = index_module.Fn(
|
|
2528
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
2529
|
-
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);
|
|
2530
2976
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2531
|
-
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]);
|
|
2532
2978
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2533
2979
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
2534
2980
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -2643,7 +3089,7 @@ function useIndirectTaxForm(props) {
|
|
|
2643
3089
|
await refetch();
|
|
2644
3090
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2645
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;
|
|
2646
|
-
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);
|
|
2647
3093
|
// Fire form change event
|
|
2648
3094
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2649
3095
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -2698,10 +3144,10 @@ function useIndirectTaxForm(props) {
|
|
|
2698
3144
|
})),
|
|
2699
3145
|
},
|
|
2700
3146
|
data: {
|
|
2701
|
-
esRegions:
|
|
3147
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2702
3148
|
countries: filteredCountries,
|
|
2703
3149
|
allCountries: _countries,
|
|
2704
|
-
provinces:
|
|
3150
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2705
3151
|
},
|
|
2706
3152
|
text: props.getTextProps(),
|
|
2707
3153
|
refs: {
|
|
@@ -2903,7 +3349,7 @@ const IndirectTaxForm = class {
|
|
|
2903
3349
|
const props = index_module.isDemo()
|
|
2904
3350
|
? useDemoIndirectTaxForm(this)
|
|
2905
3351
|
: useIndirectTaxForm(this);
|
|
2906
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
3352
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2907
3353
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2908
3354
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2909
3355
|
formState: props.slotProps.formState,
|
|
@@ -2921,7 +3367,7 @@ const IndirectTaxForm = class {
|
|
|
2921
3367
|
}
|
|
2922
3368
|
};
|
|
2923
3369
|
function useDemoIndirectTaxForm(props) {
|
|
2924
|
-
const setStep = index_module.En(
|
|
3370
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2925
3371
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2926
3372
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2927
3373
|
return cjs.cjs({
|
|
@@ -2962,7 +3408,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2962
3408
|
setCountrySearch: (c) => console.log(c),
|
|
2963
3409
|
},
|
|
2964
3410
|
data: {
|
|
2965
|
-
esRegions:
|
|
3411
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2966
3412
|
countries: [
|
|
2967
3413
|
{
|
|
2968
3414
|
countryCode: "CA",
|
|
@@ -2981,7 +3427,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2981
3427
|
displayName: "United States",
|
|
2982
3428
|
},
|
|
2983
3429
|
],
|
|
2984
|
-
provinces:
|
|
3430
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2985
3431
|
},
|
|
2986
3432
|
text: props.getTextProps(),
|
|
2987
3433
|
refs: {
|
|
@@ -3214,7 +3660,7 @@ const InvoiceTable = class {
|
|
|
3214
3660
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3215
3661
|
: useInvoiceTable(this, empty, loading);
|
|
3216
3662
|
reRender.useRequestRerender([this.perPage]);
|
|
3217
|
-
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 })));
|
|
3218
3664
|
}
|
|
3219
3665
|
};
|
|
3220
3666
|
function EmptySlot(props) {
|
|
@@ -3316,6 +3762,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3316
3762
|
return demoProps;
|
|
3317
3763
|
}
|
|
3318
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
|
+
|
|
3319
3777
|
const InvoiceTableDataColumn = class {
|
|
3320
3778
|
constructor(hostRef) {
|
|
3321
3779
|
index.registerInstance(this, hostRef);
|
|
@@ -3334,6 +3792,23 @@ const InvoiceTableDataColumn = class {
|
|
|
3334
3792
|
}
|
|
3335
3793
|
};
|
|
3336
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
|
+
|
|
3337
3812
|
const InvoiceTableDateColumn = class {
|
|
3338
3813
|
constructor(hostRef) {
|
|
3339
3814
|
index.registerInstance(this, hostRef);
|
|
@@ -3352,6 +3827,21 @@ const InvoiceTableDateColumn = class {
|
|
|
3352
3827
|
}
|
|
3353
3828
|
};
|
|
3354
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
|
+
|
|
3355
3845
|
const InvoiceTableGenericColumn = class {
|
|
3356
3846
|
constructor(hostRef) {
|
|
3357
3847
|
index.registerInstance(this, hostRef);
|
|
@@ -3374,7 +3864,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3374
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" }),
|
|
3375
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" })));
|
|
3376
3866
|
|
|
3377
|
-
const style$
|
|
3867
|
+
const style$5 = {
|
|
3378
3868
|
CardContainer: {
|
|
3379
3869
|
display: "grid",
|
|
3380
3870
|
gridTemplateColumns: "1fr",
|
|
@@ -3508,7 +3998,7 @@ const style$4 = {
|
|
|
3508
3998
|
},
|
|
3509
3999
|
};
|
|
3510
4000
|
function PayoutDetailsCardView(props) {
|
|
3511
|
-
const sheet = JSS.createStyleSheet(style$
|
|
4001
|
+
const sheet = JSS.createStyleSheet(style$5);
|
|
3512
4002
|
const styleString = sheet.toString();
|
|
3513
4003
|
const { classes } = sheet;
|
|
3514
4004
|
const { states, text } = props;
|
|
@@ -3559,8 +4049,8 @@ function PayoutDetailsCardView(props) {
|
|
|
3559
4049
|
|
|
3560
4050
|
function usePayoutDetailsCard(props) {
|
|
3561
4051
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3562
|
-
const { data
|
|
3563
|
-
const publisher = (_b = (_a = data
|
|
4052
|
+
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4053
|
+
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;
|
|
3564
4054
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3565
4055
|
var _a;
|
|
3566
4056
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -3638,10 +4128,6 @@ const PayoutDetailsCard = class {
|
|
|
3638
4128
|
* @uiName Payout missing information subtext
|
|
3639
4129
|
*/
|
|
3640
4130
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3641
|
-
/**
|
|
3642
|
-
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3643
|
-
*/
|
|
3644
|
-
this.stateController = "{}";
|
|
3645
4131
|
stencilHooks_module.h$1(this);
|
|
3646
4132
|
}
|
|
3647
4133
|
disconnectedCallback() { }
|
|
@@ -3679,19 +4165,1232 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3679
4165
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3680
4166
|
}
|
|
3681
4167
|
|
|
3682
|
-
const
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
"
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
4168
|
+
const TableCell = class {
|
|
4169
|
+
constructor(hostRef) {
|
|
4170
|
+
index.registerInstance(this, hostRef);
|
|
4171
|
+
/** @uiName Column span */
|
|
4172
|
+
this.colspan = 1;
|
|
4173
|
+
/** @uiName Padding */
|
|
4174
|
+
this.padding = "15px 10px";
|
|
4175
|
+
}
|
|
4176
|
+
render() {
|
|
4177
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4178
|
+
}
|
|
4179
|
+
};
|
|
4180
|
+
|
|
4181
|
+
const TableRow = class {
|
|
4182
|
+
constructor(hostRef) {
|
|
4183
|
+
index.registerInstance(this, hostRef);
|
|
4184
|
+
/**
|
|
4185
|
+
* @uiName Border
|
|
4186
|
+
*/
|
|
4187
|
+
this.border = "1px solid #EAEAEA";
|
|
4188
|
+
}
|
|
4189
|
+
render() {
|
|
4190
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4191
|
+
}
|
|
4192
|
+
};
|
|
4193
|
+
|
|
4194
|
+
function getCurrentStep(user) {
|
|
4195
|
+
var _a, _b;
|
|
4196
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4197
|
+
return "/1";
|
|
4198
|
+
}
|
|
4199
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4200
|
+
// If they do have a required document, look at current document
|
|
4201
|
+
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4202
|
+
return "/3";
|
|
4203
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4204
|
+
return "/4";
|
|
4205
|
+
return "/dashboard";
|
|
4206
|
+
}
|
|
4207
|
+
function useTaxAndCash() {
|
|
4208
|
+
var _a, _b, _c, _d, _e;
|
|
4209
|
+
const host = index_module._();
|
|
4210
|
+
const user = index_module.J();
|
|
4211
|
+
const locale = index_module.L();
|
|
4212
|
+
// State for current step of form
|
|
4213
|
+
const [step, setStep] = index_module.In({
|
|
4214
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4215
|
+
initialValue: "/loading",
|
|
4216
|
+
});
|
|
4217
|
+
// State for when to hide steps, or override certain actions
|
|
4218
|
+
const [context, _setContext] = index_module.In({
|
|
4219
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4220
|
+
initialValue: {},
|
|
4221
|
+
});
|
|
4222
|
+
// State to carry user form information into step 2
|
|
4223
|
+
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4224
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4225
|
+
initialValue: {
|
|
4226
|
+
firstName: undefined,
|
|
4227
|
+
lastName: undefined,
|
|
4228
|
+
email: undefined,
|
|
4229
|
+
countryCode: undefined,
|
|
4230
|
+
currency: undefined,
|
|
4231
|
+
},
|
|
4232
|
+
});
|
|
4233
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4234
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4235
|
+
initialValue: [],
|
|
4236
|
+
});
|
|
4237
|
+
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4238
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4239
|
+
initialValue: [],
|
|
4240
|
+
});
|
|
4241
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4242
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4243
|
+
initialValue: [],
|
|
4244
|
+
});
|
|
4245
|
+
const { data, errors } = index_module.Sn({
|
|
4246
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4247
|
+
query: GET_USER,
|
|
4248
|
+
skip: !user,
|
|
4249
|
+
options: {
|
|
4250
|
+
batch: false,
|
|
4251
|
+
},
|
|
4252
|
+
});
|
|
4253
|
+
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) ||
|
|
4254
|
+
userFormContext.countryCode;
|
|
4255
|
+
index_module.Sn({
|
|
4256
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4257
|
+
query: GET_COUNTRIES,
|
|
4258
|
+
skip: !user,
|
|
4259
|
+
});
|
|
4260
|
+
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4261
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4262
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4263
|
+
skip: !user,
|
|
4264
|
+
variables: {
|
|
4265
|
+
filter: getFinanceNetworkFilter(),
|
|
4266
|
+
},
|
|
4267
|
+
});
|
|
4268
|
+
const { data: currenciesData } = index_module.Sn({
|
|
4269
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4270
|
+
query: GET_CURRENCIES,
|
|
4271
|
+
skip: !user,
|
|
4272
|
+
variables: {
|
|
4273
|
+
locale,
|
|
4274
|
+
},
|
|
4275
|
+
});
|
|
4276
|
+
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4277
|
+
var _a, _b;
|
|
4278
|
+
// Filter out any currencies not supported by finance network settings
|
|
4279
|
+
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) => {
|
|
4280
|
+
var _a, _b;
|
|
4281
|
+
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);
|
|
4282
|
+
// Currency not in supported list
|
|
4283
|
+
if (!currency)
|
|
4284
|
+
return agg;
|
|
4285
|
+
// Currency already added to list
|
|
4286
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4287
|
+
return agg;
|
|
4288
|
+
// Currency not supported by selected country
|
|
4289
|
+
if (userFormContext.countryCode &&
|
|
4290
|
+
settings.countryCode !== countryCode)
|
|
4291
|
+
return agg;
|
|
4292
|
+
return [...agg, currency];
|
|
4293
|
+
}, []);
|
|
4294
|
+
return allValidCurrencies;
|
|
4295
|
+
}, [financeNetworkData, countryCode]);
|
|
4296
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4297
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4298
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4299
|
+
// filter out any duplicate countries and null countryCode
|
|
4300
|
+
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4301
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4302
|
+
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4303
|
+
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4304
|
+
.sort(sortByName)
|
|
4305
|
+
.reduce((prev, countryObj) => {
|
|
4306
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4307
|
+
return [countryObj, ...prev];
|
|
4308
|
+
return [...prev, countryObj];
|
|
4309
|
+
}, []), [availableCountries]);
|
|
4310
|
+
stencilHooks_module.useEffect(() => {
|
|
4311
|
+
if (sortedCountries)
|
|
4312
|
+
setSortedCountriesContext(sortedCountries);
|
|
4313
|
+
}, [sortedCountries]);
|
|
4314
|
+
stencilHooks_module.useEffect(() => {
|
|
4315
|
+
if (supportedCurrencies)
|
|
4316
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4317
|
+
}, [supportedCurrencies]);
|
|
4318
|
+
stencilHooks_module.useEffect(() => {
|
|
4319
|
+
if (errors) {
|
|
4320
|
+
setStep("/error");
|
|
4321
|
+
return;
|
|
4322
|
+
}
|
|
4323
|
+
if (!host || !user)
|
|
4324
|
+
return;
|
|
4325
|
+
if (data) {
|
|
4326
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4327
|
+
if (!user || step !== "/loading")
|
|
4328
|
+
return;
|
|
4329
|
+
const currentStep = getCurrentStep(user);
|
|
4330
|
+
setStep(currentStep);
|
|
4331
|
+
}
|
|
4332
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4333
|
+
function getFinanceNetworkFilter() {
|
|
4334
|
+
var _a, _b, _c;
|
|
4335
|
+
if (step === "/1")
|
|
4336
|
+
return {};
|
|
4337
|
+
if (step === "/4")
|
|
4338
|
+
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 };
|
|
4339
|
+
if (countryCode)
|
|
4340
|
+
return {
|
|
4341
|
+
countryCode_eq: countryCode,
|
|
4342
|
+
};
|
|
4343
|
+
return {};
|
|
4344
|
+
}
|
|
4345
|
+
return {
|
|
4346
|
+
step,
|
|
4347
|
+
setStep,
|
|
4348
|
+
context,
|
|
4349
|
+
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4350
|
+
loading: step === "/loading",
|
|
4351
|
+
};
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
const TaxAndCashMonolith = class {
|
|
4355
|
+
constructor(hostRef) {
|
|
4356
|
+
index.registerInstance(this, hostRef);
|
|
4357
|
+
/*---------------------------------------------------------------------------------
|
|
4358
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4359
|
+
-----------------------------------------------------------------------------------*/
|
|
4360
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4361
|
+
STEP 1 PROPS:
|
|
4362
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4363
|
+
/**
|
|
4364
|
+
* @uiName First name field label
|
|
4365
|
+
* @uiGroup Step 1 Properties
|
|
4366
|
+
*/
|
|
4367
|
+
this.step1_firstName = "First name";
|
|
4368
|
+
/**
|
|
4369
|
+
* @uiName Last name field label
|
|
4370
|
+
* @uiGroup Step 1 Properties
|
|
4371
|
+
*/
|
|
4372
|
+
this.step1_lastName = "Last name";
|
|
4373
|
+
/**
|
|
4374
|
+
* @uiName Email field label
|
|
4375
|
+
* @uiGroup Step 1 Properties
|
|
4376
|
+
*/
|
|
4377
|
+
this.step1_email = "Email";
|
|
4378
|
+
/**
|
|
4379
|
+
* @uiName Country field label
|
|
4380
|
+
* @uiGroup Step 1 Properties
|
|
4381
|
+
*/
|
|
4382
|
+
this.step1_country = "Country";
|
|
4383
|
+
/**
|
|
4384
|
+
* @uiName Phone number field label
|
|
4385
|
+
* @uiGroup Step 1 Properties
|
|
4386
|
+
*/
|
|
4387
|
+
this.step1_phoneNumber = "Phone number";
|
|
4388
|
+
/**
|
|
4389
|
+
* @uiName Address field label
|
|
4390
|
+
* @uiGroup Step 1 Properties
|
|
4391
|
+
*/
|
|
4392
|
+
this.step1_address = "Address";
|
|
4393
|
+
/**
|
|
4394
|
+
* @uiName City field label
|
|
4395
|
+
* @uiGroup Step 1 Properties
|
|
4396
|
+
*/
|
|
4397
|
+
this.step1_city = "City";
|
|
4398
|
+
/**
|
|
4399
|
+
* @uiName State field label for states
|
|
4400
|
+
* @uiGroup Step 1 Properties
|
|
4401
|
+
*/
|
|
4402
|
+
this.step1_state = "State";
|
|
4403
|
+
/**
|
|
4404
|
+
* @uiName State field label for provinces
|
|
4405
|
+
* @uiGroup Step 1 Properties
|
|
4406
|
+
*/
|
|
4407
|
+
this.step1_province = "Province";
|
|
4408
|
+
/**
|
|
4409
|
+
* @uiName State field label for regions
|
|
4410
|
+
* @uiGroup Step 1 Properties
|
|
4411
|
+
*/
|
|
4412
|
+
this.step1_region = "Region";
|
|
4413
|
+
/**
|
|
4414
|
+
* @uiName Postal code field label
|
|
4415
|
+
* @uiGroup Step 1 Properties
|
|
4416
|
+
*/
|
|
4417
|
+
this.step1_postalCode = "Postal code";
|
|
4418
|
+
/**
|
|
4419
|
+
* @uiName Currency field label
|
|
4420
|
+
* @uiGroup Step 1 Properties
|
|
4421
|
+
*/
|
|
4422
|
+
this.step1_currency = "Currency";
|
|
4423
|
+
/**
|
|
4424
|
+
* @uiName Currency field help text
|
|
4425
|
+
* @uiGroup Step 1 Properties
|
|
4426
|
+
*/
|
|
4427
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4428
|
+
/**
|
|
4429
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4430
|
+
* @uiName Terms and conditions checkbox
|
|
4431
|
+
* @uiGroup Step 1 Properties
|
|
4432
|
+
*/
|
|
4433
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4434
|
+
/**
|
|
4435
|
+
* @uiName Step 1 title
|
|
4436
|
+
* @uiGroup Step 1 Properties
|
|
4437
|
+
*/
|
|
4438
|
+
this.step1_personalInformation = "Personal Information";
|
|
4439
|
+
/**
|
|
4440
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4441
|
+
* @uiName Terms and conditions text
|
|
4442
|
+
* @uiGroup Step 1 Properties
|
|
4443
|
+
* @uiWidget textArea
|
|
4444
|
+
*/
|
|
4445
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4446
|
+
/**
|
|
4447
|
+
* The link that appears in the terms and conditions checkbox
|
|
4448
|
+
* @uiName Terms and conditions link
|
|
4449
|
+
* @uiGroup Step 1 Properties
|
|
4450
|
+
*/
|
|
4451
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4452
|
+
/**
|
|
4453
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4454
|
+
* @uiName Currency field placeholder text
|
|
4455
|
+
* @uiGroup Step 1 Properties
|
|
4456
|
+
*/
|
|
4457
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4458
|
+
/**
|
|
4459
|
+
|
|
4460
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4461
|
+
STEP 2 PROPS:
|
|
4462
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4463
|
+
/**
|
|
4464
|
+
* @uiName Step 2 title
|
|
4465
|
+
* @uiGroup Step 2 Properties
|
|
4466
|
+
*/
|
|
4467
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4468
|
+
/**
|
|
4469
|
+
* Displayed under the title of this step.
|
|
4470
|
+
* @uiName Step 2 description
|
|
4471
|
+
* @uiGroup Step 2 Properties
|
|
4472
|
+
* @uiWidget textArea
|
|
4473
|
+
*/
|
|
4474
|
+
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.";
|
|
4475
|
+
/**
|
|
4476
|
+
* Displayed with indirect tax registration options.
|
|
4477
|
+
* @uiName Indirect tax details section title
|
|
4478
|
+
* @uiGroup Step 2 Properties
|
|
4479
|
+
*/
|
|
4480
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4481
|
+
/**
|
|
4482
|
+
* @uiName Registered for indirect tax option
|
|
4483
|
+
* @uiGroup Step 2 Properties
|
|
4484
|
+
* @uiWidget textArea
|
|
4485
|
+
*
|
|
4486
|
+
*/
|
|
4487
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4488
|
+
/**
|
|
4489
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4490
|
+
* @uiName Registered for indirect tax option description
|
|
4491
|
+
* @uiGroup Step 2 Properties
|
|
4492
|
+
*/
|
|
4493
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4494
|
+
/**
|
|
4495
|
+
* @uiName Not registered for indirect tax option
|
|
4496
|
+
* @uiGroup Step 2 Properties
|
|
4497
|
+
* @uiWidget textArea
|
|
4498
|
+
*/
|
|
4499
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4500
|
+
/**
|
|
4501
|
+
* Participants based in the US are considered not registered.
|
|
4502
|
+
* @uiName Not registered for indirect tax option description
|
|
4503
|
+
* @uiGroup Step 2 Properties
|
|
4504
|
+
*/
|
|
4505
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4506
|
+
/**
|
|
4507
|
+
* @uiName Region of indirect tax field label
|
|
4508
|
+
* @uiGroup Step 2 Properties
|
|
4509
|
+
*/
|
|
4510
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4511
|
+
/**
|
|
4512
|
+
* @uiName Indirect tax number field label
|
|
4513
|
+
* @uiGroup Step 2 Properties
|
|
4514
|
+
*/
|
|
4515
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4516
|
+
/**
|
|
4517
|
+
* @uiName Province field label
|
|
4518
|
+
* @uiGroup Step 2 Properties
|
|
4519
|
+
*/
|
|
4520
|
+
this.step2_province = "Province";
|
|
4521
|
+
/**
|
|
4522
|
+
* @uiName Missing indirect tax number error message
|
|
4523
|
+
* @uiGroup Step 2 Properties
|
|
4524
|
+
*/
|
|
4525
|
+
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";
|
|
4526
|
+
/**
|
|
4527
|
+
* Displayed to participants registered for QST.
|
|
4528
|
+
* @uiName QST number field label
|
|
4529
|
+
* @uiGroup Step 2 Properties
|
|
4530
|
+
*/
|
|
4531
|
+
this.step2_qstNumber = "QST number";
|
|
4532
|
+
/**
|
|
4533
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4534
|
+
* @uiName QST tax checkbox
|
|
4535
|
+
* @uiGroup Step 2 Properties
|
|
4536
|
+
*/
|
|
4537
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4538
|
+
/**
|
|
4539
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4540
|
+
* @uiName Spain income tax checkbox
|
|
4541
|
+
* @uiGroup Step 2 Properties
|
|
4542
|
+
* @uiWidget textArea
|
|
4543
|
+
*/
|
|
4544
|
+
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.";
|
|
4545
|
+
/**
|
|
4546
|
+
* Displayed to participants registered in Spain.
|
|
4547
|
+
* @uiName Sub-region of indirect tax field label
|
|
4548
|
+
* @uiGroup Step 2 Properties
|
|
4549
|
+
*/
|
|
4550
|
+
this.step2_subRegion = "Sub-region";
|
|
4551
|
+
/**
|
|
4552
|
+
* @uiName Income tax field label
|
|
4553
|
+
* @uiGroup Step 2 Properties
|
|
4554
|
+
*/
|
|
4555
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4556
|
+
/**
|
|
4557
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4558
|
+
* @uiName Submission confirmation alert
|
|
4559
|
+
* @uiGroup Step 2 Properties
|
|
4560
|
+
* @uiWidget textArea
|
|
4561
|
+
*/
|
|
4562
|
+
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.";
|
|
4563
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4564
|
+
STEP 3 PROPS:
|
|
4565
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4566
|
+
/**
|
|
4567
|
+
* @uiName Step 3 title
|
|
4568
|
+
* @uiGroup Step 3 Properties
|
|
4569
|
+
*/
|
|
4570
|
+
this.step3_taxForm = "Tax form";
|
|
4571
|
+
/**
|
|
4572
|
+
* Display the type of tax form that the participant must submit.
|
|
4573
|
+
* @uiName Tax form name
|
|
4574
|
+
* @uiGroup Step 3 Properties
|
|
4575
|
+
*/
|
|
4576
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4577
|
+
/**
|
|
4578
|
+
* @uiName Participant type field label
|
|
4579
|
+
* @uiGroup Step 3 Properties
|
|
4580
|
+
*/
|
|
4581
|
+
this.step3_participantType = "Participant type";
|
|
4582
|
+
/**
|
|
4583
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4584
|
+
* @uiName Business representative participant type label
|
|
4585
|
+
* @uiGroup Step 3 Properties
|
|
4586
|
+
*/
|
|
4587
|
+
this.step3_businessEntity = "I represent a business";
|
|
4588
|
+
/**
|
|
4589
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4590
|
+
* @uiName Individual participant type label
|
|
4591
|
+
* @uiGroup Step 3 Properties
|
|
4592
|
+
*/
|
|
4593
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4594
|
+
/**
|
|
4595
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4596
|
+
* @uiName W-9 tax form description
|
|
4597
|
+
* @uiGroup Step 3 Properties
|
|
4598
|
+
* @uiWidget textArea
|
|
4599
|
+
*/
|
|
4600
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4601
|
+
/**
|
|
4602
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4603
|
+
* @uiName W-8 BEN tax form description
|
|
4604
|
+
* @uiGroup Step 3 Properties
|
|
4605
|
+
* @uiWidget textArea
|
|
4606
|
+
*/
|
|
4607
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4608
|
+
/**
|
|
4609
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4610
|
+
* @uiName W-8 BEN-E tax form description
|
|
4611
|
+
* @uiGroup Step 3 Properties
|
|
4612
|
+
* @uiWidget textArea
|
|
4613
|
+
*/
|
|
4614
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4615
|
+
/**
|
|
4616
|
+
* This appears inside the Docusign frame.
|
|
4617
|
+
* @uiName Docusign session expired message
|
|
4618
|
+
* @uiGroup Step 3 Properties
|
|
4619
|
+
* @uiWidget textArea
|
|
4620
|
+
*/
|
|
4621
|
+
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.";
|
|
4622
|
+
/**
|
|
4623
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4624
|
+
* @uiName Docusign timed session message
|
|
4625
|
+
* @uiGroup Step 3 Properties
|
|
4626
|
+
* @uiWidget textArea
|
|
4627
|
+
*/
|
|
4628
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4629
|
+
/**
|
|
4630
|
+
* This appears inside the Docusign frame.
|
|
4631
|
+
* @uiName Docusign form error message
|
|
4632
|
+
* @uiGroup Step 3 Properties
|
|
4633
|
+
* @uiWidget textArea
|
|
4634
|
+
*/
|
|
4635
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4636
|
+
/**
|
|
4637
|
+
* @uiName Refresh page button label
|
|
4638
|
+
* @uiGroup Step 3 Properties
|
|
4639
|
+
*/
|
|
4640
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4641
|
+
/**
|
|
4642
|
+
* @uiName Exit button text
|
|
4643
|
+
* @uiGroup Step 3 Properties
|
|
4644
|
+
*/
|
|
4645
|
+
this.step3_exitButton = "Exit";
|
|
4646
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4647
|
+
STEP 4 PROPS:
|
|
4648
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4649
|
+
/**
|
|
4650
|
+
* @uiName Step 4 title
|
|
4651
|
+
* @uiGroup Step 4 Properties
|
|
4652
|
+
*/
|
|
4653
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4654
|
+
/**
|
|
4655
|
+
* @uiName Direct to bank payout option
|
|
4656
|
+
* @uiGroup Step 4 Properties
|
|
4657
|
+
*/
|
|
4658
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4659
|
+
/**
|
|
4660
|
+
* @uiName PayPal payout option
|
|
4661
|
+
* @uiGroup Step 4 Properties
|
|
4662
|
+
*/
|
|
4663
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4664
|
+
/**
|
|
4665
|
+
* @uiName Threshold balance payment schedule option
|
|
4666
|
+
* @uiGroup Step 4 Properties
|
|
4667
|
+
*/
|
|
4668
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4669
|
+
/**
|
|
4670
|
+
* @uiName Fixed day payment schedule option
|
|
4671
|
+
* @uiGroup Step 4 Properties
|
|
4672
|
+
*/
|
|
4673
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4674
|
+
/**
|
|
4675
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4676
|
+
* @uiName Payment day field label
|
|
4677
|
+
* @uiGroup Step 4 Properties
|
|
4678
|
+
*/
|
|
4679
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4680
|
+
/**
|
|
4681
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4682
|
+
* @uiName Payment threshold field label
|
|
4683
|
+
* @uiGroup Step 4 Properties
|
|
4684
|
+
*/
|
|
4685
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4686
|
+
/**
|
|
4687
|
+
* One of two payment day options
|
|
4688
|
+
* @uiName First of month payday option
|
|
4689
|
+
* @uiGroup Step 4 Properties
|
|
4690
|
+
*/
|
|
4691
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4692
|
+
/**
|
|
4693
|
+
* One of two payment day options
|
|
4694
|
+
* @uiName Fifteenth of month payday option
|
|
4695
|
+
* @uiGroup Step 4 Properties
|
|
4696
|
+
*/
|
|
4697
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4698
|
+
/**
|
|
4699
|
+
* @uiName Payment method section header
|
|
4700
|
+
* @uiGroup Step 4 Properties
|
|
4701
|
+
*/
|
|
4702
|
+
this.step4_paymentMethod = "Payment method";
|
|
4703
|
+
/**
|
|
4704
|
+
* @uiName Payment schedule section header
|
|
4705
|
+
* @uiGroup Step 4 Properties
|
|
4706
|
+
*/
|
|
4707
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4708
|
+
/**
|
|
4709
|
+
* @uiName Payment method section description
|
|
4710
|
+
* @uiGroup Step 4 Properties
|
|
4711
|
+
*/
|
|
4712
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4713
|
+
/**
|
|
4714
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4715
|
+
* @uiName PayPal email field label
|
|
4716
|
+
* @uiGroup Step 4 Properties
|
|
4717
|
+
*/
|
|
4718
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4719
|
+
/**
|
|
4720
|
+
* @uiName Bank country field label
|
|
4721
|
+
* @uiGroup Step 4 Properties
|
|
4722
|
+
*/
|
|
4723
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4724
|
+
/**
|
|
4725
|
+
* @uiName Beneficiary account field label
|
|
4726
|
+
* @uiGroup Step 4 Properties
|
|
4727
|
+
*/
|
|
4728
|
+
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4729
|
+
/**
|
|
4730
|
+
* @uiName Bank account type field label
|
|
4731
|
+
* @uiGroup Step 4 Properties
|
|
4732
|
+
*/
|
|
4733
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4734
|
+
/**
|
|
4735
|
+
* @uiName Checking account option
|
|
4736
|
+
* @uiGroup Step 4 Properties
|
|
4737
|
+
*/
|
|
4738
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4739
|
+
/**
|
|
4740
|
+
* Label text for the savings account type select item
|
|
4741
|
+
* @uiName Savings account options
|
|
4742
|
+
* @uiGroup Step 4 Properties
|
|
4743
|
+
*/
|
|
4744
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4745
|
+
/**
|
|
4746
|
+
* @uiName Bank account number field label
|
|
4747
|
+
* @uiGroup Step 4 Properties
|
|
4748
|
+
*/
|
|
4749
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4750
|
+
/**
|
|
4751
|
+
* @uiName IBAN field label
|
|
4752
|
+
* @uiGroup Step 4 Properties
|
|
4753
|
+
*/
|
|
4754
|
+
this.step4_ibanLabel = "IBAN";
|
|
4755
|
+
/**
|
|
4756
|
+
* @uiName SWIFT code field label
|
|
4757
|
+
* @uiGroup Step 4 Properties
|
|
4758
|
+
*/
|
|
4759
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4760
|
+
/**
|
|
4761
|
+
* @uiName Routing code field label
|
|
4762
|
+
* @uiGroup Step 4 Properties
|
|
4763
|
+
*/
|
|
4764
|
+
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} }";
|
|
4765
|
+
/**
|
|
4766
|
+
* @uiName Bank name field label
|
|
4767
|
+
* @uiGroup Step 4 Properties
|
|
4768
|
+
*/
|
|
4769
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4770
|
+
/**
|
|
4771
|
+
* @uiName Classification entity field label
|
|
4772
|
+
* @uiGroup Step 4 Properties
|
|
4773
|
+
*/
|
|
4774
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4775
|
+
/**
|
|
4776
|
+
* One of three options listed for the classification field
|
|
4777
|
+
* @uiName Business classification option
|
|
4778
|
+
* @uiGroup Step 4 Properties
|
|
4779
|
+
*/
|
|
4780
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4781
|
+
/**
|
|
4782
|
+
* One of three options listed for the classification field
|
|
4783
|
+
* @uiName Individual classification option
|
|
4784
|
+
* @uiGroup Step 4 Properties
|
|
4785
|
+
*/
|
|
4786
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4787
|
+
/**
|
|
4788
|
+
* One of three options listed for the classification field
|
|
4789
|
+
* @uiName Foreign classification option
|
|
4790
|
+
* @uiGroup Step 4 Properties
|
|
4791
|
+
*/
|
|
4792
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4793
|
+
/**
|
|
4794
|
+
* @uiName Classification CPF field label
|
|
4795
|
+
* @uiGroup Step 4 Properties
|
|
4796
|
+
*/
|
|
4797
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4798
|
+
/**
|
|
4799
|
+
* @uiName Patronymic name field label
|
|
4800
|
+
* @uiGroup Step 4 Properties
|
|
4801
|
+
*/
|
|
4802
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4803
|
+
/**
|
|
4804
|
+
* @uiName VO code field label
|
|
4805
|
+
* @uiGroup Step 4 Properties
|
|
4806
|
+
*/
|
|
4807
|
+
this.step4_voCodeLabel = "VO code";
|
|
4808
|
+
/**
|
|
4809
|
+
* @uiName Agency code field label
|
|
4810
|
+
* @uiGroup Step 4 Properties
|
|
4811
|
+
*/
|
|
4812
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4813
|
+
/**
|
|
4814
|
+
* @uiName Branch code field label
|
|
4815
|
+
* @uiGroup Step 4 Properties
|
|
4816
|
+
*/
|
|
4817
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4818
|
+
/**
|
|
4819
|
+
* Label text for the classification input field
|
|
4820
|
+
* @uiName Classification field label
|
|
4821
|
+
* @uiGroup Step 4 Properties
|
|
4822
|
+
*/
|
|
4823
|
+
this.step4_classificationLabel = "Classification";
|
|
4824
|
+
/**
|
|
4825
|
+
* @uiName Taxpayer ID field label
|
|
4826
|
+
* @uiGroup Step 4 Properties
|
|
4827
|
+
*/
|
|
4828
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4829
|
+
/**
|
|
4830
|
+
* @uiName Bank address field label
|
|
4831
|
+
* @uiGroup Step 4 Properties
|
|
4832
|
+
*/
|
|
4833
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4834
|
+
/**
|
|
4835
|
+
* @uiName Bank city field label
|
|
4836
|
+
* @uiGroup Step 4 Properties
|
|
4837
|
+
*/
|
|
4838
|
+
this.step4_bankCityLabel = "Bank city";
|
|
4839
|
+
/**
|
|
4840
|
+
* @uiName Bank province/state field label
|
|
4841
|
+
* @uiGroup Step 4 Properties
|
|
4842
|
+
*/
|
|
4843
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
4844
|
+
/**
|
|
4845
|
+
* @uiName Bank postal code field label
|
|
4846
|
+
* @uiGroup Step 4 Properties
|
|
4847
|
+
*/
|
|
4848
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4849
|
+
/**
|
|
4850
|
+
* Default payment method to the participants’ bank account.
|
|
4851
|
+
* @uiName EFT withdrawal payment method
|
|
4852
|
+
* @uiGroup Step 4 Properties
|
|
4853
|
+
*/
|
|
4854
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4855
|
+
/**
|
|
4856
|
+
* @uiName FX Wire Processing fee text
|
|
4857
|
+
* @uiGroup Step 4 Properties
|
|
4858
|
+
*/
|
|
4859
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4860
|
+
/**
|
|
4861
|
+
* @uiName Text for verify email dialog
|
|
4862
|
+
* @uiGroup Step 4 Properties
|
|
4863
|
+
*/
|
|
4864
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4865
|
+
/**
|
|
4866
|
+
* @uiName Verify code widget header text
|
|
4867
|
+
* @uiGroup Step 4 Properties
|
|
4868
|
+
*/
|
|
4869
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4870
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4871
|
+
DASHBOARD PROPS:
|
|
4872
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4873
|
+
/**
|
|
4874
|
+
* @uiName Active tax form badge label
|
|
4875
|
+
* @uiGroup Dashboard Properties
|
|
4876
|
+
*/
|
|
4877
|
+
this.dashboard_statusTextActive = "Active";
|
|
4878
|
+
/**
|
|
4879
|
+
* @uiName Invalid tax form badge label
|
|
4880
|
+
* @uiGroup Dashboard Properties
|
|
4881
|
+
*/
|
|
4882
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4883
|
+
/**
|
|
4884
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4885
|
+
*
|
|
4886
|
+
* @uiName Not verified tax form badge label
|
|
4887
|
+
* @uiGroup Dashboard Properties
|
|
4888
|
+
*/
|
|
4889
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4890
|
+
/**
|
|
4891
|
+
* Additional text displayed next to the tax form's status badge
|
|
4892
|
+
*
|
|
4893
|
+
* @uiName Active W-9 description
|
|
4894
|
+
* @uiGroup Dashboard Properties
|
|
4895
|
+
*/
|
|
4896
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4897
|
+
/**
|
|
4898
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4899
|
+
*
|
|
4900
|
+
* @uiName Active W-8 description
|
|
4901
|
+
* @uiGroup Dashboard Properties
|
|
4902
|
+
*/
|
|
4903
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4904
|
+
/**
|
|
4905
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4906
|
+
*
|
|
4907
|
+
* @uiName Tax form in review description
|
|
4908
|
+
* @uiGroup Dashboard Properties
|
|
4909
|
+
*/
|
|
4910
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4911
|
+
/**
|
|
4912
|
+
* Part of the alert displayed at the top of the page.
|
|
4913
|
+
*
|
|
4914
|
+
* @uiName Inactive W-9 error message title
|
|
4915
|
+
* @uiGroup Dashboard Properties
|
|
4916
|
+
* @uiWidget textArea
|
|
4917
|
+
*/
|
|
4918
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4919
|
+
/**
|
|
4920
|
+
* Part of the alert displayed at the top of the page.
|
|
4921
|
+
*
|
|
4922
|
+
* @uiName Inactive W-8 error message title
|
|
4923
|
+
* @uiGroup Dashboard Properties
|
|
4924
|
+
* @uiWidget textArea
|
|
4925
|
+
*/
|
|
4926
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4927
|
+
/**
|
|
4928
|
+
* Part of the alert displayed at the top of the page.
|
|
4929
|
+
*
|
|
4930
|
+
* @uiName Inactive W-9 error message description
|
|
4931
|
+
* @uiGroup Dashboard Properties
|
|
4932
|
+
* @uiWidget textArea
|
|
4933
|
+
*/
|
|
4934
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4935
|
+
/**
|
|
4936
|
+
* Part of the alert displayed at the top of the page.
|
|
4937
|
+
*
|
|
4938
|
+
* @uiName Inactive W-8 error message description
|
|
4939
|
+
* @uiGroup Dashboard Properties
|
|
4940
|
+
*/
|
|
4941
|
+
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.";
|
|
4942
|
+
/**
|
|
4943
|
+
* Additional text displayed next to the tax form's status badge.
|
|
4944
|
+
*
|
|
4945
|
+
* @uiName Invalid tax form description
|
|
4946
|
+
* @uiGroup Dashboard Properties
|
|
4947
|
+
* @uiWidget textArea
|
|
4948
|
+
*/
|
|
4949
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4950
|
+
/**
|
|
4951
|
+
* @uiName Payout information section header
|
|
4952
|
+
* @uiGroup Dashboard Properties
|
|
4953
|
+
*/
|
|
4954
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4955
|
+
/**
|
|
4956
|
+
* @uiName Tax document section header
|
|
4957
|
+
* @uiGroup Dashboard Properties
|
|
4958
|
+
*/
|
|
4959
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4960
|
+
/**
|
|
4961
|
+
* Displayed under the tax document section header.
|
|
4962
|
+
*
|
|
4963
|
+
* @uiName Tax documents section description
|
|
4964
|
+
* @uiGroup Dashboard Properties
|
|
4965
|
+
*/
|
|
4966
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4967
|
+
/**
|
|
4968
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4969
|
+
*
|
|
4970
|
+
* @uiName Tax form not required text
|
|
4971
|
+
* @uiGroup Dashboard Properties
|
|
4972
|
+
* @uiWidget textArea
|
|
4973
|
+
*/
|
|
4974
|
+
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.";
|
|
4975
|
+
/**
|
|
4976
|
+
*
|
|
4977
|
+
* @uiName Indirect tax section header
|
|
4978
|
+
* @uiGroup Dashboard Properties
|
|
4979
|
+
*/
|
|
4980
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4981
|
+
/**
|
|
4982
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4983
|
+
*
|
|
4984
|
+
* @uiName Canadian province of indirect tax
|
|
4985
|
+
* @uiGroup Dashboard Properties
|
|
4986
|
+
*/
|
|
4987
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
4988
|
+
/**
|
|
4989
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
4990
|
+
*
|
|
4991
|
+
* @uiName Indirect tax country
|
|
4992
|
+
* @uiGroup Dashboard Properties
|
|
4993
|
+
*/
|
|
4994
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
4995
|
+
/**
|
|
4996
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
4997
|
+
*
|
|
4998
|
+
* @uiName Spanish region of indirect tax
|
|
4999
|
+
* @uiGroup Dashboard Properties
|
|
5000
|
+
*/
|
|
5001
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5002
|
+
/**
|
|
5003
|
+
* @uiName Indirect tax tooltip
|
|
5004
|
+
* @uiGroup Dashboard Properties
|
|
5005
|
+
* @uiWidget textArea
|
|
5006
|
+
*/
|
|
5007
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5008
|
+
/**
|
|
5009
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5010
|
+
*
|
|
5011
|
+
* @uiName Indirect tax details
|
|
5012
|
+
* @uiGroup Dashboard Properties
|
|
5013
|
+
*/
|
|
5014
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5015
|
+
/**
|
|
5016
|
+
* @uiName Submit new tax form button label
|
|
5017
|
+
* @uiGroup Dashboard Properties
|
|
5018
|
+
*/
|
|
5019
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5020
|
+
/**
|
|
5021
|
+
* @uiName Edit payment info button label
|
|
5022
|
+
* @uiGroup Dashboard Properties
|
|
5023
|
+
*/
|
|
5024
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5025
|
+
/**
|
|
5026
|
+
* @uiName Not registered for indirect tax text
|
|
5027
|
+
* @uiGroup Dashboard Properties
|
|
5028
|
+
* @uiWidget textArea
|
|
5029
|
+
*/
|
|
5030
|
+
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.";
|
|
5031
|
+
/**
|
|
5032
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5033
|
+
* @uiName QST indirect tax details
|
|
5034
|
+
* @uiGroup Dashboard Properties
|
|
5035
|
+
*/
|
|
5036
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5037
|
+
/**
|
|
5038
|
+
* @uiName Spain sub-region indirect tax number
|
|
5039
|
+
* @uiGroup Dashboard Properties
|
|
5040
|
+
*/
|
|
5041
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5042
|
+
/**
|
|
5043
|
+
* @uiName Payout status badge
|
|
5044
|
+
* @uiGroup Dashboard Properties
|
|
5045
|
+
*/
|
|
5046
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5047
|
+
/**
|
|
5048
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5049
|
+
* @uiName Payout schedule by threshold text
|
|
5050
|
+
* @uiGroup Dashboard Properties
|
|
5051
|
+
*/
|
|
5052
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5053
|
+
/**
|
|
5054
|
+
* Shown before the participant’s bank account information.
|
|
5055
|
+
* @uiName Bank account field label
|
|
5056
|
+
* @uiGroup Dashboard Properties
|
|
5057
|
+
*/
|
|
5058
|
+
this.dashboard_accountText = "Account";
|
|
5059
|
+
/**
|
|
5060
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5061
|
+
* @uiName Invoice number column title
|
|
5062
|
+
* @uiGroup Dashboard Properties
|
|
5063
|
+
*/
|
|
5064
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5065
|
+
/**
|
|
5066
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5067
|
+
* @uiName Date column title
|
|
5068
|
+
* @uiGroup Dashboard Properties
|
|
5069
|
+
*/
|
|
5070
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5071
|
+
/**
|
|
5072
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5073
|
+
* @uiName Earnings column title
|
|
5074
|
+
* @uiGroup Dashboard Properties
|
|
5075
|
+
*/
|
|
5076
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5077
|
+
/**
|
|
5078
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5079
|
+
* @uiName Indirect tax column title
|
|
5080
|
+
* @uiGroup Dashboard Properties
|
|
5081
|
+
*/
|
|
5082
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5083
|
+
/**
|
|
5084
|
+
* Displayed under the payout details card.
|
|
5085
|
+
* @uiName Payout from impact text
|
|
5086
|
+
* @uiGroup Dashboard Properties
|
|
5087
|
+
* @uiWidget textArea
|
|
5088
|
+
*/
|
|
5089
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5090
|
+
/**
|
|
5091
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5092
|
+
* @uiName Earnings after tax column title
|
|
5093
|
+
* @uiGroup Dashboard Properties
|
|
5094
|
+
*/
|
|
5095
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5096
|
+
/**
|
|
5097
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5098
|
+
* @uiName Payout error message title
|
|
5099
|
+
* @uiGroup Dashboard Properties
|
|
5100
|
+
* @uiWidget textArea
|
|
5101
|
+
*/
|
|
5102
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5103
|
+
/**
|
|
5104
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5105
|
+
* @uiName Payout error message description
|
|
5106
|
+
* @uiGroup Dashboard Properties
|
|
5107
|
+
* @uiWidget textArea
|
|
5108
|
+
*/
|
|
5109
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5110
|
+
/**
|
|
5111
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5112
|
+
* @uiName Payout missing information subtext
|
|
5113
|
+
* @uiGroup Dashboard Properties
|
|
5114
|
+
*/
|
|
5115
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5116
|
+
/**
|
|
5117
|
+
* @uiName Invoice table description
|
|
5118
|
+
* @uiGroup Dashboard Properties
|
|
5119
|
+
*/
|
|
5120
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5121
|
+
/**
|
|
5122
|
+
* @uiName Invoice table previous page button label
|
|
5123
|
+
* @uiGroup Dashboard Properties
|
|
5124
|
+
*/
|
|
5125
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5126
|
+
/**
|
|
5127
|
+
* @uiName Invoice table next page button label
|
|
5128
|
+
* @uiGroup Dashboard Properties
|
|
5129
|
+
*/
|
|
5130
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5131
|
+
/**
|
|
5132
|
+
* @uiName Invoice table title
|
|
5133
|
+
* @uiGroup Dashboard Properties
|
|
5134
|
+
*/
|
|
5135
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5136
|
+
/**
|
|
5137
|
+
* @uiName Empty invoice table header
|
|
5138
|
+
* @uiGroup Dashboard Properties
|
|
5139
|
+
*/
|
|
5140
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5141
|
+
/**
|
|
5142
|
+
* @uiName Empty invoice table description
|
|
5143
|
+
* @uiGroup Dashboard Properties
|
|
5144
|
+
*/
|
|
5145
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5146
|
+
/**
|
|
5147
|
+
* @uiName Replace tax form modal header
|
|
5148
|
+
* @uiGroup Dashboard Properties
|
|
5149
|
+
*/
|
|
5150
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5151
|
+
/**
|
|
5152
|
+
* @uiName Replace tax form modal body text
|
|
5153
|
+
* @uiGroup Dashboard Properties
|
|
5154
|
+
* @uiWidget textArea
|
|
5155
|
+
*/
|
|
5156
|
+
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.";
|
|
5157
|
+
/**
|
|
5158
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5159
|
+
* @uiName Verification required alert message title
|
|
5160
|
+
* @uiGroup Dashboard Properties
|
|
5161
|
+
* @uiWidget textArea
|
|
5162
|
+
*/
|
|
5163
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5164
|
+
/**
|
|
5165
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5166
|
+
* @uiName Verification required alert message description
|
|
5167
|
+
* @uiGroup Dashboard Properties
|
|
5168
|
+
* @uiWidget textArea
|
|
5169
|
+
*/
|
|
5170
|
+
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}.";
|
|
5171
|
+
/**
|
|
5172
|
+
* @uiName Verification required internal alert header
|
|
5173
|
+
* @uiGroup Dashboard Properties
|
|
5174
|
+
* @uiWidget textArea
|
|
5175
|
+
*/
|
|
5176
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5177
|
+
/**
|
|
5178
|
+
* @uiName Verification required internal alert description
|
|
5179
|
+
* @uiGroup Dashboard Properties
|
|
5180
|
+
* @uiWidget textArea
|
|
5181
|
+
*/
|
|
5182
|
+
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}.";
|
|
5183
|
+
/**
|
|
5184
|
+
* @uiName Verification review internal alert header
|
|
5185
|
+
* @uiGroup Dashboard Properties
|
|
5186
|
+
* @uiWidget textArea
|
|
5187
|
+
*/
|
|
5188
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5189
|
+
/**
|
|
5190
|
+
* @uiName Verification review internal alert description
|
|
5191
|
+
* @uiGroup Dashboard Properties
|
|
5192
|
+
* @uiWidget textArea
|
|
5193
|
+
*/
|
|
5194
|
+
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}.";
|
|
5195
|
+
/**
|
|
5196
|
+
* @uiName Verification failed internal alert header
|
|
5197
|
+
* @uiGroup Dashboard Properties
|
|
5198
|
+
* @uiWidget textArea
|
|
5199
|
+
*/
|
|
5200
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5201
|
+
/**
|
|
5202
|
+
* @uiName Verification failed internal alert description
|
|
5203
|
+
* @uiGroup Dashboard Properties
|
|
5204
|
+
* @uiWidget textArea
|
|
5205
|
+
*/
|
|
5206
|
+
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}.";
|
|
5207
|
+
/**
|
|
5208
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5209
|
+
* @uiName Verification required alert button text
|
|
5210
|
+
* @uiGroup Dashboard Properties
|
|
5211
|
+
* @uiWidget textArea
|
|
5212
|
+
*/
|
|
5213
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5214
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5215
|
+
GENERAL PROPS:
|
|
5216
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5217
|
+
/**
|
|
5218
|
+
* @uiName Setup progress
|
|
5219
|
+
* @uiGroup General Form Properties
|
|
5220
|
+
*/
|
|
5221
|
+
this.formStep = "Step {step} of {count}";
|
|
5222
|
+
/**
|
|
5223
|
+
* Part of the alert displayed at the top of the page.
|
|
5224
|
+
* @uiName Form submission error message title
|
|
5225
|
+
* @uiGroup General Form Properties
|
|
5226
|
+
* @uiWidget textArea
|
|
5227
|
+
*/
|
|
5228
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5229
|
+
/**
|
|
5230
|
+
* Part of the alert displayed at the top of the page.
|
|
5231
|
+
* @uiName Form submission error message description
|
|
5232
|
+
* @uiGroup General Form Properties
|
|
5233
|
+
* @uiWidget textArea
|
|
5234
|
+
*/
|
|
5235
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5236
|
+
/**
|
|
5237
|
+
* Displayed under a field that is missing required information.
|
|
5238
|
+
* @uiName Empty form field error message
|
|
5239
|
+
* @uiGroup General Form Properties
|
|
5240
|
+
*/
|
|
5241
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5242
|
+
/**
|
|
5243
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5244
|
+
* @uiName Invalid character error message
|
|
5245
|
+
* @uiGroup General Form Properties
|
|
5246
|
+
*/
|
|
5247
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5248
|
+
/**
|
|
5249
|
+
* Displayed under a field when it has an invalid entry.
|
|
5250
|
+
* @uiName Form field error message
|
|
5251
|
+
* @uiGroup General Form Properties
|
|
5252
|
+
*/
|
|
5253
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5254
|
+
/**
|
|
5255
|
+
* @uiName Continue button label
|
|
5256
|
+
* @uiGroup General Form Properties
|
|
5257
|
+
*/
|
|
5258
|
+
this.continueButton = "Continue";
|
|
5259
|
+
/**
|
|
5260
|
+
* @uiName Back button label
|
|
5261
|
+
* @uiGroup General Form Properties
|
|
5262
|
+
*/
|
|
5263
|
+
this.backButton = "Back";
|
|
5264
|
+
/**
|
|
5265
|
+
* @uiName Cancel button label
|
|
5266
|
+
* @uiGroup General Form Properties
|
|
5267
|
+
*/
|
|
5268
|
+
this.cancelButton = "Cancel";
|
|
5269
|
+
/**
|
|
5270
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5271
|
+
* @uiName Participant is a partner alert title
|
|
5272
|
+
* @uiGroup General Form Properties
|
|
5273
|
+
* @uiWidget textArea
|
|
5274
|
+
*/
|
|
5275
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5276
|
+
/**
|
|
5277
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5278
|
+
* @uiName Participant is a partner alert description
|
|
5279
|
+
* @uiGroup General Form Properties
|
|
5280
|
+
* @uiWidget textArea
|
|
5281
|
+
*/
|
|
5282
|
+
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.";
|
|
5283
|
+
/**
|
|
5284
|
+
* Placeholder text displayed in the country search dropdown
|
|
5285
|
+
* @uiName Country field placeholder text
|
|
5286
|
+
* @uiGroup General Form Properties
|
|
5287
|
+
*/
|
|
5288
|
+
this.searchForCountryText = "Search for country..";
|
|
5289
|
+
/**
|
|
5290
|
+
* Part of the alert displayed at the top of the page.
|
|
5291
|
+
* @uiName Page load error message title
|
|
5292
|
+
* @uiGroup General Form Properties
|
|
5293
|
+
* @uiWidget textArea
|
|
5294
|
+
*/
|
|
5295
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5296
|
+
/**
|
|
5297
|
+
* Part of the alert displayed at the top of the page.
|
|
5298
|
+
* @uiName Page load error message description
|
|
5299
|
+
* @uiGroup General Form Properties
|
|
5300
|
+
* @uiWidget textArea
|
|
5301
|
+
*/
|
|
5302
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5303
|
+
/**
|
|
5304
|
+
* Displayed at the top of the page on all set up steps.
|
|
5305
|
+
* @uiName Page description
|
|
5306
|
+
* @uiGroup General Form Properties
|
|
5307
|
+
*/
|
|
5308
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5309
|
+
/**
|
|
5310
|
+
* Link text for contacting support team
|
|
5311
|
+
* @uiName Suport link text
|
|
5312
|
+
* @uiGroup General Form Properties
|
|
5313
|
+
*/
|
|
5314
|
+
this.supportLink = "support team";
|
|
5315
|
+
stencilHooks_module.h$1(this);
|
|
5316
|
+
}
|
|
5317
|
+
disconnectedCallback() { }
|
|
5318
|
+
// this field is required prop
|
|
5319
|
+
getGeneralStepTextProps(prefix) {
|
|
5320
|
+
const props = utils.getProps(this);
|
|
5321
|
+
return {
|
|
5322
|
+
...extractProps.extractProps(props, prefix),
|
|
5323
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5324
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5325
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5326
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5327
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5328
|
+
continueButton: props.continueButton,
|
|
5329
|
+
backButton: props.backButton,
|
|
5330
|
+
cancelButton: props.cancelButton,
|
|
5331
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5332
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5333
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5334
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5335
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5336
|
+
searchForCountryText: props.searchForCountryText,
|
|
5337
|
+
formStep: props.formStep,
|
|
5338
|
+
supportLink: props.supportLink,
|
|
5339
|
+
};
|
|
5340
|
+
}
|
|
5341
|
+
render() {
|
|
5342
|
+
var _a, _b;
|
|
5343
|
+
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5344
|
+
// @ts-ignore
|
|
5345
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5346
|
+
const textProps = utils.getProps(this);
|
|
5347
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5348
|
+
if (prop === "demoData")
|
|
5349
|
+
return;
|
|
5350
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5351
|
+
})));
|
|
5352
|
+
}
|
|
5353
|
+
switch (props.step) {
|
|
5354
|
+
case "/1":
|
|
5355
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5356
|
+
case "/2":
|
|
5357
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5358
|
+
case "/3":
|
|
5359
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5360
|
+
case "/4":
|
|
5361
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5362
|
+
case "/dashboard":
|
|
5363
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5364
|
+
case "/error":
|
|
5365
|
+
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5366
|
+
}
|
|
5367
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
5368
|
+
}
|
|
5369
|
+
};
|
|
5370
|
+
function useDemoTaxAndCash(props) {
|
|
5371
|
+
const [step, setStep] = index_module.In({
|
|
5372
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5373
|
+
initialValue: "/1",
|
|
5374
|
+
});
|
|
5375
|
+
return cjs.cjs({
|
|
5376
|
+
step,
|
|
5377
|
+
setStep,
|
|
5378
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
const style$6 = {
|
|
5382
|
+
ErrorAlertContainer: {
|
|
5383
|
+
"&::part(base)": {
|
|
5384
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
5385
|
+
border: "none",
|
|
5386
|
+
},
|
|
5387
|
+
"& sl-icon::part(base)": {
|
|
5388
|
+
color: "var(--sqm-danger-color-text)",
|
|
5389
|
+
},
|
|
5390
|
+
},
|
|
5391
|
+
WarningAlertContainer: {
|
|
5392
|
+
"&::part(base)": {
|
|
5393
|
+
backgroundColor: "var(--sqm-warning-color-background)",
|
|
3695
5394
|
border: "none",
|
|
3696
5395
|
maxWidth: "600px",
|
|
3697
5396
|
},
|
|
@@ -3870,8 +5569,8 @@ const style$5 = {
|
|
|
3870
5569
|
},
|
|
3871
5570
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3872
5571
|
};
|
|
3873
|
-
const sheet$
|
|
3874
|
-
const styleString$
|
|
5572
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5573
|
+
const styleString$5 = sheet$5.toString();
|
|
3875
5574
|
const TaxAndCashDashboardView = (props) => {
|
|
3876
5575
|
var _a, _b, _c, _d;
|
|
3877
5576
|
const { states, text, callbacks, slots } = props;
|
|
@@ -3889,7 +5588,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3889
5588
|
buttonText: text.verificationRequiredButtonText,
|
|
3890
5589
|
alertType: "warning",
|
|
3891
5590
|
icon: "exclamation-triangle",
|
|
3892
|
-
class: sheet$
|
|
5591
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3893
5592
|
};
|
|
3894
5593
|
case "VERIFICATION:INTERNAL":
|
|
3895
5594
|
return {
|
|
@@ -3902,7 +5601,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3902
5601
|
}),
|
|
3903
5602
|
alertType: "warning",
|
|
3904
5603
|
icon: "exclamation-triangle",
|
|
3905
|
-
class: sheet$
|
|
5604
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3906
5605
|
};
|
|
3907
5606
|
case "VERIFICATION:REVIEW":
|
|
3908
5607
|
return {
|
|
@@ -3915,7 +5614,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3915
5614
|
}),
|
|
3916
5615
|
alertType: "warning",
|
|
3917
5616
|
icon: "exclamation-triangle",
|
|
3918
|
-
class: sheet$
|
|
5617
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3919
5618
|
};
|
|
3920
5619
|
case "VERIFICATION:FAILED":
|
|
3921
5620
|
return {
|
|
@@ -3928,7 +5627,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3928
5627
|
}),
|
|
3929
5628
|
alertType: "critical",
|
|
3930
5629
|
icon: "exclamation-octagon",
|
|
3931
|
-
class: sheet$
|
|
5630
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3932
5631
|
};
|
|
3933
5632
|
case "HOLD":
|
|
3934
5633
|
return {
|
|
@@ -3942,14 +5641,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3942
5641
|
buttonText: null,
|
|
3943
5642
|
alertType: "warning",
|
|
3944
5643
|
icon: "exclamation-triangle",
|
|
3945
|
-
class: sheet$
|
|
5644
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3946
5645
|
};
|
|
3947
5646
|
default:
|
|
3948
5647
|
return;
|
|
3949
5648
|
}
|
|
3950
5649
|
}
|
|
3951
5650
|
const statusMap = {
|
|
3952
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5651
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3953
5652
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3954
5653
|
index.h("p", null, global.intl.formatMessage({
|
|
3955
5654
|
id: `badgeTextAwaitingReview`,
|
|
@@ -3957,7 +5656,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3957
5656
|
}, {
|
|
3958
5657
|
dateSubmitted: states.dateSubmitted,
|
|
3959
5658
|
})))),
|
|
3960
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5659
|
+
ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3961
5660
|
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3962
5661
|
index.h("p", null, global.intl.formatMessage({
|
|
3963
5662
|
id: `badgeTextSubmittedOn`,
|
|
@@ -3967,12 +5666,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3967
5666
|
}, {
|
|
3968
5667
|
dateSubmitted: states.dateSubmitted,
|
|
3969
5668
|
})))),
|
|
3970
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5669
|
+
INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
3971
5670
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3972
5671
|
index.h("p", null, text.invalidForm))),
|
|
3973
5672
|
};
|
|
3974
5673
|
const alertMap = {
|
|
3975
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5674
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
3976
5675
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3977
5676
|
index.h("strong", null, global.intl.formatMessage({
|
|
3978
5677
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -4022,9 +5721,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4022
5721
|
};
|
|
4023
5722
|
return (index.h("div", null,
|
|
4024
5723
|
index.h("div", null,
|
|
4025
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
5724
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
4026
5725
|
states.loadingError && (index.h("div", null,
|
|
4027
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5726
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
4028
5727
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4029
5728
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
4030
5729
|
index.h("br", null),
|
|
@@ -4034,7 +5733,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4034
5733
|
}, {
|
|
4035
5734
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4036
5735
|
})))),
|
|
4037
|
-
((_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$
|
|
5736
|
+
((_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 },
|
|
4038
5737
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4039
5738
|
index.h("strong", null, text.error.generalTitle),
|
|
4040
5739
|
index.h("br", null),
|
|
@@ -4049,49 +5748,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4049
5748
|
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
4050
5749
|
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
4051
5750
|
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)))),
|
|
4052
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
5751
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4053
5752
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
4054
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
4055
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5753
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5754
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4056
5755
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4057
5756
|
index.h("div", null,
|
|
4058
5757
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4059
|
-
index.h("p", { class: sheet$
|
|
4060
|
-
index.h("div", { class: sheet$
|
|
5758
|
+
index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5759
|
+
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4061
5760
|
slots.payoutDetailsCardSlot,
|
|
4062
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
4063
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
4064
|
-
index.h("div", { class: sheet$
|
|
4065
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
4066
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4067
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4068
|
-
index.h("h3", { class: sheet$
|
|
4069
|
-
index.h("p", { class: sheet$
|
|
4070
|
-
index.h("span", { class: sheet$
|
|
4071
|
-
index.h("div", { class: sheet$
|
|
5761
|
+
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5762
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5763
|
+
index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5764
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5765
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5766
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5767
|
+
index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5768
|
+
index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5769
|
+
index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5770
|
+
index.h("div", { class: sheet$5.classes.StatusContainer },
|
|
4072
5771
|
index.h("h3", null, global.intl.formatMessage({
|
|
4073
5772
|
id: "section-subheader",
|
|
4074
5773
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
4075
5774
|
}, {
|
|
4076
5775
|
documentType: states.documentTypeString,
|
|
4077
5776
|
})),
|
|
4078
|
-
index.h("span", { class: sheet$
|
|
4079
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
4080
|
-
index.h("div", { class: sheet$
|
|
4081
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4082
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4083
|
-
index.h("h3", { class: sheet$
|
|
5777
|
+
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5778
|
+
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)))))))),
|
|
5779
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5780
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5781
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5782
|
+
index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4084
5783
|
text.indirectTaxInfoSectionHeader,
|
|
4085
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4086
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
4087
|
-
index.h("div", { class: sheet$
|
|
4088
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
5784
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5785
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5786
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5787
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
4089
5788
|
id: "notRegisteredForTax",
|
|
4090
5789
|
defaultMessage: text.notRegisteredForTax,
|
|
4091
5790
|
}, {
|
|
4092
5791
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4093
5792
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4094
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5793
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4095
5794
|
index.h("span", null, global.intl.formatMessage({
|
|
4096
5795
|
id: `indirectTaxDetails`,
|
|
4097
5796
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4114,7 +5813,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4114
5813
|
}, {
|
|
4115
5814
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4116
5815
|
})))),
|
|
4117
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
5816
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4118
5817
|
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 },
|
|
4119
5818
|
index.h("sqm-invoice-table-download-column", null),
|
|
4120
5819
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4138,12 +5837,12 @@ function getSubRegionName(regionCode) {
|
|
|
4138
5837
|
return "";
|
|
4139
5838
|
// Impact adds an underscore to some regions
|
|
4140
5839
|
const standardCode = regionCode.replace("_", "");
|
|
4141
|
-
const regions = [...
|
|
5840
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4142
5841
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
4143
5842
|
}
|
|
4144
5843
|
function getIndirectTaxType(taxInformation) {
|
|
4145
5844
|
var _a;
|
|
4146
|
-
const regions = [...
|
|
5845
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4147
5846
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
4148
5847
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
4149
5848
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -4154,14 +5853,14 @@ function getIndirectTaxType(taxInformation) {
|
|
|
4154
5853
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
4155
5854
|
return "VAT";
|
|
4156
5855
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
4157
|
-
return
|
|
5856
|
+
return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
4158
5857
|
}
|
|
4159
5858
|
return "Indirect Tax";
|
|
4160
5859
|
}
|
|
4161
5860
|
const useTaxAndCashDashboard = (props) => {
|
|
4162
5861
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4163
|
-
const setStep = index_module.En(
|
|
4164
|
-
const setContext = index_module.En(
|
|
5862
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5863
|
+
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
4165
5864
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
4166
5865
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
4167
5866
|
const locale = index_module.L();
|
|
@@ -4169,8 +5868,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4169
5868
|
// Clear override context once on submitted
|
|
4170
5869
|
setContext({});
|
|
4171
5870
|
}, []);
|
|
4172
|
-
const { data
|
|
4173
|
-
const publisher = (_b = (_a = data
|
|
5871
|
+
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
5872
|
+
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;
|
|
4174
5873
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
4175
5874
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
4176
5875
|
const dateSubmitted = submissionDate
|
|
@@ -4193,8 +5892,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4193
5892
|
});
|
|
4194
5893
|
setStep("/3");
|
|
4195
5894
|
};
|
|
4196
|
-
const provinceName = (_d =
|
|
4197
|
-
const payoutStatus = data
|
|
5895
|
+
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;
|
|
5896
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
4198
5897
|
stencilHooks_module.useEffect(() => {
|
|
4199
5898
|
const cb = () => refetch();
|
|
4200
5899
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
@@ -4207,7 +5906,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4207
5906
|
dateSubmitted,
|
|
4208
5907
|
documentType,
|
|
4209
5908
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
4210
|
-
documentTypeString:
|
|
5909
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
|
|
4211
5910
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
4212
5911
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
4213
5912
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -4545,16 +6244,6 @@ const TaxAndCashDashboard = class {
|
|
|
4545
6244
|
* @uiName Cancel button label
|
|
4546
6245
|
*/
|
|
4547
6246
|
this.cancelButton = "Cancel";
|
|
4548
|
-
/**
|
|
4549
|
-
* @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
|
|
4550
|
-
* @componentState { "title": "Default", "props": { } }
|
|
4551
|
-
* @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
|
|
4552
|
-
* @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
|
|
4553
|
-
* @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
|
|
4554
|
-
* @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
|
|
4555
|
-
* @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
|
|
4556
|
-
*/
|
|
4557
|
-
this.stateController = "{}";
|
|
4558
6247
|
stencilHooks_module.h$1(this);
|
|
4559
6248
|
}
|
|
4560
6249
|
disconnectedCallback() { }
|
|
@@ -4580,8 +6269,6 @@ const TaxAndCashDashboard = class {
|
|
|
4580
6269
|
}
|
|
4581
6270
|
};
|
|
4582
6271
|
function useDemoTaxAndCashDashboard(props) {
|
|
4583
|
-
const states = parseStates.parseStates(props.stateController);
|
|
4584
|
-
console.log({ states });
|
|
4585
6272
|
return cjs.cjs({
|
|
4586
6273
|
states: {
|
|
4587
6274
|
dateSubmitted: "today",
|
|
@@ -4589,23 +6276,16 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4589
6276
|
documentTypeString: "W9",
|
|
4590
6277
|
status: "ACTIVE",
|
|
4591
6278
|
country: "United States",
|
|
4592
|
-
indirectTaxNumber:
|
|
6279
|
+
indirectTaxNumber: 55555555,
|
|
4593
6280
|
indirectTaxType: "Indirect Tax",
|
|
4594
6281
|
noFormNeeded: true,
|
|
4595
6282
|
disabled: false,
|
|
4596
6283
|
loading: false,
|
|
4597
6284
|
showNewFormDialog: false,
|
|
4598
6285
|
hasHold: false,
|
|
6286
|
+
showVerifyIdentity: false,
|
|
4599
6287
|
payoutStatus: "DONE",
|
|
4600
6288
|
veriffLoading: false,
|
|
4601
|
-
canEditPayoutInfo: true,
|
|
4602
|
-
subRegion: "CA",
|
|
4603
|
-
subRegionTaxNumber: undefined,
|
|
4604
|
-
qstNumber: undefined,
|
|
4605
|
-
isBusinessEntity: false,
|
|
4606
|
-
province: undefined,
|
|
4607
|
-
notRegistered: false,
|
|
4608
|
-
loadingError: false,
|
|
4609
6289
|
},
|
|
4610
6290
|
callbacks: {
|
|
4611
6291
|
onClick: () => console.debug("check step"),
|
|
@@ -4615,7 +6295,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4615
6295
|
onVerifyClick: () => console.log("verify"),
|
|
4616
6296
|
},
|
|
4617
6297
|
text: props.getTextProps(),
|
|
4618
|
-
}, props.demoData ||
|
|
6298
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4619
6299
|
}
|
|
4620
6300
|
|
|
4621
6301
|
const PHONE_EXTENSIONS = {
|
|
@@ -5589,7 +7269,7 @@ const PHONE_EXTENSIONS = {
|
|
|
5589
7269
|
},
|
|
5590
7270
|
};
|
|
5591
7271
|
|
|
5592
|
-
const style$
|
|
7272
|
+
const style$7 = {
|
|
5593
7273
|
FormWrapper: {},
|
|
5594
7274
|
ErrorInput: {
|
|
5595
7275
|
"&::part(base)": {
|
|
@@ -5689,9 +7369,9 @@ const style$6 = {
|
|
|
5689
7369
|
},
|
|
5690
7370
|
},
|
|
5691
7371
|
};
|
|
5692
|
-
const sheet$
|
|
5693
|
-
const styleString$
|
|
5694
|
-
const vanillaStyle$
|
|
7372
|
+
const sheet$6 = JSS.createStyleSheet(style$7);
|
|
7373
|
+
const styleString$6 = sheet$6.toString();
|
|
7374
|
+
const vanillaStyle$4 = `
|
|
5695
7375
|
:host{
|
|
5696
7376
|
display: block;
|
|
5697
7377
|
}
|
|
@@ -5868,8 +7548,8 @@ const vanillaStyle$3 = `
|
|
|
5868
7548
|
`;
|
|
5869
7549
|
const UserInfoFormView = (props) => {
|
|
5870
7550
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5871
|
-
const { states, states: { formState }, callbacks, text, refs, data
|
|
5872
|
-
const { classes } = sheet$
|
|
7551
|
+
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7552
|
+
const { classes } = sheet$6;
|
|
5873
7553
|
const bankingCollectionText = global.intl.formatMessage({
|
|
5874
7554
|
id: "bankingCollectionText",
|
|
5875
7555
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5877,7 +7557,7 @@ const UserInfoFormView = (props) => {
|
|
|
5877
7557
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
5878
7558
|
});
|
|
5879
7559
|
let regionLabel = undefined;
|
|
5880
|
-
switch (data
|
|
7560
|
+
switch (data.regionLabelEnum) {
|
|
5881
7561
|
case "STATE":
|
|
5882
7562
|
regionLabel = text.state;
|
|
5883
7563
|
break;
|
|
@@ -5892,10 +7572,10 @@ const UserInfoFormView = (props) => {
|
|
|
5892
7572
|
}
|
|
5893
7573
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5894
7574
|
index.h("style", { type: "text/css" },
|
|
5895
|
-
styleString$
|
|
5896
|
-
vanillaStyle$
|
|
7575
|
+
styleString$6,
|
|
7576
|
+
vanillaStyle$4),
|
|
5897
7577
|
states.loadingError && (index.h("div", null,
|
|
5898
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7578
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
5899
7579
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5900
7580
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5901
7581
|
index.h("br", null),
|
|
@@ -5906,16 +7586,16 @@ const UserInfoFormView = (props) => {
|
|
|
5906
7586
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5907
7587
|
})),
|
|
5908
7588
|
index.h("br", null))),
|
|
5909
|
-
states.loading ? (index.h(
|
|
7589
|
+
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5910
7590
|
index.h("div", { class: classes.TextContainer },
|
|
5911
7591
|
index.h("div", null,
|
|
5912
7592
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
5913
7593
|
id: "formStep",
|
|
5914
7594
|
defaultMessage: text.formStep,
|
|
5915
|
-
}, { step: states.step, count:
|
|
7595
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
5916
7596
|
index.h("h3", null, text.personalInformation),
|
|
5917
7597
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5918
|
-
((_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$
|
|
7598
|
+
((_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 },
|
|
5919
7599
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5920
7600
|
index.h("strong", null, text.error.generalTitle),
|
|
5921
7601
|
index.h("br", null),
|
|
@@ -5925,7 +7605,7 @@ const UserInfoFormView = (props) => {
|
|
|
5925
7605
|
}, {
|
|
5926
7606
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5927
7607
|
}))),
|
|
5928
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
7608
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
5929
7609
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
5930
7610
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
5931
7611
|
index.h("br", null),
|
|
@@ -5939,18 +7619,18 @@ const UserInfoFormView = (props) => {
|
|
|
5939
7619
|
index.h("div", { class: classes.InputContainer },
|
|
5940
7620
|
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) ? {
|
|
5941
7621
|
class: classes.ErrorInput,
|
|
5942
|
-
helpText:
|
|
7622
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5943
7623
|
}
|
|
5944
7624
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
5945
7625
|
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) ? {
|
|
5946
7626
|
class: classes.ErrorInput,
|
|
5947
|
-
helpText:
|
|
7627
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
5948
7628
|
}
|
|
5949
7629
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
5950
7630
|
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 }),
|
|
5951
7631
|
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) ? {
|
|
5952
7632
|
class: classes.ErrorInput,
|
|
5953
|
-
helpText:
|
|
7633
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
5954
7634
|
}
|
|
5955
7635
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
5956
7636
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -5958,8 +7638,8 @@ const UserInfoFormView = (props) => {
|
|
|
5958
7638
|
e.stopPropagation();
|
|
5959
7639
|
}, "onSl-input": (e) => {
|
|
5960
7640
|
callbacks.setCountrySearch(e.target.value);
|
|
5961
|
-
} }), (_e = data
|
|
5962
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data
|
|
7641
|
+
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7642
|
+
_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 :
|
|
5963
7643
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
5964
7644
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
5965
7645
|
index.h("p", null, text.phoneNumber),
|
|
@@ -5973,13 +7653,13 @@ const UserInfoFormView = (props) => {
|
|
|
5973
7653
|
e.stopPropagation();
|
|
5974
7654
|
}, "onSl-input": (e) => {
|
|
5975
7655
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
5976
|
-
} }), (_h = data
|
|
7656
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5977
7657
|
_h.map((c) => {
|
|
5978
7658
|
var _a, _b;
|
|
5979
7659
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
5980
7660
|
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 :
|
|
5981
7661
|
_b.dial_code));
|
|
5982
|
-
}), (_j = data
|
|
7662
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5983
7663
|
_j.map((c) => {
|
|
5984
7664
|
var _a, _b;
|
|
5985
7665
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -5988,42 +7668,42 @@ const UserInfoFormView = (props) => {
|
|
|
5988
7668
|
})),
|
|
5989
7669
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
5990
7670
|
// Naive phone number validation
|
|
5991
|
-
|
|
5992
|
-
|
|
7671
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7672
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
5993
7673
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
5994
7674
|
class: classes.ErrorInput,
|
|
5995
|
-
helpText:
|
|
7675
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
5996
7676
|
}
|
|
5997
7677
|
: {}), { required: true })))),
|
|
5998
7678
|
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 }) =>
|
|
5999
7679
|
// Checks for non-ASCII characters
|
|
6000
|
-
!
|
|
6001
|
-
|
|
7680
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7681
|
+
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
6002
7682
|
class: classes.ErrorInput,
|
|
6003
|
-
helpText:
|
|
7683
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6004
7684
|
}
|
|
6005
7685
|
: {}), { required: true })),
|
|
6006
7686
|
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 }) =>
|
|
6007
7687
|
// Checks for non-ASCII characters
|
|
6008
|
-
!
|
|
6009
|
-
|
|
7688
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7689
|
+
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
6010
7690
|
class: classes.ErrorInput,
|
|
6011
|
-
helpText:
|
|
7691
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6012
7692
|
}
|
|
6013
7693
|
: {}), { required: true })),
|
|
6014
7694
|
!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) ? {
|
|
6015
7695
|
class: classes.ErrorInput,
|
|
6016
|
-
helpText:
|
|
7696
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6017
7697
|
}
|
|
6018
|
-
: {}), { required: true }), (_p = data
|
|
7698
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6019
7699
|
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) ? {
|
|
6020
7700
|
class: classes.ErrorInput,
|
|
6021
|
-
helpText:
|
|
7701
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6022
7702
|
}
|
|
6023
7703
|
: {}), { required: true })),
|
|
6024
7704
|
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) ? {
|
|
6025
7705
|
class: classes.ErrorInput,
|
|
6026
|
-
helpText:
|
|
7706
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6027
7707
|
}
|
|
6028
7708
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6029
7709
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -6031,11 +7711,11 @@ const UserInfoFormView = (props) => {
|
|
|
6031
7711
|
e.stopPropagation();
|
|
6032
7712
|
}, "onSl-input": (e) => {
|
|
6033
7713
|
callbacks.setCurrencySearch(e.target.value);
|
|
6034
|
-
} }), (_s = data
|
|
7714
|
+
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6035
7715
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6036
7716
|
c.currencyCode,
|
|
6037
7717
|
" - ",
|
|
6038
|
-
c.displayName))), (_t = data
|
|
7718
|
+
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6039
7719
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6040
7720
|
c.currencyCode,
|
|
6041
7721
|
" - ",
|
|
@@ -6044,7 +7724,7 @@ const UserInfoFormView = (props) => {
|
|
|
6044
7724
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6045
7725
|
e.target.value = e.target.checked;
|
|
6046
7726
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6047
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
7727
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6048
7728
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6049
7729
|
};
|
|
6050
7730
|
|
|
@@ -6053,12 +7733,12 @@ function useUserInfoForm(props) {
|
|
|
6053
7733
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6054
7734
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6055
7735
|
const formRef = stencilHooks_module.useRef(null);
|
|
6056
|
-
const context = index_module.Fn(
|
|
6057
|
-
const countries = index_module.Fn(
|
|
6058
|
-
const [step, setStep] = index_module.Pn(
|
|
6059
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(
|
|
6060
|
-
const { data
|
|
6061
|
-
const _currencies = index_module.Fn(
|
|
7736
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7737
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7738
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7739
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7740
|
+
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7741
|
+
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
6062
7742
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6063
7743
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6064
7744
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6069,11 +7749,11 @@ function useUserInfoForm(props) {
|
|
|
6069
7749
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
6070
7750
|
stencilHooks_module.useEffect(() => {
|
|
6071
7751
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6072
|
-
const user = data
|
|
7752
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6073
7753
|
if (!user || step !== "/1")
|
|
6074
7754
|
return;
|
|
6075
7755
|
// If form already filled out, skip initialising it
|
|
6076
|
-
if (
|
|
7756
|
+
if (sqmInvoiceTableView.objectIsFull(userFormContext))
|
|
6077
7757
|
return;
|
|
6078
7758
|
// Prefer MI email if it was verified before this
|
|
6079
7759
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -6110,7 +7790,7 @@ function useUserInfoForm(props) {
|
|
|
6110
7790
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6111
7791
|
});
|
|
6112
7792
|
}
|
|
6113
|
-
}, [data
|
|
7793
|
+
}, [data, step, userFormContext]);
|
|
6114
7794
|
const onFormChange = (field, e) => {
|
|
6115
7795
|
var _a, _b;
|
|
6116
7796
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -6202,7 +7882,7 @@ function useUserInfoForm(props) {
|
|
|
6202
7882
|
}
|
|
6203
7883
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
6204
7884
|
const regionObj = hasStates
|
|
6205
|
-
?
|
|
7885
|
+
? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
6206
7886
|
: {};
|
|
6207
7887
|
return {
|
|
6208
7888
|
setStep: setStep,
|
|
@@ -6235,8 +7915,8 @@ function useUserInfoForm(props) {
|
|
|
6235
7915
|
disabled: loading,
|
|
6236
7916
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6237
7917
|
loading: loading,
|
|
6238
|
-
isPartner: !!((_b = (_a = data
|
|
6239
|
-
isUser: !!((_d = (_c = data
|
|
7918
|
+
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),
|
|
7919
|
+
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),
|
|
6240
7920
|
formState: {
|
|
6241
7921
|
...userFormContext,
|
|
6242
7922
|
errors: formErrors,
|
|
@@ -6399,13 +8079,6 @@ const TaxForm = class {
|
|
|
6399
8079
|
* @uiName Support link text
|
|
6400
8080
|
*/
|
|
6401
8081
|
this.supportLink = "support team";
|
|
6402
|
-
/**
|
|
6403
|
-
* @uiName States
|
|
6404
|
-
* @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
|
|
6405
|
-
* @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
|
|
6406
|
-
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
6407
|
-
*/
|
|
6408
|
-
this.stateController = "{}";
|
|
6409
8082
|
stencilHooks_module.h$1(this);
|
|
6410
8083
|
}
|
|
6411
8084
|
disconnectedCallback() { }
|
|
@@ -6426,20 +8099,19 @@ const TaxForm = class {
|
|
|
6426
8099
|
}
|
|
6427
8100
|
render() {
|
|
6428
8101
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6429
|
-
return (index.h(UserInfoFormView, { data: props.data,
|
|
8102
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
6430
8103
|
// @ts-ignore
|
|
6431
8104
|
states: props.states, callbacks: {
|
|
6432
8105
|
...props.callbacks,
|
|
6433
8106
|
onSubmit: props.onSubmit,
|
|
6434
|
-
}, text: props.text, refs: props.refs }));
|
|
8107
|
+
}, text: props.text, refs: props.refs })));
|
|
6435
8108
|
}
|
|
6436
8109
|
};
|
|
6437
8110
|
function useDemoUserInfoForm(props) {
|
|
6438
|
-
const setStep = index_module.En(
|
|
6439
|
-
// @ts-ignore
|
|
8111
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6440
8112
|
return cjs.cjs({
|
|
6441
8113
|
setStep,
|
|
6442
|
-
onSubmit:
|
|
8114
|
+
onSubmit: () => {
|
|
6443
8115
|
setStep("/2");
|
|
6444
8116
|
},
|
|
6445
8117
|
onRadioClick: () => { },
|
|
@@ -6479,16 +8151,23 @@ function useDemoUserInfoForm(props) {
|
|
|
6479
8151
|
},
|
|
6480
8152
|
},
|
|
6481
8153
|
},
|
|
6482
|
-
}, props.demoData ||
|
|
8154
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6483
8155
|
}
|
|
6484
8156
|
|
|
6485
8157
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8158
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
6486
8159
|
exports.sqm_docusign_form = DocusignForm;
|
|
6487
8160
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
6488
8161
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8162
|
+
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
6489
8163
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8164
|
+
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
6490
8165
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8166
|
+
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
6491
8167
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
6492
8168
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8169
|
+
exports.sqm_table_cell = TableCell;
|
|
8170
|
+
exports.sqm_table_row = TableRow;
|
|
8171
|
+
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
6493
8172
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
6494
8173
|
exports.sqm_user_info_form = TaxForm;
|