@saasquatch/mint-components 1.15.0-99 → 1.15.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ErrorView-b2fcf954.js +35 -0
- package/dist/cjs/{GenericTableView-a9845e80.js → GenericTableView-a9f4ba75.js} +8 -8
- package/dist/cjs/{ShadowViewAddon-c06b2910.js → ShadowViewAddon-28865623.js} +1531 -1495
- package/dist/cjs/copy-text-view-c85acaaa.js +96 -0
- package/dist/cjs/{email-registration-view-ace50780.js → email-registration-view-55b378dc.js} +3 -5
- package/dist/cjs/{global-4cd8623e.js → global-e31dc4f5.js} +10494 -10772
- package/dist/cjs/{index-a43a63b4.js → index-a29c60ef.js} +0 -4
- package/dist/cjs/{index.module-4f54e412.js → index.module-ee84433d.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-949beaf2.js → luxon-2926d85f.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-4761d472.js → mixins-f7e0377a.js} +6 -6
- package/dist/cjs/{mockRewardData-df37c8a3.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-d516138a.js → re-render-b324deab.js} +4 -4
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +51 -0
- package/dist/cjs/sqm-asset-card.cjs.entry.js +45 -0
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +2619 -729
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-8a2c8763.js} +3 -3
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +834 -1274
- package/dist/cjs/{sqm-close-button-view-5e85ac51.js → sqm-close-button-view-ea3fa23b.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +28 -152
- package/dist/cjs/sqm-empty_4.cjs.entry.js +63 -58
- package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
- package/dist/cjs/sqm-invoice-table-view-5c74607f.js +2074 -0
- package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +81 -0
- package/dist/cjs/sqm-lead-input-field-view-89308aab.js +51 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +88 -0
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-logout-current-user-view-b61c8bdf.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +45 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +8 -31
- package/dist/cjs/{sqm-navigation-sidebar-view-de90ef03.js → sqm-navigation-sidebar-view-17111896.js} +8 -18
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +9 -25
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -97
- package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
- package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-container-view-07e4343f.js → sqm-portal-container-view-4f15143a.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-5a22b152.js → sqm-portal-email-verification-view-7ebb426a.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-0a8d3243.js → sqm-portal-forgot-password-view-78f19ef9.js} +16 -24
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +10 -39
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-login-view-bb50304c.js → sqm-portal-login-view-761a4d8e.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-4dbfeaeb.js → sqm-portal-profile-view-33164798.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-registration-form-view-5a96c2f5.js → sqm-portal-registration-form-view-637a4bf4.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-25eb2099.js → sqm-portal-reset-password-view-fe602822.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-1c4e781f.js → sqm-portal-verify-email-view-7b678f34.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-0c3b2f48.js → sqm-qr-code-view-15dfc0b6.js} +10 -10
- package/dist/cjs/sqm-qr-code.cjs.entry.js +14 -25
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +49 -134
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +178 -0
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +40 -87
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14117 -15117
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +13 -27
- package/dist/cjs/sqm-text-span-view-0aa82125.js +62 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -19
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +13 -25
- package/dist/cjs/{dom-context-hooks.module-7fa676ae.js → stencil-hooks.module-3a336b0f.js} +18 -18
- package/dist/cjs/{useChildElements-966c9041.js → useChildElements-1b35d945.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-08bcb487.js → useInstantAccessRegistration-0537e28e.js} +4 -4
- package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
- package/dist/cjs/{usePayoutStatus-3b34dab1.js → usePayoutStatus-d459ddde.js} +38 -14
- package/dist/cjs/{usePortalLogin-6aa864ef.js → usePortalLogin-63d896d1.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-75b647fe.js → usePortalRegistrationForm-f25d89e7.js} +6 -6
- package/dist/cjs/{useReferralCodes-11cdf43b.js → useReferralCodes-82e8797b.js} +3 -3
- package/dist/cjs/{useReferralTable-90d4d6e9.js → useReferralTable-7c3f9600.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-bbee6e7b.js → useRegistrationFormState-7b820f0c.js} +6 -6
- package/dist/cjs/{useVerificationEmail-9dd3997a.js → useVerificationEmail-95a82767.js} +6 -6
- package/dist/cjs/{utilities-9a0c5e91.js → utilities-78f5e169.js} +4 -4
- package/dist/cjs/{utils-7cbd60cc.js → utils-6847bc06.js} +0 -5
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +29 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +46 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -0
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -0
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +0 -13
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -15
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +4 -171
- package/dist/collection/components/sqm-big-stat/useBigStat.js +8 -127
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +5 -14
- package/dist/collection/components/sqm-brand/sqm-brand.js +4 -12
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +0 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +0 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -4
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +48 -145
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +65 -3
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +6 -14
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +3 -62
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +16 -8
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +11 -50
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +0 -1
- package/dist/collection/components/sqm-hero/Hero.stories.js +0 -11
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +6 -13
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -30
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +0 -80
- package/dist/collection/components/sqm-image/sqm-image.js +0 -1
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -4
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +3 -6
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +44 -0
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +93 -0
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +62 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +49 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +79 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +234 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +123 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +495 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/useCheckboxField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +155 -0
- package/dist/collection/components/sqm-lead-form/useLeadFormState.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +0 -37
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -60
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +36 -202
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +0 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -28
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -2
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +0 -1
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +7 -17
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +5 -85
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +7 -18
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -233
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +2 -43
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +4 -8
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +8 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +0 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +13 -21
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -103
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +36 -41
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -102
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +1 -4
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +5 -10
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +0 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +0 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +0 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +0 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +0 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -12
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -77
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -1
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +7 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +0 -1
- package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +31 -34
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +10 -81
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -3
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -170
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -6
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -29
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +22 -55
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +7 -62
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -9
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +3 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -5
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +10 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +5 -31
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +42 -39
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +7 -50
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -6
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +4 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -58
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +9 -11
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -5
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +0 -1
- package/dist/collection/components/sqm-router/sqm-router.js +0 -2
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +0 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -3
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -23
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +10 -57
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -170
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -13
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +3 -172
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +9 -21
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -112
- package/dist/collection/components/sqm-stencilbook/Themes.js +33 -325
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +107 -81
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +0 -7
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +2 -16
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -30
- package/dist/collection/components/sqm-task-card/DetailsView.js +2 -8
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +2 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +157 -139
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -147
- package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -10
- package/dist/collection/components/sqm-text/sqm-text.js +48 -101
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +43 -44
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +2 -52
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +1 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -52
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +1 -3
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -12
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +14 -138
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +7 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +8 -45
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +26 -13
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +69 -19
- 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 +5 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +76 -21
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -5
- 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 +71 -54
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +27 -24
- 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/PayoutStatusAlert.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +100 -19
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +154 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +33 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +27 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +281 -63
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +8 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +159 -109
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +213 -110
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +25 -12
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +54 -167
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +7 -3
- package/dist/collection/components/views/copy-text-view.js +38 -69
- package/dist/collection/components/views/email-registration-view.js +1 -3
- package/dist/collection/global/global.js +12 -27
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +99 -330
- package/dist/collection/global/styles.ts +100 -419
- package/dist/collection/stories/PortalTemplates.stories.js +30 -22
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/utils.js +0 -4
- package/dist/esm/ErrorView-48e2b969.js +33 -0
- package/dist/esm/{GenericTableView-e43d310f.js → GenericTableView-7b9087af.js} +8 -8
- package/dist/esm/{ShadowViewAddon-cf7c03a0.js → ShadowViewAddon-f2176779.js} +1525 -1492
- package/dist/esm/copy-text-view-782137ba.js +94 -0
- package/dist/esm/{email-registration-view-1f587f8b.js → email-registration-view-a7818cf2.js} +3 -5
- package/dist/esm/{global-f97ae778.js → global-be1f9992.js} +8276 -8553
- package/dist/esm/{index-b3a06de8.js → index-91e7729f.js} +0 -4
- package/dist/esm/{index.module-38dad6c9.js → index.module-89a79f66.js} +153 -153
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-bbf75a9d.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-f750863a.js → mixins-83f90fa1.js} +6 -6
- package/dist/esm/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-9c90767d.js → re-render-cc945f38.js} +2 -2
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +49 -0
- package/dist/esm/sqm-asset-card.entry.js +41 -0
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +2459 -576
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +3 -3
- package/dist/esm/sqm-big-stat_43.entry.js +742 -1182
- package/dist/esm/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +21 -145
- package/dist/esm/sqm-empty_4.entry.js +60 -55
- package/dist/esm/sqm-form-message.entry.js +7 -7
- 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 +8 -8
- package/dist/esm/sqm-invoice-table-view-3491dd80.js +2058 -0
- package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
- package/dist/esm/sqm-lead-checkbox-field.entry.js +77 -0
- package/dist/esm/sqm-lead-input-field-view-4ede5d7f.js +49 -0
- package/dist/esm/sqm-lead-input-field.entry.js +84 -0
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
- package/dist/esm/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +43 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -30
- package/dist/esm/{sqm-navigation-sidebar-view-0a2ec560.js → sqm-navigation-sidebar-view-9d802b78.js} +8 -18
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -22
- package/dist/esm/sqm-pagination_3.entry.js +64 -91
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-1683ae32.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-0e795cdd.js → sqm-portal-forgot-password-view-3d3182f1.js} +16 -24
- package/dist/esm/sqm-portal-forgot-password.entry.js +7 -36
- package/dist/esm/sqm-portal-google-login.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
- package/dist/esm/{sqm-portal-login-view-7670cd86.js → sqm-portal-login-view-7e49609a.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +8 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-97124a66.js → sqm-qr-code-view-f1d0763b.js} +9 -9
- package/dist/esm/sqm-qr-code.entry.js +8 -19
- package/dist/esm/sqm-referral-table_11.entry.js +38 -123
- package/dist/esm/sqm-referred-registration.entry.js +174 -0
- 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 +28 -75
- 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 +14111 -15111
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +10 -24
- package/dist/esm/sqm-text-span-view-ca32495e.js +60 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +6 -14
- package/dist/esm/sqm-widget-verification.entry.js +10 -22
- package/dist/esm/{dom-context-hooks.module-63370afd.js → stencil-hooks.module-4bc38af4.js} +13 -13
- package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-7945ae56.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dc4ad9f2.js} +3 -3
- package/dist/esm/useLeadFormState-9016d812.js +68 -0
- package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-4a7625b9.js} +35 -11
- package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-ef647a50.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-4b35a357.js} +3 -3
- package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-8f75921a.js} +2 -2
- package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-b3876ed6.js} +5 -5
- package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-d6f33135.js} +2 -2
- package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-edc318cb.js} +2 -2
- package/dist/esm/{utilities-ad9c2893.js → utilities-5b0ca040.js} +2 -2
- package/dist/esm/{utils-03188de2.js → utils-334c1e34.js} +1 -5
- package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
- package/dist/esm-es5/GenericTableView-7b9087af.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
- package/dist/esm-es5/copy-text-view-782137ba.js +1 -0
- package/dist/esm-es5/email-registration-view-a7818cf2.js +1 -0
- package/dist/esm-es5/{global-f97ae778.js → global-be1f9992.js} +5 -5
- package/dist/esm-es5/{index-b3a06de8.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-89a79f66.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-8d51c92b.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-83f90fa1.js +1 -0
- package/dist/esm-es5/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-cc945f38.js +1 -0
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.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-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +1 -0
- 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-176e92e3.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +1 -0
- 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 -0
- 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-ca32495e.js +1 -0
- 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 +53 -0
- package/dist/esm-es5/useChildElements-7945ae56.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +1 -0
- package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
- package/dist/esm-es5/usePayoutStatus-4a7625b9.js +6 -0
- package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +1 -0
- package/dist/esm-es5/useReferralCodes-8f75921a.js +1 -0
- package/dist/esm-es5/useReferralTable-b3876ed6.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +1 -0
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
- package/dist/esm-es5/utilities-5b0ca040.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/mint-components/global/styles.ts +100 -419
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00df0cac.js +1 -0
- package/dist/mint-components/p-00ed4c2e.entry.js +1 -0
- package/dist/mint-components/p-01dd541f.system.js +1 -0
- package/dist/mint-components/p-0309fdfa.entry.js +1 -0
- package/dist/mint-components/p-04a6e457.entry.js +1 -0
- package/dist/mint-components/{p-f307b716.js → p-05f29f64.js} +1 -1
- package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
- package/dist/mint-components/{p-bb12b845.system.js → p-0d182dc1.system.js} +1 -1
- package/dist/mint-components/{p-8dc1cd0f.entry.js → p-0d2d0b6d.entry.js} +1 -1
- package/dist/mint-components/p-0d939b73.system.js +1 -0
- package/dist/mint-components/p-0ebab63e.system.js +1 -0
- package/dist/mint-components/{p-e0f9a395.entry.js → p-10d17989.entry.js} +1 -1
- package/dist/mint-components/{p-a6f4fb03.system.js → p-127e66c2.system.js} +1 -1
- package/dist/mint-components/p-12bba567.entry.js +1 -0
- package/dist/mint-components/{p-3dc34570.system.js → p-13ed8586.system.js} +1 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +1 -0
- package/dist/mint-components/p-14a65f29.system.js +1 -0
- package/dist/mint-components/p-1513309d.entry.js +1 -0
- package/dist/mint-components/{p-0cba75e6.system.entry.js → p-164a9103.system.entry.js} +1 -1
- package/dist/mint-components/{p-910f56ca.system.entry.js → p-18425f38.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb2976fc.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/p-19ccb4ce.js +1 -0
- package/dist/mint-components/{p-b9bccc55.entry.js → p-1a6b7d2a.entry.js} +1 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +1 -0
- package/dist/mint-components/p-1d704c40.system.js +1 -0
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +1 -0
- package/dist/mint-components/p-21620f81.system.entry.js +1 -0
- package/dist/mint-components/p-229f797b.js +1 -0
- package/dist/mint-components/p-24db5c70.js +1 -0
- package/dist/mint-components/p-25ae959c.system.entry.js +1 -0
- package/dist/mint-components/{p-00791abc.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-267c8f8c.entry.js +144 -0
- package/dist/mint-components/p-275b4767.entry.js +1 -0
- package/dist/mint-components/{p-0b0f49ad.entry.js → p-284e4ed5.entry.js} +1 -1
- package/dist/mint-components/{p-711bc624.entry.js → p-2ae0e06a.entry.js} +1 -1
- package/dist/mint-components/p-2bbff88f.entry.js +1 -0
- package/dist/mint-components/{p-91014439.system.js → p-2d52e2d7.system.js} +1 -1
- package/dist/mint-components/p-2da21ba4.entry.js +1 -0
- package/dist/mint-components/p-2dca9e1a.system.js +1 -0
- package/dist/mint-components/{p-d5f1df29.entry.js → p-2f101bae.entry.js} +1 -1
- package/dist/mint-components/{p-485e2d9f.system.entry.js → p-301ddcaa.system.entry.js} +1 -1
- package/dist/mint-components/p-31015791.js +1 -0
- package/dist/mint-components/p-33c96e14.entry.js +16 -0
- package/dist/mint-components/{p-a45680fe.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -0
- package/dist/mint-components/p-37a4452c.system.entry.js +1 -0
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/p-38e5c429.system.js +1 -0
- package/dist/mint-components/p-38fc919b.entry.js +1 -0
- package/dist/mint-components/p-3a62a7e2.system.js +1 -0
- package/dist/mint-components/{p-0e59a91e.js → p-3b2f1211.js} +8 -2
- package/dist/mint-components/p-3b90e01b.system.js +1 -0
- package/dist/mint-components/p-3db34d68.js +1 -0
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/{p-862845d7.js → p-3f7b81b8.js} +2 -2
- package/dist/mint-components/p-420554af.system.entry.js +1 -0
- package/dist/mint-components/p-42187319.system.entry.js +1 -0
- package/dist/mint-components/p-4428294b.entry.js +1 -0
- package/dist/mint-components/{p-c3884e55.entry.js → p-44891949.entry.js} +1 -1
- package/dist/mint-components/p-457fb652.entry.js +211 -0
- package/dist/mint-components/p-4794641c.system.js +1 -0
- package/dist/mint-components/p-48135f99.system.js +53 -0
- package/dist/mint-components/p-48c69c2d.entry.js +1 -0
- package/dist/mint-components/p-492b70db.system.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/{p-4204a6e3.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-fb5be0c5.js → p-4e451f75.js} +1 -1
- package/dist/mint-components/{p-5ed49bf2.js → p-4e526a94.js} +1 -1
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-3d05ebb1.system.entry.js → p-50c902ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-82505f6e.system.js → p-527216de.system.js} +1 -1
- package/dist/mint-components/{p-9fb8b33a.system.js → p-5488fdd9.system.js} +1 -1
- package/dist/mint-components/p-5868dc11.entry.js +9 -0
- package/dist/mint-components/{p-578a27c8.system.js → p-59274a91.system.js} +1 -1
- package/dist/mint-components/{p-08700497.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-ebb487d0.system.entry.js → p-5c28406d.system.entry.js} +1 -1
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +1 -0
- package/dist/mint-components/p-6055eb4c.system.js +1 -0
- package/dist/mint-components/p-6122bf99.system.entry.js +1 -0
- package/dist/mint-components/p-626e9e84.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/p-635d5ef2.system.js +1 -0
- package/dist/mint-components/{p-750e7b01.js → p-63a75798.js} +1 -1
- package/dist/mint-components/p-6427e963.entry.js +1 -0
- package/dist/mint-components/p-65069b66.js +1248 -0
- package/dist/mint-components/p-653f963f.entry.js +13 -0
- package/dist/mint-components/p-65ba9e94.entry.js +1 -0
- package/dist/mint-components/{p-42b62299.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/p-6b7a595f.system.js +1 -0
- package/dist/mint-components/p-6ba44ca9.js +1 -0
- package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
- package/dist/mint-components/{p-4d19270b.js → p-6d2f5a1d.js} +2 -2
- package/dist/mint-components/{p-7159c51c.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
- package/dist/mint-components/p-775f3ded.entry.js +1 -0
- package/dist/mint-components/p-7846937e.entry.js +13 -0
- package/dist/mint-components/{p-3eba9036.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +1 -0
- package/dist/mint-components/{p-15012f59.system.js → p-7c2b9fe4.system.js} +1 -1
- package/dist/mint-components/{p-eea87fdc.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-94f9fbf7.entry.js → p-7f80a9d7.entry.js} +1 -1
- package/dist/mint-components/{p-a148663a.system.js → p-8175e85f.system.js} +1 -1
- package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
- package/dist/mint-components/p-837a0fdd.js +1 -0
- package/dist/mint-components/p-85671c3d.system.entry.js +1 -0
- package/dist/mint-components/p-8abfeff8.entry.js +1 -0
- package/dist/mint-components/p-8b584c46.system.entry.js +1 -0
- package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
- package/dist/mint-components/p-8c23d1b8.js +1 -0
- package/dist/mint-components/p-8d9d04b7.system.entry.js +1 -0
- package/dist/mint-components/{p-258f4e5e.system.entry.js → p-90fc6774.system.entry.js} +1 -1
- package/dist/mint-components/p-91521e9d.js +1 -0
- package/dist/mint-components/{p-ddf3c05e.js → p-91959fbe.js} +1 -1
- package/dist/mint-components/{p-68043f30.js → p-91ab3da1.js} +1 -1
- package/dist/mint-components/p-92816d1f.js +1 -0
- package/dist/mint-components/{p-da6fe95f.system.entry.js → p-9386ad84.system.entry.js} +1 -1
- package/dist/mint-components/{p-460155de.js → p-938f64d9.js} +1 -1
- package/dist/mint-components/p-94a876b9.js +1 -0
- package/dist/mint-components/p-95b88eb6.system.js +1 -0
- package/dist/mint-components/{p-c3dce602.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-97d4d651.system.js +1 -0
- package/dist/mint-components/p-98698131.js +1 -0
- package/dist/mint-components/p-986d4c17.system.entry.js +1 -0
- package/dist/mint-components/{p-64997b59.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/p-9acb5038.js +1 -0
- package/dist/mint-components/{p-002e6205.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3da317b.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
- package/dist/mint-components/{p-6951663b.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-fa6fba34.system.js → p-9f22f58a.system.js} +2 -2
- package/dist/mint-components/{p-22c11f0e.entry.js → p-a2fde301.entry.js} +1 -1
- package/dist/mint-components/{p-d399162b.system.js → p-a71b9154.system.js} +1 -1
- package/dist/mint-components/{p-9580aac3.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/p-aad32fb6.system.js +1 -0
- package/dist/mint-components/{p-8e28333b.system.js → p-ae1ea5ac.system.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-e55f3eb6.system.entry.js → p-b287833c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6578ea31.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-7059ee40.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +1 -0
- package/dist/mint-components/p-b965147c.system.entry.js +1 -0
- package/dist/mint-components/{p-6ef73224.js → p-bbcd824a.js} +1 -1
- package/dist/mint-components/{p-f1f20fdf.system.js → p-bdb7d451.system.js} +22 -22
- package/dist/mint-components/p-bfc7cfc0.system.js +1 -0
- package/dist/mint-components/p-c060f770.system.entry.js +1 -0
- package/dist/mint-components/{p-3787a4d6.js → p-c0f19490.js} +1 -1
- package/dist/mint-components/p-c1b074b6.js +394 -0
- package/dist/mint-components/{p-dbe29e53.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
- package/dist/mint-components/p-c9b08184.entry.js +17 -0
- package/dist/mint-components/p-c9f1dde7.js +1 -0
- package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
- package/dist/mint-components/p-cbbfac66.entry.js +25 -0
- package/dist/mint-components/p-cd1d497f.system.js +1 -0
- package/dist/mint-components/{p-a392912a.system.js → p-cd569259.system.js} +1 -1
- package/dist/mint-components/p-cd651f81.js +42 -0
- package/dist/mint-components/{p-9aadc253.entry.js → p-d07f3090.entry.js} +1 -1
- package/dist/mint-components/{p-b22b7891.js → p-d6831af5.js} +1 -1
- package/dist/mint-components/p-d78e7323.entry.js +273 -0
- package/dist/mint-components/{p-e27ff213.entry.js → p-da7708a7.entry.js} +1 -1
- package/dist/mint-components/{p-1c1f4ce7.system.js → p-dbc0e4f8.system.js} +1 -1
- package/dist/mint-components/p-dbcb5359.js +1 -0
- package/dist/mint-components/p-dcc81e90.entry.js +1 -0
- package/dist/mint-components/p-e07bc6c4.system.js +1 -0
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +1 -0
- package/dist/mint-components/{p-b6911812.system.js → p-e5d0375e.system.js} +1 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +1 -0
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/mint-components/{p-5e0af707.entry.js → p-e8ffcc68.entry.js} +2 -2
- package/dist/mint-components/{p-a2533860.system.entry.js → p-f0772618.system.entry.js} +1 -1
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/p-f2d8d3d3.system.entry.js +1 -0
- package/dist/mint-components/{p-4271f436.system.entry.js → p-f4a72903.system.entry.js} +1 -1
- package/dist/mint-components/{p-22d20816.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
- package/dist/mint-components/p-f56bedd5.js +1 -0
- package/dist/mint-components/p-f708da7b.js +1 -0
- package/dist/mint-components/p-f7c99803.system.js +1 -0
- package/dist/mint-components/{p-07dc6d68.js → p-f940190a.js} +1 -1
- package/dist/mint-components/p-f98a4354.js +1 -0
- package/dist/mint-components/{p-7af4fba0.system.entry.js → p-fa37513e.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7ee19dc.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/p-ff8b8067.entry.js +33 -0
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +7 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -0
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +0 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -47
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +16 -43
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +3 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -4
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +0 -15
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +0 -1
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -6
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +0 -20
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -2
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -3
- package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +17 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +49 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +36 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +93 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +51 -0
- package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +19 -0
- package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -6
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +11 -53
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -6
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +0 -1
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +0 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +0 -16
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +0 -8
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +0 -57
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +2 -9
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +0 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -5
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -15
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +0 -3
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +0 -19
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +1 -2
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -1
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +0 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +0 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +0 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +0 -2
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +0 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -20
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +0 -1
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +0 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -5
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -25
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -43
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -4
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -2
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +437 -457
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -10
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +3 -4
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -3
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +0 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +0 -2
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -1
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +6 -19
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +0 -43
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -44
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -3
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +0 -25
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +0 -10
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +0 -6
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -5
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -33
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -9
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -13
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +2 -4
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -14
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +0 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +0 -2
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -14
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +1 -3
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +0 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +2 -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/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +8 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +51 -9
- 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 +10 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -17
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +0 -5
- package/dist/types/components.d.ts +729 -1243
- package/dist/types/global/global.d.ts +2 -2
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +2 -10
- package/dist/types/saasquatch.d.ts +7 -143
- package/dist/types/utils/utils.d.ts +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -3
- package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +0 -646
- package/dist/cjs/copy-text-view-97ae8a48.js +0 -127
- package/dist/cjs/data-d4339c2e.js +0 -137
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -352
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +0 -56
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1254
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +0 -63
- package/dist/cjs/utils-aacb4233.js +0 -105
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +0 -198
- package/dist/collection/components/sqm-text/Text.stories.js +0 -12
- package/dist/collection/insertfont.js +0 -18
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +0 -639
- package/dist/esm/copy-text-view-ab2fda20.js +0 -125
- package/dist/esm/data-ee3ae298.js +0 -121
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-code-verification.entry.js +0 -348
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +0 -54
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1250
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +0 -61
- package/dist/esm/utils-e1cdc479.js +0 -97
- package/dist/esm-es5/GenericTableView-e43d310f.js +0 -1
- package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-cf7c03a0.js +0 -1
- package/dist/esm-es5/copy-text-view-ab2fda20.js +0 -1
- package/dist/esm-es5/data-ee3ae298.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +0 -53
- package/dist/esm-es5/email-registration-view-1f587f8b.js +0 -1
- package/dist/esm-es5/index.module-38dad6c9.js +0 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +0 -1
- package/dist/esm-es5/mixins-f750863a.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-9c90767d.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-leaderboard-rank-view-18baae5b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +0 -1
- package/dist/esm-es5/useChildElements-4e70ac0e.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +0 -1
- package/dist/esm-es5/usePayoutStatus-7eeec61b.js +0 -6
- package/dist/esm-es5/usePortalLogin-d0720c81.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +0 -1
- package/dist/esm-es5/useReferralCodes-311e6d72.js +0 -1
- package/dist/esm-es5/useReferralTable-65a01a6a.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-f9413de9.js +0 -1
- package/dist/esm-es5/utilities-ad9c2893.js +0 -1
- package/dist/esm-es5/utils-03188de2.js +0 -1
- package/dist/esm-es5/utils-e1cdc479.js +0 -1
- package/dist/mint-components/p-000c91b1.js +0 -1
- package/dist/mint-components/p-0935f9b7.system.js +0 -1
- package/dist/mint-components/p-0bb21f5b.system.entry.js +0 -1
- package/dist/mint-components/p-0e532b53.entry.js +0 -1
- package/dist/mint-components/p-0ea61502.system.js +0 -1
- package/dist/mint-components/p-100c878b.system.entry.js +0 -1
- package/dist/mint-components/p-11500698.entry.js +0 -25
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-1337f47c.entry.js +0 -1
- package/dist/mint-components/p-1363c4ab.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-14128c84.system.entry.js +0 -1
- package/dist/mint-components/p-14959d73.system.entry.js +0 -1
- package/dist/mint-components/p-15bfd7e2.system.js +0 -1
- package/dist/mint-components/p-1a278658.entry.js +0 -1
- package/dist/mint-components/p-1c727332.entry.js +0 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
- package/dist/mint-components/p-1ee5070b.system.entry.js +0 -1
- package/dist/mint-components/p-204861a6.js +0 -1
- package/dist/mint-components/p-209ea185.js +0 -1
- package/dist/mint-components/p-21e3cac4.js +0 -1
- package/dist/mint-components/p-2403c6e1.system.js +0 -1
- package/dist/mint-components/p-240bec23.js +0 -1
- package/dist/mint-components/p-274ea2c4.entry.js +0 -9
- package/dist/mint-components/p-2f2bff39.entry.js +0 -1
- package/dist/mint-components/p-3285a6b3.system.entry.js +0 -1
- package/dist/mint-components/p-3836d1e2.entry.js +0 -1
- package/dist/mint-components/p-38a03a10.system.js +0 -1
- package/dist/mint-components/p-3cb249c3.js +0 -1
- package/dist/mint-components/p-3d1b91a1.system.entry.js +0 -1
- package/dist/mint-components/p-3d99fa43.entry.js +0 -1
- package/dist/mint-components/p-3ea3f5e3.system.entry.js +0 -1
- package/dist/mint-components/p-40c01a5a.system.js +0 -1
- package/dist/mint-components/p-42da8239.system.js +0 -1
- package/dist/mint-components/p-49b20dae.js +0 -1
- package/dist/mint-components/p-4f5329a2.system.js +0 -53
- package/dist/mint-components/p-51b8979d.js +0 -448
- package/dist/mint-components/p-57970440.js +0 -1233
- package/dist/mint-components/p-587115cb.system.entry.js +0 -1
- package/dist/mint-components/p-59b028db.system.js +0 -1
- package/dist/mint-components/p-5aca73f7.entry.js +0 -13
- package/dist/mint-components/p-5ff2da11.js +0 -1
- package/dist/mint-components/p-63e29387.js +0 -42
- package/dist/mint-components/p-66c14cb2.system.entry.js +0 -1
- package/dist/mint-components/p-672d144e.entry.js +0 -1
- package/dist/mint-components/p-67ad2252.system.js +0 -1
- package/dist/mint-components/p-6906ef5d.system.entry.js +0 -1
- package/dist/mint-components/p-692bacf3.js +0 -1
- package/dist/mint-components/p-6ad674c2.js +0 -103
- package/dist/mint-components/p-6b076bae.system.entry.js +0 -1
- package/dist/mint-components/p-6d290019.js +0 -1
- package/dist/mint-components/p-6e069052.entry.js +0 -1
- package/dist/mint-components/p-71271fbd.system.js +0 -1
- package/dist/mint-components/p-75584f9e.entry.js +0 -11
- package/dist/mint-components/p-77d2244b.system.js +0 -1
- package/dist/mint-components/p-7970e73a.js +0 -1
- package/dist/mint-components/p-797fd8d9.system.js +0 -1
- package/dist/mint-components/p-7b8d29bb.entry.js +0 -1
- package/dist/mint-components/p-7c17e06f.system.entry.js +0 -1
- package/dist/mint-components/p-7e13424d.system.js +0 -1
- package/dist/mint-components/p-88b63a7c.entry.js +0 -93
- package/dist/mint-components/p-8a6494c7.system.js +0 -1
- package/dist/mint-components/p-8caef004.js +0 -1
- package/dist/mint-components/p-8e2bead4.js +0 -1
- package/dist/mint-components/p-901cb538.system.entry.js +0 -1
- package/dist/mint-components/p-9049b387.entry.js +0 -1
- package/dist/mint-components/p-916100a9.js +0 -1
- package/dist/mint-components/p-926f17f9.system.js +0 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
- package/dist/mint-components/p-9e297104.entry.js +0 -1
- package/dist/mint-components/p-9f3e7e48.entry.js +0 -13
- package/dist/mint-components/p-9f82e69d.entry.js +0 -1
- package/dist/mint-components/p-a5c9ce6c.entry.js +0 -1
- package/dist/mint-components/p-abd33116.system.entry.js +0 -1
- package/dist/mint-components/p-b065215a.entry.js +0 -1
- package/dist/mint-components/p-b1a2a83b.entry.js +0 -144
- package/dist/mint-components/p-ba4a5fed.entry.js +0 -258
- package/dist/mint-components/p-bab57520.system.entry.js +0 -1
- package/dist/mint-components/p-bad50dc1.entry.js +0 -1
- package/dist/mint-components/p-bb627d95.entry.js +0 -17
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-c0d48b64.system.entry.js +0 -1
- package/dist/mint-components/p-c4886223.entry.js +0 -1
- package/dist/mint-components/p-c726f778.system.entry.js +0 -1
- package/dist/mint-components/p-c7965639.entry.js +0 -1
- package/dist/mint-components/p-c79bb1c6.entry.js +0 -16
- package/dist/mint-components/p-c7c11325.js +0 -1
- package/dist/mint-components/p-cab1f502.js +0 -1
- package/dist/mint-components/p-d785a297.system.entry.js +0 -1
- package/dist/mint-components/p-d821418e.system.js +0 -1
- package/dist/mint-components/p-d8c5b80a.system.js +0 -1
- package/dist/mint-components/p-da3ffd4e.system.entry.js +0 -1
- package/dist/mint-components/p-e539fed3.entry.js +0 -1
- package/dist/mint-components/p-e57d61af.system.js +0 -1
- package/dist/mint-components/p-eaeddfe2.system.js +0 -1
- package/dist/mint-components/p-ecc5faba.entry.js +0 -33
- package/dist/mint-components/p-f0e0d0b9.system.entry.js +0 -1
- package/dist/mint-components/p-f0ebccea.system.entry.js +0 -1
- package/dist/mint-components/p-f1dc581f.js +0 -1
- package/dist/mint-components/p-f6baa0c9.system.js +0 -1
- package/dist/mint-components/p-f9c7248e.js +0 -1
- package/dist/mint-components/p-fb77f662.entry.js +0 -1
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +0 -9
- package/dist/types/components/sqm-text/Text.stories.d.ts +0 -6
- package/dist/types/insertfont.d.ts +0 -1
- package/dist/types/utils/parseStates.d.ts +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
|
@@ -1,22 +1,142 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as Host, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn } from './index.module-
|
|
1
|
+
import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-be1f9992.js';
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn, M as Mn, I as In, S as Sn, w as wn } from './index.module-89a79f66.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as getProps,
|
|
7
|
+
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './mixins-
|
|
10
|
-
import { G as GenericTableView } from './GenericTableView-
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
13
|
-
import { l as luxon } from './luxon-
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
9
|
+
import { E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
10
|
+
import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
13
|
+
import { l as luxon } from './luxon-8d51c92b.js';
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
16
|
+
import { E as ErrorView } from './ErrorView-48e2b969.js';
|
|
17
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-3491dd80.js';
|
|
18
|
+
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
|
+
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-4a7625b9.js';
|
|
21
|
+
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
22
|
+
|
|
23
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
24
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
25
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
26
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
27
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
28
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
29
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
30
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
31
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
32
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
33
|
+
const GET_USER = dist.gql `
|
|
34
|
+
query getUserTaxInfo {
|
|
35
|
+
user: viewer {
|
|
36
|
+
... on User {
|
|
37
|
+
id
|
|
38
|
+
firstName
|
|
39
|
+
lastName
|
|
40
|
+
email
|
|
41
|
+
countryCode
|
|
42
|
+
customFields
|
|
43
|
+
managedIdentity {
|
|
44
|
+
uid
|
|
45
|
+
email
|
|
46
|
+
emailVerified
|
|
47
|
+
}
|
|
48
|
+
impactConnection {
|
|
49
|
+
connected
|
|
50
|
+
user {
|
|
51
|
+
firstName
|
|
52
|
+
lastName
|
|
53
|
+
}
|
|
54
|
+
publisher {
|
|
55
|
+
id
|
|
56
|
+
brandedSignup
|
|
57
|
+
countryCode
|
|
58
|
+
currency
|
|
59
|
+
billingAddress
|
|
60
|
+
billingCity
|
|
61
|
+
billingState
|
|
62
|
+
billingCountryCode
|
|
63
|
+
billingPostalCode
|
|
64
|
+
phoneNumberCountryCode
|
|
65
|
+
phoneNumber
|
|
66
|
+
taxInformation {
|
|
67
|
+
indirectTaxId
|
|
68
|
+
indirectTaxCountryCode
|
|
69
|
+
indirectTaxRegion
|
|
70
|
+
additionalTaxId
|
|
71
|
+
withholdingTaxId
|
|
72
|
+
withholdingTaxCountryCode
|
|
73
|
+
}
|
|
74
|
+
requiredTaxDocumentType
|
|
75
|
+
currentTaxDocument {
|
|
76
|
+
status
|
|
77
|
+
type
|
|
78
|
+
dateCreated
|
|
79
|
+
}
|
|
80
|
+
withdrawalSettings {
|
|
81
|
+
paymentMethod
|
|
82
|
+
paypalEmailAddress
|
|
83
|
+
bankCountry
|
|
84
|
+
bankAccountNumber
|
|
85
|
+
paymentSchedulingType
|
|
86
|
+
paymentThreshold
|
|
87
|
+
paymentDay
|
|
88
|
+
}
|
|
89
|
+
payoutsAccount {
|
|
90
|
+
hold
|
|
91
|
+
holdReasons
|
|
92
|
+
balance
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
const GET_COUNTRIES = dist.gql `
|
|
101
|
+
query getCountries {
|
|
102
|
+
impactPayoutCountries(limit: 1000) {
|
|
103
|
+
data {
|
|
104
|
+
countryCode
|
|
105
|
+
displayName
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
const GET_CURRENCIES = dist.gql `
|
|
111
|
+
query currencies($locale: RSLocale) {
|
|
112
|
+
currencies(limit: 300) {
|
|
113
|
+
data {
|
|
114
|
+
displayName(locale: $locale)
|
|
115
|
+
currencyCode
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
121
|
+
query impactFinanceNetworkSettings(
|
|
122
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
123
|
+
) {
|
|
124
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
125
|
+
data {
|
|
126
|
+
countryCode
|
|
127
|
+
currency
|
|
128
|
+
defaultFinancePaymentMethodId
|
|
129
|
+
thresholdOptions
|
|
130
|
+
withdrawalSettingId
|
|
131
|
+
internationalEftFee
|
|
132
|
+
foreignFxFee
|
|
133
|
+
defaultFxFee
|
|
134
|
+
}
|
|
135
|
+
totalCount
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
139
|
+
const FORM_STEPS = 4;
|
|
20
140
|
|
|
21
141
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
22
142
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
@@ -560,20 +680,45 @@ const style = {
|
|
|
560
680
|
gap: "8px",
|
|
561
681
|
},
|
|
562
682
|
ErrorText: {
|
|
563
|
-
color: "var(--
|
|
683
|
+
color: "var(--sl-color-danger-500)",
|
|
564
684
|
marginTop: "10px",
|
|
565
685
|
},
|
|
566
686
|
PageDescriptionText: {
|
|
567
|
-
color: "var(--
|
|
687
|
+
color: "var(--sl-color-neutral-500)",
|
|
568
688
|
fontSize: "var(--sl-font-size-medium)",
|
|
569
689
|
},
|
|
570
690
|
DescriptionText: {
|
|
571
|
-
color: "var(--
|
|
691
|
+
color: "var(--sl-color-neutral-500)",
|
|
692
|
+
},
|
|
693
|
+
SecondaryBtn: {
|
|
694
|
+
"&::part(base)": {
|
|
695
|
+
color: "var(--sl-color-gray-800) !important",
|
|
696
|
+
},
|
|
697
|
+
},
|
|
698
|
+
AlertContainer: {
|
|
699
|
+
"&::part(base)": {
|
|
700
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
701
|
+
borderTop: "none",
|
|
702
|
+
padding: "0 16px",
|
|
703
|
+
},
|
|
704
|
+
"& sl-icon::part(base)": {
|
|
705
|
+
color: "var(--sl-color-danger-500)",
|
|
706
|
+
},
|
|
572
707
|
},
|
|
573
708
|
RadioContainer: {
|
|
574
709
|
display: "flex",
|
|
575
710
|
flexDirection: "column",
|
|
576
711
|
},
|
|
712
|
+
PartnerAlertContainer: {
|
|
713
|
+
"&::part(base)": {
|
|
714
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
715
|
+
borderTop: "none",
|
|
716
|
+
padding: "0 16px",
|
|
717
|
+
},
|
|
718
|
+
"& sl-icon::part(base)": {
|
|
719
|
+
color: "var(--sl-color-blue-500)",
|
|
720
|
+
},
|
|
721
|
+
},
|
|
577
722
|
Checkbox: {
|
|
578
723
|
"&::part(control)": {
|
|
579
724
|
borderRadius: "50% !important",
|
|
@@ -585,8 +730,8 @@ const style = {
|
|
|
585
730
|
InputContainer: {
|
|
586
731
|
padding: "16px",
|
|
587
732
|
margin: "16px 0px 16px 0px",
|
|
588
|
-
borderTop: "
|
|
589
|
-
borderBottom: "
|
|
733
|
+
borderTop: "1px solid var(--sl-color-gray-300)",
|
|
734
|
+
borderBottom: "1px solid var(--sl-color-gray-300)",
|
|
590
735
|
display: "flex",
|
|
591
736
|
flexDirection: "column",
|
|
592
737
|
width: "100%",
|
|
@@ -608,20 +753,37 @@ const style = {
|
|
|
608
753
|
width: "16px",
|
|
609
754
|
height: "16px",
|
|
610
755
|
borderRadius: "50%",
|
|
611
|
-
background: "var(--
|
|
756
|
+
background: "var(--sl-color-gray-200)",
|
|
612
757
|
},
|
|
613
758
|
SmallSkeleton: {
|
|
614
759
|
width: "100px",
|
|
615
760
|
height: "16px",
|
|
616
761
|
borderRadius: "50px",
|
|
617
|
-
background: "var(--
|
|
762
|
+
background: "var(--sl-color-gray-200)",
|
|
618
763
|
},
|
|
619
764
|
LargeSkeleton: {
|
|
620
765
|
width: "100%",
|
|
621
766
|
maxWidth: "320px",
|
|
622
767
|
height: "40px",
|
|
623
768
|
borderRadius: "50px",
|
|
624
|
-
background: "var(--
|
|
769
|
+
background: "var(--sl-color-gray-200)",
|
|
770
|
+
},
|
|
771
|
+
InfoAlert: {
|
|
772
|
+
"&::part(base)": {
|
|
773
|
+
backgroundColor: "transparent",
|
|
774
|
+
borderTop: "none",
|
|
775
|
+
border: "none",
|
|
776
|
+
},
|
|
777
|
+
"&::part(message)": {
|
|
778
|
+
display: "flex",
|
|
779
|
+
alignItems: "center",
|
|
780
|
+
justifyContent: "flex-start",
|
|
781
|
+
padding: "10px",
|
|
782
|
+
height: "max-content",
|
|
783
|
+
},
|
|
784
|
+
"& sl-icon::part(base)": {
|
|
785
|
+
color: "var(--sl-color-yellow-500)",
|
|
786
|
+
},
|
|
625
787
|
},
|
|
626
788
|
InfoWarningIcon: {
|
|
627
789
|
height: "26px",
|
|
@@ -667,16 +829,20 @@ const vanillaStyle = `
|
|
|
667
829
|
font-weight: 600
|
|
668
830
|
}
|
|
669
831
|
|
|
832
|
+
p {
|
|
833
|
+
line-height: 18px;
|
|
834
|
+
color: var(--sl-color-gray-800);
|
|
835
|
+
font-size: var(--sl-font-size-small);
|
|
836
|
+
}
|
|
837
|
+
|
|
670
838
|
/* this class is dynamically applied in controller */
|
|
671
839
|
.error-input::part(base) {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
675
|
-
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
840
|
+
border: 1px solid var(--sl-color-danger-500);
|
|
841
|
+
border-radius: var(--sl-input-border-radius-medium);
|
|
676
842
|
}
|
|
677
843
|
|
|
678
844
|
.error-input::part(help-text) {
|
|
679
|
-
color: var(--
|
|
845
|
+
color: var(--sl-color-danger-500) !important;
|
|
680
846
|
}
|
|
681
847
|
|
|
682
848
|
`;
|
|
@@ -728,16 +894,20 @@ const BankingInfoFormView = (props) => {
|
|
|
728
894
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
729
895
|
h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
730
896
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
731
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
732
|
-
h("
|
|
897
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
898
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
899
|
+
h("strong", null, text.error.generalTitle),
|
|
900
|
+
h("br", null),
|
|
733
901
|
intl.formatMessage({
|
|
734
902
|
id: "generalDescription",
|
|
735
903
|
defaultMessage: text.error.generalDescription,
|
|
736
904
|
}, {
|
|
737
905
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
738
906
|
}))),
|
|
739
|
-
states.isPartner && !states.hideSteps && (h("
|
|
740
|
-
h("
|
|
907
|
+
states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
908
|
+
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
909
|
+
h("strong", null, text.isPartnerAlertHeader),
|
|
910
|
+
h("br", null),
|
|
741
911
|
intl.formatMessage({
|
|
742
912
|
id: "isPartnerAlertDescription",
|
|
743
913
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -778,7 +948,7 @@ const BankingInfoFormView = (props) => {
|
|
|
778
948
|
h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
779
949
|
? { onClick: callbacks.onModalOpen }
|
|
780
950
|
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
781
|
-
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "
|
|
951
|
+
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
782
952
|
};
|
|
783
953
|
|
|
784
954
|
// Hardcoded in Impact backend
|
|
@@ -900,6 +1070,10 @@ function useBankingInfoForm(props) {
|
|
|
900
1070
|
const paymentMethodChecked = !hasPayPal
|
|
901
1071
|
? "toBankAccount"
|
|
902
1072
|
: _paymentMethodChecked;
|
|
1073
|
+
useEffect(() => {
|
|
1074
|
+
// reset redirect hash
|
|
1075
|
+
window.location.hash = "";
|
|
1076
|
+
}, []);
|
|
903
1077
|
useEffect(() => {
|
|
904
1078
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
905
1079
|
if (!userData)
|
|
@@ -1655,6 +1829,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1655
1829
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1656
1830
|
}
|
|
1657
1831
|
|
|
1832
|
+
const style$1 = {
|
|
1833
|
+
Wrapper: {
|
|
1834
|
+
display: "flex",
|
|
1835
|
+
flexDirection: "column",
|
|
1836
|
+
gap: "var(--sl-spacing-medium)",
|
|
1837
|
+
maxWidth: "550px",
|
|
1838
|
+
},
|
|
1839
|
+
HeaderContainer: {
|
|
1840
|
+
display: "flex",
|
|
1841
|
+
flexDirection: "column",
|
|
1842
|
+
},
|
|
1843
|
+
InputsContainer: {
|
|
1844
|
+
display: "flex",
|
|
1845
|
+
gap: "var(--sl-spacing-medium)",
|
|
1846
|
+
position: "relative",
|
|
1847
|
+
flexDirection: "column",
|
|
1848
|
+
},
|
|
1849
|
+
CodeInputContainer: {
|
|
1850
|
+
display: "flex",
|
|
1851
|
+
gap: "var(--sl-spacing-medium)",
|
|
1852
|
+
},
|
|
1853
|
+
CodeInput: {
|
|
1854
|
+
maxWidth: "40px",
|
|
1855
|
+
"&::part(input)": {
|
|
1856
|
+
margin: "0",
|
|
1857
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1858
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1859
|
+
},
|
|
1860
|
+
},
|
|
1861
|
+
CodeInputError: {
|
|
1862
|
+
...ErrorStyles,
|
|
1863
|
+
maxWidth: "40px",
|
|
1864
|
+
"&::part(input)": {
|
|
1865
|
+
margin: "0",
|
|
1866
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1867
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1868
|
+
},
|
|
1869
|
+
},
|
|
1870
|
+
ErrorText: {
|
|
1871
|
+
color: "var(--sl-color-danger-500)",
|
|
1872
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1873
|
+
margin: "0",
|
|
1874
|
+
},
|
|
1875
|
+
ContinueButton: {
|
|
1876
|
+
width: "100%",
|
|
1877
|
+
maxWidth: "100px",
|
|
1878
|
+
},
|
|
1879
|
+
FooterContainer: {
|
|
1880
|
+
display: "flex",
|
|
1881
|
+
flexDirection: "column",
|
|
1882
|
+
},
|
|
1883
|
+
SkeletonOne: {
|
|
1884
|
+
width: "50%",
|
|
1885
|
+
height: "16px",
|
|
1886
|
+
},
|
|
1887
|
+
SkeletonTwo: {
|
|
1888
|
+
width: "30%",
|
|
1889
|
+
height: "34px",
|
|
1890
|
+
},
|
|
1891
|
+
SkeletonThree: {
|
|
1892
|
+
width: "15%",
|
|
1893
|
+
height: "24px",
|
|
1894
|
+
},
|
|
1895
|
+
};
|
|
1896
|
+
const vanillaStyle$1 = `
|
|
1897
|
+
:host {
|
|
1898
|
+
display: block;
|
|
1899
|
+
}
|
|
1900
|
+
:host([hidden]): {
|
|
1901
|
+
display: none;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
`;
|
|
1906
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1907
|
+
const styleString$1 = sheet$1.toString();
|
|
1908
|
+
function WidgetCodeVerificationView(props) {
|
|
1909
|
+
const { states, refs, callbacks, text } = props;
|
|
1910
|
+
const resendCodeText = intl.formatMessage({
|
|
1911
|
+
id: "resendCodeText",
|
|
1912
|
+
defaultMessage: text.resendCodeText,
|
|
1913
|
+
}, {
|
|
1914
|
+
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1915
|
+
e.preventDefault();
|
|
1916
|
+
callbacks.resendEmail();
|
|
1917
|
+
} }, text.resendCodeLabel)),
|
|
1918
|
+
});
|
|
1919
|
+
const codeResentSuccessfully = intl.formatMessage({
|
|
1920
|
+
id: "codeResentSuccessfully",
|
|
1921
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1922
|
+
}, {
|
|
1923
|
+
email: states.email,
|
|
1924
|
+
});
|
|
1925
|
+
const inputClass = states.verifyFailed
|
|
1926
|
+
? sheet$1.classes.CodeInputError
|
|
1927
|
+
: sheet$1.classes.CodeInput;
|
|
1928
|
+
return (h("div", { part: "sqm-base" },
|
|
1929
|
+
h("style", { type: "text/css" },
|
|
1930
|
+
vanillaStyle$1,
|
|
1931
|
+
styleString$1),
|
|
1932
|
+
h("div", { class: sheet$1.classes.Wrapper },
|
|
1933
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1934
|
+
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1935
|
+
id: `emailHeaderText`,
|
|
1936
|
+
defaultMessage: states.verifyFailed
|
|
1937
|
+
? text.reverifyCodeHeaderText
|
|
1938
|
+
: text.verifyCodeHeaderText,
|
|
1939
|
+
}, { email: states.email }))),
|
|
1940
|
+
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1941
|
+
h("b", null, codeResentSuccessfully))),
|
|
1942
|
+
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1943
|
+
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1944
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1945
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1946
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1947
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1948
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1949
|
+
h("sl-input", { class: inputClass, name: "code" })),
|
|
1950
|
+
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1951
|
+
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)),
|
|
1952
|
+
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1953
|
+
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1957
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1958
|
+
$user: UserIdInput!
|
|
1959
|
+
$code: String!
|
|
1960
|
+
) {
|
|
1961
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1962
|
+
verifiedEmail
|
|
1963
|
+
accessKey
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
`;
|
|
1967
|
+
function useWidgetCodeVerification(props) {
|
|
1968
|
+
const host = l();
|
|
1969
|
+
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1970
|
+
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1971
|
+
const [emailSent, setEmailSent] = useState(false);
|
|
1972
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
1973
|
+
const [codeRef, setCodeRef] = useState(null);
|
|
1974
|
+
const [validationError, setValidationError] = useState(false);
|
|
1975
|
+
const [emailError, setEmailError] = useState(false);
|
|
1976
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1977
|
+
useEffect(() => {
|
|
1978
|
+
if (!codeRef)
|
|
1979
|
+
return;
|
|
1980
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1981
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1982
|
+
codeElements.forEach((element, idx) => {
|
|
1983
|
+
element.addEventListener("focus", (e) => {
|
|
1984
|
+
e.target.select();
|
|
1985
|
+
});
|
|
1986
|
+
element.addEventListener("keydown", (e) => {
|
|
1987
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1988
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
element.addEventListener("input", (e) => {
|
|
1992
|
+
const input = e.data;
|
|
1993
|
+
if (!input)
|
|
1994
|
+
return;
|
|
1995
|
+
if (idx === codeElements.length - 1) {
|
|
1996
|
+
e.target.value = input.slice(0, 1);
|
|
1997
|
+
return;
|
|
1998
|
+
}
|
|
1999
|
+
if (input.length > 1) {
|
|
2000
|
+
const rest = input.slice(1);
|
|
2001
|
+
e.target.value = input.slice(0, 1);
|
|
2002
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
2003
|
+
inputType: "insertFromPaste",
|
|
2004
|
+
data: rest,
|
|
2005
|
+
}));
|
|
2006
|
+
}
|
|
2007
|
+
codeElements[idx + 1].focus();
|
|
2008
|
+
});
|
|
2009
|
+
});
|
|
2010
|
+
}, [codeRef]);
|
|
2011
|
+
const reset = () => {
|
|
2012
|
+
setShowCode(false);
|
|
2013
|
+
setValidationError(false);
|
|
2014
|
+
};
|
|
2015
|
+
const resendEmail = async () => {
|
|
2016
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2017
|
+
if (!initialized)
|
|
2018
|
+
return;
|
|
2019
|
+
const result = await sendEmail();
|
|
2020
|
+
if (!result) {
|
|
2021
|
+
setEmailError(true);
|
|
2022
|
+
return;
|
|
2023
|
+
}
|
|
2024
|
+
if (emailSent)
|
|
2025
|
+
setEmailResent(true);
|
|
2026
|
+
setEmailSent(true);
|
|
2027
|
+
};
|
|
2028
|
+
const submitCode = async () => {
|
|
2029
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
2030
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
2031
|
+
if (codeElements.find((el) => !el.value)) {
|
|
2032
|
+
setValidationError(true);
|
|
2033
|
+
return;
|
|
2034
|
+
}
|
|
2035
|
+
let code = "";
|
|
2036
|
+
codeElements.forEach((element) => {
|
|
2037
|
+
code = `${code}${element.value}`;
|
|
2038
|
+
});
|
|
2039
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2040
|
+
if (!initialized)
|
|
2041
|
+
return;
|
|
2042
|
+
setValidationError(false);
|
|
2043
|
+
const res = await verifyEmail(code);
|
|
2044
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
2045
|
+
props.onVerification(res.accessKey);
|
|
2046
|
+
reset();
|
|
2047
|
+
}
|
|
2048
|
+
else {
|
|
2049
|
+
setValidationError(true);
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2052
|
+
useEffect(() => {
|
|
2053
|
+
// Wait for mutations to be determined from user lookup
|
|
2054
|
+
if (!initialized)
|
|
2055
|
+
return;
|
|
2056
|
+
// email should already exist if user has completed email-verification
|
|
2057
|
+
if (!email)
|
|
2058
|
+
resendEmail();
|
|
2059
|
+
else
|
|
2060
|
+
setEmailSent(true);
|
|
2061
|
+
}, [initialized]);
|
|
2062
|
+
return {
|
|
2063
|
+
refs: {
|
|
2064
|
+
codeWrapperRef: setCodeRef,
|
|
2065
|
+
},
|
|
2066
|
+
states: {
|
|
2067
|
+
email: verificationEmail,
|
|
2068
|
+
emailResent,
|
|
2069
|
+
resendError: sendErrors || verifyErrors,
|
|
2070
|
+
initialiseLoading: !initialized,
|
|
2071
|
+
loading: sendLoading || verifyLoading,
|
|
2072
|
+
verifyFailed: !!validationError,
|
|
2073
|
+
},
|
|
2074
|
+
callbacks: {
|
|
2075
|
+
resendEmail,
|
|
2076
|
+
submitCode,
|
|
2077
|
+
},
|
|
2078
|
+
text: props.getTextProps(),
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
const WidgetCodeVerification = class {
|
|
2083
|
+
constructor(hostRef) {
|
|
2084
|
+
registerInstance(this, hostRef);
|
|
2085
|
+
/**
|
|
2086
|
+
* @uiName Verify code widget header text
|
|
2087
|
+
*/
|
|
2088
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2089
|
+
/**
|
|
2090
|
+
* @uiName Reverify code widget header text
|
|
2091
|
+
*/
|
|
2092
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2093
|
+
/**
|
|
2094
|
+
* Text displayed under verify button
|
|
2095
|
+
* @uiName Resend code text
|
|
2096
|
+
*/
|
|
2097
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2098
|
+
/**
|
|
2099
|
+
* The link that appears in the resend code link
|
|
2100
|
+
* @uiName Resend code label
|
|
2101
|
+
*/
|
|
2102
|
+
this.resendCodeLabel = "Resend code";
|
|
2103
|
+
/**
|
|
2104
|
+
* Link text displayed under verify button
|
|
2105
|
+
* @uiName Resend code text
|
|
2106
|
+
*/
|
|
2107
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2108
|
+
/**
|
|
2109
|
+
* Error text displayed under verification input
|
|
2110
|
+
* @uiName Invalid code text
|
|
2111
|
+
*/
|
|
2112
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2113
|
+
/**
|
|
2114
|
+
* @uiName Verify code button text
|
|
2115
|
+
*/
|
|
2116
|
+
this.verifyText = "Verify";
|
|
2117
|
+
/**
|
|
2118
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2119
|
+
* @uiName Network error message
|
|
2120
|
+
*/
|
|
2121
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2122
|
+
h$1(this);
|
|
2123
|
+
}
|
|
2124
|
+
disconnectedCallback() { }
|
|
2125
|
+
getTextProps() {
|
|
2126
|
+
return getProps(this);
|
|
2127
|
+
}
|
|
2128
|
+
render() {
|
|
2129
|
+
const props = isDemo()
|
|
2130
|
+
? useDemoWidgetCodeVerification(this)
|
|
2131
|
+
: useWidgetCodeVerification(this);
|
|
2132
|
+
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2136
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
2137
|
+
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2138
|
+
return cjs({
|
|
2139
|
+
states: {
|
|
2140
|
+
loading: false,
|
|
2141
|
+
email: "test@example.com",
|
|
2142
|
+
emailResent,
|
|
2143
|
+
resendError: false,
|
|
2144
|
+
verifyFailed: false,
|
|
2145
|
+
},
|
|
2146
|
+
refs: {
|
|
2147
|
+
codeWrapperRef: () => { },
|
|
2148
|
+
},
|
|
2149
|
+
callbacks: {
|
|
2150
|
+
resendEmail: async () => setEmailResent(true),
|
|
2151
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2152
|
+
},
|
|
2153
|
+
text: props.getTextProps(),
|
|
2154
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2155
|
+
}
|
|
2156
|
+
|
|
1658
2157
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1659
2158
|
mutation createImpactPublisherTaxDocument(
|
|
1660
2159
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1816,7 +2315,7 @@ function getDocumentType(p) {
|
|
|
1816
2315
|
return undefined;
|
|
1817
2316
|
}
|
|
1818
2317
|
|
|
1819
|
-
const style$
|
|
2318
|
+
const style$2 = {
|
|
1820
2319
|
DocusignStatusContainer: {
|
|
1821
2320
|
width: "100%",
|
|
1822
2321
|
minHeight: "600px",
|
|
@@ -1828,7 +2327,7 @@ const style$1 = {
|
|
|
1828
2327
|
gap: "10px",
|
|
1829
2328
|
margin: "auto",
|
|
1830
2329
|
textAlign: "center",
|
|
1831
|
-
border: "
|
|
2330
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
1832
2331
|
justifyContent: "center",
|
|
1833
2332
|
},
|
|
1834
2333
|
MessageContainer: {
|
|
@@ -1843,47 +2342,47 @@ const style$1 = {
|
|
|
1843
2342
|
},
|
|
1844
2343
|
},
|
|
1845
2344
|
};
|
|
1846
|
-
const sheet$
|
|
1847
|
-
const styleString$
|
|
2345
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2346
|
+
const styleString$2 = sheet$2.toString();
|
|
1848
2347
|
const DocusignExpiredView = (props) => {
|
|
1849
|
-
const { classes } = sheet$
|
|
2348
|
+
const { classes } = sheet$2;
|
|
1850
2349
|
const { text } = props;
|
|
1851
2350
|
return (h("div", null,
|
|
1852
|
-
h("style", { type: "text/css" }, styleString$
|
|
2351
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1853
2352
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1854
2353
|
h("sl-icon", { style: {
|
|
1855
2354
|
width: "50px",
|
|
1856
2355
|
height: "50px",
|
|
1857
|
-
color: "var(--
|
|
2356
|
+
color: "var(--sl-color-neutral-500)",
|
|
1858
2357
|
}, name: "clock" }),
|
|
1859
2358
|
h("div", { class: classes.MessageContainer },
|
|
1860
2359
|
h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1861
2360
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1862
2361
|
};
|
|
1863
2362
|
const DocusignErrorView = (props) => {
|
|
1864
|
-
const { classes } = sheet$
|
|
2363
|
+
const { classes } = sheet$2;
|
|
1865
2364
|
const { text } = props;
|
|
1866
2365
|
return (h("div", null,
|
|
1867
|
-
h("style", { type: "text/css" }, styleString$
|
|
2366
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1868
2367
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1869
2368
|
h("sl-icon", { style: {
|
|
1870
2369
|
width: "50px",
|
|
1871
2370
|
height: "50px",
|
|
1872
|
-
color: "var(--
|
|
2371
|
+
color: "var(--sl-color-gray-500)",
|
|
1873
2372
|
}, name: "exclamation-octagon" }),
|
|
1874
2373
|
h("div", { class: classes.MessageContainer },
|
|
1875
2374
|
h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1876
2375
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1877
2376
|
};
|
|
1878
2377
|
const DocusignLoadingView = () => {
|
|
1879
|
-
const { classes } = sheet$
|
|
2378
|
+
const { classes } = sheet$2;
|
|
1880
2379
|
return (h("div", null,
|
|
1881
|
-
h("style", { type: "text/css" }, styleString$
|
|
2380
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1882
2381
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1883
2382
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1884
2383
|
};
|
|
1885
2384
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1886
|
-
const { classes } = sheet$
|
|
2385
|
+
const { classes } = sheet$2;
|
|
1887
2386
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1888
2387
|
const allowedDomains = [
|
|
1889
2388
|
"referralsaasquatch.com",
|
|
@@ -1897,7 +2396,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1897
2396
|
if (typeof e.data === "number") {
|
|
1898
2397
|
setiFrameHeight(e.data + "px");
|
|
1899
2398
|
}
|
|
1900
|
-
if (e.data === "Complyexchange Thank you page Load") {
|
|
2399
|
+
if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
|
|
1901
2400
|
callbacks.completeDocument();
|
|
1902
2401
|
}
|
|
1903
2402
|
}, []);
|
|
@@ -1916,12 +2415,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1916
2415
|
return h(DocusignExpiredView, { text: text });
|
|
1917
2416
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1918
2417
|
return (h("div", { style: { height: iFrameHeight } },
|
|
1919
|
-
h("style", { type: "text/css" }, styleString$
|
|
2418
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1920
2419
|
h("div", { class: classes.IFrameContainer },
|
|
1921
2420
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1922
2421
|
};
|
|
1923
2422
|
|
|
1924
|
-
const style$
|
|
2423
|
+
const style$3 = {
|
|
1925
2424
|
ModalTitleContainer: {
|
|
1926
2425
|
display: "flex",
|
|
1927
2426
|
gap: "var(--sl-spacing-small)",
|
|
@@ -1958,7 +2457,7 @@ const style$2 = {
|
|
|
1958
2457
|
gap: "8px",
|
|
1959
2458
|
},
|
|
1960
2459
|
ErrorText: {
|
|
1961
|
-
color: "var(--
|
|
2460
|
+
color: "var(--sl-color-danger-500)",
|
|
1962
2461
|
marginTop: "10px",
|
|
1963
2462
|
},
|
|
1964
2463
|
DescriptionText: {
|
|
@@ -1967,6 +2466,44 @@ const style$2 = {
|
|
|
1967
2466
|
BoldText: {
|
|
1968
2467
|
fontWeight: "bold",
|
|
1969
2468
|
},
|
|
2469
|
+
SecondaryBtn: {
|
|
2470
|
+
"&::part(base)": {
|
|
2471
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2472
|
+
},
|
|
2473
|
+
"&::part(label)": {
|
|
2474
|
+
padding: "0px",
|
|
2475
|
+
margin: "0px",
|
|
2476
|
+
},
|
|
2477
|
+
},
|
|
2478
|
+
ErrorAlertContainer: {
|
|
2479
|
+
"&::part(base)": {
|
|
2480
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2481
|
+
borderTop: "none",
|
|
2482
|
+
padding: "0 16px",
|
|
2483
|
+
},
|
|
2484
|
+
"& sl-icon::part(base)": {
|
|
2485
|
+
color: "var(--sl-color-danger-500)",
|
|
2486
|
+
},
|
|
2487
|
+
},
|
|
2488
|
+
InfoAlert: {
|
|
2489
|
+
"&::part(base)": {
|
|
2490
|
+
backgroundColor: "transparent",
|
|
2491
|
+
borderTop: "none",
|
|
2492
|
+
padding: "0px",
|
|
2493
|
+
marginBottom: "16px",
|
|
2494
|
+
border: "none",
|
|
2495
|
+
},
|
|
2496
|
+
"&::part(message)": {
|
|
2497
|
+
display: "flex",
|
|
2498
|
+
alignItems: "center",
|
|
2499
|
+
justifyContent: "flex-start",
|
|
2500
|
+
padding: "10px",
|
|
2501
|
+
height: "max-content",
|
|
2502
|
+
},
|
|
2503
|
+
"& sl-icon::part(base)": {
|
|
2504
|
+
color: "var(--sl-color-sky-500)",
|
|
2505
|
+
},
|
|
2506
|
+
},
|
|
1970
2507
|
Container: {
|
|
1971
2508
|
width: "100%",
|
|
1972
2509
|
display: "flex",
|
|
@@ -1974,6 +2511,16 @@ const style$2 = {
|
|
|
1974
2511
|
flexDirection: "column",
|
|
1975
2512
|
gap: "16px",
|
|
1976
2513
|
},
|
|
2514
|
+
Link: {
|
|
2515
|
+
color: "var(--sl-color-sky-500)",
|
|
2516
|
+
textDecoration: "none",
|
|
2517
|
+
"&:visited": {
|
|
2518
|
+
color: "var(--sl-color-sky-500)",
|
|
2519
|
+
},
|
|
2520
|
+
"&:hover": {
|
|
2521
|
+
textDecoration: "underline",
|
|
2522
|
+
},
|
|
2523
|
+
},
|
|
1977
2524
|
CheckboxWrapper: {
|
|
1978
2525
|
display: "flex",
|
|
1979
2526
|
justifyContent: "flex-start",
|
|
@@ -1987,7 +2534,7 @@ const style$2 = {
|
|
|
1987
2534
|
fontSize: "var(--sl-font-size-small)",
|
|
1988
2535
|
},
|
|
1989
2536
|
PageDescriptionText: {
|
|
1990
|
-
color: "var(--
|
|
2537
|
+
color: "var(--sl-color-neutral-500)",
|
|
1991
2538
|
fontSize: "var(--sl-font-size-medium)",
|
|
1992
2539
|
},
|
|
1993
2540
|
Dialog: {
|
|
@@ -2013,38 +2560,41 @@ const style$2 = {
|
|
|
2013
2560
|
},
|
|
2014
2561
|
DialogButton: { margin: "auto", width: "100%" },
|
|
2015
2562
|
};
|
|
2016
|
-
const sheet$
|
|
2017
|
-
const styleString$
|
|
2018
|
-
const vanillaStyle$
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
}
|
|
2563
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2564
|
+
const styleString$3 = sheet$3.toString();
|
|
2565
|
+
const vanillaStyle$2 = `
|
|
2566
|
+
:host{
|
|
2567
|
+
display: block;
|
|
2568
|
+
}
|
|
2569
|
+
* {
|
|
2570
|
+
margin: 0;
|
|
2571
|
+
padding: 0;
|
|
2572
|
+
box-sizing: border-box;
|
|
2573
|
+
}
|
|
2028
2574
|
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2575
|
+
p {
|
|
2576
|
+
line-height: 18px;
|
|
2577
|
+
color: var(--sl-color-gray-800);
|
|
2578
|
+
font-size: var(--sl-font-size-small);
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
a {
|
|
2582
|
+
cursor: pointer;
|
|
2583
|
+
}
|
|
2034
2584
|
|
|
2035
2585
|
|
|
2036
2586
|
`;
|
|
2037
2587
|
const DocusignFormView = (props) => {
|
|
2038
2588
|
var _a;
|
|
2039
2589
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2040
|
-
const { classes } = sheet$
|
|
2590
|
+
const { classes } = sheet$3;
|
|
2041
2591
|
return (h("div", { class: classes.Container },
|
|
2042
2592
|
h("style", { type: "text/css" },
|
|
2043
|
-
styleString$
|
|
2044
|
-
vanillaStyle$
|
|
2045
|
-
h("sl-dialog", { class: sheet$
|
|
2593
|
+
styleString$3,
|
|
2594
|
+
vanillaStyle$2),
|
|
2595
|
+
h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2046
2596
|
h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2047
|
-
h("sl-icon", { name: "info-circle", style: { color: "var(--
|
|
2597
|
+
h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
2048
2598
|
h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2049
2599
|
h("p", null, intl.formatMessage({
|
|
2050
2600
|
id: "modalText",
|
|
@@ -2052,7 +2602,7 @@ const DocusignFormView = (props) => {
|
|
|
2052
2602
|
}, {
|
|
2053
2603
|
br: h("br", null),
|
|
2054
2604
|
})),
|
|
2055
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
2605
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2056
2606
|
h("div", { class: classes.TextContainer },
|
|
2057
2607
|
h("div", null,
|
|
2058
2608
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2062,16 +2612,20 @@ const DocusignFormView = (props) => {
|
|
|
2062
2612
|
h("h3", null, text.taxForm),
|
|
2063
2613
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2064
2614
|
states.loadingError && (h("div", null,
|
|
2065
|
-
h("
|
|
2066
|
-
h("
|
|
2615
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2616
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2617
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2618
|
+
h("br", null),
|
|
2067
2619
|
intl.formatMessage({
|
|
2068
2620
|
id: "loadingErrorAlertDescription",
|
|
2069
2621
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2070
2622
|
}, {
|
|
2071
2623
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2072
2624
|
})))),
|
|
2073
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
2074
|
-
h("
|
|
2625
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2626
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2627
|
+
h("strong", null, text.error.generalTitle),
|
|
2628
|
+
h("br", null),
|
|
2075
2629
|
intl.formatMessage({
|
|
2076
2630
|
id: "generalDescription",
|
|
2077
2631
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2131,7 +2685,7 @@ const DocusignForm = class {
|
|
|
2131
2685
|
* @uiName W-8 BEN-E tax form description
|
|
2132
2686
|
* @uiWidget textArea
|
|
2133
2687
|
*/
|
|
2134
|
-
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US
|
|
2688
|
+
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
2135
2689
|
/**
|
|
2136
2690
|
* This appears inside the Docusign frame.
|
|
2137
2691
|
* @uiName Docusign session expired messag
|
|
@@ -2255,7 +2809,7 @@ function useDocusignFormDemo(props) {
|
|
|
2255
2809
|
return cjs({
|
|
2256
2810
|
text: props.getTextProps(),
|
|
2257
2811
|
states: {
|
|
2258
|
-
step: "
|
|
2812
|
+
step: "4",
|
|
2259
2813
|
disabled: false,
|
|
2260
2814
|
submitDisabled: false,
|
|
2261
2815
|
loading: false,
|
|
@@ -2291,7 +2845,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2291
2845
|
return (h("div", { style: {
|
|
2292
2846
|
width: "100%",
|
|
2293
2847
|
height: "600px",
|
|
2294
|
-
background: "
|
|
2848
|
+
background: "#fafafa",
|
|
2295
2849
|
display: "flex",
|
|
2296
2850
|
justifyContent: "center",
|
|
2297
2851
|
alignItems: "center",
|
|
@@ -2303,7 +2857,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2303
2857
|
} }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2304
2858
|
};
|
|
2305
2859
|
|
|
2306
|
-
const style$
|
|
2860
|
+
const style$4 = {
|
|
2307
2861
|
FormWrapper: {
|
|
2308
2862
|
display: "flex",
|
|
2309
2863
|
justifyContent: "flex-start",
|
|
@@ -2315,7 +2869,6 @@ const style$3 = {
|
|
|
2315
2869
|
justifyContent: "flex-start",
|
|
2316
2870
|
flexDirection: "column",
|
|
2317
2871
|
gap: "var(--sl-spacing-medium)",
|
|
2318
|
-
marginBottom: "16px",
|
|
2319
2872
|
"& sl-radio::part(base)": {
|
|
2320
2873
|
alignItems: "start",
|
|
2321
2874
|
},
|
|
@@ -2356,76 +2909,86 @@ const style$3 = {
|
|
|
2356
2909
|
marginTop: "10px",
|
|
2357
2910
|
},
|
|
2358
2911
|
DescriptionText: {
|
|
2359
|
-
color: "var(--
|
|
2912
|
+
color: "var(--sl-color-neutral-500)",
|
|
2360
2913
|
},
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2914
|
+
SecondaryBtn: {
|
|
2915
|
+
"&::part(base)": {
|
|
2916
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2917
|
+
},
|
|
2364
2918
|
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2919
|
+
AlertContainer: {
|
|
2920
|
+
"&::part(base)": {
|
|
2921
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2922
|
+
borderTop: "none",
|
|
2923
|
+
padding: "0 16px",
|
|
2924
|
+
},
|
|
2925
|
+
"& sl-icon::part(base)": {
|
|
2926
|
+
color: "var(--sl-color-danger-500)",
|
|
2927
|
+
},
|
|
2369
2928
|
},
|
|
2370
|
-
|
|
2929
|
+
PartnerAlertContainer: {
|
|
2371
2930
|
"&::part(base)": {
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2931
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
2932
|
+
borderTop: "none",
|
|
2933
|
+
padding: "0 16px",
|
|
2376
2934
|
},
|
|
2377
|
-
"
|
|
2378
|
-
|
|
2935
|
+
"& sl-icon::part(base)": {
|
|
2936
|
+
color: "var(--sl-color-blue-500)",
|
|
2379
2937
|
},
|
|
2380
2938
|
},
|
|
2381
|
-
|
|
2939
|
+
InfoAlert: {
|
|
2940
|
+
marginTop: "var(--sl-spacing-large)",
|
|
2382
2941
|
"&::part(base)": {
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2942
|
+
backgroundColor: "transparent",
|
|
2943
|
+
borderTop: "none",
|
|
2944
|
+
padding: "0px",
|
|
2945
|
+
border: "none",
|
|
2946
|
+
},
|
|
2947
|
+
"&::part(message)": {
|
|
2948
|
+
alignItems: "center",
|
|
2949
|
+
padding: "var(--sl-spacing-small)",
|
|
2950
|
+
whiteSpace: "nowrap",
|
|
2390
2951
|
},
|
|
2391
|
-
"
|
|
2392
|
-
color: "var(--
|
|
2393
|
-
background: "var(--sqm-secondary-button-background-hover)",
|
|
2952
|
+
"& sl-icon::part(base)": {
|
|
2953
|
+
color: "var(--sl-color-yellow-500)",
|
|
2394
2954
|
},
|
|
2395
2955
|
},
|
|
2956
|
+
InfoWarningIcon: {
|
|
2957
|
+
height: "26px",
|
|
2958
|
+
width: "26px",
|
|
2959
|
+
},
|
|
2960
|
+
PageDescriptionText: {
|
|
2961
|
+
color: "var(--sl-color-neutral-500)",
|
|
2962
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2963
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2964
|
+
},
|
|
2396
2965
|
};
|
|
2397
|
-
const sheet$
|
|
2398
|
-
const styleString$
|
|
2399
|
-
const vanillaStyle$
|
|
2966
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2967
|
+
const styleString$4 = sheet$4.toString();
|
|
2968
|
+
const vanillaStyle$3 = `
|
|
2400
2969
|
:host{
|
|
2401
2970
|
display: block;
|
|
2402
2971
|
}
|
|
2403
|
-
|
|
2404
|
-
hr {
|
|
2405
|
-
border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
a {
|
|
2409
|
-
color: inherit;
|
|
2410
|
-
text-decoration: underline;
|
|
2411
|
-
cursor: pointer;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
2972
|
* {
|
|
2415
2973
|
margin: 0;
|
|
2416
2974
|
padding: 0;
|
|
2417
2975
|
box-sizing: border-box;
|
|
2418
2976
|
}
|
|
2419
2977
|
|
|
2978
|
+
p {
|
|
2979
|
+
line-height: 18px;
|
|
2980
|
+
color: var(--sl-color-gray-800);
|
|
2981
|
+
font-size: var(--sl-font-size-small);
|
|
2982
|
+
}
|
|
2420
2983
|
`;
|
|
2421
2984
|
const IndirectTaxFormView = (props) => {
|
|
2422
2985
|
var _a;
|
|
2423
2986
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2424
|
-
const { classes } = sheet$
|
|
2987
|
+
const { classes } = sheet$4;
|
|
2425
2988
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2426
2989
|
h("style", { type: "text/css" },
|
|
2427
|
-
styleString$
|
|
2428
|
-
vanillaStyle$
|
|
2990
|
+
styleString$4,
|
|
2991
|
+
vanillaStyle$3),
|
|
2429
2992
|
h("div", { class: classes.TextContainer },
|
|
2430
2993
|
h("div", null,
|
|
2431
2994
|
!states.hideSteps && (h("p", null,
|
|
@@ -2438,24 +3001,30 @@ const IndirectTaxFormView = (props) => {
|
|
|
2438
3001
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2439
3002
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2440
3003
|
states.loadingError && (h("div", null,
|
|
2441
|
-
h("
|
|
2442
|
-
h("
|
|
3004
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
3005
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3006
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
3007
|
+
h("br", null),
|
|
2443
3008
|
intl.formatMessage({
|
|
2444
3009
|
id: "loadingErrorAlertDescription",
|
|
2445
3010
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2446
3011
|
}, {
|
|
2447
3012
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2448
3013
|
})))),
|
|
2449
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
2450
|
-
h("
|
|
3014
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
3015
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3016
|
+
h("strong", null, text.error.generalTitle),
|
|
3017
|
+
h("br", null),
|
|
2451
3018
|
intl.formatMessage({
|
|
2452
3019
|
id: "generalDescription",
|
|
2453
3020
|
defaultMessage: text.error.generalDescription,
|
|
2454
3021
|
}, {
|
|
2455
3022
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2456
3023
|
}))),
|
|
2457
|
-
states.isPartner && (h("
|
|
2458
|
-
h("
|
|
3024
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
3025
|
+
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
3026
|
+
h("strong", null, text.isPartnerAlertHeader),
|
|
3027
|
+
h("br", null),
|
|
2459
3028
|
intl.formatMessage({
|
|
2460
3029
|
id: "isPartnerAlertDescription",
|
|
2461
3030
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2476,15 +3045,17 @@ const IndirectTaxFormView = (props) => {
|
|
|
2476
3045
|
text.otherRegion,
|
|
2477
3046
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2478
3047
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2479
|
-
h("
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
3048
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
3049
|
+
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
3050
|
+
intl.formatMessage({
|
|
3051
|
+
id: "cannotChangeInfoAlert",
|
|
3052
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
3053
|
+
}, {
|
|
3054
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3055
|
+
})),
|
|
2485
3056
|
h("div", { class: classes.BtnContainer },
|
|
2486
|
-
h("sl-button", {
|
|
2487
|
-
h("sl-button", { class: classes.
|
|
3057
|
+
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
3058
|
+
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2488
3059
|
};
|
|
2489
3060
|
|
|
2490
3061
|
const CONNECT_PARTNER = dist.gql `
|
|
@@ -2543,6 +3114,10 @@ function useIndirectTaxForm(props) {
|
|
|
2543
3114
|
const [filteredCountries, setFilteredCountries] = useState(_countries || []);
|
|
2544
3115
|
const [option, setOption] = useState("notRegistered");
|
|
2545
3116
|
const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
|
|
3117
|
+
useEffect(() => {
|
|
3118
|
+
// reset redirect hash
|
|
3119
|
+
window.location.hash = "";
|
|
3120
|
+
}, []);
|
|
2546
3121
|
useEffect(() => {
|
|
2547
3122
|
var _a;
|
|
2548
3123
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
@@ -2929,7 +3504,7 @@ const IndirectTaxForm = class {
|
|
|
2929
3504
|
};
|
|
2930
3505
|
function useDemoIndirectTaxForm(props) {
|
|
2931
3506
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
2932
|
-
const [option, setOption] = useState(
|
|
3507
|
+
const [option, setOption] = useState(null);
|
|
2933
3508
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2934
3509
|
return cjs({
|
|
2935
3510
|
states: {
|
|
@@ -3010,26 +3585,6 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3010
3585
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3011
3586
|
}
|
|
3012
3587
|
|
|
3013
|
-
const mockInvoiceData = (count = 4) => {
|
|
3014
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3015
|
-
return { data };
|
|
3016
|
-
};
|
|
3017
|
-
const getMockData = () => {
|
|
3018
|
-
const today = luxon.DateTime.now();
|
|
3019
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3020
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3021
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3022
|
-
return {
|
|
3023
|
-
downloadUrl: "https://example.com",
|
|
3024
|
-
dateCreated: today.toMillis(),
|
|
3025
|
-
invoiceId,
|
|
3026
|
-
program: "my-program",
|
|
3027
|
-
earnings: `$${earnings}.00`,
|
|
3028
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3029
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3030
|
-
};
|
|
3031
|
-
};
|
|
3032
|
-
|
|
3033
3588
|
const debug = browser("sq:useInvoiceTable");
|
|
3034
3589
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3035
3590
|
const GET_INVOICES = dist.gql `
|
|
@@ -3178,6 +3733,26 @@ async function tryMethod(c, callback) {
|
|
|
3178
3733
|
}
|
|
3179
3734
|
}
|
|
3180
3735
|
|
|
3736
|
+
const mockInvoiceData = (count = 4) => {
|
|
3737
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3738
|
+
return { data };
|
|
3739
|
+
};
|
|
3740
|
+
const getMockData = () => {
|
|
3741
|
+
const today = luxon.DateTime.now();
|
|
3742
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3743
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3744
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3745
|
+
return {
|
|
3746
|
+
downloadUrl: "https://example.com",
|
|
3747
|
+
dateCreated: today.toMillis(),
|
|
3748
|
+
invoiceId,
|
|
3749
|
+
program: "my-program",
|
|
3750
|
+
earnings: `$${earnings}.00`,
|
|
3751
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3752
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
|
|
3181
3756
|
const InvoiceTable = class {
|
|
3182
3757
|
constructor(hostRef) {
|
|
3183
3758
|
registerInstance(this, hostRef);
|
|
@@ -3323,6 +3898,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3323
3898
|
return demoProps;
|
|
3324
3899
|
}
|
|
3325
3900
|
|
|
3901
|
+
const InvoiceTableDataCell = class {
|
|
3902
|
+
constructor(hostRef) {
|
|
3903
|
+
registerInstance(this, hostRef);
|
|
3904
|
+
this.ignored = true;
|
|
3905
|
+
h$1(this);
|
|
3906
|
+
}
|
|
3907
|
+
disconnectedCallback() { }
|
|
3908
|
+
render() {
|
|
3909
|
+
return this.data;
|
|
3910
|
+
}
|
|
3911
|
+
};
|
|
3912
|
+
|
|
3326
3913
|
const InvoiceTableDataColumn = class {
|
|
3327
3914
|
constructor(hostRef) {
|
|
3328
3915
|
registerInstance(this, hostRef);
|
|
@@ -3341,6 +3928,23 @@ const InvoiceTableDataColumn = class {
|
|
|
3341
3928
|
}
|
|
3342
3929
|
};
|
|
3343
3930
|
|
|
3931
|
+
const RewardTableDateCell = class {
|
|
3932
|
+
constructor(hostRef) {
|
|
3933
|
+
registerInstance(this, hostRef);
|
|
3934
|
+
this.ignored = true;
|
|
3935
|
+
this.locale = "en";
|
|
3936
|
+
h$1(this);
|
|
3937
|
+
}
|
|
3938
|
+
disconnectedCallback() { }
|
|
3939
|
+
render() {
|
|
3940
|
+
var _a, _b;
|
|
3941
|
+
const date = !this.date
|
|
3942
|
+
? "-"
|
|
3943
|
+
: (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
|
|
3944
|
+
return date;
|
|
3945
|
+
}
|
|
3946
|
+
};
|
|
3947
|
+
|
|
3344
3948
|
const InvoiceTableDateColumn = class {
|
|
3345
3949
|
constructor(hostRef) {
|
|
3346
3950
|
registerInstance(this, hostRef);
|
|
@@ -3359,6 +3963,21 @@ const InvoiceTableDateColumn = class {
|
|
|
3359
3963
|
}
|
|
3360
3964
|
};
|
|
3361
3965
|
|
|
3966
|
+
const InvoiceTableDownloadCell = class {
|
|
3967
|
+
constructor(hostRef) {
|
|
3968
|
+
registerInstance(this, hostRef);
|
|
3969
|
+
this.ignored = true;
|
|
3970
|
+
h$1(this);
|
|
3971
|
+
}
|
|
3972
|
+
disconnectedCallback() { }
|
|
3973
|
+
render() {
|
|
3974
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3975
|
+
cursor: pointer;
|
|
3976
|
+
}`;
|
|
3977
|
+
return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), 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: "#717179" }))))));
|
|
3978
|
+
}
|
|
3979
|
+
};
|
|
3980
|
+
|
|
3362
3981
|
const InvoiceTableGenericColumn = class {
|
|
3363
3982
|
constructor(hostRef) {
|
|
3364
3983
|
registerInstance(this, hostRef);
|
|
@@ -3381,17 +4000,17 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3381
4000
|
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" }),
|
|
3382
4001
|
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" })));
|
|
3383
4002
|
|
|
3384
|
-
const style$
|
|
4003
|
+
const style$5 = {
|
|
3385
4004
|
CardContainer: {
|
|
3386
4005
|
display: "grid",
|
|
3387
4006
|
gridTemplateColumns: "1fr",
|
|
3388
4007
|
gridGap: "var(--sl-spacing-large)",
|
|
3389
|
-
background: "
|
|
4008
|
+
background: "var(--sl-color-neutral-0)",
|
|
3390
4009
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3391
|
-
borderRadius: "
|
|
4010
|
+
borderRadius: "4px",
|
|
3392
4011
|
padding: "var(--sl-spacing-large)",
|
|
3393
4012
|
minHeight: "150px",
|
|
3394
|
-
border: "
|
|
4013
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
3395
4014
|
maxWidth: "450px",
|
|
3396
4015
|
},
|
|
3397
4016
|
StatusContainer: {
|
|
@@ -3401,7 +4020,7 @@ const style$4 = {
|
|
|
3401
4020
|
},
|
|
3402
4021
|
MainCurrencyLabel: {
|
|
3403
4022
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3404
|
-
color: "var(--
|
|
4023
|
+
color: "var(--sl-color-gray-500)",
|
|
3405
4024
|
},
|
|
3406
4025
|
MainCurrency: {
|
|
3407
4026
|
margin: 0,
|
|
@@ -3410,12 +4029,12 @@ const style$4 = {
|
|
|
3410
4029
|
},
|
|
3411
4030
|
SubduedRegularText: {
|
|
3412
4031
|
fontSize: "var(--sl-font-size-small)",
|
|
3413
|
-
color: "var(--
|
|
4032
|
+
color: "var(--sl-color-gray-500)",
|
|
3414
4033
|
margin: 0,
|
|
3415
4034
|
width: "auto",
|
|
3416
4035
|
},
|
|
3417
4036
|
PaypalEmail: {
|
|
3418
|
-
borderRight: "
|
|
4037
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3419
4038
|
paddingRight: "var(--sl-spacing-small)",
|
|
3420
4039
|
"@media (max-width: 499px)": {
|
|
3421
4040
|
borderRight: "none",
|
|
@@ -3423,7 +4042,7 @@ const style$4 = {
|
|
|
3423
4042
|
},
|
|
3424
4043
|
},
|
|
3425
4044
|
PaypalDetailsContainer: {
|
|
3426
|
-
color: "var(--
|
|
4045
|
+
color: "var(--sl-color-gray-500)",
|
|
3427
4046
|
display: "flex",
|
|
3428
4047
|
gap: "var(--sl-spacing-small)",
|
|
3429
4048
|
justifyContent: "flex-start",
|
|
@@ -3444,7 +4063,7 @@ const style$4 = {
|
|
|
3444
4063
|
},
|
|
3445
4064
|
},
|
|
3446
4065
|
AccountDetailsContainer: {
|
|
3447
|
-
color: "var(--
|
|
4066
|
+
color: "var(--sl-color-gray-500)",
|
|
3448
4067
|
display: "flex",
|
|
3449
4068
|
gap: "var(--sl-spacing-small)",
|
|
3450
4069
|
justifyContent: "flex-start",
|
|
@@ -3457,7 +4076,7 @@ const style$4 = {
|
|
|
3457
4076
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3458
4077
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3459
4078
|
"& > :not(:last-child)": {
|
|
3460
|
-
borderRight: "
|
|
4079
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3461
4080
|
},
|
|
3462
4081
|
"& > :nth-child(3)": {
|
|
3463
4082
|
border: "none",
|
|
@@ -3474,7 +4093,7 @@ const style$4 = {
|
|
|
3474
4093
|
},
|
|
3475
4094
|
W9Container: {
|
|
3476
4095
|
paddingTop: "var(--sl-spacing-large)",
|
|
3477
|
-
borderTop: "
|
|
4096
|
+
borderTop: "1px solid var(--sl-color-gray-200)",
|
|
3478
4097
|
},
|
|
3479
4098
|
SkeletonOne: {
|
|
3480
4099
|
width: "25%",
|
|
@@ -3488,22 +4107,26 @@ const style$4 = {
|
|
|
3488
4107
|
width: "50%",
|
|
3489
4108
|
height: "34px",
|
|
3490
4109
|
},
|
|
3491
|
-
|
|
4110
|
+
Alert: {
|
|
3492
4111
|
"&::part(base)": {
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
color: "var(--sl-color-white)",
|
|
4112
|
+
backgroundColor: "var(--sl-color-warning-100)",
|
|
4113
|
+
border: "1px solid var(--sl-color-warning-200)",
|
|
4114
|
+
padding: "0 16px",
|
|
3497
4115
|
},
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
color: "var(--sl-color-white)",
|
|
4116
|
+
"& sl-icon": {
|
|
4117
|
+
margin: 0,
|
|
4118
|
+
},
|
|
4119
|
+
"& sl-icon::part(base)": {
|
|
4120
|
+
color: "var(--sl-color-warning-500)",
|
|
4121
|
+
margin: 0,
|
|
3505
4122
|
},
|
|
3506
4123
|
},
|
|
4124
|
+
AlertContent: {
|
|
4125
|
+
display: "flex",
|
|
4126
|
+
alignItems: "flex-start",
|
|
4127
|
+
justifyContent: "flex-start",
|
|
4128
|
+
flexDirection: "column",
|
|
4129
|
+
},
|
|
3507
4130
|
Container: {
|
|
3508
4131
|
display: "flex",
|
|
3509
4132
|
flexDirection: "column",
|
|
@@ -3511,7 +4134,7 @@ const style$4 = {
|
|
|
3511
4134
|
},
|
|
3512
4135
|
};
|
|
3513
4136
|
function PayoutDetailsCardView(props) {
|
|
3514
|
-
const sheet = createStyleSheet(style$
|
|
4137
|
+
const sheet = createStyleSheet(style$5);
|
|
3515
4138
|
const styleString = sheet.toString();
|
|
3516
4139
|
const { classes } = sheet;
|
|
3517
4140
|
const { states, text } = props;
|
|
@@ -3525,14 +4148,13 @@ function PayoutDetailsCardView(props) {
|
|
|
3525
4148
|
};
|
|
3526
4149
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3527
4150
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3528
|
-
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3529
4151
|
const statusText = intl.formatMessage({
|
|
3530
4152
|
id: "badgeText",
|
|
3531
4153
|
defaultMessage: statusBadgeText,
|
|
3532
4154
|
}, {
|
|
3533
4155
|
badgeText: status,
|
|
3534
4156
|
});
|
|
3535
|
-
return (h("sl-badge", { pill: true,
|
|
4157
|
+
return (h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3536
4158
|
};
|
|
3537
4159
|
const thresholdText = intl.formatMessage({
|
|
3538
4160
|
id: "thresholdText",
|
|
@@ -3623,83 +4245,1415 @@ const PayoutDetailsCard = class {
|
|
|
3623
4245
|
constructor(hostRef) {
|
|
3624
4246
|
registerInstance(this, hostRef);
|
|
3625
4247
|
/**
|
|
3626
|
-
* Badge text indicating payout status
|
|
3627
|
-
* @uiName Payout badge status text
|
|
4248
|
+
* Badge text indicating payout status
|
|
4249
|
+
* @uiName Payout badge status text
|
|
4250
|
+
*/
|
|
4251
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4252
|
+
/**
|
|
4253
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4254
|
+
* @uiName Payout schedule by threshold text
|
|
4255
|
+
*/
|
|
4256
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4257
|
+
/**
|
|
4258
|
+
* Shown before the participant’s bank account information.
|
|
4259
|
+
* @uiName Bank account field label
|
|
4260
|
+
*/
|
|
4261
|
+
this.accountText = "Account";
|
|
4262
|
+
/**
|
|
4263
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
4264
|
+
* @uiName Payout missing information subtext
|
|
4265
|
+
*/
|
|
4266
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4267
|
+
h$1(this);
|
|
4268
|
+
}
|
|
4269
|
+
disconnectedCallback() { }
|
|
4270
|
+
getTextProps() {
|
|
4271
|
+
const props = getProps(this);
|
|
4272
|
+
return {
|
|
4273
|
+
...props,
|
|
4274
|
+
};
|
|
4275
|
+
}
|
|
4276
|
+
render() {
|
|
4277
|
+
const props = isDemo()
|
|
4278
|
+
? useDemoPayoutDetailsCard(this)
|
|
4279
|
+
: usePayoutDetailsCard(this);
|
|
4280
|
+
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4281
|
+
}
|
|
4282
|
+
};
|
|
4283
|
+
function useDemoPayoutDetailsCard(props) {
|
|
4284
|
+
return cjs({
|
|
4285
|
+
states: {
|
|
4286
|
+
loading: false,
|
|
4287
|
+
error: false,
|
|
4288
|
+
thresholdBalance: "$50",
|
|
4289
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4290
|
+
badgeStatus: "nextPayout",
|
|
4291
|
+
payoutType: "BANK_TRANSFER",
|
|
4292
|
+
nextPayoutDate: "March 14, 2024",
|
|
4293
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
4294
|
+
otherCurrencies: false,
|
|
4295
|
+
hasW9Pending: false,
|
|
4296
|
+
hasDatePending: true,
|
|
4297
|
+
cardNumberPreview: "XX2381",
|
|
4298
|
+
balance: "20.00 USD",
|
|
4299
|
+
},
|
|
4300
|
+
text: props.getTextProps(),
|
|
4301
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4302
|
+
}
|
|
4303
|
+
|
|
4304
|
+
const TableCell = class {
|
|
4305
|
+
constructor(hostRef) {
|
|
4306
|
+
registerInstance(this, hostRef);
|
|
4307
|
+
/** @uiName Column span */
|
|
4308
|
+
this.colspan = 1;
|
|
4309
|
+
/** @uiName Padding */
|
|
4310
|
+
this.padding = "15px 10px";
|
|
4311
|
+
}
|
|
4312
|
+
render() {
|
|
4313
|
+
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4314
|
+
}
|
|
4315
|
+
};
|
|
4316
|
+
|
|
4317
|
+
const TableRow = class {
|
|
4318
|
+
constructor(hostRef) {
|
|
4319
|
+
registerInstance(this, hostRef);
|
|
4320
|
+
/**
|
|
4321
|
+
* @uiName Border
|
|
4322
|
+
*/
|
|
4323
|
+
this.border = "1px solid #EAEAEA";
|
|
4324
|
+
}
|
|
4325
|
+
render() {
|
|
4326
|
+
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4327
|
+
}
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
function getCurrentStep(user) {
|
|
4331
|
+
var _a, _b;
|
|
4332
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4333
|
+
return "/1";
|
|
4334
|
+
}
|
|
4335
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
4336
|
+
// If they do have a required document, look at current document
|
|
4337
|
+
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
4338
|
+
// Specific to custom CASH setting,
|
|
4339
|
+
if (payoutsAccount.hold &&
|
|
4340
|
+
payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
|
|
4341
|
+
return "/dashboard";
|
|
4342
|
+
return "/3";
|
|
4343
|
+
}
|
|
4344
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4345
|
+
return "/4";
|
|
4346
|
+
return "/dashboard";
|
|
4347
|
+
}
|
|
4348
|
+
function useTaxAndCash() {
|
|
4349
|
+
var _a, _b, _c, _d, _e;
|
|
4350
|
+
const host = _();
|
|
4351
|
+
const user = J();
|
|
4352
|
+
const locale = L();
|
|
4353
|
+
// State for current step of form
|
|
4354
|
+
const [step, setStep] = In({
|
|
4355
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4356
|
+
initialValue: "/loading",
|
|
4357
|
+
});
|
|
4358
|
+
// State for when to hide steps, or override certain actions
|
|
4359
|
+
const [context, _setContext] = In({
|
|
4360
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4361
|
+
initialValue: {},
|
|
4362
|
+
});
|
|
4363
|
+
// State to carry user form information into step 2
|
|
4364
|
+
const [userFormContext, _setUserFormContext] = In({
|
|
4365
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4366
|
+
initialValue: {
|
|
4367
|
+
firstName: undefined,
|
|
4368
|
+
lastName: undefined,
|
|
4369
|
+
email: undefined,
|
|
4370
|
+
countryCode: undefined,
|
|
4371
|
+
currency: undefined,
|
|
4372
|
+
},
|
|
4373
|
+
});
|
|
4374
|
+
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4375
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4376
|
+
initialValue: [],
|
|
4377
|
+
});
|
|
4378
|
+
const [_countriesContext, _setCountriesContext] = In({
|
|
4379
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4380
|
+
initialValue: [],
|
|
4381
|
+
});
|
|
4382
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4383
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4384
|
+
initialValue: [],
|
|
4385
|
+
});
|
|
4386
|
+
const { data, errors } = Sn({
|
|
4387
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4388
|
+
query: GET_USER,
|
|
4389
|
+
skip: !user,
|
|
4390
|
+
options: {
|
|
4391
|
+
batch: false,
|
|
4392
|
+
},
|
|
4393
|
+
});
|
|
4394
|
+
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) ||
|
|
4395
|
+
userFormContext.countryCode;
|
|
4396
|
+
Sn({
|
|
4397
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4398
|
+
query: GET_COUNTRIES,
|
|
4399
|
+
skip: !user,
|
|
4400
|
+
});
|
|
4401
|
+
const { data: financeNetworkData, refetch } = Sn({
|
|
4402
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4403
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4404
|
+
skip: !user,
|
|
4405
|
+
variables: {
|
|
4406
|
+
filter: getFinanceNetworkFilter(),
|
|
4407
|
+
},
|
|
4408
|
+
});
|
|
4409
|
+
const { data: currenciesData } = Sn({
|
|
4410
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4411
|
+
query: GET_CURRENCIES,
|
|
4412
|
+
skip: !user,
|
|
4413
|
+
variables: {
|
|
4414
|
+
locale,
|
|
4415
|
+
},
|
|
4416
|
+
});
|
|
4417
|
+
const supportedCurrencies = useMemo(() => {
|
|
4418
|
+
var _a, _b;
|
|
4419
|
+
// Filter out any currencies not supported by finance network settings
|
|
4420
|
+
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) => {
|
|
4421
|
+
var _a, _b;
|
|
4422
|
+
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);
|
|
4423
|
+
// Currency not in supported list
|
|
4424
|
+
if (!currency)
|
|
4425
|
+
return agg;
|
|
4426
|
+
// Currency already added to list
|
|
4427
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4428
|
+
return agg;
|
|
4429
|
+
// Currency not supported by selected country
|
|
4430
|
+
if (userFormContext.countryCode &&
|
|
4431
|
+
settings.countryCode !== countryCode)
|
|
4432
|
+
return agg;
|
|
4433
|
+
return [...agg, currency];
|
|
4434
|
+
}, []);
|
|
4435
|
+
return allValidCurrencies;
|
|
4436
|
+
}, [financeNetworkData, countryCode]);
|
|
4437
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4438
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4439
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4440
|
+
// filter out any duplicate countries and null countryCode
|
|
4441
|
+
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4442
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4443
|
+
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4444
|
+
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4445
|
+
.sort(sortByName)
|
|
4446
|
+
.reduce((prev, countryObj) => {
|
|
4447
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4448
|
+
return [countryObj, ...prev];
|
|
4449
|
+
return [...prev, countryObj];
|
|
4450
|
+
}, []), [availableCountries]);
|
|
4451
|
+
useEffect(() => {
|
|
4452
|
+
if (sortedCountries)
|
|
4453
|
+
setSortedCountriesContext(sortedCountries);
|
|
4454
|
+
}, [sortedCountries]);
|
|
4455
|
+
useEffect(() => {
|
|
4456
|
+
if (supportedCurrencies)
|
|
4457
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4458
|
+
}, [supportedCurrencies]);
|
|
4459
|
+
useEffect(() => {
|
|
4460
|
+
if (errors) {
|
|
4461
|
+
setStep("/error");
|
|
4462
|
+
return;
|
|
4463
|
+
}
|
|
4464
|
+
if (!host || !user)
|
|
4465
|
+
return;
|
|
4466
|
+
if (data) {
|
|
4467
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4468
|
+
if (!user || step !== "/loading")
|
|
4469
|
+
return;
|
|
4470
|
+
const currentStep = getCurrentStep(user);
|
|
4471
|
+
setStep(currentStep);
|
|
4472
|
+
}
|
|
4473
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4474
|
+
function getFinanceNetworkFilter() {
|
|
4475
|
+
var _a, _b, _c;
|
|
4476
|
+
if (step === "/1")
|
|
4477
|
+
return {};
|
|
4478
|
+
if (step === "/4")
|
|
4479
|
+
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 };
|
|
4480
|
+
if (countryCode)
|
|
4481
|
+
return {
|
|
4482
|
+
countryCode_eq: countryCode,
|
|
4483
|
+
};
|
|
4484
|
+
return {};
|
|
4485
|
+
}
|
|
4486
|
+
return {
|
|
4487
|
+
step,
|
|
4488
|
+
setStep,
|
|
4489
|
+
context,
|
|
4490
|
+
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4491
|
+
loading: step === "/loading",
|
|
4492
|
+
};
|
|
4493
|
+
}
|
|
4494
|
+
|
|
4495
|
+
const TaxAndCashMonolith = class {
|
|
4496
|
+
constructor(hostRef) {
|
|
4497
|
+
registerInstance(this, hostRef);
|
|
4498
|
+
/*---------------------------------------------------------------------------------
|
|
4499
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4500
|
+
-----------------------------------------------------------------------------------*/
|
|
4501
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4502
|
+
STEP 1 PROPS:
|
|
4503
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4504
|
+
/**
|
|
4505
|
+
* @uiName First name field label
|
|
4506
|
+
* @uiGroup Step 1 Properties
|
|
4507
|
+
*/
|
|
4508
|
+
this.step1_firstName = "First name";
|
|
4509
|
+
/**
|
|
4510
|
+
* @uiName Last name field label
|
|
4511
|
+
* @uiGroup Step 1 Properties
|
|
4512
|
+
*/
|
|
4513
|
+
this.step1_lastName = "Last name";
|
|
4514
|
+
/**
|
|
4515
|
+
* @uiName Email field label
|
|
4516
|
+
* @uiGroup Step 1 Properties
|
|
4517
|
+
*/
|
|
4518
|
+
this.step1_email = "Email";
|
|
4519
|
+
/**
|
|
4520
|
+
* @uiName Country field label
|
|
4521
|
+
* @uiGroup Step 1 Properties
|
|
4522
|
+
*/
|
|
4523
|
+
this.step1_country = "Country";
|
|
4524
|
+
/**
|
|
4525
|
+
* @uiName Phone number field label
|
|
4526
|
+
* @uiGroup Step 1 Properties
|
|
4527
|
+
*/
|
|
4528
|
+
this.step1_phoneNumber = "Phone number";
|
|
4529
|
+
/**
|
|
4530
|
+
* @uiName Address field label
|
|
4531
|
+
* @uiGroup Step 1 Properties
|
|
4532
|
+
*/
|
|
4533
|
+
this.step1_address = "Address";
|
|
4534
|
+
/**
|
|
4535
|
+
* @uiName City field label
|
|
4536
|
+
* @uiGroup Step 1 Properties
|
|
4537
|
+
*/
|
|
4538
|
+
this.step1_city = "City";
|
|
4539
|
+
/**
|
|
4540
|
+
* @uiName State field label for states
|
|
4541
|
+
* @uiGroup Step 1 Properties
|
|
4542
|
+
*/
|
|
4543
|
+
this.step1_state = "State";
|
|
4544
|
+
/**
|
|
4545
|
+
* @uiName State field label for provinces
|
|
4546
|
+
* @uiGroup Step 1 Properties
|
|
4547
|
+
*/
|
|
4548
|
+
this.step1_province = "Province";
|
|
4549
|
+
/**
|
|
4550
|
+
* @uiName State field label for regions
|
|
4551
|
+
* @uiGroup Step 1 Properties
|
|
4552
|
+
*/
|
|
4553
|
+
this.step1_region = "Region";
|
|
4554
|
+
/**
|
|
4555
|
+
* @uiName Postal code field label
|
|
4556
|
+
* @uiGroup Step 1 Properties
|
|
4557
|
+
*/
|
|
4558
|
+
this.step1_postalCode = "Postal code";
|
|
4559
|
+
/**
|
|
4560
|
+
* @uiName Currency field label
|
|
4561
|
+
* @uiGroup Step 1 Properties
|
|
4562
|
+
*/
|
|
4563
|
+
this.step1_currency = "Currency";
|
|
4564
|
+
/**
|
|
4565
|
+
* @uiName Currency field help text
|
|
4566
|
+
* @uiGroup Step 1 Properties
|
|
4567
|
+
*/
|
|
4568
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4569
|
+
/**
|
|
4570
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4571
|
+
* @uiName Terms and conditions checkbox
|
|
4572
|
+
* @uiGroup Step 1 Properties
|
|
4573
|
+
*/
|
|
4574
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4575
|
+
/**
|
|
4576
|
+
* @uiName Step 1 title
|
|
4577
|
+
* @uiGroup Step 1 Properties
|
|
4578
|
+
*/
|
|
4579
|
+
this.step1_personalInformation = "Personal Information";
|
|
4580
|
+
/**
|
|
4581
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4582
|
+
* @uiName Terms and conditions text
|
|
4583
|
+
* @uiGroup Step 1 Properties
|
|
4584
|
+
* @uiWidget textArea
|
|
4585
|
+
*/
|
|
4586
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4587
|
+
/**
|
|
4588
|
+
* The link that appears in the terms and conditions checkbox
|
|
4589
|
+
* @uiName Terms and conditions link
|
|
4590
|
+
* @uiGroup Step 1 Properties
|
|
4591
|
+
*/
|
|
4592
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4593
|
+
/**
|
|
4594
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4595
|
+
* @uiName Currency field placeholder text
|
|
4596
|
+
* @uiGroup Step 1 Properties
|
|
4597
|
+
*/
|
|
4598
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4599
|
+
/**
|
|
4600
|
+
|
|
4601
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4602
|
+
STEP 2 PROPS:
|
|
4603
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4604
|
+
/**
|
|
4605
|
+
* @uiName Step 2 title
|
|
4606
|
+
* @uiGroup Step 2 Properties
|
|
4607
|
+
*/
|
|
4608
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4609
|
+
/**
|
|
4610
|
+
* Displayed under the title of this step.
|
|
4611
|
+
* @uiName Step 2 description
|
|
4612
|
+
* @uiGroup Step 2 Properties
|
|
4613
|
+
* @uiWidget textArea
|
|
4614
|
+
*/
|
|
4615
|
+
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.";
|
|
4616
|
+
/**
|
|
4617
|
+
* Displayed with indirect tax registration options.
|
|
4618
|
+
* @uiName Indirect tax details section title
|
|
4619
|
+
* @uiGroup Step 2 Properties
|
|
4620
|
+
*/
|
|
4621
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4622
|
+
/**
|
|
4623
|
+
* @uiName Registered for indirect tax option
|
|
4624
|
+
* @uiGroup Step 2 Properties
|
|
4625
|
+
* @uiWidget textArea
|
|
4626
|
+
*
|
|
4627
|
+
*/
|
|
4628
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4629
|
+
/**
|
|
4630
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4631
|
+
* @uiName Registered for indirect tax option description
|
|
4632
|
+
* @uiGroup Step 2 Properties
|
|
4633
|
+
*/
|
|
4634
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4635
|
+
/**
|
|
4636
|
+
* @uiName Not registered for indirect tax option
|
|
4637
|
+
* @uiGroup Step 2 Properties
|
|
4638
|
+
* @uiWidget textArea
|
|
4639
|
+
*/
|
|
4640
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4641
|
+
/**
|
|
4642
|
+
* Participants based in the US are considered not registered.
|
|
4643
|
+
* @uiName Not registered for indirect tax option description
|
|
4644
|
+
* @uiGroup Step 2 Properties
|
|
4645
|
+
*/
|
|
4646
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4647
|
+
/**
|
|
4648
|
+
* @uiName Region of indirect tax field label
|
|
4649
|
+
* @uiGroup Step 2 Properties
|
|
4650
|
+
*/
|
|
4651
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4652
|
+
/**
|
|
4653
|
+
* @uiName Indirect tax number field label
|
|
4654
|
+
* @uiGroup Step 2 Properties
|
|
4655
|
+
*/
|
|
4656
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4657
|
+
/**
|
|
4658
|
+
* @uiName Province field label
|
|
4659
|
+
* @uiGroup Step 2 Properties
|
|
4660
|
+
*/
|
|
4661
|
+
this.step2_province = "Province";
|
|
4662
|
+
/**
|
|
4663
|
+
* @uiName Missing indirect tax number error message
|
|
4664
|
+
* @uiGroup Step 2 Properties
|
|
4665
|
+
*/
|
|
4666
|
+
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";
|
|
4667
|
+
/**
|
|
4668
|
+
* Displayed to participants registered for QST.
|
|
4669
|
+
* @uiName QST number field label
|
|
4670
|
+
* @uiGroup Step 2 Properties
|
|
4671
|
+
*/
|
|
4672
|
+
this.step2_qstNumber = "QST number";
|
|
4673
|
+
/**
|
|
4674
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4675
|
+
* @uiName QST tax checkbox
|
|
4676
|
+
* @uiGroup Step 2 Properties
|
|
4677
|
+
*/
|
|
4678
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4679
|
+
/**
|
|
4680
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4681
|
+
* @uiName Spain income tax checkbox
|
|
4682
|
+
* @uiGroup Step 2 Properties
|
|
4683
|
+
* @uiWidget textArea
|
|
4684
|
+
*/
|
|
4685
|
+
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.";
|
|
4686
|
+
/**
|
|
4687
|
+
* Displayed to participants registered in Spain.
|
|
4688
|
+
* @uiName Sub-region of indirect tax field label
|
|
4689
|
+
* @uiGroup Step 2 Properties
|
|
4690
|
+
*/
|
|
4691
|
+
this.step2_subRegion = "Sub-region";
|
|
4692
|
+
/**
|
|
4693
|
+
* @uiName Income tax field label
|
|
4694
|
+
* @uiGroup Step 2 Properties
|
|
4695
|
+
*/
|
|
4696
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4697
|
+
/**
|
|
4698
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4699
|
+
* @uiName Submission confirmation alert
|
|
4700
|
+
* @uiGroup Step 2 Properties
|
|
4701
|
+
* @uiWidget textArea
|
|
4702
|
+
*/
|
|
4703
|
+
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.";
|
|
4704
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4705
|
+
STEP 3 PROPS:
|
|
4706
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4707
|
+
/**
|
|
4708
|
+
* @uiName Step 3 title
|
|
4709
|
+
* @uiGroup Step 3 Properties
|
|
4710
|
+
*/
|
|
4711
|
+
this.step3_taxForm = "Tax form";
|
|
4712
|
+
/**
|
|
4713
|
+
* Display the type of tax form that the participant must submit.
|
|
4714
|
+
* @uiName Tax form name
|
|
4715
|
+
* @uiGroup Step 3 Properties
|
|
4716
|
+
*/
|
|
4717
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4718
|
+
/**
|
|
4719
|
+
* @uiName Participant type field label
|
|
4720
|
+
* @uiGroup Step 3 Properties
|
|
4721
|
+
*/
|
|
4722
|
+
this.step3_participantType = "Participant type";
|
|
4723
|
+
/**
|
|
4724
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4725
|
+
* @uiName Business representative participant type label
|
|
4726
|
+
* @uiGroup Step 3 Properties
|
|
4727
|
+
*/
|
|
4728
|
+
this.step3_businessEntity = "I represent a business";
|
|
4729
|
+
/**
|
|
4730
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4731
|
+
* @uiName Individual participant type label
|
|
4732
|
+
* @uiGroup Step 3 Properties
|
|
4733
|
+
*/
|
|
4734
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4735
|
+
/**
|
|
4736
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4737
|
+
* @uiName W-9 tax form description
|
|
4738
|
+
* @uiGroup Step 3 Properties
|
|
4739
|
+
* @uiWidget textArea
|
|
4740
|
+
*/
|
|
4741
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4742
|
+
/**
|
|
4743
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4744
|
+
* @uiName W-8 BEN tax form description
|
|
4745
|
+
* @uiGroup Step 3 Properties
|
|
4746
|
+
* @uiWidget textArea
|
|
4747
|
+
*/
|
|
4748
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4749
|
+
/**
|
|
4750
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4751
|
+
* @uiName W-8 BEN-E tax form description
|
|
4752
|
+
* @uiGroup Step 3 Properties
|
|
4753
|
+
* @uiWidget textArea
|
|
4754
|
+
*/
|
|
4755
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
4756
|
+
/**
|
|
4757
|
+
* This appears inside the Docusign frame.
|
|
4758
|
+
* @uiName Docusign session expired message
|
|
4759
|
+
* @uiGroup Step 3 Properties
|
|
4760
|
+
* @uiWidget textArea
|
|
4761
|
+
*/
|
|
4762
|
+
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.";
|
|
4763
|
+
/**
|
|
4764
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4765
|
+
* @uiName Docusign timed session message
|
|
4766
|
+
* @uiGroup Step 3 Properties
|
|
4767
|
+
* @uiWidget textArea
|
|
4768
|
+
*/
|
|
4769
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4770
|
+
/**
|
|
4771
|
+
* This appears inside the Docusign frame.
|
|
4772
|
+
* @uiName Docusign form error message
|
|
4773
|
+
* @uiGroup Step 3 Properties
|
|
4774
|
+
* @uiWidget textArea
|
|
4775
|
+
*/
|
|
4776
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4777
|
+
/**
|
|
4778
|
+
* @uiName Refresh page button label
|
|
4779
|
+
* @uiGroup Step 3 Properties
|
|
4780
|
+
*/
|
|
4781
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4782
|
+
/**
|
|
4783
|
+
* @uiName Exit button text
|
|
4784
|
+
* @uiGroup Step 3 Properties
|
|
4785
|
+
*/
|
|
4786
|
+
this.step3_exitButton = "Exit";
|
|
4787
|
+
/**
|
|
4788
|
+
* @uiName Information modal title
|
|
4789
|
+
* @uiGroup Step 3 Properties
|
|
4790
|
+
*/
|
|
4791
|
+
this.step3_modalTitle = "Important Note";
|
|
4792
|
+
/**
|
|
4793
|
+
* @uiName Information modal description text
|
|
4794
|
+
* @uiGroup Step 3 Properties
|
|
4795
|
+
*/
|
|
4796
|
+
this.step3_modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
|
|
4797
|
+
/**
|
|
4798
|
+
* @uiName Information modal button text
|
|
4799
|
+
* @uiGroup Step 3 Properties
|
|
4800
|
+
*/
|
|
4801
|
+
this.step3_modalButtonText = "I understand";
|
|
4802
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4803
|
+
STEP 4 PROPS:
|
|
4804
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4805
|
+
/**
|
|
4806
|
+
* @uiName Step 4 title
|
|
4807
|
+
* @uiGroup Step 4 Properties
|
|
4808
|
+
*/
|
|
4809
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4810
|
+
/**
|
|
4811
|
+
* @uiName Direct to bank payout option
|
|
4812
|
+
* @uiGroup Step 4 Properties
|
|
4813
|
+
*/
|
|
4814
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4815
|
+
/**
|
|
4816
|
+
* @uiName PayPal payout option
|
|
4817
|
+
* @uiGroup Step 4 Properties
|
|
4818
|
+
*/
|
|
4819
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4820
|
+
/**
|
|
4821
|
+
* @uiName Threshold balance payment schedule option
|
|
4822
|
+
* @uiGroup Step 4 Properties
|
|
4823
|
+
*/
|
|
4824
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4825
|
+
/**
|
|
4826
|
+
* @uiName Fixed day payment schedule option
|
|
4827
|
+
* @uiGroup Step 4 Properties
|
|
4828
|
+
*/
|
|
4829
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4830
|
+
/**
|
|
4831
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4832
|
+
* @uiName Payment day field label
|
|
4833
|
+
* @uiGroup Step 4 Properties
|
|
4834
|
+
*/
|
|
4835
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4836
|
+
/**
|
|
4837
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4838
|
+
* @uiName Payment threshold field label
|
|
4839
|
+
* @uiGroup Step 4 Properties
|
|
4840
|
+
*/
|
|
4841
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4842
|
+
/**
|
|
4843
|
+
* One of two payment day options
|
|
4844
|
+
* @uiName First of month payday option
|
|
4845
|
+
* @uiGroup Step 4 Properties
|
|
4846
|
+
*/
|
|
4847
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4848
|
+
/**
|
|
4849
|
+
* One of two payment day options
|
|
4850
|
+
* @uiName Fifteenth of month payday option
|
|
4851
|
+
* @uiGroup Step 4 Properties
|
|
4852
|
+
*/
|
|
4853
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4854
|
+
/**
|
|
4855
|
+
* @uiName Payment method section header
|
|
4856
|
+
* @uiGroup Step 4 Properties
|
|
4857
|
+
*/
|
|
4858
|
+
this.step4_paymentMethod = "Payment method";
|
|
4859
|
+
/**
|
|
4860
|
+
* @uiName Payment schedule section header
|
|
4861
|
+
* @uiGroup Step 4 Properties
|
|
4862
|
+
*/
|
|
4863
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4864
|
+
/**
|
|
4865
|
+
* @uiName Payment method section description
|
|
4866
|
+
* @uiGroup Step 4 Properties
|
|
4867
|
+
*/
|
|
4868
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4869
|
+
/**
|
|
4870
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4871
|
+
* @uiName PayPal email field label
|
|
4872
|
+
* @uiGroup Step 4 Properties
|
|
4873
|
+
*/
|
|
4874
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4875
|
+
/**
|
|
4876
|
+
* @uiName Bank country field label
|
|
4877
|
+
* @uiGroup Step 4 Properties
|
|
4878
|
+
*/
|
|
4879
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4880
|
+
/**
|
|
4881
|
+
* @uiName Beneficiary account field label
|
|
4882
|
+
* @uiGroup Step 4 Properties
|
|
4883
|
+
*/
|
|
4884
|
+
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4885
|
+
/**
|
|
4886
|
+
* @uiName Beneficiary account field description
|
|
4887
|
+
* @uiGroup Step 4 Properties
|
|
4888
|
+
*/
|
|
4889
|
+
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4890
|
+
/**
|
|
4891
|
+
* @uiName Bank account type field label
|
|
4892
|
+
* @uiGroup Step 4 Properties
|
|
4893
|
+
*/
|
|
4894
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4895
|
+
/**
|
|
4896
|
+
* @uiName Checking account option
|
|
4897
|
+
* @uiGroup Step 4 Properties
|
|
4898
|
+
*/
|
|
4899
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4900
|
+
/**
|
|
4901
|
+
* Label text for the savings account type select item
|
|
4902
|
+
* @uiName Savings account options
|
|
4903
|
+
* @uiGroup Step 4 Properties
|
|
4904
|
+
*/
|
|
4905
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4906
|
+
/**
|
|
4907
|
+
* @uiName Bank account number field label
|
|
4908
|
+
* @uiGroup Step 4 Properties
|
|
4909
|
+
*/
|
|
4910
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4911
|
+
/**
|
|
4912
|
+
* @uiName IBAN field label
|
|
4913
|
+
* @uiGroup Step 4 Properties
|
|
4914
|
+
*/
|
|
4915
|
+
this.step4_ibanLabel = "IBAN";
|
|
4916
|
+
/**
|
|
4917
|
+
* @uiName SWIFT code field label
|
|
4918
|
+
* @uiGroup Step 4 Properties
|
|
4919
|
+
*/
|
|
4920
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4921
|
+
/**
|
|
4922
|
+
* @uiName Routing code field label
|
|
4923
|
+
* @uiGroup Step 4 Properties
|
|
4924
|
+
*/
|
|
4925
|
+
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} }";
|
|
4926
|
+
/**
|
|
4927
|
+
* @uiName Bank name field label
|
|
4928
|
+
* @uiGroup Step 4 Properties
|
|
4929
|
+
*/
|
|
4930
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4931
|
+
/**
|
|
4932
|
+
* @uiName Classification entity field label
|
|
4933
|
+
* @uiGroup Step 4 Properties
|
|
4934
|
+
*/
|
|
4935
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4936
|
+
/**
|
|
4937
|
+
* One of three options listed for the classification field
|
|
4938
|
+
* @uiName Business classification option
|
|
4939
|
+
* @uiGroup Step 4 Properties
|
|
4940
|
+
*/
|
|
4941
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4942
|
+
/**
|
|
4943
|
+
* One of three options listed for the classification field
|
|
4944
|
+
* @uiName Individual classification option
|
|
4945
|
+
* @uiGroup Step 4 Properties
|
|
4946
|
+
*/
|
|
4947
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4948
|
+
/**
|
|
4949
|
+
* One of three options listed for the classification field
|
|
4950
|
+
* @uiName Foreign classification option
|
|
4951
|
+
* @uiGroup Step 4 Properties
|
|
4952
|
+
*/
|
|
4953
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4954
|
+
/**
|
|
4955
|
+
* @uiName Classification CPF field label
|
|
4956
|
+
* @uiGroup Step 4 Properties
|
|
4957
|
+
*/
|
|
4958
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4959
|
+
/**
|
|
4960
|
+
* @uiName Patronymic name field label
|
|
4961
|
+
* @uiGroup Step 4 Properties
|
|
4962
|
+
*/
|
|
4963
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4964
|
+
/**
|
|
4965
|
+
* @uiName VO code field label
|
|
4966
|
+
* @uiGroup Step 4 Properties
|
|
4967
|
+
*/
|
|
4968
|
+
this.step4_voCodeLabel = "VO code";
|
|
4969
|
+
/**
|
|
4970
|
+
* @uiName Agency code field label
|
|
4971
|
+
* @uiGroup Step 4 Properties
|
|
4972
|
+
*/
|
|
4973
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4974
|
+
/**
|
|
4975
|
+
* @uiName Branch code field label
|
|
4976
|
+
* @uiGroup Step 4 Properties
|
|
4977
|
+
*/
|
|
4978
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4979
|
+
/**
|
|
4980
|
+
* Label text for the classification input field
|
|
4981
|
+
* @uiName Classification field label
|
|
4982
|
+
* @uiGroup Step 4 Properties
|
|
4983
|
+
*/
|
|
4984
|
+
this.step4_classificationLabel = "Classification";
|
|
4985
|
+
/**
|
|
4986
|
+
* @uiName Taxpayer ID field label
|
|
4987
|
+
* @uiGroup Step 4 Properties
|
|
4988
|
+
*/
|
|
4989
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4990
|
+
/**
|
|
4991
|
+
* @uiName Bank address field label
|
|
4992
|
+
* @uiGroup Step 4 Properties
|
|
4993
|
+
*/
|
|
4994
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4995
|
+
/**
|
|
4996
|
+
* @uiName Bank city field label
|
|
4997
|
+
* @uiGroup Step 4 Properties
|
|
4998
|
+
*/
|
|
4999
|
+
this.step4_bankCityLabel = "Bank city";
|
|
5000
|
+
/**
|
|
5001
|
+
* @uiName Bank province/state field label
|
|
5002
|
+
* @uiGroup Step 4 Properties
|
|
5003
|
+
*/
|
|
5004
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
5005
|
+
/**
|
|
5006
|
+
* @uiName Bank postal code field label
|
|
5007
|
+
* @uiGroup Step 4 Properties
|
|
5008
|
+
*/
|
|
5009
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
5010
|
+
/**
|
|
5011
|
+
* Default payment method to the participants’ bank account.
|
|
5012
|
+
* @uiName EFT withdrawal payment method
|
|
5013
|
+
* @uiGroup Step 4 Properties
|
|
5014
|
+
*/
|
|
5015
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
5016
|
+
/**
|
|
5017
|
+
* @uiName FX Wire Processing fee text
|
|
5018
|
+
* @uiGroup Step 4 Properties
|
|
5019
|
+
*/
|
|
5020
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
5021
|
+
/**
|
|
5022
|
+
* @uiName Text for verify email dialog
|
|
5023
|
+
* @uiGroup Step 4 Properties
|
|
5024
|
+
*/
|
|
5025
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
5026
|
+
/**
|
|
5027
|
+
* @uiName Verify code widget header text
|
|
5028
|
+
* @uiGroup Step 4 Properties
|
|
5029
|
+
*/
|
|
5030
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5031
|
+
/**
|
|
5032
|
+
* @uiName Information modal title
|
|
5033
|
+
* @uiGroup Step 4 Properties
|
|
5034
|
+
*/
|
|
5035
|
+
this.step4_modalTitle = "Important Note";
|
|
5036
|
+
/**
|
|
5037
|
+
* @uiName Information modal description text
|
|
5038
|
+
* @uiGroup Step 4 Properties
|
|
5039
|
+
*/
|
|
5040
|
+
this.step4_modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
|
|
5041
|
+
/**
|
|
5042
|
+
* @uiName Information modal button text
|
|
5043
|
+
* @uiGroup Step 4 Properties
|
|
5044
|
+
*/
|
|
5045
|
+
this.step4_modalButtonText = "I understand, update my information";
|
|
5046
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5047
|
+
DASHBOARD PROPS:
|
|
5048
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5049
|
+
/**
|
|
5050
|
+
* @uiName Active tax form badge label
|
|
5051
|
+
* @uiGroup Dashboard Properties
|
|
5052
|
+
*/
|
|
5053
|
+
this.dashboard_statusTextActive = "Active";
|
|
5054
|
+
/**
|
|
5055
|
+
* @uiName Invalid tax form badge label
|
|
5056
|
+
* @uiGroup Dashboard Properties
|
|
5057
|
+
*/
|
|
5058
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
5059
|
+
/**
|
|
5060
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
5061
|
+
*
|
|
5062
|
+
* @uiName Not verified tax form badge label
|
|
5063
|
+
* @uiGroup Dashboard Properties
|
|
5064
|
+
*/
|
|
5065
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
5066
|
+
/**
|
|
5067
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
5068
|
+
*
|
|
5069
|
+
* @uiName Required tax form badge label
|
|
5070
|
+
*/
|
|
5071
|
+
this.dashboard_statusTextRequired = "Required";
|
|
5072
|
+
/**
|
|
5073
|
+
* Additional text displayed next to the tax form's status badge
|
|
5074
|
+
*
|
|
5075
|
+
* @uiName Required tax form description
|
|
5076
|
+
*/
|
|
5077
|
+
this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
5078
|
+
/**
|
|
5079
|
+
* Additional text displayed next to the tax form's status badge
|
|
5080
|
+
*
|
|
5081
|
+
* @uiName Active W-9 description
|
|
5082
|
+
* @uiGroup Dashboard Properties
|
|
5083
|
+
*/
|
|
5084
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
5085
|
+
/**
|
|
5086
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5087
|
+
*
|
|
5088
|
+
* @uiName Active W-8 description
|
|
5089
|
+
* @uiGroup Dashboard Properties
|
|
5090
|
+
*/
|
|
5091
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
5092
|
+
/**
|
|
5093
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5094
|
+
*
|
|
5095
|
+
* @uiName Tax form in review description
|
|
5096
|
+
* @uiGroup Dashboard Properties
|
|
5097
|
+
*/
|
|
5098
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
5099
|
+
/**
|
|
5100
|
+
* Part of the alert displayed at the top of the page.
|
|
5101
|
+
*
|
|
5102
|
+
* @uiName Inactive W-9 error message title
|
|
5103
|
+
* @uiGroup Dashboard Properties
|
|
5104
|
+
* @uiWidget textArea
|
|
5105
|
+
*/
|
|
5106
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
|
|
5107
|
+
/**
|
|
5108
|
+
* Part of the alert displayed at the top of the page.
|
|
5109
|
+
*
|
|
5110
|
+
* @uiName Inactive W-8 error message title
|
|
5111
|
+
* @uiGroup Dashboard Properties
|
|
5112
|
+
* @uiWidget textArea
|
|
5113
|
+
*/
|
|
5114
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
5115
|
+
/**
|
|
5116
|
+
* Part of the alert displayed at the top of the page.
|
|
5117
|
+
*
|
|
5118
|
+
* @uiName Inactive W-9 error message description
|
|
5119
|
+
* @uiGroup Dashboard Properties
|
|
5120
|
+
* @uiWidget textArea
|
|
5121
|
+
*/
|
|
5122
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
5123
|
+
/**
|
|
5124
|
+
* Part of the alert displayed at the top of the page.
|
|
5125
|
+
*
|
|
5126
|
+
* @uiName Inactive W-8 error message description
|
|
5127
|
+
* @uiGroup Dashboard Properties
|
|
5128
|
+
*/
|
|
5129
|
+
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.";
|
|
5130
|
+
/**
|
|
5131
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5132
|
+
*
|
|
5133
|
+
* @uiName Invalid tax form description
|
|
5134
|
+
* @uiGroup Dashboard Properties
|
|
5135
|
+
* @uiWidget textArea
|
|
5136
|
+
*/
|
|
5137
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
5138
|
+
/**
|
|
5139
|
+
* @uiName Payout information section header
|
|
5140
|
+
* @uiGroup Dashboard Properties
|
|
5141
|
+
*/
|
|
5142
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
5143
|
+
/**
|
|
5144
|
+
* @uiName Tax document section header
|
|
5145
|
+
* @uiGroup Dashboard Properties
|
|
5146
|
+
*/
|
|
5147
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
5148
|
+
/**
|
|
5149
|
+
* Displayed under the tax document section header.
|
|
5150
|
+
*
|
|
5151
|
+
* @uiName Tax documents section description
|
|
5152
|
+
* @uiGroup Dashboard Properties
|
|
5153
|
+
*/
|
|
5154
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
5155
|
+
/**
|
|
5156
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
5157
|
+
*
|
|
5158
|
+
* @uiName Tax form not required text
|
|
5159
|
+
* @uiGroup Dashboard Properties
|
|
5160
|
+
* @uiWidget textArea
|
|
5161
|
+
*/
|
|
5162
|
+
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.";
|
|
5163
|
+
/**
|
|
5164
|
+
*
|
|
5165
|
+
* @uiName Indirect tax section header
|
|
5166
|
+
* @uiGroup Dashboard Properties
|
|
5167
|
+
*/
|
|
5168
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
5169
|
+
/**
|
|
5170
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5171
|
+
*
|
|
5172
|
+
* @uiName Canadian province of indirect tax
|
|
5173
|
+
* @uiGroup Dashboard Properties
|
|
5174
|
+
*/
|
|
5175
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5176
|
+
/**
|
|
5177
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5178
|
+
*
|
|
5179
|
+
* @uiName Indirect tax country
|
|
5180
|
+
* @uiGroup Dashboard Properties
|
|
5181
|
+
*/
|
|
5182
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5183
|
+
/**
|
|
5184
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5185
|
+
*
|
|
5186
|
+
* @uiName Spanish region of indirect tax
|
|
5187
|
+
* @uiGroup Dashboard Properties
|
|
5188
|
+
*/
|
|
5189
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5190
|
+
/**
|
|
5191
|
+
* @uiName Indirect tax tooltip
|
|
5192
|
+
* @uiGroup Dashboard Properties
|
|
5193
|
+
* @uiWidget textArea
|
|
5194
|
+
*/
|
|
5195
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5196
|
+
/**
|
|
5197
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5198
|
+
*
|
|
5199
|
+
* @uiName Indirect tax details
|
|
5200
|
+
* @uiGroup Dashboard Properties
|
|
5201
|
+
*/
|
|
5202
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5203
|
+
/**
|
|
5204
|
+
* @uiName Submit new tax form button label
|
|
5205
|
+
* @uiGroup Dashboard Properties
|
|
5206
|
+
*/
|
|
5207
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5208
|
+
/**
|
|
5209
|
+
* @uiName Edit payment info button label
|
|
5210
|
+
* @uiGroup Dashboard Properties
|
|
5211
|
+
*/
|
|
5212
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5213
|
+
/**
|
|
5214
|
+
* @uiName Not registered for indirect tax text
|
|
5215
|
+
* @uiGroup Dashboard Properties
|
|
5216
|
+
* @uiWidget textArea
|
|
5217
|
+
*/
|
|
5218
|
+
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.";
|
|
5219
|
+
/**
|
|
5220
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5221
|
+
* @uiName QST indirect tax details
|
|
5222
|
+
* @uiGroup Dashboard Properties
|
|
5223
|
+
*/
|
|
5224
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5225
|
+
/**
|
|
5226
|
+
* @uiName Spain sub-region indirect tax number
|
|
5227
|
+
* @uiGroup Dashboard Properties
|
|
5228
|
+
*/
|
|
5229
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5230
|
+
/**
|
|
5231
|
+
* @uiName Payout status badge
|
|
5232
|
+
* @uiGroup Dashboard Properties
|
|
5233
|
+
*/
|
|
5234
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5235
|
+
/**
|
|
5236
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5237
|
+
* @uiName Payout schedule by threshold text
|
|
5238
|
+
* @uiGroup Dashboard Properties
|
|
5239
|
+
*/
|
|
5240
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5241
|
+
/**
|
|
5242
|
+
* Shown before the participant’s bank account information.
|
|
5243
|
+
* @uiName Bank account field label
|
|
5244
|
+
* @uiGroup Dashboard Properties
|
|
5245
|
+
*/
|
|
5246
|
+
this.dashboard_accountText = "Account";
|
|
5247
|
+
/**
|
|
5248
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5249
|
+
* @uiName Invoice number column title
|
|
5250
|
+
* @uiGroup Dashboard Properties
|
|
5251
|
+
*/
|
|
5252
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5253
|
+
/**
|
|
5254
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5255
|
+
* @uiName Date column title
|
|
5256
|
+
* @uiGroup Dashboard Properties
|
|
5257
|
+
*/
|
|
5258
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5259
|
+
/**
|
|
5260
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5261
|
+
* @uiName Earnings column title
|
|
5262
|
+
* @uiGroup Dashboard Properties
|
|
5263
|
+
*/
|
|
5264
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5265
|
+
/**
|
|
5266
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5267
|
+
* @uiName Indirect tax column title
|
|
5268
|
+
* @uiGroup Dashboard Properties
|
|
5269
|
+
*/
|
|
5270
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5271
|
+
/**
|
|
5272
|
+
* Displayed under the payout details card.
|
|
5273
|
+
* @uiName Payout from impact text
|
|
5274
|
+
* @uiGroup Dashboard Properties
|
|
5275
|
+
* @uiWidget textArea
|
|
5276
|
+
*/
|
|
5277
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5278
|
+
/**
|
|
5279
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5280
|
+
* @uiName Earnings after tax column title
|
|
5281
|
+
* @uiGroup Dashboard Properties
|
|
5282
|
+
*/
|
|
5283
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5284
|
+
/**
|
|
5285
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5286
|
+
* @uiName Payout error message title
|
|
5287
|
+
* @uiGroup Dashboard Properties
|
|
5288
|
+
* @uiWidget textArea
|
|
5289
|
+
*/
|
|
5290
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5291
|
+
/**
|
|
5292
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5293
|
+
* @uiName Payout error message description
|
|
5294
|
+
* @uiGroup Dashboard Properties
|
|
5295
|
+
* @uiWidget textArea
|
|
5296
|
+
*/
|
|
5297
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5298
|
+
/**
|
|
5299
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5300
|
+
* @uiName Payout missing information subtext
|
|
5301
|
+
* @uiGroup Dashboard Properties
|
|
5302
|
+
*/
|
|
5303
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5304
|
+
/**
|
|
5305
|
+
* @uiName Invoice table description
|
|
5306
|
+
* @uiGroup Dashboard Properties
|
|
5307
|
+
*/
|
|
5308
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5309
|
+
/**
|
|
5310
|
+
* @uiName Invoice table previous page button label
|
|
5311
|
+
* @uiGroup Dashboard Properties
|
|
5312
|
+
*/
|
|
5313
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5314
|
+
/**
|
|
5315
|
+
* @uiName Invoice table next page button label
|
|
5316
|
+
* @uiGroup Dashboard Properties
|
|
5317
|
+
*/
|
|
5318
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5319
|
+
/**
|
|
5320
|
+
* @uiName Invoice table title
|
|
5321
|
+
* @uiGroup Dashboard Properties
|
|
5322
|
+
*/
|
|
5323
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5324
|
+
/**
|
|
5325
|
+
* @uiName Empty invoice table header
|
|
5326
|
+
* @uiGroup Dashboard Properties
|
|
5327
|
+
*/
|
|
5328
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5329
|
+
/**
|
|
5330
|
+
* @uiName Empty invoice table description
|
|
5331
|
+
* @uiGroup Dashboard Properties
|
|
5332
|
+
*/
|
|
5333
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5334
|
+
/**
|
|
5335
|
+
* @uiName Replace tax form modal header
|
|
5336
|
+
* @uiGroup Dashboard Properties
|
|
5337
|
+
*/
|
|
5338
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5339
|
+
/**
|
|
5340
|
+
* @uiName Replace tax form modal body text
|
|
5341
|
+
* @uiGroup Dashboard Properties
|
|
5342
|
+
* @uiWidget textArea
|
|
5343
|
+
*/
|
|
5344
|
+
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.";
|
|
5345
|
+
/**
|
|
5346
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5347
|
+
* @uiName Verification required alert message title
|
|
5348
|
+
* @uiGroup Dashboard Properties
|
|
5349
|
+
* @uiWidget textArea
|
|
5350
|
+
*/
|
|
5351
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5352
|
+
/**
|
|
5353
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5354
|
+
* @uiName Verification required alert message description
|
|
5355
|
+
* @uiGroup Dashboard Properties
|
|
5356
|
+
* @uiWidget textArea
|
|
5357
|
+
*/
|
|
5358
|
+
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}.";
|
|
5359
|
+
/**
|
|
5360
|
+
* @uiName Verification required internal alert header
|
|
5361
|
+
* @uiGroup Dashboard Properties
|
|
5362
|
+
* @uiWidget textArea
|
|
5363
|
+
*/
|
|
5364
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5365
|
+
/**
|
|
5366
|
+
* @uiName Verification required internal alert description
|
|
5367
|
+
* @uiGroup Dashboard Properties
|
|
5368
|
+
* @uiWidget textArea
|
|
5369
|
+
*/
|
|
5370
|
+
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}.";
|
|
5371
|
+
/**
|
|
5372
|
+
* @uiName Verification review internal alert header
|
|
5373
|
+
* @uiGroup Dashboard Properties
|
|
5374
|
+
* @uiWidget textArea
|
|
5375
|
+
*/
|
|
5376
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5377
|
+
/**
|
|
5378
|
+
* @uiName Verification review internal alert description
|
|
5379
|
+
* @uiGroup Dashboard Properties
|
|
5380
|
+
* @uiWidget textArea
|
|
5381
|
+
*/
|
|
5382
|
+
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}.";
|
|
5383
|
+
/**
|
|
5384
|
+
* @uiName Verification failed internal alert header
|
|
5385
|
+
* @uiGroup Dashboard Properties
|
|
5386
|
+
* @uiWidget textArea
|
|
5387
|
+
*/
|
|
5388
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5389
|
+
/**
|
|
5390
|
+
* @uiName Verification failed internal alert description
|
|
5391
|
+
* @uiGroup Dashboard Properties
|
|
5392
|
+
* @uiWidget textArea
|
|
5393
|
+
*/
|
|
5394
|
+
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}.";
|
|
5395
|
+
/**
|
|
5396
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5397
|
+
* @uiName Verification required alert button text
|
|
5398
|
+
* @uiGroup Dashboard Properties
|
|
5399
|
+
* @uiWidget textArea
|
|
5400
|
+
*/
|
|
5401
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5402
|
+
/**
|
|
5403
|
+
* @uiName W-9 payment threshold alert header
|
|
5404
|
+
* @uiGroup Dashboard Properties
|
|
5405
|
+
* @uiWidget textArea
|
|
5406
|
+
*/
|
|
5407
|
+
this.dashboard_w9RequiredHeader = "Your next payout is on hold";
|
|
5408
|
+
/**
|
|
5409
|
+
* @uiName W-9 payment threshold alert description
|
|
5410
|
+
* @uiGroup Dashboard Properties
|
|
5411
|
+
* @uiWidget textArea
|
|
5412
|
+
*/
|
|
5413
|
+
this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
|
|
5414
|
+
/**
|
|
5415
|
+
* @uiName Account review alert header
|
|
5416
|
+
*/
|
|
5417
|
+
this.dashboard_accountReviewHeader = "Your account is under review";
|
|
5418
|
+
/**
|
|
5419
|
+
* @uiName Account review alert description
|
|
5420
|
+
*/
|
|
5421
|
+
this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
5422
|
+
/**
|
|
5423
|
+
* @uiName Terms and Conditions text
|
|
5424
|
+
* @uiGroup Dashboard Properties
|
|
5425
|
+
*/
|
|
5426
|
+
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
5427
|
+
/**
|
|
5428
|
+
* @uiName W-9 payment threshold alert button text
|
|
5429
|
+
* @uiGroup Dashboard Properties
|
|
5430
|
+
* @uiWidget textArea
|
|
5431
|
+
*/
|
|
5432
|
+
this.dashboard_w9RequiredButtonText = "Submit W-9";
|
|
5433
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5434
|
+
GENERAL PROPS:
|
|
5435
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5436
|
+
/**
|
|
5437
|
+
* @uiName Setup progress
|
|
5438
|
+
* @uiGroup General Form Properties
|
|
5439
|
+
*/
|
|
5440
|
+
this.formStep = "Step {step} of {count}";
|
|
5441
|
+
/**
|
|
5442
|
+
* Part of the alert displayed at the top of the page.
|
|
5443
|
+
* @uiName Form submission error message title
|
|
5444
|
+
* @uiGroup General Form Properties
|
|
5445
|
+
* @uiWidget textArea
|
|
5446
|
+
*/
|
|
5447
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5448
|
+
/**
|
|
5449
|
+
* Part of the alert displayed at the top of the page.
|
|
5450
|
+
* @uiName Form submission error message description
|
|
5451
|
+
* @uiGroup General Form Properties
|
|
5452
|
+
* @uiWidget textArea
|
|
5453
|
+
*/
|
|
5454
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5455
|
+
/**
|
|
5456
|
+
* Displayed under a field that is missing required information.
|
|
5457
|
+
* @uiName Empty form field error message
|
|
5458
|
+
* @uiGroup General Form Properties
|
|
5459
|
+
*/
|
|
5460
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5461
|
+
/**
|
|
5462
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5463
|
+
* @uiName Invalid character error message
|
|
5464
|
+
* @uiGroup General Form Properties
|
|
5465
|
+
*/
|
|
5466
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5467
|
+
/**
|
|
5468
|
+
* Displayed under a field when it has an invalid entry.
|
|
5469
|
+
* @uiName Form field error message
|
|
5470
|
+
* @uiGroup General Form Properties
|
|
5471
|
+
*/
|
|
5472
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5473
|
+
/**
|
|
5474
|
+
* @uiName Continue button label
|
|
5475
|
+
* @uiGroup General Form Properties
|
|
5476
|
+
*/
|
|
5477
|
+
this.continueButton = "Continue";
|
|
5478
|
+
/**
|
|
5479
|
+
* @uiName Back button label
|
|
5480
|
+
* @uiGroup General Form Properties
|
|
5481
|
+
*/
|
|
5482
|
+
this.backButton = "Back";
|
|
5483
|
+
/**
|
|
5484
|
+
* @uiName Cancel button label
|
|
5485
|
+
* @uiGroup General Form Properties
|
|
5486
|
+
*/
|
|
5487
|
+
this.cancelButton = "Cancel";
|
|
5488
|
+
/**
|
|
5489
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5490
|
+
* @uiName Participant is a partner alert title
|
|
5491
|
+
* @uiGroup General Form Properties
|
|
5492
|
+
* @uiWidget textArea
|
|
5493
|
+
*/
|
|
5494
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5495
|
+
/**
|
|
5496
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5497
|
+
* @uiName Participant is a partner alert description
|
|
5498
|
+
* @uiGroup General Form Properties
|
|
5499
|
+
* @uiWidget textArea
|
|
5500
|
+
*/
|
|
5501
|
+
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.";
|
|
5502
|
+
/**
|
|
5503
|
+
* Placeholder text displayed in the country search dropdown
|
|
5504
|
+
* @uiName Country field placeholder text
|
|
5505
|
+
* @uiGroup General Form Properties
|
|
3628
5506
|
*/
|
|
3629
|
-
this.
|
|
5507
|
+
this.searchForCountryText = "Search for country..";
|
|
3630
5508
|
/**
|
|
3631
|
-
*
|
|
3632
|
-
* @uiName
|
|
5509
|
+
* Part of the alert displayed at the top of the page.
|
|
5510
|
+
* @uiName Page load error message title
|
|
5511
|
+
* @uiGroup General Form Properties
|
|
5512
|
+
* @uiWidget textArea
|
|
3633
5513
|
*/
|
|
3634
|
-
this.
|
|
5514
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
3635
5515
|
/**
|
|
3636
|
-
*
|
|
3637
|
-
* @uiName
|
|
5516
|
+
* Part of the alert displayed at the top of the page.
|
|
5517
|
+
* @uiName Page load error message description
|
|
5518
|
+
* @uiGroup General Form Properties
|
|
5519
|
+
* @uiWidget textArea
|
|
3638
5520
|
*/
|
|
3639
|
-
this.
|
|
5521
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
3640
5522
|
/**
|
|
3641
|
-
*
|
|
3642
|
-
* @uiName
|
|
5523
|
+
* Displayed at the top of the page on all set up steps.
|
|
5524
|
+
* @uiName Page description
|
|
5525
|
+
* @uiGroup General Form Properties
|
|
3643
5526
|
*/
|
|
3644
|
-
this.
|
|
5527
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5528
|
+
/**
|
|
5529
|
+
* Link text for contacting support team
|
|
5530
|
+
* @uiName Suport link text
|
|
5531
|
+
* @uiGroup General Form Properties
|
|
5532
|
+
*/
|
|
5533
|
+
this.supportLink = "support team";
|
|
3645
5534
|
/**
|
|
3646
|
-
*
|
|
5535
|
+
* Link text for Terms and Conditions
|
|
5536
|
+
* @uiName Terms and Conditions text
|
|
5537
|
+
* @uiGroup General Form Properties
|
|
3647
5538
|
*/
|
|
3648
|
-
this.
|
|
5539
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
3649
5540
|
h$1(this);
|
|
3650
5541
|
}
|
|
3651
5542
|
disconnectedCallback() { }
|
|
3652
|
-
|
|
5543
|
+
// this field is required prop
|
|
5544
|
+
getGeneralStepTextProps(prefix) {
|
|
3653
5545
|
const props = getProps(this);
|
|
3654
5546
|
return {
|
|
3655
|
-
...props,
|
|
5547
|
+
...extractProps(props, prefix),
|
|
5548
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5549
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5550
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5551
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5552
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5553
|
+
continueButton: props.continueButton,
|
|
5554
|
+
backButton: props.backButton,
|
|
5555
|
+
cancelButton: props.cancelButton,
|
|
5556
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5557
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5558
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5559
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5560
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5561
|
+
searchForCountryText: props.searchForCountryText,
|
|
5562
|
+
formStep: props.formStep,
|
|
5563
|
+
supportLink: props.supportLink,
|
|
3656
5564
|
};
|
|
3657
5565
|
}
|
|
3658
5566
|
render() {
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
5567
|
+
var _a, _b;
|
|
5568
|
+
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5569
|
+
// @ts-ignore
|
|
5570
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5571
|
+
const textProps = getProps(this);
|
|
5572
|
+
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5573
|
+
if (prop === "demoData")
|
|
5574
|
+
return;
|
|
5575
|
+
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5576
|
+
})));
|
|
5577
|
+
}
|
|
5578
|
+
switch (props.step) {
|
|
5579
|
+
case "/1":
|
|
5580
|
+
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5581
|
+
case "/2":
|
|
5582
|
+
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5583
|
+
case "/3":
|
|
5584
|
+
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5585
|
+
case "/4":
|
|
5586
|
+
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5587
|
+
case "/dashboard":
|
|
5588
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5589
|
+
case "/error":
|
|
5590
|
+
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
|
|
5591
|
+
id: "loadingErrorAlertDescription",
|
|
5592
|
+
defaultMessage: this.loadingErrorAlertDescription,
|
|
5593
|
+
}, {
|
|
5594
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
|
|
5595
|
+
}) }));
|
|
5596
|
+
}
|
|
5597
|
+
return h(LoadingView, null);
|
|
3663
5598
|
}
|
|
3664
5599
|
};
|
|
3665
|
-
function
|
|
5600
|
+
function useDemoTaxAndCash(props) {
|
|
5601
|
+
const [step, setStep] = In({
|
|
5602
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5603
|
+
initialValue: "/1",
|
|
5604
|
+
});
|
|
3666
5605
|
return cjs({
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
error: false,
|
|
3670
|
-
thresholdBalance: "$50",
|
|
3671
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3672
|
-
badgeStatus: "nextPayout",
|
|
3673
|
-
payoutType: "BANK_TRANSFER",
|
|
3674
|
-
nextPayoutDate: "March 14, 2024",
|
|
3675
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
3676
|
-
otherCurrencies: false,
|
|
3677
|
-
hasW9Pending: false,
|
|
3678
|
-
hasDatePending: true,
|
|
3679
|
-
cardNumberPreview: "XX2381",
|
|
3680
|
-
balance: "20.00 USD",
|
|
3681
|
-
},
|
|
3682
|
-
text: props.getTextProps(),
|
|
5606
|
+
step,
|
|
5607
|
+
setStep,
|
|
3683
5608
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3684
5609
|
}
|
|
3685
5610
|
|
|
3686
|
-
const style$
|
|
3687
|
-
|
|
5611
|
+
const style$6 = {
|
|
5612
|
+
ErrorAlertContainer: {
|
|
5613
|
+
"&::part(base)": {
|
|
5614
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
5615
|
+
borderTop: "none",
|
|
5616
|
+
},
|
|
5617
|
+
"& sl-icon::part(base)": {
|
|
5618
|
+
color: "var(--sl-color-danger-500)",
|
|
5619
|
+
},
|
|
5620
|
+
},
|
|
5621
|
+
WarningAlertContainer: {
|
|
5622
|
+
"&::part(base)": {
|
|
5623
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5624
|
+
borderTop: "none",
|
|
5625
|
+
maxWidth: "600px",
|
|
5626
|
+
},
|
|
5627
|
+
"& sl-icon::part(base)": {
|
|
5628
|
+
color: "var(--sl-color-warning-500)",
|
|
5629
|
+
},
|
|
5630
|
+
},
|
|
5631
|
+
WarningHoldAlertContainer: {
|
|
5632
|
+
marginLeft: "-20px",
|
|
3688
5633
|
"&::part(base)": {
|
|
3689
|
-
|
|
3690
|
-
|
|
5634
|
+
maxWidth: "850px",
|
|
5635
|
+
border: "none",
|
|
5636
|
+
backgroundColor: "transparent",
|
|
5637
|
+
},
|
|
5638
|
+
"& sl-icon::part(base)": {
|
|
5639
|
+
color: "var(--sl-color-warning-500)",
|
|
3691
5640
|
},
|
|
3692
5641
|
},
|
|
3693
|
-
|
|
5642
|
+
ErrorHoldAlertContainer: {
|
|
5643
|
+
marginLeft: "-20px",
|
|
3694
5644
|
"&::part(base)": {
|
|
3695
|
-
|
|
3696
|
-
|
|
5645
|
+
maxWidth: "850px",
|
|
5646
|
+
border: "none",
|
|
5647
|
+
backgroundColor: "transparent",
|
|
5648
|
+
},
|
|
5649
|
+
"& sl-icon::part(base)": {
|
|
5650
|
+
color: "var(--sl-color-danger-500)",
|
|
3697
5651
|
},
|
|
3698
5652
|
},
|
|
3699
|
-
|
|
5653
|
+
ExpiringSoonAlertContainer: {
|
|
3700
5654
|
"&::part(base)": {
|
|
3701
|
-
backgroundColor: "var(--
|
|
3702
|
-
|
|
5655
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5656
|
+
borderTop: "none",
|
|
3703
5657
|
},
|
|
3704
5658
|
},
|
|
3705
5659
|
BankingInformationContainer: {
|
|
@@ -3707,7 +5661,7 @@ const style$5 = {
|
|
|
3707
5661
|
},
|
|
3708
5662
|
IndirectTaxPreviewContainer: {
|
|
3709
5663
|
marginTop: "var(--sl-spacing-x-large)",
|
|
3710
|
-
borderTop: "
|
|
5664
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3711
5665
|
},
|
|
3712
5666
|
IndirectTaxPreviewHeaderContainer: {
|
|
3713
5667
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -3716,7 +5670,7 @@ const style$5 = {
|
|
|
3716
5670
|
display: "flex",
|
|
3717
5671
|
gap: "var(--sl-spacing-x-small)",
|
|
3718
5672
|
"&::part(base)": {
|
|
3719
|
-
color: "var(--
|
|
5673
|
+
color: "var(--sl-color-green-500)",
|
|
3720
5674
|
},
|
|
3721
5675
|
},
|
|
3722
5676
|
IndirectTaxPreviewDetails: {
|
|
@@ -3730,11 +5684,11 @@ const style$5 = {
|
|
|
3730
5684
|
marginTop: "var(--sl-spacing-medium)",
|
|
3731
5685
|
},
|
|
3732
5686
|
NotRegisteredIndirectTaxText: {
|
|
3733
|
-
color: "var(--
|
|
5687
|
+
color: "var(--sl-color-gray-500)",
|
|
3734
5688
|
},
|
|
3735
5689
|
TaxDocumentsContainer: {
|
|
3736
5690
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
3737
|
-
borderTop: "1px solid var(--
|
|
5691
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3738
5692
|
},
|
|
3739
5693
|
TaxDocumentsSectionHeaderContainer: {
|
|
3740
5694
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -3751,7 +5705,7 @@ const style$5 = {
|
|
|
3751
5705
|
"& p": {
|
|
3752
5706
|
margin: "0",
|
|
3753
5707
|
paddingTop: "2px",
|
|
3754
|
-
color: "var(--
|
|
5708
|
+
color: "var(--sl-color-gray-500)",
|
|
3755
5709
|
},
|
|
3756
5710
|
},
|
|
3757
5711
|
StatusAlert: {
|
|
@@ -3786,7 +5740,7 @@ const style$5 = {
|
|
|
3786
5740
|
},
|
|
3787
5741
|
TaxDocSubtext: {
|
|
3788
5742
|
margin: "0",
|
|
3789
|
-
color: "var(--
|
|
5743
|
+
color: "var(--sl-color-neutral-500)",
|
|
3790
5744
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3791
5745
|
fontSize: "var(--sl-font-size-small)",
|
|
3792
5746
|
marginLeft: "1px",
|
|
@@ -3807,66 +5761,28 @@ const style$5 = {
|
|
|
3807
5761
|
gap: "6px",
|
|
3808
5762
|
},
|
|
3809
5763
|
DescriptionText: {
|
|
3810
|
-
color: "var(--
|
|
5764
|
+
color: "var(--sl-color-gray-500)",
|
|
3811
5765
|
fontSize: "var(--sl-font-size-x-small)",
|
|
3812
5766
|
marginBottom: "none",
|
|
3813
5767
|
maxWidth: "492px",
|
|
3814
5768
|
},
|
|
3815
5769
|
PageDescriptionText: {
|
|
3816
|
-
color: "var(--
|
|
5770
|
+
color: "var(--sl-color-neutral-500)",
|
|
3817
5771
|
fontSize: "var(--sl-font-size-medium)",
|
|
3818
5772
|
marginTop: "0",
|
|
3819
5773
|
},
|
|
3820
|
-
WarningButton: {
|
|
3821
|
-
"&::part(base)": {
|
|
3822
|
-
marginTop: "20px",
|
|
3823
|
-
borderColor: "var(--sqm-warning-color-border)",
|
|
3824
|
-
color: "var(--sqm-warning-color-text)",
|
|
3825
|
-
background: "var(--sqm-warning-color-background)",
|
|
3826
|
-
"&:hover": {
|
|
3827
|
-
background: "var(--sqm-warning-color-icon)",
|
|
3828
|
-
},
|
|
3829
|
-
},
|
|
3830
|
-
},
|
|
3831
|
-
ErrorButton: {
|
|
3832
|
-
"&::part(base)": {
|
|
3833
|
-
marginTop: "20px",
|
|
3834
|
-
borderColor: "var(--sqm-danger-color-border)",
|
|
3835
|
-
color: "var(--sqm-danger-color-text)",
|
|
3836
|
-
background: "var(--sqm-danger-color-background)",
|
|
3837
|
-
"&:hover": {
|
|
3838
|
-
background: "var(--sqm-danger-color-icon)",
|
|
3839
|
-
},
|
|
3840
|
-
},
|
|
3841
|
-
},
|
|
3842
|
-
SuccessButton: {
|
|
3843
|
-
"&::part(base)": {
|
|
3844
|
-
marginTop: "20px",
|
|
3845
|
-
borderColor: "var(--sqm-success-color-border)",
|
|
3846
|
-
color: "var(--sqm-success-color-text)",
|
|
3847
|
-
background: "var(--sqm-success-color-background)",
|
|
3848
|
-
"&:hover": {
|
|
3849
|
-
background: "var(--sqm-success-color-icon)",
|
|
3850
|
-
},
|
|
3851
|
-
},
|
|
3852
|
-
},
|
|
3853
5774
|
Dialog: {
|
|
3854
5775
|
"&::part(panel)": {
|
|
3855
5776
|
maxWidth: "420px",
|
|
3856
5777
|
},
|
|
3857
|
-
"&::part(header)": {
|
|
3858
|
-
display: "flex",
|
|
3859
|
-
alignItems: "center",
|
|
3860
|
-
justifyContent: "center",
|
|
3861
|
-
paddingTop: "var(--sl-spacing-large)",
|
|
3862
|
-
},
|
|
3863
5778
|
"&::part(close-button)": {
|
|
3864
5779
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
3865
5780
|
},
|
|
3866
5781
|
"&::part(title)": {
|
|
3867
|
-
fontSize: "var(--sl-font-size-large)",
|
|
5782
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
3868
5783
|
fontWeight: "600",
|
|
3869
|
-
|
|
5784
|
+
marginTop: "var(--sl-spacing-xxx-large)",
|
|
5785
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
3870
5786
|
},
|
|
3871
5787
|
"&::part(body)": {
|
|
3872
5788
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -3883,23 +5799,44 @@ const style$5 = {
|
|
|
3883
5799
|
},
|
|
3884
5800
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3885
5801
|
};
|
|
3886
|
-
const
|
|
3887
|
-
|
|
3888
|
-
font-family: var(--sqm-primary-font);
|
|
3889
|
-
}
|
|
3890
|
-
a {
|
|
3891
|
-
color: inherit;
|
|
3892
|
-
text-decoration: underline;
|
|
3893
|
-
cursor: pointer;
|
|
3894
|
-
}
|
|
3895
|
-
`;
|
|
3896
|
-
const sheet$4 = createStyleSheet(style$5);
|
|
3897
|
-
const styleString$4 = sheet$4.toString();
|
|
5802
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5803
|
+
const styleString$5 = sheet$5.toString();
|
|
3898
5804
|
const TaxAndCashDashboardView = (props) => {
|
|
3899
5805
|
var _a;
|
|
3900
5806
|
const { states, text, callbacks, slots } = props;
|
|
3901
5807
|
function getAlert(status) {
|
|
3902
5808
|
switch (status) {
|
|
5809
|
+
case "OVER_W9_THRESHOLD":
|
|
5810
|
+
if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
|
|
5811
|
+
return {
|
|
5812
|
+
header: text.w9RequiredHeader,
|
|
5813
|
+
description: intl.formatMessage({
|
|
5814
|
+
id: "w9RequiredDescription",
|
|
5815
|
+
defaultMessage: text.w9RequiredDescription,
|
|
5816
|
+
}, {
|
|
5817
|
+
termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
5818
|
+
}),
|
|
5819
|
+
button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
5820
|
+
alertType: "info",
|
|
5821
|
+
icon: "info-circle",
|
|
5822
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5823
|
+
};
|
|
5824
|
+
}
|
|
5825
|
+
else {
|
|
5826
|
+
return {
|
|
5827
|
+
header: text.payoutHoldAlertHeader,
|
|
5828
|
+
description: intl.formatMessage({
|
|
5829
|
+
id: "payoutHoldAlertDescription",
|
|
5830
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5831
|
+
}, {
|
|
5832
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5833
|
+
}),
|
|
5834
|
+
buttonText: null,
|
|
5835
|
+
alertType: "warning",
|
|
5836
|
+
icon: "exclamation-triangle",
|
|
5837
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5838
|
+
};
|
|
5839
|
+
}
|
|
3903
5840
|
case "VERIFICATION:REQUIRED":
|
|
3904
5841
|
return {
|
|
3905
5842
|
header: text.verificationRequiredHeader,
|
|
@@ -3911,6 +5848,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3911
5848
|
}),
|
|
3912
5849
|
buttonText: text.verificationRequiredButtonText,
|
|
3913
5850
|
alertType: "warning",
|
|
5851
|
+
icon: "exclamation-triangle",
|
|
5852
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3914
5853
|
};
|
|
3915
5854
|
case "VERIFICATION:INTERNAL":
|
|
3916
5855
|
return {
|
|
@@ -3922,6 +5861,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3922
5861
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3923
5862
|
}),
|
|
3924
5863
|
alertType: "warning",
|
|
5864
|
+
icon: "exclamation-triangle",
|
|
5865
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3925
5866
|
};
|
|
3926
5867
|
case "VERIFICATION:REVIEW":
|
|
3927
5868
|
return {
|
|
@@ -3933,6 +5874,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3933
5874
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3934
5875
|
}),
|
|
3935
5876
|
alertType: "warning",
|
|
5877
|
+
icon: "exclamation-triangle",
|
|
5878
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3936
5879
|
};
|
|
3937
5880
|
case "VERIFICATION:FAILED":
|
|
3938
5881
|
return {
|
|
@@ -3943,7 +5886,23 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3943
5886
|
}, {
|
|
3944
5887
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3945
5888
|
}),
|
|
3946
|
-
alertType: "
|
|
5889
|
+
alertType: "critical",
|
|
5890
|
+
icon: "exclamation-octagon",
|
|
5891
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5892
|
+
};
|
|
5893
|
+
case "ACCOUNT_REVIEW":
|
|
5894
|
+
return {
|
|
5895
|
+
header: text.accountReviewHeader,
|
|
5896
|
+
description: intl.formatMessage({
|
|
5897
|
+
id: "accountReviewDescription",
|
|
5898
|
+
defaultMessage: text.accountReviewDescription,
|
|
5899
|
+
}, {
|
|
5900
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5901
|
+
}),
|
|
5902
|
+
buttonText: null,
|
|
5903
|
+
alertType: "warning",
|
|
5904
|
+
icon: "exclamation-triangle",
|
|
5905
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3947
5906
|
};
|
|
3948
5907
|
case "HOLD":
|
|
3949
5908
|
return {
|
|
@@ -3956,22 +5915,24 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3956
5915
|
}),
|
|
3957
5916
|
buttonText: null,
|
|
3958
5917
|
alertType: "warning",
|
|
5918
|
+
icon: "exclamation-triangle",
|
|
5919
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3959
5920
|
};
|
|
3960
5921
|
default:
|
|
3961
5922
|
return;
|
|
3962
5923
|
}
|
|
3963
5924
|
}
|
|
3964
5925
|
const statusMap = {
|
|
3965
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
3966
|
-
h("sl-badge", {
|
|
5926
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5927
|
+
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3967
5928
|
h("p", null, intl.formatMessage({
|
|
3968
5929
|
id: `badgeTextAwaitingReview`,
|
|
3969
5930
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
3970
5931
|
}, {
|
|
3971
5932
|
dateSubmitted: states.dateSubmitted,
|
|
3972
5933
|
})))),
|
|
3973
|
-
ACTIVE: (h("div", { class: sheet$
|
|
3974
|
-
h("sl-badge", {
|
|
5934
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5935
|
+
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3975
5936
|
h("p", null, intl.formatMessage({
|
|
3976
5937
|
id: `badgeTextSubmittedOn`,
|
|
3977
5938
|
defaultMessage: states.documentType === "W9"
|
|
@@ -3980,13 +5941,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3980
5941
|
}, {
|
|
3981
5942
|
dateSubmitted: states.dateSubmitted,
|
|
3982
5943
|
})))),
|
|
3983
|
-
INACTIVE: (h("div", { class: sheet$
|
|
3984
|
-
h("sl-badge", {
|
|
5944
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5945
|
+
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3985
5946
|
h("p", null, text.invalidForm))),
|
|
5947
|
+
undefined: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5948
|
+
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
5949
|
+
h("p", null, intl.formatMessage({
|
|
5950
|
+
id: `requiredTaxForm`,
|
|
5951
|
+
defaultMessage: text.requiredTaxForm,
|
|
5952
|
+
}, {
|
|
5953
|
+
taxFormType: states.documentType,
|
|
5954
|
+
})))),
|
|
3986
5955
|
};
|
|
3987
5956
|
const alertMap = {
|
|
3988
|
-
INACTIVE: (h("
|
|
3989
|
-
h("
|
|
5957
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5958
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5959
|
+
h("strong", null, intl.formatMessage({
|
|
3990
5960
|
id: `taxAlertHeaderNotActive`,
|
|
3991
5961
|
defaultMessage: states.documentType === "W9"
|
|
3992
5962
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -3994,6 +5964,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3994
5964
|
}, {
|
|
3995
5965
|
documentType: states.documentTypeString,
|
|
3996
5966
|
})),
|
|
5967
|
+
h("br", null),
|
|
3997
5968
|
intl.formatMessage({
|
|
3998
5969
|
id: `taxAlertMessage`,
|
|
3999
5970
|
defaultMessage: states.documentType === "W9"
|
|
@@ -4031,74 +6002,79 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4031
6002
|
});
|
|
4032
6003
|
}
|
|
4033
6004
|
};
|
|
4034
|
-
const
|
|
6005
|
+
const alertInfo = getAlert(states.payoutStatus);
|
|
4035
6006
|
return (h("div", null,
|
|
4036
6007
|
h("div", null,
|
|
4037
|
-
h("style", { type: "text/css" }, styleString$
|
|
4038
|
-
h("
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
6008
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
6009
|
+
states.loadingError && (h("div", null,
|
|
6010
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
6011
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6012
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6013
|
+
h("br", null),
|
|
6014
|
+
intl.formatMessage({
|
|
6015
|
+
id: "loadingErrorAlertDescription",
|
|
6016
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
6017
|
+
}, {
|
|
6018
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
6019
|
+
})))),
|
|
6020
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
6021
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6022
|
+
h("strong", null, text.error.generalTitle),
|
|
6023
|
+
h("br", null),
|
|
4049
6024
|
intl.formatMessage({
|
|
4050
6025
|
id: "generalDescription",
|
|
4051
6026
|
defaultMessage: text.error.generalDescription,
|
|
4052
6027
|
}, {
|
|
4053
6028
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4054
6029
|
}))),
|
|
4055
|
-
|
|
4056
|
-
h("
|
|
4057
|
-
h("
|
|
4058
|
-
|
|
4059
|
-
|
|
6030
|
+
alertInfo && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
6031
|
+
h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
6032
|
+
h("strong", null, alertInfo.header),
|
|
6033
|
+
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
6034
|
+
alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
6035
|
+
alertInfo.button ? (alertInfo.button) : (h("div", { style: { display: "none" } })))),
|
|
6036
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4060
6037
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
4061
|
-
h("sl-button", { slot: "footer", type: "primary",
|
|
4062
|
-
h("sl-button", { slot: "footer", type: "
|
|
6038
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
6039
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4063
6040
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4064
6041
|
h("div", null,
|
|
4065
6042
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4066
|
-
h("
|
|
4067
|
-
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
6043
|
+
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4068
6044
|
slots.payoutDetailsCardSlot,
|
|
4069
|
-
!states.loading && (h("p", { class: sheet$
|
|
4070
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
4071
|
-
h("div", { class: sheet$
|
|
4072
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
4073
|
-
h("sl-skeleton", { class: sheet$
|
|
4074
|
-
h("sl-skeleton", { class: sheet$
|
|
4075
|
-
h("
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
h("div", { class: sheet$
|
|
4088
|
-
h("sl-skeleton", { class: sheet$
|
|
4089
|
-
h("sl-skeleton", { class: sheet$
|
|
4090
|
-
h("h3", { class: sheet$
|
|
6045
|
+
!states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
6046
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
6047
|
+
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
6048
|
+
h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
6049
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
6050
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
6051
|
+
h("div", null,
|
|
6052
|
+
h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
6053
|
+
h("div", { class: sheet$5.classes.StatusContainer },
|
|
6054
|
+
h("h3", null, intl.formatMessage({
|
|
6055
|
+
id: "section-subheader",
|
|
6056
|
+
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
6057
|
+
}, {
|
|
6058
|
+
documentType: states.documentTypeString || "W-9",
|
|
6059
|
+
})),
|
|
6060
|
+
h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
6061
|
+
states.noFormNeeded &&
|
|
6062
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
6063
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
6064
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
6065
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
6066
|
+
h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4091
6067
|
text.indirectTaxInfoSectionHeader,
|
|
4092
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4093
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
4094
|
-
h("div", { class: sheet$
|
|
4095
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
6068
|
+
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
6069
|
+
h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
6070
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
6071
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
4096
6072
|
id: "notRegisteredForTax",
|
|
4097
6073
|
defaultMessage: text.notRegisteredForTax,
|
|
4098
6074
|
}, {
|
|
4099
6075
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4100
6076
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4101
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
6077
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4102
6078
|
h("span", null, intl.formatMessage({
|
|
4103
6079
|
id: `indirectTaxDetails`,
|
|
4104
6080
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4121,7 +6097,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4121
6097
|
}, {
|
|
4122
6098
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4123
6099
|
})))),
|
|
4124
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
6100
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4125
6101
|
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 },
|
|
4126
6102
|
h("sqm-invoice-table-download-column", null),
|
|
4127
6103
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4131,6 +6107,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4131
6107
|
h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
4132
6108
|
};
|
|
4133
6109
|
|
|
6110
|
+
const GET_TAX_SETTING = dist.gql `
|
|
6111
|
+
query getTenantSettings {
|
|
6112
|
+
tenantSettings {
|
|
6113
|
+
enforceUsTaxCompliance
|
|
6114
|
+
}
|
|
6115
|
+
}
|
|
6116
|
+
`;
|
|
4134
6117
|
function getCountryName(countryCode, locale) {
|
|
4135
6118
|
if (!countryCode)
|
|
4136
6119
|
return undefined;
|
|
@@ -4166,15 +6149,18 @@ function getIndirectTaxType(taxInformation) {
|
|
|
4166
6149
|
return "Indirect Tax";
|
|
4167
6150
|
}
|
|
4168
6151
|
const useTaxAndCashDashboard = (props) => {
|
|
4169
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
6152
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
4170
6153
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
4171
6154
|
const setContext = En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
4172
6155
|
const [showDialog, setShowDialog] = useState(false);
|
|
4173
6156
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
6157
|
+
const { data: taxSettingRes } = wn(GET_TAX_SETTING, {});
|
|
4174
6158
|
const locale = L();
|
|
4175
6159
|
useEffect(() => {
|
|
4176
6160
|
// Clear override context once on submitted
|
|
4177
6161
|
setContext({});
|
|
6162
|
+
if (window.location.hash)
|
|
6163
|
+
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4178
6164
|
}, []);
|
|
4179
6165
|
const { data, loading, errors: userError, refetch, } = $n(USER_QUERY_NAMESPACE);
|
|
4180
6166
|
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;
|
|
@@ -4209,30 +6195,32 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4209
6195
|
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
4210
6196
|
};
|
|
4211
6197
|
}, []);
|
|
6198
|
+
const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
|
|
4212
6199
|
return {
|
|
4213
6200
|
states: {
|
|
4214
6201
|
dateSubmitted,
|
|
4215
6202
|
documentType,
|
|
4216
6203
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
4217
6204
|
documentTypeString: taxTypeToName(documentType),
|
|
4218
|
-
status: (
|
|
4219
|
-
subRegion: getSubRegionName((
|
|
4220
|
-
subRegionTaxNumber: (
|
|
4221
|
-
qstNumber: (
|
|
6205
|
+
status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
|
|
6206
|
+
subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
|
|
6207
|
+
subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
|
|
6208
|
+
qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
|
|
4222
6209
|
indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
|
|
4223
|
-
indirectTaxNumber: (
|
|
6210
|
+
indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
|
|
4224
6211
|
isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
|
|
4225
6212
|
province: provinceName,
|
|
4226
|
-
country: getCountryName((
|
|
4227
|
-
notRegistered: !((
|
|
6213
|
+
country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
|
|
6214
|
+
notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
|
|
4228
6215
|
noFormNeeded: !documentType,
|
|
4229
6216
|
disabled: loading,
|
|
4230
6217
|
loading,
|
|
4231
6218
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
4232
6219
|
showNewFormDialog: showDialog,
|
|
4233
|
-
hasHold: !!((
|
|
6220
|
+
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
4234
6221
|
payoutStatus,
|
|
4235
6222
|
veriffLoading,
|
|
6223
|
+
enforceUsTaxComplianceOption,
|
|
4236
6224
|
},
|
|
4237
6225
|
callbacks: {
|
|
4238
6226
|
onClick: () => setShowDialog(true),
|
|
@@ -4262,6 +6250,18 @@ const TaxAndCashDashboard = class {
|
|
|
4262
6250
|
* @uiName Not verified tax form badge label
|
|
4263
6251
|
*/
|
|
4264
6252
|
this.statusTextNotVerified = "Not Verified";
|
|
6253
|
+
/**
|
|
6254
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
6255
|
+
*
|
|
6256
|
+
* @uiName Required tax form badge label
|
|
6257
|
+
*/
|
|
6258
|
+
this.statusTextRequired = "Required";
|
|
6259
|
+
/**
|
|
6260
|
+
* Additional text displayed next to the tax form's status badge
|
|
6261
|
+
*
|
|
6262
|
+
* @uiName Required tax form description
|
|
6263
|
+
*/
|
|
6264
|
+
this.requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
4265
6265
|
/**
|
|
4266
6266
|
* Additional text displayed next to the tax form's status badge
|
|
4267
6267
|
*
|
|
@@ -4286,7 +6286,7 @@ const TaxAndCashDashboard = class {
|
|
|
4286
6286
|
* @uiName Inactive W-9 error message title
|
|
4287
6287
|
* @uiWidget textArea
|
|
4288
6288
|
*/
|
|
4289
|
-
this.taxAlertHeaderNotActiveW9 = "Your
|
|
6289
|
+
this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
|
|
4290
6290
|
/**
|
|
4291
6291
|
* Part of the alert displayed at the top of the page.
|
|
4292
6292
|
*
|
|
@@ -4328,13 +6328,6 @@ const TaxAndCashDashboard = class {
|
|
|
4328
6328
|
* @uiName Tax documents section description
|
|
4329
6329
|
*/
|
|
4330
6330
|
this.taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4331
|
-
/**
|
|
4332
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4333
|
-
*
|
|
4334
|
-
* @uiName Tax form not required text
|
|
4335
|
-
* @uiWidget textArea
|
|
4336
|
-
*/
|
|
4337
|
-
this.noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4338
6331
|
/**
|
|
4339
6332
|
*
|
|
4340
6333
|
* @uiName Indirect tax section header
|
|
@@ -4464,6 +6457,30 @@ const TaxAndCashDashboard = class {
|
|
|
4464
6457
|
* @uiName Verification required alert button text
|
|
4465
6458
|
*/
|
|
4466
6459
|
this.verificationRequiredButtonText = "Start Verification";
|
|
6460
|
+
/**
|
|
6461
|
+
* @uiName W-9 payment threshold alert header
|
|
6462
|
+
*/
|
|
6463
|
+
this.w9RequiredHeader = "Your next payout is on hold";
|
|
6464
|
+
/**
|
|
6465
|
+
* @uiName W-9 payment threshold alert description
|
|
6466
|
+
*/
|
|
6467
|
+
this.w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
|
|
6468
|
+
/**
|
|
6469
|
+
* @uiName Account review alert header
|
|
6470
|
+
*/
|
|
6471
|
+
this.accountReviewHeader = "Your account is under review";
|
|
6472
|
+
/**
|
|
6473
|
+
* @uiName Account review alert description
|
|
6474
|
+
*/
|
|
6475
|
+
this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
|
|
6476
|
+
/**
|
|
6477
|
+
* @uiName Terms and Conditions text
|
|
6478
|
+
*/
|
|
6479
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
6480
|
+
/**
|
|
6481
|
+
* @uiName W-9 payment threshold alert button text
|
|
6482
|
+
*/
|
|
6483
|
+
this.w9RequiredButtonText = "Submit W-9";
|
|
4467
6484
|
/**
|
|
4468
6485
|
* Part of the alert displayed at the top of the page.
|
|
4469
6486
|
* @uiName Form submission error message title
|
|
@@ -4531,11 +6548,6 @@ const TaxAndCashDashboard = class {
|
|
|
4531
6548
|
this.invoiceEmptyStateHeader = "View your invoice details";
|
|
4532
6549
|
/** @uiName Empty invoice table description */
|
|
4533
6550
|
this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
4534
|
-
/**
|
|
4535
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
4536
|
-
* @uiName Page description
|
|
4537
|
-
*/
|
|
4538
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4539
6551
|
/**
|
|
4540
6552
|
* @uiName Replace tax form modal header
|
|
4541
6553
|
*/
|
|
@@ -4552,11 +6564,6 @@ const TaxAndCashDashboard = class {
|
|
|
4552
6564
|
* @uiName Cancel button label
|
|
4553
6565
|
*/
|
|
4554
6566
|
this.cancelButton = "Cancel";
|
|
4555
|
-
/**
|
|
4556
|
-
* @undocumented
|
|
4557
|
-
* @componentState { "title": "Payouts on hold", "props": { "payoutStatus": "HOLD" }, "uiGroup": "Dashboard Properties" }
|
|
4558
|
-
*/
|
|
4559
|
-
this.stateController = "{}";
|
|
4560
6567
|
h$1(this);
|
|
4561
6568
|
}
|
|
4562
6569
|
disconnectedCallback() { }
|
|
@@ -4582,31 +6589,23 @@ const TaxAndCashDashboard = class {
|
|
|
4582
6589
|
}
|
|
4583
6590
|
};
|
|
4584
6591
|
function useDemoTaxAndCashDashboard(props) {
|
|
4585
|
-
// @ts-ignore
|
|
4586
6592
|
return cjs({
|
|
4587
6593
|
states: {
|
|
4588
6594
|
dateSubmitted: "today",
|
|
4589
6595
|
documentType: "W9",
|
|
4590
|
-
documentTypeString: "
|
|
6596
|
+
documentTypeString: "W-9",
|
|
6597
|
+
status: "ACTIVE",
|
|
4591
6598
|
country: "United States",
|
|
4592
|
-
indirectTaxNumber:
|
|
6599
|
+
indirectTaxNumber: 55555555,
|
|
4593
6600
|
indirectTaxType: "Indirect Tax",
|
|
4594
|
-
noFormNeeded:
|
|
6601
|
+
noFormNeeded: true,
|
|
4595
6602
|
disabled: false,
|
|
4596
6603
|
loading: false,
|
|
4597
6604
|
showNewFormDialog: false,
|
|
4598
6605
|
hasHold: false,
|
|
4599
|
-
|
|
4600
|
-
subRegionTaxNumber: undefined,
|
|
4601
|
-
qstNumber: undefined,
|
|
4602
|
-
isBusinessEntity: false,
|
|
4603
|
-
province: undefined,
|
|
4604
|
-
notRegistered: true,
|
|
4605
|
-
loadingError: false,
|
|
6606
|
+
showVerifyIdentity: false,
|
|
4606
6607
|
payoutStatus: "DONE",
|
|
4607
6608
|
veriffLoading: false,
|
|
4608
|
-
canEditPayoutInfo: true,
|
|
4609
|
-
status: "ACTIVE",
|
|
4610
6609
|
},
|
|
4611
6610
|
callbacks: {
|
|
4612
6611
|
onClick: () => console.debug("check step"),
|
|
@@ -4616,14 +6615,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4616
6615
|
onVerifyClick: () => console.log("verify"),
|
|
4617
6616
|
},
|
|
4618
6617
|
text: props.getTextProps(),
|
|
4619
|
-
|
|
4620
|
-
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
|
|
4621
|
-
states: {
|
|
4622
|
-
badgeStatus: "nextPayout",
|
|
4623
|
-
},
|
|
4624
|
-
} })),
|
|
4625
|
-
},
|
|
4626
|
-
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
6618
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4627
6619
|
}
|
|
4628
6620
|
|
|
4629
6621
|
const PHONE_EXTENSIONS = {
|
|
@@ -5597,19 +7589,19 @@ const PHONE_EXTENSIONS = {
|
|
|
5597
7589
|
},
|
|
5598
7590
|
};
|
|
5599
7591
|
|
|
5600
|
-
const style$
|
|
7592
|
+
const style$7 = {
|
|
5601
7593
|
FormWrapper: {},
|
|
5602
7594
|
ErrorInput: {
|
|
5603
7595
|
"&::part(base)": {
|
|
5604
|
-
border: "
|
|
7596
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
5605
7597
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
5606
7598
|
},
|
|
5607
7599
|
"&::part(help-text)": {
|
|
5608
|
-
color: "var(--
|
|
7600
|
+
color: "var(--sl-color-danger-500)",
|
|
5609
7601
|
},
|
|
5610
7602
|
},
|
|
5611
7603
|
ErrorText: {
|
|
5612
|
-
color: "var(--
|
|
7604
|
+
color: "var(--sl-color-danger-500)",
|
|
5613
7605
|
marginTop: "10px",
|
|
5614
7606
|
},
|
|
5615
7607
|
TextContainer: {
|
|
@@ -5640,6 +7632,9 @@ const style$6 = {
|
|
|
5640
7632
|
justifyContent: "flex-start",
|
|
5641
7633
|
flexDirection: "column",
|
|
5642
7634
|
},
|
|
7635
|
+
DescriptionText: {
|
|
7636
|
+
color: "var(--sl-color-neutral-500)",
|
|
7637
|
+
},
|
|
5643
7638
|
BoldText: {
|
|
5644
7639
|
fontWeight: "bold",
|
|
5645
7640
|
},
|
|
@@ -5648,8 +7643,28 @@ const style$6 = {
|
|
|
5648
7643
|
borderRadius: "50%",
|
|
5649
7644
|
},
|
|
5650
7645
|
},
|
|
7646
|
+
AlertContainer: {
|
|
7647
|
+
"&::part(base)": {
|
|
7648
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
7649
|
+
borderTop: "none",
|
|
7650
|
+
padding: "0 16px",
|
|
7651
|
+
},
|
|
7652
|
+
"& sl-icon::part(base)": {
|
|
7653
|
+
color: "var(--sl-color-danger-500)",
|
|
7654
|
+
},
|
|
7655
|
+
},
|
|
7656
|
+
PartnerAlertContainer: {
|
|
7657
|
+
"&::part(base)": {
|
|
7658
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
7659
|
+
borderTop: "none",
|
|
7660
|
+
padding: "0 16px",
|
|
7661
|
+
},
|
|
7662
|
+
"& sl-icon::part(base)": {
|
|
7663
|
+
color: "var(--sl-color-blue-500)",
|
|
7664
|
+
},
|
|
7665
|
+
},
|
|
5651
7666
|
PageDescriptionText: {
|
|
5652
|
-
color: "var(--
|
|
7667
|
+
color: "var(--sl-color-neutral-500)",
|
|
5653
7668
|
fontSize: "var(--sl-font-size-medium)",
|
|
5654
7669
|
},
|
|
5655
7670
|
PhoneInputsSection: {
|
|
@@ -5672,8 +7687,8 @@ const style$6 = {
|
|
|
5672
7687
|
},
|
|
5673
7688
|
},
|
|
5674
7689
|
};
|
|
5675
|
-
const sheet$
|
|
5676
|
-
const styleString$
|
|
7690
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7691
|
+
const styleString$6 = sheet$6.toString();
|
|
5677
7692
|
const vanillaStyle$4 = `
|
|
5678
7693
|
:host{
|
|
5679
7694
|
display: block;
|
|
@@ -5683,15 +7698,11 @@ const vanillaStyle$4 = `
|
|
|
5683
7698
|
padding: 0;
|
|
5684
7699
|
box-sizing: border-box;
|
|
5685
7700
|
}
|
|
5686
|
-
a {
|
|
5687
|
-
color: var(--sqm-text);
|
|
5688
|
-
color: inherit !important;
|
|
5689
|
-
text-decoration: underline;
|
|
5690
|
-
}
|
|
5691
7701
|
|
|
5692
7702
|
p {
|
|
5693
7703
|
line-height: 18px;
|
|
5694
|
-
|
|
7704
|
+
color: var(--sl-color-gray-800);
|
|
7705
|
+
font-size: var(--sl-font-size-small);
|
|
5695
7706
|
}
|
|
5696
7707
|
|
|
5697
7708
|
sl-radio-group::part(base) {
|
|
@@ -5702,149 +7713,11 @@ const vanillaStyle$4 = `
|
|
|
5702
7713
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
5703
7714
|
min-width: 250px;
|
|
5704
7715
|
}
|
|
5705
|
-
|
|
5706
|
-
sl-button[type="primary"]::part(base){
|
|
5707
|
-
background-color: var(--sqm-primary-button-background);
|
|
5708
|
-
color: var(--sqm-primary-button-color);
|
|
5709
|
-
border-color: var(--sqm-primary-button-color-border);
|
|
5710
|
-
border-radius: var(--sqm-primary-button-radius);
|
|
5711
|
-
}
|
|
5712
|
-
|
|
5713
|
-
sl-button[type="primary"]::part(base):hover{
|
|
5714
|
-
background-color: var(--sqm-primary-button-background-hover);
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
|
-
sl-button[type="primary"]::part(base):focus{
|
|
5718
|
-
box-shadow: none;
|
|
5719
|
-
}
|
|
5720
|
-
|
|
5721
|
-
sl-button[type="secondary"]::part(base){
|
|
5722
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5723
|
-
color: var(--sqm-secondary-button-color);
|
|
5724
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5725
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5726
|
-
}
|
|
5727
|
-
|
|
5728
|
-
sl-button[type="secondary"]::part(base):hover{
|
|
5729
|
-
background-color: var(--sqm-secondary-button-background-hover);
|
|
5730
|
-
}
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
*::part(primarybutton-base){
|
|
5735
|
-
background-color: var(--sqm-primary-button-background);
|
|
5736
|
-
color: var(--sqm-primary-button-color);
|
|
5737
|
-
border-color: var(--sqm-primary-button-color-border);
|
|
5738
|
-
border-radius: var(--sqm-primary-button-radius);
|
|
5739
|
-
}
|
|
5740
|
-
|
|
5741
|
-
*::part(primarybutton-base):hover{
|
|
5742
|
-
background-color: var(--sqm-primary-button-background-hover);
|
|
5743
|
-
}
|
|
5744
|
-
|
|
5745
|
-
*::part(primarybutton-base):focus{
|
|
5746
|
-
box-shadow: none;
|
|
5747
|
-
}
|
|
5748
|
-
|
|
5749
|
-
*::part(secondarybutton-base){
|
|
5750
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5751
|
-
color: var(--sqm-secondary-button-color);
|
|
5752
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5753
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5754
|
-
}
|
|
5755
|
-
|
|
5756
|
-
*::part(secondarybutton-base):hover{
|
|
5757
|
-
background-color: var(--sqm-secondary-button-background-hover);
|
|
5758
|
-
}
|
|
5759
|
-
|
|
5760
|
-
*::part(secondarybutton-base){
|
|
5761
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5762
|
-
color: var(--sqm-secondary-button-color);
|
|
5763
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5764
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5765
|
-
width: max-content;
|
|
5766
|
-
display: flex;
|
|
5767
|
-
margin: auto;
|
|
5768
|
-
}
|
|
5769
|
-
|
|
5770
|
-
*::part(secondarybutton-base):hover{
|
|
5771
|
-
background: var(--sqm-secondary-button-background-hover);
|
|
5772
|
-
}
|
|
5773
|
-
|
|
5774
|
-
sl-input::part(label),
|
|
5775
|
-
sl-select::part(label),
|
|
5776
|
-
sl-textarea::part(label){
|
|
5777
|
-
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5778
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
5779
|
-
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5780
|
-
}
|
|
5781
|
-
|
|
5782
|
-
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5783
|
-
sl-input::part(base),
|
|
5784
|
-
sl-dropdown::part(base),
|
|
5785
|
-
sl-textarea::part(base){
|
|
5786
|
-
background-color: var(--sqm-input-background, #fff);
|
|
5787
|
-
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5788
|
-
color: var(--sqm-input-color, white);
|
|
5789
|
-
border-width: var(--sqm-border-thickness, 1px);
|
|
5790
|
-
border-style: solid;
|
|
5791
|
-
border-color: var(--sqm-input-border-color, #ccc);
|
|
5792
|
-
}
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
sl-select::part(menu) {
|
|
5796
|
-
background: var(--sqm-input-background, inherit);
|
|
5797
|
-
color: var(--sqm-input-color, inherit);
|
|
5798
|
-
border:none;
|
|
5799
|
-
}
|
|
5800
|
-
|
|
5801
|
-
sl-select::part(panel) {
|
|
5802
|
-
border-radius: var(--sqm-border-radius-normal);
|
|
5803
|
-
}
|
|
5804
|
-
|
|
5805
|
-
sl-select::part(help-text) {
|
|
5806
|
-
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5807
|
-
}
|
|
5808
|
-
|
|
5809
|
-
sl-input::part(base):focus,
|
|
5810
|
-
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5811
|
-
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5812
|
-
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5813
|
-
}
|
|
5814
|
-
|
|
5815
|
-
sl-input[disabled]::part(label),
|
|
5816
|
-
sl-select[disabled]::part(label),
|
|
5817
|
-
sl-textarea[disabled]::part(label){
|
|
5818
|
-
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
5819
|
-
}
|
|
5820
|
-
|
|
5821
|
-
sl-input[disabled]::part(base),
|
|
5822
|
-
sl-select[disabled]::part(base),
|
|
5823
|
-
sl-textarea[disabled]::part(base){
|
|
5824
|
-
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5825
|
-
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5826
|
-
}
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
sl-input::part(input):-webkit-autofill {
|
|
5830
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5831
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5832
|
-
}
|
|
5833
|
-
|
|
5834
|
-
sl-input::part(input):-webkit-autofill:hover {
|
|
5835
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5836
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5837
|
-
}
|
|
5838
|
-
|
|
5839
|
-
sl-input::part(input):-webkit-autofill:focus {
|
|
5840
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5841
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5842
|
-
}
|
|
5843
|
-
`;
|
|
7716
|
+
`;
|
|
5844
7717
|
const UserInfoFormView = (props) => {
|
|
5845
7718
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5846
7719
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
5847
|
-
const { classes } = sheet$
|
|
7720
|
+
const { classes } = sheet$6;
|
|
5848
7721
|
const bankingCollectionText = intl.formatMessage({
|
|
5849
7722
|
id: "bankingCollectionText",
|
|
5850
7723
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5867,18 +7740,21 @@ const UserInfoFormView = (props) => {
|
|
|
5867
7740
|
}
|
|
5868
7741
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5869
7742
|
h("style", { type: "text/css" },
|
|
5870
|
-
styleString$
|
|
7743
|
+
styleString$6,
|
|
5871
7744
|
vanillaStyle$4),
|
|
5872
7745
|
states.loadingError && (h("div", null,
|
|
5873
|
-
h("
|
|
5874
|
-
h("
|
|
5875
|
-
h("
|
|
7746
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
7747
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7748
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7749
|
+
h("br", null),
|
|
7750
|
+
intl.formatMessage({
|
|
5876
7751
|
id: "loadingErrorAlertDescription",
|
|
5877
7752
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5878
7753
|
}, {
|
|
5879
7754
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5880
|
-
}))
|
|
5881
|
-
|
|
7755
|
+
})),
|
|
7756
|
+
h("br", null))),
|
|
7757
|
+
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
5882
7758
|
h("div", { class: classes.TextContainer },
|
|
5883
7759
|
h("div", null,
|
|
5884
7760
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -5887,25 +7763,29 @@ const UserInfoFormView = (props) => {
|
|
|
5887
7763
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
5888
7764
|
h("h3", null, text.personalInformation),
|
|
5889
7765
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5890
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
5891
|
-
h("
|
|
5892
|
-
h("
|
|
7766
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
7767
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7768
|
+
h("strong", null, text.error.generalTitle),
|
|
7769
|
+
h("br", null),
|
|
7770
|
+
intl.formatMessage({
|
|
5893
7771
|
id: "generalDescription",
|
|
5894
7772
|
defaultMessage: text.error.generalDescription,
|
|
5895
7773
|
}, {
|
|
5896
7774
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5897
|
-
})))
|
|
5898
|
-
(states.isPartner || states.isUser) && (h("
|
|
5899
|
-
h("
|
|
5900
|
-
h("
|
|
7775
|
+
}))),
|
|
7776
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7777
|
+
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7778
|
+
h("strong", null, text.isPartnerAlertHeader),
|
|
7779
|
+
h("br", null),
|
|
7780
|
+
intl.formatMessage({
|
|
5901
7781
|
id: "isPartnerAlertDescription",
|
|
5902
7782
|
defaultMessage: text.isPartnerAlertDescription,
|
|
5903
7783
|
}, {
|
|
5904
7784
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5905
|
-
})))
|
|
7785
|
+
}))),
|
|
5906
7786
|
h("div", null,
|
|
5907
7787
|
h("div", { class: classes.InputContainer },
|
|
5908
|
-
h("sl-input", Object.assign({
|
|
7788
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
5909
7789
|
class: classes.ErrorInput,
|
|
5910
7790
|
helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5911
7791
|
}
|
|
@@ -6035,6 +7915,10 @@ function useUserInfoForm(props) {
|
|
|
6035
7915
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
6036
7916
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
6037
7917
|
const [formErrors, setErrors] = useState({});
|
|
7918
|
+
useEffect(() => {
|
|
7919
|
+
// reset redirect hash
|
|
7920
|
+
window.location.hash = "";
|
|
7921
|
+
}, []);
|
|
6038
7922
|
useEffect(() => {
|
|
6039
7923
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6040
7924
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
@@ -6387,20 +8271,19 @@ const TaxForm = class {
|
|
|
6387
8271
|
}
|
|
6388
8272
|
render() {
|
|
6389
8273
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6390
|
-
return (h(UserInfoFormView, { data: props.data,
|
|
8274
|
+
return (h(Host, null, h(UserInfoFormView, { data: props.data,
|
|
6391
8275
|
// @ts-ignore
|
|
6392
8276
|
states: props.states, callbacks: {
|
|
6393
8277
|
...props.callbacks,
|
|
6394
8278
|
onSubmit: props.onSubmit,
|
|
6395
|
-
}, text: props.text, refs: props.refs }));
|
|
8279
|
+
}, text: props.text, refs: props.refs })));
|
|
6396
8280
|
}
|
|
6397
8281
|
};
|
|
6398
8282
|
function useDemoUserInfoForm(props) {
|
|
6399
8283
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6400
|
-
// @ts-ignore
|
|
6401
8284
|
return cjs({
|
|
6402
8285
|
setStep,
|
|
6403
|
-
onSubmit:
|
|
8286
|
+
onSubmit: () => {
|
|
6404
8287
|
setStep("/2");
|
|
6405
8288
|
},
|
|
6406
8289
|
onRadioClick: () => { },
|
|
@@ -6443,4 +8326,4 @@ function useDemoUserInfoForm(props) {
|
|
|
6443
8326
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6444
8327
|
}
|
|
6445
8328
|
|
|
6446
|
-
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|
|
8329
|
+
export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|